@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.
@@ -27836,11 +27836,13 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27836
27836
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
27837
27837
  if (nodeP?.children?.length) {
27838
27838
  func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
27839
- for await (const [key, val] of Object.entries(nodeP.children)) {
27840
- 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);
27841
- }
27839
+ setTimeout(async () => {
27840
+ for await (const [key, val] of Object.entries(nodeP.children)) {
27841
+ 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);
27842
+ }
27843
+ return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
27844
+ }, 1000);
27842
27845
  }
27843
- return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
27844
27846
  },
27845
27847
  };
27846
27848
 
@@ -34404,9 +34406,9 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34404
34406
  },
34405
34407
  );
34406
34408
 
34407
- const render_child = async function () {
34408
- await iterate_child($div, nodeP, parent_infoP, $root_container);
34409
- };
34409
+ // const render_child = async function () {
34410
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
34411
+ // };
34410
34412
 
34411
34413
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
34412
34414
  // console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
@@ -34475,6 +34477,22 @@ func.UI.screen.hover_in = function (SESSION_ID, $div, $container, paramsP, is_sk
34475
34477
  var _session = SESSION_OBJ[SESSION_ID];
34476
34478
  var _ds = _session.DS_GLB[paramsP.dsSessionP];
34477
34479
 
34480
+ const _$ = function ($elm) {
34481
+ try {
34482
+ const id = $elm.attr('xu-ui-id');
34483
+ if (!id) return $elm;
34484
+ const $el = $(`[xu-ui-id="${id}"]`); // $("#" + id);
34485
+
34486
+ if ($el.length > 1) {
34487
+ console.warn('Multiple elements for xu-ui-id: ' + id, $el);
34488
+ }
34489
+
34490
+ return $($el[0]);
34491
+ } catch (e) {
34492
+ console.error(e);
34493
+ }
34494
+ };
34495
+
34478
34496
  CLIENT_ACTIVITY_TS = Date.now();
34479
34497
  if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
34480
34498
  if (!_ds) return;