impaktapps-ui-builder 0.0.412 → 0.0.592

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