@xuda.io/runtime-bundle 1.0.985 → 1.0.987

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.
@@ -11218,7 +11218,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
11218
11218
  let _session = SESSION_OBJ[SESSION_ID];
11219
11219
 
11220
11220
  const screenInfo = _.cloneDeep(screen_ret);
11221
- const $callingContainerP_data = $callingContainerP.clone(true)?.data();
11221
+ // const $callingContainerP_data = $callingContainerP.clone(true)?.data();
11222
11222
 
11223
11223
  var screen_type = source_functionP?.split('_')?.[1]; //|| (is_panelP && "panel");
11224
11224
 
@@ -11367,17 +11367,17 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
11367
11367
 
11368
11368
  // $(".skeleton_wrapper").remove();
11369
11369
 
11370
- // fix for svg
11370
+ // fix for svg // deprecated Aug 12 25
11371
11371
 
11372
- const fix_svg = function () {
11373
- let $svg = $('svg');
11374
- $.each($svg, function (key, elm) {
11375
- elm.outerHTML = elm.outerHTML;
11376
- });
11377
- };
11378
- setTimeout(function () {
11379
- // fix_svg();
11380
- }, 200);
11372
+ // const fix_svg = function () {
11373
+ // let $svg = $('svg');
11374
+ // $.each($svg, function (key, elm) {
11375
+ // elm.outerHTML = elm.outerHTML;
11376
+ // });
11377
+ // };
11378
+ // setTimeout(function () {
11379
+ // fix_svg();
11380
+ // }, 200);
11381
11381
 
11382
11382
  func.UI.utils.indicator.screen.normal();
11383
11383
 
@@ -12491,20 +12491,22 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12491
12491
  func.events.delete_job(SESSION_ID, jobNoP);
12492
12492
  return { delete_job: jobNoP };
12493
12493
  }
12494
- const new_$div = await func.UI.screen.render_ui_tree(
12495
- SESSION_ID,
12496
- $elm, //original_data_obj.$container,
12497
- _.cloneDeep(original_data_obj.nodeP),
12498
- original_data_obj.parent_infoP,
12499
- original_data_obj.paramsP,
12500
- jobNoP,
12501
- null,
12502
- original_data_obj.keyP,
12503
- null,
12504
- original_data_obj.parent_nodeP,
12505
- null,
12506
- original_data_obj.$root_container,
12507
- );
12494
+ // const new_$div = await func.UI.screen.render_ui_tree(
12495
+ // SESSION_ID,
12496
+ // $elm, //original_data_obj.$container,
12497
+ // _.cloneDeep(original_data_obj.nodeP),
12498
+ // original_data_obj.parent_infoP,
12499
+ // original_data_obj.paramsP,
12500
+ // jobNoP,
12501
+ // null,
12502
+ // original_data_obj.keyP,
12503
+ // null,
12504
+ // original_data_obj.parent_nodeP,
12505
+ // null,
12506
+ // original_data_obj.$root_container,
12507
+ // );
12508
+
12509
+ const new_$div = original_data_obj.$container.clone(true);
12508
12510
 
12509
12511
  new_$div.data().xuData.original_data_obj = original_data_obj;
12510
12512
  new_$div.data().xuData.xurender_node = $elm.clone(true);
@@ -13129,7 +13131,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13129
13131
  // BEFORE
13130
13132
  if (!_.isEmpty(nodeP.attributes)) {
13131
13133
  for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
13132
- if (_ret.abort) break;
13134
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
13133
13135
  if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) {
13134
13136
  continue;
13135
13137
  }
@@ -13186,7 +13188,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13186
13188
  // ALL
13187
13189
 
13188
13190
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
13189
- if (_ret.abort) break;
13191
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
13190
13192
  if (glb.html5_events_handler.includes(key) || execute_attributes.includes(key)) {
13191
13193
  continue;
13192
13194
  }
@@ -13275,7 +13277,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13275
13277
  // EXP for
13276
13278
 
13277
13279
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
13278
- if (_ret.abort) break;
13280
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
13279
13281
 
13280
13282
  const attr = key.split('xu-exp:')[1];
13281
13283
 
@@ -13314,6 +13316,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13314
13316
  // AFTER
13315
13317
 
13316
13318
  for await (const [key, attr] of Object.entries(glb.run_xu_after)) {
13319
+ if ($container?.data()?.xuData?.pending_to_delete) break;
13320
+
13317
13321
  if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) continue;
13318
13322
 
13319
13323
  if (!nodeP.attributes || !nodeP.attributes[attr] & !nodeP.attributes[`xu-exp:${attr}`]) continue;
@@ -13345,6 +13349,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13345
13349
  // REGISTER EVENTS ATTRIBUTES
13346
13350
 
13347
13351
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
13352
+ if ($container?.data()?.xuData?.pending_to_delete) break;
13348
13353
  if (!glb.html5_events_handler.includes(key)) break;
13349
13354
  // $elm.attr(key, await get_xuExp(key)) || val;
13350
13355
  $elm.attr(key, await get_xuExp(key)) || val;
@@ -8943,7 +8943,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
8943
8943
  let _session = SESSION_OBJ[SESSION_ID];
8944
8944
 
8945
8945
  const screenInfo = _.cloneDeep(screen_ret);
8946
- const $callingContainerP_data = $callingContainerP.clone(true)?.data();
8946
+ // const $callingContainerP_data = $callingContainerP.clone(true)?.data();
8947
8947
 
8948
8948
  var screen_type = source_functionP?.split('_')?.[1]; //|| (is_panelP && "panel");
8949
8949
 
@@ -9092,17 +9092,17 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
9092
9092
 
9093
9093
  // $(".skeleton_wrapper").remove();
9094
9094
 
9095
- // fix for svg
9095
+ // fix for svg // deprecated Aug 12 25
9096
9096
 
9097
- const fix_svg = function () {
9098
- let $svg = $('svg');
9099
- $.each($svg, function (key, elm) {
9100
- elm.outerHTML = elm.outerHTML;
9101
- });
9102
- };
9103
- setTimeout(function () {
9104
- // fix_svg();
9105
- }, 200);
9097
+ // const fix_svg = function () {
9098
+ // let $svg = $('svg');
9099
+ // $.each($svg, function (key, elm) {
9100
+ // elm.outerHTML = elm.outerHTML;
9101
+ // });
9102
+ // };
9103
+ // setTimeout(function () {
9104
+ // fix_svg();
9105
+ // }, 200);
9106
9106
 
9107
9107
  func.UI.utils.indicator.screen.normal();
9108
9108
 
@@ -10216,20 +10216,22 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10216
10216
  func.events.delete_job(SESSION_ID, jobNoP);
10217
10217
  return { delete_job: jobNoP };
10218
10218
  }
10219
- const new_$div = await func.UI.screen.render_ui_tree(
10220
- SESSION_ID,
10221
- $elm, //original_data_obj.$container,
10222
- _.cloneDeep(original_data_obj.nodeP),
10223
- original_data_obj.parent_infoP,
10224
- original_data_obj.paramsP,
10225
- jobNoP,
10226
- null,
10227
- original_data_obj.keyP,
10228
- null,
10229
- original_data_obj.parent_nodeP,
10230
- null,
10231
- original_data_obj.$root_container,
10232
- );
10219
+ // const new_$div = await func.UI.screen.render_ui_tree(
10220
+ // SESSION_ID,
10221
+ // $elm, //original_data_obj.$container,
10222
+ // _.cloneDeep(original_data_obj.nodeP),
10223
+ // original_data_obj.parent_infoP,
10224
+ // original_data_obj.paramsP,
10225
+ // jobNoP,
10226
+ // null,
10227
+ // original_data_obj.keyP,
10228
+ // null,
10229
+ // original_data_obj.parent_nodeP,
10230
+ // null,
10231
+ // original_data_obj.$root_container,
10232
+ // );
10233
+
10234
+ const new_$div = original_data_obj.$container.clone(true);
10233
10235
 
10234
10236
  new_$div.data().xuData.original_data_obj = original_data_obj;
10235
10237
  new_$div.data().xuData.xurender_node = $elm.clone(true);
@@ -10854,7 +10856,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10854
10856
  // BEFORE
10855
10857
  if (!_.isEmpty(nodeP.attributes)) {
10856
10858
  for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
10857
- if (_ret.abort) break;
10859
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
10858
10860
  if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) {
10859
10861
  continue;
10860
10862
  }
@@ -10911,7 +10913,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10911
10913
  // ALL
10912
10914
 
10913
10915
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
10914
- if (_ret.abort) break;
10916
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
10915
10917
  if (glb.html5_events_handler.includes(key) || execute_attributes.includes(key)) {
10916
10918
  continue;
10917
10919
  }
@@ -11000,7 +11002,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11000
11002
  // EXP for
11001
11003
 
11002
11004
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
11003
- if (_ret.abort) break;
11005
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
11004
11006
 
11005
11007
  const attr = key.split('xu-exp:')[1];
11006
11008
 
@@ -11039,6 +11041,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11039
11041
  // AFTER
11040
11042
 
11041
11043
  for await (const [key, attr] of Object.entries(glb.run_xu_after)) {
11044
+ if ($container?.data()?.xuData?.pending_to_delete) break;
11045
+
11042
11046
  if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) continue;
11043
11047
 
11044
11048
  if (!nodeP.attributes || !nodeP.attributes[attr] & !nodeP.attributes[`xu-exp:${attr}`]) continue;
@@ -11070,6 +11074,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11070
11074
  // REGISTER EVENTS ATTRIBUTES
11071
11075
 
11072
11076
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
11077
+ if ($container?.data()?.xuData?.pending_to_delete) break;
11073
11078
  if (!glb.html5_events_handler.includes(key)) break;
11074
11079
  // $elm.attr(key, await get_xuExp(key)) || val;
11075
11080
  $elm.attr(key, await get_xuExp(key)) || val;