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