impaktapps-ui-builder 0.0.412-mtreemap.9 → 0.0.591
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 +1082 -351
- 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/buildBasicUiSchema.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +2 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +18 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +1 -6
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +10 -12
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +2 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +58 -45
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +25 -1
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +5 -5
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +17 -1
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +78 -33
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +88 -90
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +10 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +6 -55
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +6 -118
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +82 -72
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +5 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +93 -137
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +206 -74
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +195 -120
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +118 -128
- package/src/impaktapps-ui-builder/builder/services/component.ts +26 -9
- package/src/impaktapps-ui-builder/builder/services/event.ts +17 -9
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
- package/src/impaktapps-ui-builder/builder/services/utils.ts +0 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +14 -20
- package/src/impaktapps-ui-builder/runtime/services/service.ts +128 -9
|
@@ -7,72 +7,8 @@ export const BarGraph = {
|
|
|
7
7
|
|
|
8
8
|
config: {
|
|
9
9
|
main: {
|
|
10
|
-
// header: "Bar Graph",
|
|
11
|
-
// bottomLabel: "Name of Employe",
|
|
12
|
-
// numTicks: 6,
|
|
13
|
-
// leftLabel: "Value in lakhs",
|
|
14
|
-
// axisLeft: true,
|
|
15
|
-
// axisBottom: true,
|
|
16
|
-
|
|
17
|
-
// hideTicks: false,
|
|
18
|
-
// hideLeftAxisLine: false,
|
|
19
|
-
// hideBottomAxisLine: false,
|
|
20
|
-
// bottomAxisWidth: "10px",
|
|
21
|
-
// legend: {
|
|
22
|
-
// labelColor: "green",
|
|
23
|
-
// legendTitle: "",
|
|
24
|
-
// direction: "row",
|
|
25
|
-
// align: "none",
|
|
26
|
-
|
|
27
|
-
// },
|
|
28
10
|
},
|
|
29
|
-
|
|
30
|
-
// containerStyle: {
|
|
31
|
-
// // width:"100%",
|
|
32
|
-
// // height:"450",
|
|
33
|
-
|
|
34
|
-
// },
|
|
35
|
-
// headerStyle: {
|
|
36
|
-
// // color:"white"
|
|
37
|
-
// },
|
|
38
|
-
// tooltipStyle: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// },
|
|
42
|
-
// // labelStyle: { margin:{left:80,bottom:20},
|
|
43
|
-
// // leftLabelOffset: 50,
|
|
44
|
-
// // bottomLabelOffset:10
|
|
45
|
-
// // },
|
|
46
|
-
// barStyle: {
|
|
47
|
-
// // color:{
|
|
48
|
-
// // firstBarColor:"#6c5efb",
|
|
49
|
-
// // secondBarColor:"#3f51b5"
|
|
50
|
-
// // "#6c5efb"#3f51b5
|
|
51
|
-
// // secondColor:"#3e50b3"
|
|
52
|
-
// // }
|
|
53
|
-
// },
|
|
54
|
-
// legendStyle: {
|
|
55
|
-
// legend: {
|
|
56
|
-
// // lineHeight: "0.9em",
|
|
57
|
-
// // fontSize: "8px",
|
|
58
|
-
// // fontFamily: "arial",
|
|
59
|
-
// // padding: "10px 10px",
|
|
60
|
-
// // width:"30%",
|
|
61
|
-
// // display:"flex",
|
|
62
|
-
// // justifyContent:"center",
|
|
63
|
-
// // border: "1px solid rgba(255, 255, 255, 0.3)",
|
|
64
|
-
// // borderRadius: " 8px",
|
|
65
|
-
// // marginRight: "auto",
|
|
66
|
-
|
|
67
|
-
// },
|
|
68
|
-
// legendTitle: {
|
|
69
|
-
// // fontSize: "10px",
|
|
70
|
-
// // marginBottom: "10px",
|
|
71
|
-
// // fontWeight: "100",
|
|
72
|
-
|
|
73
|
-
// },
|
|
74
|
-
// },
|
|
75
|
-
// },
|
|
11
|
+
style: { containerStyle: {} }
|
|
76
12
|
},
|
|
77
13
|
};
|
|
78
14
|
|
|
@@ -84,39 +20,9 @@ export const PieGraph = {
|
|
|
84
20
|
},
|
|
85
21
|
config: {
|
|
86
22
|
main: {
|
|
87
|
-
// header: "Incentive Branch category wise",
|
|
88
23
|
type: "PieGraph",
|
|
89
|
-
// bottomLabel: "Name of Employe",
|
|
90
|
-
// leftLabel: "Value",
|
|
91
|
-
// tooltipDataKey: ["HDFC", "SBI", "Kotak","Sbi"],
|
|
92
|
-
// axisLeft: true,
|
|
93
|
-
// axisBottom: true,
|
|
94
|
-
// legendAvailable: true,
|
|
95
|
-
// legend: {
|
|
96
|
-
// labelColor: "green",
|
|
97
|
-
// legendTitle: "Branches",
|
|
98
|
-
// direction: "row",
|
|
99
|
-
// align: "right",
|
|
100
|
-
// },
|
|
101
24
|
},
|
|
102
|
-
|
|
103
|
-
// style: {
|
|
104
|
-
// containerStyle: {
|
|
105
|
-
// height:"340"
|
|
106
|
-
// },
|
|
107
|
-
// headerStyle: {},
|
|
108
|
-
// tooltipStyle: {
|
|
109
|
-
// // width: "100%",
|
|
110
|
-
// backgroundColor:"black",
|
|
111
|
-
// width:"80px"
|
|
112
|
-
// },
|
|
113
|
-
// labelStyle: {},
|
|
114
|
-
// legendStyle: {
|
|
115
|
-
// legend: {},
|
|
116
|
-
// legendTitle: {},
|
|
117
|
-
// },
|
|
118
|
-
// pieStyle: {},
|
|
119
|
-
// },
|
|
25
|
+
style:{}
|
|
120
26
|
},
|
|
121
27
|
};
|
|
122
28
|
export const LineGraph = {
|
|
@@ -126,7 +32,7 @@ export const LineGraph = {
|
|
|
126
32
|
widget: "Graph",
|
|
127
33
|
},
|
|
128
34
|
config: {
|
|
129
|
-
layout:12,
|
|
35
|
+
layout: 12,
|
|
130
36
|
main: {
|
|
131
37
|
type: "LineGraph",
|
|
132
38
|
header: "Quartely Incentive in Thousand",
|
|
@@ -164,28 +70,10 @@ export const HorizontalBarGraph = {
|
|
|
164
70
|
},
|
|
165
71
|
config: {
|
|
166
72
|
main: {
|
|
167
|
-
// header: " ",
|
|
168
73
|
type: "HorizontalBarGraph",
|
|
169
|
-
// bottomLabel: " ",
|
|
170
|
-
// leftLabel: "Value",
|
|
171
|
-
// axisLeft: false,
|
|
172
|
-
// axisBottom: true,
|
|
173
|
-
// hideBottomTicks: false,
|
|
174
|
-
// hideLeftTicks: false,
|
|
175
|
-
// hideLeftAxisLine: true,
|
|
176
|
-
// hideBottomAxisLine: false,
|
|
177
|
-
// bottomAxisWidth: "10px",
|
|
178
74
|
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
// },
|
|
183
|
-
// headerStyle: {},
|
|
184
|
-
// tooltipStyle: {},
|
|
185
|
-
// labelStyle: {},
|
|
186
|
-
// barStyle: {
|
|
187
|
-
// color: "#6c5efb",
|
|
188
|
-
// },
|
|
189
|
-
// },
|
|
75
|
+
style:{
|
|
76
|
+
|
|
77
|
+
}
|
|
190
78
|
},
|
|
191
79
|
};
|
|
@@ -7,13 +7,16 @@ export default {
|
|
|
7
7
|
label: "LeaderBoard",
|
|
8
8
|
divider: true,
|
|
9
9
|
},
|
|
10
|
-
style:{
|
|
11
|
-
|
|
12
|
-
}},
|
|
10
|
+
style: {
|
|
11
|
+
},
|
|
13
12
|
wrapperStyle: {
|
|
14
13
|
position: "relative",
|
|
15
14
|
width: "100%",
|
|
16
|
-
|
|
15
|
+
},
|
|
16
|
+
componentsBoxStyle: {
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
gap: "20px",
|
|
17
20
|
}
|
|
18
21
|
},
|
|
19
22
|
elements: [
|
|
@@ -24,23 +27,25 @@ export default {
|
|
|
24
27
|
main: {
|
|
25
28
|
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg",
|
|
26
29
|
},
|
|
27
|
-
containerStyle: {
|
|
28
|
-
objectFit: "cover",
|
|
29
|
-
position: "absolute",
|
|
30
|
-
top: { xs: "90px", "md": "60px" },
|
|
31
|
-
left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
|
|
32
|
-
width: { "xs": "100px", "sm": "100px", "md": "200px" },
|
|
33
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
34
|
-
height: { "xs": "100px", "sm": "100px", "md": "200px" },
|
|
35
|
-
borderRadius: "50%"
|
|
36
|
-
|
|
37
|
-
},
|
|
38
30
|
style: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
imageStyle: {
|
|
32
|
+
objectFit: "cover",
|
|
33
|
+
width: "100%",
|
|
34
|
+
height: "100%",
|
|
35
|
+
borderRadius: "50%"
|
|
36
|
+
},
|
|
37
|
+
containerStyle: {
|
|
38
|
+
objectFit: "cover",
|
|
39
|
+
position: "absolute",
|
|
40
|
+
top: { xs: "90px", "md": "60px" },
|
|
41
|
+
left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
|
|
42
|
+
width: { "xs": "100px", "sm": "100px", "md": "200px" },
|
|
43
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
44
|
+
height: { "xs": "100px", "sm": "100px", "md": "200px" },
|
|
45
|
+
borderRadius: "50%"
|
|
46
|
+
|
|
47
|
+
},
|
|
48
|
+
|
|
44
49
|
},
|
|
45
50
|
layout: 6,
|
|
46
51
|
},
|
|
@@ -48,7 +53,7 @@ export default {
|
|
|
48
53
|
widget: "Image",
|
|
49
54
|
},
|
|
50
55
|
},
|
|
51
|
-
|
|
56
|
+
|
|
52
57
|
{
|
|
53
58
|
type: "Control",
|
|
54
59
|
scope: "#/properties/leaderBoard/properties/secondImage",
|
|
@@ -56,23 +61,26 @@ export default {
|
|
|
56
61
|
main: {
|
|
57
62
|
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg",
|
|
58
63
|
},
|
|
59
|
-
containerStyle: {
|
|
60
|
-
objectFit: "cover",
|
|
61
|
-
position: "absolute",
|
|
62
|
-
top: { xs: "160px", "md": "130px" },
|
|
63
|
-
left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
|
|
64
|
-
width: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
65
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
66
|
-
height: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
67
|
-
borderRadius: "50%"
|
|
68
|
-
|
|
69
|
-
},
|
|
70
64
|
style: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
65
|
+
imageStyle: {
|
|
66
|
+
objectFit: "cover",
|
|
67
|
+
width: "100%",
|
|
68
|
+
height: "100%",
|
|
69
|
+
borderRadius: "50%"
|
|
70
|
+
|
|
71
|
+
},
|
|
72
|
+
containerStyle: {
|
|
73
|
+
objectFit: "cover",
|
|
74
|
+
position: "absolute",
|
|
75
|
+
top: { xs: "160px", "md": "130px" },
|
|
76
|
+
left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
|
|
77
|
+
width: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
78
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
79
|
+
height: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
80
|
+
borderRadius: "50%"
|
|
81
|
+
|
|
82
|
+
},
|
|
83
|
+
|
|
76
84
|
},
|
|
77
85
|
layout: 6,
|
|
78
86
|
},
|
|
@@ -87,23 +95,25 @@ export default {
|
|
|
87
95
|
main: {
|
|
88
96
|
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg",
|
|
89
97
|
},
|
|
90
|
-
containerStyle: {
|
|
91
|
-
objectFit: "cover",
|
|
92
|
-
position: "absolute",
|
|
93
|
-
top: { xs: "160px", "md": "130px" },
|
|
94
|
-
left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
|
|
95
|
-
width: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
96
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
97
|
-
height: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
98
|
-
borderRadius: "50%"
|
|
99
|
-
|
|
100
|
-
},
|
|
101
98
|
style: {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
imageStyle: {
|
|
100
|
+
objectFit: "cover",
|
|
101
|
+
width: "100%",
|
|
102
|
+
height: "100%",
|
|
103
|
+
borderRadius: "50%"
|
|
104
|
+
},
|
|
105
|
+
containerStyle: {
|
|
106
|
+
objectFit: "cover",
|
|
107
|
+
position: "absolute",
|
|
108
|
+
top: { xs: "160px", "md": "130px" },
|
|
109
|
+
left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
|
|
110
|
+
width: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
111
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
112
|
+
height: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
113
|
+
borderRadius: "50%"
|
|
114
|
+
|
|
115
|
+
},
|
|
116
|
+
|
|
107
117
|
},
|
|
108
118
|
layout: 6,
|
|
109
119
|
},
|
|
@@ -132,7 +142,7 @@ export default {
|
|
|
132
142
|
fontWeight: "bold",
|
|
133
143
|
borderRadius: "50%",
|
|
134
144
|
zIndex: 7
|
|
135
|
-
|
|
145
|
+
|
|
136
146
|
},
|
|
137
147
|
layout: 6,
|
|
138
148
|
},
|
|
@@ -194,10 +204,10 @@ export default {
|
|
|
194
204
|
widget: "Box",
|
|
195
205
|
},
|
|
196
206
|
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
201
211
|
{
|
|
202
212
|
type: "Control",
|
|
203
213
|
scope: "#/properties/econd",
|
|
@@ -231,7 +241,7 @@ export default {
|
|
|
231
241
|
animation: 'rotateAnimation 4s infinite',
|
|
232
242
|
borderRadius: "50%",
|
|
233
243
|
zIndex: 5
|
|
234
|
-
|
|
244
|
+
|
|
235
245
|
},
|
|
236
246
|
layout: 6,
|
|
237
247
|
},
|
|
@@ -239,7 +249,7 @@ export default {
|
|
|
239
249
|
widget: "Box",
|
|
240
250
|
},
|
|
241
251
|
},
|
|
242
|
-
|
|
252
|
+
|
|
243
253
|
{
|
|
244
254
|
type: "Control",
|
|
245
255
|
scope: "#/properties/first",
|
|
@@ -273,8 +283,8 @@ export default {
|
|
|
273
283
|
height: { xs: "20px", md: "40px" },
|
|
274
284
|
borderRadius: "50%",
|
|
275
285
|
zIndex: 5
|
|
276
|
-
|
|
277
|
-
|
|
286
|
+
|
|
287
|
+
|
|
278
288
|
},
|
|
279
289
|
layout: 6,
|
|
280
290
|
},
|
|
@@ -304,7 +314,7 @@ export default {
|
|
|
304
314
|
width: { xs: "20px", md: "40px" },
|
|
305
315
|
border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
|
|
306
316
|
height: { xs: "20px", md: "40px" },
|
|
307
|
-
|
|
317
|
+
|
|
308
318
|
'@keyframes rotateAnimation': {
|
|
309
319
|
from: {
|
|
310
320
|
transform: 'rotate(0deg)',
|
|
@@ -316,8 +326,8 @@ export default {
|
|
|
316
326
|
animation: 'rotateAnimation 4s infinite',
|
|
317
327
|
borderRadius: "50%",
|
|
318
328
|
zIndex: 5
|
|
319
|
-
|
|
320
|
-
|
|
329
|
+
|
|
330
|
+
|
|
321
331
|
},
|
|
322
332
|
layout: 6,
|
|
323
333
|
},
|
|
@@ -330,7 +340,7 @@ export default {
|
|
|
330
340
|
scope: "#/properties/leaderBoard/properties/table",
|
|
331
341
|
options: {
|
|
332
342
|
widget: "Table",
|
|
333
|
-
|
|
343
|
+
|
|
334
344
|
},
|
|
335
345
|
elements: [],
|
|
336
346
|
config: {
|
|
@@ -339,22 +349,22 @@ export default {
|
|
|
339
349
|
fontWeight: 900,
|
|
340
350
|
background: "rgb(179, 198, 255)"
|
|
341
351
|
},
|
|
342
|
-
position: "absolute",
|
|
343
352
|
top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
|
|
344
353
|
// top:"390px",
|
|
345
354
|
border: "2px solid rgb(179, 198, 255)",
|
|
346
355
|
width: "95%",
|
|
347
|
-
left: "2.5%"
|
|
348
|
-
|
|
356
|
+
left: "2.5%",
|
|
357
|
+
margin: "auto"
|
|
358
|
+
|
|
349
359
|
},
|
|
350
|
-
|
|
360
|
+
|
|
351
361
|
main: {
|
|
352
362
|
disableAction: true,
|
|
353
363
|
disableSelection: true,
|
|
354
|
-
|
|
364
|
+
|
|
355
365
|
},
|
|
356
366
|
},
|
|
357
|
-
|
|
367
|
+
|
|
358
368
|
}
|
|
359
369
|
],
|
|
360
370
|
};
|
|
@@ -4,17 +4,15 @@ export default {
|
|
|
4
4
|
options: {
|
|
5
5
|
widget: "Table",
|
|
6
6
|
},
|
|
7
|
-
elements:[],
|
|
7
|
+
elements: [],
|
|
8
8
|
config: {
|
|
9
9
|
main: {
|
|
10
|
-
onMount:"onMount",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
onMount: "onMount",
|
|
11
|
+
enableExpandAll: true,
|
|
12
|
+
allRowData: [],
|
|
13
|
+
downloadAllData: false,
|
|
14
14
|
columns: {
|
|
15
|
-
//@ts-ignore
|
|
16
15
|
dataColumns: [],
|
|
17
|
-
//@ts-ignore
|
|
18
16
|
actionColumns: [],
|
|
19
17
|
},
|
|
20
18
|
},
|
|
@@ -1,150 +1,106 @@
|
|
|
1
|
-
export const TableSection = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// options: {
|
|
21
|
-
// widget: "Box",
|
|
22
|
-
// },
|
|
23
|
-
// config: {
|
|
24
|
-
// layout: 8,
|
|
25
|
-
// main: {
|
|
26
|
-
// heading: "Components Table",
|
|
27
|
-
// },
|
|
28
|
-
// style: {
|
|
29
|
-
// fontFamily: "Roboto",
|
|
30
|
-
// fontWeight: "500",
|
|
31
|
-
// paddingLeft:"-10px",
|
|
32
|
-
// fontSize: "20px",},
|
|
33
|
-
// },
|
|
34
|
-
// },
|
|
35
|
-
// {
|
|
36
|
-
// type: "Control",
|
|
37
|
-
// scope: "#/properties/Back_Button",
|
|
38
|
-
|
|
39
|
-
// options: {
|
|
40
|
-
// widget: "IconButton",
|
|
41
|
-
// },
|
|
42
|
-
// config: {
|
|
43
|
-
// layout: 3,
|
|
44
|
-
// main: {
|
|
45
|
-
// icon: "AddIcon",
|
|
46
|
-
// styleDefault: true,
|
|
47
|
-
// size: "small",
|
|
48
|
-
// onClick: "widgetAddClickHandler",
|
|
49
|
-
// tooltipMessage: "Add New",
|
|
50
|
-
// },
|
|
51
|
-
// style: {
|
|
52
|
-
// float: "right",
|
|
53
|
-
// },
|
|
54
|
-
// },
|
|
55
|
-
// },
|
|
56
|
-
{
|
|
57
|
-
type: "Control",
|
|
58
|
-
scope: "#/properties/elements",
|
|
59
|
-
options: {
|
|
60
|
-
widget: "Table",
|
|
61
|
-
},
|
|
62
|
-
config: {
|
|
63
|
-
main: {
|
|
64
|
-
headerIcons: {
|
|
65
|
-
elements: [
|
|
66
|
-
{
|
|
67
|
-
widget: {
|
|
68
|
-
type: "Control",
|
|
69
|
-
scope: "#/properties/New_Record",
|
|
1
|
+
export const TableSection = (theme) => {
|
|
2
|
+
const uiSchema = {
|
|
3
|
+
type: "HorizontalLayout",
|
|
4
|
+
elements: [
|
|
5
|
+
{
|
|
6
|
+
type: "Control",
|
|
7
|
+
scope: "#/properties/elements",
|
|
8
|
+
options: {
|
|
9
|
+
widget: "Table",
|
|
10
|
+
},
|
|
11
|
+
config: {
|
|
12
|
+
main: {
|
|
13
|
+
headerIcons: {
|
|
14
|
+
elements: [
|
|
15
|
+
{
|
|
16
|
+
widget: {
|
|
17
|
+
type: "Control",
|
|
18
|
+
scope: "#/properties/New_Record",
|
|
70
19
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
config: {
|
|
75
|
-
main: {
|
|
76
|
-
color: "info",
|
|
77
|
-
onClick: "widgetAddClickHandler",
|
|
78
|
-
size: "small",
|
|
79
|
-
icon: "AddIcon",
|
|
80
|
-
iconLabel: "Add New",
|
|
81
|
-
styleDefault: true,
|
|
20
|
+
options: {
|
|
21
|
+
widget: "IconButton",
|
|
82
22
|
},
|
|
83
|
-
|
|
84
|
-
|
|
23
|
+
config: {
|
|
24
|
+
main: {
|
|
25
|
+
color: "info",
|
|
26
|
+
onClick: "widgetAddClickHandler",
|
|
27
|
+
size: "small",
|
|
28
|
+
icon: "AddIcon",
|
|
29
|
+
iconLabel: "Add New",
|
|
30
|
+
styleDefault: true,
|
|
31
|
+
},
|
|
32
|
+
style: {
|
|
33
|
+
mt: "6px",
|
|
34
|
+
},
|
|
85
35
|
},
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
enableDrag: true,
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
disableAction: true,
|
|
41
|
+
disableSelection: true,
|
|
42
|
+
enableDrag: true,
|
|
94
43
|
|
|
44
|
+
},
|
|
95
45
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
46
|
+
elements: [
|
|
47
|
+
{
|
|
48
|
+
accessorKey: "name",
|
|
49
|
+
header: "Name"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
accessorKey: "type",
|
|
53
|
+
header: "Type"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
header: "Edit Record",
|
|
57
|
+
field: "Reject_Records",
|
|
58
|
+
flex: 1,
|
|
59
|
+
widget: {
|
|
60
|
+
type: "Control",
|
|
61
|
+
scope: "#/properties/RejectButton",
|
|
62
|
+
options: {
|
|
63
|
+
widget: "IconButton",
|
|
64
|
+
},
|
|
65
|
+
config: {
|
|
66
|
+
main: {
|
|
67
|
+
icon: "EditIcon",
|
|
68
|
+
color: "primary",
|
|
69
|
+
onClick: "editComponents",
|
|
70
|
+
tooltipMessage: "Reject This Record",
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
style: {
|
|
74
|
+
color: theme.palette.primary.main,
|
|
75
|
+
},
|
|
122
76
|
},
|
|
123
77
|
},
|
|
124
78
|
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
79
|
+
{
|
|
80
|
+
header: "Delete",
|
|
81
|
+
field: "Reject_Records",
|
|
82
|
+
flex: 1,
|
|
83
|
+
widget: {
|
|
84
|
+
type: "Control",
|
|
85
|
+
scope: "#/properties/RejectButton",
|
|
86
|
+
options: {
|
|
87
|
+
widget: "IconButton",
|
|
88
|
+
},
|
|
89
|
+
config: {
|
|
90
|
+
main: {
|
|
91
|
+
icon: "RejectIcon",
|
|
92
|
+
color: "error",
|
|
93
|
+
onClick: "deletePopUpComponent",
|
|
94
|
+
tooltipMessage: "Reject This Record",
|
|
95
|
+
},
|
|
142
96
|
},
|
|
143
97
|
},
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
]
|
|
147
|
-
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}]
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return uiSchema
|
|
148
104
|
}
|
|
149
105
|
// ]}
|
|
150
106
|
|