@xuda.io/runtime-bundle 1.0.807 → 1.0.809

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.
@@ -8745,7 +8745,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8745
8745
  render_viewport: async function () {
8746
8746
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8747
8747
  if (nodeP?.children?.length) {
8748
- func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP);
8748
+ func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
8749
8749
  for await (const [key, val] of Object.entries(nodeP.children)) {
8750
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
8751
  }
@@ -14737,9 +14737,9 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14737
14737
  },
14738
14738
  );
14739
14739
 
14740
- const render_child = async function () {
14741
- await iterate_child($div, nodeP, parent_infoP, $root_container);
14742
- };
14740
+ // const render_child = async function () {
14741
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
14742
+ // };
14743
14743
 
14744
14744
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
14745
14745
  // console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
@@ -14802,12 +14802,28 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
14802
14802
  }
14803
14803
  };
14804
14804
 
14805
- func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP) {
14805
+ func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP, is_skeleton) {
14806
14806
  if (is_skeleton || EXP_BUSY) return;
14807
14807
 
14808
14808
  var _session = SESSION_OBJ[SESSION_ID];
14809
14809
  var _ds = _session.DS_GLB[paramsP.dsSessionP];
14810
14810
 
14811
+ const _$ = function ($elm) {
14812
+ try {
14813
+ const id = $elm.attr('xu-ui-id');
14814
+ if (!id) return $elm;
14815
+ const $el = $(`[xu-ui-id="${id}"]`); // $("#" + id);
14816
+
14817
+ if ($el.length > 1) {
14818
+ console.warn('Multiple elements for xu-ui-id: ' + id, $el);
14819
+ }
14820
+
14821
+ return $($el[0]);
14822
+ } catch (e) {
14823
+ console.error(e);
14824
+ }
14825
+ };
14826
+
14811
14827
  CLIENT_ACTIVITY_TS = Date.now();
14812
14828
  if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
14813
14829
  if (!_ds) return;
@@ -8746,7 +8746,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8746
8746
  render_viewport: async function () {
8747
8747
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8748
8748
  if (nodeP?.children?.length) {
8749
- func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP);
8749
+ func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
8750
8750
  for await (const [key, val] of Object.entries(nodeP.children)) {
8751
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
8752
  }
@@ -12445,9 +12445,9 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12445
12445
  },
12446
12446
  );
12447
12447
 
12448
- const render_child = async function () {
12449
- await iterate_child($div, nodeP, parent_infoP, $root_container);
12450
- };
12448
+ // const render_child = async function () {
12449
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
12450
+ // };
12451
12451
 
12452
12452
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
12453
12453
  // console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
@@ -12510,12 +12510,28 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
12510
12510
  }
12511
12511
  };
12512
12512
 
12513
- func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP) {
12513
+ func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP, is_skeleton) {
12514
12514
  if (is_skeleton || EXP_BUSY) return;
12515
12515
 
12516
12516
  var _session = SESSION_OBJ[SESSION_ID];
12517
12517
  var _ds = _session.DS_GLB[paramsP.dsSessionP];
12518
12518
 
12519
+ const _$ = function ($elm) {
12520
+ try {
12521
+ const id = $elm.attr('xu-ui-id');
12522
+ if (!id) return $elm;
12523
+ const $el = $(`[xu-ui-id="${id}"]`); // $("#" + id);
12524
+
12525
+ if ($el.length > 1) {
12526
+ console.warn('Multiple elements for xu-ui-id: ' + id, $el);
12527
+ }
12528
+
12529
+ return $($el[0]);
12530
+ } catch (e) {
12531
+ console.error(e);
12532
+ }
12533
+ };
12534
+
12519
12535
  CLIENT_ACTIVITY_TS = Date.now();
12520
12536
  if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
12521
12537
  if (!_ds) return;