impaktapps-ui-builder 0.0.359 → 0.0.360
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.
- package/dist/impaktapps-ui-builder.es.js +10 -12
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +9 -11
|
@@ -18,7 +18,6 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
18
18
|
onChange: () => Promise<void>;
|
|
19
19
|
updateConfigApiBody: (paramValue: any, apiBody: any) => Promise<any>;
|
|
20
20
|
StepperBackHandler: (param: any) => Promise<void>;
|
|
21
|
-
StepperSkipHandler: (param: any) => Promise<void>;
|
|
22
21
|
StepperNextHandler: (param: any) => Promise<void>;
|
|
23
22
|
callHandler: (eventType: string) => Promise<void>;
|
|
24
23
|
downloadFile: (obj: any) => void;
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _ from "lodash";
|
|
1
|
+
import _, { isEmpty } from "lodash";
|
|
2
2
|
import { downloadFile } from "./downloadFile";
|
|
3
3
|
import { executeEvents, executeRefreshHandler } from "./events";
|
|
4
4
|
import { handlersProps } from "./interface";
|
|
@@ -158,22 +158,20 @@ export default (funcParams: funcParamsProps) => {
|
|
|
158
158
|
await this.callHandler("onStepperBack")
|
|
159
159
|
param.handleBack()
|
|
160
160
|
},
|
|
161
|
-
StepperSkipHandler: async function (param) {
|
|
162
|
-
await this.callHandler("onStepperSkip")
|
|
163
|
-
param.handleSkip()
|
|
164
|
-
},
|
|
165
161
|
StepperNextHandler: async function (param) {
|
|
166
162
|
await this.callHandler("onStepperNext")
|
|
167
163
|
param.handleNext()
|
|
168
164
|
},
|
|
169
165
|
callHandler: async function (eventType: string) {
|
|
170
166
|
const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[0];
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
167
|
+
if (eventGroups?.[eventType]?.[path] !== undefined) {
|
|
168
|
+
for (const eventConfig of eventGroups?.[eventType]?.[path]) {
|
|
169
|
+
await executeEvents({
|
|
170
|
+
...executeEventsParameters,
|
|
171
|
+
config: eventConfig,
|
|
172
|
+
componentName: path
|
|
173
|
+
})
|
|
174
|
+
}
|
|
177
175
|
}
|
|
178
176
|
},
|
|
179
177
|
downloadFile: downloadFile
|