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.
- package/dist/impaktapps-ui-builder.es.js +12 -34
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStepper.ts +2 -12
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -12
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +9 -11
|
@@ -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,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:
|
|
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: {
|
|
@@ -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
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|