@xuda.io/runtime-bundle 1.0.808 → 1.0.810

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.
@@ -8746,11 +8746,13 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8746
8746
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8747
8747
  if (nodeP?.children?.length) {
8748
8748
  func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
8749
- for await (const [key, val] of Object.entries(nodeP.children)) {
8750
- const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
8751
- }
8749
+ setTimeout(async () => {
8750
+ for await (const [key, val] of Object.entries(nodeP.children)) {
8751
+ const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
8752
+ }
8753
+ return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8754
+ }, 1000);
8752
8755
  }
8753
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8754
8756
  },
8755
8757
  };
8756
8758
 
@@ -14737,9 +14739,9 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14737
14739
  },
14738
14740
  );
14739
14741
 
14740
- const render_child = async function () {
14741
- await iterate_child($div, nodeP, parent_infoP, $root_container);
14742
- };
14742
+ // const render_child = async function () {
14743
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
14744
+ // };
14743
14745
 
14744
14746
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
14745
14747
  // console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
@@ -14808,6 +14810,22 @@ func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP, is_sk
14808
14810
  var _session = SESSION_OBJ[SESSION_ID];
14809
14811
  var _ds = _session.DS_GLB[paramsP.dsSessionP];
14810
14812
 
14813
+ const _$ = function ($elm) {
14814
+ try {
14815
+ const id = $elm.attr('xu-ui-id');
14816
+ if (!id) return $elm;
14817
+ const $el = $(`[xu-ui-id="${id}"]`); // $("#" + id);
14818
+
14819
+ if ($el.length > 1) {
14820
+ console.warn('Multiple elements for xu-ui-id: ' + id, $el);
14821
+ }
14822
+
14823
+ return $($el[0]);
14824
+ } catch (e) {
14825
+ console.error(e);
14826
+ }
14827
+ };
14828
+
14811
14829
  CLIENT_ACTIVITY_TS = Date.now();
14812
14830
  if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
14813
14831
  if (!_ds) return;
@@ -8747,11 +8747,13 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8747
8747
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8748
8748
  if (nodeP?.children?.length) {
8749
8749
  func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
8750
- for await (const [key, val] of Object.entries(nodeP.children)) {
8751
- const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
8752
- }
8750
+ setTimeout(async () => {
8751
+ for await (const [key, val] of Object.entries(nodeP.children)) {
8752
+ const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
8753
+ }
8754
+ return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8755
+ }, 1000);
8753
8756
  }
8754
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8755
8757
  },
8756
8758
  };
8757
8759
 
@@ -12445,9 +12447,9 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12445
12447
  },
12446
12448
  );
12447
12449
 
12448
- const render_child = async function () {
12449
- await iterate_child($div, nodeP, parent_infoP, $root_container);
12450
- };
12450
+ // const render_child = async function () {
12451
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
12452
+ // };
12451
12453
 
12452
12454
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
12453
12455
  // console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
@@ -12516,6 +12518,22 @@ func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP, is_sk
12516
12518
  var _session = SESSION_OBJ[SESSION_ID];
12517
12519
  var _ds = _session.DS_GLB[paramsP.dsSessionP];
12518
12520
 
12521
+ const _$ = function ($elm) {
12522
+ try {
12523
+ const id = $elm.attr('xu-ui-id');
12524
+ if (!id) return $elm;
12525
+ const $el = $(`[xu-ui-id="${id}"]`); // $("#" + id);
12526
+
12527
+ if ($el.length > 1) {
12528
+ console.warn('Multiple elements for xu-ui-id: ' + id, $el);
12529
+ }
12530
+
12531
+ return $($el[0]);
12532
+ } catch (e) {
12533
+ console.error(e);
12534
+ }
12535
+ };
12536
+
12519
12537
  CLIENT_ACTIVITY_TS = Date.now();
12520
12538
  if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
12521
12539
  if (!_ds) return;