@xuda.io/runtime-bundle 1.0.932 → 1.0.934
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-slim.js
CHANGED
|
@@ -12094,6 +12094,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12094
12094
|
};
|
|
12095
12095
|
|
|
12096
12096
|
const common_fx = {
|
|
12097
|
+
'xu-attrs': async function ($elm, val) {
|
|
12098
|
+
if (!val.value) return {};
|
|
12099
|
+
if (!_.isObject(val.value)) throw 'xu-attrs value us not an object';
|
|
12100
|
+
for (const [key, val] of Object.entries(val.value)) {
|
|
12101
|
+
nodeP.attributes[key] = val;
|
|
12102
|
+
}
|
|
12103
|
+
|
|
12104
|
+
return {};
|
|
12105
|
+
},
|
|
12097
12106
|
'xu-ref': async function ($elm, val, dsSession) {
|
|
12098
12107
|
if (!val.value) return {};
|
|
12099
12108
|
|
|
@@ -12963,6 +12972,29 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
12963
12972
|
}
|
|
12964
12973
|
}
|
|
12965
12974
|
|
|
12975
|
+
// XU-ATTRS
|
|
12976
|
+
if (nodeP?.attributes?.['xu-attrs']) {
|
|
12977
|
+
let ret = await func.UI.screen.execute_xu_functions(
|
|
12978
|
+
SESSION_ID,
|
|
12979
|
+
is_skeleton,
|
|
12980
|
+
$root_container,
|
|
12981
|
+
nodeP,
|
|
12982
|
+
$container,
|
|
12983
|
+
paramsP,
|
|
12984
|
+
parent_infoP,
|
|
12985
|
+
jobNoP,
|
|
12986
|
+
keyP,
|
|
12987
|
+
parent_nodeP,
|
|
12988
|
+
'xu-attrs',
|
|
12989
|
+
$elm,
|
|
12990
|
+
{
|
|
12991
|
+
key: attr,
|
|
12992
|
+
value: await get_attr_value(attr),
|
|
12993
|
+
},
|
|
12994
|
+
is_init,
|
|
12995
|
+
);
|
|
12996
|
+
}
|
|
12997
|
+
|
|
12966
12998
|
// BEFORE
|
|
12967
12999
|
if (!_.isEmpty(nodeP.attributes)) {
|
|
12968
13000
|
for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
|
|
@@ -9821,6 +9821,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
9821
9821
|
};
|
|
9822
9822
|
|
|
9823
9823
|
const common_fx = {
|
|
9824
|
+
'xu-attrs': async function ($elm, val) {
|
|
9825
|
+
if (!val.value) return {};
|
|
9826
|
+
if (!_.isObject(val.value)) throw 'xu-attrs value us not an object';
|
|
9827
|
+
for (const [key, val] of Object.entries(val.value)) {
|
|
9828
|
+
nodeP.attributes[key] = val;
|
|
9829
|
+
}
|
|
9830
|
+
|
|
9831
|
+
return {};
|
|
9832
|
+
},
|
|
9824
9833
|
'xu-ref': async function ($elm, val, dsSession) {
|
|
9825
9834
|
if (!val.value) return {};
|
|
9826
9835
|
|
|
@@ -10690,6 +10699,29 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
10690
10699
|
}
|
|
10691
10700
|
}
|
|
10692
10701
|
|
|
10702
|
+
// XU-ATTRS
|
|
10703
|
+
if (nodeP?.attributes?.['xu-attrs']) {
|
|
10704
|
+
let ret = await func.UI.screen.execute_xu_functions(
|
|
10705
|
+
SESSION_ID,
|
|
10706
|
+
is_skeleton,
|
|
10707
|
+
$root_container,
|
|
10708
|
+
nodeP,
|
|
10709
|
+
$container,
|
|
10710
|
+
paramsP,
|
|
10711
|
+
parent_infoP,
|
|
10712
|
+
jobNoP,
|
|
10713
|
+
keyP,
|
|
10714
|
+
parent_nodeP,
|
|
10715
|
+
'xu-attrs',
|
|
10716
|
+
$elm,
|
|
10717
|
+
{
|
|
10718
|
+
key: attr,
|
|
10719
|
+
value: await get_attr_value(attr),
|
|
10720
|
+
},
|
|
10721
|
+
is_init,
|
|
10722
|
+
);
|
|
10723
|
+
}
|
|
10724
|
+
|
|
10693
10725
|
// BEFORE
|
|
10694
10726
|
if (!_.isEmpty(nodeP.attributes)) {
|
|
10695
10727
|
for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
|