@xuda.io/runtime-bundle 1.0.957 → 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.
@@ -31013,13 +31013,14 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
31013
31013
  func.UI.main.embed_prog_execute(SESSION_ID, prog);
31014
31014
  };
31015
31015
  func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh) {
31016
- // if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
31017
- // // let dom to finish
31018
- // setTimeout(() => {
31019
- // func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
31020
- // }, 100);
31021
- // return;
31022
- // }
31016
+ if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
31017
+ // let dom to finish
31018
+ setTimeout(() => {
31019
+ func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
31020
+ }, 100);
31021
+ return;
31022
+ }
31023
+
31023
31024
  UI_WORKER_OBJ.cache = {};
31024
31025
  const _session = SESSION_OBJ[SESSION_ID];
31025
31026
  if (glb.DEBUG_MODE) {
@@ -31137,11 +31138,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31137
31138
 
31138
31139
  get_selectors();
31139
31140
  // console.log('selectors>>>>', selectors);
31140
- let children_items_ignore_list = [];
31141
+
31141
31142
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
31142
31143
  if (elem_key === 'length') break;
31143
- // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
31144
- // if (!xu_ui_id) continue;
31144
+
31145
+ if (!elem_val.$elm.data().xuData) continue;
31145
31146
  if (elem_val.$elm.data().xuData.pending_to_delete) continue;
31146
31147
 
31147
31148
  const add_execute_queue = async function (type) {
@@ -31195,7 +31196,6 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31195
31196
 
31196
31197
  // mark children items ignore list
31197
31198
  $.each(elem_val.$elm.find('*'), function (key, val) {
31198
- // children_items_ignore_list.push($(val).attr('xu-ui-id'));
31199
31199
  if ($(val).data().xuData) {
31200
31200
  $(val).data().xuData.pending_to_delete = true;
31201
31201
  }
@@ -31223,10 +31223,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31223
31223
  for await (let [elem_key, elem_val] of Object.entries(selectors)) {
31224
31224
  if (elem_key === 'length') break;
31225
31225
 
31226
- // const xu_ui_id = $(elem_val.$elm).attr('xu-ui-id');
31227
- // if (!xu_ui_id) continue;
31228
- // if (children_items_ignore_list.includes(xu_ui_id)) continue;
31229
-
31226
+ if (!elem_val.$elm.data().xuData) continue;
31230
31227
  if (elem_val.$elm.data().xuData.pending_to_delete) continue;
31231
31228
 
31232
31229
  if (!elem_val.attributes.includes('xu-exp:xu-for') && !elem_val.attributes.includes('xu-for')) continue;