impaktapps-ui-builder 0.0.402 → 0.0.403

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.
@@ -6,3 +6,4 @@ export declare function buildApiPayload(compConfig: any, body: any, headers: any
6
6
  headers: any;
7
7
  }>;
8
8
  export declare function getRefreshElements(eventConfig: any, eventGropus: any): string[];
9
+ export declare function asyncOperation(): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.402",
3
+ "version": "0.0.403",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -220,7 +220,7 @@ export function getRefreshElements(eventConfig: any, eventGropus: any) {
220
220
  }
221
221
 
222
222
 
223
- function asyncOperation() {
223
+ export function asyncOperation() {
224
224
  return new Promise((resolve, reject) => {
225
225
  setTimeout(() => {
226
226
  const success = true;
@@ -1,6 +1,6 @@
1
1
  import _, { isEmpty } from "lodash";
2
2
  import { doDownload, downloadFile } from "./downloadFile";
3
- import { executeEvents, executeRefreshHandler } from "./events";
3
+ import { asyncOperation, executeEvents, executeRefreshHandler } from "./events";
4
4
  import { handlersProps } from "./interface";
5
5
  let compType: string;
6
6
  let eventGroups: any = {};
@@ -69,12 +69,19 @@ export default (funcParams: funcParamsProps) => {
69
69
  return {
70
70
  setPage: async function () {
71
71
  funcParams.store.setFormdata({});
72
+ const demoData = await asyncOperation();
72
73
  executeEventsParameters = {
73
74
  config: {}, componentName: "",
74
75
  store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
75
76
  functionsProvider: funcParams.functionsProvider,
76
77
  serviceHolder: this, eventGroups
77
78
  }
79
+ await executeRefreshHandler({
80
+ config: {}, componentName: "",
81
+ store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
82
+ serviceHolder: this, eventGroups
83
+ })
84
+ const demoData2 = await asyncOperation();
78
85
  funcParams.store.setSchema(
79
86
  (pre: any) => {
80
87
  return {
@@ -85,11 +92,7 @@ export default (funcParams: funcParamsProps) => {
85
92
  )
86
93
  funcParams.uiSchema.elements.push(notifyUiSchema);
87
94
  funcParams.store.setUiSchema(funcParams.uiSchema);
88
- await executeRefreshHandler({
89
- config: {}, componentName: "",
90
- store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
91
- serviceHolder: this, eventGroups
92
- })
95
+
93
96
  },
94
97
  onClick: async function () {
95
98
  await this.callHandler("onClick")