@xuda.io/runtime-bundle 1.0.910 → 1.0.912
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/xuda-runtime-bundle.js +3 -1
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +3 -1
- package/js/xuda-runtime-slim.min.es.js +3 -1
- package/js/xuda-runtime-slim.min.js +2 -2
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +1 -1
- package/js/xuda-worker-bundle.js +1 -1
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -10381,7 +10381,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
10381
10381
|
}
|
|
10382
10382
|
if (typeof retP.value !== 'undefined') {
|
|
10383
10383
|
var_Arr[key].type = retP.type;
|
|
10384
|
-
var_Arr[key].value = typeof retP.value === 'string' ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
|
|
10384
|
+
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
|
|
10385
10385
|
if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
|
|
10386
10386
|
//get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
|
|
10387
10387
|
var data = retP.prop;
|
|
@@ -12734,6 +12734,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12734
12734
|
CLIENT_ACTIVITY_TS = Date.now();
|
|
12735
12735
|
const trigger = val.key.split('xu-on:')[1].toLowerCase();
|
|
12736
12736
|
$elm.on(trigger, async function (evt) {
|
|
12737
|
+
if (_.isEmpty($elm.data().xuAttributes)) return;
|
|
12738
|
+
|
|
12737
12739
|
for await (const [key, val] of Object.entries($elm.data().xuAttributes['xu-on:' + evt.type])) {
|
|
12738
12740
|
if (!_.isEmpty(val.props.condition)) {
|
|
12739
12741
|
const expCond = await func.expression.get(SESSION_ID, val.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
|
|
@@ -10461,6 +10461,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10461
10461
|
CLIENT_ACTIVITY_TS = Date.now();
|
|
10462
10462
|
const trigger = val.key.split('xu-on:')[1].toLowerCase();
|
|
10463
10463
|
$elm.on(trigger, async function (evt) {
|
|
10464
|
+
if (_.isEmpty($elm.data().xuAttributes)) return;
|
|
10465
|
+
|
|
10464
10466
|
for await (const [key, val] of Object.entries($elm.data().xuAttributes['xu-on:' + evt.type])) {
|
|
10465
10467
|
if (!_.isEmpty(val.props.condition)) {
|
|
10466
10468
|
const expCond = await func.expression.get(SESSION_ID, val.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
|
|
@@ -14371,7 +14373,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
14371
14373
|
}
|
|
14372
14374
|
if (typeof retP.value !== 'undefined') {
|
|
14373
14375
|
var_Arr[key].type = retP.type;
|
|
14374
|
-
var_Arr[key].value = typeof retP.value === 'string' ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
|
|
14376
|
+
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
|
|
14375
14377
|
if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
|
|
14376
14378
|
//get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
|
|
14377
14379
|
var data = retP.prop;
|