impaktapps-ui-builder 0.0.396 → 0.0.398
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 +9 -2
- 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/builder/services/event.d.ts +4 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/event.ts +9 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -0
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
declare const _default: (store: any, dynamicData: any, submitHandler: any, service: any
|
|
1
|
+
declare const _default: (store: any, dynamicData: any, submitHandler: any, service: any, functionsName?: {
|
|
2
|
+
const: string;
|
|
3
|
+
title: string;
|
|
4
|
+
}[]) => {
|
|
2
5
|
setPage: () => Promise<void>;
|
|
3
6
|
refreshPage: (handlerType: any, store: any) => void;
|
|
4
7
|
getFormData: () => any;
|
package/package.json
CHANGED
|
@@ -11,7 +11,8 @@ export default (
|
|
|
11
11
|
store: any,
|
|
12
12
|
dynamicData: any,
|
|
13
13
|
submitHandler: any,
|
|
14
|
-
service: any
|
|
14
|
+
service: any,
|
|
15
|
+
functionsName?: { const: string, title: string }[]
|
|
15
16
|
) => {
|
|
16
17
|
return {
|
|
17
18
|
setPage: async function () {
|
|
@@ -47,6 +48,12 @@ export default (
|
|
|
47
48
|
schema.required = ["eventType", "Handler", "refreshElements"]
|
|
48
49
|
}
|
|
49
50
|
}
|
|
51
|
+
if (functionsName) {
|
|
52
|
+
schema.properties.inBuiltFunctionType.oneOf = [
|
|
53
|
+
...schema.properties.inBuiltFunctionType.oneOf,
|
|
54
|
+
...functionsName
|
|
55
|
+
]
|
|
56
|
+
}
|
|
50
57
|
store.setSchema(schema)
|
|
51
58
|
store.setUiSchema(uiSchema)
|
|
52
59
|
},
|
|
@@ -59,7 +66,7 @@ export default (
|
|
|
59
66
|
return EventSchema;
|
|
60
67
|
},
|
|
61
68
|
okHandler: () => okHandler(store),
|
|
62
|
-
saveHandler: async () => await saveHandler(store, service, submitHandler,"PageMaster"),
|
|
69
|
+
saveHandler: async () => await saveHandler(store, service, submitHandler, "PageMaster"),
|
|
63
70
|
onChange: function () {
|
|
64
71
|
if (
|
|
65
72
|
store?.formData?.Handler !== store?.newData?.Handler &&
|
|
@@ -55,6 +55,7 @@ interface funcParamsProps {
|
|
|
55
55
|
schema: any,
|
|
56
56
|
service: any,
|
|
57
57
|
userValue: any,
|
|
58
|
+
functionsProvider?:Record<string,any>
|
|
58
59
|
}
|
|
59
60
|
export default (funcParams: funcParamsProps) => {
|
|
60
61
|
eventGroups = {}
|
|
@@ -196,6 +197,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
196
197
|
},
|
|
197
198
|
downloadFile: downloadFile,
|
|
198
199
|
download:doDownload,
|
|
200
|
+
...funcParams.functionsProvider
|
|
199
201
|
};
|
|
200
202
|
};
|
|
201
203
|
|