impaktapps-ui-builder 0.0.382-alpha.33 → 0.0.382-alpha.330

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.
Files changed (37) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1811 -1286
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +14 -14
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +0 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +2 -35
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +18 -15
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +121 -70
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +102 -53
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +2 -17
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +2 -17
  12. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  13. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -2
  14. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  15. package/package.json +1 -1
  16. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +0 -1
  17. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -3
  18. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +27 -50
  19. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +49 -30
  20. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +36 -16
  21. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +6 -1
  22. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  23. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +52 -79
  24. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  25. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +12 -2
  26. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +6 -1
  27. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +58 -84
  28. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +6 -1
  29. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  30. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
  31. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +474 -340
  32. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +531 -330
  33. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +357 -385
  34. package/src/impaktapps-ui-builder/builder/services/component.ts +25 -7
  35. package/src/impaktapps-ui-builder/builder/services/event.ts +17 -9
  36. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -3
  37. package/src/impaktapps-ui-builder/runtime/services/service.ts +126 -95
@@ -41,7 +41,7 @@ const sectionLabels = {
41
41
 
42
42
 
43
43
  export const refreshPage = (type:string,store:any) => {
44
- const UiSchema = _.cloneDeep(componentBasicUiSchema(store.theme.myTheme))
44
+ const UiSchema = _.cloneDeep(componentBasicUiSchema)
45
45
  if(type){
46
46
  const sectionUiSchema = {
47
47
  Core: CoreSection,
@@ -54,8 +54,8 @@ export const refreshPage = (type:string,store:any) => {
54
54
 
55
55
  }
56
56
  const elements = sectionLabels[type]?.map(e => sectionUiSchema[e]);
57
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "style","Event","Validation"];
58
- UiSchema.elements[0].elements = elements || [CoreSection, StyleSection,EventSection,ValidationSection];
57
+ UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style","Event","Validation"];
58
+ UiSchema.elements[1].elements = elements || [CoreSection, StyleSection,EventSection,ValidationSection];
59
59
 
60
60
  }
61
61
  store.setUiSchema(UiSchema);
@@ -104,20 +104,28 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
104
104
  store.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`)
105
105
  }
106
106
  },
107
- deleteComponents: function () {
107
+ deleteComponents: function (shouldUpdateDialog: boolean = true) {
108
108
  const path = store.searchParams?.get("path");
109
- const rowId = dynamicData.path.split(".")[1];
109
+ const rowId = localStorage.getItem('rowId');
110
110
  store.formData.elements.splice(rowId, 1);
111
111
  const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
112
112
  const data = path ? _.get(response, path) : response;
113
113
  store.setFormdata(data);
114
+ if(shouldUpdateDialog){
115
+ store.updateDialog("popUpComponentSection");
116
+ }
117
+ localStorage.removeItem('rowId');
114
118
  },
115
- deleteEvent: function () {
119
+ deleteEvent: function (shouldUpdateDialog: boolean = true) {
116
120
  const path = store.searchParams?.get("path");
117
- const rowId = dynamicData.path.split(".")[1];
121
+ const rowId = localStorage.getItem('rowId');
118
122
  store.formData.events.splice(rowId, 1);
119
123
  const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
120
124
  store.setFormdata(_.get(response, path));
125
+ if(shouldUpdateDialog){
126
+ store.updateDialog("popUpEventSection")
127
+ }
128
+ localStorage.removeItem('rowId');
121
129
  },
122
130
  widgetAddClickHandler: function () {
123
131
  if (!Array.isArray(store.formData.elements)) {
@@ -152,6 +160,16 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
152
160
  backHandler: function () {
153
161
  store.navigate(-1)
154
162
  },
163
+ deletePopUpComponent: function(){
164
+ const rowId = dynamicData.path.split(".")[1];
165
+ localStorage.setItem('rowId',rowId);
166
+ store.updateDialog("popUpComponentSection");
167
+ },
168
+ deletePopUpEvent: function(){
169
+ const rowId = dynamicData.path.split(".")[1];
170
+ localStorage.setItem('rowId',rowId);
171
+ store.updateDialog("popUpEventSection");
172
+ },
155
173
  }
156
174
  };
157
175
 
@@ -22,26 +22,26 @@ export default (
22
22
  this.refreshPage(formdata.Handler, store)
23
23
  },
24
24
  refreshPage: (handlerType: any, store: any) => {
25
- const uiSchema = _.cloneDeep(EventUiSchema(store.theme.myTheme));
25
+ const uiSchema = _.cloneDeep(EventUiSchema);
26
26
  const schema: any = _.cloneDeep(EventSchema)
27
27
  if (handlerType) {
28
28
  if (handlerType === "custom") {
29
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false)
29
+ uiSchema.elements[1].elements[0].elements[2] = getTextArea("eventCode", "Write Custom Code", false)
30
30
  schema.required = ["eventType", "Handler", "eventCode"]
31
31
 
32
32
  } else if (handlerType === "api") {
33
- uiSchema.elements[0].elements[0].elements[3] = APISection;
33
+ uiSchema.elements[1].elements[0].elements[2] = APISection;
34
34
  schema.required = ["eventType", "Handler", "method", "path"]
35
35
  } else if (handlerType === "inBuiltFunction") {
36
- uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
36
+ uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
37
37
  { label: "RankProvider", value: "RankProvider" },
38
38
  { label: "Download File", value: "downloadFile" },
39
39
  { label: "Download Blob File", value: "downloadBlobFile" }
40
40
  ])
41
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
41
+ uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
42
42
  schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
43
43
  } else if (handlerType === "refresh") {
44
- uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
44
+ uiSchema.elements[1].elements[0].elements[2] = refreshSectionUiSchema;
45
45
  schema.properties.refreshElements.required = ["value"]
46
46
  schema.properties.refreshElements.items.required = ["value"]
47
47
  schema.required = ["eventType", "Handler", "refreshElements"]
@@ -52,8 +52,8 @@ export default (
52
52
  },
53
53
 
54
54
  getFormData: Component(store, dynamicData, submitHandler, service).getFormdata,
55
- getUiSchema: async function () {
56
- return await EventUiSchema(store.theme.myTheme);
55
+ getUiSchema: function () {
56
+ return EventUiSchema;
57
57
  },
58
58
  getSchema: () => {
59
59
  return EventSchema;
@@ -89,9 +89,17 @@ export default (
89
89
  this.setPage()
90
90
 
91
91
  },
92
- deleteEvent: Component(store, dynamicData, submitHandler, service).deleteEvent,
92
+ deleteEvent: async function () {
93
+ await Component(store, dynamicData, submitHandler, service).deleteEvent(false);
94
+ store.updateDialog("popUpEvent");
95
+ },
93
96
  backHandler: function () {
94
97
  store.navigate(-1)
95
98
  },
99
+ deletePopUpEvent: function(){
100
+ const rowId = dynamicData.path.split(".")[1];
101
+ localStorage.setItem('rowId',rowId);
102
+ store.updateDialog("popUpEvent");
103
+ }
96
104
  }
97
105
  };
@@ -34,7 +34,7 @@ export default (funcParams: funcParamsProps) => {
34
34
  return config
35
35
  },
36
36
  getUiSchema: function () {
37
- return PageMasterUiSchema(store.theme.myTheme);
37
+ return PageMasterUiSchema;
38
38
  },
39
39
  getSchema: () => {
40
40
  return PageMasterSchema;
@@ -55,7 +55,11 @@ export default (funcParams: funcParamsProps) => {
55
55
  },
56
56
  saveHandler: async ()=> await saveHandler(store,service,submitHandler),
57
57
  Edit_Components: Component(store, dynamicData, submitHandler, service).editComponents,
58
- Delete_Components: Component(store, dynamicData, submitHandler, service).deleteComponents,
58
+
59
+ Delete_Components: async function() {
60
+ await Component(store, dynamicData, submitHandler, service).deleteComponents(false);
61
+ store.updateDialog("popUpPageMasterComponent");
62
+ },
59
63
  eventAddHandler: function () {
60
64
  const id = store.searchParams?.get("id");
61
65
  if (!Array.isArray(store.formData.events)) {
@@ -73,10 +77,22 @@ export default (funcParams: funcParamsProps) => {
73
77
  store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
74
78
  },
75
79
  deleteEvent: function () {
76
- const rowId = dynamicData.path.split(".")[1];
80
+ const rowId = localStorage.getItem('rowId');
77
81
  store.formData.events.splice(rowId, 1);
78
82
  const response = saveFormdataInLocalStorage(store.ctx.core.data)
79
83
  store.setFormdata(response);
84
+ store.updateDialog("popUpPageMasterEvent");
85
+ localStorage.removeItem('rowId');
86
+ },
87
+ deletePopUpComponent: function(){
88
+ const rowId = dynamicData.path.split(".")[1];
89
+ localStorage.setItem('rowId',rowId);
90
+ store.updateDialog("popUpPageMasterComponent");
91
+ },
92
+ deletePopUpEvent: function(){
93
+ const rowId = dynamicData.path.split(".")[1];
94
+ localStorage.setItem('rowId',rowId);
95
+ store.updateDialog("popUpPageMasterEvent");
80
96
  },
81
97
  }
82
98
  };
@@ -1,4 +1,4 @@
1
- import _, { isEmpty } from "lodash";
1
+ import _, { isEmpty, debounce } from "lodash";
2
2
  import { doDownload, downloadFile } from "./downloadFile";
3
3
  import { executeEvents, executeRefreshHandler } from "./events";
4
4
  import { handlersProps } from "./interface";
@@ -27,20 +27,38 @@ export const extractEvents = (eventConfig: any) => {
27
27
  eventGroups[event.eventType][eventConfigObj.name] = [];
28
28
  }
29
29
  const SuccessEvent = event?.events?.find((elem) => {
30
- return elem.eventType === "Success"
31
- })
30
+ return elem.eventType === "Success";
31
+ });
32
32
  if (!(!!SuccessEvent) && event.eventType === "onLoad") {
33
- event.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false })
33
+ event.events.push({
34
+ Handler: "mergeFormdata",
35
+ eventType: "Success",
36
+ type: compType,
37
+ lazyLoading: eventConfig.lazyLoading === "YES" ? true : false,
38
+ });
34
39
  }
35
- if (!(!!SuccessEvent) && (event.eventType === "onBack" || event.eventType === "onNext" || event.eventType === "onReset")) {
36
- event.events.push({ Handler: `${event.eventType}Handler`, eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false })
40
+ if (
41
+ !(!!SuccessEvent) &&
42
+ (event.eventType === "onBack" ||
43
+ event.eventType === "onNext" ||
44
+ event.eventType === "onReset")
45
+ ) {
46
+ event.events.push({
47
+ Handler: `${event.eventType}Handler`,
48
+ eventType: "Success",
49
+ type: compType,
50
+ lazyLoading: eventConfig.lazyLoading === "YES" ? true : false,
51
+ });
37
52
  }
38
- eventGroups[event.eventType][eventConfigObj.name].push({ ...event, type: compType })
53
+ eventGroups[event.eventType][eventConfigObj.name].push({
54
+ ...event,
55
+ type: compType,
56
+ });
39
57
  });
40
58
  }
41
59
  }
42
60
 
43
- extractsConfigEvents(eventConfig)
61
+ extractsConfigEvents(eventConfig);
44
62
  if (eventConfig?.elements) {
45
63
  eventConfig.elements.forEach(extractEvents);
46
64
  }
@@ -48,54 +66,77 @@ export const extractEvents = (eventConfig: any) => {
48
66
  };
49
67
 
50
68
  interface funcParamsProps {
51
- store: any,
52
- dynamicData: any,
53
- config: any,
54
- uiSchema: any,
55
- schema: any,
56
- service: any,
57
- userValue: any,
69
+ store: any;
70
+ dynamicData: any;
71
+ config: any;
72
+ uiSchema: any;
73
+ schema: any;
74
+ service: any;
75
+ userValue: any;
58
76
  }
59
77
  export default (funcParams: funcParamsProps) => {
60
- eventGroups = {}
61
- eventGroups = extractEvents(funcParams.config)
78
+ eventGroups = {};
79
+ eventGroups = extractEvents(funcParams.config);
62
80
  let executeEventsParameters: handlersProps = {
63
- config: {}, componentName: "",
64
- store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
65
- serviceHolder: { downloadFile, download: doDownload }, eventGroups
81
+ config: {},
82
+ componentName: "",
83
+ store: funcParams.store,
84
+ dynamicData: funcParams.dynamicData,
85
+ userValue: funcParams.userValue,
86
+ service: funcParams.service,
87
+ serviceHolder: { downloadFile, download: doDownload },
88
+ eventGroups,
66
89
  };
90
+
91
+ // Create a debounced version of executeEvents
92
+ const debouncedExecuteEvents = debounce(async (eventConfig: any, componentName: string) => {
93
+ await executeEvents({
94
+ ...executeEventsParameters,
95
+ config: eventConfig,
96
+ componentName,
97
+ });
98
+ }, 300); // Adjust the debounce delay (300ms) as needed
99
+
67
100
  return {
68
101
  setPage: async function () {
69
102
  funcParams.store.setFormdata({});
70
103
  executeEventsParameters = {
71
- config: {}, componentName: "",
72
- store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
73
- serviceHolder: this, eventGroups
74
- }
75
- funcParams.store.setSchema(
76
- (pre: any) => {
77
- return {
78
- ...funcParams.schema, properties:
79
- { ...funcParams.schema.properties, ...pre.properties, }
80
- }
81
- }
82
- )
104
+ config: {},
105
+ componentName: "",
106
+ store: funcParams.store,
107
+ dynamicData: funcParams.dynamicData,
108
+ userValue: funcParams.userValue,
109
+ service: funcParams.service,
110
+ serviceHolder: this,
111
+ eventGroups,
112
+ };
113
+ funcParams.store.setSchema((pre: any) => {
114
+ return {
115
+ ...funcParams.schema,
116
+ properties: { ...funcParams.schema.properties, ...pre.properties },
117
+ };
118
+ });
83
119
  funcParams.uiSchema.elements.push(notifyUiSchema);
84
120
  funcParams.store.setUiSchema(funcParams.uiSchema);
85
121
  await executeRefreshHandler({
86
- config: {}, componentName: "",
87
- store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
88
- serviceHolder: this, eventGroups
89
- })
122
+ config: {},
123
+ componentName: "",
124
+ store: funcParams.store,
125
+ dynamicData: funcParams.dynamicData,
126
+ userValue: funcParams.userValue,
127
+ service: funcParams.service,
128
+ serviceHolder: this,
129
+ eventGroups,
130
+ });
90
131
  },
91
132
  onClick: async function () {
92
- await this.callHandler("onClick")
133
+ await this.callHandler("onClick");
93
134
  },
94
135
  onFileDownload: async function () {
95
- await this.callHandler("onDownload")
136
+ await this.callHandler("onDownload");
96
137
  },
97
138
  onFileUpload: async function () {
98
- await this.callHandler("onUpload")
139
+ await this.callHandler("onUpload");
99
140
  },
100
141
  onPaginationChange: async function (paginationValues) {
101
142
  const apiBody = [
@@ -103,8 +144,8 @@ export default (funcParams: funcParamsProps) => {
103
144
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
104
145
  { key: "sorting", value: paginationValues.sorting || [] },
105
146
  { key: "filters", value: paginationValues.columnFilters || [] },
106
- { key: "globalFilter", value: paginationValues.globalFilter ?? '' }
107
- ]
147
+ { key: "globalFilter", value: paginationValues.globalFilter ?? "" },
148
+ ];
108
149
  const response = await this.updateConfigApiBody(paginationValues, apiBody);
109
150
  return response?.data;
110
151
  },
@@ -112,82 +153,83 @@ export default (funcParams: funcParamsProps) => {
112
153
  if (param.serachValue !== "" && param.serachValue !== undefined) {
113
154
  const apiBody = [
114
155
  { key: "searchValue", value: param.serachValue },
115
- { key: "currentValue", value: param.currentValue }
116
- ]
117
- return await this.updateConfigApiBody(param, apiBody)
156
+ { key: "currentValue", value: param.currentValue },
157
+ ];
158
+ return await this.updateConfigApiBody(param, apiBody);
118
159
  }
119
160
  },
120
161
  onChange: async function () {
121
162
  if (eventGroups.onChange) {
122
163
  const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
123
- Promise.all(ChangeEventsKeysArray.map(async (componentName: string) => {
124
- if (
125
- funcParams.store?.formData[componentName] !== funcParams.store.newData[componentName] &&
126
- funcParams.store?.newData[componentName] !== undefined
127
- ) {
128
- for (const eventConfig of eventGroups.onChange[componentName]) {
129
- await executeEvents({
130
- ...executeEventsParameters,
131
- config: eventConfig,
132
- componentName
133
- })
164
+ await Promise.all(
165
+ ChangeEventsKeysArray.map(async (componentName: string) => {
166
+ if (
167
+ funcParams.store?.formData[componentName] !== funcParams.store.newData[componentName] &&
168
+ funcParams.store?.newData[componentName] !== undefined
169
+ ) {
170
+ for (const eventConfig of eventGroups.onChange[componentName]) {
171
+ await debouncedExecuteEvents(eventConfig, componentName);
172
+ }
134
173
  }
135
- }
136
- }))
174
+ })
175
+ );
137
176
  }
138
177
  },
139
178
  updateConfigApiBody: async function (paramValue, apiBody) {
140
179
  let LastCallResponse = undefined;
141
180
  for (const eventConfig of eventGroups?.onLoad[paramValue.path]) {
142
181
  if (eventConfig.body) {
143
- eventConfig.body = [
144
- ...eventConfig.body,
145
- ...apiBody
146
- ]
147
- } else { eventConfig.body = apiBody; };
182
+ eventConfig.body = [...eventConfig.body, ...apiBody];
183
+ } else {
184
+ eventConfig.body = apiBody;
185
+ }
148
186
  const responseEvent = eventConfig?.events?.filter((elem) => {
149
- return elem.Handler !== "mergeFormdata"
150
- })
151
- eventConfig.events = responseEvent ?? []
187
+ return elem.Handler !== "mergeFormdata";
188
+ });
189
+ eventConfig.events = responseEvent ?? [];
152
190
  LastCallResponse = await executeEvents({
153
191
  ...executeEventsParameters,
154
192
  config: eventConfig,
155
- componentName: paramValue.path
156
- })
193
+ componentName: paramValue.path,
194
+ });
157
195
  }
158
- return LastCallResponse
196
+ return LastCallResponse;
159
197
  },
160
198
  onBack: async function (functionParameters) {
161
- const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[0];
162
- await this.callHandler("onBack", functionParameters)
199
+ const path =
200
+ funcParams.dynamicData?.tableButtonPath ||
201
+ funcParams.dynamicData.path.split(".")[0];
202
+ await this.callHandler("onBack", functionParameters);
163
203
  if (eventGroups?.["onBack"]?.[path] === undefined) {
164
- functionParameters?.handleBack()
204
+ functionParameters?.handleBack();
165
205
  }
166
206
  },
167
207
  onNext: async function (functionParameters) {
168
- const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[0];
169
- await this.callHandler("onNext", functionParameters)
208
+ const path =
209
+ funcParams.dynamicData?.tableButtonPath ||
210
+ funcParams.dynamicData.path.split(".")[0];
211
+ await this.callHandler("onNext", functionParameters);
170
212
  if (eventGroups?.["onNext"]?.[path] === undefined) {
171
- functionParameters?.handleNext()
213
+ functionParameters?.handleNext();
172
214
  }
173
215
  },
174
216
  onReset: async function (functionParameters) {
175
- const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[0];
176
- await this.callHandler("onReset", functionParameters)
217
+ const path =
218
+ funcParams.dynamicData?.tableButtonPath ||
219
+ funcParams.dynamicData.path.split(".")[0];
220
+ await this.callHandler("onReset", functionParameters);
177
221
  if (eventGroups?.["onReset"]?.[path] === undefined) {
178
- functionParameters?.handleReset()
222
+ functionParameters?.handleReset();
179
223
  }
180
224
  },
181
225
  callHandler: async function (eventType: string, functionParameters?: any) {
182
- const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[0];
226
+ const path =
227
+ funcParams.dynamicData?.tableButtonPath ||
228
+ funcParams.dynamicData.path.split(".")[0];
183
229
  if (eventGroups?.[eventType]?.[path] !== undefined) {
184
230
  for (const eventConfig of eventGroups?.[eventType]?.[path]) {
185
- executeEventsParameters.store.functionParameters = functionParameters
186
- await executeEvents({
187
- ...executeEventsParameters,
188
- config: eventConfig,
189
- componentName: path
190
- })
231
+ executeEventsParameters.store.functionParameters = functionParameters;
232
+ await debouncedExecuteEvents(eventConfig, path);
191
233
  }
192
234
  }
193
235
  },
@@ -195,14 +237,3 @@ export default (funcParams: funcParamsProps) => {
195
237
  download: doDownload,
196
238
  };
197
239
  };
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-