@xuda.io/runtime-bundle 1.0.1060 → 1.0.1062

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.
@@ -4657,7 +4657,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
4657
4657
 
4658
4658
  for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
4659
4659
  for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
4660
- if (cache_val.paramsP.dsSession === dsP) {
4660
+ if (cache_val.paramsP.dsSessionP === dsP) {
4661
4661
  delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
4662
4662
  }
4663
4663
  }
@@ -8691,6 +8691,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8691
8691
 
8692
8692
  var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
8693
8693
 
8694
+ if (glb.new_xu_render) {
8695
+ $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
8696
+ }
8697
+
8694
8698
  if (!$elm.length) {
8695
8699
  return done();
8696
8700
  }
@@ -14913,9 +14917,21 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
14913
14917
  }
14914
14918
  }
14915
14919
  }
14920
+
14921
+ ////////
14922
+ for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
14923
+ for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
14924
+ // const dsP=cache_val.paramsP.dsSessionP
14925
+ let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, cache_val.paramsP.prog_id);
14926
+ if (prog_obj?.progDataSource?.dataSourceTableId === doc_change.table_id) {
14927
+ // UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
14928
+ cache_val.$div = null;
14929
+ }
14930
+ }
14931
+ }
14916
14932
  };
14917
14933
 
14918
- const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
14934
+ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
14919
14935
  var _session = SESSION_OBJ[SESSION_ID];
14920
14936
  var _ds = _session.DS_GLB[dsSessionP];
14921
14937
 
@@ -14925,6 +14941,7 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
14925
14941
  let str = '';
14926
14942
 
14927
14943
  for (const [key, val] of Object.entries(data)) {
14944
+ if (exclude_vars.includes(key)) continue;
14928
14945
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
14929
14946
  }
14930
14947
 
@@ -4658,7 +4658,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
4658
4658
 
4659
4659
  for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
4660
4660
  for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
4661
- if (cache_val.paramsP.dsSession === dsP) {
4661
+ if (cache_val.paramsP.dsSessionP === dsP) {
4662
4662
  delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
4663
4663
  }
4664
4664
  }
@@ -8692,6 +8692,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8692
8692
 
8693
8693
  var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
8694
8694
 
8695
+ if (glb.new_xu_render) {
8696
+ $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
8697
+ }
8698
+
8695
8699
  if (!$elm.length) {
8696
8700
  return done();
8697
8701
  }
@@ -12638,9 +12642,21 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
12638
12642
  }
12639
12643
  }
12640
12644
  }
12645
+
12646
+ ////////
12647
+ for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
12648
+ for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
12649
+ // const dsP=cache_val.paramsP.dsSessionP
12650
+ let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, cache_val.paramsP.prog_id);
12651
+ if (prog_obj?.progDataSource?.dataSourceTableId === doc_change.table_id) {
12652
+ // UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
12653
+ cache_val.$div = null;
12654
+ }
12655
+ }
12656
+ }
12641
12657
  };
12642
12658
 
12643
- const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
12659
+ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
12644
12660
  var _session = SESSION_OBJ[SESSION_ID];
12645
12661
  var _ds = _session.DS_GLB[dsSessionP];
12646
12662
 
@@ -12650,6 +12666,7 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
12650
12666
  let str = '';
12651
12667
 
12652
12668
  for (const [key, val] of Object.entries(data)) {
12669
+ if (exclude_vars.includes(key)) continue;
12653
12670
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
12654
12671
  }
12655
12672