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