@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.
@@ -30902,7 +30902,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
30902
30902
  let _session = SESSION_OBJ[SESSION_ID];
30903
30903
 
30904
30904
  const screenInfo = _.cloneDeep(screen_ret);
30905
- const $callingContainerP_data = $callingContainerP.clone(true)?.data();
30905
+ // const $callingContainerP_data = $callingContainerP.clone(true)?.data();
30906
30906
 
30907
30907
  var screen_type = source_functionP?.split('_')?.[1]; //|| (is_panelP && "panel");
30908
30908
 
@@ -31051,17 +31051,17 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
31051
31051
 
31052
31052
  // $(".skeleton_wrapper").remove();
31053
31053
 
31054
- // fix for svg
31054
+ // fix for svg // deprecated Aug 12 25
31055
31055
 
31056
- const fix_svg = function () {
31057
- let $svg = $('svg');
31058
- $.each($svg, function (key, elm) {
31059
- elm.outerHTML = elm.outerHTML;
31060
- });
31061
- };
31062
- setTimeout(function () {
31063
- // fix_svg();
31064
- }, 200);
31056
+ // const fix_svg = function () {
31057
+ // let $svg = $('svg');
31058
+ // $.each($svg, function (key, elm) {
31059
+ // elm.outerHTML = elm.outerHTML;
31060
+ // });
31061
+ // };
31062
+ // setTimeout(function () {
31063
+ // fix_svg();
31064
+ // }, 200);
31065
31065
 
31066
31066
  func.UI.utils.indicator.screen.normal();
31067
31067
 
@@ -32175,20 +32175,22 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32175
32175
  func.events.delete_job(SESSION_ID, jobNoP);
32176
32176
  return { delete_job: jobNoP };
32177
32177
  }
32178
- const new_$div = await func.UI.screen.render_ui_tree(
32179
- SESSION_ID,
32180
- $elm, //original_data_obj.$container,
32181
- _.cloneDeep(original_data_obj.nodeP),
32182
- original_data_obj.parent_infoP,
32183
- original_data_obj.paramsP,
32184
- jobNoP,
32185
- null,
32186
- original_data_obj.keyP,
32187
- null,
32188
- original_data_obj.parent_nodeP,
32189
- null,
32190
- original_data_obj.$root_container,
32191
- );
32178
+ // const new_$div = await func.UI.screen.render_ui_tree(
32179
+ // SESSION_ID,
32180
+ // $elm, //original_data_obj.$container,
32181
+ // _.cloneDeep(original_data_obj.nodeP),
32182
+ // original_data_obj.parent_infoP,
32183
+ // original_data_obj.paramsP,
32184
+ // jobNoP,
32185
+ // null,
32186
+ // original_data_obj.keyP,
32187
+ // null,
32188
+ // original_data_obj.parent_nodeP,
32189
+ // null,
32190
+ // original_data_obj.$root_container,
32191
+ // );
32192
+
32193
+ const new_$div = original_data_obj.$container.clone(true);
32192
32194
 
32193
32195
  new_$div.data().xuData.original_data_obj = original_data_obj;
32194
32196
  new_$div.data().xuData.xurender_node = $elm.clone(true);
@@ -32813,7 +32815,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32813
32815
  // BEFORE
32814
32816
  if (!_.isEmpty(nodeP.attributes)) {
32815
32817
  for await (const [key, attr] of Object.entries(glb.run_xu_before)) {
32816
- if (_ret.abort) break;
32818
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
32817
32819
  if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) {
32818
32820
  continue;
32819
32821
  }
@@ -32870,7 +32872,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32870
32872
  // ALL
32871
32873
 
32872
32874
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
32873
- if (_ret.abort) break;
32875
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
32874
32876
  if (glb.html5_events_handler.includes(key) || execute_attributes.includes(key)) {
32875
32877
  continue;
32876
32878
  }
@@ -32959,7 +32961,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32959
32961
  // EXP for
32960
32962
 
32961
32963
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
32962
- if (_ret.abort) break;
32964
+ if (_ret.abort || $container?.data()?.xuData?.pending_to_delete) break;
32963
32965
 
32964
32966
  const attr = key.split('xu-exp:')[1];
32965
32967
 
@@ -32998,6 +33000,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32998
33000
  // AFTER
32999
33001
 
33000
33002
  for await (const [key, attr] of Object.entries(glb.run_xu_after)) {
33003
+ if ($container?.data()?.xuData?.pending_to_delete) break;
33004
+
33001
33005
  if (glb.html5_events_handler.includes(attr) || execute_attributes.includes(attr)) continue;
33002
33006
 
33003
33007
  if (!nodeP.attributes || !nodeP.attributes[attr] & !nodeP.attributes[`xu-exp:${attr}`]) continue;
@@ -33029,6 +33033,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
33029
33033
  // REGISTER EVENTS ATTRIBUTES
33030
33034
 
33031
33035
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
33036
+ if ($container?.data()?.xuData?.pending_to_delete) break;
33032
33037
  if (!glb.html5_events_handler.includes(key)) break;
33033
33038
  // $elm.attr(key, await get_xuExp(key)) || val;
33034
33039
  $elm.attr(key, await get_xuExp(key)) || val;