impaktapps-ui-builder 0.0.101-alpha.9 → 0.0.101-alpha.91
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 +1134 -809
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +62 -59
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +17 -21
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +98 -95
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +26 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +52 -38
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +7 -8
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +29 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +56 -37
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +56 -36
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +6 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +14 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +111 -96
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +101 -95
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +189 -110
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +39 -17
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +44 -44
- package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +9 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +40 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +117 -48
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +113 -45
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +23 -23
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +119 -51
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +30 -21
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +188 -295
- package/src/impaktapps-ui-builder/builder/services/component.ts +146 -32
- package/src/impaktapps-ui-builder/builder/services/event.ts +167 -65
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -4
|
@@ -3,46 +3,60 @@ export declare const refreshSectionUiSchema: {
|
|
|
3
3
|
elements: {
|
|
4
4
|
type: string;
|
|
5
5
|
scope: string;
|
|
6
|
-
layout: number;
|
|
7
6
|
options: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
} | {
|
|
28
|
-
type: string;
|
|
29
|
-
scope: string;
|
|
30
|
-
options: {
|
|
31
|
-
widget: string;
|
|
32
|
-
};
|
|
33
|
-
config: {
|
|
34
|
-
layout: {
|
|
35
|
-
xs: number;
|
|
36
|
-
sm: number;
|
|
37
|
-
md: number;
|
|
38
|
-
lg: number;
|
|
39
|
-
};
|
|
40
|
-
main: {
|
|
41
|
-
label?: undefined;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
})[];
|
|
7
|
+
widget: string;
|
|
8
|
+
};
|
|
9
|
+
config: {
|
|
10
|
+
layout: number;
|
|
11
|
+
main: {
|
|
12
|
+
label: string;
|
|
13
|
+
childElementLabel: string;
|
|
14
|
+
};
|
|
15
|
+
style: {
|
|
16
|
+
marginLeft: string;
|
|
17
|
+
marginBottom: string;
|
|
18
|
+
labelStyle: {
|
|
19
|
+
marginLeft: string;
|
|
20
|
+
};
|
|
21
|
+
detailsStyle: {
|
|
22
|
+
marginLeft: string;
|
|
23
|
+
};
|
|
45
24
|
};
|
|
46
25
|
};
|
|
26
|
+
elements: ({
|
|
27
|
+
type: string;
|
|
28
|
+
scope: string;
|
|
29
|
+
options: {
|
|
30
|
+
widget: string;
|
|
31
|
+
};
|
|
32
|
+
config: {
|
|
33
|
+
layout: {
|
|
34
|
+
xs: number;
|
|
35
|
+
sm: number;
|
|
36
|
+
md: number;
|
|
37
|
+
lg: number;
|
|
38
|
+
};
|
|
39
|
+
main: {
|
|
40
|
+
label: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
type: string;
|
|
45
|
+
scope: string;
|
|
46
|
+
options: {
|
|
47
|
+
widget: string;
|
|
48
|
+
};
|
|
49
|
+
config: {
|
|
50
|
+
layout: {
|
|
51
|
+
xs: number;
|
|
52
|
+
sm: number;
|
|
53
|
+
md: number;
|
|
54
|
+
lg: number;
|
|
55
|
+
};
|
|
56
|
+
main: {
|
|
57
|
+
label?: undefined;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
})[];
|
|
47
61
|
}[];
|
|
48
62
|
};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export declare const StyleSection: {
|
|
2
2
|
type: string;
|
|
3
|
+
config: {
|
|
4
|
+
main: {
|
|
5
|
+
label: string;
|
|
6
|
+
gap: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
3
9
|
elements: {
|
|
4
10
|
type: string;
|
|
5
11
|
scope: string;
|
|
@@ -14,14 +20,7 @@ export declare const StyleSection: {
|
|
|
14
20
|
lg: number;
|
|
15
21
|
};
|
|
16
22
|
style: {
|
|
17
|
-
|
|
18
|
-
borderRadius: string;
|
|
19
|
-
};
|
|
20
|
-
headerContainerStyle: {};
|
|
21
|
-
textAreaStyle: {
|
|
22
|
-
borderRadius: string;
|
|
23
|
-
padding: string;
|
|
24
|
-
};
|
|
23
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {};
|
|
25
24
|
};
|
|
26
25
|
main: {
|
|
27
26
|
heading: string;
|
|
@@ -9,28 +9,7 @@ export declare const TableSection: (theme: any) => {
|
|
|
9
9
|
config: {
|
|
10
10
|
main: {
|
|
11
11
|
headerIcons: {
|
|
12
|
-
elements:
|
|
13
|
-
widget: {
|
|
14
|
-
type: string;
|
|
15
|
-
scope: string;
|
|
16
|
-
options: {
|
|
17
|
-
widget: string;
|
|
18
|
-
};
|
|
19
|
-
config: {
|
|
20
|
-
main: {
|
|
21
|
-
color: string;
|
|
22
|
-
onClick: string;
|
|
23
|
-
size: string;
|
|
24
|
-
icon: string;
|
|
25
|
-
iconLabel: string;
|
|
26
|
-
styleDefault: boolean;
|
|
27
|
-
};
|
|
28
|
-
style: {
|
|
29
|
-
mt: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
} | {
|
|
12
|
+
elements: {
|
|
34
13
|
widget: {
|
|
35
14
|
type: string;
|
|
36
15
|
scope: string;
|
|
@@ -44,14 +23,19 @@ export declare const TableSection: (theme: any) => {
|
|
|
44
23
|
icon: string;
|
|
45
24
|
iconLabel: string;
|
|
46
25
|
styleDefault: boolean;
|
|
47
|
-
color?: undefined;
|
|
48
26
|
};
|
|
49
27
|
style: {
|
|
50
28
|
mt: string;
|
|
29
|
+
color: string;
|
|
30
|
+
fill: string;
|
|
31
|
+
"&:hover": {
|
|
32
|
+
color: string;
|
|
33
|
+
fill: string;
|
|
34
|
+
};
|
|
51
35
|
};
|
|
52
36
|
};
|
|
53
37
|
};
|
|
54
|
-
}
|
|
38
|
+
}[];
|
|
55
39
|
};
|
|
56
40
|
disableAction: boolean;
|
|
57
41
|
disableSelection: boolean;
|
|
@@ -61,13 +45,15 @@ export declare const TableSection: (theme: any) => {
|
|
|
61
45
|
elements: ({
|
|
62
46
|
accessorKey: string;
|
|
63
47
|
header: string;
|
|
48
|
+
type: string;
|
|
49
|
+
size: number;
|
|
64
50
|
field?: undefined;
|
|
65
|
-
flex?: undefined;
|
|
66
51
|
widget?: undefined;
|
|
67
52
|
} | {
|
|
68
53
|
header: string;
|
|
69
54
|
field: string;
|
|
70
|
-
|
|
55
|
+
size: number;
|
|
56
|
+
type: string;
|
|
71
57
|
widget: {
|
|
72
58
|
type: string;
|
|
73
59
|
scope: string;
|
|
@@ -77,14 +63,17 @@ export declare const TableSection: (theme: any) => {
|
|
|
77
63
|
config: {
|
|
78
64
|
main: {
|
|
79
65
|
icon: string;
|
|
80
|
-
|
|
66
|
+
size: string;
|
|
81
67
|
onClick: string;
|
|
82
68
|
tooltipMessage: string;
|
|
83
69
|
styleDefault?: undefined;
|
|
84
70
|
disabled?: undefined;
|
|
85
71
|
};
|
|
86
72
|
style: {
|
|
87
|
-
|
|
73
|
+
fill: any;
|
|
74
|
+
"& :hover": {
|
|
75
|
+
fill: any;
|
|
76
|
+
};
|
|
88
77
|
};
|
|
89
78
|
};
|
|
90
79
|
};
|
|
@@ -92,7 +81,8 @@ export declare const TableSection: (theme: any) => {
|
|
|
92
81
|
} | {
|
|
93
82
|
header: string;
|
|
94
83
|
field: string;
|
|
95
|
-
|
|
84
|
+
size: number;
|
|
85
|
+
type: string;
|
|
96
86
|
widget: {
|
|
97
87
|
type: string;
|
|
98
88
|
scope: string;
|
|
@@ -102,20 +92,26 @@ export declare const TableSection: (theme: any) => {
|
|
|
102
92
|
config: {
|
|
103
93
|
main: {
|
|
104
94
|
icon: string;
|
|
105
|
-
color: string;
|
|
106
95
|
onClick: string;
|
|
107
96
|
tooltipMessage: string;
|
|
97
|
+
size?: undefined;
|
|
108
98
|
styleDefault?: undefined;
|
|
109
99
|
disabled?: undefined;
|
|
110
100
|
};
|
|
111
|
-
style
|
|
101
|
+
style: {
|
|
102
|
+
fill: any;
|
|
103
|
+
"& :hover": {
|
|
104
|
+
fill: any;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
112
107
|
};
|
|
113
108
|
};
|
|
114
109
|
accessorKey?: undefined;
|
|
115
110
|
} | {
|
|
116
111
|
header: string;
|
|
117
112
|
field: string;
|
|
118
|
-
|
|
113
|
+
size: number;
|
|
114
|
+
type: string;
|
|
119
115
|
widget: {
|
|
120
116
|
type: string;
|
|
121
117
|
scope: string;
|
|
@@ -128,7 +124,7 @@ export declare const TableSection: (theme: any) => {
|
|
|
128
124
|
onClick: string;
|
|
129
125
|
styleDefault: boolean;
|
|
130
126
|
disabled: boolean;
|
|
131
|
-
|
|
127
|
+
size?: undefined;
|
|
132
128
|
tooltipMessage?: undefined;
|
|
133
129
|
};
|
|
134
130
|
style?: undefined;
|
|
@@ -1,47 +1,66 @@
|
|
|
1
1
|
export declare const ValidationSection: {
|
|
2
2
|
type: string;
|
|
3
|
+
config: {
|
|
4
|
+
main: {
|
|
5
|
+
label: string;
|
|
6
|
+
gap: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
3
9
|
elements: {
|
|
4
10
|
type: string;
|
|
5
11
|
scope: string;
|
|
6
|
-
layout: number;
|
|
7
12
|
options: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
label: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
} | {
|
|
29
|
-
type: string;
|
|
30
|
-
scope: string;
|
|
31
|
-
options: {
|
|
32
|
-
widget: string;
|
|
33
|
-
};
|
|
34
|
-
config: {
|
|
35
|
-
layout: {
|
|
36
|
-
xs: number;
|
|
37
|
-
sm: number;
|
|
38
|
-
md: number;
|
|
39
|
-
lg?: undefined;
|
|
40
|
-
};
|
|
41
|
-
main?: undefined;
|
|
42
|
-
};
|
|
43
|
-
})[];
|
|
13
|
+
widget: string;
|
|
14
|
+
};
|
|
15
|
+
config: {
|
|
16
|
+
layout: number;
|
|
17
|
+
main: {
|
|
18
|
+
label: string;
|
|
19
|
+
childElementLabel: string;
|
|
20
|
+
};
|
|
21
|
+
style: {
|
|
22
|
+
marginLeft: string;
|
|
23
|
+
marginBottom: string;
|
|
24
|
+
labelStyle: {
|
|
25
|
+
marginLeft: string;
|
|
26
|
+
};
|
|
27
|
+
detailsStyle: {
|
|
28
|
+
marginLeft: string;
|
|
29
|
+
};
|
|
44
30
|
};
|
|
45
31
|
};
|
|
32
|
+
elements: ({
|
|
33
|
+
type: string;
|
|
34
|
+
scope: string;
|
|
35
|
+
options: {
|
|
36
|
+
widget: string;
|
|
37
|
+
};
|
|
38
|
+
config: {
|
|
39
|
+
layout: {
|
|
40
|
+
xs: number;
|
|
41
|
+
sm: number;
|
|
42
|
+
md: number;
|
|
43
|
+
lg: number;
|
|
44
|
+
};
|
|
45
|
+
main: {
|
|
46
|
+
label: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
} | {
|
|
50
|
+
type: string;
|
|
51
|
+
scope: string;
|
|
52
|
+
options: {
|
|
53
|
+
widget: string;
|
|
54
|
+
};
|
|
55
|
+
config: {
|
|
56
|
+
layout: {
|
|
57
|
+
xs: number;
|
|
58
|
+
sm: number;
|
|
59
|
+
md: number;
|
|
60
|
+
lg: number;
|
|
61
|
+
};
|
|
62
|
+
main?: undefined;
|
|
63
|
+
};
|
|
64
|
+
})[];
|
|
46
65
|
}[];
|
|
47
66
|
};
|
|
@@ -1,46 +1,66 @@
|
|
|
1
1
|
export declare const ValueTab: {
|
|
2
2
|
type: string;
|
|
3
|
+
config: {
|
|
4
|
+
main: {
|
|
5
|
+
label: string;
|
|
6
|
+
gap: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
3
9
|
elements: {
|
|
4
10
|
type: string;
|
|
5
11
|
scope: string;
|
|
6
|
-
layout: number;
|
|
7
12
|
options: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
} | {
|
|
28
|
-
type: string;
|
|
29
|
-
scope: string;
|
|
30
|
-
options: {
|
|
31
|
-
widget: string;
|
|
32
|
-
};
|
|
33
|
-
config: {
|
|
34
|
-
layout: {
|
|
35
|
-
xs: number;
|
|
36
|
-
sm: number;
|
|
37
|
-
md: number;
|
|
38
|
-
lg: number;
|
|
39
|
-
};
|
|
40
|
-
main?: undefined;
|
|
41
|
-
};
|
|
42
|
-
})[];
|
|
13
|
+
widget: string;
|
|
14
|
+
};
|
|
15
|
+
config: {
|
|
16
|
+
layout: number;
|
|
17
|
+
main: {
|
|
18
|
+
label: string;
|
|
19
|
+
childElementLabel: string;
|
|
20
|
+
};
|
|
21
|
+
style: {
|
|
22
|
+
marginLeft: string;
|
|
23
|
+
marginBottom: string;
|
|
24
|
+
labelStyle: {
|
|
25
|
+
marginLeft: string;
|
|
26
|
+
};
|
|
27
|
+
detailsStyle: {
|
|
28
|
+
marginLeft: string;
|
|
29
|
+
};
|
|
43
30
|
};
|
|
44
31
|
};
|
|
32
|
+
elements: ({
|
|
33
|
+
type: string;
|
|
34
|
+
scope: string;
|
|
35
|
+
options: {
|
|
36
|
+
widget: string;
|
|
37
|
+
};
|
|
38
|
+
config: {
|
|
39
|
+
layout: {
|
|
40
|
+
xs: number;
|
|
41
|
+
sm: number;
|
|
42
|
+
md: number;
|
|
43
|
+
lg: number;
|
|
44
|
+
};
|
|
45
|
+
main: {
|
|
46
|
+
label: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
} | {
|
|
50
|
+
type: string;
|
|
51
|
+
scope: string;
|
|
52
|
+
options: {
|
|
53
|
+
widget: string;
|
|
54
|
+
};
|
|
55
|
+
config: {
|
|
56
|
+
layout: {
|
|
57
|
+
xs: number;
|
|
58
|
+
sm: number;
|
|
59
|
+
md: number;
|
|
60
|
+
lg: number;
|
|
61
|
+
};
|
|
62
|
+
main?: undefined;
|
|
63
|
+
};
|
|
64
|
+
})[];
|
|
45
65
|
}[];
|
|
46
66
|
};
|
package/package.json
CHANGED
|
@@ -2,22 +2,25 @@ import _ from "lodash";
|
|
|
2
2
|
import TextInputField from "./uischema/textInputField";
|
|
3
3
|
import { createLayoutFormat } from "./buildConfig";
|
|
4
4
|
|
|
5
|
-
export const buildTextField = (config:any,componentScope:string) =>{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
inputField.
|
|
22
|
-
|
|
5
|
+
export const buildTextField = (config: any, componentScope: string) => {
|
|
6
|
+
const inputField: any = _.cloneDeep(TextInputField);
|
|
7
|
+
inputField.config.main.label = config.label;
|
|
8
|
+
if (config.style) {
|
|
9
|
+
inputField.config.style = JSON.parse(config.style)
|
|
10
|
+
}
|
|
11
|
+
if (config.multiline) {
|
|
12
|
+
inputField.config.main.multiline = config.multiline === "YES" ? true : false;
|
|
13
|
+
}
|
|
14
|
+
if (config.InputFormatingAndMasking) {
|
|
15
|
+
inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map(e => e.formatElement);
|
|
16
|
+
}
|
|
17
|
+
if (config.placeholder) {
|
|
18
|
+
inputField.config.main.placeholder = config.placeholder;
|
|
19
|
+
}
|
|
20
|
+
if (config.layout) {
|
|
21
|
+
inputField.config.layout = createLayoutFormat(config.layout)
|
|
22
|
+
}
|
|
23
|
+
inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
24
|
+
inputField.scope = componentScope;
|
|
25
|
+
return inputField;
|
|
23
26
|
}
|
|
@@ -343,17 +343,17 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
343
343
|
}
|
|
344
344
|
else if (config.type == "Table") {
|
|
345
345
|
const sizeMap = {}
|
|
346
|
-
const filterMap = {}
|
|
346
|
+
// const filterMap = {}
|
|
347
347
|
if (config.sizeHolder) {
|
|
348
348
|
config.sizeHolder.map((e, i) => {
|
|
349
349
|
sizeMap[e.keyName] = e.value
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
|
-
if(config.enableColumnFilter){
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}
|
|
352
|
+
// if(config.enableColumnFilter){
|
|
353
|
+
// config.enableColumnFilter.map((e)=>{
|
|
354
|
+
// filterMap[e.keyName] = true
|
|
355
|
+
// })
|
|
356
|
+
// }
|
|
357
357
|
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
358
358
|
if (cellElem.type) {
|
|
359
359
|
return {
|
|
@@ -363,8 +363,10 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
363
363
|
type: cellElem.columnFormat,
|
|
364
364
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
|
|
365
365
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
|
|
366
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
367
|
-
columnFilterModeOptions:
|
|
366
|
+
// enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
367
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
368
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
369
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
368
370
|
}
|
|
369
371
|
} else {
|
|
370
372
|
return {
|
|
@@ -372,8 +374,10 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
372
374
|
type: cellElem.columnFormat,
|
|
373
375
|
header: cellElem.label || cellElem.name,
|
|
374
376
|
size: sizeMap[cellElem.name] || 180,
|
|
375
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
376
|
-
columnFilterModeOptions:
|
|
377
|
+
// enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
378
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
379
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
380
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
377
381
|
}
|
|
378
382
|
}
|
|
379
383
|
|