impaktapps-ui-builder 0.0.395 → 0.0.397
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 +11 -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 +10 -1
- 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,14 @@ export default (
|
|
|
47
48
|
schema.required = ["eventType", "Handler", "refreshElements"]
|
|
48
49
|
}
|
|
49
50
|
}
|
|
51
|
+
if(functionsName){
|
|
52
|
+
schema.inBuiltFunctionType.oneOf = [
|
|
53
|
+
schema.properties.inBuiltFunctionType.oneOf = [
|
|
54
|
+
...schema.properties.inBuiltFunctionType.oneOf,
|
|
55
|
+
...functionsName
|
|
56
|
+
]
|
|
57
|
+
]
|
|
58
|
+
}
|
|
50
59
|
store.setSchema(schema)
|
|
51
60
|
store.setUiSchema(uiSchema)
|
|
52
61
|
},
|
|
@@ -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
|
|