@xuda.io/runtime-bundle 1.0.1039 → 1.0.1041

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.
@@ -11770,6 +11770,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11770
11770
  debugger;
11771
11771
  // $.each(_$elem, function (key, val) {
11772
11772
  for await (const [key, val] of Object.entries(_$elem)) {
11773
+ if (key === 'length') break;
11773
11774
  if ($(val).data().xuData.node) {
11774
11775
  // $.each($(val).data().xuData.node.children, function (key, node) {
11775
11776
  for await (const node of $(val).data().xuData.node.children) {
@@ -11777,22 +11778,22 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11777
11778
 
11778
11779
  if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
11779
11780
  const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id][node.xu_render_cache_id];
11780
- const _elem_key = node.xu_render_xu_ui_id;
11781
- const _elem_val = { attributes: [attr], $elm: node_data.$div };
11781
+ const elem_key = node.xu_render_xu_ui_id;
11782
+ const elem_val = { attributes: [attr], $elm: node_data.$div };
11782
11783
 
11783
11784
  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
 
11785
11786
  var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
11786
11787
 
11787
11788
  const obj = {
11788
- ui_type: _elem_val.$elm.data().xuData.ui_type,
11789
+ ui_type: elem_val.$elm.data().xuData.ui_type,
11789
11790
  SESSION_ID,
11790
- elem_key: _elem_key,
11791
- elem_val: _elem_val,
11791
+ elem_key,
11792
+ elem_val,
11792
11793
  fields_arr,
11793
11794
  attr_value,
11794
11795
  };
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);
11796
+ 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);
11796
11797
  }
11797
11798
  }
11798
11799
  }
@@ -9495,6 +9495,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9495
9495
  debugger;
9496
9496
  // $.each(_$elem, function (key, val) {
9497
9497
  for await (const [key, val] of Object.entries(_$elem)) {
9498
+ if (key === 'length') break;
9498
9499
  if ($(val).data().xuData.node) {
9499
9500
  // $.each($(val).data().xuData.node.children, function (key, node) {
9500
9501
  for await (const node of $(val).data().xuData.node.children) {
@@ -9502,22 +9503,22 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9502
9503
 
9503
9504
  if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
9504
9505
  const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id][node.xu_render_cache_id];
9505
- const _elem_key = node.xu_render_xu_ui_id;
9506
- const _elem_val = { attributes: [attr], $elm: node_data.$div };
9506
+ const elem_key = node.xu_render_xu_ui_id;
9507
+ const elem_val = { attributes: [attr], $elm: node_data.$div };
9507
9508
 
9508
9509
  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
 
9510
9511
  var attr_value = await func.common.get_cast_val(SESSION_ID, 'refresh xu-attributes', 'xu-render', 'bool', res.result);
9511
9512
 
9512
9513
  const obj = {
9513
- ui_type: _elem_val.$elm.data().xuData.ui_type,
9514
+ ui_type: elem_val.$elm.data().xuData.ui_type,
9514
9515
  SESSION_ID,
9515
- elem_key: _elem_key,
9516
- elem_val: _elem_val,
9516
+ elem_key,
9517
+ elem_val,
9517
9518
  fields_arr,
9518
9519
  attr_value,
9519
9520
  };
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);
9521
+ 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);
9521
9522
  }
9522
9523
  }
9523
9524
  }