@xuda.io/runtime-bundle 1.0.992 → 1.0.993
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.
|
@@ -32515,9 +32515,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32515
32515
|
CLIENT_ACTIVITY_TS = Date.now();
|
|
32516
32516
|
const trigger = val.key.split('xu-on:')[1].toLowerCase();
|
|
32517
32517
|
$elm.on(trigger, async function (evt) {
|
|
32518
|
-
|
|
32518
|
+
const _$elm = $(evt.currentTarget);
|
|
32519
|
+
if (_.isEmpty(_$elm.data().xuAttributes)) return;
|
|
32519
32520
|
|
|
32520
|
-
for await (const [key, val] of Object.entries($elm.data().xuAttributes['xu-on:' + evt.type])) {
|
|
32521
|
+
for await (const [key, val] of Object.entries(_$elm.data().xuAttributes['xu-on:' + evt.type])) {
|
|
32521
32522
|
if (!_.isEmpty(val.props.condition)) {
|
|
32522
32523
|
const expCond = await func.expression.get(SESSION_ID, val.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
|
|
32523
32524
|
if (!expCond.result) continue;
|
|
@@ -32540,7 +32541,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32540
32541
|
|
|
32541
32542
|
if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
|
|
32542
32543
|
|
|
32543
|
-
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);
|
|
32544
|
+
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);
|
|
32544
32545
|
}
|
|
32545
32546
|
}
|
|
32546
32547
|
}
|