impaktapps-ui-builder 0.0.1054 → 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.
- package/dist/impaktapps-ui-builder.es.js +29 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +27 -13
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +7 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +8 -1
|
@@ -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,22 @@ const ArrayUiSchema = {
|
|
|
11836
11844
|
}
|
|
11837
11845
|
}
|
|
11838
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
|
+
};
|
|
11839
11858
|
const buildArray = (config2, componentScope2) => {
|
|
11840
|
-
|
|
11859
|
+
let array = _.cloneDeep(ArrayUiSchema);
|
|
11860
|
+
if (config2.detailView === "Yes") {
|
|
11861
|
+
array = _.cloneDeep(ArrayDetailUiSchema);
|
|
11862
|
+
}
|
|
11841
11863
|
array.scope = componentScope2;
|
|
11842
11864
|
return array;
|
|
11843
11865
|
};
|
|
@@ -12489,9 +12511,14 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12489
12511
|
}
|
|
12490
12512
|
});
|
|
12491
12513
|
} else if (config2.type == "Array") {
|
|
12492
|
-
|
|
12514
|
+
const ArrayElements = config2.elements.map((e, elemInd) => {
|
|
12493
12515
|
return buildUiSchema(e, store2);
|
|
12494
12516
|
});
|
|
12517
|
+
if (config2.detailView === "Yes") {
|
|
12518
|
+
elements.elements = ArrayElements;
|
|
12519
|
+
} else {
|
|
12520
|
+
elements.options.detail.elements = ArrayElements;
|
|
12521
|
+
}
|
|
12495
12522
|
} else {
|
|
12496
12523
|
elements.elements = config2.elements.map((e, elemInd) => {
|
|
12497
12524
|
return buildUiSchema(e, store2);
|