@xuda.io/runtime-bundle 1.0.945 → 1.0.947

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.
@@ -11357,7 +11357,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11357
11357
  const elm_data = $(this).data();
11358
11358
  if (!elm_data.xuData) return true;
11359
11359
 
11360
- if (typeof dsSession_changed !== 'undefined' && elm_data.xuData.paramsP.dsSessionP < dsSession_changed) return true;
11360
+ if (typeof dsSession_changed !== 'undefined' && elm_data.xuData.paramsP && elm_data.xuData.paramsP.dsSessionP < dsSession_changed) return true;
11361
11361
 
11362
11362
  let attr = [];
11363
11363
 
@@ -11454,9 +11454,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11454
11454
  let children_items_ignore_list = [];
11455
11455
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
11456
11456
  if (elem_key === 'length') break;
11457
- const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
11458
- if (!xu_ui_id) continue;
11459
- if (children_items_ignore_list.includes(xu_ui_id)) continue;
11457
+ // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
11458
+ // if (!xu_ui_id) continue;
11459
+ if (elem_val.$elm.data().xuData.pending_to_delete) continue;
11460
11460
 
11461
11461
  const add_execute_queue = async function (type) {
11462
11462
  if (!elem_val.$elm?.data?.()?.xuData) return;
@@ -11494,6 +11494,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11494
11494
 
11495
11495
  if (!elem_val?.$elm?.data()?.xuData?.ui_type) continue;
11496
11496
 
11497
+ // RENDER = false handler
11497
11498
  const obj = {
11498
11499
  ui_type: elem_val.$elm.data().xuData.ui_type,
11499
11500
  SESSION_ID,
@@ -11508,7 +11509,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11508
11509
 
11509
11510
  // mark children items ignore list
11510
11511
  $.each(elem_val.$elm.find('*'), function (key, val) {
11511
- children_items_ignore_list.push($(val).attr('xu-ui-id'));
11512
+ // children_items_ignore_list.push($(val).attr('xu-ui-id'));
11513
+ $(val).data().xuData.pending_to_delete = true;
11512
11514
  });
11513
11515
 
11514
11516
  if (glb.DEBUG_MODE) {
@@ -11533,6 +11535,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11533
11535
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
11534
11536
  if (elem_key === 'length') break;
11535
11537
 
11538
+ // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
11539
+ // if (!xu_ui_id) continue;
11540
+ // if (children_items_ignore_list.includes(xu_ui_id)) continue;
11541
+
11542
+ if (elem_val.$elm.data().xuData.pending_to_delete) continue;
11543
+
11536
11544
  if (!elem_val.attributes.includes('xu-exp:xu-for') && !elem_val.attributes.includes('xu-for')) continue;
11537
11545
 
11538
11546
  let _parent_element_ui_id;
@@ -11783,6 +11791,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11783
11791
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
11784
11792
  // const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
11785
11793
 
11794
+ if ($panel_div.data().xuData.pending_to_delete) continue;
11795
+
11786
11796
  if (fields_changed_arr) {
11787
11797
  if (fields_changed_datasource && panel_val._ds.dsSession <= Number(fields_changed_datasource)) {
11788
11798
  continue;
@@ -9084,7 +9084,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9084
9084
  const elm_data = $(this).data();
9085
9085
  if (!elm_data.xuData) return true;
9086
9086
 
9087
- if (typeof dsSession_changed !== 'undefined' && elm_data.xuData.paramsP.dsSessionP < dsSession_changed) return true;
9087
+ if (typeof dsSession_changed !== 'undefined' && elm_data.xuData.paramsP && elm_data.xuData.paramsP.dsSessionP < dsSession_changed) return true;
9088
9088
 
9089
9089
  let attr = [];
9090
9090
 
@@ -9181,9 +9181,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9181
9181
  let children_items_ignore_list = [];
9182
9182
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
9183
9183
  if (elem_key === 'length') break;
9184
- const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
9185
- if (!xu_ui_id) continue;
9186
- if (children_items_ignore_list.includes(xu_ui_id)) continue;
9184
+ // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
9185
+ // if (!xu_ui_id) continue;
9186
+ if (elem_val.$elm.data().xuData.pending_to_delete) continue;
9187
9187
 
9188
9188
  const add_execute_queue = async function (type) {
9189
9189
  if (!elem_val.$elm?.data?.()?.xuData) return;
@@ -9221,6 +9221,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9221
9221
 
9222
9222
  if (!elem_val?.$elm?.data()?.xuData?.ui_type) continue;
9223
9223
 
9224
+ // RENDER = false handler
9224
9225
  const obj = {
9225
9226
  ui_type: elem_val.$elm.data().xuData.ui_type,
9226
9227
  SESSION_ID,
@@ -9235,7 +9236,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9235
9236
 
9236
9237
  // mark children items ignore list
9237
9238
  $.each(elem_val.$elm.find('*'), function (key, val) {
9238
- children_items_ignore_list.push($(val).attr('xu-ui-id'));
9239
+ // children_items_ignore_list.push($(val).attr('xu-ui-id'));
9240
+ $(val).data().xuData.pending_to_delete = true;
9239
9241
  });
9240
9242
 
9241
9243
  if (glb.DEBUG_MODE) {
@@ -9260,6 +9262,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9260
9262
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
9261
9263
  if (elem_key === 'length') break;
9262
9264
 
9265
+ // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
9266
+ // if (!xu_ui_id) continue;
9267
+ // if (children_items_ignore_list.includes(xu_ui_id)) continue;
9268
+
9269
+ if (elem_val.$elm.data().xuData.pending_to_delete) continue;
9270
+
9263
9271
  if (!elem_val.attributes.includes('xu-exp:xu-for') && !elem_val.attributes.includes('xu-for')) continue;
9264
9272
 
9265
9273
  let _parent_element_ui_id;
@@ -9510,6 +9518,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9510
9518
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
9511
9519
  // const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
9512
9520
 
9521
+ if ($panel_div.data().xuData.pending_to_delete) continue;
9522
+
9513
9523
  if (fields_changed_arr) {
9514
9524
  if (fields_changed_datasource && panel_val._ds.dsSession <= Number(fields_changed_datasource)) {
9515
9525
  continue;