impaktapps-ui-builder 0.0.1054 → 0.0.1056

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.
@@ -7770,6 +7770,14 @@ const GraphSection = {
7770
7770
  const buildPropertiesSection = function(type) {
7771
7771
  let uiSchema = _.cloneDeep(GraphSection);
7772
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;
7773
7781
  case "TreeMap":
7774
7782
  uiSchema.elements = [
7775
7783
  getSelectField("orientation", "orientation"),
@@ -11836,8 +11844,17 @@ const ArrayUiSchema = {
11836
11844
  }
11837
11845
  }
11838
11846
  };
11847
+ const ArrayDetailUiSchema = {
11848
+ type: "Control",
11849
+ scope: "#/properties/adjustments",
11850
+ layout: 11.5,
11851
+ elements: []
11852
+ };
11839
11853
  const buildArray = (config2, componentScope2) => {
11840
- const array = _.cloneDeep(ArrayUiSchema);
11854
+ let array = _.cloneDeep(ArrayUiSchema);
11855
+ if (config2.detailView === "Yes") {
11856
+ array = _.cloneDeep(ArrayDetailUiSchema);
11857
+ }
11841
11858
  array.scope = componentScope2;
11842
11859
  return array;
11843
11860
  };
@@ -12489,9 +12506,14 @@ const buildUiSchema = (config2, store2) => {
12489
12506
  }
12490
12507
  });
12491
12508
  } else if (config2.type == "Array") {
12492
- elements.options.detail.elements = config2.elements.map((e, elemInd) => {
12509
+ const ArrayElements = config2.elements.map((e, elemInd) => {
12493
12510
  return buildUiSchema(e, store2);
12494
12511
  });
12512
+ if (config2.detailView === "Yes") {
12513
+ elements.elements = ArrayElements;
12514
+ } else {
12515
+ elements.options.detail.elements = ArrayElements;
12516
+ }
12495
12517
  } else {
12496
12518
  elements.elements = config2.elements.map((e, elemInd) => {
12497
12519
  return buildUiSchema(e, store2);