@xuda.io/runtime-bundle 1.0.931 → 1.0.933
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 +33 -1
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +33 -1
- package/js/xuda-runtime-slim.min.es.js +33 -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
|
@@ -31780,6 +31780,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
31780
31780
|
};
|
|
31781
31781
|
|
|
31782
31782
|
const common_fx = {
|
|
31783
|
+
'xu-attrs': async function ($elm, val) {
|
|
31784
|
+
if (!val.value) return {};
|
|
31785
|
+
if (!_.isObject(val.value)) throw 'xu-attrs value us not an object';
|
|
31786
|
+
for (const [key, val] of Object.entries(val.value)) {
|
|
31787
|
+
nodeP.attributes[key] = val;
|
|
31788
|
+
}
|
|
31789
|
+
|
|
31790
|
+
return {};
|
|
31791
|
+
},
|
|
31783
31792
|
'xu-ref': async function ($elm, val, dsSession) {
|
|
31784
31793
|
if (!val.value) return {};
|
|
31785
31794
|
|
|
@@ -32649,6 +32658,29 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
32649
32658
|
}
|
|
32650
32659
|
}
|
|
32651
32660
|
|
|
32661
|
+
// XU-ATTRS
|
|
32662
|
+
if (nodeP?.attributes?.['xu-attrs']) {
|
|
32663
|
+
let ret = await func.UI.screen.execute_xu_functions(
|
|
32664
|
+
SESSION_ID,
|
|
32665
|
+
is_skeleton,
|
|
32666
|
+
$root_container,
|
|
32667
|
+
nodeP,
|
|
32668
|
+
$container,
|
|
32669
|
+
paramsP,
|
|
32670
|
+
parent_infoP,
|
|
32671
|
+
jobNoP,
|
|
32672
|
+
keyP,
|
|
32673
|
+
parent_nodeP,
|
|
32674
|
+
attr,
|
|
32675
|
+
$elm,
|
|
32676
|
+
{
|
|
32677
|
+
key: attr,
|
|
32678
|
+
value: await get_attr_value(attr),
|
|
32679
|
+
},
|
|
32680
|
+
is_init,
|
|
32681
|
+
);
|
|
32682
|
+
}
|
|
32683
|
+
|
|
32652
32684
|
// BEFORE
|
|
32653
32685
|
if (!_.isEmpty(nodeP.attributes)) {
|
|
32654
32686
|
for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
|
|
@@ -34980,7 +35012,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
34980
35012
|
}
|
|
34981
35013
|
if (typeof retP.value !== 'undefined') {
|
|
34982
35014
|
var_Arr[key].type = retP.type;
|
|
34983
|
-
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 &&
|
|
35015
|
+
var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 && sourceP !== 'UI Attr EXP' ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\"" // new Jul 29 25 to fix quil extra "\" " source!=="UI Attr EXP"
|
|
34984
35016
|
if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
|
|
34985
35017
|
//get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
|
|
34986
35018
|
var data = retP.prop;
|