impaktapps-ui-builder 0.0.382457 → 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.
Files changed (109) hide show
  1. package/dist/impaktapps-ui-builder.es.js +4233 -2669
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +4 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildInputSlider.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildTreeMap.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +36 -2
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +2 -2
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +60 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +1 -7
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +172 -86
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +19 -0
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +121 -119
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +42 -115
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -288
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
  26. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +2 -0
  27. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +119 -96
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/{lazyLoadingTable.d.ts → thoughtOfTheDay.d.ts} +6 -3
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
  31. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  32. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +2 -1
  33. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +9 -0
  34. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  35. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +12 -4
  36. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +11 -2
  37. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +16 -3
  38. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
  39. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
  40. package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +8 -5
  41. package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +2 -0
  42. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +11 -8
  43. package/package.json +5 -1
  44. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +9 -5
  45. package/src/impaktapps-ui-builder/builder/build/buildButton.ts +0 -2
  46. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +11 -7
  47. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +15 -19
  48. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +12 -2
  49. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  50. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +22 -9
  51. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +46 -0
  52. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +26 -19
  53. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +16 -2
  54. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +24 -23
  55. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
  56. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  57. package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
  58. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -2
  59. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +19 -8
  60. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +9 -2
  61. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +39 -29
  62. package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
  63. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
  64. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +61 -0
  65. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +77 -57
  66. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
  67. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +16 -13
  68. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +50 -27
  69. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -2
  70. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +174 -80
  71. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -7
  72. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +171 -75
  73. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +43 -41
  74. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +17 -7
  75. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  76. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +78 -56
  77. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  78. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -141
  79. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -357
  80. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  81. package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
  82. package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
  83. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +15 -11
  84. package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
  85. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
  86. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +5 -6
  87. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +125 -97
  88. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
  89. package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
  90. package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
  91. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  92. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +13 -13
  93. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +2 -1
  94. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +67 -19
  95. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +525 -166
  96. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +12 -2
  97. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +757 -321
  98. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +7 -2
  99. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +516 -269
  100. package/src/impaktapps-ui-builder/builder/services/component.ts +165 -73
  101. package/src/impaktapps-ui-builder/builder/services/event.ts +74 -13
  102. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +61 -20
  103. package/src/impaktapps-ui-builder/builder/services/utils.ts +13 -14
  104. package/src/impaktapps-ui-builder/lib/index.ts +1 -1
  105. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +1 -1
  106. package/src/impaktapps-ui-builder/runtime/services/events.ts +154 -96
  107. package/src/impaktapps-ui-builder/runtime/services/interface.ts +3 -1
  108. package/src/impaktapps-ui-builder/runtime/services/service.ts +211 -49
  109. package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -14
@@ -1,318 +1,565 @@
1
- import { getSelectField } from "../../../build/uischema/buildPropertiesSection";
1
+ import { getSelectField } from "../../../build/uischema/buildPropertiesSection";
2
2
 
3
- export const EventUiSchema: any = {
4
- type: "HorizontalLayout",
5
- elements: [
6
- {
7
- type: "WrapperLayout",
8
- config: {
9
- main: {
10
- rowSpacing: 1,
11
- header: true
3
+ export const EventUiSchema: any = (theme) => {
4
+ const uiSchema = {
5
+ type: "HorizontalLayout",
6
+ heading: "Component",
7
+ elements: [
8
+ {
9
+ type: "Control",
10
+ scope: "#/properties/pageName",
11
+
12
+ options: {
13
+ widget: "Box",
14
+ },
15
+ config: {
16
+ layout: 12,
17
+ main: {
18
+ heading: " ",
19
+ },
20
+ style: {
21
+ marginLeft: theme.spacing(3),
22
+ width:"auto",
23
+ fontSize:"12px",
24
+ color:"gray",
25
+ },
12
26
  },
13
- defaultStyle: true
14
27
  },
15
- elements: [
16
- {
17
- type: "Control",
18
- scope: "#/properties/Component",
28
+ {
29
+ type: "TabLayout",
30
+ config: {
31
+ main: {
32
+ tabLabels: ["Core", "Response Event"],
33
+ defaultStyle: true,
34
+ id: "event"
35
+ },
36
+ },
37
+
38
+ elements: [
39
+ {
40
+ type: "HorizontalLayout",
41
+ elements: [
42
+ {
43
+ type: "Control",
44
+ scope: `#/properties/eventType`,
45
+
46
+ options: {
47
+ widget: "SelectInputField",
48
+ },
49
+ config: {
50
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
51
+ main: {
52
+ label: "Event Type",
53
+ type: "text",
19
54
 
20
- options: {
21
- widget: "Box",
55
+ },
56
+ },
57
+ },
58
+ getSelectField("Handler", "Handler", [
59
+ { label: "Custom", value: "custom" },
60
+ { label: "Api", value: "api" },
61
+ { label: "Inbuilt Function", value: "inBuiltFunction" },
62
+ { label: "Refresh", value: "refresh" },
63
+ ]),
64
+ {
65
+ type: "Control",
66
+ scope: "#/properties/EmptyBox",
67
+ options: {
68
+ widget: "EmptyBox",
69
+ },
70
+ config: {
71
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
72
+ },
73
+ },
74
+ ],
22
75
  },
23
- config: {
24
- layout: {xs:12,sm:12,md:2},
25
- main: {
26
- heading: "Component",
76
+ {
77
+ type: "Control",
78
+ scope: "#/properties/events",
79
+ options: {
80
+ widget: "Table",
27
81
  },
28
- style:{
29
- "float":"left",
30
- }
31
- },
82
+ config: {
83
+ main: {
84
+ headerIcons: {
85
+ elements: [
86
+ {
87
+ widget: {
88
+ type: "Control",
89
+ scope: "#/properties/New_Record",
90
+
91
+ options: {
92
+ widget: "IconButton",
93
+ },
94
+ config: {
95
+ main: {
96
+ // color: "info",
97
+ onClick: "addEvent",
98
+ size: "small",
99
+ icon: "AddIcon",
100
+ iconLabel: "Add New",
101
+ styleDefault: true,
102
+ },
103
+ style: {
104
+ mt: "6px",
105
+ },
106
+ },
107
+ }
108
+ },
109
+
110
+ {
111
+ widget: {
112
+ type: "Control",
113
+ scope: "#/properties/Paste_Event",
114
+
115
+ options: {
116
+ widget: "IconButton",
117
+ },
118
+ config: {
119
+ main: {
120
+ // color: "info",
121
+ onClick: "copyPasteElement",
122
+ size: "small",
123
+ icon: "PasteIcon",
124
+ iconLabel: "Paste",
125
+ styleDefault: true,
126
+ },
127
+ style: {
128
+ mt: "6px",
129
+ },
130
+ },
131
+ }
132
+ },
133
+ ]
134
+ },
135
+ disableAction: true,
136
+ disableSelection: true,
137
+ enableDrag: true,
138
+
139
+ },
140
+ },
141
+ elements: [
142
+
143
+ {
144
+ accessorKey: "eventType",
145
+ header: "Event Type",
146
+ },
147
+ {
148
+ accessorKey: "Handler",
149
+ header: "Handler",
150
+ },
151
+ {
152
+ accessorKey: "Edit_Approve_Records",
153
+ header: "Edit Widget",
154
+ widget: {
155
+ type: "Control",
156
+ scope: "#/properties/Edit_Records",
157
+ options: {
158
+ widget: "IconButton",
159
+ },
160
+ config: {
161
+ main: {
162
+ color: "info",
163
+ size: "small",
164
+ icon: "EditIcon",
165
+ tooltipMessage: "Edit This Record",
166
+ onClick: "editEvent",
167
+ },
168
+ style: {
169
+ color: theme.palette.primary.main,
170
+ },
171
+ },
172
+ },
173
+ },
174
+ {
175
+ accessorKey: "Reject_Records",
176
+ header: "Delete",
177
+ widget: {
178
+ type: "Control",
179
+ scope: "#/properties/RejectButton",
180
+ options: {
181
+ widget: "IconButton",
182
+ },
183
+ config: {
184
+ main: {
185
+ icon: "RejectIcon",
186
+ color: "error",
187
+ tooltipMessage: "Reject This Record",
188
+ onClick: "deletePopUpEvent",
189
+ },
190
+ },
191
+ },
192
+ },
193
+
194
+ {
195
+ header: "Copy",
196
+ field: "Copy_Event",
197
+ flex: 1,
198
+ widget: {
199
+ type: "Control",
200
+ scope: "#/properties/Copy_Event",
201
+ options: {
202
+ widget: "IconButton",
203
+ },
204
+ config: {
205
+ main: {
206
+ icon: "FileCopyIcon",
207
+ // color: "error",
208
+ onClick: "copyPasteElement",
209
+ styleDefault: true,
210
+ },
211
+ },
212
+ },
213
+ },
214
+ ]
215
+ // }]
216
+ }
217
+ ],
218
+ },
219
+ {
220
+ type: "HorizontalLayout",
221
+ config: {
222
+ layout:{xs:12,sm: 6}
32
223
  },
33
-
34
- {
35
- type: "Control",
36
- scope: "#/properties/pageName",
37
-
38
- options: {
39
- widget: "Box",
40
- },
41
- config: {
42
- layout: {xs:7,sm:7,md:9},
43
- main: {
44
- heading: " ",
224
+ elements: [
225
+ {
226
+ type: "Control",
227
+ scope: "#/properties/RemoveItemButton",
228
+ options: {
229
+ widget: "IconButton",
45
230
  },
46
- style: {
47
- float: "right",
48
- width:"auto",
49
- fontSize:"12px",
50
- color:"gray",
51
- paddingTop:"10px"
231
+ config: {
232
+ layout: { xs: 1, sm: 1 },
233
+ main: {
234
+ onClick: "RemoveItemButton",
235
+ size: "large",
236
+ icon: "RejectIcon",
237
+ styleDefault: true,
238
+ },
239
+ style:{
240
+ marginLeft: "-10px"
241
+ }
52
242
  },
53
243
  },
54
- },
244
+ {
245
+ type: "Control",
246
+ scope: "#/properties/copiedElementDetails",
55
247
 
56
- {
57
- type: "Control",
58
- scope: "#/properties/Back_Button",
59
-
60
- options: {
61
- widget: "IconButton",
248
+ options: {
249
+ widget: "Box",
250
+ },
251
+ config: {
252
+ layout: { xs: 6, sm: 6 },
253
+ main: {
254
+ heading: "No element copied",
255
+ },
256
+ style: {
257
+ color: "#535557",
258
+ marginLeft: "-10px",
259
+ fontSize: "12px",
260
+ marginTop: "4px"
261
+ },
262
+ },
62
263
  },
63
- config: {
64
- layout: {xs:2,sm:2,md:0.5},
65
- main: {
66
- icon: "BackIcon",
67
- styleDefault: true,
68
- size: "small",
69
- onClick: "backHandler",
70
- tooltipMessage: "Back",
264
+ {
265
+ type: "Control",
266
+ scope: "#/properties/EmptyBox",
267
+ options: {
268
+ widget: "EmptyBox",
71
269
  },
72
- style: {
73
- float: "right",
270
+ config: {
271
+ layout: { xs: 1, sm: 5 },
74
272
  },
75
273
  },
274
+ ]
275
+ },
276
+ {
277
+ type: "Control",
278
+ scope: "#/properties/btn",
279
+ options: {
280
+ widget: "Button",
76
281
  },
77
- ],
78
- },
79
- {
80
- type: "TabLayout",
81
- config: {
82
- main: {
83
- tabLabels: ["Core", "Response Event"],
84
- defaultStyle: true,
85
- id: "event"
282
+
283
+ config: {
284
+ layout: { xs: 4, sm: 2 },
285
+ main: {
286
+ name: "Ok",
287
+ startIcon: "ApproveIcon",
288
+ variant: "contained",
289
+ // color: "info",
290
+ type: "text",
291
+ onClick: "okHandler",
292
+ size: "medium",
293
+ },
294
+ style: {
295
+ float: "right",
296
+ },
86
297
  },
87
298
  },
299
+ {
300
+ type: "Control",
301
+ scope: "#/properties/btnSubmit",
302
+ options: {
303
+ widget: "Button",
304
+ },
88
305
 
89
- elements: [
90
- {
91
- type: "HorizontalLayout",
92
- elements: [
93
- {
94
- type: "Control",
95
- scope: `#/properties/eventType`,
96
-
97
- options: {
98
- widget: "SelectInputField",
99
- },
100
- config: {
101
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
102
- main: {
103
- label: "Event Type",
104
- type: "text",
105
-
106
- },
107
- },
108
- },
109
- getSelectField("Handler", "Handler", [
110
- { label: "Custom", value: "custom" },
111
- { label: "Api", value: "api" },
112
- { label: "Inbuilt Function", value: "inBuiltFunction" },
113
- { label: "Refresh", value: "refresh" },
114
- ]),
115
- ],
306
+ config: {
307
+ layout: { xs: 4, sm: 2 },
308
+ main: {
309
+ name: "Save & Exit",
310
+ startIcon: "ApproveIcon",
311
+ variant: "contained",
312
+ // color: "info",
313
+ type: "text",
314
+ onClick: "saveHandler",
315
+ size: "medium",
316
+ },
317
+ style: {
318
+ float: "right",
319
+ },
116
320
  },
117
- {
118
- type: "WrapperLayout",
119
- config: {
120
- main: {
121
- // label: "Success Case Event",
122
- divider: true,
123
- },
124
- wrapperStyle: {
125
- border: "1px solid gray"
126
- },
321
+ },
322
+ {
323
+ type: "Control",
324
+ scope: "#/properties/popUpEvent",
325
+ options: {
326
+ widget: "PopUp"
327
+ },
328
+ config: {
329
+ layout: {
330
+ xs: 12,
331
+ sm: 12,
332
+ md: 12,
333
+ lg: 12,
127
334
  },
128
- elements: [
335
+ main: {
336
+ title: "WARNING!"
337
+ },
338
+ style: {
339
+ }
340
+ },
341
+ elements:
342
+ [
129
343
  {
130
344
  type: "Control",
131
- scope: "#/properties/heading",
132
-
345
+ scope: "#/properties/popupText",
133
346
  options: {
134
347
  widget: "Box",
135
348
  },
136
349
  config: {
137
- layout: 8,
350
+ layout: 12,
138
351
  main: {
139
- heading: "Response Event",
352
+ heading: "Are you sure you want to delete ?",
140
353
  },
141
- style: {
142
- fontFamily: "Roboto",
143
- fontWeight: "500",
144
- paddingLeft: "-10px",
354
+ style:{
355
+ marginTop: "-20px",
145
356
  fontSize: "20px",
146
- },
147
- },
148
- },
149
- {
150
- type: "Control",
151
- scope: "#/properties/AddButton",
152
- options: {
153
- widget: "IconButton",
154
- },
155
- config: {
156
- layout: 3,
157
- main: {
158
- icon: "AddIcon",
159
- styleDefault: true,
160
- size: "small",
161
- onClick: "addEvent",
162
- tooltipMessage: "Back",
163
- },
164
- style: {
165
- float: "right",
166
- },
357
+ "&.MuiTypography-root": {
358
+ padding: "10px 30px 20px 30px",
359
+ textAlign: "center",
360
+ lineHeight: "1"
361
+ }
362
+ }
167
363
  },
168
364
  },
169
-
170
365
  {
171
- type: "Control",
172
- scope: "#/properties/events",
173
- options: {
174
- widget: "Table",
175
- },
366
+ type: "WrapperLayout",
176
367
  config: {
177
- main: {
178
- disableAction: true,
179
- disableSelection: true,
180
- enableDrag: true,
181
-
182
- },
368
+ layout: 12,
369
+ main: {},
370
+
183
371
  },
184
372
  elements: [
185
-
186
- {
187
- accessorKey: "eventType",
188
- header: "Event Type",
189
- },
190
373
  {
191
- accessorKey: "Handler",
192
- header: "Handler",
193
- },
194
- {
195
- accessorKey: "Edit_Approve_Records",
196
- header: "Edit Widget",
197
- widget: {
198
- type: "Control",
199
- scope: "#/properties/Edit_Records",
200
- options: {
201
- widget: "IconButton",
202
- },
203
- config: {
204
- main: {
205
- color: "info",
206
- size: "small",
207
- icon: "EditIcon",
208
- tooltipMessage: "Edit This Record",
209
- onClick: "editEvent",
210
- },
211
- style: {
212
- color: "#3949ab",
213
- },
374
+ type: "Control",
375
+ scope: "#/properties/CancelDeleteEventButton",
376
+ options: {
377
+ widget: "Button",
378
+ },
379
+ config: {
380
+ layout: 6,
381
+ main: {
382
+ name: "No",
383
+ startIcon: "ApproveIcon",
384
+ variant: "contained",
385
+ color: "info",
386
+ type: "text",
387
+ onClick: "deletePopUpEvent",
388
+ size: "large",
214
389
  },
390
+ style: {
391
+ position: "absolute",
392
+ bottom: 0,
393
+ left: 0,
394
+ width: "50%",
395
+ borderRadius: 0,
396
+ boxShadow: 0,
397
+ backgroundColor: "transparent",
398
+ color: theme.palette.primary.main,
399
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
400
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
401
+ "&:hover": {
402
+ color: theme.palette.primary.contrastText,
403
+ backgroundColor: theme.palette.primary.main,
404
+ boxShadow: "none"
405
+ }
406
+ }
215
407
  },
216
408
  },
217
409
  {
218
- accessorKey: "Reject_Records",
219
- header: "Delete",
220
- widget: {
221
- type: "Control",
222
- scope: "#/properties/RejectButton",
223
- options: {
224
- widget: "IconButton",
225
- },
226
- config: {
227
- main: {
228
- icon: "RejectIcon",
229
- color: "error",
230
- tooltipMessage: "Reject This Record",
231
- onClick: "deleteEvent",
232
- },
410
+ type: "Control",
411
+ scope: "#/properties/ConfirmDeleteEventButton",
412
+ options: {
413
+ widget: "Button",
414
+ },
415
+ config: {
416
+ layout: 6,
417
+ main: {
418
+ name: "Yes",
419
+ startIcon: "ApproveIcon",
420
+ variant: "contained",
421
+ color: "error",
422
+ type: "text",
423
+ onClick: "deleteEvent",
424
+ size: "large",
233
425
  },
426
+ style: {
427
+ position: "absolute",
428
+ bottom: 0,
429
+ right: 0,
430
+ width: "50%",
431
+ borderRadius: 0,
432
+ boxShadow: 0,
433
+ backgroundColor: "transparent",
434
+ color: theme.palette.error.main,
435
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
436
+ "&:hover": {
437
+ color: theme.palette.error.contrastText,
438
+ backgroundColor: theme.palette.error.main,
439
+ boxShadow: "none"
440
+ }
441
+ }
234
442
  },
235
443
  },
236
444
  ]
237
- }]
238
- }
239
- ],
240
- },
241
- {
242
- type: "Control",
243
- scope: "#/properties/proc",
244
- config: {
245
- layout: { xs: 11, sm: 11, md: 6, lg: 6 },
246
- },
247
- options: {
248
- widget: "EmptyBox",
249
- },
250
- },
251
- {
252
- type: "Control",
253
- scope: "#/properties/btn",
254
- options: {
255
- widget: "Button",
445
+ },
446
+ ]
256
447
  },
257
-
258
- config: {
259
- layout: {
260
- xs: 11,
261
- sm: 11,
262
- md: 2.5,
263
- lg: 2.5,
264
- },
265
- main: {
266
- name: "Ok",
267
- startIcon: "ApproveIcon",
268
- variant: "contained",
269
- color: "info",
270
- type: "text",
271
- onClick: "okHandler",
272
- size: "small",
448
+ {
449
+ type: "Control",
450
+ scope: "#/properties/notify",
451
+ options: {
452
+ widget: "Notify",
273
453
  },
274
- style: {
275
- marginBottom: "8px",
276
- float: "right",
277
- },
278
- },
279
- },
280
- {
281
- type: "Control",
282
- scope: "#/properties/btnSubmit",
283
- options: {
284
- widget: "Button",
454
+ layout: 6,
285
455
  },
286
-
287
- config: {
288
- layout: {
289
- xs: 11,
290
- sm: 11,
291
- md: 2.5,
292
- lg: 2.5,
293
- },
294
- main: {
295
- name: "Save & Exit",
296
- startIcon: "ApproveIcon",
297
- variant: "contained",
298
- color: "info",
299
- type: "text",
300
- onClick: "saveHandler",
301
- size: "small",
302
- },
303
- style: {
304
- marginBottom: "8px",
305
- float: "right",
456
+ {
457
+ type: "HorizontalLayout",
458
+ config: {
459
+ main: {
460
+ direction: 'row'
461
+ },
462
+ style: {
463
+ flexDirection: "row",
464
+ position: "absolute",
465
+ bottom: 0,
466
+ marginBottom: '-8px',
467
+ height: 'fit-content',
468
+ overflow: 'hidden',
469
+ zIndex: 1000,
470
+ width: 'inherit'
471
+ }
306
472
  },
307
- },
308
- },
309
- {
310
- type: "Control",
311
- scope: "#/properties/notify",
312
- options: {
313
- widget: "Notify",
314
- },
315
- layout: 6,
316
- }
317
- ],
318
- };
473
+ elements: [
474
+ {
475
+
476
+ type: "Control",
477
+ scope: "#/properties/FooterText",
478
+ options: {
479
+ widget: "Box",
480
+ },
481
+ config: {
482
+ main: {
483
+ heading: "Copywriter@ACT21.IO"
484
+ },
485
+ style: {
486
+ color: theme?.palette?.text.disabled || "#AFAFAF",
487
+ fontSize: '12px',
488
+ textAlign: 'center',
489
+ lineHeight: 2,
490
+ width: 'fit-content',
491
+ left: '50%',
492
+ position: 'relative',
493
+ margin: 0,
494
+ flexGrow: 1,
495
+ height: 0,
496
+ transform: "translate(-50%,0%)"
497
+ }
498
+ },
499
+ },
500
+ {
501
+ type: "Control",
502
+ scope: "#/properties/backIcon",
503
+ options: {
504
+ widget: "Box",
505
+ },
506
+ config: {
507
+ main: {
508
+ iconName: 'PrevIcon',
509
+ onClick: "backHandler",
510
+ width: 'fit-content',
511
+ },
512
+ style: {
513
+ fill: theme.palette.primary.main,
514
+ width: 20,
515
+ height: 0,
516
+ margin: 0,
517
+ top: 0,
518
+ right: {xs: '12px', sm: '84px'},
519
+ position: 'absolute',
520
+ fontSize: '12px',
521
+ cursor: 'pointer',
522
+ ':hover': {
523
+ fill: theme.palette.primary.dark,
524
+ }
525
+ }
526
+ }
527
+ },
528
+ {
529
+ type: "Control",
530
+ scope: "#/properties/text",
531
+
532
+ options: {
533
+ widget: "Box",
534
+ },
535
+ config: {
536
+ main: {
537
+ heading: "Previous Page",
538
+ onClick: "backHandler"
539
+ },
540
+ style: {
541
+ display: {xs: 'none', sm: "flex"},
542
+ textAlign: 'left',
543
+ lineHeight: 1,
544
+ height: 0,
545
+ width: 'fit-content',
546
+ color: theme.palette.primary.main,
547
+ fontSize: "12px",
548
+ cursor: 'pointer',
549
+ marginLeft: '2px',
550
+ marginRight: 0,
551
+ top: 3,
552
+ right: '12px',
553
+ position: 'absolute',
554
+ ':hover': {
555
+ color: theme.palette.primary.dark,
556
+ }
557
+ }
558
+ },
559
+ },
560
+ ]
561
+ }
562
+ ],
563
+ };
564
+ return uiSchema;
565
+ }