@xuda.io/runtime-bundle 1.0.1126 → 1.0.1128

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.
@@ -26730,7 +26730,7 @@ func.utils.get_plugin_resource = function (SESSION_ID, plugin_name, plugin_resou
26730
26730
  return `${_conf.plugins_drive_path}/${_session.app_id}/node_modules/${plugin_name}/${resource}`;
26731
26731
  } else {
26732
26732
  // return `./node_modules/${plugin_name}/${resource}?app_id=${_session.app_id}`;
26733
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}`;
26733
+ return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}&ts=${_session?.opt?.app_build_id || 0}`;
26734
26734
  }
26735
26735
  };
26736
26736
 
@@ -26806,7 +26806,7 @@ func.utils.get_plugin_npm_cdn = async function (SESSION_ID, plugin_name, resourc
26806
26806
  return `../../plugins/${plugin_name}/${resource}`;
26807
26807
  }
26808
26808
 
26809
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}`;
26809
+ return `https://${_session.domain}/plugins/${plugin_name}/${resource}?app_id=${_session.app_id}&ts=${_session?.opt?.app_build_id || 0}`;
26810
26810
  };
26811
26811
 
26812
26812
  return get_path(resource);
@@ -29885,12 +29885,13 @@ func.datasource.del = function (SESSION_ID, dsP) {
29885
29885
  delete SCREEN_BLOCKER_OBJ[SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId + '_' + SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId];
29886
29886
 
29887
29887
  delete_pending_jobs();
29888
-
29889
- // for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
29890
- // if (ui_cache_val.paramsP.dsSessionP === dsP) {
29891
- // delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
29892
- // }
29893
- // }
29888
+ if (glb.new_xu_render) {
29889
+ for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
29890
+ if (ui_cache_val.paramsP.dsSessionP === dsP) {
29891
+ delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
29892
+ }
29893
+ }
29894
+ }
29894
29895
  }
29895
29896
  if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
29896
29897
  var ds_obj = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav')?.data()?.xuData.nav_params;
@@ -31427,12 +31428,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31427
31428
  for (let item of node) {
31428
31429
  if (!_.isEmpty(item.attributes)) {
31429
31430
  const parent_element_ui_id = node_id;
31430
- const _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
31431
+ const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
31431
31432
  for await (const [attr, val] of Object.entries(item.attributes)) {
31432
31433
  if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
31433
31434
  if (val?.includes(field_id)) {
31434
31435
  // const parent_element_ui_id = node_id;
31435
- debugger;
31436
+ // debugger;
31436
31437
  // let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
31437
31438
  // let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
31438
31439
 
@@ -32359,6 +32360,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32359
32360
  $xurender.data().xuData.original_data_obj = original_data_obj;
32360
32361
  }
32361
32362
 
32363
+ //remove xu-teleport trace
32364
+ $.each($elm.find('xu-teleport'), (key, val) => {
32365
+ const xuTeleportData = $(val).data().xuTeleportData || [];
32366
+ for (const teleported_elm_id of xuTeleportData) {
32367
+ $(`[xu-ui-id="${teleported_elm_id}"]`).remove();
32368
+ }
32369
+ });
32370
+
32362
32371
  $elm.replaceWith(tmp_$div.children());
32363
32372
  func.events.delete_job(SESSION_ID, jobNoP);
32364
32373
  // }
@@ -34451,7 +34460,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34451
34460
 
34452
34461
  let $ret_panel_div = ret.$new_div;
34453
34462
 
34454
- if (!$ret_panel_div.children().length) {
34463
+ if (!$ret_panel_div?.children()?.length) {
34455
34464
  ////// render default children tree
34456
34465
  if (nodeP.children.length) {
34457
34466
  $ret_panel_div = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP.children[0], parent_infoP, paramsP, jobNoP, null, 0, null, nodeP, null, $root_container);
@@ -34812,16 +34821,13 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
34812
34821
  }
34813
34822
  }
34814
34823
 
34815
- ////////
34816
- for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
34817
- // for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
34818
- // const dsP=cache_val.paramsP.dsSessionP
34819
- let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, ui_cache_val.paramsP.prog_id);
34820
- if (prog_obj?.progDataSource?.dataSourceTableId === doc_change.table_id) {
34821
- // UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
34822
- ui_cache_val.$div = null;
34824
+ if (glb.new_xu_render) {
34825
+ for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
34826
+ let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, ui_cache_val.paramsP.prog_id);
34827
+ if (prog_obj?.progDataSource?.dataSourceTableId === doc_change.table_id) {
34828
+ ui_cache_val.$div = null;
34829
+ }
34823
34830
  }
34824
- // }
34825
34831
  }
34826
34832
  };
34827
34833