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.
- package/dist/impaktapps-ui-builder.es.js +12 -10
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +9 -6
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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")
|