impaktapps-ui-builder 0.0.382-alpha.325 → 0.0.382-alpha.327

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.
@@ -9145,6 +9145,12 @@ var service = (funcParams) => {
9145
9145
  serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
9146
9146
  eventGroups
9147
9147
  };
9148
+ const handleButtonClick = lodash.exports.debounce(async function() {
9149
+ await this.callHandler("onClick");
9150
+ }, 300);
9151
+ const throttledExecuteEvents = lodash.exports.throttle(async (executeEventsParams) => {
9152
+ await executeEvents(executeEventsParams);
9153
+ }, 1e3);
9148
9154
  return {
9149
9155
  setPage: async function() {
9150
9156
  funcParams.store.setFormdata({});
@@ -9175,7 +9181,7 @@ var service = (funcParams) => {
9175
9181
  });
9176
9182
  },
9177
9183
  onClick: async function() {
9178
- await this.callHandler("onClick");
9184
+ handleButtonClick();
9179
9185
  },
9180
9186
  onFileDownload: async function() {
9181
9187
  await this.callHandler("onDownload");
@@ -9275,7 +9281,7 @@ var service = (funcParams) => {
9275
9281
  if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
9276
9282
  for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
9277
9283
  executeEventsParameters.store.functionParameters = functionParameters;
9278
- await executeEvents({
9284
+ await throttledExecuteEvents({
9279
9285
  ...executeEventsParameters,
9280
9286
  config: eventConfig,
9281
9287
  componentName: path