impaktapps-ui-builder 0.0.322 → 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.
@@ -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" },
@@ -6836,6 +6837,14 @@ const GraphSection = {
6836
6837
  const buildPropertiesSection = function(type) {
6837
6838
  let uiSchema = _.cloneDeep(GraphSection);
6838
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;
6839
6848
  case "Text":
6840
6849
  uiSchema.elements = [
6841
6850
  getInputField("placeholder", "Placeholder"),
@@ -7244,7 +7253,8 @@ const sectionLabels = {
7244
7253
  Array: ["Core", "Components", "Validation"],
7245
7254
  Radio: ["Core", "Properties", "style", "Event", "Validation"],
7246
7255
  Text: ["Core", "Properties", "style", "Event", "Validation"],
7247
- TextArea: ["Core", "Properties", "style", "Event", "Validation"]
7256
+ TextArea: ["Core", "Properties", "style", "Event", "Validation"],
7257
+ InputSlider: ["Core", "Properties", "style", "Event", "Validation"]
7248
7258
  };
7249
7259
  const refreshPage = (type, store2) => {
7250
7260
  var _a;
@@ -10182,6 +10192,48 @@ const buildFileInput = (config, componentScope) => {
10182
10192
  }
10183
10193
  return box;
10184
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
+ };
10185
10237
  let schema = {
10186
10238
  type: "object",
10187
10239
  properties: {},
@@ -10300,6 +10352,9 @@ const buildUiSchema = (config) => {
10300
10352
  let elements = {};
10301
10353
  const componentScope = `#/properties/${config.name}`;
10302
10354
  switch (config.type) {
10355
+ case "InputSlider":
10356
+ elements = buildInputSlider(config, componentScope);
10357
+ break;
10303
10358
  case "FileInput":
10304
10359
  elements = buildFileInput(config, componentScope);
10305
10360
  break;