Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Merge branch 'moqui:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
aabiabdallah authored Oct 13, 2023
2 parents ae06106 + e5a88c4 commit a7c9e9e
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 25 deletions.
4 changes: 2 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Written in 2015-2016 by Sam Hamilton - samhamilton
Written in 2015 by Leonardo Carvalho - CarvalhoLeonardo
Written in 2015 by Swapnil M Mane - swapnilmmane
Written in 2015 by Anton Akhiar - akhiar
Writter in 2015-2016 by Jens Hardings - jenshp
Writter in 2015-2023 by Jens Hardings - jenshp
Written in 2016 by Mark Haney - mphaney
Written in 2018 by Nirendra Singh Panwar - nirendra10695
Written in 2018 by Zhang Wei - zhangwei1979
Expand Down Expand Up @@ -86,7 +86,7 @@ Written in 2015 by Jimmy Shen - shendepu
Written in 2015 by Sam Hamilton - samhamilton
Written in 2015 by Leonardo Carvalho - CarvalhoLeonardo
Written in 2015 by Anton Akhiar - akhiar
Writter in 2015-2016 by Jens Hardings - jenshp
Writter in 2015-2023 by Jens Hardings - jenshp
Written in 2016 by Mark Haney - mphaney
Written in 2018 by Nirendra Singh Panwar - nirendra10695
Written in 2018 by Zhang Wei - zhangwei1979
Expand Down
12 changes: 6 additions & 6 deletions base-component/tools/screen/System/Resource/ElFinder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ along with this software (see the LICENSE.md file). If not, see
</form-single>
<render-mode><text type="html,vuet,qvt"><![CDATA[
<div id="elfinder"></div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.min.css" type="text/css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/theme.min.css" type="text/css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.56/css/elfinder.min.css" type="text/css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.56/css/theme.min.css" type="text/css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.56/js/elfinder.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/themes/smoothness/jquery-ui.min.css" type="text/css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/themes/smoothness/theme.min.css" type="text/css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.62/css/elfinder.min.css" type="text/css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.62/css/theme.min.css" type="text/css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.62/js/elfinder.min.js" type="text/javascript"></script>
<script>
$('#elfinder').elfinder({ url:'${sri.buildUrl('command').url}', customData:{ moquiSessionToken:'${ec.web.sessionToken}', resourceRoot:'${resourceRoot}' },
lang:'en', defaultView:'list', requestType:'post', rememberLastDir:false, height:700,
Expand Down
2 changes: 1 addition & 1 deletion base-component/webroot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def fileMap = [

"jeditable.js/1.7.3/jeditable.min.js":"",

"jquery/3.4.1/jquery.min.js":"",
"jquery/3.7.1/jquery.min.js":"",

"jquery.form/4.2.1/jquery.form.min.js":"",
"jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js":"",
Expand Down
4 changes: 2 additions & 2 deletions base-component/webroot/screen/webroot/js/WebrootVue.qvt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ Vue.component('m-drop-down', {

// console.warn("curOptions updated " + this.name + " allowEmpty " + this.allowEmpty + " value '" + this.value + "' " + " isInNewOptions " + isInNewOptions + ": " + JSON.stringify(options));
if (!isInNewOptions) {
if (!this.allowEmpty && !this.multiple && options && options.length && options[0].value && (!this.requiredManualSelect || options.length === 1)) {
if (!this.allowEmpty && !this.multiple && options && options.length && options[0].value && (!this.requiredManualSelect || (!this.submitOnSelect && options.length === 1))) {
// simulate normal select behavior with no empty option (not allowEmpty) where first value is selected by default
// console.warn("checkCurrentValue setting " + this.name + " to " + options[0].value + " options " + options.length);
this.$emit('input', options[0].value);
Expand Down Expand Up @@ -1755,7 +1755,7 @@ Vue.component('m-drop-down', {
}
}
// simulate normal select behavior with no empty option (not allowEmpty) where first value is selected by default - but only do for 1 option to force user to think and choose from multiple
if (!this.multiple && !this.allowEmpty && (!this.value || !this.value.length) && this.options && this.options.length && (!this.requiredManualSelect || this.options.length === 1)) {
if (!this.multiple && !this.allowEmpty && (!this.value || !this.value.length) && this.options && this.options.length && (!this.requiredManualSelect || (!this.submitOnSelect && options.length === 1))) {
this.$emit('input', this.options[0].value);
}
}
Expand Down
12 changes: 10 additions & 2 deletions template/screen-macro/DefaultScreenMacros.csv.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,18 @@ on the same screen to increase reusability of those screens -->
<#assign fieldValue = ec.getResource().expand(.node["@text"], "")>
</#if>
<#if .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
</#if>
<#elseif .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
<#else>
<#assign fieldValue = sri.getFieldValueString(.node)>
</#if>
Expand Down
12 changes: 10 additions & 2 deletions template/screen-macro/DefaultScreenMacros.html.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1941,10 +1941,18 @@ a => A, d => D, y => Y
<#assign fieldValue = ec.getResource().expand(.node["@text"], "")>
</#if>
<#if .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
</#if>
<#elseif .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
<#else>
<#assign fieldValue = sri.getFieldValueString(.node)>
</#if>
Expand Down
13 changes: 11 additions & 2 deletions template/screen-macro/DefaultScreenMacros.qvt.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1755,9 +1755,18 @@ a => A, d => D, y => Y
<#if textMap?has_content><#assign fieldValue = ec.getResource().expand(.node["@text"], "", textMap)>
<#else><#assign fieldValue = ec.getResource().expand(.node["@text"], "")></#if>
<#if .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))></#if>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
</#if>
<#elseif .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
<#else>
<#assign fieldValue = sri.getFieldValueString(.node)>
</#if>
Expand Down
12 changes: 10 additions & 2 deletions template/screen-macro/DefaultScreenMacros.text.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,18 @@ along with this software (see the LICENSE.md file). If not, see
<#assign fieldValue = ec.getResource().expand(.node["@text"], "")>
</#if>
<#if .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
</#if>
<#elseif .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
<#else>
<#assign fieldValue = sri.getFieldValueString(.node)>
</#if>
Expand Down
13 changes: 11 additions & 2 deletions template/screen-macro/DefaultScreenMacros.vuet.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1667,9 +1667,18 @@ a => A, d => D, y => Y
<#if textMap?has_content><#assign fieldValue = ec.getResource().expand(.node["@text"], "", textMap)>
<#else><#assign fieldValue = ec.getResource().expand(.node["@text"], "")></#if>
<#if .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))></#if>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(fieldValue, ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
</#if>
<#elseif .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.getL10n().formatCurrencyNoSymbol(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.getL10n().formatCurrency(sri.getFieldValue(dispFieldNode, ""), ec.getResource().expression(.node["@currency-unit-field"], ""))>
</#if>
<#else>
<#assign fieldValue = sri.getFieldValueString(.node)>
</#if>
Expand Down
12 changes: 10 additions & 2 deletions template/screen-macro/DefaultScreenMacros.xml.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,18 @@ along with this software (see the LICENSE.md file). If not, see
<#if .node["@text"]?has_content>
<#assign fieldValue = ec.resource.expand(.node["@text"], "")>
<#if .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.l10n.formatCurrency(fieldValue, ec.resource.expression(.node["@currency-unit-field"], ""), 2)>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.l10n.formatCurrencyNoSymbol(fieldValue, ec.resource.expression(.node["@currency-unit-field"], ""), 2)>
<#else>
<#assign fieldValue = ec.l10n.formatCurrency(fieldValue, ec.resource.expression(.node["@currency-unit-field"], ""), 2)>
</#if>
</#if>
<#elseif .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.l10n.formatCurrency(sri.getFieldValue(.node?parent?parent, ""), ec.resource.expression(.node["@currency-unit-field"], ""), 2)>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.l10n.formatCurrencyNoSymbol(sri.getFieldValue(.node?parent?parent, ""), ec.resource.expression(.node["@currency-unit-field"], ""), 2)>
<#else>
<#assign fieldValue = ec.l10n.formatCurrency(sri.getFieldValue(.node?parent?parent, ""), ec.resource.expression(.node["@currency-unit-field"], ""), 2)>
</#if>
<#else>
<#assign fieldValue = sri.getFieldValueString(.node)>
</#if>
Expand Down
12 changes: 10 additions & 2 deletions template/screen-macro/DefaultScreenMacros.xsl-fo.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,18 @@ along with this software (see the LICENSE.md file). If not, see
<#if .node["@text"]?has_content>
<#assign fieldValue = ec.resource.expand(.node["@text"], "")>
<#if .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.l10n.formatCurrency(fieldValue, ec.resource.expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.l10n.formatCurrencyNoSymbol(fieldValue, ec.resource.expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.l10n.formatCurrency(fieldValue, ec.resource.expression(.node["@currency-unit-field"], ""))>
</#if>
</#if>
<#elseif .node["@currency-unit-field"]?has_content>
<#assign fieldValue = ec.l10n.formatCurrency(sri.getFieldValue(.node?parent?parent, ""), ec.resource.expression(.node["@currency-unit-field"], ""))>
<#if .node["@currency-hide-symbol"]! == "true">
<#assign fieldValue = ec.l10n.formatCurrencyNoSymbol(sri.getFieldValue(.node?parent?parent, ""), ec.resource.expression(.node["@currency-unit-field"], ""))>
<#else>
<#assign fieldValue = ec.l10n.formatCurrency(sri.getFieldValue(.node?parent?parent, ""), ec.resource.expression(.node["@currency-unit-field"], ""))>
</#if>
<#else>
<#assign fieldValue = sri.getFieldValueString(.node)>
</#if>
Expand Down

0 comments on commit a7c9e9e

Please sign in to comment.