impaktapps-ui-builder 0.0.92 → 0.0.93
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 +27 -17
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +24 -1
- 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 +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +5 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +4 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +4 -3
|
@@ -5,6 +5,12 @@ export declare const BarGraph: {
|
|
|
5
5
|
widget: string;
|
|
6
6
|
};
|
|
7
7
|
config: {
|
|
8
|
+
layout: {
|
|
9
|
+
xs: number;
|
|
10
|
+
sm: number;
|
|
11
|
+
md: number;
|
|
12
|
+
lg: number;
|
|
13
|
+
};
|
|
8
14
|
main: {};
|
|
9
15
|
style: {
|
|
10
16
|
containerStyle: {};
|
|
@@ -18,6 +24,12 @@ export declare const PieGraph: {
|
|
|
18
24
|
widget: string;
|
|
19
25
|
};
|
|
20
26
|
config: {
|
|
27
|
+
layout: {
|
|
28
|
+
xs: number;
|
|
29
|
+
sm: number;
|
|
30
|
+
md: number;
|
|
31
|
+
lg: number;
|
|
32
|
+
};
|
|
21
33
|
main: {
|
|
22
34
|
type: string;
|
|
23
35
|
};
|
|
@@ -31,7 +43,12 @@ export declare const LineGraph: {
|
|
|
31
43
|
widget: string;
|
|
32
44
|
};
|
|
33
45
|
config: {
|
|
34
|
-
layout:
|
|
46
|
+
layout: {
|
|
47
|
+
xs: number;
|
|
48
|
+
sm: number;
|
|
49
|
+
md: number;
|
|
50
|
+
lg: number;
|
|
51
|
+
};
|
|
35
52
|
main: {
|
|
36
53
|
type: string;
|
|
37
54
|
header: string;
|
|
@@ -66,6 +83,12 @@ export declare const HorizontalBarGraph: {
|
|
|
66
83
|
widget: string;
|
|
67
84
|
};
|
|
68
85
|
config: {
|
|
86
|
+
layout: {
|
|
87
|
+
xs: number;
|
|
88
|
+
sm: number;
|
|
89
|
+
md: number;
|
|
90
|
+
lg: number;
|
|
91
|
+
};
|
|
69
92
|
main: {
|
|
70
93
|
type: string;
|
|
71
94
|
};
|
package/package.json
CHANGED
|
@@ -12,6 +12,12 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
|
|
|
12
12
|
horizontalBarGraph.config.main.type = config.graphType;
|
|
13
13
|
horizontalBarGraph.scope = componentScope;
|
|
14
14
|
horizontalBarGraph.config.main.header = config.heading;
|
|
15
|
+
if (config.legendHide) {
|
|
16
|
+
horizontalBarGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
|
|
17
|
+
}
|
|
18
|
+
if (config.bottomAxisAngle) {
|
|
19
|
+
horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
|
|
20
|
+
}
|
|
15
21
|
if (config.barColor) {
|
|
16
22
|
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
17
23
|
}
|
|
@@ -26,6 +26,9 @@ export const buildLineGraph = (config, componentScope) => {
|
|
|
26
26
|
if (config.legendHide) {
|
|
27
27
|
lineGraph.config.main.legendAvailabe = config.legendHide==="YES"?false:true;
|
|
28
28
|
}
|
|
29
|
+
if (config.bottomAxisAngle) {
|
|
30
|
+
lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
|
|
31
|
+
}
|
|
29
32
|
if (config.legendLabels) {
|
|
30
33
|
lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
31
34
|
}
|
|
@@ -9,6 +9,10 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
9
9
|
}
|
|
10
10
|
if (config.legendHide) {
|
|
11
11
|
barGraph.config.main.legendAvailable = config.legendHide;
|
|
12
|
+
barGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
|
|
13
|
+
}
|
|
14
|
+
if (config.bottomAxisAngle) {
|
|
15
|
+
barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
|
|
12
16
|
}
|
|
13
17
|
barGraph.config.main.type = config.graphType;
|
|
14
18
|
barGraph.config.main.header = config.heading;
|
|
@@ -45,12 +45,6 @@ export const buildTextArea = (config:any,componentScope:string) =>{
|
|
|
45
45
|
if (config.placeholder) {
|
|
46
46
|
textArea.config.main.placeholder = config.placeholder;
|
|
47
47
|
}
|
|
48
|
-
if(config.enableCodeEditor){
|
|
49
|
-
textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false
|
|
50
|
-
}
|
|
51
|
-
if(config.codeEditorLanguage){
|
|
52
|
-
textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
|
|
53
|
-
}
|
|
54
48
|
textArea.scope = componentScope;
|
|
55
49
|
return textArea;
|
|
56
50
|
}
|
|
@@ -172,7 +172,7 @@ export const buildWrapper = (label: string, elements: any[]) => {
|
|
|
172
172
|
width: "108%"
|
|
173
173
|
},
|
|
174
174
|
componentsBoxStyle: {
|
|
175
|
-
marginLeft: "
|
|
175
|
+
marginLeft: "12px",
|
|
176
176
|
},
|
|
177
177
|
defaultStyle: true
|
|
178
178
|
},
|
|
@@ -206,8 +206,7 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
|
|
|
206
206
|
main: {
|
|
207
207
|
heading: heading,
|
|
208
208
|
minRows: 8,
|
|
209
|
-
hideButton: hideButton
|
|
210
|
-
enableCodeEditor: true
|
|
209
|
+
hideButton: hideButton
|
|
211
210
|
},
|
|
212
211
|
},
|
|
213
212
|
}
|
|
@@ -325,9 +324,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
325
324
|
case "TextArea":
|
|
326
325
|
uiSchema.elements = [
|
|
327
326
|
getInputField("placeholder", "Placeholder"),
|
|
328
|
-
|
|
329
|
-
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
330
|
-
]
|
|
327
|
+
emptyBox("TextAreaEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }), emptyBox("TextAreaEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })]
|
|
331
328
|
break;
|
|
332
329
|
|
|
333
330
|
case "SpeedoMeter":
|
|
@@ -411,7 +408,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
411
408
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
412
409
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
413
410
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
414
|
-
|
|
411
|
+
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
412
|
+
emptyBox("GraphEmpty1", {xs: 0, sm: 6, md: 6, lg: 0 }),
|
|
415
413
|
getArrayControl("legendLabels", "label"),
|
|
416
414
|
getArrayControl("pieArcColors", "color"),
|
|
417
415
|
];
|
|
@@ -6,6 +6,7 @@ export const BarGraph = {
|
|
|
6
6
|
},
|
|
7
7
|
|
|
8
8
|
config: {
|
|
9
|
+
layout: {xs :12,sm:12,md:12,lg:6},
|
|
9
10
|
main: {
|
|
10
11
|
},
|
|
11
12
|
style: { containerStyle: {} }
|
|
@@ -19,6 +20,7 @@ export const PieGraph = {
|
|
|
19
20
|
widget: "Graph",
|
|
20
21
|
},
|
|
21
22
|
config: {
|
|
23
|
+
layout: {xs :12,sm:12,md:12,lg:6},
|
|
22
24
|
main: {
|
|
23
25
|
type: "PieGraph",
|
|
24
26
|
},
|
|
@@ -32,7 +34,7 @@ export const LineGraph = {
|
|
|
32
34
|
widget: "Graph",
|
|
33
35
|
},
|
|
34
36
|
config: {
|
|
35
|
-
layout: 12,
|
|
37
|
+
layout: {xs :12,sm:12,md:12,lg:6},
|
|
36
38
|
main: {
|
|
37
39
|
type: "LineGraph",
|
|
38
40
|
header: "Quartely Incentive in Thousand",
|
|
@@ -68,6 +70,7 @@ export const HorizontalBarGraph = {
|
|
|
68
70
|
widget: "Graph",
|
|
69
71
|
},
|
|
70
72
|
config: {
|
|
73
|
+
layout: {xs :12,sm:12,md:12,lg:6},
|
|
71
74
|
main: {
|
|
72
75
|
type: "HorizontalBarGraph",
|
|
73
76
|
},
|
|
@@ -93,7 +93,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
93
93
|
const event = new CustomEvent('pageNameChanged', {
|
|
94
94
|
detail: { pageName: config.label }
|
|
95
95
|
});
|
|
96
|
-
window.dispatchEvent(event)
|
|
96
|
+
// window.dispatchEvent(event)
|
|
97
97
|
const theme = funcParams?.store?.theme?.myTheme;
|
|
98
98
|
uiSchema.elements.push(
|
|
99
99
|
|
|
@@ -130,13 +130,14 @@ export default (funcParams: funcParamsProps) => {
|
|
|
130
130
|
color: theme?.palette?.text.disabled || "#AFAFAF",
|
|
131
131
|
fontSize: '12px',
|
|
132
132
|
textAlign: 'center',
|
|
133
|
-
lineHeight:
|
|
133
|
+
lineHeight: 2,
|
|
134
134
|
width: 'fit-content',
|
|
135
135
|
left: '50%',
|
|
136
136
|
position: 'relative',
|
|
137
137
|
margin: 0,
|
|
138
138
|
flexGrow: 1,
|
|
139
|
-
height: 0
|
|
139
|
+
height: 0,
|
|
140
|
+
transform: "translate(-50%,0%)"
|
|
140
141
|
}
|
|
141
142
|
},
|
|
142
143
|
},
|