@xuda.io/runtime-bundle 1.0.932 → 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.
@@ -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)) {