@xuda.io/runtime-bundle 1.0.643 → 1.0.645

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.
@@ -13251,50 +13251,55 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13251
13251
  }
13252
13252
 
13253
13253
  // BEFORE
13254
+ if (!_.isEmpty(nodeP.attributes)) {
13255
+ for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
13256
+ if (_ret.abort) break;
13257
+ if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) {
13258
+ continue;
13259
+ }
13254
13260
 
13255
- for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
13256
- if (_ret.abort) break;
13257
- if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) {
13258
- continue;
13259
- }
13261
+ // if (!nodeP.attributes || !nodeP.attributes[attr] & !nodeP.attributes[`xu-exp:${attr}`]) {
13262
+ // continue;
13263
+ // }
13260
13264
 
13261
- // if (!nodeP.attributes || !nodeP.attributes[attr] & !nodeP.attributes[`xu-exp:${attr}`]) {
13262
- // continue;
13263
- // }
13265
+ // if (_.isEmpty(nodeP.attributes)) {
13266
+ // break;
13267
+ // }
13264
13268
 
13265
- if (_.isEmpty(nodeP.attributes)) {
13266
- break;
13267
- }
13269
+ // if (typeof nodeP.attributes[attr] === 'undefined') {
13270
+ // continue;
13271
+ // }
13268
13272
 
13269
- // if (typeof nodeP.attributes[attr] === 'undefined') {
13270
- // continue;
13271
- // }
13273
+ // if (typeof func.UI.screen.fix_val_defaults(attr, (await get_xuExp(attr)) || nodeP.attributes[attr]) === 'undefined') {
13274
+ // continue;
13275
+ // }
13272
13276
 
13273
- if (typeof func.UI.screen.fix_val_defaults(attr, (await get_xuExp(attr)) || nodeP.attributes[attr]) === 'undefined') {
13274
- continue;
13275
- }
13277
+ if (!nodeP.attributes[`xu-exp:${attr}`] && nodeP.attributes.hasOwnProperty('xu-render') && typeof func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]) === 'undefined') {
13278
+ continue;
13279
+ }
13276
13280
 
13277
- let ret = await func.UI.screen.execute_xu_functions(
13278
- SESSION_ID,
13279
- is_skeleton,
13280
- $root_container,
13281
- nodeP,
13282
- $container,
13283
- paramsP,
13284
- parent_infoP,
13285
- jobNoP,
13286
- keyP,
13287
- parent_nodeP,
13288
- attr,
13289
- $elm,
13290
- {
13291
- key: attr,
13292
- // value: _value,
13293
- value: (await get_xuExp(attr)) || nodeP.attributes[attr],
13294
- },
13295
- is_init,
13296
- );
13297
- _ret = _.assignIn(_ret, ret);
13281
+ let ret = await func.UI.screen.execute_xu_functions(
13282
+ SESSION_ID,
13283
+ is_skeleton,
13284
+ $root_container,
13285
+ nodeP,
13286
+ $container,
13287
+ paramsP,
13288
+ parent_infoP,
13289
+ jobNoP,
13290
+ keyP,
13291
+ parent_nodeP,
13292
+ attr,
13293
+ $elm,
13294
+ {
13295
+ key: attr,
13296
+ // value: _value,
13297
+ value: (await get_xuExp(attr)) || nodeP.attributes[attr],
13298
+ },
13299
+ is_init,
13300
+ );
13301
+ _ret = _.assignIn(_ret, ret);
13302
+ }
13298
13303
  }
13299
13304
 
13300
13305
  // ALL
@@ -10973,50 +10973,55 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10973
10973
  }
10974
10974
 
10975
10975
  // BEFORE
10976
+ if (!_.isEmpty(nodeP.attributes)) {
10977
+ for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
10978
+ if (_ret.abort) break;
10979
+ if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) {
10980
+ continue;
10981
+ }
10976
10982
 
10977
- for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
10978
- if (_ret.abort) break;
10979
- if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) {
10980
- continue;
10981
- }
10983
+ // if (!nodeP.attributes || !nodeP.attributes[attr] & !nodeP.attributes[`xu-exp:${attr}`]) {
10984
+ // continue;
10985
+ // }
10982
10986
 
10983
- // if (!nodeP.attributes || !nodeP.attributes[attr] & !nodeP.attributes[`xu-exp:${attr}`]) {
10984
- // continue;
10985
- // }
10987
+ // if (_.isEmpty(nodeP.attributes)) {
10988
+ // break;
10989
+ // }
10986
10990
 
10987
- if (_.isEmpty(nodeP.attributes)) {
10988
- break;
10989
- }
10991
+ // if (typeof nodeP.attributes[attr] === 'undefined') {
10992
+ // continue;
10993
+ // }
10990
10994
 
10991
- // if (typeof nodeP.attributes[attr] === 'undefined') {
10992
- // continue;
10993
- // }
10995
+ // if (typeof func.UI.screen.fix_val_defaults(attr, (await get_xuExp(attr)) || nodeP.attributes[attr]) === 'undefined') {
10996
+ // continue;
10997
+ // }
10994
10998
 
10995
- if (typeof func.UI.screen.fix_val_defaults(attr, (await get_xuExp(attr)) || nodeP.attributes[attr]) === 'undefined') {
10996
- continue;
10997
- }
10999
+ if (!nodeP.attributes[`xu-exp:${attr}`] && nodeP.attributes.hasOwnProperty('xu-render') && typeof func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]) === 'undefined') {
11000
+ continue;
11001
+ }
10998
11002
 
10999
- let ret = await func.UI.screen.execute_xu_functions(
11000
- SESSION_ID,
11001
- is_skeleton,
11002
- $root_container,
11003
- nodeP,
11004
- $container,
11005
- paramsP,
11006
- parent_infoP,
11007
- jobNoP,
11008
- keyP,
11009
- parent_nodeP,
11010
- attr,
11011
- $elm,
11012
- {
11013
- key: attr,
11014
- // value: _value,
11015
- value: (await get_xuExp(attr)) || nodeP.attributes[attr],
11016
- },
11017
- is_init,
11018
- );
11019
- _ret = _.assignIn(_ret, ret);
11003
+ let ret = await func.UI.screen.execute_xu_functions(
11004
+ SESSION_ID,
11005
+ is_skeleton,
11006
+ $root_container,
11007
+ nodeP,
11008
+ $container,
11009
+ paramsP,
11010
+ parent_infoP,
11011
+ jobNoP,
11012
+ keyP,
11013
+ parent_nodeP,
11014
+ attr,
11015
+ $elm,
11016
+ {
11017
+ key: attr,
11018
+ // value: _value,
11019
+ value: (await get_xuExp(attr)) || nodeP.attributes[attr],
11020
+ },
11021
+ is_init,
11022
+ );
11023
+ _ret = _.assignIn(_ret, ret);
11024
+ }
11020
11025
  }
11021
11026
 
11022
11027
  // ALL