@xuda.io/runtime-bundle 1.0.958 → 1.0.959

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.
@@ -11327,13 +11327,14 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
11327
11327
  func.UI.main.embed_prog_execute(SESSION_ID, prog);
11328
11328
  };
11329
11329
  func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh) {
11330
- // if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
11331
- // // let dom to finish
11332
- // setTimeout(() => {
11333
- // func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
11334
- // }, 100);
11335
- // return;
11336
- // }
11330
+ if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
11331
+ // let dom to finish
11332
+ setTimeout(() => {
11333
+ func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
11334
+ }, 100);
11335
+ return;
11336
+ }
11337
+
11337
11338
  UI_WORKER_OBJ.cache = {};
11338
11339
  const _session = SESSION_OBJ[SESSION_ID];
11339
11340
  if (glb.DEBUG_MODE) {
@@ -11451,11 +11452,10 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11451
11452
 
11452
11453
  get_selectors();
11453
11454
  // console.log('selectors>>>>', selectors);
11454
- // let children_items_ignore_list = [];
11455
+
11455
11456
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
11456
11457
  if (elem_key === 'length') break;
11457
- // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
11458
- // if (!xu_ui_id) continue;
11458
+
11459
11459
  if (!elem_val.$elm.data().xuData) continue;
11460
11460
  if (elem_val.$elm.data().xuData.pending_to_delete) continue;
11461
11461
 
@@ -11510,7 +11510,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11510
11510
 
11511
11511
  // mark children items ignore list
11512
11512
  $.each(elem_val.$elm.find('*'), function (key, val) {
11513
- // children_items_ignore_list.push($(val).attr('xu-ui-id'));
11514
11513
  if ($(val).data().xuData) {
11515
11514
  $(val).data().xuData.pending_to_delete = true;
11516
11515
  }
@@ -11538,9 +11537,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11538
11537
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
11539
11538
  if (elem_key === 'length') break;
11540
11539
 
11541
- // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
11542
- // if (!xu_ui_id) continue;
11543
- // if (children_items_ignore_list.includes(xu_ui_id)) continue;
11544
11540
  if (!elem_val.$elm.data().xuData) continue;
11545
11541
  if (elem_val.$elm.data().xuData.pending_to_delete) continue;
11546
11542
 
@@ -9054,13 +9054,14 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
9054
9054
  func.UI.main.embed_prog_execute(SESSION_ID, prog);
9055
9055
  };
9056
9056
  func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh) {
9057
- // if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
9058
- // // let dom to finish
9059
- // setTimeout(() => {
9060
- // func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
9061
- // }, 100);
9062
- // return;
9063
- // }
9057
+ if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
9058
+ // let dom to finish
9059
+ setTimeout(() => {
9060
+ func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
9061
+ }, 100);
9062
+ return;
9063
+ }
9064
+
9064
9065
  UI_WORKER_OBJ.cache = {};
9065
9066
  const _session = SESSION_OBJ[SESSION_ID];
9066
9067
  if (glb.DEBUG_MODE) {
@@ -9178,11 +9179,10 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9178
9179
 
9179
9180
  get_selectors();
9180
9181
  // console.log('selectors>>>>', selectors);
9181
- // let children_items_ignore_list = [];
9182
+
9182
9183
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
9183
9184
  if (elem_key === 'length') break;
9184
- // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
9185
- // if (!xu_ui_id) continue;
9185
+
9186
9186
  if (!elem_val.$elm.data().xuData) continue;
9187
9187
  if (elem_val.$elm.data().xuData.pending_to_delete) continue;
9188
9188
 
@@ -9237,7 +9237,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9237
9237
 
9238
9238
  // mark children items ignore list
9239
9239
  $.each(elem_val.$elm.find('*'), function (key, val) {
9240
- // children_items_ignore_list.push($(val).attr('xu-ui-id'));
9241
9240
  if ($(val).data().xuData) {
9242
9241
  $(val).data().xuData.pending_to_delete = true;
9243
9242
  }
@@ -9265,9 +9264,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9265
9264
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
9266
9265
  if (elem_key === 'length') break;
9267
9266
 
9268
- // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
9269
- // if (!xu_ui_id) continue;
9270
- // if (children_items_ignore_list.includes(xu_ui_id)) continue;
9271
9267
  if (!elem_val.$elm.data().xuData) continue;
9272
9268
  if (elem_val.$elm.data().xuData.pending_to_delete) continue;
9273
9269