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
@@ -41,395 +41,602 @@ const PageMasterSchema = {
41
41
  }
42
42
  }
43
43
  },
44
- required: ["template", "name"]
44
+ required: ["template", "name", "label"]
45
45
  };
46
- const PageMasterUiSchema = {
47
- type: "HorizontalLayout",
48
- elements: [
49
- {
50
- type: "WrapperLayout",
51
- config: {
52
- main: {
53
- rowSpacing: 1,
54
- header: true
55
- },
56
- defaultStyle: true
57
- },
58
- elements: [
59
- {
60
- type: "Control",
61
- scope: "#/properties/pageMaster",
62
- options: {
63
- widget: "Box"
64
- },
65
- config: {
66
- layout: 8,
67
- main: {
68
- heading: "Page Master"
69
- }
46
+ const PageMasterUiSchema = (theme) => {
47
+ var _a;
48
+ const uiSchema = {
49
+ type: "HorizontalLayout",
50
+ heading: "Page Master",
51
+ elements: [
52
+ {
53
+ type: "WrapperLayout",
54
+ config: {
55
+ main: {},
56
+ wrapperStyle: {
57
+ marginLeft: theme.spacing(2),
58
+ backgroundColor: theme.palette.background.default
70
59
  }
71
60
  },
72
- {
73
- type: "Control",
74
- scope: "#/properties/Back_Button",
75
- options: {
76
- widget: "IconButton"
77
- },
78
- config: {
79
- layout: 3,
80
- main: {
81
- icon: "BackIcon",
82
- styleDefault: true,
83
- size: "small",
84
- onClick: "backHandler",
85
- tooltipMessage: "Back"
61
+ elements: [
62
+ {
63
+ type: "Control",
64
+ scope: "#/properties/name",
65
+ options: {
66
+ widget: "InputField"
86
67
  },
87
- style: {
88
- float: "right"
68
+ config: {
69
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
70
+ main: {
71
+ label: "Name",
72
+ options: [],
73
+ color: "secondary",
74
+ errorMessage: "Name should be start with 'page_'",
75
+ helperText: 'Name should be start with "page_"',
76
+ required: true
77
+ }
89
78
  }
90
- }
91
- }
92
- ]
93
- },
94
- {
95
- type: "WrapperLayout",
96
- config: {
97
- main: {
98
- label: "Page Template",
99
- divider: true
100
- },
101
- defaultStyle: true
102
- },
103
- elements: [
104
- {
105
- type: "Control",
106
- scope: "#/properties/name",
107
- options: {
108
- widget: "InputField"
109
79
  },
110
- config: {
111
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
112
- main: {
113
- label: "Name",
114
- options: [],
115
- color: "secondary",
116
- errorMessage: "Name should be start with 'page_'",
117
- helperText: 'Name should be start with "page_"',
118
- required: true
80
+ {
81
+ type: "Control",
82
+ scope: "#/properties/template",
83
+ options: {
84
+ widget: "SelectInputField"
85
+ },
86
+ config: {
87
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
88
+ main: {
89
+ label: "Template",
90
+ options: [
91
+ { const: "template1", title: "template1" },
92
+ { const: "template2", title: "template2" },
93
+ { const: "template3", title: "template3" }
94
+ ],
95
+ color: "secondary",
96
+ required: true
97
+ }
119
98
  }
120
- }
121
- },
122
- {
123
- type: "Control",
124
- scope: "#/properties/template",
125
- options: {
126
- widget: "SelectInputField"
127
99
  },
128
- config: {
129
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
130
- main: {
131
- label: "Template",
132
- options: [
133
- { const: "template1", title: "template1" },
134
- { const: "template2", title: "template2" },
135
- { const: "template3", title: "template3" }
136
- ],
137
- color: "secondary",
138
- required: true
100
+ {
101
+ type: "Control",
102
+ scope: "#/properties/label",
103
+ options: {
104
+ widget: "InputField"
105
+ },
106
+ config: {
107
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
108
+ main: {
109
+ label: "Label",
110
+ options: [],
111
+ color: "secondary",
112
+ required: true
113
+ }
139
114
  }
140
115
  }
141
- }
142
- ]
143
- },
144
- {
145
- type: "TabLayout",
146
- config: {
147
- main: {
148
- tabLabels: ["Components", "events"],
149
- divider: true
150
- },
151
- defaultStyle: true
116
+ ]
152
117
  },
153
- elements: [
154
- {
155
- type: "WrapperLayout",
156
- config: {
157
- main: {
158
- divider: true
159
- },
160
- wrapperStyle: {
161
- border: "1px solid gray"
162
- }
118
+ {
119
+ type: "TabLayout",
120
+ config: {
121
+ main: {
122
+ tabLabels: ["Components", "events"],
123
+ divider: true
163
124
  },
164
- elements: [
165
- {
166
- type: "Control",
167
- scope: "#/properties/heading",
168
- options: {
169
- widget: "Box"
170
- },
171
- config: {
172
- layout: 8,
173
- main: {
174
- heading: "Components Table"
175
- },
176
- style: {
177
- fontFamily: "Roboto",
178
- fontWeight: "500",
179
- paddingLeft: "-10px",
180
- fontSize: "20px"
181
- }
182
- }
125
+ defaultStyle: true
126
+ },
127
+ elements: [
128
+ {
129
+ type: "Control",
130
+ scope: "#/properties/elements",
131
+ options: {
132
+ widget: "Table"
183
133
  },
184
- {
185
- type: "Control",
186
- scope: "#/properties/AddButton",
187
- options: {
188
- widget: "IconButton"
189
- },
190
- config: {
191
- layout: 3,
192
- main: {
193
- icon: "AddIcon",
194
- styleDefault: true,
195
- size: "small",
196
- onClick: "onAddClickHandler",
197
- tooltipMessage: "Add New"
134
+ config: {
135
+ main: {
136
+ headerIcons: {
137
+ elements: [
138
+ {
139
+ widget: {
140
+ type: "Control",
141
+ scope: "#/properties/New_Record",
142
+ options: {
143
+ widget: "IconButton"
144
+ },
145
+ config: {
146
+ main: {
147
+ onClick: "onAddClickHandler",
148
+ size: "small",
149
+ icon: "AddIcon",
150
+ iconLabel: "Add New",
151
+ styleDefault: true
152
+ },
153
+ style: {
154
+ mt: "6px"
155
+ }
156
+ }
157
+ }
158
+ }
159
+ ]
198
160
  },
199
- style: {
200
- float: "right"
201
- }
161
+ disableAction: true,
162
+ disableSelection: true,
163
+ enableDrag: true
202
164
  }
203
165
  },
204
- {
205
- type: "Control",
206
- scope: "#/properties/elements",
207
- options: {
208
- widget: "Table"
166
+ elements: [
167
+ {
168
+ accessorKey: "name",
169
+ header: "Name"
209
170
  },
210
- config: {
211
- main: {
212
- disableAction: true,
213
- disableSelection: true,
214
- enableDrag: true
215
- }
171
+ {
172
+ accessorKey: "type",
173
+ header: "Type"
216
174
  },
217
- elements: [
218
- {
219
- accessorKey: "name",
220
- header: "Name"
221
- },
222
- {
223
- accessorKey: "type",
224
- header: "Type"
225
- },
226
- {
227
- header: "Edit",
228
- field: "Reject_Records",
229
- flex: 1,
230
- widget: {
231
- type: "Control",
232
- scope: "#/properties/RejectButton",
233
- options: {
234
- widget: "IconButton"
235
- },
236
- config: {
237
- main: {
238
- icon: "EditIcon",
239
- color: "primary",
240
- onClick: "Edit_Components",
241
- tooltipMessage: "Edit This Record"
242
- }
243
- }
244
- }
245
- },
246
- {
247
- header: "Delete",
248
- field: "Reject_Records",
249
- flex: 1,
250
- widget: {
251
- type: "Control",
252
- scope: "#/properties/RejectButton",
253
- options: {
254
- widget: "IconButton"
175
+ {
176
+ header: "Edit",
177
+ field: "Reject_Records",
178
+ flex: 1,
179
+ widget: {
180
+ type: "Control",
181
+ scope: "#/properties/RejectButton",
182
+ options: {
183
+ widget: "IconButton"
184
+ },
185
+ config: {
186
+ main: {
187
+ icon: "EditIcon",
188
+ color: "primary",
189
+ onClick: "Edit_Components",
190
+ tooltipMessage: "Edit This Record"
255
191
  },
256
- config: {
257
- main: {
258
- icon: "RejectIcon",
259
- color: "error",
260
- onClick: "Delete_Components",
261
- tooltipMessage: "Reject This Record"
262
- }
192
+ style: {
193
+ color: theme.palette.primary.main
263
194
  }
264
195
  }
265
196
  }
266
- ]
267
- }
268
- ]
269
- },
270
- {
271
- type: "WrapperLayout",
272
- config: {
273
- main: {
274
- divider: true
275
- },
276
- wrapperStyle: {
277
- border: "1px solid gray"
278
- }
279
- },
280
- elements: [
281
- {
282
- type: "Control",
283
- scope: "#/properties/heading",
284
- options: {
285
- widget: "Box"
286
197
  },
287
- config: {
288
- layout: 8,
289
- main: {
290
- heading: "Event Table"
291
- },
292
- style: {
293
- fontFamily: "Roboto",
294
- fontWeight: "500",
295
- paddingLeft: "-10px",
296
- fontSize: "20px"
198
+ {
199
+ header: "Delete",
200
+ field: "Reject_Records",
201
+ flex: 1,
202
+ widget: {
203
+ type: "Control",
204
+ scope: "#/properties/RejectButton",
205
+ options: {
206
+ widget: "IconButton"
207
+ },
208
+ config: {
209
+ main: {
210
+ icon: "RejectIcon",
211
+ color: "error",
212
+ onClick: "deletePopUpComponent",
213
+ tooltipMessage: "Reject This Record"
214
+ }
215
+ }
297
216
  }
298
217
  }
218
+ ]
219
+ },
220
+ {
221
+ type: "Control",
222
+ scope: "#/properties/events",
223
+ options: {
224
+ widget: "Table"
299
225
  },
300
- {
301
- type: "Control",
302
- scope: "#/properties/AddButton",
303
- options: {
304
- widget: "IconButton"
305
- },
306
- config: {
307
- layout: 3,
308
- main: {
309
- icon: "AddIcon",
310
- styleDefault: true,
311
- size: "small",
312
- onClick: "eventAddHandler",
313
- tooltipMessage: "Back"
226
+ config: {
227
+ main: {
228
+ headerIcons: {
229
+ elements: [
230
+ {
231
+ widget: {
232
+ type: "Control",
233
+ scope: "#/properties/New_Record",
234
+ options: {
235
+ widget: "IconButton"
236
+ },
237
+ config: {
238
+ main: {
239
+ onClick: "eventAddHandler",
240
+ size: "small",
241
+ icon: "AddIcon",
242
+ iconLabel: "Add New",
243
+ styleDefault: true
244
+ },
245
+ style: {
246
+ mt: "6px"
247
+ }
248
+ }
249
+ }
250
+ }
251
+ ]
314
252
  },
315
- style: {
316
- float: "right"
317
- }
253
+ disableAction: true,
254
+ disableSelection: true,
255
+ enableDrag: true
318
256
  }
319
257
  },
320
- {
321
- type: "Control",
322
- scope: "#/properties/events",
323
- options: {
324
- widget: "Table"
258
+ elements: [
259
+ {
260
+ accessorKey: "eventType",
261
+ header: "Event Type"
325
262
  },
326
- config: {
327
- main: {
328
- disableAction: true,
329
- disableSelection: true,
330
- enableDrag: true
331
- }
263
+ {
264
+ accessorKey: "Handler",
265
+ header: "Handler"
332
266
  },
333
- elements: [
334
- {
335
- accessorKey: "eventType",
336
- header: "Event Type"
337
- },
338
- {
339
- accessorKey: "Handler",
340
- header: "Handler"
341
- },
342
- {
343
- accessorKey: "Edit_Approve_Records",
344
- header: "Edit Widget",
345
- widget: {
346
- type: "Control",
347
- scope: "#/properties/Edit_Records",
348
- options: {
349
- widget: "IconButton"
267
+ {
268
+ accessorKey: "Edit_Approve_Records",
269
+ header: "Edit Widget",
270
+ widget: {
271
+ type: "Control",
272
+ scope: "#/properties/Edit_Records",
273
+ options: {
274
+ widget: "IconButton"
275
+ },
276
+ config: {
277
+ main: {
278
+ color: "info",
279
+ size: "small",
280
+ icon: "EditIcon",
281
+ tooltipMessage: "Edit This Record",
282
+ onClick: "editEvent"
350
283
  },
351
- config: {
352
- main: {
353
- color: "info",
354
- size: "small",
355
- icon: "EditIcon",
356
- tooltipMessage: "Edit This Record",
357
- onClick: "editEvent"
358
- },
359
- style: {
360
- color: "#3949ab"
361
- }
284
+ style: {
285
+ color: theme.palette.primary.main
362
286
  }
363
287
  }
364
- },
365
- {
366
- accessorKey: "Reject_Records",
367
- header: "Delete",
368
- widget: {
369
- type: "Control",
370
- scope: "#/properties/RejectButton",
371
- options: {
372
- widget: "IconButton"
373
- },
374
- config: {
375
- main: {
376
- icon: "RejectIcon",
377
- color: "error",
378
- tooltipMessage: "Reject This Record",
379
- onClick: "deleteEvent"
380
- }
288
+ }
289
+ },
290
+ {
291
+ accessorKey: "Reject_Records",
292
+ header: "Delete",
293
+ widget: {
294
+ type: "Control",
295
+ scope: "#/properties/RejectButton",
296
+ options: {
297
+ widget: "IconButton"
298
+ },
299
+ config: {
300
+ main: {
301
+ icon: "RejectIcon",
302
+ color: "error",
303
+ tooltipMessage: "Reject This Record",
304
+ onClick: "deletePopUpEvent"
381
305
  }
382
306
  }
383
307
  }
384
- ]
385
- }
386
- ]
308
+ }
309
+ ]
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ type: "Control",
315
+ scope: "#/properties/btn",
316
+ options: {
317
+ widget: "EmptyBox"
318
+ },
319
+ config: {
320
+ layout: { xs: 0, sm: 8, md: 8, lg: 8 }
387
321
  }
388
- ]
389
- },
390
- {
391
- type: "Control",
392
- scope: "#/properties/btn",
393
- options: {
394
- widget: "EmptyBox"
395
322
  },
396
- config: {
397
- layout: { xs: 0, sm: 0, md: 8, lg: 7 }
398
- }
399
- },
400
- {
401
- type: "Control",
402
- scope: "#/properties/btn",
403
- options: {
404
- widget: "Button"
405
- },
406
- config: {
407
- layout: 11.7,
408
- main: {
409
- name: "Save",
410
- startIcon: "ApproveIcon",
411
- variant: "contained",
412
- color: "info",
413
- type: "text",
414
- onClick: "saveHandler",
415
- size: "small"
323
+ {
324
+ type: "Control",
325
+ scope: "#/properties/btn",
326
+ options: {
327
+ widget: "Button"
416
328
  },
417
- style: {
418
- marginBottom: "8px",
419
- width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
420
- float: "right"
329
+ config: {
330
+ layout: 11.9,
331
+ main: {
332
+ name: "Save",
333
+ startIcon: "ApproveIcon",
334
+ variant: "contained",
335
+ type: "text",
336
+ onClick: "saveHandler",
337
+ size: "medium"
338
+ },
339
+ style: {
340
+ width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
341
+ float: "right"
342
+ }
421
343
  }
422
- }
423
- },
424
- {
425
- type: "Control",
426
- scope: "#/properties/notify",
427
- options: {
428
- widget: "Notify"
429
344
  },
430
- layout: 6
431
- }
432
- ]
345
+ {
346
+ type: "Control",
347
+ scope: "#/properties/popUpPageMasterComponent",
348
+ options: {
349
+ widget: "PopUp"
350
+ },
351
+ config: {
352
+ layout: {
353
+ xs: 12,
354
+ sm: 12,
355
+ md: 6,
356
+ lg: 6
357
+ },
358
+ main: {},
359
+ style: {
360
+ "& .MuiPaper-root": {
361
+ width: "30%"
362
+ },
363
+ "& .MuiTypography-root": {
364
+ padding: 0
365
+ }
366
+ }
367
+ },
368
+ elements: [
369
+ {
370
+ type: "Control",
371
+ scope: "#/properties/label",
372
+ options: {
373
+ widget: "Box"
374
+ },
375
+ config: {
376
+ layout: 12,
377
+ main: {
378
+ heading: "Are you sure you want to delete ?"
379
+ },
380
+ style: {
381
+ marginTop: "-40px"
382
+ }
383
+ }
384
+ },
385
+ {
386
+ type: "Control",
387
+ scope: "#/properties/EmptyBox",
388
+ options: {
389
+ widget: "EmptyBox"
390
+ },
391
+ config: {
392
+ main: {},
393
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
394
+ }
395
+ },
396
+ {
397
+ type: "Control",
398
+ scope: "#/properties/ConfirmDeleteCompButton",
399
+ options: {
400
+ widget: "Button"
401
+ },
402
+ config: {
403
+ layout: 3,
404
+ main: {
405
+ name: "Yes",
406
+ startIcon: "ApproveIcon",
407
+ variant: "contained",
408
+ color: "info",
409
+ type: "text",
410
+ onClick: "Delete_Components",
411
+ size: "small"
412
+ }
413
+ }
414
+ },
415
+ {
416
+ type: "Control",
417
+ scope: "#/properties/CancelDeleteCompButton",
418
+ options: {
419
+ widget: "Button"
420
+ },
421
+ config: {
422
+ layout: 3,
423
+ main: {
424
+ name: "No",
425
+ startIcon: "ApproveIcon",
426
+ variant: "contained",
427
+ color: "info",
428
+ type: "text",
429
+ onClick: "deletePopUpComponent",
430
+ size: "small"
431
+ }
432
+ }
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ type: "Control",
438
+ scope: "#/properties/popUpPageMasterEvent",
439
+ options: {
440
+ widget: "PopUp"
441
+ },
442
+ config: {
443
+ layout: {
444
+ xs: 12,
445
+ sm: 12,
446
+ md: 6,
447
+ lg: 6
448
+ },
449
+ main: {},
450
+ style: {
451
+ "& .MuiPaper-root": {
452
+ width: "30%"
453
+ },
454
+ "& .MuiTypography-root": {
455
+ padding: 0
456
+ }
457
+ }
458
+ },
459
+ elements: [
460
+ {
461
+ type: "Control",
462
+ scope: "#/properties/label",
463
+ options: {
464
+ widget: "Box"
465
+ },
466
+ config: {
467
+ layout: 12,
468
+ main: {
469
+ heading: "Are you sure you want to delete ?"
470
+ },
471
+ style: {
472
+ marginTop: "-40px"
473
+ }
474
+ }
475
+ },
476
+ {
477
+ type: "Control",
478
+ scope: "#/properties/EmptyBox",
479
+ options: {
480
+ widget: "EmptyBox"
481
+ },
482
+ config: {
483
+ main: {},
484
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
485
+ }
486
+ },
487
+ {
488
+ type: "Control",
489
+ scope: "#/properties/ConfirmDeleteEventButton",
490
+ options: {
491
+ widget: "Button"
492
+ },
493
+ config: {
494
+ layout: 3,
495
+ main: {
496
+ name: "Yes",
497
+ startIcon: "ApproveIcon",
498
+ variant: "contained",
499
+ color: "info",
500
+ type: "text",
501
+ onClick: "deleteEvent",
502
+ size: "small"
503
+ }
504
+ }
505
+ },
506
+ {
507
+ type: "Control",
508
+ scope: "#/properties/CancelDeleteEventButton",
509
+ options: {
510
+ widget: "Button"
511
+ },
512
+ config: {
513
+ layout: 3,
514
+ main: {
515
+ name: "No",
516
+ startIcon: "ApproveIcon",
517
+ variant: "contained",
518
+ color: "error",
519
+ type: "text",
520
+ onClick: "deletePopUpEvent",
521
+ size: "small"
522
+ }
523
+ }
524
+ }
525
+ ]
526
+ },
527
+ {
528
+ type: "Control",
529
+ scope: "#/properties/notify",
530
+ options: {
531
+ widget: "Notify"
532
+ },
533
+ layout: 6
534
+ },
535
+ {
536
+ type: "HorizontalLayout",
537
+ config: {
538
+ main: {
539
+ direction: "row"
540
+ },
541
+ style: {
542
+ flexDirection: "row",
543
+ position: "absolute",
544
+ bottom: 0,
545
+ marginBottom: "-8px",
546
+ height: "fit-content",
547
+ overflow: "hidden",
548
+ zIndex: 1e3,
549
+ width: "inherit"
550
+ }
551
+ },
552
+ elements: [
553
+ {
554
+ type: "Control",
555
+ scope: "#/properties/FooterText",
556
+ options: {
557
+ widget: "Box"
558
+ },
559
+ config: {
560
+ main: {
561
+ heading: "Copywriter@ACT21.IO"
562
+ },
563
+ style: {
564
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
565
+ fontSize: "12px",
566
+ textAlign: "center",
567
+ lineHeight: 1,
568
+ width: "fit-content",
569
+ left: "50%",
570
+ position: "relative",
571
+ margin: 0,
572
+ flexGrow: 1,
573
+ height: 0
574
+ }
575
+ }
576
+ },
577
+ {
578
+ type: "Control",
579
+ scope: "#/properties/backIcon",
580
+ options: {
581
+ widget: "Box"
582
+ },
583
+ config: {
584
+ main: {
585
+ iconName: "PrevIcon",
586
+ onClick: "backHandler",
587
+ width: "fit-content"
588
+ },
589
+ style: {
590
+ fill: theme.palette.primary.main,
591
+ width: 20,
592
+ height: 0,
593
+ margin: 0,
594
+ top: 0,
595
+ right: "82px",
596
+ position: "absolute",
597
+ fontSize: "12px",
598
+ cursor: "pointer",
599
+ ":hover": {
600
+ fill: theme.palette.primary.dark
601
+ }
602
+ }
603
+ }
604
+ },
605
+ {
606
+ type: "Control",
607
+ scope: "#/properties/text",
608
+ options: {
609
+ widget: "Box"
610
+ },
611
+ config: {
612
+ main: {
613
+ heading: "Previous Page",
614
+ onClick: "backHandler"
615
+ },
616
+ style: {
617
+ textAlign: "left",
618
+ lineHeight: 1,
619
+ height: 0,
620
+ width: "fit-content",
621
+ color: theme.palette.primary.main,
622
+ fontSize: "12px",
623
+ cursor: "pointer",
624
+ marginLeft: "2px",
625
+ marginRight: 0,
626
+ top: 3,
627
+ right: "12px",
628
+ position: "absolute",
629
+ ":hover": {
630
+ color: theme.palette.primary.dark
631
+ }
632
+ }
633
+ }
634
+ }
635
+ ]
636
+ }
637
+ ]
638
+ };
639
+ return uiSchema;
433
640
  };
434
641
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
435
642
  var lodash = { exports: {} };
@@ -5911,8 +6118,6 @@ const ComponentSchema = {
5911
6118
  { title: "Text Area", const: "TextArea" },
5912
6119
  { title: "Timer", const: "Timer" },
5913
6120
  { title: "Upload File", const: "UploadFile" },
5914
- { title: "Timer", const: "Timer" },
5915
- { title: "Upload File", const: "UploadFile" },
5916
6121
  { title: "TreeMap", const: "TreeMap" },
5917
6122
  { title: "ColumnGroup", const: "ColumnGroup" }
5918
6123
  ]
@@ -6176,303 +6381,534 @@ const ComponentSchema = {
6176
6381
  },
6177
6382
  required: ["name"]
6178
6383
  };
6179
- const componentBasicUiSchema = {
6180
- type: "HorizontalLayout",
6181
- elements: [
6182
- {
6183
- type: "WrapperLayout",
6184
- config: {
6185
- main: {
6186
- rowSpacing: 1,
6187
- header: true
6188
- },
6189
- defaultStyle: true
6190
- },
6191
- elements: [
6192
- {
6193
- type: "Control",
6194
- scope: "#/properties/Component",
6195
- options: {
6196
- widget: "Box"
6197
- },
6198
- config: {
6199
- layout: { xs: 12, sm: 12, md: 2 },
6200
- main: {
6201
- heading: "Component"
6202
- },
6203
- style: {
6204
- "float": "left"
6205
- }
6206
- }
6207
- },
6208
- {
6209
- type: "Control",
6210
- scope: "#/properties/pageName",
6211
- options: {
6212
- widget: "Box"
6213
- },
6214
- config: {
6215
- layout: { xs: 7, sm: 7, md: 9 },
6216
- main: {
6217
- heading: " "
6218
- },
6219
- style: {
6220
- float: "right",
6221
- width: "auto",
6222
- fontSize: "12px",
6223
- color: "gray",
6224
- paddingTop: "10px"
6225
- }
6226
- }
6384
+ const componentBasicUiSchema = (theme) => {
6385
+ var _a;
6386
+ const uiSchema = {
6387
+ type: "HorizontalLayout",
6388
+ heading: "Component",
6389
+ elements: [
6390
+ {
6391
+ type: "Control",
6392
+ scope: "#/properties/pageName",
6393
+ options: {
6394
+ widget: "Box"
6227
6395
  },
6228
- {
6229
- type: "Control",
6230
- scope: "#/properties/Back_Button",
6231
- options: {
6232
- widget: "IconButton"
6396
+ config: {
6397
+ layout: 12,
6398
+ main: {
6399
+ heading: " "
6233
6400
  },
6234
- config: {
6235
- layout: { xs: 2, sm: 2, md: 0.5 },
6236
- main: {
6237
- icon: "BackIcon",
6238
- styleDefault: true,
6239
- size: "small",
6240
- onClick: "backHandler",
6241
- tooltipMessage: "Back"
6242
- },
6243
- style: {
6244
- float: "right"
6245
- }
6401
+ style: {
6402
+ marginLeft: theme.spacing(3),
6403
+ width: "auto",
6404
+ fontSize: "12px",
6405
+ color: "gray"
6246
6406
  }
6247
6407
  }
6248
- ]
6249
- },
6250
- {
6251
- type: "TabLayout",
6252
- config: {
6253
- main: {
6254
- tabLabels: ["Core"],
6255
- defaultStyle: true,
6256
- id: `component`
6257
- }
6258
6408
  },
6259
- elements: [
6260
- {
6261
- type: "HorizontalLayout",
6262
- elements: [
6263
- {
6264
- type: "Control",
6265
- scope: "#/properties/type",
6266
- options: {
6267
- widget: "SelectInputField"
6268
- },
6269
- config: {
6270
- layout: { xs: 12, sm: 12, md: 6, lg: 6 },
6271
- main: {
6272
- label: "Type"
6409
+ {
6410
+ type: "TabLayout",
6411
+ config: {
6412
+ main: {
6413
+ tabLabels: ["Core"],
6414
+ defaultStyle: true,
6415
+ id: `component`
6416
+ }
6417
+ },
6418
+ elements: [
6419
+ {
6420
+ type: "HorizontalLayout",
6421
+ elements: [
6422
+ {
6423
+ type: "Control",
6424
+ scope: "#/properties/type",
6425
+ options: {
6426
+ widget: "SelectInputField"
6427
+ },
6428
+ config: {
6429
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6430
+ main: {
6431
+ label: "Type"
6432
+ }
6273
6433
  }
6274
- }
6275
- },
6276
- {
6277
- type: "Control",
6278
- scope: "#/properties/name",
6279
- options: {
6280
- widget: "InputField"
6281
6434
  },
6282
- config: {
6283
- layout: {
6284
- xs: 12,
6285
- sm: 12,
6286
- md: 6,
6287
- lg: 6
6435
+ {
6436
+ type: "Control",
6437
+ scope: "#/properties/name",
6438
+ options: {
6439
+ widget: "InputField"
6288
6440
  },
6289
- main: {
6290
- label: "Name",
6291
- options: [],
6292
- color: "secondary",
6293
- required: true
6441
+ config: {
6442
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6443
+ main: {
6444
+ label: "Name",
6445
+ options: [],
6446
+ color: "secondary",
6447
+ required: true
6448
+ }
6294
6449
  }
6295
- }
6296
- },
6297
- {
6298
- type: "Control",
6299
- scope: "#/properties/label",
6300
- options: {
6301
- widget: "InputField"
6302
6450
  },
6303
- config: {
6304
- layout: {
6305
- xs: 12,
6306
- sm: 12,
6307
- md: 6,
6308
- lg: 6
6451
+ {
6452
+ type: "Control",
6453
+ scope: "#/properties/label",
6454
+ options: {
6455
+ widget: "InputField"
6309
6456
  },
6310
- main: {
6311
- label: "Label",
6312
- options: [],
6313
- color: "secondary",
6314
- required: true
6457
+ config: {
6458
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6459
+ main: {
6460
+ label: "Label",
6461
+ options: [],
6462
+ color: "secondary",
6463
+ required: true
6464
+ }
6315
6465
  }
6316
- }
6317
- },
6318
- {
6319
- type: "Control",
6320
- scope: "#/properties/columnFormat",
6321
- options: {
6322
- widget: "SelectInputField"
6323
6466
  },
6324
- config: {
6325
- layout: {
6326
- xs: 12,
6327
- sm: 12,
6328
- md: 6,
6329
- lg: 6
6467
+ {
6468
+ type: "Control",
6469
+ scope: "#/properties/columnFormat",
6470
+ options: {
6471
+ widget: "SelectInputField"
6330
6472
  },
6331
- main: {
6332
- label: "Column Format"
6473
+ config: {
6474
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6475
+ main: {
6476
+ label: "Column Format"
6477
+ }
6333
6478
  }
6334
- }
6335
- },
6336
- {
6337
- type: "Control",
6338
- scope: "#/properties/proc",
6339
- config: {
6340
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6341
6479
  },
6342
- options: {
6343
- widget: "EmptyBox"
6344
- }
6345
- },
6346
- {
6347
- type: "Control",
6348
- scope: "#/properties/layout",
6349
- layout: 11.5,
6350
- options: {
6351
- detail: {
6352
- type: "HorizontalLayout",
6353
- elements: [
6354
- {
6355
- type: "Control",
6356
- scope: "#/properties/key",
6357
- options: {
6358
- widget: "SelectInputField"
6480
+ {
6481
+ type: "Control",
6482
+ scope: "#/properties/proc",
6483
+ config: {
6484
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6485
+ },
6486
+ options: {
6487
+ widget: "EmptyBox"
6488
+ }
6489
+ },
6490
+ {
6491
+ type: "Control",
6492
+ scope: "#/properties/proc",
6493
+ config: {
6494
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6495
+ },
6496
+ options: {
6497
+ widget: "EmptyBox"
6498
+ }
6499
+ },
6500
+ {
6501
+ type: "Control",
6502
+ scope: "#/properties/layout",
6503
+ layout: 12,
6504
+ options: {
6505
+ detail: {
6506
+ type: "HorizontalLayout",
6507
+ elements: [
6508
+ {
6509
+ type: "Control",
6510
+ scope: "#/properties/key",
6511
+ options: {
6512
+ widget: "SelectInputField"
6513
+ },
6514
+ config: {
6515
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6516
+ main: {
6517
+ label: "Screen Size"
6518
+ }
6519
+ }
6359
6520
  },
6360
- config: {
6361
- layout: {
6362
- xs: 11,
6363
- sm: 11,
6364
- md: 5.5,
6365
- lg: 5.5
6521
+ {
6522
+ type: "Control",
6523
+ scope: "#/properties/value",
6524
+ options: {
6525
+ widget: "InputField"
6366
6526
  },
6367
- main: {
6368
- label: "Screen Size"
6527
+ config: {
6528
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6529
+ main: {
6530
+ label: "Value",
6531
+ type: "number",
6532
+ helperText: "Number should be in range of 0 to 12",
6533
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6534
+ }
6369
6535
  }
6370
- }
6371
- },
6372
- {
6373
- type: "Control",
6374
- scope: "#/properties/value",
6375
- options: {
6376
- widget: "InputField"
6377
6536
  },
6378
- config: {
6379
- layout: {
6380
- xs: 11,
6381
- sm: 11,
6382
- md: 5.5,
6383
- lg: 5.5
6537
+ {
6538
+ type: "Control",
6539
+ scope: "#/properties/proc",
6540
+ config: {
6541
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6384
6542
  },
6385
- main: {
6386
- label: "Value",
6387
- type: "number",
6388
- helperText: "Number should be in range of 0 to 12",
6389
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6543
+ options: {
6544
+ widget: "EmptyBox"
6390
6545
  }
6391
6546
  }
6392
- }
6393
- ]
6547
+ ]
6548
+ }
6394
6549
  }
6395
6550
  }
6551
+ ]
6552
+ }
6553
+ ]
6554
+ },
6555
+ {
6556
+ type: "Control",
6557
+ scope: "#/properties/popUpComponentSection",
6558
+ options: {
6559
+ widget: "PopUp"
6560
+ },
6561
+ config: {
6562
+ layout: {
6563
+ xs: 12,
6564
+ sm: 12,
6565
+ md: 12,
6566
+ lg: 12
6567
+ },
6568
+ main: {},
6569
+ style: {
6570
+ "& .MuiPaper-root": {
6571
+ width: "30%"
6572
+ },
6573
+ "& .MuiTypography-root": {
6574
+ padding: 0
6396
6575
  }
6397
- ]
6398
- }
6399
- ]
6400
- },
6401
- {
6402
- type: "Control",
6403
- scope: "#/properties/proc",
6404
- config: {
6405
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6576
+ }
6577
+ },
6578
+ elements: [
6579
+ {
6580
+ type: "Control",
6581
+ scope: "#/properties/label",
6582
+ options: {
6583
+ widget: "Box"
6584
+ },
6585
+ config: {
6586
+ layout: 12,
6587
+ main: {
6588
+ heading: "Are you sure you want to delete ?"
6589
+ },
6590
+ style: {
6591
+ marginTop: "-40px"
6592
+ }
6593
+ }
6594
+ },
6595
+ {
6596
+ type: "Control",
6597
+ scope: "#/properties/EmptyBox",
6598
+ options: {
6599
+ widget: "EmptyBox"
6600
+ },
6601
+ config: {
6602
+ main: {},
6603
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6604
+ }
6605
+ },
6606
+ {
6607
+ type: "Control",
6608
+ scope: "#/properties/ConfirmDeleteCompButton",
6609
+ options: {
6610
+ widget: "Button"
6611
+ },
6612
+ config: {
6613
+ layout: 3,
6614
+ main: {
6615
+ name: "Yes",
6616
+ startIcon: "ApproveIcon",
6617
+ variant: "contained",
6618
+ color: "error",
6619
+ type: "text",
6620
+ onClick: "deleteComponents",
6621
+ size: "small"
6622
+ }
6623
+ }
6624
+ },
6625
+ {
6626
+ type: "Control",
6627
+ scope: "#/properties/CancelDeleteCompButton",
6628
+ options: {
6629
+ widget: "Button"
6630
+ },
6631
+ config: {
6632
+ layout: 3,
6633
+ main: {
6634
+ name: "No",
6635
+ startIcon: "ApproveIcon",
6636
+ variant: "contained",
6637
+ color: "info",
6638
+ type: "text",
6639
+ onClick: "deletePopUpComponent",
6640
+ size: "small"
6641
+ }
6642
+ }
6643
+ }
6644
+ ]
6406
6645
  },
6407
- options: {
6408
- widget: "EmptyBox"
6409
- }
6410
- },
6411
- {
6412
- type: "Control",
6413
- scope: "#/properties/btn",
6414
- options: {
6415
- widget: "Button"
6646
+ {
6647
+ type: "Control",
6648
+ scope: "#/properties/popUpEventSection",
6649
+ options: {
6650
+ widget: "PopUp"
6651
+ },
6652
+ config: {
6653
+ layout: {
6654
+ xs: 12,
6655
+ sm: 12,
6656
+ md: 12,
6657
+ lg: 12
6658
+ },
6659
+ main: {},
6660
+ style: {
6661
+ "& .MuiPaper-root": {
6662
+ width: "30%"
6663
+ },
6664
+ "& .MuiTypography-root": {
6665
+ padding: 0
6666
+ }
6667
+ }
6668
+ },
6669
+ elements: [
6670
+ {
6671
+ type: "Control",
6672
+ scope: "#/properties/label",
6673
+ options: {
6674
+ widget: "Box"
6675
+ },
6676
+ config: {
6677
+ layout: 12,
6678
+ main: {
6679
+ heading: "Are you sure you want to delete ?"
6680
+ },
6681
+ style: {
6682
+ marginTop: "-40px"
6683
+ }
6684
+ }
6685
+ },
6686
+ {
6687
+ type: "Control",
6688
+ scope: "#/properties/EmptyBox",
6689
+ options: {
6690
+ widget: "EmptyBox"
6691
+ },
6692
+ config: {
6693
+ main: {},
6694
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6695
+ }
6696
+ },
6697
+ {
6698
+ type: "Control",
6699
+ scope: "#/properties/ConfirmDeleteEventButton",
6700
+ options: {
6701
+ widget: "Button"
6702
+ },
6703
+ config: {
6704
+ layout: 3,
6705
+ main: {
6706
+ name: "Yes",
6707
+ startIcon: "ApproveIcon",
6708
+ variant: "contained",
6709
+ color: "info",
6710
+ type: "text",
6711
+ onClick: "deleteEvent",
6712
+ size: "small"
6713
+ }
6714
+ }
6715
+ },
6716
+ {
6717
+ type: "Control",
6718
+ scope: "#/properties/CancelDeleteEventButton",
6719
+ options: {
6720
+ widget: "Button"
6721
+ },
6722
+ config: {
6723
+ layout: 3,
6724
+ main: {
6725
+ name: "No",
6726
+ startIcon: "ApproveIcon",
6727
+ variant: "contained",
6728
+ color: "info",
6729
+ type: "text",
6730
+ onClick: "deletePopUpEvent",
6731
+ size: "small"
6732
+ }
6733
+ }
6734
+ }
6735
+ ]
6416
6736
  },
6417
- config: {
6418
- layout: {
6419
- xs: 11,
6420
- sm: 11,
6421
- md: 2.5,
6422
- lg: 2.5
6737
+ {
6738
+ type: "Control",
6739
+ scope: "#/properties/EmptyBox",
6740
+ options: {
6741
+ widget: "EmptyBox"
6423
6742
  },
6424
- main: {
6425
- name: "Ok",
6426
- startIcon: "ApproveIcon",
6427
- variant: "contained",
6428
- color: "info",
6429
- type: "text",
6430
- onClick: "okHandler",
6431
- size: "small"
6743
+ config: {
6744
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6745
+ }
6746
+ },
6747
+ {
6748
+ type: "Control",
6749
+ scope: "#/properties/EmptyBox",
6750
+ options: {
6751
+ widget: "EmptyBox"
6432
6752
  },
6433
- style: {
6434
- marginBottom: "8px",
6435
- float: "right"
6753
+ config: {
6754
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6436
6755
  }
6437
- }
6438
- },
6439
- {
6440
- type: "Control",
6441
- scope: "#/properties/btnSubmit",
6442
- options: {
6443
- widget: "Button"
6444
6756
  },
6445
- config: {
6446
- layout: {
6447
- xs: 11,
6448
- sm: 11,
6449
- md: 2.5,
6450
- lg: 2.5
6757
+ {
6758
+ type: "Control",
6759
+ scope: "#/properties/btn",
6760
+ options: {
6761
+ widget: "Button"
6451
6762
  },
6452
- main: {
6453
- name: "Save & Exit",
6454
- startIcon: "ApproveIcon",
6455
- variant: "contained",
6456
- color: "info",
6457
- type: "text",
6458
- onClick: "saveHandler",
6459
- size: "small"
6763
+ config: {
6764
+ layout: 1.8,
6765
+ main: {
6766
+ name: "Ok",
6767
+ startIcon: "ApproveIcon",
6768
+ variant: "contained",
6769
+ type: "text",
6770
+ onClick: "okHandler",
6771
+ size: "medium"
6772
+ },
6773
+ style: {
6774
+ float: "right"
6775
+ }
6776
+ }
6777
+ },
6778
+ {
6779
+ type: "Control",
6780
+ scope: "#/properties/btnSubmit",
6781
+ options: {
6782
+ widget: "Button"
6460
6783
  },
6461
- style: {
6462
- marginBottom: "8px",
6463
- float: "right"
6784
+ config: {
6785
+ layout: 1.8,
6786
+ main: {
6787
+ name: "Save & Exit",
6788
+ startIcon: "ApproveIcon",
6789
+ variant: "contained",
6790
+ type: "text",
6791
+ onClick: "saveHandler",
6792
+ size: "medium"
6793
+ },
6794
+ style: {
6795
+ float: "right"
6796
+ }
6464
6797
  }
6465
- }
6466
- },
6467
- {
6468
- type: "Control",
6469
- scope: "#/properties/notify",
6470
- options: {
6471
- widget: "Notify"
6472
6798
  },
6473
- layout: 6
6474
- }
6475
- ]
6799
+ {
6800
+ type: "Control",
6801
+ scope: "#/properties/notify",
6802
+ options: {
6803
+ widget: "Notify"
6804
+ },
6805
+ layout: 6
6806
+ },
6807
+ {
6808
+ type: "HorizontalLayout",
6809
+ config: {
6810
+ main: {
6811
+ direction: "row"
6812
+ },
6813
+ style: {
6814
+ flexDirection: "row",
6815
+ position: "absolute",
6816
+ bottom: 0,
6817
+ marginBottom: "-8px",
6818
+ height: "fit-content",
6819
+ overflow: "hidden",
6820
+ zIndex: 1e3,
6821
+ width: "inherit"
6822
+ }
6823
+ },
6824
+ elements: [
6825
+ {
6826
+ type: "Control",
6827
+ scope: "#/properties/FooterText",
6828
+ options: {
6829
+ widget: "Box"
6830
+ },
6831
+ config: {
6832
+ main: {
6833
+ heading: "Copywriter@ACT21.IO"
6834
+ },
6835
+ style: {
6836
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
6837
+ fontSize: "12px",
6838
+ textAlign: "center",
6839
+ lineHeight: 1,
6840
+ width: "fit-content",
6841
+ left: "50%",
6842
+ position: "relative",
6843
+ margin: 0,
6844
+ flexGrow: 1,
6845
+ height: 0
6846
+ }
6847
+ }
6848
+ },
6849
+ {
6850
+ type: "Control",
6851
+ scope: "#/properties/backIcon",
6852
+ options: {
6853
+ widget: "Box"
6854
+ },
6855
+ config: {
6856
+ main: {
6857
+ iconName: "PrevIcon",
6858
+ onClick: "backHandler",
6859
+ width: "fit-content"
6860
+ },
6861
+ style: {
6862
+ fill: theme.palette.primary.main,
6863
+ width: 20,
6864
+ height: 0,
6865
+ margin: 0,
6866
+ top: 0,
6867
+ right: "90px",
6868
+ position: "absolute",
6869
+ fontSize: "12px",
6870
+ cursor: "pointer",
6871
+ ":hover": {
6872
+ fill: theme.palette.primary.dark
6873
+ }
6874
+ }
6875
+ }
6876
+ },
6877
+ {
6878
+ type: "Control",
6879
+ scope: "#/properties/text",
6880
+ options: {
6881
+ widget: "Box"
6882
+ },
6883
+ config: {
6884
+ main: {
6885
+ heading: "Previous Page",
6886
+ onClick: "backHandler"
6887
+ },
6888
+ style: {
6889
+ textAlign: "left",
6890
+ lineHeight: 1,
6891
+ height: 0,
6892
+ width: "fit-content",
6893
+ color: theme.palette.primary.main,
6894
+ fontSize: "12px",
6895
+ cursor: "pointer",
6896
+ marginLeft: "2px",
6897
+ marginRight: 0,
6898
+ top: 3,
6899
+ right: "20px",
6900
+ position: "absolute",
6901
+ ":hover": {
6902
+ color: theme.palette.primary.dark
6903
+ }
6904
+ }
6905
+ }
6906
+ }
6907
+ ]
6908
+ }
6909
+ ]
6910
+ };
6911
+ return uiSchema;
6476
6912
  };
6477
6913
  const CoreSection = {
6478
6914
  type: "HorizontalLayout",
@@ -6484,7 +6920,7 @@ const CoreSection = {
6484
6920
  widget: "SelectInputField"
6485
6921
  },
6486
6922
  config: {
6487
- layout: { xs: 12, sm: 12, md: 6, lg: 6 },
6923
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6488
6924
  main: {
6489
6925
  label: "Type",
6490
6926
  type: "text"
@@ -6498,12 +6934,7 @@ const CoreSection = {
6498
6934
  widget: "InputField"
6499
6935
  },
6500
6936
  config: {
6501
- layout: {
6502
- xs: 12,
6503
- sm: 12,
6504
- md: 6,
6505
- lg: 6
6506
- },
6937
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6507
6938
  main: {
6508
6939
  label: "Name"
6509
6940
  }
@@ -6516,12 +6947,7 @@ const CoreSection = {
6516
6947
  widget: "InputField"
6517
6948
  },
6518
6949
  config: {
6519
- layout: {
6520
- xs: 12,
6521
- sm: 12,
6522
- md: 6,
6523
- lg: 6
6524
- },
6950
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6525
6951
  main: {
6526
6952
  label: "Label"
6527
6953
  }
@@ -6534,12 +6960,7 @@ const CoreSection = {
6534
6960
  widget: "SelectInputField"
6535
6961
  },
6536
6962
  config: {
6537
- layout: {
6538
- xs: 12,
6539
- sm: 12,
6540
- md: 6,
6541
- lg: 6
6542
- },
6963
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6543
6964
  main: {
6544
6965
  label: "Column Format"
6545
6966
  }
@@ -6549,7 +6970,17 @@ const CoreSection = {
6549
6970
  type: "Control",
6550
6971
  scope: "#/properties/proc",
6551
6972
  config: {
6552
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6973
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6974
+ },
6975
+ options: {
6976
+ widget: "EmptyBox"
6977
+ }
6978
+ },
6979
+ {
6980
+ type: "Control",
6981
+ scope: "#/properties/proc",
6982
+ config: {
6983
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6553
6984
  },
6554
6985
  options: {
6555
6986
  widget: "EmptyBox"
@@ -6558,7 +6989,7 @@ const CoreSection = {
6558
6989
  {
6559
6990
  type: "Control",
6560
6991
  scope: "#/properties/layout",
6561
- layout: 11.5,
6992
+ layout: 12,
6562
6993
  options: {
6563
6994
  "elementLabelProp": "key",
6564
6995
  detail: {
@@ -6571,12 +7002,7 @@ const CoreSection = {
6571
7002
  widget: "SelectInputField"
6572
7003
  },
6573
7004
  config: {
6574
- layout: {
6575
- xs: 11,
6576
- sm: 11,
6577
- md: 5.5,
6578
- lg: 5.5
6579
- },
7005
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6580
7006
  main: {
6581
7007
  label: "Screen Size"
6582
7008
  }
@@ -6589,12 +7015,7 @@ const CoreSection = {
6589
7015
  widget: "InputField"
6590
7016
  },
6591
7017
  config: {
6592
- layout: {
6593
- xs: 11,
6594
- sm: 11,
6595
- md: 5.5,
6596
- lg: 5.5
6597
- },
7018
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6598
7019
  main: {
6599
7020
  label: "Value",
6600
7021
  type: "number",
@@ -6602,6 +7023,16 @@ const CoreSection = {
6602
7023
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6603
7024
  }
6604
7025
  }
7026
+ },
7027
+ {
7028
+ type: "Control",
7029
+ scope: "#/properties/proc",
7030
+ config: {
7031
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7032
+ },
7033
+ options: {
7034
+ widget: "EmptyBox"
7035
+ }
6605
7036
  }
6606
7037
  ]
6607
7038
  }
@@ -6609,144 +7040,117 @@ const CoreSection = {
6609
7040
  }
6610
7041
  ]
6611
7042
  };
6612
- const EventSection = {
6613
- type: "HorizontalLayout",
6614
- elements: [
6615
- {
6616
- type: "WrapperLayout",
6617
- config: {
6618
- main: {
6619
- divider: true
7043
+ const EventSection = (theme) => {
7044
+ const uiSchema = {
7045
+ type: "HorizontalLayout",
7046
+ elements: [
7047
+ {
7048
+ type: "Control",
7049
+ scope: "#/properties/events",
7050
+ options: {
7051
+ widget: "Table"
6620
7052
  },
6621
- wrapperStyle: {
6622
- border: "1px solid gray"
6623
- }
6624
- },
6625
- elements: [
6626
- {
6627
- type: "Control",
6628
- scope: "#/properties/programType",
6629
- options: {
6630
- widget: "Box"
6631
- },
6632
- config: {
6633
- layout: 8,
6634
- main: {
6635
- heading: "Event Table"
6636
- },
6637
- style: {
6638
- fontFamily: "Roboto",
6639
- fontWeight: "500",
6640
- paddingLeft: "-10px",
6641
- fontSize: "20px"
6642
- }
6643
- }
6644
- },
6645
- {
6646
- type: "Control",
6647
- scope: "#/properties/Back_Button",
6648
- options: {
6649
- widget: "IconButton"
6650
- },
6651
- config: {
6652
- layout: 3,
6653
- main: {
6654
- icon: "AddIcon",
6655
- styleDefault: true,
6656
- size: "small",
6657
- onClick: "eventAddHandler",
6658
- tooltipMessage: "Back"
7053
+ config: {
7054
+ main: {
7055
+ headerIcons: {
7056
+ elements: [
7057
+ {
7058
+ widget: {
7059
+ type: "Control",
7060
+ scope: "#/properties/New_Record",
7061
+ options: {
7062
+ widget: "IconButton"
7063
+ },
7064
+ config: {
7065
+ main: {
7066
+ color: "info",
7067
+ onClick: "eventAddHandler",
7068
+ size: "small",
7069
+ icon: "AddIcon",
7070
+ iconLabel: "Add New",
7071
+ styleDefault: true
7072
+ },
7073
+ style: {
7074
+ mt: "6px"
7075
+ }
7076
+ }
7077
+ }
7078
+ }
7079
+ ]
6659
7080
  },
6660
- style: {
6661
- float: "right"
6662
- }
7081
+ disableAction: true,
7082
+ disableSelection: true,
7083
+ enableDrag: true
6663
7084
  }
6664
7085
  },
6665
- {
6666
- type: "Control",
6667
- scope: "#/properties/events",
6668
- options: {
6669
- widget: "Table"
7086
+ elements: [
7087
+ {
7088
+ accessorKey: "eventType",
7089
+ header: "Event Type"
6670
7090
  },
6671
- config: {
6672
- main: {
6673
- disableAction: true,
6674
- disableSelection: true,
6675
- enableDrag: true
6676
- }
7091
+ {
7092
+ accessorKey: "Handler",
7093
+ header: "Handler"
6677
7094
  },
6678
- elements: [
6679
- {
6680
- accessorKey: "eventType",
6681
- header: "Event Type"
6682
- },
6683
- {
6684
- accessorKey: "Handler",
6685
- header: "Handler"
6686
- },
6687
- {
6688
- accessorKey: "Edit_Approve_Records",
6689
- header: "Edit Widget",
6690
- widget: {
6691
- type: "Control",
6692
- scope: "#/properties/Edit_Records",
6693
- options: {
6694
- widget: "IconButton"
7095
+ {
7096
+ accessorKey: "Edit_Approve_Records",
7097
+ header: "Edit Widget",
7098
+ widget: {
7099
+ type: "Control",
7100
+ scope: "#/properties/Edit_Records",
7101
+ options: {
7102
+ widget: "IconButton"
7103
+ },
7104
+ config: {
7105
+ main: {
7106
+ color: "info",
7107
+ size: "small",
7108
+ icon: "EditIcon",
7109
+ tooltipMessage: "Edit This Record",
7110
+ onClick: "eventEditHandler"
6695
7111
  },
6696
- config: {
6697
- main: {
6698
- color: "info",
6699
- size: "small",
6700
- icon: "EditIcon",
6701
- tooltipMessage: "Edit This Record",
6702
- onClick: "eventEditHandler"
6703
- },
6704
- style: {
6705
- color: "#3949ab"
6706
- }
7112
+ style: {
7113
+ color: theme.palette.primary.main
6707
7114
  }
6708
7115
  }
6709
- },
6710
- {
6711
- accessorKey: "Reject_Records",
6712
- header: "Delete",
6713
- widget: {
6714
- type: "Control",
6715
- scope: "#/properties/RejectButton",
6716
- accessorKeyName: "Reject_Records",
6717
- options: {
6718
- widget: "IconButton"
6719
- },
6720
- config: {
6721
- main: {
6722
- icon: "RejectIcon",
6723
- color: "error",
6724
- tooltipMessage: "Reject This Record",
6725
- onClick: "deleteEvent"
6726
- }
7116
+ }
7117
+ },
7118
+ {
7119
+ accessorKey: "Reject_Records",
7120
+ header: "Delete",
7121
+ widget: {
7122
+ type: "Control",
7123
+ scope: "#/properties/RejectButton",
7124
+ accessorKeyName: "Reject_Records",
7125
+ options: {
7126
+ widget: "IconButton"
7127
+ },
7128
+ config: {
7129
+ main: {
7130
+ icon: "RejectIcon",
7131
+ color: "error",
7132
+ tooltipMessage: "Reject This Record",
7133
+ onClick: "deletePopUpEvent"
6727
7134
  }
6728
7135
  }
6729
7136
  }
6730
- ]
6731
- }
6732
- ]
6733
- }
6734
- ]
7137
+ }
7138
+ ]
7139
+ }
7140
+ ]
7141
+ };
7142
+ return uiSchema;
6735
7143
  };
6736
- const EmptyBox = {
7144
+ var emptyBox = {
6737
7145
  type: "Control",
6738
- scope: `#/properties/empty`,
7146
+ scope: "#/properties/emptyBox",
6739
7147
  options: {
6740
7148
  widget: "EmptyBox"
6741
7149
  },
6742
7150
  config: {
6743
- layout: {
6744
- xs: 11,
6745
- sm: 11,
6746
- md: 5.5,
6747
- lg: 5.5
6748
- },
6749
- main: {}
7151
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
7152
+ main: {},
7153
+ style: {}
6750
7154
  }
6751
7155
  };
6752
7156
  const cardLayout = {
@@ -6764,12 +7168,7 @@ const cardLayout = {
6764
7168
  widget: "SelectInputField"
6765
7169
  },
6766
7170
  config: {
6767
- layout: {
6768
- xs: 11,
6769
- sm: 11,
6770
- md: 5.5,
6771
- lg: 5.5
6772
- },
7171
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6773
7172
  main: {
6774
7173
  label: "Screen Size"
6775
7174
  }
@@ -6782,12 +7181,7 @@ const cardLayout = {
6782
7181
  widget: "InputField"
6783
7182
  },
6784
7183
  config: {
6785
- layout: {
6786
- xs: 11,
6787
- sm: 11,
6788
- md: 5.5,
6789
- lg: 5.5
6790
- },
7184
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6791
7185
  main: {
6792
7186
  label: "Value",
6793
7187
  type: "number",
@@ -6795,7 +7189,8 @@ const cardLayout = {
6795
7189
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6796
7190
  }
6797
7191
  }
6798
- }
7192
+ },
7193
+ emptyBox
6799
7194
  ]
6800
7195
  }
6801
7196
  }
@@ -6804,7 +7199,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6804
7199
  return {
6805
7200
  type: "Control",
6806
7201
  scope: `#/properties/${parentScope}`,
6807
- layout: 11.5,
7202
+ layout: 12,
6808
7203
  options: {
6809
7204
  "elementLabelProp": childScope,
6810
7205
  detail: {
@@ -6817,18 +7212,14 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6817
7212
  widget: "InputField"
6818
7213
  },
6819
7214
  config: {
6820
- layout: {
6821
- xs: 11,
6822
- sm: 11,
6823
- md: 5.5,
6824
- lg: 5.5
6825
- },
7215
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6826
7216
  main: {
6827
7217
  label: childLabel || "Labels for Tab"
6828
7218
  }
6829
7219
  }
6830
7220
  },
6831
- EmptyBox
7221
+ emptyBox,
7222
+ emptyBox
6832
7223
  ]
6833
7224
  }
6834
7225
  }
@@ -6842,17 +7233,13 @@ sizeHolder.options.detail.elements[1] = {
6842
7233
  widget: "InputField"
6843
7234
  },
6844
7235
  config: {
6845
- layout: {
6846
- xs: 11,
6847
- sm: 11,
6848
- md: 5.5,
6849
- lg: 5.5
6850
- },
7236
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6851
7237
  main: {
6852
7238
  label: "Size"
6853
7239
  }
6854
7240
  }
6855
7241
  };
7242
+ sizeHolder.options.detail.elements[2] = emptyBox;
6856
7243
  const getInputField = (scope, label) => {
6857
7244
  return {
6858
7245
  type: "Control",
@@ -6861,12 +7248,7 @@ const getInputField = (scope, label) => {
6861
7248
  widget: "InputField"
6862
7249
  },
6863
7250
  config: {
6864
- layout: {
6865
- xs: 11,
6866
- sm: 11,
6867
- md: 5.5,
6868
- lg: 5.5
6869
- },
7251
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6870
7252
  main: {
6871
7253
  label
6872
7254
  }
@@ -6881,12 +7263,7 @@ const getRadioInputField = (scope, label, options) => {
6881
7263
  widget: "RadioInputField"
6882
7264
  },
6883
7265
  config: {
6884
- layout: {
6885
- xs: 11,
6886
- sm: 11,
6887
- md: 5.5,
6888
- lg: 5.5
6889
- },
7266
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6890
7267
  main: {
6891
7268
  label,
6892
7269
  options
@@ -6894,6 +7271,26 @@ const getRadioInputField = (scope, label, options) => {
6894
7271
  }
6895
7272
  };
6896
7273
  };
7274
+ const buildWrapper = (label, elements) => {
7275
+ return {
7276
+ type: "WrapperLayout",
7277
+ config: {
7278
+ main: {
7279
+ label: label || "Details",
7280
+ isAccordion: true
7281
+ },
7282
+ wrapperStyle: {
7283
+ marginTop: "-6px",
7284
+ marginBottom: "-8px"
7285
+ },
7286
+ componentsBoxStyle: {
7287
+ marginLeft: "24px"
7288
+ },
7289
+ defaultStyle: true
7290
+ },
7291
+ elements: elements || []
7292
+ };
7293
+ };
6897
7294
  const getTextArea = (scope, heading, hideButton, layout) => {
6898
7295
  return {
6899
7296
  type: "Control",
@@ -6929,7 +7326,7 @@ const getSelectField = (scope, label, options) => {
6929
7326
  widget: "SelectInputField"
6930
7327
  },
6931
7328
  config: {
6932
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
7329
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6933
7330
  main: {
6934
7331
  label,
6935
7332
  type: "text"
@@ -6950,14 +7347,18 @@ const buildPropertiesSection = function(type) {
6950
7347
  getInputField("linkType", "linkType"),
6951
7348
  getInputField("graphHeight", "Graph Height"),
6952
7349
  getInputField("graphWidth", "Graph Width"),
6953
- getInputField("graphZoomHeight", "Zoom Height")
7350
+ getInputField("graphZoomHeight", "Zoom Height"),
7351
+ emptyBox
6954
7352
  ];
7353
+ break;
6955
7354
  case "InputSlider":
6956
7355
  uiSchema.elements = [
6957
7356
  getInputField("max", "Max Limit"),
6958
7357
  getInputField("step", "Step"),
6959
7358
  getInputField("min", "Min Limit"),
6960
- getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"])
7359
+ getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
7360
+ emptyBox,
7361
+ emptyBox
6961
7362
  ];
6962
7363
  break;
6963
7364
  case "DataGrid":
@@ -6966,6 +7367,8 @@ const buildPropertiesSection = function(type) {
6966
7367
  getInputField("elevation", "Card Elevation"),
6967
7368
  getInputField("height", "Grid height"),
6968
7369
  getInputField("justifyContent", "justifyContent"),
7370
+ emptyBox,
7371
+ emptyBox,
6969
7372
  cardLayout
6970
7373
  ];
6971
7374
  break;
@@ -6976,6 +7379,7 @@ const buildPropertiesSection = function(type) {
6976
7379
  getInputField("resetText", "Reset Text"),
6977
7380
  getInputField("completeText", "Complete Text"),
6978
7381
  getSelectField("orientation", "Orientation Type"),
7382
+ emptyBox,
6979
7383
  getArrayControl("sectionLabels", "label")
6980
7384
  ];
6981
7385
  break;
@@ -6983,21 +7387,22 @@ const buildPropertiesSection = function(type) {
6983
7387
  uiSchema.elements = [
6984
7388
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
6985
7389
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
6986
- getInputField("maxWidth", "Max. Width"),
6987
- EmptyBox
7390
+ getInputField("maxWidth", "Max. Width")
6988
7391
  ];
6989
7392
  break;
6990
7393
  case "Text":
6991
7394
  uiSchema.elements = [
6992
7395
  getInputField("placeholder", "Placeholder"),
6993
- EmptyBox,
7396
+ emptyBox,
7397
+ emptyBox,
6994
7398
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
6995
7399
  ];
6996
7400
  break;
6997
7401
  case "TextArea":
6998
7402
  uiSchema.elements = [
6999
7403
  getInputField("placeholder", "Placeholder"),
7000
- EmptyBox
7404
+ emptyBox,
7405
+ emptyBox
7001
7406
  ];
7002
7407
  break;
7003
7408
  case "SpeedoMeter":
@@ -7006,7 +7411,8 @@ const buildPropertiesSection = function(type) {
7006
7411
  getInputField("heading", "Container Heading"),
7007
7412
  getInputField("heading", "Container Heading"),
7008
7413
  getInputField("speedoCaption", "Speedometer Caption"),
7009
- getInputField("width", "Speedometer Width")
7414
+ getInputField("width", "Speedometer Width"),
7415
+ emptyBox
7010
7416
  ];
7011
7417
  break;
7012
7418
  case "RankCard":
@@ -7014,7 +7420,9 @@ const buildPropertiesSection = function(type) {
7014
7420
  getInputField("rank", "Rank"),
7015
7421
  getInputField("image", "Image Url"),
7016
7422
  getInputField("title", "Card Title"),
7017
- getInputField("description", "Card Description")
7423
+ getInputField("description", "Card Description"),
7424
+ emptyBox,
7425
+ emptyBox
7018
7426
  ];
7019
7427
  break;
7020
7428
  case "LeaderBoard":
@@ -7023,6 +7431,8 @@ const buildPropertiesSection = function(type) {
7023
7431
  getInputField("firstImage", "First Image url"),
7024
7432
  getInputField("secondImage", "Second Image url"),
7025
7433
  getInputField("thirdImage", "Third Image url"),
7434
+ emptyBox,
7435
+ emptyBox,
7026
7436
  getTextArea("functionCode", "Write Compare Code", false)
7027
7437
  ];
7028
7438
  break;
@@ -7038,7 +7448,9 @@ const buildPropertiesSection = function(type) {
7038
7448
  getInputField("heading", "Heading"),
7039
7449
  getInputField("bottomLabel_1", "First BottomLabel"),
7040
7450
  getInputField("bottomLabel_2", "Second BottomLabel"),
7041
- getInputField("bottomLabel_3", "Third BottomLabel")
7451
+ getInputField("bottomLabel_3", "Third BottomLabel"),
7452
+ emptyBox,
7453
+ emptyBox
7042
7454
  ];
7043
7455
  break;
7044
7456
  case "card":
@@ -7046,7 +7458,7 @@ const buildPropertiesSection = function(type) {
7046
7458
  getInputField("url", "Image Url"),
7047
7459
  getInputField("label", "Label"),
7048
7460
  getInputField("description", "Description"),
7049
- EmptyBox
7461
+ emptyBox
7050
7462
  ];
7051
7463
  break;
7052
7464
  case "Button":
@@ -7056,7 +7468,7 @@ const buildPropertiesSection = function(type) {
7056
7468
  getSelectField("color", "Color"),
7057
7469
  getInputField("tooltipMessage", "Tooltip Message"),
7058
7470
  getSelectField("defaultStyle", "Default Style"),
7059
- EmptyBox
7471
+ emptyBox
7060
7472
  ];
7061
7473
  break;
7062
7474
  case "Graph":
@@ -7069,6 +7481,7 @@ const buildPropertiesSection = function(type) {
7069
7481
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7070
7482
  getInputField("yAxisValue", "Y-AxisValue"),
7071
7483
  getInputField("xAxisValue", "X-AxisValue"),
7484
+ emptyBox,
7072
7485
  getArrayControl("legendLabels", "label"),
7073
7486
  getArrayControl("pieArcColors", "color")
7074
7487
  ];
@@ -7078,13 +7491,16 @@ const buildPropertiesSection = function(type) {
7078
7491
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7079
7492
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7080
7493
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
7081
- getInputField("rowSpacing", "Row Spacing")
7494
+ getInputField("rowSpacing", "Row Spacing"),
7495
+ emptyBox,
7496
+ emptyBox
7082
7497
  ];
7083
7498
  break;
7084
7499
  case "TabSection":
7085
7500
  uiSchema.elements = [
7086
7501
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7087
7502
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7503
+ emptyBox,
7088
7504
  getArrayControl("sectionLabels", "label")
7089
7505
  ];
7090
7506
  break;
@@ -7092,11 +7508,20 @@ const buildPropertiesSection = function(type) {
7092
7508
  case "LazyLoadingTable":
7093
7509
  uiSchema.elements = [
7094
7510
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7095
- getRadioInputField("SelectionAvailable", "Selection Available", ["YES", "NO"]),
7096
- getRadioInputField("ColumnResizingAvailable", "ColumnResizing Available", ["YES", "NO"]),
7097
- getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
7511
+ getRadioInputField("SelectionAvailable", "Row Selection", ["YES", "NO"]),
7512
+ getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
7513
+ getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
7098
7514
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
7099
7515
  getInputField("selectKey", "Selection Key"),
7516
+ emptyBox,
7517
+ buildWrapper("Tree Table Properties", [
7518
+ getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7519
+ getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
7520
+ getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
7521
+ getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
7522
+ emptyBox,
7523
+ emptyBox
7524
+ ]),
7100
7525
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
7101
7526
  sizeHolder
7102
7527
  ];
@@ -7109,13 +7534,15 @@ const buildPropertiesSection = function(type) {
7109
7534
  case "Select":
7110
7535
  uiSchema.elements = [
7111
7536
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7112
- getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
7537
+ getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7538
+ emptyBox
7113
7539
  ];
7114
7540
  break;
7115
7541
  case "MultipleSelect":
7116
7542
  uiSchema.elements = [
7117
7543
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7118
- EmptyBox
7544
+ emptyBox,
7545
+ emptyBox
7119
7546
  ];
7120
7547
  break;
7121
7548
  }
@@ -7156,124 +7583,106 @@ const StyleSection = {
7156
7583
  }
7157
7584
  ]
7158
7585
  };
7159
- const TableSection = {
7160
- type: "HorizontalLayout",
7161
- elements: [
7162
- {
7163
- type: "WrapperLayout",
7164
- config: {
7165
- main: {},
7166
- wrapperStyle: {
7167
- border: "1px solid gray"
7168
- }
7169
- },
7170
- elements: [
7171
- {
7172
- type: "Control",
7173
- scope: "#/properties/programType",
7174
- options: {
7175
- widget: "Box"
7176
- },
7177
- config: {
7178
- layout: 8,
7179
- main: {
7180
- heading: "Components Table"
7181
- },
7182
- style: {
7183
- fontFamily: "Roboto",
7184
- fontWeight: "500",
7185
- paddingLeft: "-10px",
7186
- fontSize: "20px"
7187
- }
7188
- }
7586
+ const TableSection = (theme) => {
7587
+ const uiSchema = {
7588
+ type: "HorizontalLayout",
7589
+ elements: [
7590
+ {
7591
+ type: "Control",
7592
+ scope: "#/properties/elements",
7593
+ options: {
7594
+ widget: "Table"
7189
7595
  },
7190
- {
7191
- type: "Control",
7192
- scope: "#/properties/Back_Button",
7193
- options: {
7194
- widget: "IconButton"
7195
- },
7196
- config: {
7197
- layout: 3,
7198
- main: {
7199
- icon: "AddIcon",
7200
- styleDefault: true,
7201
- size: "small",
7202
- onClick: "widgetAddClickHandler",
7203
- tooltipMessage: "Add New"
7596
+ config: {
7597
+ main: {
7598
+ headerIcons: {
7599
+ elements: [
7600
+ {
7601
+ widget: {
7602
+ type: "Control",
7603
+ scope: "#/properties/New_Record",
7604
+ options: {
7605
+ widget: "IconButton"
7606
+ },
7607
+ config: {
7608
+ main: {
7609
+ color: "info",
7610
+ onClick: "widgetAddClickHandler",
7611
+ size: "small",
7612
+ icon: "AddIcon",
7613
+ iconLabel: "Add New",
7614
+ styleDefault: true
7615
+ },
7616
+ style: {
7617
+ mt: "6px"
7618
+ }
7619
+ }
7620
+ }
7621
+ }
7622
+ ]
7204
7623
  },
7205
- style: {
7206
- float: "right"
7207
- }
7624
+ disableAction: true,
7625
+ disableSelection: true,
7626
+ enableDrag: true
7208
7627
  }
7209
7628
  },
7210
- {
7211
- type: "Control",
7212
- scope: "#/properties/elements",
7213
- options: {
7214
- widget: "Table"
7629
+ elements: [
7630
+ {
7631
+ accessorKey: "name",
7632
+ header: "Name"
7215
7633
  },
7216
- config: {
7217
- main: {
7218
- disableAction: true,
7219
- disableSelection: true,
7220
- enableDrag: true
7221
- }
7634
+ {
7635
+ accessorKey: "type",
7636
+ header: "Type"
7222
7637
  },
7223
- elements: [
7224
- {
7225
- accessorKey: "name",
7226
- header: "Name"
7227
- },
7228
- {
7229
- accessorKey: "type",
7230
- header: "Type"
7231
- },
7232
- {
7233
- header: "Edit Record",
7234
- field: "Reject_Records",
7235
- flex: 1,
7236
- widget: {
7237
- type: "Control",
7238
- scope: "#/properties/RejectButton",
7239
- options: {
7240
- widget: "IconButton"
7638
+ {
7639
+ header: "Edit Record",
7640
+ field: "Reject_Records",
7641
+ flex: 1,
7642
+ widget: {
7643
+ type: "Control",
7644
+ scope: "#/properties/RejectButton",
7645
+ options: {
7646
+ widget: "IconButton"
7647
+ },
7648
+ config: {
7649
+ main: {
7650
+ icon: "EditIcon",
7651
+ color: "primary",
7652
+ onClick: "editComponents",
7653
+ tooltipMessage: "Reject This Record"
7241
7654
  },
7242
- config: {
7243
- main: {
7244
- icon: "EditIcon",
7245
- color: "primary",
7246
- onClick: "editComponents",
7247
- tooltipMessage: "Reject This Record"
7248
- }
7655
+ style: {
7656
+ color: theme.palette.primary.main
7249
7657
  }
7250
7658
  }
7251
- },
7252
- {
7253
- header: "Delete",
7254
- field: "Reject_Records",
7255
- flex: 1,
7256
- widget: {
7257
- type: "Control",
7258
- scope: "#/properties/RejectButton",
7259
- options: {
7260
- widget: "IconButton"
7261
- },
7262
- config: {
7263
- main: {
7264
- icon: "RejectIcon",
7265
- color: "error",
7266
- onClick: "deleteComponents",
7267
- tooltipMessage: "Reject This Record"
7268
- }
7659
+ }
7660
+ },
7661
+ {
7662
+ header: "Delete",
7663
+ field: "Reject_Records",
7664
+ flex: 1,
7665
+ widget: {
7666
+ type: "Control",
7667
+ scope: "#/properties/RejectButton",
7668
+ options: {
7669
+ widget: "IconButton"
7670
+ },
7671
+ config: {
7672
+ main: {
7673
+ icon: "RejectIcon",
7674
+ color: "error",
7675
+ onClick: "deletePopUpComponent",
7676
+ tooltipMessage: "Reject This Record"
7269
7677
  }
7270
7678
  }
7271
7679
  }
7272
- ]
7273
- }
7274
- ]
7275
- }
7276
- ]
7680
+ }
7681
+ ]
7682
+ }
7683
+ ]
7684
+ };
7685
+ return uiSchema;
7277
7686
  };
7278
7687
  const ValueTab = {
7279
7688
  type: "HorizontalLayout",
@@ -7281,7 +7690,7 @@ const ValueTab = {
7281
7690
  {
7282
7691
  type: "Control",
7283
7692
  scope: "#/properties/value",
7284
- layout: 11.5,
7693
+ layout: 12,
7285
7694
  options: {
7286
7695
  detail: {
7287
7696
  type: "HorizontalLayout",
@@ -7293,12 +7702,7 @@ const ValueTab = {
7293
7702
  widget: "InputField"
7294
7703
  },
7295
7704
  config: {
7296
- layout: {
7297
- xs: 11,
7298
- sm: 11,
7299
- md: 5.5,
7300
- lg: 5.5
7301
- },
7705
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7302
7706
  main: {
7303
7707
  label: "Label"
7304
7708
  }
@@ -7311,16 +7715,21 @@ const ValueTab = {
7311
7715
  widget: "InputField"
7312
7716
  },
7313
7717
  config: {
7314
- layout: {
7315
- xs: 11,
7316
- sm: 11,
7317
- md: 5.5,
7318
- lg: 5.5
7319
- },
7718
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7320
7719
  main: {
7321
7720
  label: "Value"
7322
7721
  }
7323
7722
  }
7723
+ },
7724
+ {
7725
+ type: "Control",
7726
+ scope: "#/properties/emptyBox",
7727
+ options: {
7728
+ widget: "EmptyBox"
7729
+ },
7730
+ config: {
7731
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7732
+ }
7324
7733
  }
7325
7734
  ]
7326
7735
  }
@@ -7347,12 +7756,7 @@ const ValidationSection = {
7347
7756
  widget: "SelectInputField"
7348
7757
  },
7349
7758
  config: {
7350
- layout: {
7351
- xs: 11,
7352
- sm: 11,
7353
- md: 5.5,
7354
- lg: 5.5
7355
- },
7759
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7356
7760
  main: {
7357
7761
  label: "Validation Type"
7358
7762
  }
@@ -7365,16 +7769,21 @@ const ValidationSection = {
7365
7769
  widget: "InputField"
7366
7770
  },
7367
7771
  config: {
7368
- layout: {
7369
- xs: 11,
7370
- sm: 11,
7371
- md: 5.5,
7372
- lg: 5.5
7373
- },
7772
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7374
7773
  main: {
7375
7774
  label: "Validation Value"
7376
7775
  }
7377
7776
  }
7777
+ },
7778
+ {
7779
+ type: "Control",
7780
+ scope: "#/properties/emptyBox",
7781
+ options: {
7782
+ widget: "EmptyBox"
7783
+ },
7784
+ config: {
7785
+ layout: { xs: 0, sm: 4 }
7786
+ }
7378
7787
  }
7379
7788
  ]
7380
7789
  }
@@ -7407,10 +7816,10 @@ var buildConfig = (FormData) => {
7407
7816
  const createLayoutFormat = (config) => {
7408
7817
  if (_.isEmpty(config)) {
7409
7818
  return {
7410
- xs: 11,
7411
- sm: 11,
7412
- md: 5.5,
7413
- lg: 5.5
7819
+ xs: 12,
7820
+ sm: 12,
7821
+ md: 12,
7822
+ lg: 12
7414
7823
  };
7415
7824
  }
7416
7825
  let data = {};
@@ -7419,7 +7828,7 @@ const createLayoutFormat = (config) => {
7419
7828
  });
7420
7829
  return data;
7421
7830
  };
7422
- const flatObjectValueInArray = (config) => {
7831
+ const flatObjectValueInArray = (config = []) => {
7423
7832
  if (config[0].length < 1) {
7424
7833
  return;
7425
7834
  }
@@ -7513,7 +7922,6 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
7513
7922
  function okHandler(store2) {
7514
7923
  var _a;
7515
7924
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7516
- console.log(store2.ctx.core.errors);
7517
7925
  if (_.isEmpty(store2.ctx.core.errors)) {
7518
7926
  saveFormdataInLocalStorage(store2.ctx.core.data, path);
7519
7927
  store2.navigate(-1);
@@ -7562,20 +7970,20 @@ const sectionLabels = {
7562
7970
  };
7563
7971
  const refreshPage = (type, store2) => {
7564
7972
  var _a;
7565
- const UiSchema = _.cloneDeep(componentBasicUiSchema);
7973
+ const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
7566
7974
  if (type) {
7567
7975
  const sectionUiSchema = {
7568
7976
  Core: CoreSection,
7569
7977
  Value: ValueTab,
7570
7978
  Style: StyleSection,
7571
- Event: EventSection,
7572
- Components: TableSection,
7979
+ Event: EventSection(store2.theme.myTheme),
7980
+ Components: TableSection(store2.theme.myTheme),
7573
7981
  Properties: buildPropertiesSection(type),
7574
7982
  Validation: ValidationSection
7575
7983
  };
7576
7984
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
7577
7985
  UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
7578
- UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7986
+ UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
7579
7987
  }
7580
7988
  store2.setUiSchema(UiSchema);
7581
7989
  };
@@ -7621,22 +8029,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7621
8029
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7622
8030
  }
7623
8031
  },
7624
- deleteComponents: function() {
8032
+ deleteComponents: function(shouldUpdateDialog = true) {
7625
8033
  var _a;
7626
8034
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7627
- const rowId = dynamicData2.path.split(".")[1];
8035
+ const rowId = localStorage.getItem("rowId");
7628
8036
  store2.formData.elements.splice(rowId, 1);
7629
8037
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7630
8038
  const data = path ? _.get(response, path) : response;
7631
8039
  store2.setFormdata(data);
8040
+ if (shouldUpdateDialog) {
8041
+ store2.updateDialog("popUpComponentSection");
8042
+ }
8043
+ localStorage.removeItem("rowId");
7632
8044
  },
7633
- deleteEvent: function() {
8045
+ deleteEvent: function(shouldUpdateDialog = true) {
7634
8046
  var _a;
7635
8047
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7636
- const rowId = dynamicData2.path.split(".")[1];
8048
+ const rowId = localStorage.getItem("rowId");
7637
8049
  store2.formData.events.splice(rowId, 1);
7638
8050
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7639
8051
  store2.setFormdata(_.get(response, path));
8052
+ if (shouldUpdateDialog) {
8053
+ store2.updateDialog("popUpEventSection");
8054
+ }
8055
+ localStorage.removeItem("rowId");
7640
8056
  },
7641
8057
  widgetAddClickHandler: function() {
7642
8058
  var _a;
@@ -7672,6 +8088,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7672
8088
  },
7673
8089
  backHandler: function() {
7674
8090
  store2.navigate(-1);
8091
+ },
8092
+ deletePopUpComponent: function() {
8093
+ const rowId = dynamicData2.path.split(".")[1];
8094
+ localStorage.setItem("rowId", rowId);
8095
+ store2.updateDialog("popUpComponentSection");
8096
+ },
8097
+ deletePopUpEvent: function() {
8098
+ const rowId = dynamicData2.path.split(".")[1];
8099
+ localStorage.setItem("rowId", rowId);
8100
+ store2.updateDialog("popUpEventSection");
7675
8101
  }
7676
8102
  };
7677
8103
  };
@@ -7698,7 +8124,7 @@ var pageMaster = (funcParams) => {
7698
8124
  return config;
7699
8125
  },
7700
8126
  getUiSchema: function() {
7701
- return PageMasterUiSchema;
8127
+ return PageMasterUiSchema(store2.theme.myTheme);
7702
8128
  },
7703
8129
  getSchema: () => {
7704
8130
  return PageMasterSchema;
@@ -7726,7 +8152,10 @@ var pageMaster = (funcParams) => {
7726
8152
  },
7727
8153
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7728
8154
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7729
- Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
8155
+ Delete_Components: async function() {
8156
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
8157
+ store2.updateDialog("popUpPageMasterComponent");
8158
+ },
7730
8159
  eventAddHandler: function() {
7731
8160
  var _a;
7732
8161
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -7746,10 +8175,22 @@ var pageMaster = (funcParams) => {
7746
8175
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7747
8176
  },
7748
8177
  deleteEvent: function() {
7749
- const rowId = dynamicData2.path.split(".")[1];
8178
+ const rowId = localStorage.getItem("rowId");
7750
8179
  store2.formData.events.splice(rowId, 1);
7751
8180
  const response = saveFormdataInLocalStorage(store2.ctx.core.data);
7752
8181
  store2.setFormdata(response);
8182
+ store2.updateDialog("popUpPageMasterEvent");
8183
+ localStorage.removeItem("rowId");
8184
+ },
8185
+ deletePopUpComponent: function() {
8186
+ const rowId = dynamicData2.path.split(".")[1];
8187
+ localStorage.setItem("rowId", rowId);
8188
+ store2.updateDialog("popUpPageMasterComponent");
8189
+ },
8190
+ deletePopUpEvent: function() {
8191
+ const rowId = dynamicData2.path.split(".")[1];
8192
+ localStorage.setItem("rowId", rowId);
8193
+ store2.updateDialog("popUpPageMasterEvent");
7753
8194
  }
7754
8195
  };
7755
8196
  };
@@ -7803,6 +8244,7 @@ const EventSchema = {
7803
8244
  { title: "File Upload Event", const: "onUpload" },
7804
8245
  { title: "Back Event", const: "onBack" },
7805
8246
  { title: "Next Event", const: "onNext" },
8247
+ { title: "onRowMovement", const: "onRowMovement" },
7806
8248
  { title: "File Download Event", const: "onDownload" },
7807
8249
  { title: "Fail", const: "Fail" }
7808
8250
  ]
@@ -7841,302 +8283,433 @@ const EventSchema = {
7841
8283
  },
7842
8284
  required: ["eventType", "Handler"]
7843
8285
  };
7844
- const EventUiSchema = {
7845
- type: "HorizontalLayout",
7846
- elements: [
7847
- {
7848
- type: "WrapperLayout",
7849
- config: {
7850
- main: {
7851
- rowSpacing: 1,
7852
- header: true
7853
- },
7854
- defaultStyle: true
7855
- },
7856
- elements: [
7857
- {
7858
- type: "Control",
7859
- scope: "#/properties/Component",
7860
- options: {
7861
- widget: "Box"
7862
- },
7863
- config: {
7864
- layout: { xs: 12, sm: 12, md: 2 },
7865
- main: {
7866
- heading: "Component"
7867
- },
7868
- style: {
7869
- "float": "left"
7870
- }
7871
- }
7872
- },
7873
- {
7874
- type: "Control",
7875
- scope: "#/properties/pageName",
7876
- options: {
7877
- widget: "Box"
7878
- },
7879
- config: {
7880
- layout: { xs: 7, sm: 7, md: 9 },
7881
- main: {
7882
- heading: " "
7883
- },
7884
- style: {
7885
- float: "right",
7886
- width: "auto",
7887
- fontSize: "12px",
7888
- color: "gray",
7889
- paddingTop: "10px"
7890
- }
7891
- }
8286
+ const EventUiSchema = (theme) => {
8287
+ var _a;
8288
+ const uiSchema = {
8289
+ type: "HorizontalLayout",
8290
+ heading: "Component",
8291
+ elements: [
8292
+ {
8293
+ type: "Control",
8294
+ scope: "#/properties/pageName",
8295
+ options: {
8296
+ widget: "Box"
7892
8297
  },
7893
- {
7894
- type: "Control",
7895
- scope: "#/properties/Back_Button",
7896
- options: {
7897
- widget: "IconButton"
8298
+ config: {
8299
+ layout: 12,
8300
+ main: {
8301
+ heading: " "
7898
8302
  },
7899
- config: {
7900
- layout: { xs: 2, sm: 2, md: 0.5 },
7901
- main: {
7902
- icon: "BackIcon",
7903
- styleDefault: true,
7904
- size: "small",
7905
- onClick: "backHandler",
7906
- tooltipMessage: "Back"
7907
- },
7908
- style: {
7909
- float: "right"
7910
- }
8303
+ style: {
8304
+ marginLeft: theme.spacing(3),
8305
+ width: "auto",
8306
+ fontSize: "12px",
8307
+ color: "gray"
7911
8308
  }
7912
8309
  }
7913
- ]
7914
- },
7915
- {
7916
- type: "TabLayout",
7917
- config: {
7918
- main: {
7919
- tabLabels: ["Core", "Response Event"],
7920
- defaultStyle: true,
7921
- id: "event"
7922
- }
7923
8310
  },
7924
- elements: [
7925
- {
7926
- type: "HorizontalLayout",
7927
- elements: [
7928
- {
7929
- type: "Control",
7930
- scope: `#/properties/eventType`,
7931
- options: {
7932
- widget: "SelectInputField"
7933
- },
7934
- config: {
7935
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
7936
- main: {
7937
- label: "Event Type",
7938
- type: "text"
7939
- }
7940
- }
7941
- },
7942
- getSelectField("Handler", "Handler")
7943
- ]
8311
+ {
8312
+ type: "TabLayout",
8313
+ config: {
8314
+ main: {
8315
+ tabLabels: ["Core", "Response Event"],
8316
+ defaultStyle: true,
8317
+ id: "event"
8318
+ }
7944
8319
  },
7945
- {
7946
- type: "WrapperLayout",
7947
- config: {
7948
- main: {
7949
- divider: true
7950
- },
7951
- wrapperStyle: {
7952
- border: "1px solid gray"
7953
- }
7954
- },
7955
- elements: [
7956
- {
7957
- type: "Control",
7958
- scope: "#/properties/heading",
7959
- options: {
7960
- widget: "Box"
8320
+ elements: [
8321
+ {
8322
+ type: "HorizontalLayout",
8323
+ elements: [
8324
+ {
8325
+ type: "Control",
8326
+ scope: `#/properties/eventType`,
8327
+ options: {
8328
+ widget: "SelectInputField"
8329
+ },
8330
+ config: {
8331
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8332
+ main: {
8333
+ label: "Event Type",
8334
+ type: "text"
8335
+ }
8336
+ }
7961
8337
  },
7962
- config: {
7963
- layout: 8,
7964
- main: {
7965
- heading: "Response Event"
8338
+ getSelectField("Handler", "Handler"),
8339
+ {
8340
+ type: "Control",
8341
+ scope: "#/properties/EmptyBox",
8342
+ options: {
8343
+ widget: "EmptyBox"
7966
8344
  },
7967
- style: {
7968
- fontFamily: "Roboto",
7969
- fontWeight: "500",
7970
- paddingLeft: "-10px",
7971
- fontSize: "20px"
8345
+ config: {
8346
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7972
8347
  }
7973
8348
  }
8349
+ ]
8350
+ },
8351
+ {
8352
+ type: "Control",
8353
+ scope: "#/properties/events",
8354
+ options: {
8355
+ widget: "Table"
7974
8356
  },
7975
- {
7976
- type: "Control",
7977
- scope: "#/properties/AddButton",
7978
- options: {
7979
- widget: "IconButton"
7980
- },
7981
- config: {
7982
- layout: 3,
7983
- main: {
7984
- icon: "AddIcon",
7985
- styleDefault: true,
7986
- size: "small",
7987
- onClick: "addEvent",
7988
- tooltipMessage: "Back"
8357
+ config: {
8358
+ main: {
8359
+ headerIcons: {
8360
+ elements: [
8361
+ {
8362
+ widget: {
8363
+ type: "Control",
8364
+ scope: "#/properties/New_Record",
8365
+ options: {
8366
+ widget: "IconButton"
8367
+ },
8368
+ config: {
8369
+ main: {
8370
+ onClick: "addEvent",
8371
+ size: "small",
8372
+ icon: "AddIcon",
8373
+ iconLabel: "Add New",
8374
+ styleDefault: true
8375
+ },
8376
+ style: {
8377
+ mt: "6px"
8378
+ }
8379
+ }
8380
+ }
8381
+ }
8382
+ ]
7989
8383
  },
7990
- style: {
7991
- float: "right"
7992
- }
8384
+ disableAction: true,
8385
+ disableSelection: true,
8386
+ enableDrag: true
7993
8387
  }
7994
8388
  },
7995
- {
7996
- type: "Control",
7997
- scope: "#/properties/events",
7998
- options: {
7999
- widget: "Table"
8389
+ elements: [
8390
+ {
8391
+ accessorKey: "eventType",
8392
+ header: "Event Type"
8000
8393
  },
8001
- config: {
8002
- main: {
8003
- disableAction: true,
8004
- disableSelection: true,
8005
- enableDrag: true
8006
- }
8394
+ {
8395
+ accessorKey: "Handler",
8396
+ header: "Handler"
8007
8397
  },
8008
- elements: [
8009
- {
8010
- accessorKey: "eventType",
8011
- header: "Event Type"
8012
- },
8013
- {
8014
- accessorKey: "Handler",
8015
- header: "Handler"
8016
- },
8017
- {
8018
- accessorKey: "Edit_Approve_Records",
8019
- header: "Edit Widget",
8020
- widget: {
8021
- type: "Control",
8022
- scope: "#/properties/Edit_Records",
8023
- options: {
8024
- widget: "IconButton"
8398
+ {
8399
+ accessorKey: "Edit_Approve_Records",
8400
+ header: "Edit Widget",
8401
+ widget: {
8402
+ type: "Control",
8403
+ scope: "#/properties/Edit_Records",
8404
+ options: {
8405
+ widget: "IconButton"
8406
+ },
8407
+ config: {
8408
+ main: {
8409
+ color: "info",
8410
+ size: "small",
8411
+ icon: "EditIcon",
8412
+ tooltipMessage: "Edit This Record",
8413
+ onClick: "editEvent"
8025
8414
  },
8026
- config: {
8027
- main: {
8028
- color: "info",
8029
- size: "small",
8030
- icon: "EditIcon",
8031
- tooltipMessage: "Edit This Record",
8032
- onClick: "editEvent"
8033
- },
8034
- style: {
8035
- color: "#3949ab"
8036
- }
8415
+ style: {
8416
+ color: theme.palette.primary.main
8037
8417
  }
8038
8418
  }
8039
- },
8040
- {
8041
- accessorKey: "Reject_Records",
8042
- header: "Delete",
8043
- widget: {
8044
- type: "Control",
8045
- scope: "#/properties/RejectButton",
8046
- options: {
8047
- widget: "IconButton"
8048
- },
8049
- config: {
8050
- main: {
8051
- icon: "RejectIcon",
8052
- color: "error",
8053
- tooltipMessage: "Reject This Record",
8054
- onClick: "deleteEvent"
8055
- }
8419
+ }
8420
+ },
8421
+ {
8422
+ accessorKey: "Reject_Records",
8423
+ header: "Delete",
8424
+ widget: {
8425
+ type: "Control",
8426
+ scope: "#/properties/RejectButton",
8427
+ options: {
8428
+ widget: "IconButton"
8429
+ },
8430
+ config: {
8431
+ main: {
8432
+ icon: "RejectIcon",
8433
+ color: "error",
8434
+ tooltipMessage: "Reject This Record",
8435
+ onClick: "deletePopUpEvent"
8056
8436
  }
8057
8437
  }
8058
8438
  }
8059
- ]
8060
- }
8061
- ]
8439
+ }
8440
+ ]
8441
+ }
8442
+ ]
8443
+ },
8444
+ {
8445
+ type: "Control",
8446
+ scope: "#/properties/EmptyBox",
8447
+ options: {
8448
+ widget: "EmptyBox"
8449
+ },
8450
+ config: {
8451
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8062
8452
  }
8063
- ]
8064
- },
8065
- {
8066
- type: "Control",
8067
- scope: "#/properties/proc",
8068
- config: {
8069
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
8070
8453
  },
8071
- options: {
8072
- widget: "EmptyBox"
8073
- }
8074
- },
8075
- {
8076
- type: "Control",
8077
- scope: "#/properties/btn",
8078
- options: {
8079
- widget: "Button"
8454
+ {
8455
+ type: "Control",
8456
+ scope: "#/properties/EmptyBox",
8457
+ options: {
8458
+ widget: "EmptyBox"
8459
+ },
8460
+ config: {
8461
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8462
+ }
8080
8463
  },
8081
- config: {
8082
- layout: {
8083
- xs: 11,
8084
- sm: 11,
8085
- md: 2.5,
8086
- lg: 2.5
8464
+ {
8465
+ type: "Control",
8466
+ scope: "#/properties/btn",
8467
+ options: {
8468
+ widget: "Button"
8087
8469
  },
8088
- main: {
8089
- name: "Ok",
8090
- startIcon: "ApproveIcon",
8091
- variant: "contained",
8092
- color: "info",
8093
- type: "text",
8094
- onClick: "okHandler",
8095
- size: "small"
8470
+ config: {
8471
+ layout: 1.8,
8472
+ main: {
8473
+ name: "Ok",
8474
+ startIcon: "ApproveIcon",
8475
+ variant: "contained",
8476
+ type: "text",
8477
+ onClick: "okHandler",
8478
+ size: "medium"
8479
+ },
8480
+ style: {
8481
+ float: "right"
8482
+ }
8483
+ }
8484
+ },
8485
+ {
8486
+ type: "Control",
8487
+ scope: "#/properties/btnSubmit",
8488
+ options: {
8489
+ widget: "Button"
8096
8490
  },
8097
- style: {
8098
- marginBottom: "8px",
8099
- float: "right"
8491
+ config: {
8492
+ layout: 1.8,
8493
+ main: {
8494
+ name: "Save & Exit",
8495
+ startIcon: "ApproveIcon",
8496
+ variant: "contained",
8497
+ type: "text",
8498
+ onClick: "saveHandler",
8499
+ size: "medium"
8500
+ },
8501
+ style: {
8502
+ float: "right"
8503
+ }
8100
8504
  }
8101
- }
8102
- },
8103
- {
8104
- type: "Control",
8105
- scope: "#/properties/btnSubmit",
8106
- options: {
8107
- widget: "Button"
8108
8505
  },
8109
- config: {
8110
- layout: {
8111
- xs: 11,
8112
- sm: 11,
8113
- md: 2.5,
8114
- lg: 2.5
8506
+ {
8507
+ type: "Control",
8508
+ scope: "#/properties/popUpEvent",
8509
+ options: {
8510
+ widget: "PopUp"
8115
8511
  },
8116
- main: {
8117
- name: "Save & Exit",
8118
- startIcon: "ApproveIcon",
8119
- variant: "contained",
8120
- color: "info",
8121
- type: "text",
8122
- onClick: "saveHandler",
8123
- size: "small"
8512
+ config: {
8513
+ layout: {
8514
+ xs: 12,
8515
+ sm: 12,
8516
+ md: 6,
8517
+ lg: 6
8518
+ },
8519
+ main: {},
8520
+ style: {
8521
+ "& .MuiPaper-root": {
8522
+ width: "30%"
8523
+ },
8524
+ "& .MuiTypography-root": {
8525
+ padding: 0
8526
+ },
8527
+ wrapperStyle: {
8528
+ width: { xs: "100%", sm: "100%", md: "98%" }
8529
+ }
8530
+ }
8124
8531
  },
8125
- style: {
8126
- marginBottom: "8px",
8127
- float: "right"
8128
- }
8129
- }
8130
- },
8131
- {
8132
- type: "Control",
8133
- scope: "#/properties/notify",
8134
- options: {
8135
- widget: "Notify"
8532
+ elements: [
8533
+ {
8534
+ type: "Control",
8535
+ scope: "#/properties/label",
8536
+ options: {
8537
+ widget: "Box"
8538
+ },
8539
+ config: {
8540
+ layout: 12,
8541
+ main: {
8542
+ heading: "Are you sure you want to delete ?"
8543
+ },
8544
+ style: {
8545
+ marginTop: "-40px"
8546
+ }
8547
+ }
8548
+ },
8549
+ {
8550
+ type: "Control",
8551
+ scope: "#/properties/EmptyBox",
8552
+ options: {
8553
+ widget: "EmptyBox"
8554
+ },
8555
+ config: {
8556
+ main: {},
8557
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
8558
+ }
8559
+ },
8560
+ {
8561
+ type: "Control",
8562
+ scope: "#/properties/ConfirmDeleteEventButton",
8563
+ options: {
8564
+ widget: "Button"
8565
+ },
8566
+ config: {
8567
+ layout: 3,
8568
+ main: {
8569
+ name: "Yes",
8570
+ startIcon: "ApproveIcon",
8571
+ variant: "contained",
8572
+ color: "error",
8573
+ type: "text",
8574
+ onClick: "deleteEvent",
8575
+ size: "small"
8576
+ }
8577
+ }
8578
+ },
8579
+ {
8580
+ type: "Control",
8581
+ scope: "#/properties/CancelDeleteEventButton",
8582
+ options: {
8583
+ widget: "Button"
8584
+ },
8585
+ config: {
8586
+ layout: 3,
8587
+ main: {
8588
+ name: "No",
8589
+ startIcon: "ApproveIcon",
8590
+ variant: "contained",
8591
+ color: "info",
8592
+ type: "text",
8593
+ onClick: "deletePopUpEvent",
8594
+ size: "small"
8595
+ }
8596
+ }
8597
+ }
8598
+ ]
8136
8599
  },
8137
- layout: 6
8138
- }
8139
- ]
8600
+ {
8601
+ type: "Control",
8602
+ scope: "#/properties/notify",
8603
+ options: {
8604
+ widget: "Notify"
8605
+ },
8606
+ layout: 6
8607
+ },
8608
+ {
8609
+ type: "HorizontalLayout",
8610
+ config: {
8611
+ main: {
8612
+ direction: "row"
8613
+ },
8614
+ style: {
8615
+ flexDirection: "row",
8616
+ position: "absolute",
8617
+ bottom: 0,
8618
+ marginBottom: "-8px",
8619
+ height: "fit-content",
8620
+ overflow: "hidden",
8621
+ zIndex: 1e3,
8622
+ width: "inherit"
8623
+ }
8624
+ },
8625
+ elements: [
8626
+ {
8627
+ type: "Control",
8628
+ scope: "#/properties/FooterText",
8629
+ options: {
8630
+ widget: "Box"
8631
+ },
8632
+ config: {
8633
+ main: {
8634
+ heading: "Copywriter@ACT21.IO"
8635
+ },
8636
+ style: {
8637
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
8638
+ fontSize: "12px",
8639
+ textAlign: "center",
8640
+ lineHeight: 1,
8641
+ width: "fit-content",
8642
+ left: "50%",
8643
+ position: "relative",
8644
+ margin: 0,
8645
+ flexGrow: 1,
8646
+ height: 0
8647
+ }
8648
+ }
8649
+ },
8650
+ {
8651
+ type: "Control",
8652
+ scope: "#/properties/backIcon",
8653
+ options: {
8654
+ widget: "Box"
8655
+ },
8656
+ config: {
8657
+ main: {
8658
+ iconName: "PrevIcon",
8659
+ onClick: "backHandler",
8660
+ width: "fit-content"
8661
+ },
8662
+ style: {
8663
+ fill: theme.palette.primary.main,
8664
+ width: 20,
8665
+ height: 0,
8666
+ margin: 0,
8667
+ top: 0,
8668
+ right: "82px",
8669
+ position: "absolute",
8670
+ fontSize: "12px",
8671
+ cursor: "pointer",
8672
+ ":hover": {
8673
+ fill: theme.palette.primary.dark
8674
+ }
8675
+ }
8676
+ }
8677
+ },
8678
+ {
8679
+ type: "Control",
8680
+ scope: "#/properties/text",
8681
+ options: {
8682
+ widget: "Box"
8683
+ },
8684
+ config: {
8685
+ main: {
8686
+ heading: "Previous Page",
8687
+ onClick: "backHandler"
8688
+ },
8689
+ style: {
8690
+ textAlign: "left",
8691
+ lineHeight: 1,
8692
+ height: 0,
8693
+ width: "fit-content",
8694
+ color: theme.palette.primary.main,
8695
+ fontSize: "12px",
8696
+ cursor: "pointer",
8697
+ marginLeft: "2px",
8698
+ marginRight: 0,
8699
+ top: 3,
8700
+ right: "12px",
8701
+ position: "absolute",
8702
+ ":hover": {
8703
+ color: theme.palette.primary.dark
8704
+ }
8705
+ }
8706
+ }
8707
+ }
8708
+ ]
8709
+ }
8710
+ ]
8711
+ };
8712
+ return uiSchema;
8140
8713
  };
8141
8714
  const APISection = {
8142
8715
  type: "HorizontalLayout",
@@ -8148,7 +8721,7 @@ const APISection = {
8148
8721
  widget: "SelectInputField"
8149
8722
  },
8150
8723
  config: {
8151
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8724
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8152
8725
  main: {
8153
8726
  label: "Method",
8154
8727
  type: "text"
@@ -8162,7 +8735,7 @@ const APISection = {
8162
8735
  widget: "InputField"
8163
8736
  },
8164
8737
  config: {
8165
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8738
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8166
8739
  main: {
8167
8740
  label: "Path",
8168
8741
  type: "text",
@@ -8171,6 +8744,26 @@ const APISection = {
8171
8744
  }
8172
8745
  }
8173
8746
  },
8747
+ {
8748
+ type: "Control",
8749
+ scope: "#/properties/emptyBox",
8750
+ options: {
8751
+ widget: "EmptyBox"
8752
+ },
8753
+ config: {
8754
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8755
+ }
8756
+ },
8757
+ {
8758
+ type: "Control",
8759
+ scope: "#/properties/emptyBox",
8760
+ options: {
8761
+ widget: "EmptyBox"
8762
+ },
8763
+ config: {
8764
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8765
+ }
8766
+ },
8174
8767
  {
8175
8768
  type: "Control",
8176
8769
  scope: "#/properties/headers",
@@ -8187,12 +8780,7 @@ const APISection = {
8187
8780
  widget: "InputField"
8188
8781
  },
8189
8782
  config: {
8190
- layout: {
8191
- xs: 11,
8192
- sm: 11,
8193
- md: 5.5,
8194
- lg: 5.5
8195
- },
8783
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8196
8784
  main: {
8197
8785
  label: "Key"
8198
8786
  }
@@ -8205,16 +8793,21 @@ const APISection = {
8205
8793
  widget: "InputField"
8206
8794
  },
8207
8795
  config: {
8208
- layout: {
8209
- xs: 11,
8210
- sm: 11,
8211
- md: 5.5,
8212
- lg: 5.5
8213
- },
8796
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8214
8797
  main: {
8215
8798
  label: "Value"
8216
8799
  }
8217
8800
  }
8801
+ },
8802
+ {
8803
+ type: "Control",
8804
+ scope: "#/properties/emptyBox",
8805
+ options: {
8806
+ widget: "EmptyBox"
8807
+ },
8808
+ config: {
8809
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8810
+ }
8218
8811
  }
8219
8812
  ]
8220
8813
  }
@@ -8236,12 +8829,7 @@ const APISection = {
8236
8829
  widget: "InputField"
8237
8830
  },
8238
8831
  config: {
8239
- layout: {
8240
- xs: 11,
8241
- sm: 11,
8242
- md: 5.5,
8243
- lg: 5.5
8244
- },
8832
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8245
8833
  main: {
8246
8834
  label: "Key"
8247
8835
  }
@@ -8254,16 +8842,21 @@ const APISection = {
8254
8842
  widget: "InputField"
8255
8843
  },
8256
8844
  config: {
8257
- layout: {
8258
- xs: 11,
8259
- sm: 11,
8260
- md: 5.5,
8261
- lg: 5.5
8262
- },
8845
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8263
8846
  main: {
8264
8847
  label: "Value"
8265
8848
  }
8266
8849
  }
8850
+ },
8851
+ {
8852
+ type: "Control",
8853
+ scope: "#/properties/emptyBox",
8854
+ options: {
8855
+ widget: "EmptyBox"
8856
+ },
8857
+ config: {
8858
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8859
+ }
8267
8860
  }
8268
8861
  ]
8269
8862
  }
@@ -8290,12 +8883,7 @@ const refreshSectionUiSchema = {
8290
8883
  widget: "InputField"
8291
8884
  },
8292
8885
  config: {
8293
- layout: {
8294
- xs: 11,
8295
- sm: 11,
8296
- md: 5.5,
8297
- lg: 5.5
8298
- },
8886
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8299
8887
  main: {
8300
8888
  label: "Value"
8301
8889
  }
@@ -8308,12 +8896,18 @@ const refreshSectionUiSchema = {
8308
8896
  widget: "EmptyBox"
8309
8897
  },
8310
8898
  config: {
8311
- layout: {
8312
- xs: 11,
8313
- sm: 11,
8314
- md: 5.5,
8315
- lg: 5.5
8316
- },
8899
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8900
+ main: {}
8901
+ }
8902
+ },
8903
+ {
8904
+ type: "Control",
8905
+ scope: "#/properties/emptyBox",
8906
+ options: {
8907
+ widget: "EmptyBox"
8908
+ },
8909
+ config: {
8910
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8317
8911
  main: {}
8318
8912
  }
8319
8913
  }
@@ -8323,18 +8917,6 @@ const refreshSectionUiSchema = {
8323
8917
  }
8324
8918
  ]
8325
8919
  };
8326
- var emptyBox = {
8327
- type: "Control",
8328
- scope: "#/properties/emptyBox",
8329
- options: {
8330
- widget: "EmptyBox"
8331
- },
8332
- config: {
8333
- layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
8334
- main: {},
8335
- style: {}
8336
- }
8337
- };
8338
8920
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8339
8921
  return {
8340
8922
  setPage: async function() {
@@ -8345,23 +8927,24 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8345
8927
  this.refreshPage(formdata.Handler, store2);
8346
8928
  },
8347
8929
  refreshPage: (handlerType, store22) => {
8348
- const uiSchema = _.cloneDeep(EventUiSchema);
8930
+ const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
8349
8931
  const schema2 = _.cloneDeep(EventSchema);
8350
8932
  if (handlerType) {
8351
8933
  if (handlerType === "custom") {
8352
8934
  uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8353
- uiSchema.elements[1].elements[0].elements[3] = emptyBox;
8354
- uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
8935
+ uiSchema.elements[1].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8355
8936
  schema2.required = ["eventType", "Handler", "eventCode"];
8356
8937
  } else if (handlerType === "api") {
8357
- uiSchema.elements[1].elements[0].elements[2] = APISection;
8938
+ uiSchema.elements[1].elements[0].elements[2] = emptyBox;
8939
+ uiSchema.elements[1].elements[0].elements[3] = APISection;
8358
8940
  schema2.required = ["eventType", "Handler", "method", "path"];
8359
8941
  } else if (handlerType === "inBuiltFunction") {
8360
8942
  uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8361
- uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
8943
+ uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
8362
8944
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8363
8945
  } else if (handlerType === "refresh") {
8364
- uiSchema.elements[1].elements[0].elements[2] = refreshSectionUiSchema;
8946
+ uiSchema.elements[1].elements[0].elements[2] = emptyBox;
8947
+ uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
8365
8948
  schema2.properties.refreshElements.required = ["value"];
8366
8949
  schema2.properties.refreshElements.items.required = ["value"];
8367
8950
  schema2.required = ["eventType", "Handler", "refreshElements"];
@@ -8413,9 +8996,17 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8413
8996
  store2.setSearchParams(store2.searchParams);
8414
8997
  this.setPage();
8415
8998
  },
8416
- deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
8999
+ deleteEvent: async function() {
9000
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9001
+ store2.updateDialog("popUpEvent");
9002
+ },
8417
9003
  backHandler: function() {
8418
9004
  store2.navigate(-1);
9005
+ },
9006
+ deletePopUpEvent: function() {
9007
+ const rowId = dynamicData2.path.split(".")[1];
9008
+ localStorage.setItem("rowId", rowId);
9009
+ store2.updateDialog("popUpEvent");
8419
9010
  }
8420
9011
  };
8421
9012
  };
@@ -8513,7 +9104,8 @@ function executeEventsHandler(params2) {
8513
9104
  params2.componentName,
8514
9105
  params2.config,
8515
9106
  params2.store,
8516
- params2.service
9107
+ params2.service,
9108
+ params2.formDataHolder
8517
9109
  );
8518
9110
  } else if (params2.config.Handler === "onBackHandler") {
8519
9111
  return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
@@ -8536,13 +9128,16 @@ function getRefreshElements(eventConfig, eventGropus) {
8536
9128
  result.push(result[0]);
8537
9129
  }
8538
9130
  }
8539
- console.log(result);
8540
9131
  return result;
8541
9132
  }
8542
- function executeRefreshHandler(params2) {
9133
+ async function executeRefreshHandler(params2) {
8543
9134
  const compToRefresh = getRefreshElements(params2.config, params2.eventGroups);
8544
- return Promise.all(compToRefresh.map((componentName) => {
8545
- return Promise.all(params2.eventGroups.onLoad[componentName].map((compEventConfig) => {
9135
+ return Promise.allSettled(compToRefresh.map((componentName) => {
9136
+ const eventConfigs = params2.eventGroups.onLoad[componentName];
9137
+ if (!eventConfigs) {
9138
+ return Promise.resolve();
9139
+ }
9140
+ return Promise.allSettled(eventConfigs.map((compEventConfig) => {
8546
9141
  return executeEvents({ ...params2, config: compEventConfig, componentName });
8547
9142
  }));
8548
9143
  }));
@@ -8582,7 +9177,7 @@ function executeCustomHandler(params) {
8582
9177
  return response;
8583
9178
  }
8584
9179
  }
8585
- function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
9180
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder2) {
8586
9181
  if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
8587
9182
  store2.setSchema((pre) => {
8588
9183
  var _a;
@@ -8616,30 +9211,42 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
8616
9211
  });
8617
9212
  } else if (eventConfig.type === "page") {
8618
9213
  if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
9214
+ store2.newData = {
9215
+ ...store2.newData,
9216
+ ...handlerResponse == null ? void 0 : handlerResponse.data
9217
+ };
8619
9218
  store2.setFormdata((pre) => {
8620
9219
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
8621
9220
  });
8622
9221
  }
8623
9222
  } else {
8624
9223
  if (handlerResponse) {
9224
+ formDataHolder2[componentName] = handlerResponse.data;
8625
9225
  store2.setFormdata((pre) => {
8626
- var _a;
8627
- return { ...pre, [componentName]: eventConfig.lazyLoading ? (_a = handlerResponse == null ? void 0 : handlerResponse.data) == null ? void 0 : _a.data : handlerResponse.data };
9226
+ return { ...pre, ...formDataHolder2 };
8628
9227
  });
8629
9228
  }
8630
9229
  }
8631
9230
  }
8632
- const buildBodyFormat = (body2, formData, userValue2) => {
9231
+ const buildBodyFormat = (body2, formData, userValue2, store2) => {
8633
9232
  let finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
8634
9233
  body2.map((elem) => {
8635
- var _a, _b;
9234
+ var _a, _b, _c, _d, _e;
8636
9235
  if (typeof (elem == null ? void 0 : elem.value) !== "string") {
8637
9236
  finalBody[elem.key] = elem.value;
8638
9237
  } else {
8639
9238
  if ((_a = elem == null ? void 0 : elem.value) == null ? void 0 : _a.startsWith("$userValue")) {
8640
9239
  const finalpath = elem.value.substring(11);
8641
9240
  finalBody[elem.key] = _.get(userValue2, finalpath);
8642
- } else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
9241
+ } else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$urlParams")) {
9242
+ const finalpath = elem.value.substring(11);
9243
+ const value = (_c = store2 == null ? void 0 : store2.searchParams) == null ? void 0 : _c.get(finalpath);
9244
+ finalBody[elem.key] = value;
9245
+ } else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
9246
+ const finalpath = elem.value.substring(7);
9247
+ const value = JSON.parse(localStorage.getItem(finalpath) || '""');
9248
+ finalBody[elem.key] = value;
9249
+ } else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
8643
9250
  const finalpath = elem.value.substring(1);
8644
9251
  finalBody[elem.key] = _.get(formData, finalpath);
8645
9252
  } else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
@@ -8687,7 +9294,7 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
8687
9294
  headers = buildHeadersFormat(compConfig.headers);
8688
9295
  }
8689
9296
  if (compConfig.body) {
8690
- body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue) };
9297
+ body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue, store) };
8691
9298
  }
8692
9299
  const promiseChain = { body, headers };
8693
9300
  if (compConfig.apiBody) {
@@ -8706,6 +9313,7 @@ const notifyUiSchema = {
8706
9313
  },
8707
9314
  layout: 6
8708
9315
  };
9316
+ let formDataHolder = {};
8709
9317
  let pageData = false;
8710
9318
  const extractEvents = (eventConfig) => {
8711
9319
  function extractsConfigEvents(eventConfigObj) {
@@ -8762,12 +9370,14 @@ var service = (funcParams) => {
8762
9370
  service: funcParams.service,
8763
9371
  serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
8764
9372
  eventGroups,
8765
- functionsProvider: funcParams.functionsProvider
9373
+ functionsProvider: funcParams.functionsProvider,
9374
+ formDataHolder
8766
9375
  };
8767
9376
  return {
8768
9377
  setPage: async function() {
8769
- var _a;
9378
+ var _a, _b, _c, _d;
8770
9379
  funcParams.store.setFormdata({});
9380
+ funcParams.store.newData = {};
8771
9381
  const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
8772
9382
  if (pageBasicDetailString) {
8773
9383
  pageData = JSON.parse(pageBasicDetailString);
@@ -8781,7 +9391,116 @@ var service = (funcParams) => {
8781
9391
  }
8782
9392
  const config = pageData == null ? void 0 : pageData.config;
8783
9393
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
8784
- const schema2 = (_a = pageData == null ? void 0 : pageData.schema) != null ? _a : { type: "object", properties: {} };
9394
+ const event2 = new CustomEvent("pageNameChanged", {
9395
+ detail: { pageName: config.label }
9396
+ });
9397
+ window.dispatchEvent(event2);
9398
+ const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
9399
+ uiSchema.elements.push(
9400
+ {
9401
+ type: "HorizontalLayout",
9402
+ config: {
9403
+ main: {
9404
+ direction: "row"
9405
+ },
9406
+ style: {
9407
+ flexDirection: "row",
9408
+ position: "absolute",
9409
+ bottom: 0,
9410
+ marginBottom: "-8px",
9411
+ height: "fit-content",
9412
+ overflow: "hidden",
9413
+ zIndex: 1e3,
9414
+ width: "inherit"
9415
+ }
9416
+ },
9417
+ elements: [
9418
+ {
9419
+ type: "Control",
9420
+ scope: "#/properties/FooterText",
9421
+ options: {
9422
+ widget: "Box"
9423
+ },
9424
+ config: {
9425
+ main: {
9426
+ heading: "Copywriter@ACT21.IO"
9427
+ },
9428
+ style: {
9429
+ color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
9430
+ fontSize: "12px",
9431
+ textAlign: "center",
9432
+ lineHeight: 1,
9433
+ width: "fit-content",
9434
+ left: "50%",
9435
+ position: "relative",
9436
+ margin: 0,
9437
+ flexGrow: 1,
9438
+ height: 0
9439
+ }
9440
+ }
9441
+ },
9442
+ {
9443
+ type: "Control",
9444
+ scope: "#/properties/backIcon",
9445
+ options: {
9446
+ widget: "Box"
9447
+ },
9448
+ config: {
9449
+ main: {
9450
+ iconName: "PrevIcon",
9451
+ onClick: "backHandler",
9452
+ width: "fit-content"
9453
+ },
9454
+ style: {
9455
+ fill: theme.palette.primary.main,
9456
+ width: 20,
9457
+ height: 0,
9458
+ margin: 0,
9459
+ top: 0,
9460
+ right: "82px",
9461
+ position: "absolute",
9462
+ fontSize: "12px",
9463
+ cursor: "pointer",
9464
+ ":hover": {
9465
+ fill: theme.palette.primary.dark
9466
+ }
9467
+ }
9468
+ }
9469
+ },
9470
+ {
9471
+ type: "Control",
9472
+ scope: "#/properties/text",
9473
+ options: {
9474
+ widget: "Box"
9475
+ },
9476
+ config: {
9477
+ main: {
9478
+ heading: "Previous Page",
9479
+ onClick: "backHandler"
9480
+ },
9481
+ style: {
9482
+ textAlign: "left",
9483
+ lineHeight: 1,
9484
+ height: 0,
9485
+ width: "fit-content",
9486
+ color: theme.palette.primary.main,
9487
+ fontSize: "12px",
9488
+ cursor: "pointer",
9489
+ marginLeft: "2px",
9490
+ marginRight: 0,
9491
+ top: 3,
9492
+ right: "12px",
9493
+ position: "absolute",
9494
+ ":hover": {
9495
+ color: theme.palette.primary.dark
9496
+ }
9497
+ }
9498
+ }
9499
+ }
9500
+ ]
9501
+ }
9502
+ );
9503
+ const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
8785
9504
  eventGroups = {};
8786
9505
  eventGroups = extractEvents(config);
8787
9506
  executeEventsParameters = {
@@ -8793,7 +9512,8 @@ var service = (funcParams) => {
8793
9512
  service: funcParams.service,
8794
9513
  functionsProvider: funcParams.functionsProvider,
8795
9514
  serviceHolder: this,
8796
- eventGroups
9515
+ eventGroups,
9516
+ formDataHolder
8797
9517
  };
8798
9518
  await executeRefreshHandler({
8799
9519
  config: {},
@@ -8803,7 +9523,8 @@ var service = (funcParams) => {
8803
9523
  userValue: funcParams.userValue,
8804
9524
  service: funcParams.service,
8805
9525
  serviceHolder: this,
8806
- eventGroups
9526
+ eventGroups,
9527
+ formDataHolder
8807
9528
  });
8808
9529
  funcParams.store.setSchema(
8809
9530
  (pre) => {
@@ -8848,6 +9569,16 @@ var service = (funcParams) => {
8848
9569
  backHandler: function() {
8849
9570
  funcParams.store.navigate(-1);
8850
9571
  },
9572
+ onRowMovement: async function(paginationValues) {
9573
+ const apiBody = [
9574
+ { key: "direction", value: paginationValues.rowMovement.direction },
9575
+ { key: "movedRowId", value: paginationValues.rowMovement.movedRowId },
9576
+ { key: "targetRowId", value: paginationValues.rowMovement.targetRowId || [] }
9577
+ ];
9578
+ await this.callExecuteEvents({ path: paginationValues == null ? void 0 : paginationValues.path }, apiBody, "onRowMovement");
9579
+ const response = await this.callExecuteEvents({ path: paginationValues == null ? void 0 : paginationValues.path }, apiBody, "onLoad");
9580
+ return response == null ? void 0 : response.data;
9581
+ },
8851
9582
  onPaginationChange: async function(paginationValues) {
8852
9583
  var _a;
8853
9584
  const apiBody = [
@@ -8857,7 +9588,7 @@ var service = (funcParams) => {
8857
9588
  { key: "filters", value: paginationValues.columnFilters || [] },
8858
9589
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
8859
9590
  ];
8860
- const response = await this.updateConfigApiBody(paginationValues, apiBody);
9591
+ const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
8861
9592
  return response == null ? void 0 : response.data;
8862
9593
  },
8863
9594
  getSelectOptions: async function(param) {
@@ -8866,7 +9597,7 @@ var service = (funcParams) => {
8866
9597
  { key: "searchValue", value: param.serachValue },
8867
9598
  { key: "currentValue", value: param.currentValue }
8868
9599
  ];
8869
- const response = await this.updateConfigApiBody(param, apiBody);
9600
+ const response = await this.callExecuteEvents(param, apiBody);
8870
9601
  return response == null ? void 0 : response.data;
8871
9602
  }
8872
9603
  },
@@ -8887,10 +9618,10 @@ var service = (funcParams) => {
8887
9618
  }));
8888
9619
  }
8889
9620
  },
8890
- updateConfigApiBody: async function(paramValue, apiBody) {
8891
- var _a;
9621
+ callExecuteEvents: async function(paramValue, apiBody, eventType) {
9622
+ var _a, _b;
8892
9623
  let LastCallResponse = void 0;
8893
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onLoad[paramValue.path]) {
9624
+ for (const eventConfig of (_a = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _a[paramValue.path]) {
8894
9625
  if (eventConfig.body) {
8895
9626
  eventConfig.body = [
8896
9627
  ...eventConfig.body,
@@ -8899,7 +9630,7 @@ var service = (funcParams) => {
8899
9630
  } else {
8900
9631
  eventConfig.body = apiBody;
8901
9632
  }
8902
- const responseEvent = (_a = eventConfig == null ? void 0 : eventConfig.events) == null ? void 0 : _a.filter((elem) => {
9633
+ const responseEvent = (_b = eventConfig == null ? void 0 : eventConfig.events) == null ? void 0 : _b.filter((elem) => {
8903
9634
  return elem.Handler !== "mergeFormdata";
8904
9635
  });
8905
9636
  eventConfig.events = responseEvent != null ? responseEvent : [];
@@ -8939,14 +9670,14 @@ var service = (funcParams) => {
8939
9670
  var _a, _b, _c;
8940
9671
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8941
9672
  if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
8942
- for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
9673
+ Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
8943
9674
  executeEventsParameters.store.functionParameters = functionParameters;
8944
9675
  executeEvents({
8945
9676
  ...executeEventsParameters,
8946
9677
  config: eventConfig,
8947
9678
  componentName: path
8948
9679
  });
8949
- }
9680
+ }));
8950
9681
  }
8951
9682
  },
8952
9683
  downloadFile: downloadFile$1,
@@ -8963,12 +9694,15 @@ var leaderBoard = {
8963
9694
  label: "LeaderBoard",
8964
9695
  divider: true
8965
9696
  },
8966
- style: { wrapperStyle: {
8967
- height: { xs: 850, sm: 1e3 }
8968
- } },
9697
+ style: {},
8969
9698
  wrapperStyle: {
8970
9699
  position: "relative",
8971
9700
  width: "100%"
9701
+ },
9702
+ componentsBoxStyle: {
9703
+ display: "flex",
9704
+ flexDirection: "column",
9705
+ gap: "20px"
8972
9706
  }
8973
9707
  },
8974
9708
  elements: [
@@ -8979,21 +9713,23 @@ var leaderBoard = {
8979
9713
  main: {
8980
9714
  url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
8981
9715
  },
8982
- containerStyle: {
8983
- objectFit: "cover",
8984
- position: "absolute",
8985
- top: { xs: "90px", "md": "60px" },
8986
- left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
8987
- width: { "xs": "100px", "sm": "100px", "md": "200px" },
8988
- border: "5px solid rgb(179, 198, 255)",
8989
- height: { "xs": "100px", "sm": "100px", "md": "200px" },
8990
- borderRadius: "50%"
8991
- },
8992
9716
  style: {
8993
- objectFit: "cover",
8994
- width: "100%",
8995
- height: "100%",
8996
- borderRadius: "50%"
9717
+ imageStyle: {
9718
+ objectFit: "cover",
9719
+ width: "100%",
9720
+ height: "100%",
9721
+ borderRadius: "50%"
9722
+ },
9723
+ containerStyle: {
9724
+ objectFit: "cover",
9725
+ position: "absolute",
9726
+ top: { xs: "90px", "md": "60px" },
9727
+ left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
9728
+ width: { "xs": "100px", "sm": "100px", "md": "200px" },
9729
+ border: "5px solid rgb(179, 198, 255)",
9730
+ height: { "xs": "100px", "sm": "100px", "md": "200px" },
9731
+ borderRadius: "50%"
9732
+ }
8997
9733
  },
8998
9734
  layout: 6
8999
9735
  },
@@ -9008,21 +9744,23 @@ var leaderBoard = {
9008
9744
  main: {
9009
9745
  url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9010
9746
  },
9011
- containerStyle: {
9012
- objectFit: "cover",
9013
- position: "absolute",
9014
- top: { xs: "160px", "md": "130px" },
9015
- left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
9016
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
9017
- border: "5px solid rgb(179, 198, 255)",
9018
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
9019
- borderRadius: "50%"
9020
- },
9021
9747
  style: {
9022
- objectFit: "cover",
9023
- width: "100%",
9024
- height: "100%",
9025
- borderRadius: "50%"
9748
+ imageStyle: {
9749
+ objectFit: "cover",
9750
+ width: "100%",
9751
+ height: "100%",
9752
+ borderRadius: "50%"
9753
+ },
9754
+ containerStyle: {
9755
+ objectFit: "cover",
9756
+ position: "absolute",
9757
+ top: { xs: "160px", "md": "130px" },
9758
+ left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
9759
+ width: { "xs": "80px", "sm": "80px", "md": "180px" },
9760
+ border: "5px solid rgb(179, 198, 255)",
9761
+ height: { "xs": "80px", "sm": "80px", "md": "180px" },
9762
+ borderRadius: "50%"
9763
+ }
9026
9764
  },
9027
9765
  layout: 6
9028
9766
  },
@@ -9037,21 +9775,23 @@ var leaderBoard = {
9037
9775
  main: {
9038
9776
  url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9039
9777
  },
9040
- containerStyle: {
9041
- objectFit: "cover",
9042
- position: "absolute",
9043
- top: { xs: "160px", "md": "130px" },
9044
- left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
9045
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
9046
- border: "5px solid rgb(179, 198, 255)",
9047
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
9048
- borderRadius: "50%"
9049
- },
9050
9778
  style: {
9051
- objectFit: "cover",
9052
- width: "100%",
9053
- height: "100%",
9054
- borderRadius: "50%"
9779
+ imageStyle: {
9780
+ objectFit: "cover",
9781
+ width: "100%",
9782
+ height: "100%",
9783
+ borderRadius: "50%"
9784
+ },
9785
+ containerStyle: {
9786
+ objectFit: "cover",
9787
+ position: "absolute",
9788
+ top: { xs: "160px", "md": "130px" },
9789
+ left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
9790
+ width: { "xs": "80px", "sm": "80px", "md": "180px" },
9791
+ border: "5px solid rgb(179, 198, 255)",
9792
+ height: { "xs": "80px", "sm": "80px", "md": "180px" },
9793
+ borderRadius: "50%"
9794
+ }
9055
9795
  },
9056
9796
  layout: 6
9057
9797
  },
@@ -9274,11 +10014,11 @@ var leaderBoard = {
9274
10014
  fontWeight: 900,
9275
10015
  background: "rgb(179, 198, 255)"
9276
10016
  },
9277
- position: "absolute",
9278
10017
  top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
9279
10018
  border: "2px solid rgb(179, 198, 255)",
9280
10019
  width: "95%",
9281
- left: "2.5%"
10020
+ left: "2.5%",
10021
+ margin: "auto"
9282
10022
  },
9283
10023
  main: {
9284
10024
  disableAction: true,
@@ -9387,62 +10127,8 @@ const BarGraph = {
9387
10127
  widget: "Graph"
9388
10128
  },
9389
10129
  config: {
9390
- main: {
9391
- header: "Bar Graph",
9392
- bottomLabel: "Name of Employe",
9393
- numTicks: 6,
9394
- leftLabel: "Value in lakhs",
9395
- axisLeft: true,
9396
- axisBottom: true,
9397
- hideTicks: false,
9398
- hideLeftAxisLine: false,
9399
- hideBottomAxisLine: false,
9400
- bottomAxisWidth: "10px",
9401
- legend: {
9402
- labelColor: "green",
9403
- legendTitle: "",
9404
- direction: "row",
9405
- align: "none"
9406
- }
9407
- },
9408
- style: {
9409
- containerStyle: {
9410
- width: "100%",
9411
- height: 300
9412
- },
9413
- headerStyle: {},
9414
- tooltipStyle: {},
9415
- labelStyle: {
9416
- margin: { left: 80, bottom: 20 },
9417
- leftLabelOffset: 50,
9418
- bottomLabelOffset: 10
9419
- },
9420
- barStyle: {
9421
- color: {
9422
- firstBarColor: "#6c5efb",
9423
- secondBarColor: "#3f51b5"
9424
- }
9425
- },
9426
- legendStyle: {
9427
- legend: {
9428
- lineHeight: "0.9em",
9429
- fontSize: "8px",
9430
- fontFamily: "arial",
9431
- padding: "10px 10px",
9432
- width: "30%",
9433
- display: "flex",
9434
- justifyContent: "center",
9435
- border: "1px solid rgba(255, 255, 255, 0.3)",
9436
- borderRadius: " 8px",
9437
- marginRight: "auto"
9438
- },
9439
- legendTitle: {
9440
- fontSize: "10px",
9441
- marginBottom: "10px",
9442
- fontWeight: "100"
9443
- }
9444
- }
9445
- }
10130
+ main: {},
10131
+ style: { containerStyle: {} }
9446
10132
  }
9447
10133
  };
9448
10134
  const PieGraph = {
@@ -9453,36 +10139,9 @@ const PieGraph = {
9453
10139
  },
9454
10140
  config: {
9455
10141
  main: {
9456
- header: "Incentive Branch category wise",
9457
- type: "PieGraph",
9458
- bottomLabel: "Name of Employe",
9459
- leftLabel: "Value",
9460
- axisLeft: true,
9461
- axisBottom: true,
9462
- legendAvailable: true,
9463
- legend: {
9464
- labelColor: "green",
9465
- legendTitle: "Branches",
9466
- direction: "row",
9467
- align: "right"
9468
- }
10142
+ type: "PieGraph"
9469
10143
  },
9470
- style: {
9471
- containerStyle: {
9472
- height: "340"
9473
- },
9474
- headerStyle: {},
9475
- tooltipStyle: {
9476
- backgroundColor: "black",
9477
- width: "80px"
9478
- },
9479
- labelStyle: {},
9480
- legendStyle: {
9481
- legend: {},
9482
- legendTitle: {}
9483
- },
9484
- pieStyle: {}
9485
- }
10144
+ style: {}
9486
10145
  }
9487
10146
  };
9488
10147
  const LineGraph = {
@@ -9500,7 +10159,7 @@ const LineGraph = {
9500
10159
  leftLabel: "Incentive",
9501
10160
  gridHidden: true,
9502
10161
  numHidden: false,
9503
- tooltipDataKey: ["First", "Second", "Third"],
10162
+ tooltipDataKey: ["MAMA New Project", "Second", "Third"],
9504
10163
  axisLeft: true,
9505
10164
  axisBottom: true,
9506
10165
  hideLeftAxisLine: false,
@@ -9529,29 +10188,9 @@ const HorizontalBarGraph = {
9529
10188
  },
9530
10189
  config: {
9531
10190
  main: {
9532
- header: " ",
9533
- type: "HorizontalBarGraph",
9534
- bottomLabel: " ",
9535
- leftLabel: "Value",
9536
- axisLeft: false,
9537
- axisBottom: true,
9538
- hideBottomTicks: false,
9539
- hideLeftTicks: false,
9540
- hideLeftAxisLine: true,
9541
- hideBottomAxisLine: false,
9542
- bottomAxisWidth: "10px"
10191
+ type: "HorizontalBarGraph"
9543
10192
  },
9544
- style: {
9545
- containerStyle: {
9546
- width: "100%"
9547
- },
9548
- headerStyle: {},
9549
- tooltipStyle: {},
9550
- labelStyle: {},
9551
- barStyle: {
9552
- color: "#6c5efb"
9553
- }
9554
- }
10193
+ style: {}
9555
10194
  }
9556
10195
  };
9557
10196
  const buildHorizontalBarGraph = (config, componentScope) => {
@@ -9569,7 +10208,11 @@ const buildHorizontalBarGraph = (config, componentScope) => {
9569
10208
  horizontalBarGraph.config.containerStyle.background = config.containerBackground;
9570
10209
  }
9571
10210
  if (config.height) {
9572
- horizontalBarGraph.config.style.containerStyle.height = config.height;
10211
+ horizontalBarGraph.config.style = {
10212
+ containerStyle: {
10213
+ height: config.height
10214
+ }
10215
+ };
9573
10216
  }
9574
10217
  if (config.bottomLabel) {
9575
10218
  horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
@@ -9678,7 +10321,11 @@ const buildPieGraph = (config, componentScope) => {
9678
10321
  pieGraph.config.layout = createLayoutFormat(config.layout);
9679
10322
  }
9680
10323
  if (config.height) {
9681
- pieGraph.config.style.containerStyle.height = config.height;
10324
+ pieGraph.config.style = {
10325
+ containerStyle: {
10326
+ height: config.height
10327
+ }
10328
+ };
9682
10329
  }
9683
10330
  if (config.legendHide) {
9684
10331
  pieGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
@@ -9689,7 +10336,11 @@ const buildPieGraph = (config, componentScope) => {
9689
10336
  pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
9690
10337
  }
9691
10338
  if (config.pieArcColors) {
9692
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10339
+ pieGraph.config.style = {
10340
+ pieStyle: {
10341
+ colorRange: flatObjectValueInArray(config.pieArcColors)
10342
+ }
10343
+ };
9693
10344
  }
9694
10345
  return pieGraph;
9695
10346
  };
@@ -9699,16 +10350,13 @@ const buildStackbarGraph = (config, componentScope) => {
9699
10350
  barGraph.config.layout = createLayoutFormat(config.layout);
9700
10351
  }
9701
10352
  if (config.legendHide) {
9702
- barGraph.config.main.legendAvailable = false;
10353
+ barGraph.config.main.legendAvailable = config.legendHide;
9703
10354
  }
9704
10355
  barGraph.config.main.type = config.graphType;
9705
10356
  barGraph.config.main.header = config.heading;
9706
10357
  if (config.barColor) {
9707
10358
  barGraph.config.barStyle.color = config.barColor;
9708
10359
  }
9709
- if (config.containerBackground) {
9710
- barGraph.config.containerStyle.background = config.containerBackground;
9711
- }
9712
10360
  if (config.height) {
9713
10361
  barGraph.config.style.containerStyle.height = config.height;
9714
10362
  }
@@ -9771,7 +10419,8 @@ var WrapperSection = {
9771
10419
  config: {
9772
10420
  main: {
9773
10421
  rowSpacing: 3,
9774
- divider: true
10422
+ divider: true,
10423
+ label: "Default Label"
9775
10424
  },
9776
10425
  defaultStyle: true
9777
10426
  },
@@ -9782,7 +10431,7 @@ const buildWrapperSection = (config, componentScope) => {
9782
10431
  wrapper.scope = componentScope;
9783
10432
  wrapper.config.main.label = config.label;
9784
10433
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9785
- wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
10434
+ wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
9786
10435
  if (config.defaultStyle) {
9787
10436
  wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
9788
10437
  }
@@ -9801,12 +10450,7 @@ var TextInputField = {
9801
10450
  widget: "InputField"
9802
10451
  },
9803
10452
  config: {
9804
- layout: {
9805
- xs: 11,
9806
- sm: 11,
9807
- md: 5.5,
9808
- lg: 5.5
9809
- },
10453
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
9810
10454
  main: {
9811
10455
  label: ""
9812
10456
  },
@@ -9839,12 +10483,7 @@ var SelectInputField = {
9839
10483
  widget: "SelectInputField"
9840
10484
  },
9841
10485
  config: {
9842
- "layout": {
9843
- "xs": 11,
9844
- "sm": 11,
9845
- "md": 5.5,
9846
- "lg": 5.5
9847
- },
10486
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
9848
10487
  main: {
9849
10488
  label: "",
9850
10489
  type: "text",
@@ -9877,12 +10516,7 @@ var Button = {
9877
10516
  widget: "Button"
9878
10517
  },
9879
10518
  config: {
9880
- layout: {
9881
- xs: 11,
9882
- sm: 11,
9883
- md: 5.5,
9884
- lg: 5.5
9885
- },
10519
+ layout: 3,
9886
10520
  main: {
9887
10521
  name: "Compare",
9888
10522
  variant: "contained",
@@ -9892,7 +10526,7 @@ var Button = {
9892
10526
  styleDefault: false,
9893
10527
  icon: "",
9894
10528
  onClick: "onClick",
9895
- size: "small"
10529
+ size: "medium"
9896
10530
  },
9897
10531
  style: {}
9898
10532
  }
@@ -9941,6 +10575,7 @@ var Table = {
9941
10575
  config: {
9942
10576
  main: {
9943
10577
  onMount: "onMount",
10578
+ enableExpandAll: true,
9944
10579
  allRowData: [],
9945
10580
  downloadAllData: false,
9946
10581
  columns: {
@@ -9973,6 +10608,21 @@ const buildTable = (config, componentScope) => {
9973
10608
  if (config.lazyLoading) {
9974
10609
  table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
9975
10610
  }
10611
+ if (config.enableRowMovement) {
10612
+ table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
10613
+ }
10614
+ if (config.enableExpanding) {
10615
+ table.config.main.enableExpanding = config.enableExpanding === "YES" ? true : false;
10616
+ }
10617
+ if (config.enableExpandAll) {
10618
+ table.config.main.enableExpandAll = config.enableExpandAll === "YES" ? true : false;
10619
+ }
10620
+ if (config.paginateExpandedRows) {
10621
+ table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
10622
+ }
10623
+ if (config.treeStructure) {
10624
+ table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
10625
+ }
9976
10626
  if (config.SelectionAvailable) {
9977
10627
  table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
9978
10628
  }
@@ -10020,7 +10670,7 @@ const buildLazyLoadingTable = (config, componentScope) => {
10020
10670
  table.config.main.label = config.label;
10021
10671
  return table;
10022
10672
  };
10023
- var Box = {
10673
+ const Box = {
10024
10674
  type: "Control",
10025
10675
  scope: "#/properties/emptyBox",
10026
10676
  options: {
@@ -10057,12 +10707,7 @@ const uploadFile = {
10057
10707
  "style": {
10058
10708
  "backgroundColor": "none"
10059
10709
  },
10060
- "layout": {
10061
- "lg": 5.5,
10062
- "md": 5.5,
10063
- "sm": 11,
10064
- "xs": 11
10065
- }
10710
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
10066
10711
  },
10067
10712
  "options": {
10068
10713
  "widget": "UploadFile"
@@ -10079,12 +10724,7 @@ const downloadFile = {
10079
10724
  "style": {
10080
10725
  "backgroundColor": "none"
10081
10726
  },
10082
- "layout": {
10083
- "lg": 5.5,
10084
- "md": 5.5,
10085
- "sm": 11,
10086
- "xs": 11
10087
- }
10727
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
10088
10728
  },
10089
10729
  "options": {
10090
10730
  "widget": "DownloadFile"
@@ -10135,16 +10775,14 @@ var Card = {
10135
10775
  main: {
10136
10776
  rowSpacing: 0.5
10137
10777
  },
10138
- style: {
10139
- wrapperStyle: {
10140
- position: "relative",
10141
- color: "white",
10142
- height: { xs: "120px", md: "160px" },
10143
- width: "100%",
10144
- textAlign: "left",
10145
- background: "#3f51b5",
10146
- borderRadius: "20px"
10147
- }
10778
+ componentsBoxStyle: {
10779
+ position: "relative",
10780
+ color: "white",
10781
+ height: { xs: "120px", md: "160px" },
10782
+ width: "100%",
10783
+ textAlign: "left",
10784
+ background: "#3f51b5",
10785
+ borderRadius: "20px"
10148
10786
  },
10149
10787
  layout: { xs: 12, sm: 12, md: 6, lg: 6 }
10150
10788
  },
@@ -10256,12 +10894,7 @@ var DateInputField = {
10256
10894
  widget: "DateInputField"
10257
10895
  },
10258
10896
  config: {
10259
- layout: {
10260
- xs: 11,
10261
- sm: 11,
10262
- md: 5.5,
10263
- lg: 5.5
10264
- },
10897
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10265
10898
  main: {
10266
10899
  label: "",
10267
10900
  type: "date"
@@ -10275,12 +10908,7 @@ const DateTime = {
10275
10908
  widget: "DateTimeInputField"
10276
10909
  },
10277
10910
  config: {
10278
- layout: {
10279
- xs: 11,
10280
- sm: 11,
10281
- md: 5.5,
10282
- lg: 5.5
10283
- },
10911
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10284
10912
  main: {
10285
10913
  label: "DateTime",
10286
10914
  type: "date"
@@ -10407,7 +11035,7 @@ var MultipleSelect = {
10407
11035
  widget: "MultipleSelect"
10408
11036
  },
10409
11037
  config: {
10410
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
11038
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10411
11039
  main: {
10412
11040
  label: "",
10413
11041
  type: "text",
@@ -10440,7 +11068,7 @@ const buildBasicUiSchema = (config) => {
10440
11068
  pageName: config.name,
10441
11069
  name: config.name,
10442
11070
  accessorKey: config.name,
10443
- header: config.label || config.name,
11071
+ heading: config.label || config.name,
10444
11072
  "elements": []
10445
11073
  };
10446
11074
  };
@@ -10573,7 +11201,7 @@ const RadioUiSchema = {
10573
11201
  widget: "RadioInputField"
10574
11202
  },
10575
11203
  config: {
10576
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
11204
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10577
11205
  main: {
10578
11206
  label: "Enabled",
10579
11207
  options: ["YES", "NO"],
@@ -10597,11 +11225,11 @@ const buildRadio = (config, componentScope) => {
10597
11225
  return Radio;
10598
11226
  };
10599
11227
  const buildEmptyBox = (config, componentScope) => {
10600
- const EmptyBox2 = _.cloneDeep(emptyBox);
11228
+ const EmptyBox = _.cloneDeep(emptyBox);
10601
11229
  if (config.layout) {
10602
- EmptyBox2.config.layout = createLayoutFormat(config.layout);
11230
+ EmptyBox.config.layout = createLayoutFormat(config.layout);
10603
11231
  }
10604
- return EmptyBox2;
11232
+ return EmptyBox;
10605
11233
  };
10606
11234
  const ArrayUiSchema = {
10607
11235
  type: "Control",
@@ -10682,7 +11310,7 @@ const FileInput = {
10682
11310
  widget: "FileInputField"
10683
11311
  },
10684
11312
  config: {
10685
- layout: 11.5,
11313
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10686
11314
  main: {
10687
11315
  required: false,
10688
11316
  onUpload: "onFileUpload",
@@ -10917,6 +11545,9 @@ const buildTreeMap = (config, componentScope) => {
10917
11545
  if (config.graphZoomWidth) {
10918
11546
  treMap.config.main.graphZoomWidth = config.graphZoomWidth;
10919
11547
  }
11548
+ if (config.style) {
11549
+ treMap.config.style = JSON.parse(config.style);
11550
+ }
10920
11551
  return treMap;
10921
11552
  };
10922
11553
  let schema = {