@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.
@@ -12831,9 +12831,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12831
12831
  CLIENT_ACTIVITY_TS = Date.now();
12832
12832
  const trigger = val.key.split('xu-on:')[1].toLowerCase();
12833
12833
  $elm.on(trigger, async function (evt) {
12834
- if (_.isEmpty($elm.data().xuAttributes)) return;
12834
+ const _$elm = $(evt.currentTarget);
12835
+ if (_.isEmpty(_$elm.data().xuAttributes)) return;
12835
12836
 
12836
- for await (const [key, val] of Object.entries($elm.data().xuAttributes['xu-on:' + evt.type])) {
12837
+ for await (const [key, val] of Object.entries(_$elm.data().xuAttributes['xu-on:' + evt.type])) {
12837
12838
  if (!_.isEmpty(val.props.condition)) {
12838
12839
  const expCond = await func.expression.get(SESSION_ID, val.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
12839
12840
  if (!expCond.result) continue;
@@ -12856,7 +12857,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12856
12857
 
12857
12858
  if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
12858
12859
 
12859
- 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);
12860
+ 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);
12860
12861
  }
12861
12862
  }
12862
12863
  }
@@ -10556,9 +10556,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10556
10556
  CLIENT_ACTIVITY_TS = Date.now();
10557
10557
  const trigger = val.key.split('xu-on:')[1].toLowerCase();
10558
10558
  $elm.on(trigger, async function (evt) {
10559
- if (_.isEmpty($elm.data().xuAttributes)) return;
10559
+ const _$elm = $(evt.currentTarget);
10560
+ if (_.isEmpty(_$elm.data().xuAttributes)) return;
10560
10561
 
10561
- for await (const [key, val] of Object.entries($elm.data().xuAttributes['xu-on:' + evt.type])) {
10562
+ for await (const [key, val] of Object.entries(_$elm.data().xuAttributes['xu-on:' + evt.type])) {
10562
10563
  if (!_.isEmpty(val.props.condition)) {
10563
10564
  const expCond = await func.expression.get(SESSION_ID, val.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
10564
10565
  if (!expCond.result) continue;
@@ -10581,7 +10582,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10581
10582
 
10582
10583
  if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
10583
10584
 
10584
- 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);
10585
+ 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);
10585
10586
  }
10586
10587
  }
10587
10588
  }