impaktapps-ui-builder 0.0.26 → 0.0.271

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" },
@@ -8046,6 +8048,7 @@ const extractEvents = (eventConfig) => {
8046
8048
  var service = (funcParams) => {
8047
8049
  return {
8048
8050
  setPage: async function() {
8051
+ funcParams.store.setFormdata({});
8049
8052
  eventGroups = {};
8050
8053
  eventGroups = extractEvents(funcParams.config);
8051
8054
  await executeEvents(
@@ -8462,7 +8465,7 @@ var progressBar = {
8462
8465
  config: {
8463
8466
  layout: 6,
8464
8467
  main: {
8465
- developOnlyProgresBar: true,
8468
+ developOnlyProgresBar: false,
8466
8469
  bottomLabel_3: "Remaining",
8467
8470
  heading: "PBC Details"
8468
8471
  }
@@ -8472,13 +8475,13 @@ const buildProgressBarCard = (config, myScope) => {
8472
8475
  const progressBarCard = _.cloneDeep(progressBar);
8473
8476
  progressBarCard.scope = myScope;
8474
8477
  if (config.heading) {
8475
- progressBarCard.elements[0].config.main.heading = config.heading;
8478
+ progressBarCard.config.main.heading = config.heading;
8476
8479
  }
8477
8480
  if (config.bottomLabel_3) {
8478
- progressBarCard.elements[0].config.main.bottomLabel_3 = config.bottomLabel_3;
8481
+ progressBarCard.config.main.bottomLabel_3 = config.bottomLabel_3;
8479
8482
  }
8480
8483
  if (config.bottomLabel_2) {
8481
- progressBarCard.elements[0].config.main.bottomLabel_2 = config.bottomLabel_2;
8484
+ progressBarCard.config.main.bottomLabel_2 = config.bottomLabel_2;
8482
8485
  }
8483
8486
  if (config.bottomLabel_1) {
8484
8487
  progressBarCard.elements[0].config.main.bottomLabel_1 = config.bottomLabel_1;
@@ -9445,6 +9448,31 @@ const buildSlider = (config, componentScope) => {
9445
9448
  }
9446
9449
  return slider;
9447
9450
  };
9451
+ const Checkbox = {
9452
+ "type": "Control",
9453
+ "scope": "#/properties/username1",
9454
+ "layout": 12,
9455
+ "options": {
9456
+ "widget": "CheckBox"
9457
+ },
9458
+ "config": {
9459
+ "main": {
9460
+ "label": "Welcome to Hyperform"
9461
+ }
9462
+ }
9463
+ };
9464
+ const buildCheckbox = (config, componentScope) => {
9465
+ const check = _.cloneDeep(Checkbox);
9466
+ check.scope = componentScope;
9467
+ check.config.main.label = config.label;
9468
+ if (config.layout) {
9469
+ check.config.layout = createLayoutFormat(config.layout);
9470
+ }
9471
+ if (config.style) {
9472
+ check.config.style = JSON.parse(config.style);
9473
+ }
9474
+ return check;
9475
+ };
9448
9476
  const buildUiSchema = (config) => {
9449
9477
  let elements = {};
9450
9478
  const componentScope = `#/properties/${config.name}`;
@@ -9479,6 +9507,9 @@ const buildUiSchema = (config) => {
9479
9507
  case "Box":
9480
9508
  elements = buildLabel(config, componentScope);
9481
9509
  break;
9510
+ case "CheckBox":
9511
+ elements = buildCheckbox(config, componentScope);
9512
+ break;
9482
9513
  case "UploadFile":
9483
9514
  elements = buildUploadFile(config, componentScope);
9484
9515
  break;