impaktapps-ui-builder 0.0.101-alpha.24 → 0.0.101-alpha.26

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.
@@ -7430,77 +7430,103 @@ const emptyBox$1 = (scope, layout) => {
7430
7430
  const cardLayout = {
7431
7431
  type: "Control",
7432
7432
  scope: "#/properties/cardLayout",
7433
- layout: 11.5,
7434
7433
  options: {
7435
- detail: {
7436
- type: "HorizontalLayout",
7437
- elements: [
7438
- {
7439
- type: "Control",
7440
- scope: "#/properties/key",
7441
- options: {
7442
- widget: "SelectInputField"
7443
- },
7444
- config: {
7445
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7446
- main: {
7447
- label: "Screen Size"
7448
- }
7449
- }
7450
- },
7451
- {
7452
- type: "Control",
7453
- scope: "#/properties/value",
7454
- options: {
7455
- widget: "InputField"
7456
- },
7457
- config: {
7458
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7459
- main: {
7460
- label: "Value",
7461
- type: "number",
7462
- helperText: "Number should be in range of 0 to 12",
7463
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7464
- }
7465
- }
7466
- },
7467
- emptyBox$1("cardEmpty")
7468
- ]
7434
+ widget: "Array"
7435
+ },
7436
+ config: {
7437
+ layout: 12,
7438
+ main: {
7439
+ label: "Card Layout",
7440
+ childElementLabel: "Card Layout"
7441
+ },
7442
+ style: {
7443
+ marginLeft: "-24px",
7444
+ marginBottom: "24px !important",
7445
+ labelStyle: {
7446
+ marginLeft: "24px"
7447
+ },
7448
+ detailsStyle: {
7449
+ marginLeft: "24px"
7450
+ }
7469
7451
  }
7470
- }
7452
+ },
7453
+ elements: [
7454
+ {
7455
+ type: "Control",
7456
+ scope: "#/properties/key",
7457
+ options: {
7458
+ widget: "SelectInputField"
7459
+ },
7460
+ config: {
7461
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7462
+ main: {
7463
+ label: "Screen Size"
7464
+ }
7465
+ }
7466
+ },
7467
+ {
7468
+ type: "Control",
7469
+ scope: "#/properties/value",
7470
+ options: {
7471
+ widget: "InputField"
7472
+ },
7473
+ config: {
7474
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7475
+ main: {
7476
+ label: "Value",
7477
+ type: "number",
7478
+ helperText: "Number should be in range of 0 to 12",
7479
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7480
+ }
7481
+ }
7482
+ },
7483
+ emptyBox$1("cardEmpty")
7484
+ ]
7471
7485
  };
7472
7486
  const getArrayControl = (parentScope, childScope, childLabel) => {
7473
7487
  return {
7474
7488
  type: "Control",
7475
7489
  scope: `#/properties/${parentScope}`,
7476
- layout: 12,
7477
7490
  options: {
7478
- "elementLabelProp": childScope,
7479
- detail: {
7480
- type: "HorizontalLayout",
7481
- elements: [
7482
- {
7483
- type: "Control",
7484
- scope: `#/properties/${childScope}`,
7485
- options: {
7486
- widget: "InputField"
7487
- },
7488
- config: {
7489
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7490
- main: {
7491
- label: childLabel || "Labels for Tab"
7492
- }
7493
- }
7494
- },
7495
- emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7496
- emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
7497
- ]
7491
+ widget: "Array"
7492
+ },
7493
+ config: {
7494
+ layout: 12,
7495
+ main: {
7496
+ label: childScope,
7497
+ childElementLabel: childScope
7498
+ },
7499
+ style: {
7500
+ marginLeft: "-24px",
7501
+ marginBottom: "24px !important",
7502
+ labelStyle: {
7503
+ marginLeft: "24px"
7504
+ },
7505
+ detailsStyle: {
7506
+ marginLeft: "24px"
7507
+ }
7498
7508
  }
7499
- }
7509
+ },
7510
+ elements: [
7511
+ {
7512
+ type: "Control",
7513
+ scope: `#/properties/${childScope}`,
7514
+ options: {
7515
+ widget: "InputField"
7516
+ },
7517
+ config: {
7518
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7519
+ main: {
7520
+ label: childLabel || "Labels for Tab"
7521
+ }
7522
+ }
7523
+ },
7524
+ emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
7525
+ ]
7500
7526
  };
7501
7527
  };
7502
7528
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7503
- sizeHolder.options.detail.elements[1] = {
7529
+ sizeHolder.elements[1] = {
7504
7530
  type: "Control",
7505
7531
  scope: `#/properties/value`,
7506
7532
  options: {
@@ -7513,7 +7539,7 @@ sizeHolder.options.detail.elements[1] = {
7513
7539
  }
7514
7540
  }
7515
7541
  };
7516
- sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
7542
+ sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
7517
7543
  const getInputField = (scope, label) => {
7518
7544
  return {
7519
7545
  type: "Control",
@@ -7552,17 +7578,7 @@ const buildWrapper = (label, elements) => {
7552
7578
  main: {
7553
7579
  label: label || "Details",
7554
7580
  isAccordion: true
7555
- },
7556
- wrapperStyle: {
7557
- marginTop: "-6px",
7558
- marginBottom: "-8px",
7559
- marginLeft: "-34px",
7560
- width: "108%"
7561
- },
7562
- componentsBoxStyle: {
7563
- marginLeft: "12px"
7564
- },
7565
- defaultStyle: true
7581
+ }
7566
7582
  },
7567
7583
  elements: elements || []
7568
7584
  };
@@ -7773,7 +7789,7 @@ const buildPropertiesSection = function(type) {
7773
7789
  getInputField("xAxisValue", "X-AxisValue"),
7774
7790
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7775
7791
  getInputField("leftMargin", "Left Margin"),
7776
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7792
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7777
7793
  getArrayControl("legendLabels", "label"),
7778
7794
  getArrayControl("pieArcColors", "color")
7779
7795
  ];