@xuda.io/runtime-bundle 1.0.1033 → 1.0.1035

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.
@@ -11575,7 +11575,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11575
11575
  }
11576
11576
  });
11577
11577
 
11578
- const selector_id = $(this).data()?.xuData?.xu_id;
11578
+ const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
11579
11579
 
11580
11580
  if (attr.length) {
11581
11581
  selectors[selector_id] = selectors[selector_id];
@@ -11772,7 +11772,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11772
11772
  if ($(val).data().xuData.node) {
11773
11773
  $.each($(val).data().xuData.node.children, function (key, node) {
11774
11774
  if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
11775
+ const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id][node.xu_render_cache_id];
11776
+ const _elem_key = node.xu_render_xu_ui_id;
11777
+ const _elem_val = { attributes: [attr], $elm: node_data.$div };
11775
11778
  const obj = {
11779
+ ui_type: _elem_val.$elm.data().xuData.ui_type,
11776
11780
  SESSION_ID,
11777
11781
  elem_key: _elem_key,
11778
11782
  elem_val: _elem_val,
@@ -12652,6 +12656,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12652
12656
 
12653
12657
  // $elm.remove();
12654
12658
  // nodeP.xu_render_made = true;
12659
+
12655
12660
  return { xu_render_in_process: true };
12656
12661
  }
12657
12662
  return {};
@@ -14804,8 +14809,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14804
14809
  if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
14805
14810
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
14806
14811
  }
14807
- const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
14808
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = { $div: $div.clone(true) };
14812
+ const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
14813
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true) };
14814
+ nodeP.xu_render_xu_ui_id = xu_ui_id;
14815
+ nodeP.xu_render_cache_id = xu_render_cache_id;
14809
14816
  return $div;
14810
14817
  } else {
14811
14818
  $container.append(temp_$container.children());
@@ -9300,7 +9300,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9300
9300
  }
9301
9301
  });
9302
9302
 
9303
- const selector_id = $(this).data()?.xuData?.xu_id;
9303
+ const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
9304
9304
 
9305
9305
  if (attr.length) {
9306
9306
  selectors[selector_id] = selectors[selector_id];
@@ -9497,7 +9497,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9497
9497
  if ($(val).data().xuData.node) {
9498
9498
  $.each($(val).data().xuData.node.children, function (key, node) {
9499
9499
  if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
9500
+ const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id][node.xu_render_cache_id];
9501
+ const _elem_key = node.xu_render_xu_ui_id;
9502
+ const _elem_val = { attributes: [attr], $elm: node_data.$div };
9500
9503
  const obj = {
9504
+ ui_type: _elem_val.$elm.data().xuData.ui_type,
9501
9505
  SESSION_ID,
9502
9506
  elem_key: _elem_key,
9503
9507
  elem_val: _elem_val,
@@ -10377,6 +10381,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10377
10381
 
10378
10382
  // $elm.remove();
10379
10383
  // nodeP.xu_render_made = true;
10384
+
10380
10385
  return { xu_render_in_process: true };
10381
10386
  }
10382
10387
  return {};
@@ -12529,8 +12534,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12529
12534
  if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
12530
12535
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
12531
12536
  }
12532
- const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
12533
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = { $div: $div.clone(true) };
12537
+ const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
12538
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true) };
12539
+ nodeP.xu_render_xu_ui_id = xu_ui_id;
12540
+ nodeP.xu_render_cache_id = xu_render_cache_id;
12534
12541
  return $div;
12535
12542
  } else {
12536
12543
  $container.append(temp_$container.children());