@xuda.io/runtime-bundle 1.0.1254 → 1.0.1256

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.
@@ -14067,7 +14067,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
14067
14067
  },
14068
14068
 
14069
14069
  'xu-ref': async function ($elm, val) {
14070
- return await common_fx['xu-ref']($container, val, $container.data().xuData.xuPanelData.xuData.paramsP.dsSessionP);
14070
+ return await common_fx['xu-ref']($container, val, $container?.data?.()?.xuData?.xuPanelData?.xuData?.paramsP?.dsSessionP);
14071
14071
  },
14072
14072
  },
14073
14073
 
@@ -16786,14 +16786,22 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
16786
16786
  break;
16787
16787
 
16788
16788
  default:
16789
- if (!$nav?.length) {
16790
- const $newNav = $('<xu-nav>');
16791
- $container.append($newNav);
16792
- func.UI.component.init_xu_nav($container, $newNav);
16789
+ let $activeNav = $nav;
16790
+ if (!$activeNav?.length) {
16791
+ $activeNav = $('<xu-nav>');
16792
+ $container.append($activeNav);
16793
+ func.UI.component.init_xu_nav($container, $activeNav);
16793
16794
  }
16794
16795
 
16795
- $nav.data().xuData.$div = $div_content;
16796
- await $nav[0].setRoot(`xu-root-component-${SESSION_ID}`);
16796
+ const navData = $activeNav.data().xuData;
16797
+ if (navData) {
16798
+ navData.$div = $div_content;
16799
+ }
16800
+
16801
+ const navElement = $activeNav[0];
16802
+ if (navElement && navElement.setRoot) {
16803
+ await navElement.setRoot(`xu-root-component-${SESSION_ID}`);
16804
+ }
16797
16805
  $ret = $container;
16798
16806
  break;
16799
16807
  }
@@ -11792,7 +11792,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
11792
11792
  },
11793
11793
 
11794
11794
  'xu-ref': async function ($elm, val) {
11795
- return await common_fx['xu-ref']($container, val, $container.data().xuData.xuPanelData.xuData.paramsP.dsSessionP);
11795
+ return await common_fx['xu-ref']($container, val, $container?.data?.()?.xuData?.xuPanelData?.xuData?.paramsP?.dsSessionP);
11796
11796
  },
11797
11797
  },
11798
11798
 
@@ -14511,14 +14511,22 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14511
14511
  break;
14512
14512
 
14513
14513
  default:
14514
- if (!$nav?.length) {
14515
- const $newNav = $('<xu-nav>');
14516
- $container.append($newNav);
14517
- func.UI.component.init_xu_nav($container, $newNav);
14514
+ let $activeNav = $nav;
14515
+ if (!$activeNav?.length) {
14516
+ $activeNav = $('<xu-nav>');
14517
+ $container.append($activeNav);
14518
+ func.UI.component.init_xu_nav($container, $activeNav);
14518
14519
  }
14519
14520
 
14520
- $nav.data().xuData.$div = $div_content;
14521
- await $nav[0].setRoot(`xu-root-component-${SESSION_ID}`);
14521
+ const navData = $activeNav.data().xuData;
14522
+ if (navData) {
14523
+ navData.$div = $div_content;
14524
+ }
14525
+
14526
+ const navElement = $activeNav[0];
14527
+ if (navElement && navElement.setRoot) {
14528
+ await navElement.setRoot(`xu-root-component-${SESSION_ID}`);
14529
+ }
14522
14530
  $ret = $container;
14523
14531
  break;
14524
14532
  }