@xuda.io/runtime-bundle 1.0.808 → 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.
@@ -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'));
@@ -14808,6 +14808,22 @@ func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP, is_sk
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;
@@ -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'));
@@ -12516,6 +12516,22 @@ func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP, is_sk
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;