@xuda.io/runtime-bundle 1.0.1037 → 1.0.1039

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.
@@ -11768,27 +11768,35 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11768
11768
  if (glb.new_xu_render) {
11769
11769
  if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
11770
11770
  debugger;
11771
- $.each(_$elem, function (key, val) {
11771
+ // $.each(_$elem, function (key, val) {
11772
+ for await (const [key, val] of Object.entries(_$elem)) {
11772
11773
  if ($(val).data().xuData.node) {
11773
- $.each($(val).data().xuData.node.children, function (key, node) {
11774
- if (item.id !== node.id) return true;
11774
+ // $.each($(val).data().xuData.node.children, function (key, node) {
11775
+ for await (const node of $(val).data().xuData.node.children) {
11776
+ if (item.id !== node.id) continue;
11775
11777
 
11776
11778
  if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
11777
11779
  const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id][node.xu_render_cache_id];
11778
11780
  const _elem_key = node.xu_render_xu_ui_id;
11779
11781
  const _elem_val = { attributes: [attr], $elm: node_data.$div };
11782
+
11783
+ var res = await func.expression.get(SESSION_ID, elem_val.$elm.data().xuAttributes['xu-exp:xu-render'], elem_val.$elm.data().xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.$elm.data().xuData.recordid);
11784
+
11785
+ var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
11786
+
11780
11787
  const obj = {
11781
11788
  ui_type: _elem_val.$elm.data().xuData.ui_type,
11782
11789
  SESSION_ID,
11783
11790
  elem_key: _elem_key,
11784
11791
  elem_val: _elem_val,
11785
11792
  fields_arr,
11793
+ attr_value,
11786
11794
  };
11787
11795
  func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
11788
11796
  }
11789
- });
11797
+ }
11790
11798
  }
11791
- });
11799
+ }
11792
11800
  }
11793
11801
  }
11794
11802
  }
@@ -9493,27 +9493,35 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9493
9493
  if (glb.new_xu_render) {
9494
9494
  if (attr === 'xu-exp:xu-render' || attr === 'xu-render') {
9495
9495
  debugger;
9496
- $.each(_$elem, function (key, val) {
9496
+ // $.each(_$elem, function (key, val) {
9497
+ for await (const [key, val] of Object.entries(_$elem)) {
9497
9498
  if ($(val).data().xuData.node) {
9498
- $.each($(val).data().xuData.node.children, function (key, node) {
9499
- if (item.id !== node.id) return true;
9499
+ // $.each($(val).data().xuData.node.children, function (key, node) {
9500
+ for await (const node of $(val).data().xuData.node.children) {
9501
+ if (item.id !== node.id) continue;
9500
9502
 
9501
9503
  if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
9502
9504
  const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id][node.xu_render_cache_id];
9503
9505
  const _elem_key = node.xu_render_xu_ui_id;
9504
9506
  const _elem_val = { attributes: [attr], $elm: node_data.$div };
9507
+
9508
+ var res = await func.expression.get(SESSION_ID, elem_val.$elm.data().xuAttributes['xu-exp:xu-render'], elem_val.$elm.data().xuData.paramsP.dsSessionP, 'UI Property EXP', elem_val.$elm.data().xuData.recordid);
9509
+
9510
+ var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
9511
+
9505
9512
  const obj = {
9506
9513
  ui_type: _elem_val.$elm.data().xuData.ui_type,
9507
9514
  SESSION_ID,
9508
9515
  elem_key: _elem_key,
9509
9516
  elem_val: _elem_val,
9510
9517
  fields_arr,
9518
+ attr_value,
9511
9519
  };
9512
9520
  func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
9513
9521
  }
9514
- });
9522
+ }
9515
9523
  }
9516
- });
9524
+ }
9517
9525
  }
9518
9526
  }
9519
9527
  }