@xuda.io/runtime-bundle 1.0.989 → 1.0.991

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.
@@ -12449,7 +12449,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12449
12449
  var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
12450
12450
  const init_render = function () {
12451
12451
  if (!value) {
12452
- var cloned_$div = $elm.clone(true, true);
12452
+ var cloned_$div = $elm.clone(true);
12453
12453
 
12454
12454
  let $xurender = $('<xurender>')
12455
12455
  // .attr('xu-ui-id', nodeP.id + '_' + $elm.data().xuData.recordid)
@@ -12458,6 +12458,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12458
12458
  .appendTo($container)
12459
12459
  .hide();
12460
12460
  let original_data_obj = {
12461
+ not_rendered: true,
12461
12462
  $container: cloned_$div,
12462
12463
  nodeP: _.cloneDeep(nodeP),
12463
12464
  parent_infoP,
@@ -12492,22 +12493,25 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12492
12493
  func.events.delete_job(SESSION_ID, jobNoP);
12493
12494
  return { delete_job: jobNoP };
12494
12495
  }
12495
- // const new_$div = await func.UI.screen.render_ui_tree(
12496
- // SESSION_ID,
12497
- // $elm, //original_data_obj.$container,
12498
- // _.cloneDeep(original_data_obj.nodeP),
12499
- // original_data_obj.parent_infoP,
12500
- // original_data_obj.paramsP,
12501
- // jobNoP,
12502
- // null,
12503
- // original_data_obj.keyP,
12504
- // null,
12505
- // original_data_obj.parent_nodeP,
12506
- // null,
12507
- // original_data_obj.$root_container,
12508
- // );
12509
-
12510
- const new_$div = original_data_obj.$container.clone(true, true);
12496
+
12497
+ let new_$div = original_data_obj.$container.clone(true);
12498
+
12499
+ if (original_data_obj.not_rendered) {
12500
+ new_$div = await func.UI.screen.render_ui_tree(
12501
+ SESSION_ID,
12502
+ $elm, //original_data_obj.$container,
12503
+ _.cloneDeep(original_data_obj.nodeP),
12504
+ original_data_obj.parent_infoP,
12505
+ original_data_obj.paramsP,
12506
+ jobNoP,
12507
+ null,
12508
+ original_data_obj.keyP,
12509
+ null,
12510
+ original_data_obj.parent_nodeP,
12511
+ null,
12512
+ original_data_obj.$root_container,
12513
+ );
12514
+ }
12511
12515
 
12512
12516
  new_$div.data().xuData.original_data_obj = original_data_obj;
12513
12517
  new_$div.data().xuData.xurender_node = $elm.clone(true);
@@ -12568,7 +12572,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12568
12572
  $xurender.data().xuData.original_data_obj = {
12569
12573
  nodeP: _.cloneDeep($elm.data().xuData.node_org),
12570
12574
  paramsP: $elm.data().xuData.paramsP,
12571
- $container: $elm,
12575
+ $container: $elm.clone(true),
12572
12576
  parent_infoP: parent_infoP,
12573
12577
  };
12574
12578
  }
@@ -10174,7 +10174,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10174
10174
  var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
10175
10175
  const init_render = function () {
10176
10176
  if (!value) {
10177
- var cloned_$div = $elm.clone(true, true);
10177
+ var cloned_$div = $elm.clone(true);
10178
10178
 
10179
10179
  let $xurender = $('<xurender>')
10180
10180
  // .attr('xu-ui-id', nodeP.id + '_' + $elm.data().xuData.recordid)
@@ -10183,6 +10183,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10183
10183
  .appendTo($container)
10184
10184
  .hide();
10185
10185
  let original_data_obj = {
10186
+ not_rendered: true,
10186
10187
  $container: cloned_$div,
10187
10188
  nodeP: _.cloneDeep(nodeP),
10188
10189
  parent_infoP,
@@ -10217,22 +10218,25 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10217
10218
  func.events.delete_job(SESSION_ID, jobNoP);
10218
10219
  return { delete_job: jobNoP };
10219
10220
  }
10220
- // const new_$div = await func.UI.screen.render_ui_tree(
10221
- // SESSION_ID,
10222
- // $elm, //original_data_obj.$container,
10223
- // _.cloneDeep(original_data_obj.nodeP),
10224
- // original_data_obj.parent_infoP,
10225
- // original_data_obj.paramsP,
10226
- // jobNoP,
10227
- // null,
10228
- // original_data_obj.keyP,
10229
- // null,
10230
- // original_data_obj.parent_nodeP,
10231
- // null,
10232
- // original_data_obj.$root_container,
10233
- // );
10234
-
10235
- const new_$div = original_data_obj.$container.clone(true, true);
10221
+
10222
+ let new_$div = original_data_obj.$container.clone(true);
10223
+
10224
+ if (original_data_obj.not_rendered) {
10225
+ new_$div = await func.UI.screen.render_ui_tree(
10226
+ SESSION_ID,
10227
+ $elm, //original_data_obj.$container,
10228
+ _.cloneDeep(original_data_obj.nodeP),
10229
+ original_data_obj.parent_infoP,
10230
+ original_data_obj.paramsP,
10231
+ jobNoP,
10232
+ null,
10233
+ original_data_obj.keyP,
10234
+ null,
10235
+ original_data_obj.parent_nodeP,
10236
+ null,
10237
+ original_data_obj.$root_container,
10238
+ );
10239
+ }
10236
10240
 
10237
10241
  new_$div.data().xuData.original_data_obj = original_data_obj;
10238
10242
  new_$div.data().xuData.xurender_node = $elm.clone(true);
@@ -10293,7 +10297,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10293
10297
  $xurender.data().xuData.original_data_obj = {
10294
10298
  nodeP: _.cloneDeep($elm.data().xuData.node_org),
10295
10299
  paramsP: $elm.data().xuData.paramsP,
10296
- $container: $elm,
10300
+ $container: $elm.clone(true),
10297
10301
  parent_infoP: parent_infoP,
10298
10302
  };
10299
10303
  }