impaktapps-ui-builder 0.0.1052 → 0.0.1055

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.
@@ -6475,23 +6475,20 @@ const ComponentSchema = {
6475
6475
  }
6476
6476
  },
6477
6477
  filteringOptions: {
6478
- type: "array",
6479
- items: {
6480
- oneOf: [
6481
- { const: "fuzzy", title: "Fuzzy" },
6482
- { const: "contains", title: "Contain" },
6483
- { const: "startsWith", title: "Starts with" },
6484
- { const: "endsWith", title: "Ends with" },
6485
- { const: "equals", title: "Equals" },
6486
- { const: "notEquals", title: "Not Equals" },
6487
- { const: "between", title: "Between" },
6488
- { const: "betweenInclusive", title: "Between inclusive" },
6489
- { const: "greaterThan", title: "Greater than" },
6490
- { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6491
- { const: "lessThan", title: "Less than" },
6492
- { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6493
- ]
6494
- }
6478
+ oneOf: [
6479
+ { const: "fuzzy", title: "Fuzzy" },
6480
+ { const: "contains", title: "Contain" },
6481
+ { const: "startsWith", title: "Starts with" },
6482
+ { const: "endsWith", title: "Ends with" },
6483
+ { const: "equals", title: "Equals" },
6484
+ { const: "notEquals", title: "Not Equals" },
6485
+ { const: "between", title: "Between" },
6486
+ { const: "betweenInclusive", title: "Between inclusive" },
6487
+ { const: "greaterThan", title: "Greater than" },
6488
+ { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6489
+ { const: "lessThan", title: "Less than" },
6490
+ { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6491
+ ]
6495
6492
  },
6496
6493
  legendLabels: {
6497
6494
  type: "array",
@@ -7773,6 +7770,14 @@ const GraphSection = {
7773
7770
  const buildPropertiesSection = function(type) {
7774
7771
  let uiSchema = _.cloneDeep(GraphSection);
7775
7772
  switch (type) {
7773
+ case "Array":
7774
+ uiSchema.elements = [
7775
+ getRadioInputField("detailView", "Deatil View", ["Yes", "No"]),
7776
+ emptyBox$1("DataGridEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7777
+ emptyBox$1("DataGridEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7778
+ cardLayout
7779
+ ];
7780
+ break;
7776
7781
  case "TreeMap":
7777
7782
  uiSchema.elements = [
7778
7783
  getSelectField("orientation", "orientation"),
@@ -8487,7 +8492,7 @@ function refreshPage(type, store2) {
8487
8492
  widget: "SelectInputField"
8488
8493
  },
8489
8494
  config: {
8490
- layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8495
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8491
8496
  main: {
8492
8497
  label: "Column Format"
8493
8498
  }
@@ -8500,7 +8505,7 @@ function refreshPage(type, store2) {
8500
8505
  widget: "RadioInputField"
8501
8506
  },
8502
8507
  config: {
8503
- layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8508
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8504
8509
  main: {
8505
8510
  label: "Enable Filter",
8506
8511
  options: ["Yes", "No"]
@@ -8513,7 +8518,7 @@ function refreshPage(type, store2) {
8513
8518
  widget: "SelectInputField"
8514
8519
  },
8515
8520
  config: {
8516
- layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8521
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8517
8522
  main: {
8518
8523
  label: "Filter Mode",
8519
8524
  multiple: true
@@ -8527,7 +8532,7 @@ function refreshPage(type, store2) {
8527
8532
  widget: "RadioInputField"
8528
8533
  },
8529
8534
  config: {
8530
- layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8535
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8531
8536
  main: {
8532
8537
  label: "Enable Sorting",
8533
8538
  options: ["Yes", "No"]
@@ -11839,8 +11844,22 @@ const ArrayUiSchema = {
11839
11844
  }
11840
11845
  }
11841
11846
  };
11847
+ const ArrayDetailUiSchema = {
11848
+ type: "Control",
11849
+ scope: "#/properties/adjustments",
11850
+ layout: 11.5,
11851
+ options: {
11852
+ detail: {
11853
+ type: "HorizontalLayout",
11854
+ elements: []
11855
+ }
11856
+ }
11857
+ };
11842
11858
  const buildArray = (config2, componentScope2) => {
11843
- const array = _.cloneDeep(ArrayUiSchema);
11859
+ let array = _.cloneDeep(ArrayUiSchema);
11860
+ if (config2.detailView === "Yes") {
11861
+ array = _.cloneDeep(ArrayDetailUiSchema);
11862
+ }
11844
11863
  array.scope = componentScope2;
11845
11864
  return array;
11846
11865
  };
@@ -12492,9 +12511,14 @@ const buildUiSchema = (config2, store2) => {
12492
12511
  }
12493
12512
  });
12494
12513
  } else if (config2.type == "Array") {
12495
- elements.options.detail.elements = config2.elements.map((e, elemInd) => {
12514
+ const ArrayElements = config2.elements.map((e, elemInd) => {
12496
12515
  return buildUiSchema(e, store2);
12497
12516
  });
12517
+ if (config2.detailView === "Yes") {
12518
+ elements.elements = ArrayElements;
12519
+ } else {
12520
+ elements.options.detail.elements = ArrayElements;
12521
+ }
12498
12522
  } else {
12499
12523
  elements.elements = config2.elements.map((e, elemInd) => {
12500
12524
  return buildUiSchema(e, store2);