impaktapps-ui-builder 0.0.355 → 0.0.356
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 +13 -7
- 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/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStepper.ts +4 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +3 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +5 -0
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ const Stepper =
|
|
|
15
15
|
label: ["First", "Second", "Third"],
|
|
16
16
|
stepsSkip: { 0: "false", 1: "false" },
|
|
17
17
|
resetButton: false,
|
|
18
|
-
resetText: "
|
|
18
|
+
resetText: "Reset",
|
|
19
19
|
orientation: "vertical"
|
|
20
20
|
},
|
|
21
21
|
},
|
|
@@ -26,10 +26,10 @@ const Stepper =
|
|
|
26
26
|
export const buildStepper = (config, componentScope) => {
|
|
27
27
|
const stepper: any = _.cloneDeep(Stepper);
|
|
28
28
|
stepper.scope = componentScope;
|
|
29
|
-
stepper.config.main.
|
|
30
|
-
stepper.config.main.
|
|
29
|
+
stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
|
|
30
|
+
stepper.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
|
|
31
31
|
stepper.config.main.resetText = config.resetText || "ResetData";
|
|
32
|
-
stepper.config.main.completeText = config.completeText || "
|
|
32
|
+
stepper.config.main.completeText = config.completeText || "Complete Text";
|
|
33
33
|
stepper.config.main.orientation = config.orientation || "horizontal";
|
|
34
34
|
if (config.sectionLabels) {
|
|
35
35
|
stepper.config.main.label = config.sectionLabels.map((e, i: number) => {
|
|
@@ -162,17 +162,18 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
162
162
|
switch (type) {
|
|
163
163
|
case "Stepper":
|
|
164
164
|
uiSchema.elements = [
|
|
165
|
-
getRadioInputField("complete", "Complete Needed", ["YES", "NO"]),
|
|
166
165
|
getRadioInputField("resetButton", "Reset Button", ["YES", "NO"]),
|
|
166
|
+
getRadioInputField("fullWidth", "Reset Button", ["YES", "NO"]),
|
|
167
167
|
getInputField("resetText", "Reset Text"),
|
|
168
168
|
getInputField("completeText", "Complete Text"),
|
|
169
169
|
getSelectField("orientation", "Orientation Type", [
|
|
170
170
|
{ label: "Horizontal", value: "horizontal" },
|
|
171
171
|
{ label: "Vertical", value: "vertical" },
|
|
172
172
|
]),
|
|
173
|
+
EmptyBox,
|
|
173
174
|
getArrayControl("sectionLabels", "label"),
|
|
174
175
|
getArrayControl("skipAvailable", "skipId"),
|
|
175
|
-
|
|
176
|
+
|
|
176
177
|
]
|
|
177
178
|
break;
|
|
178
179
|
case "PopUp":
|
|
@@ -37,6 +37,11 @@ export const ComponentSchema: any = {
|
|
|
37
37
|
{ title: "Timer", const: "Timer" },
|
|
38
38
|
{ title: "Upload File", const: "UploadFile" },]
|
|
39
39
|
},
|
|
40
|
+
orientation:{
|
|
41
|
+
oneOf: [
|
|
42
|
+
{ title: "Horizontal", const: "horizontal" },
|
|
43
|
+
{ title: "Vertical", const: "vertical" },
|
|
44
|
+
]},
|
|
40
45
|
method: {
|
|
41
46
|
type: "string",
|
|
42
47
|
oneOf: [
|