impaktapps-ui-builder 0.0.321 → 0.0.323
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 +58 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildInputSlider.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +49 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +9 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -0
|
@@ -5876,6 +5876,7 @@ const ComponentSchema = {
|
|
|
5876
5876
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
5877
5877
|
{ title: "File", const: "FileInput" },
|
|
5878
5878
|
{ title: "Graph", const: "Graph" },
|
|
5879
|
+
{ title: "Input Slider", const: "InputSlider" },
|
|
5879
5880
|
{ title: "Label", const: "Box" },
|
|
5880
5881
|
{ title: "LeaderBoard", const: "LeaderBoard" },
|
|
5881
5882
|
{ title: "MultipleSelect", const: "MultipleSelect" },
|
|
@@ -6738,7 +6739,8 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
6738
6739
|
label: childLabel || "Labels for Tab"
|
|
6739
6740
|
}
|
|
6740
6741
|
}
|
|
6741
|
-
}
|
|
6742
|
+
},
|
|
6743
|
+
EmptyBox
|
|
6742
6744
|
]
|
|
6743
6745
|
}
|
|
6744
6746
|
}
|
|
@@ -6835,6 +6837,14 @@ const GraphSection = {
|
|
|
6835
6837
|
const buildPropertiesSection = function(type) {
|
|
6836
6838
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
6837
6839
|
switch (type) {
|
|
6840
|
+
case "InputSlider":
|
|
6841
|
+
uiSchema.elements = [
|
|
6842
|
+
getInputField("max", "Max Limit"),
|
|
6843
|
+
getInputField("step", "Step"),
|
|
6844
|
+
getInputField("min", "Min Limit"),
|
|
6845
|
+
getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"])
|
|
6846
|
+
];
|
|
6847
|
+
break;
|
|
6838
6848
|
case "Text":
|
|
6839
6849
|
uiSchema.elements = [
|
|
6840
6850
|
getInputField("placeholder", "Placeholder"),
|
|
@@ -7243,7 +7253,8 @@ const sectionLabels = {
|
|
|
7243
7253
|
Array: ["Core", "Components", "Validation"],
|
|
7244
7254
|
Radio: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7245
7255
|
Text: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7246
|
-
TextArea: ["Core", "Properties", "style", "Event", "Validation"]
|
|
7256
|
+
TextArea: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7257
|
+
InputSlider: ["Core", "Properties", "style", "Event", "Validation"]
|
|
7247
7258
|
};
|
|
7248
7259
|
const refreshPage = (type, store2) => {
|
|
7249
7260
|
var _a;
|
|
@@ -10181,6 +10192,48 @@ const buildFileInput = (config, componentScope) => {
|
|
|
10181
10192
|
}
|
|
10182
10193
|
return box;
|
|
10183
10194
|
};
|
|
10195
|
+
const InputSlider = {
|
|
10196
|
+
type: "Control",
|
|
10197
|
+
scope: "#/properties/inputSlider",
|
|
10198
|
+
options: {
|
|
10199
|
+
widget: "InputSlider"
|
|
10200
|
+
},
|
|
10201
|
+
config: {
|
|
10202
|
+
layout: 12,
|
|
10203
|
+
main: {
|
|
10204
|
+
limitToMax: false,
|
|
10205
|
+
max: 1e4,
|
|
10206
|
+
step: 1e3,
|
|
10207
|
+
min: 0,
|
|
10208
|
+
label: "Slider"
|
|
10209
|
+
},
|
|
10210
|
+
style: {}
|
|
10211
|
+
}
|
|
10212
|
+
};
|
|
10213
|
+
const buildInputSlider = (config, componentScope) => {
|
|
10214
|
+
const inputSlider = _.cloneDeep(InputSlider);
|
|
10215
|
+
inputSlider.scope = componentScope;
|
|
10216
|
+
inputSlider.config.main.heading = config.label;
|
|
10217
|
+
if (config.layout) {
|
|
10218
|
+
inputSlider.config.layout = createLayoutFormat(config.layout);
|
|
10219
|
+
}
|
|
10220
|
+
if (config.limitToMax) {
|
|
10221
|
+
inputSlider.config.main.limitToMax = config.limitToMax === "YES" ? true : false;
|
|
10222
|
+
}
|
|
10223
|
+
if (config.max) {
|
|
10224
|
+
inputSlider.config.main.max = config.max;
|
|
10225
|
+
}
|
|
10226
|
+
if (config.step) {
|
|
10227
|
+
inputSlider.config.main.step = config.step;
|
|
10228
|
+
}
|
|
10229
|
+
if (config.min) {
|
|
10230
|
+
inputSlider.config.main.min = config.min;
|
|
10231
|
+
}
|
|
10232
|
+
if (config.style) {
|
|
10233
|
+
inputSlider.config.main.defaultStyle = JSON.parse(config.style);
|
|
10234
|
+
}
|
|
10235
|
+
return inputSlider;
|
|
10236
|
+
};
|
|
10184
10237
|
let schema = {
|
|
10185
10238
|
type: "object",
|
|
10186
10239
|
properties: {},
|
|
@@ -10299,6 +10352,9 @@ const buildUiSchema = (config) => {
|
|
|
10299
10352
|
let elements = {};
|
|
10300
10353
|
const componentScope = `#/properties/${config.name}`;
|
|
10301
10354
|
switch (config.type) {
|
|
10355
|
+
case "InputSlider":
|
|
10356
|
+
elements = buildInputSlider(config, componentScope);
|
|
10357
|
+
break;
|
|
10302
10358
|
case "FileInput":
|
|
10303
10359
|
elements = buildFileInput(config, componentScope);
|
|
10304
10360
|
break;
|