impaktapps-ui-builder 1.0.134 → 1.0.136
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 +61 -3
- 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/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +18 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +11 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +12 -2
- package/src/impaktapps-ui-builder/builder/services/component.ts +16 -0
|
@@ -7994,9 +7994,11 @@ const buildPropertiesSection = function(type) {
|
|
|
7994
7994
|
getInputField("heading", "Heading"),
|
|
7995
7995
|
getSelectField("graphType", "Graph Type"),
|
|
7996
7996
|
getInputField("leftLabel", "Left Label"),
|
|
7997
|
+
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
7997
7998
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7998
7999
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7999
8000
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
8001
|
+
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
8000
8002
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
8001
8003
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
8002
8004
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
@@ -8745,6 +8747,21 @@ function refreshPage(type, store2) {
|
|
|
8745
8747
|
}
|
|
8746
8748
|
};
|
|
8747
8749
|
}
|
|
8750
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
|
|
8751
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8752
|
+
type: "Control",
|
|
8753
|
+
scope: "#/properties/columnFormat",
|
|
8754
|
+
options: {
|
|
8755
|
+
widget: "SelectInputField"
|
|
8756
|
+
},
|
|
8757
|
+
config: {
|
|
8758
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8759
|
+
main: {
|
|
8760
|
+
label: "Column Format"
|
|
8761
|
+
}
|
|
8762
|
+
}
|
|
8763
|
+
};
|
|
8764
|
+
}
|
|
8748
8765
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8749
8766
|
this.ElementPathSetter(UiSchema);
|
|
8750
8767
|
}
|
|
@@ -10912,6 +10929,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10912
10929
|
if (config2.legendLabels) {
|
|
10913
10930
|
horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10914
10931
|
}
|
|
10932
|
+
if (config2.legendDirection) {
|
|
10933
|
+
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
10934
|
+
}
|
|
10915
10935
|
if (config2.pieArcColors) {
|
|
10916
10936
|
horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10917
10937
|
}
|
|
@@ -10932,6 +10952,9 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10932
10952
|
if (config2.leftLabel) {
|
|
10933
10953
|
horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
|
|
10934
10954
|
}
|
|
10955
|
+
if (config2.disableLeftLabel) {
|
|
10956
|
+
horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
10957
|
+
}
|
|
10935
10958
|
return horizontalBarGraph;
|
|
10936
10959
|
};
|
|
10937
10960
|
var SpeedoMeter = {
|
|
@@ -11038,6 +11061,9 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
11038
11061
|
if (config2.legendHide) {
|
|
11039
11062
|
pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11040
11063
|
}
|
|
11064
|
+
if (config2.legendDirection) {
|
|
11065
|
+
pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11066
|
+
}
|
|
11041
11067
|
pieGraph.scope = componentScope2;
|
|
11042
11068
|
pieGraph.config.main.header = config2.heading;
|
|
11043
11069
|
if (config2.legendLabels) {
|
|
@@ -11061,6 +11087,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11061
11087
|
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
11062
11088
|
barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11063
11089
|
}
|
|
11090
|
+
if (config2.legendDirection) {
|
|
11091
|
+
barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11092
|
+
}
|
|
11064
11093
|
if (config2.bottomAxisAngle) {
|
|
11065
11094
|
barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11066
11095
|
}
|
|
@@ -11089,6 +11118,9 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11089
11118
|
if (config2.leftLabel) {
|
|
11090
11119
|
barGraph.config.main.leftLabel = config2.leftLabel;
|
|
11091
11120
|
}
|
|
11121
|
+
if (config2.disableLeftLabel) {
|
|
11122
|
+
barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
11123
|
+
}
|
|
11092
11124
|
barGraph.scope = componentScope2;
|
|
11093
11125
|
return barGraph;
|
|
11094
11126
|
};
|
|
@@ -11630,14 +11662,24 @@ function Card(theme) {
|
|
|
11630
11662
|
style: {
|
|
11631
11663
|
color: "black",
|
|
11632
11664
|
display: "flex",
|
|
11633
|
-
fontSize: { xs: "24px", md: "
|
|
11665
|
+
fontSize: { xs: "24px", md: "25px" },
|
|
11634
11666
|
fontWeight: "bold",
|
|
11635
11667
|
background: "inherit",
|
|
11636
11668
|
justifyContent: "flex-start",
|
|
11637
11669
|
width: "auto",
|
|
11638
11670
|
margin: "-8px",
|
|
11671
|
+
marginTop: "-6px",
|
|
11639
11672
|
position: "absolute",
|
|
11640
|
-
left: "
|
|
11673
|
+
left: "7px",
|
|
11674
|
+
whiteSpace: "nowrap",
|
|
11675
|
+
overflowX: "auto",
|
|
11676
|
+
overflowY: "hidden",
|
|
11677
|
+
scrollbarWidth: "none",
|
|
11678
|
+
msOverflowStyle: "none",
|
|
11679
|
+
maxWidth: "calc(100% + 20px)",
|
|
11680
|
+
"&::-webkit-scrollbar": {
|
|
11681
|
+
display: "none"
|
|
11682
|
+
}
|
|
11641
11683
|
}
|
|
11642
11684
|
},
|
|
11643
11685
|
options: {
|
|
@@ -12033,9 +12075,15 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
12033
12075
|
if (config2.leftLabel) {
|
|
12034
12076
|
lineGraph.config.main.leftLabel = config2.leftLabel;
|
|
12035
12077
|
}
|
|
12078
|
+
if (config2.disableLeftLabel) {
|
|
12079
|
+
lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
12080
|
+
}
|
|
12036
12081
|
if (config2.legendHide) {
|
|
12037
12082
|
lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
12038
12083
|
}
|
|
12084
|
+
if (config2.legendDirection) {
|
|
12085
|
+
lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
12086
|
+
}
|
|
12039
12087
|
if (config2.bottomAxisAngle) {
|
|
12040
12088
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
12041
12089
|
}
|
|
@@ -12750,7 +12798,17 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12750
12798
|
}
|
|
12751
12799
|
if (config2 == null ? void 0 : config2.elements) {
|
|
12752
12800
|
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
12753
|
-
|
|
12801
|
+
const rowElements = [];
|
|
12802
|
+
config2.elements.filter((cellElem, elemInd) => {
|
|
12803
|
+
const commonProperties = {
|
|
12804
|
+
accessorKey: cellElem.name,
|
|
12805
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12806
|
+
header: cellElem.label || cellElem.name,
|
|
12807
|
+
columnKey: cellElem.columnKey
|
|
12808
|
+
};
|
|
12809
|
+
rowElements.push({ ...commonProperties });
|
|
12810
|
+
});
|
|
12811
|
+
elements.elements = rowElements;
|
|
12754
12812
|
} else if (config2.type == "ColumnGroup") {
|
|
12755
12813
|
const sizeMap = {};
|
|
12756
12814
|
if (config2.sizeHolder) {
|