@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.
|
@@ -32435,12 +32435,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32435
32435
|
if (val.handler === 'custom') {
|
|
32436
32436
|
// do BL
|
|
32437
32437
|
for await (const [key2, val2] of Object.entries(val.event)) {
|
|
32438
|
-
var cond = val2.data.enabled;
|
|
32439
|
-
if (val2.data.enabled && val2.props.condition) {
|
|
32440
|
-
|
|
32441
|
-
|
|
32442
|
-
}
|
|
32443
|
-
if (!cond) continue;
|
|
32438
|
+
// var cond = val2.data.enabled;
|
|
32439
|
+
// if (val2.data.enabled && val2.props.condition) {
|
|
32440
|
+
// expCond = await func.expression.get(SESSION_ID, val2.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
|
|
32441
|
+
// cond = expCond.result;
|
|
32442
|
+
// }
|
|
32443
|
+
// if (!cond) continue;
|
|
32444
|
+
|
|
32445
|
+
if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
|
|
32444
32446
|
|
|
32445
32447
|
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);
|
|
32446
32448
|
}
|
|
@@ -34162,7 +34164,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34162
34164
|
if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
|
|
34163
34165
|
$div[0].style.removeProperty('height');
|
|
34164
34166
|
$div.removeClass('skeleton');
|
|
34165
|
-
$div.
|
|
34167
|
+
$div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
|
|
34166
34168
|
} else {
|
|
34167
34169
|
hover_in($div);
|
|
34168
34170
|
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);
|
|
@@ -34174,7 +34176,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34174
34176
|
func.UI.worker.delete_job(SESSION_ID, ui_job_id);
|
|
34175
34177
|
|
|
34176
34178
|
if ($div.children().length) {
|
|
34177
|
-
UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
34179
|
+
// UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
34178
34180
|
$div.empty();
|
|
34179
34181
|
const height = $div.data().xuData.viewport_height;
|
|
34180
34182
|
if (typeof height !== 'undefined') {
|