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
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: (FormData: any) => any;
|
|
2
2
|
export default _default;
|
|
3
3
|
export declare const createLayoutFormat: (config: any[]) => any;
|
|
4
|
-
export declare const flatObjectValueInArray: (config
|
|
4
|
+
export declare const flatObjectValueInArray: (config?: any[]) => any[];
|
|
@@ -17,6 +17,24 @@ export declare const getRadioInputField: (scope: String, label: String, options:
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
export declare const buildWrapper: (label: string, elements: any[]) => {
|
|
21
|
+
type: string;
|
|
22
|
+
config: {
|
|
23
|
+
main: {
|
|
24
|
+
label: string;
|
|
25
|
+
isAccordion: boolean;
|
|
26
|
+
};
|
|
27
|
+
wrapperStyle: {
|
|
28
|
+
marginTop: string;
|
|
29
|
+
marginBottom: string;
|
|
30
|
+
};
|
|
31
|
+
componentsBoxStyle: {
|
|
32
|
+
marginLeft: string;
|
|
33
|
+
};
|
|
34
|
+
defaultStyle: boolean;
|
|
35
|
+
};
|
|
36
|
+
elements: any[];
|
|
37
|
+
};
|
|
20
38
|
export declare const getTextArea: (scope: string, heading: string, hideButton: boolean, layout?: any) => {
|
|
21
39
|
type: string;
|
|
22
40
|
scope: string;
|
|
@@ -4,19 +4,17 @@ declare const _default: {
|
|
|
4
4
|
main: {
|
|
5
5
|
rowSpacing: number;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
md: string;
|
|
14
|
-
};
|
|
15
|
-
width: string;
|
|
16
|
-
textAlign: string;
|
|
17
|
-
background: string;
|
|
18
|
-
borderRadius: string;
|
|
7
|
+
componentsBoxStyle: {
|
|
8
|
+
position: string;
|
|
9
|
+
color: string;
|
|
10
|
+
height: {
|
|
11
|
+
xs: string;
|
|
12
|
+
md: string;
|
|
19
13
|
};
|
|
14
|
+
width: string;
|
|
15
|
+
textAlign: string;
|
|
16
|
+
background: string;
|
|
17
|
+
borderRadius: string;
|
|
20
18
|
};
|
|
21
19
|
layout: {
|
|
22
20
|
xs: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const EventSection: {
|
|
1
|
+
export declare const EventSection: (theme: any) => {
|
|
2
2
|
type: string;
|
|
3
3
|
elements: {
|
|
4
4
|
type: string;
|
|
@@ -59,7 +59,7 @@ export declare const EventSection: {
|
|
|
59
59
|
onClick: string;
|
|
60
60
|
};
|
|
61
61
|
style: {
|
|
62
|
-
color:
|
|
62
|
+
color: any;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
accessorKeyName?: undefined;
|
|
@@ -12,10 +12,10 @@ export declare const uploadFile: {
|
|
|
12
12
|
backgroundColor: string;
|
|
13
13
|
};
|
|
14
14
|
layout: {
|
|
15
|
-
lg: number;
|
|
16
|
-
md: number;
|
|
17
|
-
sm: number;
|
|
18
15
|
xs: number;
|
|
16
|
+
sm: number;
|
|
17
|
+
md: number;
|
|
18
|
+
lg: number;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
options: {
|
|
@@ -34,10 +34,10 @@ export declare const downloadFile: {
|
|
|
34
34
|
backgroundColor: string;
|
|
35
35
|
};
|
|
36
36
|
layout: {
|
|
37
|
-
lg: number;
|
|
38
|
-
md: number;
|
|
39
|
-
sm: number;
|
|
40
37
|
xs: number;
|
|
38
|
+
sm: number;
|
|
39
|
+
md: number;
|
|
40
|
+
lg: number;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
options: {
|
|
@@ -6,6 +6,9 @@ export declare const BarGraph: {
|
|
|
6
6
|
};
|
|
7
7
|
config: {
|
|
8
8
|
main: {};
|
|
9
|
+
style: {
|
|
10
|
+
containerStyle: {};
|
|
11
|
+
};
|
|
9
12
|
};
|
|
10
13
|
};
|
|
11
14
|
export declare const PieGraph: {
|
|
@@ -18,6 +21,7 @@ export declare const PieGraph: {
|
|
|
18
21
|
main: {
|
|
19
22
|
type: string;
|
|
20
23
|
};
|
|
24
|
+
style: {};
|
|
21
25
|
};
|
|
22
26
|
};
|
|
23
27
|
export declare const LineGraph: {
|
|
@@ -66,5 +70,6 @@ export declare const HorizontalBarGraph: {
|
|
|
66
70
|
main: {
|
|
67
71
|
type: string;
|
|
68
72
|
};
|
|
73
|
+
style: {};
|
|
69
74
|
};
|
|
70
75
|
};
|
|
@@ -7,18 +7,16 @@ declare const _default: {
|
|
|
7
7
|
label: string;
|
|
8
8
|
divider: boolean;
|
|
9
9
|
};
|
|
10
|
-
style: {
|
|
11
|
-
wrapperStyle: {
|
|
12
|
-
height: {
|
|
13
|
-
xs: number;
|
|
14
|
-
sm: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
10
|
+
style: {};
|
|
18
11
|
wrapperStyle: {
|
|
19
12
|
position: string;
|
|
20
13
|
width: string;
|
|
21
14
|
};
|
|
15
|
+
componentsBoxStyle: {
|
|
16
|
+
display: string;
|
|
17
|
+
flexDirection: string;
|
|
18
|
+
gap: string;
|
|
19
|
+
};
|
|
22
20
|
};
|
|
23
21
|
elements: ({
|
|
24
22
|
type: string;
|
|
@@ -30,36 +28,39 @@ declare const _default: {
|
|
|
30
28
|
disableAction?: undefined;
|
|
31
29
|
disableSelection?: undefined;
|
|
32
30
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
left: {
|
|
41
|
-
xs: string;
|
|
42
|
-
sm: string;
|
|
43
|
-
md: string;
|
|
44
|
-
};
|
|
45
|
-
width: {
|
|
46
|
-
xs: string;
|
|
47
|
-
sm: string;
|
|
48
|
-
md: string;
|
|
31
|
+
style: {
|
|
32
|
+
imageStyle: {
|
|
33
|
+
objectFit: string;
|
|
34
|
+
width: string;
|
|
35
|
+
height: string;
|
|
36
|
+
borderRadius: string;
|
|
49
37
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
38
|
+
containerStyle: {
|
|
39
|
+
objectFit: string;
|
|
40
|
+
position: string;
|
|
41
|
+
top: {
|
|
42
|
+
xs: string;
|
|
43
|
+
md: string;
|
|
44
|
+
};
|
|
45
|
+
left: {
|
|
46
|
+
xs: string;
|
|
47
|
+
sm: string;
|
|
48
|
+
md: string;
|
|
49
|
+
};
|
|
50
|
+
width: {
|
|
51
|
+
xs: string;
|
|
52
|
+
sm: string;
|
|
53
|
+
md: string;
|
|
54
|
+
};
|
|
55
|
+
border: string;
|
|
56
|
+
height: {
|
|
57
|
+
xs: string;
|
|
58
|
+
sm: string;
|
|
59
|
+
md: string;
|
|
60
|
+
};
|
|
61
|
+
borderRadius: string;
|
|
55
62
|
};
|
|
56
|
-
|
|
57
|
-
};
|
|
58
|
-
style: {
|
|
59
|
-
objectFit: string;
|
|
60
|
-
width: string;
|
|
61
|
-
height: string;
|
|
62
|
-
borderRadius: string;
|
|
63
|
+
objectFit?: undefined;
|
|
63
64
|
position?: undefined;
|
|
64
65
|
display?: undefined;
|
|
65
66
|
justifyContent?: undefined;
|
|
@@ -68,14 +69,18 @@ declare const _default: {
|
|
|
68
69
|
top?: undefined;
|
|
69
70
|
fontSize?: undefined;
|
|
70
71
|
left?: undefined;
|
|
72
|
+
width?: undefined;
|
|
71
73
|
fontWeight?: undefined;
|
|
74
|
+
borderRadius?: undefined;
|
|
72
75
|
zIndex?: undefined;
|
|
73
76
|
textShadow?: undefined;
|
|
74
77
|
background?: undefined;
|
|
75
78
|
border?: undefined;
|
|
79
|
+
height?: undefined;
|
|
76
80
|
'@keyframes rotateAnimation'?: undefined;
|
|
77
81
|
animation?: undefined;
|
|
78
82
|
tableHeadstyle?: undefined;
|
|
83
|
+
margin?: undefined;
|
|
79
84
|
};
|
|
80
85
|
layout: number;
|
|
81
86
|
};
|
|
@@ -115,16 +120,18 @@ declare const _default: {
|
|
|
115
120
|
fontWeight: string;
|
|
116
121
|
borderRadius: string;
|
|
117
122
|
zIndex: number;
|
|
118
|
-
|
|
123
|
+
imageStyle?: undefined;
|
|
124
|
+
containerStyle?: undefined;
|
|
119
125
|
textShadow?: undefined;
|
|
120
126
|
background?: undefined;
|
|
121
127
|
border?: undefined;
|
|
128
|
+
height?: undefined;
|
|
122
129
|
'@keyframes rotateAnimation'?: undefined;
|
|
123
130
|
animation?: undefined;
|
|
124
131
|
tableHeadstyle?: undefined;
|
|
132
|
+
margin?: undefined;
|
|
125
133
|
};
|
|
126
134
|
layout: number;
|
|
127
|
-
containerStyle?: undefined;
|
|
128
135
|
};
|
|
129
136
|
options: {
|
|
130
137
|
widget: string;
|
|
@@ -161,17 +168,19 @@ declare const _default: {
|
|
|
161
168
|
width: string;
|
|
162
169
|
fontWeight: string;
|
|
163
170
|
borderRadius: string;
|
|
164
|
-
|
|
171
|
+
imageStyle?: undefined;
|
|
172
|
+
containerStyle?: undefined;
|
|
165
173
|
zIndex?: undefined;
|
|
166
174
|
textShadow?: undefined;
|
|
167
175
|
background?: undefined;
|
|
168
176
|
border?: undefined;
|
|
177
|
+
height?: undefined;
|
|
169
178
|
'@keyframes rotateAnimation'?: undefined;
|
|
170
179
|
animation?: undefined;
|
|
171
180
|
tableHeadstyle?: undefined;
|
|
181
|
+
margin?: undefined;
|
|
172
182
|
};
|
|
173
183
|
layout: number;
|
|
174
|
-
containerStyle?: undefined;
|
|
175
184
|
};
|
|
176
185
|
options: {
|
|
177
186
|
widget: string;
|
|
@@ -233,11 +242,13 @@ declare const _default: {
|
|
|
233
242
|
animation: string;
|
|
234
243
|
borderRadius: string;
|
|
235
244
|
zIndex: number;
|
|
245
|
+
imageStyle?: undefined;
|
|
246
|
+
containerStyle?: undefined;
|
|
236
247
|
fontWeight?: undefined;
|
|
237
248
|
tableHeadstyle?: undefined;
|
|
249
|
+
margin?: undefined;
|
|
238
250
|
};
|
|
239
251
|
layout: number;
|
|
240
|
-
containerStyle?: undefined;
|
|
241
252
|
};
|
|
242
253
|
options: {
|
|
243
254
|
widget: string;
|
|
@@ -256,7 +267,6 @@ declare const _default: {
|
|
|
256
267
|
fontWeight: number;
|
|
257
268
|
background: string;
|
|
258
269
|
};
|
|
259
|
-
position: string;
|
|
260
270
|
top: {
|
|
261
271
|
xs: string;
|
|
262
272
|
sm: string;
|
|
@@ -266,18 +276,22 @@ declare const _default: {
|
|
|
266
276
|
border: string;
|
|
267
277
|
width: string;
|
|
268
278
|
left: string;
|
|
279
|
+
margin: string;
|
|
280
|
+
imageStyle?: undefined;
|
|
281
|
+
containerStyle?: undefined;
|
|
269
282
|
objectFit?: undefined;
|
|
270
|
-
|
|
271
|
-
borderRadius?: undefined;
|
|
283
|
+
position?: undefined;
|
|
272
284
|
display?: undefined;
|
|
273
285
|
justifyContent?: undefined;
|
|
274
286
|
alignItems?: undefined;
|
|
275
287
|
color?: undefined;
|
|
276
288
|
fontSize?: undefined;
|
|
277
289
|
fontWeight?: undefined;
|
|
290
|
+
borderRadius?: undefined;
|
|
278
291
|
zIndex?: undefined;
|
|
279
292
|
textShadow?: undefined;
|
|
280
293
|
background?: undefined;
|
|
294
|
+
height?: undefined;
|
|
281
295
|
'@keyframes rotateAnimation'?: undefined;
|
|
282
296
|
animation?: undefined;
|
|
283
297
|
};
|
|
@@ -287,7 +301,6 @@ declare const _default: {
|
|
|
287
301
|
url?: undefined;
|
|
288
302
|
heading?: undefined;
|
|
289
303
|
};
|
|
290
|
-
containerStyle?: undefined;
|
|
291
304
|
layout?: undefined;
|
|
292
305
|
};
|
|
293
306
|
})[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const TableSection: {
|
|
1
|
+
export declare const TableSection: (theme: any) => {
|
|
2
2
|
type: string;
|
|
3
3
|
elements: {
|
|
4
4
|
type: string;
|
|
@@ -60,6 +60,30 @@ export declare const TableSection: {
|
|
|
60
60
|
onClick: string;
|
|
61
61
|
tooltipMessage: string;
|
|
62
62
|
};
|
|
63
|
+
style: {
|
|
64
|
+
color: any;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
accessorKey?: undefined;
|
|
69
|
+
} | {
|
|
70
|
+
header: string;
|
|
71
|
+
field: string;
|
|
72
|
+
flex: number;
|
|
73
|
+
widget: {
|
|
74
|
+
type: string;
|
|
75
|
+
scope: string;
|
|
76
|
+
options: {
|
|
77
|
+
widget: string;
|
|
78
|
+
};
|
|
79
|
+
config: {
|
|
80
|
+
main: {
|
|
81
|
+
icon: string;
|
|
82
|
+
color: string;
|
|
83
|
+
onClick: string;
|
|
84
|
+
tooltipMessage: string;
|
|
85
|
+
};
|
|
86
|
+
style?: undefined;
|
|
63
87
|
};
|
|
64
88
|
};
|
|
65
89
|
accessorKey?: undefined;
|
|
@@ -8,11 +8,13 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
8
8
|
saveHandler: () => Promise<void>;
|
|
9
9
|
onChange: () => void;
|
|
10
10
|
editComponents: () => void;
|
|
11
|
-
deleteComponents: () => void;
|
|
12
|
-
deleteEvent: () => void;
|
|
11
|
+
deleteComponents: (shouldUpdateDialog?: boolean) => void;
|
|
12
|
+
deleteEvent: (shouldUpdateDialog?: boolean) => void;
|
|
13
13
|
widgetAddClickHandler: () => void;
|
|
14
14
|
eventEditHandler: () => void;
|
|
15
15
|
eventAddHandler: () => void;
|
|
16
16
|
backHandler: () => void;
|
|
17
|
+
deletePopUpComponent: () => void;
|
|
18
|
+
deletePopUpEvent: () => void;
|
|
17
19
|
};
|
|
18
20
|
export default _default;
|
|
@@ -84,7 +84,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
84
84
|
onChange: () => void;
|
|
85
85
|
addEvent: () => void;
|
|
86
86
|
editEvent: () => void;
|
|
87
|
-
deleteEvent: () => void
|
|
87
|
+
deleteEvent: () => Promise<void>;
|
|
88
88
|
backHandler: () => void;
|
|
89
|
+
deletePopUpEvent: () => void;
|
|
89
90
|
};
|
|
90
91
|
export default _default;
|
|
@@ -57,9 +57,11 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
57
57
|
onAddClickHandler: () => void;
|
|
58
58
|
saveHandler: () => Promise<void>;
|
|
59
59
|
Edit_Components: () => void;
|
|
60
|
-
Delete_Components: () => void
|
|
60
|
+
Delete_Components: () => Promise<void>;
|
|
61
61
|
eventAddHandler: () => void;
|
|
62
62
|
editEvent: () => void;
|
|
63
63
|
deleteEvent: () => void;
|
|
64
|
+
deletePopUpComponent: () => void;
|
|
65
|
+
deletePopUpEvent: () => void;
|
|
64
66
|
};
|
|
65
67
|
export default _default;
|
|
@@ -15,10 +15,11 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
15
15
|
onFileDownload: () => void;
|
|
16
16
|
onFileUpload: () => void;
|
|
17
17
|
backHandler: () => void;
|
|
18
|
+
onRowMovement: (paginationValues: any) => Promise<any>;
|
|
18
19
|
onPaginationChange: (paginationValues: any) => Promise<any>;
|
|
19
20
|
getSelectOptions: (param: any) => Promise<any>;
|
|
20
21
|
onChange: () => Promise<void>;
|
|
21
|
-
|
|
22
|
+
callExecuteEvents: (paramValue: any, apiBody: any, eventType: string) => Promise<any>;
|
|
22
23
|
onBack: (functionParameters: any) => Promise<void>;
|
|
23
24
|
onNext: (functionParameters: any) => Promise<void>;
|
|
24
25
|
onReset: (functionParameters: any) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -29,10 +29,10 @@ export default (FormData: any) => {
|
|
|
29
29
|
export const createLayoutFormat = (config: any[]) => {
|
|
30
30
|
if (_.isEmpty(config)) {
|
|
31
31
|
return {
|
|
32
|
-
xs:
|
|
33
|
-
sm:
|
|
34
|
-
md:
|
|
35
|
-
lg:
|
|
32
|
+
xs: 12,
|
|
33
|
+
sm: 12,
|
|
34
|
+
md: 12,
|
|
35
|
+
lg: 12,
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
let data: any = {};
|
|
@@ -41,7 +41,7 @@ export const createLayoutFormat = (config: any[]) => {
|
|
|
41
41
|
})
|
|
42
42
|
return data;
|
|
43
43
|
};
|
|
44
|
-
export const flatObjectValueInArray = (config: any[]) => {
|
|
44
|
+
export const flatObjectValueInArray = (config: any[]=[]) => {
|
|
45
45
|
if (config[0].length < 1) {
|
|
46
46
|
return
|
|
47
47
|
}
|
|
@@ -2,7 +2,7 @@ import DateInputField, { DateTime } from "./uischema/dateInputField";
|
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import { createLayoutFormat } from "./buildConfig";
|
|
4
4
|
|
|
5
|
-
export const buildDate = (config:any,componentScope:string)=>{
|
|
5
|
+
export const buildDate = (config:any,componentScope:string)=> {
|
|
6
6
|
const dateInputField: any = _.cloneDeep(DateInputField);
|
|
7
7
|
dateInputField.config.main.label = config.label;
|
|
8
8
|
dateInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
@@ -15,10 +15,6 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
15
15
|
if (config.barColor) {
|
|
16
16
|
barGraph.config.barStyle.color = config.barColor;
|
|
17
17
|
}
|
|
18
|
-
// if (config.containerBackground) {
|
|
19
|
-
// barGraph.config.containerStyle.background =
|
|
20
|
-
// config.containerBackground;
|
|
21
|
-
// }
|
|
22
18
|
if (config.height) {
|
|
23
19
|
barGraph.config.style.containerStyle.height = config.height;
|
|
24
20
|
}
|
|
@@ -28,6 +24,6 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
28
24
|
if (config.leftLabel) {
|
|
29
25
|
barGraph.config.main.leftLabel = config.leftLabel;
|
|
30
26
|
}
|
|
31
|
-
|
|
27
|
+
barGraph.scope = componentScope;
|
|
32
28
|
return barGraph;
|
|
33
29
|
}
|
|
@@ -2,7 +2,7 @@ import Table from "./uischema/table";
|
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import buildUiSchema from "./buildUiSchema";
|
|
4
4
|
import lazyLoadingTable from "./uischema/lazyLoadingTable";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export const buildTable = (config: any, componentScope: string) => {
|
|
7
7
|
const table: any = _.cloneDeep(Table);
|
|
8
8
|
table.scope = componentScope;
|
|
@@ -12,6 +12,22 @@ export const buildTable = (config: any, componentScope: string) => {
|
|
|
12
12
|
if (config.lazyLoading) {
|
|
13
13
|
table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
|
|
14
14
|
}
|
|
15
|
+
if (config.enableRowMovement) {
|
|
16
|
+
table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
|
|
17
|
+
}
|
|
18
|
+
if (config.enableExpanding) {
|
|
19
|
+
table.config.main.enableExpanding = config.enableExpanding === "YES" ? true : false;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (config.enableExpandAll) {
|
|
23
|
+
table.config.main.enableExpandAll = config.enableExpandAll === "YES" ? true : false;
|
|
24
|
+
}
|
|
25
|
+
if (config.paginateExpandedRows) {
|
|
26
|
+
table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
|
|
27
|
+
}
|
|
28
|
+
if (config.treeStructure) {
|
|
29
|
+
table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
30
|
+
}
|
|
15
31
|
if (config.SelectionAvailable) {
|
|
16
32
|
table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false
|
|
17
33
|
};
|
|
@@ -7,7 +7,7 @@ export const buildWrapperSection = (config, componentScope) => {
|
|
|
7
7
|
wrapper.scope = componentScope;
|
|
8
8
|
wrapper.config.main.label = config.label;
|
|
9
9
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
10
|
-
wrapper.config.main.isAccordion = config.isAccordion === "
|
|
10
|
+
wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
|
|
11
11
|
if(config.defaultStyle){
|
|
12
12
|
wrapper.config.defaultStyle = config.defaultStyle ==="YES" ? true : false;
|
|
13
13
|
}
|