impaktapps-ui-builder 0.0.26 → 0.0.27

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.
@@ -6048,6 +6048,7 @@ const componentBasicUiSchema = {
6048
6048
  options: [
6049
6049
  { label: "Select", value: "Select" },
6050
6050
  { label: "Date", value: "Date" },
6051
+ { label: "CheckBox", value: "CheckBox" },
6051
6052
  { label: "Table", value: "Table" },
6052
6053
  { label: "Array", value: "Array" },
6053
6054
  { label: "Container", value: "WrapperSection" },
@@ -6322,6 +6323,7 @@ const CoreSection = {
6322
6323
  options: [
6323
6324
  { label: "Select", value: "Select" },
6324
6325
  { label: "Date", value: "Date" },
6326
+ { label: "CheckBox", value: "CheckBox" },
6325
6327
  { label: "Table", value: "Table" },
6326
6328
  { label: "Array", value: "Array" },
6327
6329
  { label: "Container", value: "WrapperSection" },
@@ -8462,7 +8464,7 @@ var progressBar = {
8462
8464
  config: {
8463
8465
  layout: 6,
8464
8466
  main: {
8465
- developOnlyProgresBar: true,
8467
+ developOnlyProgresBar: false,
8466
8468
  bottomLabel_3: "Remaining",
8467
8469
  heading: "PBC Details"
8468
8470
  }
@@ -8472,13 +8474,13 @@ const buildProgressBarCard = (config, myScope) => {
8472
8474
  const progressBarCard = _.cloneDeep(progressBar);
8473
8475
  progressBarCard.scope = myScope;
8474
8476
  if (config.heading) {
8475
- progressBarCard.elements[0].config.main.heading = config.heading;
8477
+ progressBarCard.config.main.heading = config.heading;
8476
8478
  }
8477
8479
  if (config.bottomLabel_3) {
8478
- progressBarCard.elements[0].config.main.bottomLabel_3 = config.bottomLabel_3;
8480
+ progressBarCard.config.main.bottomLabel_3 = config.bottomLabel_3;
8479
8481
  }
8480
8482
  if (config.bottomLabel_2) {
8481
- progressBarCard.elements[0].config.main.bottomLabel_2 = config.bottomLabel_2;
8483
+ progressBarCard.config.main.bottomLabel_2 = config.bottomLabel_2;
8482
8484
  }
8483
8485
  if (config.bottomLabel_1) {
8484
8486
  progressBarCard.elements[0].config.main.bottomLabel_1 = config.bottomLabel_1;
@@ -9445,6 +9447,31 @@ const buildSlider = (config, componentScope) => {
9445
9447
  }
9446
9448
  return slider;
9447
9449
  };
9450
+ const Checkbox = {
9451
+ "type": "Control",
9452
+ "scope": "#/properties/username1",
9453
+ "layout": 12,
9454
+ "options": {
9455
+ "widget": "CheckBox"
9456
+ },
9457
+ "config": {
9458
+ "main": {
9459
+ "label": "Welcome to Hyperform"
9460
+ }
9461
+ }
9462
+ };
9463
+ const buildCheckbox = (config, componentScope) => {
9464
+ const check = _.cloneDeep(Checkbox);
9465
+ check.scope = componentScope;
9466
+ check.config.main.label = config.label;
9467
+ if (config.layout) {
9468
+ check.config.layout = createLayoutFormat(config.layout);
9469
+ }
9470
+ if (config.style) {
9471
+ check.config.style = JSON.parse(config.style);
9472
+ }
9473
+ return check;
9474
+ };
9448
9475
  const buildUiSchema = (config) => {
9449
9476
  let elements = {};
9450
9477
  const componentScope = `#/properties/${config.name}`;
@@ -9479,6 +9506,9 @@ const buildUiSchema = (config) => {
9479
9506
  case "Box":
9480
9507
  elements = buildLabel(config, componentScope);
9481
9508
  break;
9509
+ case "CheckBox":
9510
+ elements = buildCheckbox(config, componentScope);
9511
+ break;
9482
9512
  case "UploadFile":
9483
9513
  elements = buildUploadFile(config, componentScope);
9484
9514
  break;