impaktapps-ui-builder 0.0.382-alpha.27 → 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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.382-alpha.27",
3
+ "version": "0.0.382-alpha.28",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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