impaktapps-ui-builder 0.0.397 → 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 +6 -6
- 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/builder/services/event.d.ts +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/builder/services/event.ts +6 -8
- 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
|
@@ -12,7 +12,7 @@ export default (
|
|
|
12
12
|
dynamicData: any,
|
|
13
13
|
submitHandler: any,
|
|
14
14
|
service: any,
|
|
15
|
-
functionsName
|
|
15
|
+
functionsName?: { const: string, title: string }[]
|
|
16
16
|
) => {
|
|
17
17
|
return {
|
|
18
18
|
setPage: async function () {
|
|
@@ -48,12 +48,10 @@ export default (
|
|
|
48
48
|
schema.required = ["eventType", "Handler", "refreshElements"]
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
if(functionsName){
|
|
52
|
-
schema.inBuiltFunctionType.oneOf = [
|
|
53
|
-
schema.properties.inBuiltFunctionType.oneOf
|
|
54
|
-
|
|
55
|
-
...functionsName
|
|
56
|
-
]
|
|
51
|
+
if (functionsName) {
|
|
52
|
+
schema.properties.inBuiltFunctionType.oneOf = [
|
|
53
|
+
...schema.properties.inBuiltFunctionType.oneOf,
|
|
54
|
+
...functionsName
|
|
57
55
|
]
|
|
58
56
|
}
|
|
59
57
|
store.setSchema(schema)
|
|
@@ -68,7 +66,7 @@ export default (
|
|
|
68
66
|
return EventSchema;
|
|
69
67
|
},
|
|
70
68
|
okHandler: () => okHandler(store),
|
|
71
|
-
saveHandler: async () => await saveHandler(store, service, submitHandler,"PageMaster"),
|
|
69
|
+
saveHandler: async () => await saveHandler(store, service, submitHandler, "PageMaster"),
|
|
72
70
|
onChange: function () {
|
|
73
71
|
if (
|
|
74
72
|
store?.formData?.Handler !== store?.newData?.Handler &&
|
|
@@ -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
|
};
|