impaktapps-ui-builder 0.0.398 → 0.0.399
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 +3 -1
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/interface.ts +2 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -4
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ export const extractEvents = (eventConfig: any) => {
|
|
|
32
32
|
if (!(!!SuccessEvent) && event.eventType === "onLoad") {
|
|
33
33
|
event.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false })
|
|
34
34
|
}
|
|
35
|
-
if (!(!!SuccessEvent) && (event.eventType === "onBack" || event.eventType === "onNext"|| event.eventType === "onReset")) {
|
|
35
|
+
if (!(!!SuccessEvent) && (event.eventType === "onBack" || event.eventType === "onNext" || event.eventType === "onReset")) {
|
|
36
36
|
event.events.push({ Handler: `${event.eventType}Handler`, eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false })
|
|
37
37
|
}
|
|
38
38
|
eventGroups[event.eventType][eventConfigObj.name].push({ ...event, type: compType })
|
|
@@ -55,7 +55,7 @@ interface funcParamsProps {
|
|
|
55
55
|
schema: any,
|
|
56
56
|
service: any,
|
|
57
57
|
userValue: any,
|
|
58
|
-
functionsProvider?:Record<string,any>
|
|
58
|
+
functionsProvider?: Record<string, any>
|
|
59
59
|
}
|
|
60
60
|
export default (funcParams: funcParamsProps) => {
|
|
61
61
|
eventGroups = {}
|
|
@@ -63,7 +63,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
63
63
|
let executeEventsParameters: handlersProps = {
|
|
64
64
|
config: {}, componentName: "",
|
|
65
65
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
66
|
-
serviceHolder: { downloadFile
|
|
66
|
+
serviceHolder: { downloadFile, download: doDownload }, eventGroups,
|
|
67
|
+
functionsProvider: funcParams.functionsProvider,
|
|
67
68
|
};
|
|
68
69
|
return {
|
|
69
70
|
setPage: async function () {
|
|
@@ -71,6 +72,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
71
72
|
executeEventsParameters = {
|
|
72
73
|
config: {}, componentName: "",
|
|
73
74
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
75
|
+
functionsProvider: funcParams.functionsProvider,
|
|
74
76
|
serviceHolder: this, eventGroups
|
|
75
77
|
}
|
|
76
78
|
funcParams.store.setSchema(
|
|
@@ -196,7 +198,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
196
198
|
}
|
|
197
199
|
},
|
|
198
200
|
downloadFile: downloadFile,
|
|
199
|
-
download:doDownload,
|
|
201
|
+
download: doDownload,
|
|
200
202
|
...funcParams.functionsProvider
|
|
201
203
|
};
|
|
202
204
|
};
|