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
|
@@ -112,8 +112,16 @@ export default function Card(theme: any): {
|
|
|
112
112
|
margin: string;
|
|
113
113
|
marginLeft: string;
|
|
114
114
|
height: number;
|
|
115
|
+
marginTop?: undefined;
|
|
115
116
|
position?: undefined;
|
|
116
117
|
left?: undefined;
|
|
118
|
+
whiteSpace?: undefined;
|
|
119
|
+
overflowX?: undefined;
|
|
120
|
+
overflowY?: undefined;
|
|
121
|
+
scrollbarWidth?: undefined;
|
|
122
|
+
msOverflowStyle?: undefined;
|
|
123
|
+
maxWidth?: undefined;
|
|
124
|
+
"&::-webkit-scrollbar"?: undefined;
|
|
117
125
|
};
|
|
118
126
|
};
|
|
119
127
|
options: {
|
|
@@ -138,8 +146,18 @@ export default function Card(theme: any): {
|
|
|
138
146
|
justifyContent: string;
|
|
139
147
|
width: string;
|
|
140
148
|
margin: string;
|
|
149
|
+
marginTop: string;
|
|
141
150
|
position: string;
|
|
142
151
|
left: string;
|
|
152
|
+
whiteSpace: string;
|
|
153
|
+
overflowX: string;
|
|
154
|
+
overflowY: string;
|
|
155
|
+
scrollbarWidth: string;
|
|
156
|
+
msOverflowStyle: string;
|
|
157
|
+
maxWidth: string;
|
|
158
|
+
"&::-webkit-scrollbar": {
|
|
159
|
+
display: string;
|
|
160
|
+
};
|
|
143
161
|
marginLeft?: undefined;
|
|
144
162
|
height?: undefined;
|
|
145
163
|
};
|
package/package.json
CHANGED
|
@@ -21,6 +21,9 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
|
|
|
21
21
|
if (config.legendLabels) {
|
|
22
22
|
horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
|
|
23
23
|
}
|
|
24
|
+
if(config.legendDirection){
|
|
25
|
+
horizontalBarGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
|
|
26
|
+
}
|
|
24
27
|
if (config.pieArcColors) {
|
|
25
28
|
horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
26
29
|
}
|
|
@@ -42,6 +45,9 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
|
|
|
42
45
|
if (config.leftLabel) {
|
|
43
46
|
horizontalBarGraph.config.main.leftLabel = config.leftLabel;
|
|
44
47
|
}
|
|
48
|
+
if (config.disableLeftLabel) {
|
|
49
|
+
horizontalBarGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
|
|
50
|
+
}
|
|
45
51
|
return horizontalBarGraph
|
|
46
52
|
}
|
|
47
53
|
|
|
@@ -28,9 +28,15 @@ export const buildLineGraph = (config, componentScope) => {
|
|
|
28
28
|
if (config.leftLabel) {
|
|
29
29
|
lineGraph.config.main.leftLabel = config.leftLabel;
|
|
30
30
|
}
|
|
31
|
+
if (config.disableLeftLabel) {
|
|
32
|
+
lineGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
|
|
33
|
+
}
|
|
31
34
|
if (config.legendHide) {
|
|
32
35
|
lineGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
|
|
33
36
|
}
|
|
37
|
+
if(config.legendDirection){
|
|
38
|
+
lineGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
|
|
39
|
+
}
|
|
34
40
|
if (config.bottomAxisAngle) {
|
|
35
41
|
lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
|
|
36
42
|
}
|
|
@@ -12,6 +12,9 @@ export const buildPieGraph = (config, componentScope) => {
|
|
|
12
12
|
if (config.legendHide) {
|
|
13
13
|
pieGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
|
|
14
14
|
}
|
|
15
|
+
if(config.legendDirection){
|
|
16
|
+
pieGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
|
|
17
|
+
}
|
|
15
18
|
pieGraph.scope = componentScope;
|
|
16
19
|
pieGraph.config.main.header = config.heading;
|
|
17
20
|
|
|
@@ -11,6 +11,9 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
11
11
|
barGraph.config.main.legendAvailable = config.legendHide;
|
|
12
12
|
barGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
|
|
13
13
|
}
|
|
14
|
+
if(config.legendDirection){
|
|
15
|
+
barGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
|
|
16
|
+
}
|
|
14
17
|
if (config.bottomAxisAngle) {
|
|
15
18
|
barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
|
|
16
19
|
}
|
|
@@ -39,6 +42,9 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
39
42
|
if (config.leftLabel) {
|
|
40
43
|
barGraph.config.main.leftLabel = config.leftLabel;
|
|
41
44
|
}
|
|
45
|
+
if (config.disableLeftLabel) {
|
|
46
|
+
barGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
|
|
47
|
+
}
|
|
42
48
|
barGraph.scope = componentScope;
|
|
43
49
|
return barGraph;
|
|
44
50
|
}
|
|
@@ -274,7 +274,17 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
274
274
|
|
|
275
275
|
if (config?.elements) {
|
|
276
276
|
if (config?.type === "LeaderBoard") {
|
|
277
|
-
|
|
277
|
+
const rowElements = []
|
|
278
|
+
config.elements.filter((cellElem, elemInd) => {
|
|
279
|
+
const commonProperties = {
|
|
280
|
+
accessorKey: cellElem.name,
|
|
281
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
282
|
+
header: cellElem.label || cellElem.name,
|
|
283
|
+
columnKey: cellElem.columnKey
|
|
284
|
+
}
|
|
285
|
+
rowElements.push({ ...commonProperties })
|
|
286
|
+
})
|
|
287
|
+
elements.elements = rowElements;
|
|
278
288
|
}
|
|
279
289
|
else if (config.type == "ColumnGroup") {
|
|
280
290
|
const sizeMap = {}
|
|
@@ -432,9 +432,11 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
432
432
|
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" }
|
|
433
433
|
]),
|
|
434
434
|
getInputField("leftLabel", "Left Label"),
|
|
435
|
+
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
435
436
|
getInputField("bottomLabel", "Bottom Label"),
|
|
436
437
|
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
437
438
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
439
|
+
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
438
440
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
439
441
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
440
442
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
@@ -123,14 +123,24 @@ export default function Card(theme){
|
|
|
123
123
|
style: {
|
|
124
124
|
color: "black",
|
|
125
125
|
display: "flex",
|
|
126
|
-
fontSize: { xs: "24px", md: "
|
|
126
|
+
fontSize: { xs: "24px", md: "25px" },
|
|
127
127
|
fontWeight: "bold",
|
|
128
128
|
background: "inherit",
|
|
129
129
|
justifyContent: "flex-start",
|
|
130
130
|
width: "auto",
|
|
131
131
|
margin: "-8px",
|
|
132
|
+
marginTop: "-6px",
|
|
132
133
|
position: "absolute",
|
|
133
|
-
left: "
|
|
134
|
+
left: "7px",
|
|
135
|
+
whiteSpace: "nowrap",
|
|
136
|
+
overflowX: "auto",
|
|
137
|
+
overflowY: "hidden",
|
|
138
|
+
scrollbarWidth: "none",
|
|
139
|
+
msOverflowStyle: "none",
|
|
140
|
+
maxWidth: "calc(100% + 20px)",
|
|
141
|
+
"&::-webkit-scrollbar": {
|
|
142
|
+
display: "none",
|
|
143
|
+
}
|
|
134
144
|
},
|
|
135
145
|
// layout: 11,
|
|
136
146
|
},
|
|
@@ -186,6 +186,22 @@ export function refreshPage(type: string, store: any) {
|
|
|
186
186
|
},
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
+
if(parentObj?.type === "LeaderBoard"){
|
|
190
|
+
UiSchema.elements[0].elements[0].elements[4] =
|
|
191
|
+
{
|
|
192
|
+
type: "Control",
|
|
193
|
+
scope: "#/properties/columnFormat",
|
|
194
|
+
options: {
|
|
195
|
+
widget: "SelectInputField",
|
|
196
|
+
},
|
|
197
|
+
config: {
|
|
198
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
199
|
+
main: {
|
|
200
|
+
label: "Column Format",
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
}
|
|
189
205
|
|
|
190
206
|
if (sessionStorage.getItem("copiedConfig") ) {
|
|
191
207
|
this.ElementPathSetter(UiSchema);
|