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.
@@ -9147,7 +9147,6 @@ var service = (funcParams) => {
9147
9147
  };
9148
9148
  return {
9149
9149
  setPage: async function() {
9150
- funcParams.store.setFormdata({});
9151
9150
  executeEventsParameters = {
9152
9151
  config: {},
9153
9152
  componentName: "",
@@ -9158,22 +9157,28 @@ var service = (funcParams) => {
9158
9157
  serviceHolder: this,
9159
9158
  eventGroups
9160
9159
  };
9161
- console.log("11 ", funcParams.store.formData);
9162
- const res = await fetch("https://jsonplaceholder.typicode.com/todos");
9163
- await res.json();
9164
- console.log("22 ", funcParams.store.formData);
9165
- funcParams.store.setSchema(funcParams.schema);
9160
+ funcParams.store.setSchema(
9161
+ (pre) => {
9162
+ return {
9163
+ ...funcParams.schema,
9164
+ properties: { ...funcParams.schema.properties, ...pre.properties }
9165
+ };
9166
+ }
9167
+ );
9166
9168
  funcParams.uiSchema.elements.push(notifyUiSchema);
9167
9169
  funcParams.store.setUiSchema(funcParams.uiSchema);
9168
- await executeRefreshHandler({
9169
- config: {},
9170
- componentName: "",
9171
- store: funcParams.store,
9172
- dynamicData: funcParams.dynamicData,
9173
- userValue: funcParams.userValue,
9174
- service: funcParams.service,
9175
- serviceHolder: this,
9176
- eventGroups
9170
+ funcParams.store.setFormdata(() => {
9171
+ executeRefreshHandler({
9172
+ config: {},
9173
+ componentName: "",
9174
+ store: funcParams.store,
9175
+ dynamicData: funcParams.dynamicData,
9176
+ userValue: funcParams.userValue,
9177
+ service: funcParams.service,
9178
+ serviceHolder: this,
9179
+ eventGroups
9180
+ });
9181
+ return {};
9177
9182
  });
9178
9183
  },
9179
9184
  onClick: async function() {