impaktapps-ui-builder 0.0.382-alpha.324 → 0.0.382-alpha.326

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.
@@ -9145,8 +9145,12 @@ var service = (funcParams) => {
9145
9145
  serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
9146
9146
  eventGroups
9147
9147
  };
9148
+ const handleButtonClick = lodash.exports.debounce(async function() {
9149
+ await this.callHandler("onClick");
9150
+ }, 300);
9148
9151
  return {
9149
9152
  setPage: async function() {
9153
+ funcParams.store.setFormdata({});
9150
9154
  executeEventsParameters = {
9151
9155
  config: {},
9152
9156
  componentName: "",
@@ -9157,32 +9161,24 @@ var service = (funcParams) => {
9157
9161
  serviceHolder: this,
9158
9162
  eventGroups
9159
9163
  };
9160
- funcParams.store.setSchema(
9161
- (pre) => {
9162
- return {
9163
- ...funcParams.schema,
9164
- properties: { ...funcParams.schema.properties, ...pre.properties }
9165
- };
9166
- }
9167
- );
9164
+ funcParams.store.setFormdata({ testKey: "testValue" });
9165
+ console.log("After Setting Specific Value:", funcParams.store.formData);
9166
+ funcParams.store.setSchema(funcParams.schema);
9168
9167
  funcParams.uiSchema.elements.push(notifyUiSchema);
9169
9168
  funcParams.store.setUiSchema(funcParams.uiSchema);
9170
- funcParams.store.setFormdata({});
9171
- setTimeout(() => {
9172
- executeRefreshHandler({
9173
- config: {},
9174
- componentName: "",
9175
- store: funcParams.store,
9176
- dynamicData: funcParams.dynamicData,
9177
- userValue: funcParams.userValue,
9178
- service: funcParams.service,
9179
- serviceHolder: this,
9180
- eventGroups
9181
- });
9182
- }, 5e3);
9169
+ await executeRefreshHandler({
9170
+ config: {},
9171
+ componentName: "",
9172
+ store: funcParams.store,
9173
+ dynamicData: funcParams.dynamicData,
9174
+ userValue: funcParams.userValue,
9175
+ service: funcParams.service,
9176
+ serviceHolder: this,
9177
+ eventGroups
9178
+ });
9183
9179
  },
9184
9180
  onClick: async function() {
9185
- await this.callHandler("onClick");
9181
+ handleButtonClick();
9186
9182
  },
9187
9183
  onFileDownload: async function() {
9188
9184
  await this.callHandler("onDownload");