@xuda.io/runtime-bundle 1.0.991 → 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.
|
@@ -32253,12 +32253,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32253
32253
|
xuAttributes: $elm.data().xuAttributes || {},
|
|
32254
32254
|
xuData: $elm.data().xuData || {},
|
|
32255
32255
|
});
|
|
32256
|
-
|
|
32256
|
+
const original_data_obj = {
|
|
32257
32257
|
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
32258
32258
|
paramsP: $elm.data().xuData.paramsP,
|
|
32259
32259
|
$container: $elm.clone(true),
|
|
32260
32260
|
parent_infoP: parent_infoP,
|
|
32261
32261
|
};
|
|
32262
|
+
|
|
32263
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
32262
32264
|
}
|
|
32263
32265
|
$elm.replaceWith(tmp_$div.children());
|
|
32264
32266
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
@@ -32513,9 +32515,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32513
32515
|
CLIENT_ACTIVITY_TS = Date.now();
|
|
32514
32516
|
const trigger = val.key.split('xu-on:')[1].toLowerCase();
|
|
32515
32517
|
$elm.on(trigger, async function (evt) {
|
|
32516
|
-
|
|
32518
|
+
const _$elm = $(evt.currentTarget);
|
|
32519
|
+
if (_.isEmpty(_$elm.data().xuAttributes)) return;
|
|
32517
32520
|
|
|
32518
|
-
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])) {
|
|
32519
32522
|
if (!_.isEmpty(val.props.condition)) {
|
|
32520
32523
|
const expCond = await func.expression.get(SESSION_ID, val.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
|
|
32521
32524
|
if (!expCond.result) continue;
|
|
@@ -32538,7 +32541,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32538
32541
|
|
|
32539
32542
|
if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
|
|
32540
32543
|
|
|
32541
|
-
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);
|
|
32542
32545
|
}
|
|
32543
32546
|
}
|
|
32544
32547
|
}
|