impaktapps-ui-builder 1.0.60 → 1.0.61
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 +1 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -5
|
@@ -5,7 +5,7 @@ interface funcParamsProps {
|
|
|
5
5
|
userValue: any;
|
|
6
6
|
pageDataProvider: any;
|
|
7
7
|
functionsProvider?: Record<string, any>;
|
|
8
|
-
|
|
8
|
+
initFormData?: any;
|
|
9
9
|
}
|
|
10
10
|
export declare const extractEvents: (eventConfig: any) => any;
|
|
11
11
|
declare const _default: (funcParams: funcParamsProps) => {
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ interface funcParamsProps {
|
|
|
20
20
|
userValue: any,
|
|
21
21
|
pageDataProvider: any,
|
|
22
22
|
functionsProvider?: Record<string, any>,
|
|
23
|
-
|
|
23
|
+
initFormData?: any
|
|
24
24
|
}
|
|
25
25
|
let pageData: any = false;
|
|
26
26
|
export const extractEvents = (eventConfig: any) => {
|
|
@@ -72,15 +72,12 @@ export default (funcParams: funcParamsProps) => {
|
|
|
72
72
|
return {
|
|
73
73
|
setPage: async function () {
|
|
74
74
|
funcParams.store.setAdditionalErrors([]);
|
|
75
|
-
funcParams.store.setFormdata({});
|
|
75
|
+
funcParams.store.setFormdata(funcParams?.initFormData() || {});
|
|
76
76
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
77
77
|
funcParams.store.newData = {};
|
|
78
78
|
eventGroups = {};
|
|
79
79
|
pageData = await funcParams.pageDataProvider();
|
|
80
80
|
const config = pageData?.config;
|
|
81
|
-
|
|
82
|
-
funcParams?.setExternaldata();
|
|
83
|
-
|
|
84
81
|
const uiSchema = pageData?.uiSchema;
|
|
85
82
|
const event = new CustomEvent('pageNameChanged', {
|
|
86
83
|
detail: { pageName: config.label, hasBackIcon: true }
|