impaktapps-ui-builder 0.0.382-alpha.26 → 0.0.382-alpha.28
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 +4 -0
- 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/builder/build/buildBasicUiSchema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -3
|
@@ -20,6 +20,7 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
20
20
|
onBack: (functionParameters: any) => Promise<void>;
|
|
21
21
|
onNext: (functionParameters: any) => Promise<void>;
|
|
22
22
|
onReset: (functionParameters: any) => Promise<void>;
|
|
23
|
+
backHandler: (store: any) => void;
|
|
23
24
|
callHandler: (eventType: string, functionParameters?: any) => Promise<void>;
|
|
24
25
|
downloadFile: (obj: any) => void;
|
|
25
26
|
download: (response: any, service: any) => void;
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ export const extractEvents = (eventConfig: any) => {
|
|
|
32
32
|
if (!(!!SuccessEvent) && event.eventType === "onLoad") {
|
|
33
33
|
event.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false })
|
|
34
34
|
}
|
|
35
|
-
if (!(!!SuccessEvent) && (event.eventType === "onBack" || event.eventType === "onNext"|| event.eventType === "onReset")) {
|
|
35
|
+
if (!(!!SuccessEvent) && (event.eventType === "onBack" || event.eventType === "onNext" || event.eventType === "onReset")) {
|
|
36
36
|
event.events.push({ Handler: `${event.eventType}Handler`, eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false })
|
|
37
37
|
}
|
|
38
38
|
eventGroups[event.eventType][eventConfigObj.name].push({ ...event, type: compType })
|
|
@@ -62,7 +62,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
62
62
|
let executeEventsParameters: handlersProps = {
|
|
63
63
|
config: {}, componentName: "",
|
|
64
64
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
65
|
-
serviceHolder: { downloadFile,download:doDownload }, eventGroups
|
|
65
|
+
serviceHolder: { downloadFile, download: doDownload }, eventGroups
|
|
66
66
|
};
|
|
67
67
|
return {
|
|
68
68
|
setPage: async function () {
|
|
@@ -178,6 +178,9 @@ export default (funcParams: funcParamsProps) => {
|
|
|
178
178
|
functionParameters?.handleReset()
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
|
+
backHandler: (store) => {
|
|
182
|
+
store.navigate(-1);
|
|
183
|
+
},
|
|
181
184
|
callHandler: async function (eventType: string, functionParameters?: any) {
|
|
182
185
|
const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[0];
|
|
183
186
|
if (eventGroups?.[eventType]?.[path] !== undefined) {
|
|
@@ -192,7 +195,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
192
195
|
}
|
|
193
196
|
},
|
|
194
197
|
downloadFile: downloadFile,
|
|
195
|
-
download:doDownload,
|
|
198
|
+
download: doDownload,
|
|
196
199
|
};
|
|
197
200
|
};
|
|
198
201
|
|