@xuda.io/runtime-bundle 1.0.562 → 1.0.564

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.
@@ -12351,6 +12351,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12351
12351
  return ret;
12352
12352
  },
12353
12353
  },
12354
+ [`xu-teleport`]: {
12355
+ to: async function ($elm, val) {
12356
+ debugger;
12357
+ },
12358
+ },
12354
12359
  };
12355
12360
 
12356
12361
  const load_cdn = async function (resource) {
@@ -12608,7 +12613,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12608
12613
  $xurender.data('xuData', cloned_$div.data().xuData);
12609
12614
  $xurender.data().xuData.original_data_obj = original_data_obj;
12610
12615
  $xurender.data().xuData.xurender_node = cloned_$div;
12611
- $xurender.data().xuAttributes = nodeP.attributes;
12616
+ $xurender.data().xuAttributes = nodeP.attributes || {};
12612
12617
  $xurender.hide();
12613
12618
 
12614
12619
  $elm.remove();
@@ -12647,7 +12652,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12647
12652
 
12648
12653
  new_$div.data().xuData.original_data_obj = original_data_obj;
12649
12654
  new_$div.data().xuData.xurender_node = $elm.clone(true);
12650
- new_$div.data().xuAttributes = $elm.data().xuAttributes;
12655
+ new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
12651
12656
 
12652
12657
  const replace = async function () {
12653
12658
  $elm.replaceWith(new_$div);
@@ -12684,15 +12689,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12684
12689
  // was true before
12685
12690
  if ($elm.data().xuData.xurender_node) {
12686
12691
  $xurender.data({
12687
- xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes,
12688
- xuData: $elm.data().xuData.xurender_node.data().xuData,
12692
+ xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
12693
+ xuData: $elm.data().xuData.xurender_node.data().xuData || {},
12689
12694
  });
12690
12695
  } else {
12691
12696
  // default new state
12692
12697
 
12693
12698
  $xurender.data({
12694
- xuAttributes: $elm.data().xuAttributes,
12695
- xuData: $elm.data().xuData,
12699
+ xuAttributes: $elm.data().xuAttributes || {},
12700
+ xuData: $elm.data().xuData || {},
12696
12701
  });
12697
12702
  $xurender.data().xuData.original_data_obj = {
12698
12703
  nodeP: _.cloneDeep($elm.data().xuData.node_org),
@@ -14369,7 +14374,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14369
14374
  }
14370
14375
 
14371
14376
  const ret = await iterate_child($div, nodeP, null, null, $div);
14372
- if ($container.data().xuAttributes) {
14377
+ if (_.isEmpty($container.data().xuAttributes)) {
14373
14378
  await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
14374
14379
  }
14375
14380
 
@@ -14466,7 +14471,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14466
14471
  _ds.currentRecordId = val._ROWID;
14467
14472
  const ret = await iterate_child($div, node, { continuous_idx }, null, $root_container);
14468
14473
 
14469
- if ($container.data().xuAttributes) {
14474
+ if (_.isEmpty($container.data().xuAttributes)) {
14470
14475
  await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
14471
14476
  }
14472
14477
  }
@@ -10083,6 +10083,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10083
10083
  return ret;
10084
10084
  },
10085
10085
  },
10086
+ [`xu-teleport`]: {
10087
+ to: async function ($elm, val) {
10088
+ debugger;
10089
+ },
10090
+ },
10086
10091
  };
10087
10092
 
10088
10093
  const load_cdn = async function (resource) {
@@ -10340,7 +10345,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10340
10345
  $xurender.data('xuData', cloned_$div.data().xuData);
10341
10346
  $xurender.data().xuData.original_data_obj = original_data_obj;
10342
10347
  $xurender.data().xuData.xurender_node = cloned_$div;
10343
- $xurender.data().xuAttributes = nodeP.attributes;
10348
+ $xurender.data().xuAttributes = nodeP.attributes || {};
10344
10349
  $xurender.hide();
10345
10350
 
10346
10351
  $elm.remove();
@@ -10379,7 +10384,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10379
10384
 
10380
10385
  new_$div.data().xuData.original_data_obj = original_data_obj;
10381
10386
  new_$div.data().xuData.xurender_node = $elm.clone(true);
10382
- new_$div.data().xuAttributes = $elm.data().xuAttributes;
10387
+ new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
10383
10388
 
10384
10389
  const replace = async function () {
10385
10390
  $elm.replaceWith(new_$div);
@@ -10416,15 +10421,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10416
10421
  // was true before
10417
10422
  if ($elm.data().xuData.xurender_node) {
10418
10423
  $xurender.data({
10419
- xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes,
10420
- xuData: $elm.data().xuData.xurender_node.data().xuData,
10424
+ xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
10425
+ xuData: $elm.data().xuData.xurender_node.data().xuData || {},
10421
10426
  });
10422
10427
  } else {
10423
10428
  // default new state
10424
10429
 
10425
10430
  $xurender.data({
10426
- xuAttributes: $elm.data().xuAttributes,
10427
- xuData: $elm.data().xuData,
10431
+ xuAttributes: $elm.data().xuAttributes || {},
10432
+ xuData: $elm.data().xuData || {},
10428
10433
  });
10429
10434
  $xurender.data().xuData.original_data_obj = {
10430
10435
  nodeP: _.cloneDeep($elm.data().xuData.node_org),
@@ -12101,7 +12106,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12101
12106
  }
12102
12107
 
12103
12108
  const ret = await iterate_child($div, nodeP, null, null, $div);
12104
- if ($container.data().xuAttributes) {
12109
+ if (_.isEmpty($container.data().xuAttributes)) {
12105
12110
  await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
12106
12111
  }
12107
12112
 
@@ -12198,7 +12203,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12198
12203
  _ds.currentRecordId = val._ROWID;
12199
12204
  const ret = await iterate_child($div, node, { continuous_idx }, null, $root_container);
12200
12205
 
12201
- if ($container.data().xuAttributes) {
12206
+ if (_.isEmpty($container.data().xuAttributes)) {
12202
12207
  await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $container, true);
12203
12208
  }
12204
12209
  }