impaktapps-ui-builder 0.0.359 → 0.0.360

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.
@@ -18,7 +18,6 @@ declare const _default: (funcParams: funcParamsProps) => {
18
18
  onChange: () => Promise<void>;
19
19
  updateConfigApiBody: (paramValue: any, apiBody: any) => Promise<any>;
20
20
  StepperBackHandler: (param: any) => Promise<void>;
21
- StepperSkipHandler: (param: any) => Promise<void>;
22
21
  StepperNextHandler: (param: any) => Promise<void>;
23
22
  callHandler: (eventType: string) => Promise<void>;
24
23
  downloadFile: (obj: any) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.359",
3
+ "version": "0.0.360",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -108,7 +108,7 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
108
108
  ...pre.properties?.[componentName],
109
109
  type: "array",
110
110
  items: {
111
- oneOf: handlerResponse.data
111
+ oneOf: handlerResponse?.data
112
112
  }
113
113
  }
114
114
  }
@@ -1,4 +1,4 @@
1
- import _ from "lodash";
1
+ import _, { isEmpty } from "lodash";
2
2
  import { downloadFile } from "./downloadFile";
3
3
  import { executeEvents, executeRefreshHandler } from "./events";
4
4
  import { handlersProps } from "./interface";
@@ -158,22 +158,20 @@ export default (funcParams: funcParamsProps) => {
158
158
  await this.callHandler("onStepperBack")
159
159
  param.handleBack()
160
160
  },
161
- StepperSkipHandler: async function (param) {
162
- await this.callHandler("onStepperSkip")
163
- param.handleSkip()
164
- },
165
161
  StepperNextHandler: async function (param) {
166
162
  await this.callHandler("onStepperNext")
167
163
  param.handleNext()
168
164
  },
169
165
  callHandler: async function (eventType: string) {
170
166
  const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[0];
171
- for (const eventConfig of eventGroups?.[eventType]?.[path]) {
172
- await executeEvents({
173
- ...executeEventsParameters,
174
- config: eventConfig,
175
- componentName: path
176
- })
167
+ if (eventGroups?.[eventType]?.[path] !== undefined) {
168
+ for (const eventConfig of eventGroups?.[eventType]?.[path]) {
169
+ await executeEvents({
170
+ ...executeEventsParameters,
171
+ config: eventConfig,
172
+ componentName: path
173
+ })
174
+ }
177
175
  }
178
176
  },
179
177
  downloadFile: downloadFile