impaktapps-ui-builder 0.0.358 → 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.358",
3
+ "version": "0.0.360",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -1,9 +1,7 @@
1
1
  import _ from "lodash";
2
2
  import { createLayoutFormat } from "./buildConfig";
3
3
 
4
- const Stepper =
5
-
6
- {
4
+ const Stepper = {
7
5
  type: "Control",
8
6
  scope: "#/properties/Stepper",
9
7
  options: {
@@ -12,8 +10,7 @@ const Stepper =
12
10
 
13
11
  config: {
14
12
  main: {
15
- label: ["First", "Second", "Third"],
16
- stepsSkip: { 0: "false", 1: "false" },
13
+ steps:[{label:"First"}, {label:"Second"},{label: "Third"}],
17
14
  resetButton: false,
18
15
  resetText: "Reset",
19
16
  orientation: "vertical"
@@ -35,13 +32,6 @@ export const buildStepper = (config, componentScope) => {
35
32
  return { label: e.label, id: i }
36
33
  });
37
34
  }
38
- if (config.skipAvailable) {
39
- const stepObj = {}
40
- config.skipAvailable.map((e, i: number) => {
41
- stepObj[e.skipId] = true
42
- });
43
- stepper.config.main.stepSkip = stepObj
44
- }
45
35
  if (config.layout) {
46
36
  stepper.config.layout = createLayoutFormat(config.layout)
47
37
  }
@@ -170,8 +170,7 @@ export const buildPropertiesSection = function (type: String) {
170
170
  { label: "Vertical", value: "vertical" },
171
171
  ]),
172
172
  EmptyBox,
173
- getArrayControl("sectionLabels", "label"),
174
- getArrayControl("skipAvailable", "skipId"),
173
+ getArrayControl("sectionLabels", "label")
175
174
 
176
175
  ]
177
176
  break;
@@ -129,18 +129,6 @@ export const ComponentSchema: any = {
129
129
  },
130
130
  },
131
131
  },
132
- skipAvailable: {
133
- type: "array",
134
- items: {
135
- type: "object",
136
- properties: {
137
- skipId: {
138
- type: "string",
139
- },
140
-
141
- },
142
- },
143
- },
144
132
  Table_Download_Keys_Name: {
145
133
  type: "array",
146
134
  items: {
@@ -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