impaktapps-ui-builder 0.0.382-alpha.321 → 0.0.382-alpha.323

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.382-alpha.321",
3
+ "version": "0.0.382-alpha.323",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -66,36 +66,40 @@ export default (funcParams: funcParamsProps) => {
66
66
  };
67
67
  return {
68
68
  setPage: async function () {
69
- funcParams.store.setFormdata({});
69
+ // funcParams.store.setFormdata({});
70
70
  executeEventsParameters = {
71
71
  config: {}, componentName: "",
72
72
  store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
73
73
  serviceHolder: this, eventGroups
74
74
  }
75
- console.log("11 ",funcParams.store.formData);
76
-
77
- const res = await fetch("https://jsonplaceholder.typicode.com/todos");
78
- const resTo = await res.json();
79
-
80
- console.log("22 ",funcParams.store.formData);
81
-
82
- // funcParams.store.setSchema(
83
- // (pre: any) => {
84
- // return {
85
- // ...funcParams.schema, properties:
86
- // { ...funcParams.schema.properties, ...pre.properties, }
87
- // }
88
- // }
89
- // )
90
- funcParams.store.setSchema(funcParams.schema);
91
-
75
+ funcParams.store.setSchema(
76
+ (pre: any) => {
77
+ return {
78
+ ...funcParams.schema, properties:
79
+ { ...funcParams.schema.properties, ...pre.properties, }
80
+ }
81
+ }
82
+ )
92
83
  funcParams.uiSchema.elements.push(notifyUiSchema);
93
84
  funcParams.store.setUiSchema(funcParams.uiSchema);
94
- await executeRefreshHandler({
95
- config: {}, componentName: "",
96
- store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
97
- serviceHolder: this, eventGroups
98
- })
85
+ funcParams.store.setFormdata(() => {
86
+ executeRefreshHandler({
87
+ config: {},
88
+ componentName: "",
89
+ store: funcParams.store,
90
+ dynamicData: funcParams.dynamicData,
91
+ userValue: funcParams.userValue,
92
+ service: funcParams.service,
93
+ serviceHolder: this,
94
+ eventGroups,
95
+ });
96
+ return {};
97
+ });
98
+ // await executeRefreshHandler({
99
+ // config: {}, componentName: "",
100
+ // store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
101
+ // serviceHolder: this, eventGroups
102
+ // })
99
103
  },
100
104
  onClick: async function () {
101
105
  await this.callHandler("onClick")