@xuda.io/runtime-bundle 1.0.652 → 1.0.654
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.
|
@@ -32848,13 +32848,15 @@ func.UI.screen.fix_val_defaults = function (key, val) {
|
|
|
32848
32848
|
key === 'xu-render' &&
|
|
32849
32849
|
(typeof val === 'undefined' || val === null || val === '') //|| val === ""
|
|
32850
32850
|
) {
|
|
32851
|
-
ret = 'Y'; // was ret = "N";
|
|
32851
|
+
// ret = 'Y'; // was ret = "N";
|
|
32852
|
+
ret = true;
|
|
32852
32853
|
}
|
|
32853
32854
|
if (
|
|
32854
32855
|
key === 'xu-show' &&
|
|
32855
32856
|
(typeof val === 'undefined' || val === null || val === '') //|| val === ""
|
|
32856
32857
|
) {
|
|
32857
|
-
ret = 'Y';
|
|
32858
|
+
// ret = 'Y';
|
|
32859
|
+
ret = true;
|
|
32858
32860
|
}
|
|
32859
32861
|
return ret;
|
|
32860
32862
|
};
|
|
@@ -32865,6 +32867,14 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
32865
32867
|
const _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
|
|
32866
32868
|
if (!_ds) return { abort: true };
|
|
32867
32869
|
|
|
32870
|
+
const get_attr_value = async function (key) {
|
|
32871
|
+
let ret = func.UI.screen.fix_val_defaults(key, nodeP.attributes[key]);
|
|
32872
|
+
if (nodeP?.attributes?.hasOwnProperty(`xu-exp:${key}`)) {
|
|
32873
|
+
ret = await get_xuExp(key);
|
|
32874
|
+
}
|
|
32875
|
+
return ret;
|
|
32876
|
+
};
|
|
32877
|
+
|
|
32868
32878
|
const get_xuExp = async function (attrib) {
|
|
32869
32879
|
if (is_skeleton) return;
|
|
32870
32880
|
const attr = `xu-exp:${attrib}`;
|
|
@@ -32980,8 +32990,9 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
32980
32990
|
$elm,
|
|
32981
32991
|
{
|
|
32982
32992
|
key: attr,
|
|
32983
|
-
|
|
32984
|
-
value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
|
|
32993
|
+
|
|
32994
|
+
// value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
|
|
32995
|
+
value: await get_attr_value(attr),
|
|
32985
32996
|
},
|
|
32986
32997
|
is_init,
|
|
32987
32998
|
);
|
|
@@ -33043,7 +33054,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
33043
33054
|
$elm,
|
|
33044
33055
|
{
|
|
33045
33056
|
key: key,
|
|
33046
|
-
value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
|
|
33057
|
+
// value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
|
|
33058
|
+
value: await get_attr_value(key),
|
|
33047
33059
|
},
|
|
33048
33060
|
is_init,
|
|
33049
33061
|
refreshed_ds,
|
|
@@ -33067,7 +33079,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
33067
33079
|
$elm,
|
|
33068
33080
|
{
|
|
33069
33081
|
key: key,
|
|
33070
|
-
value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
|
|
33082
|
+
// value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
|
|
33083
|
+
value: await get_attr_value(key),
|
|
33071
33084
|
},
|
|
33072
33085
|
is_init,
|
|
33073
33086
|
refreshed_ds,
|
|
@@ -33137,7 +33150,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
33137
33150
|
$elm,
|
|
33138
33151
|
{
|
|
33139
33152
|
key: attr,
|
|
33140
|
-
value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
|
|
33153
|
+
// value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
|
|
33154
|
+
value: await get_attr_value(attr),
|
|
33141
33155
|
},
|
|
33142
33156
|
is_init,
|
|
33143
33157
|
refreshed_ds,
|
|
@@ -33149,6 +33163,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
|
|
|
33149
33163
|
|
|
33150
33164
|
for await (const [key, val] of Object.entries(nodeP.attributes)) {
|
|
33151
33165
|
if (!glb.html5_events_handler.includes(key)) break;
|
|
33166
|
+
// $elm.attr(key, await get_xuExp(key)) || val;
|
|
33152
33167
|
$elm.attr(key, await get_xuExp(key)) || val;
|
|
33153
33168
|
}
|
|
33154
33169
|
|