@xuda.io/runtime-bundle 1.0.853 → 1.0.854

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.
@@ -31222,7 +31222,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31222
31222
  }
31223
31223
  UI_WORKER_OBJ.cache = {};
31224
31224
  const _session = SESSION_OBJ[SESSION_ID];
31225
- if (_session.engine_mode === 'live_preview') {
31225
+ if (glb.DEBUG_MODE) {
31226
31226
  console.info('========= xu-attributes refresh info ==============');
31227
31227
  console.info('fields_arr:', fields_arr);
31228
31228
  }
@@ -31332,7 +31332,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31332
31332
  };
31333
31333
  new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', type, obj, new_job, elem_val.$elm);
31334
31334
 
31335
- if (_session.engine_mode === 'live_preview') {
31335
+ if (glb.DEBUG_MODE) {
31336
31336
  console.log(type + '>>>', new_job, obj);
31337
31337
  }
31338
31338
  };
@@ -31367,7 +31367,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31367
31367
  new_job = jobNoP;
31368
31368
  new_job = await 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);
31369
31369
  performed_render = true;
31370
- if (_session.engine_mode === 'live_preview') {
31370
+ if (glb.DEBUG_MODE) {
31371
31371
  console.info('execute_xu_render_attributes', obj);
31372
31372
  }
31373
31373
  }
@@ -31422,7 +31422,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31422
31422
 
31423
31423
  refreshed_ids.push(parent_element_ui_id);
31424
31424
 
31425
- if (_session.engine_mode === 'live_preview') {
31425
+ if (glb.DEBUG_MODE) {
31426
31426
  console.info('execute_xu_for', obj);
31427
31427
  }
31428
31428
  }
@@ -31500,7 +31500,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31500
31500
 
31501
31501
  func.events.delete_job(SESSION_ID, jobNoP);
31502
31502
 
31503
- if (_session.engine_mode === 'live_preview') {
31503
+ if (glb.DEBUG_MODE) {
31504
31504
  console.info('===================================================');
31505
31505
  }
31506
31506
  };
@@ -31639,7 +31639,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31639
31639
  // $("[xu-ui-id='" + elm_to_delete + "']").remove();
31640
31640
  // });
31641
31641
 
31642
- if (_session.engine_mode === 'live_preview') {
31642
+ if (glb.DEBUG_MODE) {
31643
31643
  console.info('========= refresh main info ==============');
31644
31644
  console.info('reason:', refresh_reason);
31645
31645
  console.info('element:', $elm);
@@ -31676,7 +31676,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31676
31676
  if (found) {
31677
31677
  UI_WORKER_OBJ.cache = {};
31678
31678
  const _session = SESSION_OBJ[SESSION_ID];
31679
- if (_session.engine_mode === 'live_preview') {
31679
+ if (glb.DEBUG_MODE) {
31680
31680
  console.info('========= refresh info ==============');
31681
31681
  console.info('reason:', refresh_reason);
31682
31682
  console.info('details:', refresh_details);
@@ -33748,8 +33748,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
33748
33748
  const _$ = function ($elm) {
33749
33749
  try {
33750
33750
  const id = $elm.attr('xu-ui-id');
33751
- if (!id) return $elm;
33752
- const $el = $(`[xu-ui-id="${id}"]`); // $("#" + id);
33751
+ if (!id || !glb.DEBUG_MODE) return $elm;
33752
+ const $el = $(`[xu-ui-id="${id}"]`);
33753
33753
 
33754
33754
  if ($el.length > 1) {
33755
33755
  console.warn('Multiple elements for xu-ui-id: ' + id, $el);
@@ -34441,10 +34441,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34441
34441
  },
34442
34442
  );
34443
34443
 
34444
- // const render_child = async function () {
34445
- // await iterate_child($div, nodeP, parent_infoP, $root_container);
34446
- // };
34447
-
34448
34444
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
34449
34445
  $div.on('inViewport', function () {
34450
34446
  if ($div.children().length) {
@@ -34458,6 +34454,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34458
34454
  } else {
34459
34455
  hover_in($div);
34460
34456
  func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
34457
+ //viewport_elm_height
34458
+ if (!$div.parent().data().xuData.viewport_elm_height) {
34459
+ setTimeout(() => {
34460
+ $div.parent().data().xuData.viewport_elm_height = $div.height();
34461
+ }, 2000);
34462
+ }
34461
34463
  }
34462
34464
  observer_outViewport.observe($div[0]);
34463
34465
  });