@xuda.io/runtime-bundle 1.0.913 → 1.0.915

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.
@@ -12749,12 +12749,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12749
12749
  if (val.handler === 'custom') {
12750
12750
  // do BL
12751
12751
  for await (const [key2, val2] of Object.entries(val.event)) {
12752
- var cond = val2.data.enabled;
12753
- if (val2.data.enabled && val2.props.condition) {
12754
- expCond = await func.expression.get(SESSION_ID, val2.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
12755
- cond = expCond.result;
12756
- }
12757
- if (!cond) continue;
12752
+ // var cond = val2.data.enabled;
12753
+ // if (val2.data.enabled && val2.props.condition) {
12754
+ // expCond = await func.expression.get(SESSION_ID, val2.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
12755
+ // cond = expCond.result;
12756
+ // }
12757
+ // if (!cond) continue;
12758
+
12759
+ if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
12758
12760
 
12759
12761
  func.events.add_to_queue(SESSION_ID, 'element event', val2.id, evt.type, val2.data.action, val2.data.name, null, $elm.attr('xu-ui-id'), null, evt, null, null, null, paramsP.dsSessionP, null, null, null, evt.type, val2.data.name, null, null, val2, null, null, null, null, null, null);
12760
12762
  }
@@ -14476,7 +14478,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14476
14478
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
14477
14479
  $div[0].style.removeProperty('height');
14478
14480
  $div.removeClass('skeleton');
14479
- $div.content(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
14481
+ $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
14480
14482
  } else {
14481
14483
  hover_in($div);
14482
14484
  ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
@@ -14488,7 +14490,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14488
14490
  func.UI.worker.delete_job(SESSION_ID, ui_job_id);
14489
14491
 
14490
14492
  if ($div.children().length) {
14491
- UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14493
+ // UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14492
14494
  $div.empty();
14493
14495
  const height = $div.data().xuData.viewport_height;
14494
14496
  if (typeof height !== 'undefined') {
@@ -10476,12 +10476,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10476
10476
  if (val.handler === 'custom') {
10477
10477
  // do BL
10478
10478
  for await (const [key2, val2] of Object.entries(val.event)) {
10479
- var cond = val2.data.enabled;
10480
- if (val2.data.enabled && val2.props.condition) {
10481
- expCond = await func.expression.get(SESSION_ID, val2.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
10482
- cond = expCond.result;
10483
- }
10484
- if (!cond) continue;
10479
+ // var cond = val2.data.enabled;
10480
+ // if (val2.data.enabled && val2.props.condition) {
10481
+ // expCond = await func.expression.get(SESSION_ID, val2.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
10482
+ // cond = expCond.result;
10483
+ // }
10484
+ // if (!cond) continue;
10485
+
10486
+ if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
10485
10487
 
10486
10488
  func.events.add_to_queue(SESSION_ID, 'element event', val2.id, evt.type, val2.data.action, val2.data.name, null, $elm.attr('xu-ui-id'), null, evt, null, null, null, paramsP.dsSessionP, null, null, null, evt.type, val2.data.name, null, null, val2, null, null, null, null, null, null);
10487
10489
  }
@@ -12203,7 +12205,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12203
12205
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
12204
12206
  $div[0].style.removeProperty('height');
12205
12207
  $div.removeClass('skeleton');
12206
- $div.content(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
12208
+ $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
12207
12209
  } else {
12208
12210
  hover_in($div);
12209
12211
  ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
@@ -12215,7 +12217,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12215
12217
  func.UI.worker.delete_job(SESSION_ID, ui_job_id);
12216
12218
 
12217
12219
  if ($div.children().length) {
12218
- UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12220
+ // UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12219
12221
  $div.empty();
12220
12222
  const height = $div.data().xuData.viewport_height;
12221
12223
  if (typeof height !== 'undefined') {