impaktapps-ui-builder 0.0.382456 → 0.0.382460
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 +4233 -2667
- 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/buildBasicUiSchema.d.ts +4 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCard.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/buildDate.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildInputSlider.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTreeMap.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +36 -2
- 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 +60 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +1 -7
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +172 -86
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +121 -119
- 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 +42 -115
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -288
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +119 -96
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/{lazyLoadingTable.d.ts → thoughtOfTheDay.d.ts} +6 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +9 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +12 -4
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +11 -2
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +16 -3
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +8 -5
- package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +11 -8
- package/package.json +5 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +9 -5
- package/src/impaktapps-ui-builder/builder/build/buildButton.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +11 -7
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +15 -19
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +12 -2
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +22 -9
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +46 -0
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +26 -19
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +16 -2
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +24 -23
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
- package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -2
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +19 -8
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +9 -2
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +39 -29
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +61 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +77 -57
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +16 -11
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +50 -27
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +174 -80
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +171 -75
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +43 -41
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +17 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +78 -56
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -141
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -357
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +15 -11
- package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +5 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +125 -97
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +13 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +2 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +67 -19
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +525 -166
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +12 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +757 -321
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +7 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +516 -269
- package/src/impaktapps-ui-builder/builder/services/component.ts +165 -73
- package/src/impaktapps-ui-builder/builder/services/event.ts +74 -13
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +61 -20
- package/src/impaktapps-ui-builder/builder/services/utils.ts +13 -14
- package/src/impaktapps-ui-builder/lib/index.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +154 -96
- package/src/impaktapps-ui-builder/runtime/services/interface.ts +3 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +211 -49
- package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -14
|
@@ -1,100 +1,196 @@
|
|
|
1
|
-
export default {
|
|
1
|
+
export default function Card(theme){
|
|
2
|
+
const uiSchema = {
|
|
2
3
|
type: "WrapperLayout",
|
|
3
4
|
config: {
|
|
4
|
-
main: {
|
|
5
|
-
|
|
5
|
+
main: {},
|
|
6
|
+
wrapperStyle: {
|
|
7
|
+
position: "relative",
|
|
8
|
+
top: "50%",
|
|
9
|
+
transform: "translateY(-50%)"
|
|
6
10
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
componentsBoxStyle: {
|
|
12
|
+
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
13
|
+
flexDirection: "row",
|
|
14
|
+
flexWrap: "nowrap",
|
|
15
|
+
width: "100% !important",
|
|
16
|
+
background: "transparent",
|
|
17
|
+
border: `1.5px solid ${theme.palette.primary.light}`,
|
|
18
|
+
borderRadius: "8px",
|
|
19
|
+
padding: "0px 4px",
|
|
20
|
+
height: "100%",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
marginLeft: "0px",
|
|
23
|
+
"&: hover": {
|
|
24
|
+
background: `${theme.palette.primary.main}`,
|
|
25
|
+
border: `1.5px solid black`,
|
|
26
|
+
"& p": {
|
|
27
|
+
color: "white",
|
|
28
|
+
},
|
|
16
29
|
},
|
|
17
30
|
},
|
|
18
|
-
|
|
31
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
32
|
+
},
|
|
19
33
|
elements: [
|
|
20
34
|
{
|
|
21
|
-
type: "
|
|
22
|
-
scope: "#/properties/programType",
|
|
35
|
+
type: "HorizontalLayout",
|
|
23
36
|
config: {
|
|
24
|
-
|
|
25
|
-
heading: "$5000.00",
|
|
26
|
-
},
|
|
27
|
-
style: {
|
|
28
|
-
position : "absolute",
|
|
29
|
-
left : "10%",
|
|
30
|
-
top: "15%",
|
|
31
|
-
color: "#f5effc",
|
|
32
|
-
height: "80px",
|
|
33
|
-
display: "flex",
|
|
34
|
-
fontSize: {xs:"24px",md:"32px"},
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
background: "inherit",
|
|
37
|
-
justifyContent:"flex-start",
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
layout: 5,
|
|
41
|
-
},
|
|
42
|
-
options: {
|
|
43
|
-
widget: "Box",
|
|
37
|
+
layout: 8,
|
|
44
38
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
39
|
+
elements: [
|
|
40
|
+
{
|
|
41
|
+
type: "WrapperLayout",
|
|
42
|
+
config: {
|
|
43
|
+
main: {
|
|
44
|
+
columnSpacing: 0,
|
|
45
|
+
gap: 0,
|
|
46
|
+
},
|
|
47
|
+
wrapperStyle: {
|
|
48
|
+
background: "transparent",
|
|
49
|
+
},
|
|
50
|
+
componentsBoxStyle: {
|
|
51
|
+
flexDirection: "column",
|
|
52
|
+
flexWrap: "nowrap",
|
|
53
|
+
width: "100%",
|
|
54
|
+
height: "inherit",
|
|
55
|
+
background: "transparent",
|
|
56
|
+
borderRadius: "0px",
|
|
57
|
+
},
|
|
58
|
+
layout: 12,
|
|
59
|
+
},
|
|
60
|
+
elements: [
|
|
61
|
+
{
|
|
62
|
+
type: "WrapperLayout",
|
|
63
|
+
config: {
|
|
64
|
+
main: {
|
|
65
|
+
columnSpacing: 0,
|
|
66
|
+
gap: 0,
|
|
67
|
+
},
|
|
68
|
+
wrapperStyle: {
|
|
69
|
+
background: "transparent",
|
|
70
|
+
},
|
|
71
|
+
componentsBoxStyle: {
|
|
72
|
+
flexDirection: "row",
|
|
73
|
+
flexWrap: "nowrap",
|
|
74
|
+
width: "100%",
|
|
75
|
+
height: "0",
|
|
76
|
+
background: "transparent",
|
|
77
|
+
borderRadius: "0px",
|
|
78
|
+
marginLeft: "-10px",
|
|
79
|
+
marginTop: "-8px",
|
|
80
|
+
justifyContent: "start",
|
|
81
|
+
position: "relative"
|
|
82
|
+
},
|
|
83
|
+
layout: 12,
|
|
84
|
+
},
|
|
85
|
+
elements: [
|
|
86
|
+
{
|
|
87
|
+
type: "Control",
|
|
88
|
+
scope: "#/properties/programType",
|
|
89
|
+
config: {
|
|
90
|
+
main: {
|
|
91
|
+
heading: "",
|
|
92
|
+
},
|
|
93
|
+
style: {
|
|
94
|
+
color: "black",
|
|
95
|
+
display: "flex",
|
|
96
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
97
|
+
fontWeight: "bold",
|
|
98
|
+
background: "inherit",
|
|
99
|
+
justifyContent: "flex-start",
|
|
100
|
+
width: "auto",
|
|
101
|
+
margin: "-8px",
|
|
102
|
+
height: 0
|
|
103
|
+
},
|
|
104
|
+
// layout: 1,
|
|
105
|
+
},
|
|
106
|
+
options: {
|
|
107
|
+
widget: "Box",
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: "Control",
|
|
112
|
+
scope: "#/properties/programType",
|
|
113
|
+
config: {
|
|
114
|
+
main: {
|
|
115
|
+
heading: "5000.00",
|
|
116
|
+
},
|
|
117
|
+
style: {
|
|
118
|
+
color: "black",
|
|
119
|
+
display: "flex",
|
|
120
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
121
|
+
fontWeight: "bold",
|
|
122
|
+
background: "inherit",
|
|
123
|
+
justifyContent: "flex-start",
|
|
124
|
+
width: "auto",
|
|
125
|
+
margin: "-8px",
|
|
126
|
+
position: "absolute",
|
|
127
|
+
left: "8px"
|
|
128
|
+
},
|
|
129
|
+
// layout: 11,
|
|
130
|
+
},
|
|
131
|
+
options: {
|
|
132
|
+
widget: "Box",
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
type: "Control",
|
|
139
|
+
scope: "#/properties/programType",
|
|
140
|
+
config: {
|
|
141
|
+
main: {
|
|
142
|
+
heading: "Total Earnings",
|
|
143
|
+
},
|
|
144
|
+
style: {
|
|
145
|
+
color: "black",
|
|
146
|
+
fontSize: "16px",
|
|
147
|
+
justifyContent: "center",
|
|
148
|
+
textWrap: "wrap",
|
|
149
|
+
background: "inherit",
|
|
150
|
+
width: "calc(100%+8px)",
|
|
151
|
+
margin: "-8px",
|
|
152
|
+
marginTop: "12px",
|
|
153
|
+
lineHeight: "1",
|
|
154
|
+
},
|
|
155
|
+
layout: 12,
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
options: {
|
|
159
|
+
widget: "Box",
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
],
|
|
67
163
|
},
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
options: {
|
|
71
|
-
widget: "Image",
|
|
72
|
-
},
|
|
164
|
+
],
|
|
73
165
|
},
|
|
74
166
|
{
|
|
75
167
|
type: "Control",
|
|
76
168
|
scope: "#/properties/programType",
|
|
77
169
|
config: {
|
|
78
170
|
main: {
|
|
79
|
-
|
|
171
|
+
url: "https://www.svgrepo.com/show/500606/loading.svg",
|
|
80
172
|
},
|
|
81
173
|
style: {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
174
|
+
containerStyle: {
|
|
175
|
+
height: "100%",
|
|
176
|
+
display: "flex",
|
|
177
|
+
justifyContent: "end",
|
|
178
|
+
},
|
|
179
|
+
imageStyle: {
|
|
180
|
+
fontSize: "none",
|
|
181
|
+
padding: "4px",
|
|
182
|
+
margin: "0px 0px 0px 8px",
|
|
183
|
+
height: "64px",
|
|
184
|
+
},
|
|
90
185
|
},
|
|
91
|
-
|
|
186
|
+
layout: 4,
|
|
92
187
|
},
|
|
93
|
-
|
|
94
188
|
options: {
|
|
95
|
-
widget: "
|
|
189
|
+
widget: "Image",
|
|
96
190
|
},
|
|
97
191
|
},
|
|
98
192
|
],
|
|
99
193
|
};
|
|
100
|
-
|
|
194
|
+
|
|
195
|
+
return uiSchema
|
|
196
|
+
}
|
|
@@ -9,7 +9,7 @@ export const CoreSection = {
|
|
|
9
9
|
widget: "SelectInputField",
|
|
10
10
|
},
|
|
11
11
|
config: {
|
|
12
|
-
layout: { xs:
|
|
12
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
13
13
|
main: {
|
|
14
14
|
label: "Type",
|
|
15
15
|
type: "text",
|
|
@@ -24,12 +24,7 @@ export const CoreSection = {
|
|
|
24
24
|
widget: "InputField",
|
|
25
25
|
},
|
|
26
26
|
config: {
|
|
27
|
-
layout: {
|
|
28
|
-
xs: 12,
|
|
29
|
-
sm: 12,
|
|
30
|
-
md: 6,
|
|
31
|
-
lg: 6,
|
|
32
|
-
},
|
|
27
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
33
28
|
main: {
|
|
34
29
|
label: "Name",
|
|
35
30
|
},
|
|
@@ -43,22 +38,41 @@ export const CoreSection = {
|
|
|
43
38
|
widget: "InputField",
|
|
44
39
|
},
|
|
45
40
|
config: {
|
|
46
|
-
layout: {
|
|
47
|
-
xs: 12,
|
|
48
|
-
sm: 12,
|
|
49
|
-
md: 6,
|
|
50
|
-
lg: 6,
|
|
51
|
-
},
|
|
41
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
52
42
|
main: {
|
|
53
43
|
label: "Label",
|
|
54
44
|
},
|
|
55
45
|
},
|
|
56
46
|
},
|
|
47
|
+
{
|
|
48
|
+
type: "Control",
|
|
49
|
+
scope: "#/properties/columnFormat",
|
|
50
|
+
options: {
|
|
51
|
+
widget: "SelectInputField",
|
|
52
|
+
},
|
|
53
|
+
config: {
|
|
54
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
55
|
+
main: {
|
|
56
|
+
label: "Column Format",
|
|
57
|
+
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
57
61
|
{
|
|
58
62
|
type: "Control",
|
|
59
63
|
scope: "#/properties/proc",
|
|
60
64
|
config: {
|
|
61
|
-
layout: { xs:
|
|
65
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
66
|
+
},
|
|
67
|
+
options: {
|
|
68
|
+
widget: "EmptyBox",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "Control",
|
|
73
|
+
scope: "#/properties/proc",
|
|
74
|
+
config: {
|
|
75
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
62
76
|
},
|
|
63
77
|
options: {
|
|
64
78
|
widget: "EmptyBox",
|
|
@@ -67,7 +81,7 @@ export const CoreSection = {
|
|
|
67
81
|
{
|
|
68
82
|
type: "Control",
|
|
69
83
|
scope: "#/properties/layout",
|
|
70
|
-
layout:
|
|
84
|
+
layout: 12,
|
|
71
85
|
options: {
|
|
72
86
|
"elementLabelProp": "key",
|
|
73
87
|
detail: {
|
|
@@ -81,12 +95,7 @@ export const CoreSection = {
|
|
|
81
95
|
widget: "SelectInputField",
|
|
82
96
|
},
|
|
83
97
|
config: {
|
|
84
|
-
layout: {
|
|
85
|
-
xs: 11,
|
|
86
|
-
sm: 11,
|
|
87
|
-
md: 5.5,
|
|
88
|
-
lg: 5.5,
|
|
89
|
-
},
|
|
98
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
90
99
|
main: {
|
|
91
100
|
label: "Screen Size",
|
|
92
101
|
|
|
@@ -101,12 +110,7 @@ export const CoreSection = {
|
|
|
101
110
|
widget: "InputField",
|
|
102
111
|
},
|
|
103
112
|
config: {
|
|
104
|
-
layout: {
|
|
105
|
-
xs: 11,
|
|
106
|
-
sm: 11,
|
|
107
|
-
md: 5.5,
|
|
108
|
-
lg: 5.5,
|
|
109
|
-
},
|
|
113
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
110
114
|
main: {
|
|
111
115
|
label: "Value",
|
|
112
116
|
type:"number",
|
|
@@ -116,6 +120,16 @@ export const CoreSection = {
|
|
|
116
120
|
},
|
|
117
121
|
},
|
|
118
122
|
},
|
|
123
|
+
{
|
|
124
|
+
type: "Control",
|
|
125
|
+
scope: "#/properties/proc",
|
|
126
|
+
config: {
|
|
127
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
128
|
+
},
|
|
129
|
+
options: {
|
|
130
|
+
widget: "EmptyBox",
|
|
131
|
+
},
|
|
132
|
+
},
|
|
119
133
|
],
|
|
120
134
|
},
|
|
121
135
|
},
|
|
@@ -138,12 +152,7 @@ export const OptionArray: any = {
|
|
|
138
152
|
widget: "SelectInputField",
|
|
139
153
|
},
|
|
140
154
|
config: {
|
|
141
|
-
layout: {
|
|
142
|
-
xs: 11,
|
|
143
|
-
sm: 11,
|
|
144
|
-
md: 5.5,
|
|
145
|
-
lg: 5.5,
|
|
146
|
-
},
|
|
155
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
147
156
|
main: {
|
|
148
157
|
label: "Label",
|
|
149
158
|
},
|
|
@@ -157,12 +166,7 @@ export const OptionArray: any = {
|
|
|
157
166
|
widget: "InputField",
|
|
158
167
|
},
|
|
159
168
|
config: {
|
|
160
|
-
layout: {
|
|
161
|
-
xs: 11,
|
|
162
|
-
sm: 11,
|
|
163
|
-
md: 5.5,
|
|
164
|
-
lg: 5.5,
|
|
165
|
-
},
|
|
169
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
166
170
|
main: {
|
|
167
171
|
label: "Value",
|
|
168
172
|
helperText: 'Number should be in range of 0 to 12',
|
|
@@ -191,5 +195,3 @@ export const OptionArraySchema = {
|
|
|
191
195
|
},
|
|
192
196
|
},
|
|
193
197
|
};
|
|
194
|
-
|
|
195
|
-
|
|
@@ -5,16 +5,26 @@ export default {
|
|
|
5
5
|
widget: "DateInputField",
|
|
6
6
|
},
|
|
7
7
|
|
|
8
|
-
config: {
|
|
9
|
-
|
|
10
|
-
xs: 11,
|
|
11
|
-
sm: 11,
|
|
12
|
-
md: 5.5,
|
|
13
|
-
lg: 5.5,
|
|
14
|
-
},
|
|
8
|
+
config: {
|
|
9
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
15
10
|
main: {
|
|
16
11
|
label: "",
|
|
17
12
|
type: "date",
|
|
18
13
|
},
|
|
19
14
|
},
|
|
20
15
|
};
|
|
16
|
+
export const DateTime = {
|
|
17
|
+
type: "Control",
|
|
18
|
+
scope: "#/properties/date",
|
|
19
|
+
options: {
|
|
20
|
+
widget: "DateTimeInputField",
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
config: {
|
|
24
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
25
|
+
main: {
|
|
26
|
+
label: "DateTime",
|
|
27
|
+
type: "date",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -1,58 +1,7 @@
|
|
|
1
|
-
export const EventSection = {
|
|
1
|
+
export const EventSection = (theme)=>{
|
|
2
|
+
const uiSchema = {
|
|
2
3
|
type: "HorizontalLayout",
|
|
3
4
|
elements: [
|
|
4
|
-
{
|
|
5
|
-
type: "WrapperLayout",
|
|
6
|
-
config: {
|
|
7
|
-
main: {
|
|
8
|
-
// label: "Table Columns",
|
|
9
|
-
divider: true,
|
|
10
|
-
},
|
|
11
|
-
wrapperStyle: {
|
|
12
|
-
border:"1px solid gray"
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
elements: [
|
|
16
|
-
{
|
|
17
|
-
type: "Control",
|
|
18
|
-
scope: "#/properties/programType",
|
|
19
|
-
|
|
20
|
-
options: {
|
|
21
|
-
widget: "Box",
|
|
22
|
-
},
|
|
23
|
-
config: {
|
|
24
|
-
layout: 8,
|
|
25
|
-
main: {
|
|
26
|
-
heading: "Event 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: "eventAddHandler",
|
|
49
|
-
tooltipMessage: "Back",
|
|
50
|
-
},
|
|
51
|
-
style: {
|
|
52
|
-
float: "right",
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
5
|
{
|
|
57
6
|
type: "Control",
|
|
58
7
|
scope: "#/properties/events",
|
|
@@ -61,6 +10,56 @@ export const EventSection = {
|
|
|
61
10
|
},
|
|
62
11
|
config: {
|
|
63
12
|
main: {
|
|
13
|
+
headerIcons: {
|
|
14
|
+
elements: [
|
|
15
|
+
{
|
|
16
|
+
widget: {
|
|
17
|
+
type: "Control",
|
|
18
|
+
scope: "#/properties/New_Record",
|
|
19
|
+
|
|
20
|
+
options: {
|
|
21
|
+
widget: "IconButton",
|
|
22
|
+
},
|
|
23
|
+
config: {
|
|
24
|
+
main: {
|
|
25
|
+
color: "info",
|
|
26
|
+
onClick: "eventAddHandler",
|
|
27
|
+
size: "small",
|
|
28
|
+
icon: "AddIcon",
|
|
29
|
+
iconLabel: "Add New",
|
|
30
|
+
styleDefault: true,
|
|
31
|
+
},
|
|
32
|
+
style: {
|
|
33
|
+
mt: "6px",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
widget: {
|
|
40
|
+
type: "Control",
|
|
41
|
+
scope: "#/properties/Paste_Event",
|
|
42
|
+
|
|
43
|
+
options: {
|
|
44
|
+
widget: "IconButton",
|
|
45
|
+
},
|
|
46
|
+
config: {
|
|
47
|
+
main: {
|
|
48
|
+
// color: "info",
|
|
49
|
+
onClick: "copyPasteElement",
|
|
50
|
+
size: "small",
|
|
51
|
+
icon: "PasteIcon",
|
|
52
|
+
iconLabel: "Paste",
|
|
53
|
+
styleDefault: true,
|
|
54
|
+
},
|
|
55
|
+
style: {
|
|
56
|
+
mt: "6px",
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
]
|
|
62
|
+
},
|
|
64
63
|
disableAction: true,
|
|
65
64
|
disableSelection: true,
|
|
66
65
|
enableDrag: true,
|
|
@@ -96,7 +95,7 @@ export const EventSection = {
|
|
|
96
95
|
onClick: "eventEditHandler",
|
|
97
96
|
},
|
|
98
97
|
style: {
|
|
99
|
-
color:
|
|
98
|
+
color: theme.palette.primary.main,
|
|
100
99
|
},
|
|
101
100
|
},
|
|
102
101
|
},
|
|
@@ -117,14 +116,37 @@ export const EventSection = {
|
|
|
117
116
|
icon: "RejectIcon",
|
|
118
117
|
color: "error",
|
|
119
118
|
tooltipMessage: "Reject This Record",
|
|
120
|
-
onClick: "
|
|
119
|
+
onClick: "deletePopUpEvent",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
header: "Copy",
|
|
126
|
+
field: "Copy_Event",
|
|
127
|
+
flex: 1,
|
|
128
|
+
widget: {
|
|
129
|
+
type: "Control",
|
|
130
|
+
scope: "#/properties/Copy_Event",
|
|
131
|
+
options: {
|
|
132
|
+
widget: "IconButton",
|
|
133
|
+
},
|
|
134
|
+
config: {
|
|
135
|
+
main: {
|
|
136
|
+
icon: "FileCopyIcon",
|
|
137
|
+
// color: "error",
|
|
138
|
+
onClick: "copyPasteElement",
|
|
139
|
+
tooltipMessage: "Reject This Record",
|
|
140
|
+
styleDefault: true,
|
|
121
141
|
},
|
|
122
142
|
},
|
|
123
143
|
},
|
|
124
144
|
},
|
|
125
145
|
]
|
|
126
146
|
}]}
|
|
127
|
-
|
|
147
|
+
return uiSchema
|
|
148
|
+
}
|
|
149
|
+
// ]}
|
|
128
150
|
|
|
129
151
|
export const EventSectionSchema = {
|
|
130
152
|
events: {
|
|
@@ -13,12 +13,7 @@ export const uploadFile = {
|
|
|
13
13
|
"style": {
|
|
14
14
|
"backgroundColor": "none"
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
"lg": 5.5,
|
|
18
|
-
"md": 5.5,
|
|
19
|
-
"sm": 11,
|
|
20
|
-
"xs": 11
|
|
21
|
-
}
|
|
16
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 }
|
|
22
17
|
},
|
|
23
18
|
"options": {
|
|
24
19
|
"widget": "UploadFile"
|
|
@@ -35,12 +30,7 @@ export const downloadFile = {
|
|
|
35
30
|
"style": {
|
|
36
31
|
"backgroundColor": "none"
|
|
37
32
|
},
|
|
38
|
-
|
|
39
|
-
"lg": 5.5,
|
|
40
|
-
"md": 5.5,
|
|
41
|
-
"sm": 11,
|
|
42
|
-
"xs": 11
|
|
43
|
-
}
|
|
33
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 }
|
|
44
34
|
},
|
|
45
35
|
"options": {
|
|
46
36
|
"widget": "DownloadFile"
|