impaktapps-ui-builder 0.0.412-mtreemap.3 → 0.0.412-mtreemap.30

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 (48) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1189 -585
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  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/uischema/button.d.ts +1 -6
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +12 -10
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +5 -5
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +2 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +25 -1
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  15. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -2
  16. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  17. package/package.json +1 -1
  18. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +2 -2
  19. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +4 -4
  20. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +27 -26
  22. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +2 -0
  23. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  25. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +2 -2
  26. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +48 -66
  27. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  28. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  29. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +21 -28
  30. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -8
  31. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +107 -103
  32. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  33. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -118
  34. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
  35. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  36. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +93 -137
  37. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +1 -1
  38. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +487 -283
  41. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  42. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +515 -204
  43. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +104 -98
  44. package/src/impaktapps-ui-builder/builder/services/component.ts +39 -21
  45. package/src/impaktapps-ui-builder/builder/services/event.ts +16 -6
  46. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
  47. package/src/impaktapps-ui-builder/runtime/services/events.ts +28 -34
  48. package/src/impaktapps-ui-builder/runtime/services/service.ts +112 -4
@@ -41,7 +41,7 @@ const PageMasterSchema = {
41
41
  }
42
42
  }
43
43
  },
44
- required: ["template", "name"]
44
+ required: ["template", "name", "label"]
45
45
  };
46
46
  const PageMasterUiSchema = (theme) => {
47
47
  var _a;
@@ -79,15 +79,19 @@ const PageMasterUiSchema = (theme) => {
79
79
  },
80
80
  {
81
81
  type: "Control",
82
- scope: "#/properties/label",
82
+ scope: "#/properties/template",
83
83
  options: {
84
- widget: "InputField"
84
+ widget: "SelectInputField"
85
85
  },
86
86
  config: {
87
87
  layout: { xs: 11, sm: 4, md: 4, lg: 4 },
88
88
  main: {
89
- label: "Label",
90
- options: [],
89
+ label: "Template",
90
+ options: [
91
+ { const: "template1", title: "template1" },
92
+ { const: "template2", title: "template2" },
93
+ { const: "template3", title: "template3" }
94
+ ],
91
95
  color: "secondary",
92
96
  required: true
93
97
  }
@@ -95,223 +99,410 @@ const PageMasterUiSchema = (theme) => {
95
99
  },
96
100
  {
97
101
  type: "Control",
98
- scope: "#/properties/emptyBox",
102
+ scope: "#/properties/label",
99
103
  options: {
100
- widget: "EmptyBox"
104
+ widget: "InputField"
101
105
  },
102
106
  config: {
103
- layout: { xs: 0, sm: 4 }
107
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
108
+ main: {
109
+ label: "Label",
110
+ options: [],
111
+ color: "secondary",
112
+ required: true
113
+ }
104
114
  }
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ type: "TabLayout",
120
+ config: {
121
+ main: {
122
+ tabLabels: ["Components", "events"],
123
+ divider: true
105
124
  },
125
+ defaultStyle: true
126
+ },
127
+ elements: [
106
128
  {
107
- type: "TabLayout",
129
+ type: "Control",
130
+ scope: "#/properties/elements",
131
+ options: {
132
+ widget: "Table"
133
+ },
108
134
  config: {
109
135
  main: {
110
- tabLabels: ["Components", "events"],
111
- divider: true
112
- },
113
- defaultStyle: true
114
- },
115
- elements: [
116
- {
117
- type: "Control",
118
- scope: "#/properties/elements",
119
- options: {
120
- widget: "Table"
121
- },
122
- config: {
123
- main: {
124
- headerIcons: {
125
- elements: [
126
- {
127
- widget: {
128
- type: "Control",
129
- scope: "#/properties/New_Record",
130
- options: {
131
- widget: "IconButton"
132
- },
133
- config: {
134
- main: {
135
- onClick: "onAddClickHandler",
136
- size: "small",
137
- icon: "AddIcon",
138
- iconLabel: "Add New",
139
- styleDefault: true
140
- },
141
- style: {
142
- mt: "6px"
143
- }
144
- }
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"
145
155
  }
146
156
  }
147
- ]
148
- },
149
- disableAction: true,
150
- disableSelection: true,
151
- enableDrag: true
152
- }
153
- },
154
- elements: [
155
- {
156
- accessorKey: "name",
157
- header: "Name"
158
- },
159
- {
160
- accessorKey: "type",
161
- header: "Type"
162
- },
163
- {
164
- header: "Edit",
165
- field: "Reject_Records",
166
- flex: 1,
167
- widget: {
168
- type: "Control",
169
- scope: "#/properties/RejectButton",
170
- options: {
171
- widget: "IconButton"
172
- },
173
- config: {
174
- main: {
175
- icon: "EditIcon",
176
- onClick: "Edit_Components",
177
- tooltipMessage: "Edit This Record"
178
- }
179
157
  }
180
158
  }
159
+ ]
160
+ },
161
+ disableAction: true,
162
+ disableSelection: true,
163
+ enableDrag: true
164
+ }
165
+ },
166
+ elements: [
167
+ {
168
+ accessorKey: "name",
169
+ header: "Name"
170
+ },
171
+ {
172
+ accessorKey: "type",
173
+ header: "Type"
174
+ },
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"
181
184
  },
182
- {
183
- header: "Delete",
184
- field: "Reject_Records",
185
- flex: 1,
186
- widget: {
187
- type: "Control",
188
- scope: "#/properties/RejectButton",
189
- options: {
190
- widget: "IconButton"
191
- },
192
- config: {
193
- main: {
194
- icon: "RejectIcon",
195
- color: "error",
196
- onClick: "Delete_Components",
197
- tooltipMessage: "Reject This Record"
198
- }
199
- }
185
+ config: {
186
+ main: {
187
+ icon: "EditIcon",
188
+ color: "primary",
189
+ onClick: "Edit_Components",
190
+ tooltipMessage: "Edit This Record"
191
+ },
192
+ style: {
193
+ color: theme.palette.primary.main
200
194
  }
201
195
  }
202
- ]
196
+ }
203
197
  },
204
198
  {
205
- type: "Control",
206
- scope: "#/properties/events",
207
- options: {
208
- widget: "Table"
209
- },
210
- config: {
211
- main: {
212
- headerIcons: {
213
- elements: [
214
- {
215
- widget: {
216
- type: "Control",
217
- scope: "#/properties/New_Record",
218
- options: {
219
- widget: "IconButton"
220
- },
221
- config: {
222
- main: {
223
- onClick: "eventAddHandler",
224
- size: "small",
225
- icon: "AddIcon",
226
- iconLabel: "Add New",
227
- styleDefault: true
228
- },
229
- style: {
230
- mt: "6px"
231
- }
232
- }
233
- }
234
- }
235
- ]
236
- },
237
- disableAction: true,
238
- disableSelection: true,
239
- enableDrag: true
240
- }
241
- },
242
- elements: [
243
- {
244
- accessorKey: "eventType",
245
- header: "Event Type"
246
- },
247
- {
248
- accessorKey: "Handler",
249
- header: "Handler"
199
+ header: "Delete",
200
+ field: "Reject_Records",
201
+ flex: 1,
202
+ widget: {
203
+ type: "Control",
204
+ scope: "#/properties/RejectButton",
205
+ options: {
206
+ widget: "IconButton"
250
207
  },
251
- {
252
- accessorKey: "Edit_Approve_Records",
253
- header: "Edit Widget",
254
- widget: {
255
- type: "Control",
256
- scope: "#/properties/Edit_Records",
257
- options: {
258
- widget: "IconButton"
259
- },
260
- config: {
261
- main: {
262
- size: "small",
263
- icon: "EditIcon",
264
- tooltipMessage: "Edit This Record",
265
- onClick: "editEvent"
208
+ config: {
209
+ main: {
210
+ icon: "RejectIcon",
211
+ color: "error",
212
+ onClick: "deletePopUpComponent",
213
+ tooltipMessage: "Reject This Record"
214
+ }
215
+ }
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ type: "Control",
222
+ scope: "#/properties/events",
223
+ options: {
224
+ widget: "Table"
225
+ },
226
+ config: {
227
+ main: {
228
+ headerIcons: {
229
+ elements: [
230
+ {
231
+ widget: {
232
+ type: "Control",
233
+ scope: "#/properties/New_Record",
234
+ options: {
235
+ widget: "IconButton"
266
236
  },
267
- style: {
268
- color: "#3949ab"
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
+ }
269
248
  }
270
249
  }
271
250
  }
251
+ ]
252
+ },
253
+ disableAction: true,
254
+ disableSelection: true,
255
+ enableDrag: true
256
+ }
257
+ },
258
+ elements: [
259
+ {
260
+ accessorKey: "eventType",
261
+ header: "Event Type"
262
+ },
263
+ {
264
+ accessorKey: "Handler",
265
+ header: "Handler"
266
+ },
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"
272
275
  },
273
- {
274
- accessorKey: "Reject_Records",
275
- header: "Delete",
276
- widget: {
277
- type: "Control",
278
- scope: "#/properties/RejectButton",
279
- options: {
280
- widget: "IconButton"
281
- },
282
- config: {
283
- main: {
284
- icon: "RejectIcon",
285
- color: "error",
286
- tooltipMessage: "Reject This Record",
287
- onClick: "deleteEvent"
288
- }
289
- }
276
+ config: {
277
+ main: {
278
+ color: "info",
279
+ size: "small",
280
+ icon: "EditIcon",
281
+ tooltipMessage: "Edit This Record",
282
+ onClick: "editEvent"
283
+ },
284
+ style: {
285
+ color: theme.palette.primary.main
290
286
  }
291
287
  }
292
- ]
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"
305
+ }
306
+ }
307
+ }
293
308
  }
294
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 }
321
+ }
322
+ },
323
+ {
324
+ type: "Control",
325
+ scope: "#/properties/btn",
326
+ options: {
327
+ widget: "Button"
328
+ },
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
+ }
343
+ }
344
+ },
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
+ },
360
+ elements: [
361
+ {
362
+ type: "Control",
363
+ scope: "#/properties/label",
364
+ options: {
365
+ widget: "Box"
366
+ },
367
+ config: {
368
+ layout: 12,
369
+ main: {
370
+ heading: "Are you sure you want to delete ?"
371
+ },
372
+ style: {
373
+ marginTop: "-40px"
374
+ }
375
+ }
295
376
  },
296
377
  {
297
378
  type: "Control",
298
- scope: "#/properties/btn",
379
+ scope: "#/properties/EmptyBox",
380
+ options: {
381
+ widget: "EmptyBox"
382
+ },
383
+ config: {
384
+ main: {},
385
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
386
+ }
387
+ },
388
+ {
389
+ type: "Control",
390
+ scope: "#/properties/ConfirmDeleteCompButton",
299
391
  options: {
300
392
  widget: "Button"
301
393
  },
302
394
  config: {
303
- layout: 11.9,
395
+ layout: 3,
304
396
  main: {
305
- name: "Save",
397
+ name: "Yes",
306
398
  startIcon: "ApproveIcon",
307
399
  variant: "contained",
400
+ color: "info",
308
401
  type: "text",
309
- onClick: "saveHandler",
310
- size: "medium"
402
+ onClick: "Delete_Components",
403
+ size: "small"
404
+ }
405
+ }
406
+ },
407
+ {
408
+ type: "Control",
409
+ scope: "#/properties/CancelDeleteCompButton",
410
+ options: {
411
+ widget: "Button"
412
+ },
413
+ config: {
414
+ layout: 3,
415
+ main: {
416
+ name: "No",
417
+ startIcon: "ApproveIcon",
418
+ variant: "contained",
419
+ color: "info",
420
+ type: "text",
421
+ onClick: "deletePopUpComponent",
422
+ size: "small"
423
+ }
424
+ }
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ type: "Control",
430
+ scope: "#/properties/popUpPageMasterEvent",
431
+ options: {
432
+ widget: "PopUp"
433
+ },
434
+ config: {
435
+ layout: {
436
+ xs: 12,
437
+ sm: 12,
438
+ md: 6,
439
+ lg: 6
440
+ },
441
+ main: {}
442
+ },
443
+ elements: [
444
+ {
445
+ type: "Control",
446
+ scope: "#/properties/label",
447
+ options: {
448
+ widget: "Box"
449
+ },
450
+ config: {
451
+ layout: 12,
452
+ main: {
453
+ heading: "Are you sure you want to delete ?"
311
454
  },
312
455
  style: {
313
- width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
314
- float: "right"
456
+ marginTop: "-40px"
457
+ }
458
+ }
459
+ },
460
+ {
461
+ type: "Control",
462
+ scope: "#/properties/EmptyBox",
463
+ options: {
464
+ widget: "EmptyBox"
465
+ },
466
+ config: {
467
+ main: {},
468
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
469
+ }
470
+ },
471
+ {
472
+ type: "Control",
473
+ scope: "#/properties/ConfirmDeleteEventButton",
474
+ options: {
475
+ widget: "Button"
476
+ },
477
+ config: {
478
+ layout: 3,
479
+ main: {
480
+ name: "Yes",
481
+ startIcon: "ApproveIcon",
482
+ variant: "contained",
483
+ color: "info",
484
+ type: "text",
485
+ onClick: "deleteEvent",
486
+ size: "small"
487
+ }
488
+ }
489
+ },
490
+ {
491
+ type: "Control",
492
+ scope: "#/properties/CancelDeleteEventButton",
493
+ options: {
494
+ widget: "Button"
495
+ },
496
+ config: {
497
+ layout: 3,
498
+ main: {
499
+ name: "No",
500
+ startIcon: "ApproveIcon",
501
+ variant: "contained",
502
+ color: "info",
503
+ type: "text",
504
+ onClick: "deletePopUpEvent",
505
+ size: "small"
315
506
  }
316
507
  }
317
508
  }
@@ -6238,58 +6429,257 @@ const componentBasicUiSchema = (theme) => {
6238
6429
  }
6239
6430
  }
6240
6431
  },
6241
- {
6242
- type: "Control",
6243
- scope: "#/properties/layout",
6244
- layout: 12,
6245
- options: {
6246
- detail: {
6247
- type: "HorizontalLayout",
6248
- elements: [
6249
- {
6250
- type: "Control",
6251
- scope: "#/properties/key",
6252
- options: {
6253
- widget: "SelectInputField"
6254
- },
6255
- config: {
6256
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6257
- main: {
6258
- label: "Screen Size"
6259
- }
6260
- }
6261
- },
6262
- {
6263
- type: "Control",
6264
- scope: "#/properties/value",
6265
- options: {
6266
- widget: "InputField"
6267
- },
6268
- config: {
6269
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6270
- main: {
6271
- label: "Value",
6272
- type: "number",
6273
- helperText: "Number should be in range of 0 to 12",
6274
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6275
- }
6276
- }
6277
- },
6278
- {
6279
- type: "Control",
6280
- scope: "#/properties/emptyBox",
6281
- options: {
6282
- widget: "EmptyBox"
6283
- },
6284
- config: {
6285
- layout: { xs: 0, sm: 4 }
6286
- }
6287
- }
6288
- ]
6289
- }
6290
- }
6432
+ {
6433
+ type: "Control",
6434
+ scope: "#/properties/columnFormat",
6435
+ options: {
6436
+ widget: "SelectInputField"
6437
+ },
6438
+ config: {
6439
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6440
+ main: {
6441
+ label: "Column Format"
6442
+ }
6443
+ }
6444
+ },
6445
+ {
6446
+ type: "Control",
6447
+ scope: "#/properties/proc",
6448
+ config: {
6449
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6450
+ },
6451
+ options: {
6452
+ widget: "EmptyBox"
6453
+ }
6454
+ },
6455
+ {
6456
+ type: "Control",
6457
+ scope: "#/properties/proc",
6458
+ config: {
6459
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6460
+ },
6461
+ options: {
6462
+ widget: "EmptyBox"
6463
+ }
6464
+ },
6465
+ {
6466
+ type: "Control",
6467
+ scope: "#/properties/layout",
6468
+ layout: 12,
6469
+ options: {
6470
+ detail: {
6471
+ type: "HorizontalLayout",
6472
+ elements: [
6473
+ {
6474
+ type: "Control",
6475
+ scope: "#/properties/key",
6476
+ options: {
6477
+ widget: "SelectInputField"
6478
+ },
6479
+ config: {
6480
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6481
+ main: {
6482
+ label: "Screen Size"
6483
+ }
6484
+ }
6485
+ },
6486
+ {
6487
+ type: "Control",
6488
+ scope: "#/properties/value",
6489
+ options: {
6490
+ widget: "InputField"
6491
+ },
6492
+ config: {
6493
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6494
+ main: {
6495
+ label: "Value",
6496
+ type: "number",
6497
+ helperText: "Number should be in range of 0 to 12",
6498
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6499
+ }
6500
+ }
6501
+ },
6502
+ {
6503
+ type: "Control",
6504
+ scope: "#/properties/proc",
6505
+ config: {
6506
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6507
+ },
6508
+ options: {
6509
+ widget: "EmptyBox"
6510
+ }
6511
+ }
6512
+ ]
6513
+ }
6514
+ }
6515
+ }
6516
+ ]
6517
+ }
6518
+ ]
6519
+ },
6520
+ {
6521
+ type: "Control",
6522
+ scope: "#/properties/popUpComponentSection",
6523
+ options: {
6524
+ widget: "PopUp"
6525
+ },
6526
+ config: {
6527
+ layout: {
6528
+ xs: 12,
6529
+ sm: 12,
6530
+ md: 12,
6531
+ lg: 12
6532
+ },
6533
+ main: {}
6534
+ },
6535
+ elements: [
6536
+ {
6537
+ type: "Control",
6538
+ scope: "#/properties/label",
6539
+ options: {
6540
+ widget: "Box"
6541
+ },
6542
+ config: {
6543
+ layout: 12,
6544
+ main: {
6545
+ heading: "Are you sure you want to delete ?"
6546
+ },
6547
+ style: {
6548
+ marginTop: "-40px"
6549
+ }
6550
+ }
6551
+ },
6552
+ {
6553
+ type: "Control",
6554
+ scope: "#/properties/EmptyBox",
6555
+ options: {
6556
+ widget: "EmptyBox"
6557
+ },
6558
+ config: {
6559
+ main: {},
6560
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6561
+ }
6562
+ },
6563
+ {
6564
+ type: "Control",
6565
+ scope: "#/properties/ConfirmDeleteCompButton",
6566
+ options: {
6567
+ widget: "Button"
6568
+ },
6569
+ config: {
6570
+ layout: 3,
6571
+ main: {
6572
+ name: "Yes",
6573
+ startIcon: "ApproveIcon",
6574
+ variant: "contained",
6575
+ color: "info",
6576
+ type: "text",
6577
+ onClick: "deleteComponents",
6578
+ size: "small"
6579
+ }
6580
+ }
6581
+ },
6582
+ {
6583
+ type: "Control",
6584
+ scope: "#/properties/CancelDeleteCompButton",
6585
+ options: {
6586
+ widget: "Button"
6587
+ },
6588
+ config: {
6589
+ layout: 3,
6590
+ main: {
6591
+ name: "No",
6592
+ startIcon: "ApproveIcon",
6593
+ variant: "contained",
6594
+ color: "info",
6595
+ type: "text",
6596
+ onClick: "deletePopUpComponent",
6597
+ size: "small"
6598
+ }
6599
+ }
6600
+ }
6601
+ ]
6602
+ },
6603
+ {
6604
+ type: "Control",
6605
+ scope: "#/properties/popUpEventSection",
6606
+ options: {
6607
+ widget: "PopUp"
6608
+ },
6609
+ config: {
6610
+ layout: {
6611
+ xs: 12,
6612
+ sm: 12,
6613
+ md: 12,
6614
+ lg: 12
6615
+ },
6616
+ main: {}
6617
+ },
6618
+ elements: [
6619
+ {
6620
+ type: "Control",
6621
+ scope: "#/properties/label",
6622
+ options: {
6623
+ widget: "Box"
6624
+ },
6625
+ config: {
6626
+ layout: 12,
6627
+ main: {
6628
+ heading: "Are you sure you want to delete ?"
6629
+ },
6630
+ style: {
6631
+ marginTop: "-40px"
6291
6632
  }
6292
- ]
6633
+ }
6634
+ },
6635
+ {
6636
+ type: "Control",
6637
+ scope: "#/properties/EmptyBox",
6638
+ options: {
6639
+ widget: "EmptyBox"
6640
+ },
6641
+ config: {
6642
+ main: {},
6643
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6644
+ }
6645
+ },
6646
+ {
6647
+ type: "Control",
6648
+ scope: "#/properties/ConfirmDeleteEventButton",
6649
+ options: {
6650
+ widget: "Button"
6651
+ },
6652
+ config: {
6653
+ layout: 3,
6654
+ main: {
6655
+ name: "Yes",
6656
+ startIcon: "ApproveIcon",
6657
+ variant: "contained",
6658
+ color: "info",
6659
+ type: "text",
6660
+ onClick: "deleteEvent",
6661
+ size: "small"
6662
+ }
6663
+ }
6664
+ },
6665
+ {
6666
+ type: "Control",
6667
+ scope: "#/properties/CancelDeleteEventButton",
6668
+ options: {
6669
+ widget: "Button"
6670
+ },
6671
+ config: {
6672
+ layout: 3,
6673
+ main: {
6674
+ name: "No",
6675
+ startIcon: "ApproveIcon",
6676
+ variant: "contained",
6677
+ color: "info",
6678
+ type: "text",
6679
+ onClick: "deletePopUpEvent",
6680
+ size: "small"
6681
+ }
6682
+ }
6293
6683
  }
6294
6684
  ]
6295
6685
  },
@@ -6519,12 +6909,7 @@ const CoreSection = {
6519
6909
  widget: "SelectInputField"
6520
6910
  },
6521
6911
  config: {
6522
- layout: {
6523
- xs: 12,
6524
- sm: 12,
6525
- md: 6,
6526
- lg: 6
6527
- },
6912
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6528
6913
  main: {
6529
6914
  label: "Column Format"
6530
6915
  }
@@ -6534,7 +6919,17 @@ const CoreSection = {
6534
6919
  type: "Control",
6535
6920
  scope: "#/properties/proc",
6536
6921
  config: {
6537
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6922
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6923
+ },
6924
+ options: {
6925
+ widget: "EmptyBox"
6926
+ }
6927
+ },
6928
+ {
6929
+ type: "Control",
6930
+ scope: "#/properties/proc",
6931
+ config: {
6932
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6538
6933
  },
6539
6934
  options: {
6540
6935
  widget: "EmptyBox"
@@ -6580,12 +6975,12 @@ const CoreSection = {
6580
6975
  },
6581
6976
  {
6582
6977
  type: "Control",
6583
- scope: "#/properties/emptyBox",
6978
+ scope: "#/properties/proc",
6979
+ config: {
6980
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6981
+ },
6584
6982
  options: {
6585
6983
  widget: "EmptyBox"
6586
- },
6587
- config: {
6588
- layout: { xs: 0, sm: 4 }
6589
6984
  }
6590
6985
  }
6591
6986
  ]
@@ -6594,118 +6989,117 @@ const CoreSection = {
6594
6989
  }
6595
6990
  ]
6596
6991
  };
6597
- const EventSection = {
6598
- type: "HorizontalLayout",
6599
- elements: [
6600
- {
6601
- type: "Control",
6602
- scope: "#/properties/events",
6603
- options: {
6604
- widget: "Table"
6605
- },
6606
- config: {
6607
- main: {
6608
- headerIcons: {
6609
- elements: [
6610
- {
6611
- widget: {
6612
- type: "Control",
6613
- scope: "#/properties/New_Record",
6614
- options: {
6615
- widget: "IconButton"
6616
- },
6617
- config: {
6618
- main: {
6619
- color: "info",
6620
- onClick: "eventAddHandler",
6621
- size: "small",
6622
- icon: "AddIcon",
6623
- iconLabel: "Add New",
6624
- styleDefault: true
6992
+ const EventSection = (theme) => {
6993
+ const uiSchema = {
6994
+ type: "HorizontalLayout",
6995
+ elements: [
6996
+ {
6997
+ type: "Control",
6998
+ scope: "#/properties/events",
6999
+ options: {
7000
+ widget: "Table"
7001
+ },
7002
+ config: {
7003
+ main: {
7004
+ headerIcons: {
7005
+ elements: [
7006
+ {
7007
+ widget: {
7008
+ type: "Control",
7009
+ scope: "#/properties/New_Record",
7010
+ options: {
7011
+ widget: "IconButton"
6625
7012
  },
6626
- style: {
6627
- mt: "6px"
7013
+ config: {
7014
+ main: {
7015
+ color: "info",
7016
+ onClick: "eventAddHandler",
7017
+ size: "small",
7018
+ icon: "AddIcon",
7019
+ iconLabel: "Add New",
7020
+ styleDefault: true
7021
+ },
7022
+ style: {
7023
+ mt: "6px"
7024
+ }
6628
7025
  }
6629
7026
  }
6630
7027
  }
6631
- }
6632
- ]
6633
- },
6634
- disableAction: true,
6635
- disableSelection: true,
6636
- enableDrag: true
6637
- }
6638
- },
6639
- elements: [
6640
- {
6641
- accessorKey: "eventType",
6642
- header: "Event Type"
6643
- },
6644
- {
6645
- accessorKey: "Handler",
6646
- header: "Handler"
6647
- },
6648
- {
6649
- accessorKey: "Edit_Approve_Records",
6650
- header: "Edit Widget",
6651
- widget: {
6652
- type: "Control",
6653
- scope: "#/properties/Edit_Records",
6654
- options: {
6655
- widget: "IconButton"
7028
+ ]
6656
7029
  },
6657
- config: {
6658
- main: {
6659
- color: "info",
6660
- size: "small",
6661
- icon: "EditIcon",
6662
- tooltipMessage: "Edit This Record",
6663
- onClick: "eventEditHandler"
7030
+ disableAction: true,
7031
+ disableSelection: true,
7032
+ enableDrag: true
7033
+ }
7034
+ },
7035
+ elements: [
7036
+ {
7037
+ accessorKey: "eventType",
7038
+ header: "Event Type"
7039
+ },
7040
+ {
7041
+ accessorKey: "Handler",
7042
+ header: "Handler"
7043
+ },
7044
+ {
7045
+ accessorKey: "Edit_Approve_Records",
7046
+ header: "Edit Widget",
7047
+ widget: {
7048
+ type: "Control",
7049
+ scope: "#/properties/Edit_Records",
7050
+ options: {
7051
+ widget: "IconButton"
6664
7052
  },
6665
- style: {
6666
- color: "#3949ab"
7053
+ config: {
7054
+ main: {
7055
+ color: "info",
7056
+ size: "small",
7057
+ icon: "EditIcon",
7058
+ tooltipMessage: "Edit This Record",
7059
+ onClick: "eventEditHandler"
7060
+ },
7061
+ style: {
7062
+ color: theme.palette.primary.main
7063
+ }
6667
7064
  }
6668
7065
  }
6669
- }
6670
- },
6671
- {
6672
- accessorKey: "Reject_Records",
6673
- header: "Delete",
6674
- widget: {
6675
- type: "Control",
6676
- scope: "#/properties/RejectButton",
6677
- accessorKeyName: "Reject_Records",
6678
- options: {
6679
- widget: "IconButton"
6680
- },
6681
- config: {
6682
- main: {
6683
- icon: "RejectIcon",
6684
- color: "error",
6685
- tooltipMessage: "Reject This Record",
6686
- onClick: "deleteEvent"
7066
+ },
7067
+ {
7068
+ accessorKey: "Reject_Records",
7069
+ header: "Delete",
7070
+ widget: {
7071
+ type: "Control",
7072
+ scope: "#/properties/RejectButton",
7073
+ accessorKeyName: "Reject_Records",
7074
+ options: {
7075
+ widget: "IconButton"
7076
+ },
7077
+ config: {
7078
+ main: {
7079
+ icon: "RejectIcon",
7080
+ color: "error",
7081
+ tooltipMessage: "Reject This Record",
7082
+ onClick: "deletePopUpEvent"
7083
+ }
6687
7084
  }
6688
7085
  }
6689
7086
  }
6690
- }
6691
- ]
6692
- }
6693
- ]
7087
+ ]
7088
+ }
7089
+ ]
7090
+ };
7091
+ return uiSchema;
6694
7092
  };
6695
- const EmptyBox = {
7093
+ var emptyBox = {
6696
7094
  type: "Control",
6697
- scope: `#/properties/empty`,
7095
+ scope: "#/properties/emptyBox",
6698
7096
  options: {
6699
7097
  widget: "EmptyBox"
6700
7098
  },
6701
7099
  config: {
6702
- layout: {
6703
- xs: 11,
6704
- sm: 11,
6705
- md: 5.5,
6706
- lg: 5.5
6707
- },
6708
- main: {}
7100
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
7101
+ main: {},
7102
+ style: {}
6709
7103
  }
6710
7104
  };
6711
7105
  const cardLayout = {
@@ -6723,12 +7117,7 @@ const cardLayout = {
6723
7117
  widget: "SelectInputField"
6724
7118
  },
6725
7119
  config: {
6726
- layout: {
6727
- xs: 11,
6728
- sm: 11,
6729
- md: 5.5,
6730
- lg: 5.5
6731
- },
7120
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6732
7121
  main: {
6733
7122
  label: "Screen Size"
6734
7123
  }
@@ -6741,12 +7130,7 @@ const cardLayout = {
6741
7130
  widget: "InputField"
6742
7131
  },
6743
7132
  config: {
6744
- layout: {
6745
- xs: 11,
6746
- sm: 11,
6747
- md: 5.5,
6748
- lg: 5.5
6749
- },
7133
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6750
7134
  main: {
6751
7135
  label: "Value",
6752
7136
  type: "number",
@@ -6754,7 +7138,8 @@ const cardLayout = {
6754
7138
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6755
7139
  }
6756
7140
  }
6757
- }
7141
+ },
7142
+ emptyBox
6758
7143
  ]
6759
7144
  }
6760
7145
  }
@@ -6763,7 +7148,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6763
7148
  return {
6764
7149
  type: "Control",
6765
7150
  scope: `#/properties/${parentScope}`,
6766
- layout: 11.5,
7151
+ layout: 12,
6767
7152
  options: {
6768
7153
  "elementLabelProp": childScope,
6769
7154
  detail: {
@@ -6776,18 +7161,14 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6776
7161
  widget: "InputField"
6777
7162
  },
6778
7163
  config: {
6779
- layout: {
6780
- xs: 11,
6781
- sm: 11,
6782
- md: 5.5,
6783
- lg: 5.5
6784
- },
7164
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6785
7165
  main: {
6786
7166
  label: childLabel || "Labels for Tab"
6787
7167
  }
6788
7168
  }
6789
7169
  },
6790
- EmptyBox
7170
+ emptyBox,
7171
+ emptyBox
6791
7172
  ]
6792
7173
  }
6793
7174
  }
@@ -6801,17 +7182,13 @@ sizeHolder.options.detail.elements[1] = {
6801
7182
  widget: "InputField"
6802
7183
  },
6803
7184
  config: {
6804
- layout: {
6805
- xs: 11,
6806
- sm: 11,
6807
- md: 5.5,
6808
- lg: 5.5
6809
- },
7185
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6810
7186
  main: {
6811
7187
  label: "Size"
6812
7188
  }
6813
7189
  }
6814
7190
  };
7191
+ sizeHolder.options.detail.elements[2] = emptyBox;
6815
7192
  const getInputField = (scope, label) => {
6816
7193
  return {
6817
7194
  type: "Control",
@@ -6820,12 +7197,7 @@ const getInputField = (scope, label) => {
6820
7197
  widget: "InputField"
6821
7198
  },
6822
7199
  config: {
6823
- layout: {
6824
- xs: 11,
6825
- sm: 11,
6826
- md: 5.5,
6827
- lg: 5.5
6828
- },
7200
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6829
7201
  main: {
6830
7202
  label
6831
7203
  }
@@ -6840,12 +7212,7 @@ const getRadioInputField = (scope, label, options) => {
6840
7212
  widget: "RadioInputField"
6841
7213
  },
6842
7214
  config: {
6843
- layout: {
6844
- xs: 11,
6845
- sm: 11,
6846
- md: 5.5,
6847
- lg: 5.5
6848
- },
7215
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6849
7216
  main: {
6850
7217
  label,
6851
7218
  options
@@ -6888,7 +7255,7 @@ const getSelectField = (scope, label, options) => {
6888
7255
  widget: "SelectInputField"
6889
7256
  },
6890
7257
  config: {
6891
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
7258
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6892
7259
  main: {
6893
7260
  label,
6894
7261
  type: "text"
@@ -6909,7 +7276,8 @@ const buildPropertiesSection = function(type) {
6909
7276
  getInputField("linkType", "linkType"),
6910
7277
  getInputField("graphHeight", "Graph Height"),
6911
7278
  getInputField("graphWidth", "Graph Width"),
6912
- getInputField("graphZoomHeight", "Zoom Height")
7279
+ getInputField("graphZoomHeight", "Zoom Height"),
7280
+ emptyBox
6913
7281
  ];
6914
7282
  break;
6915
7283
  case "InputSlider":
@@ -6917,7 +7285,9 @@ const buildPropertiesSection = function(type) {
6917
7285
  getInputField("max", "Max Limit"),
6918
7286
  getInputField("step", "Step"),
6919
7287
  getInputField("min", "Min Limit"),
6920
- getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"])
7288
+ getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
7289
+ emptyBox,
7290
+ emptyBox
6921
7291
  ];
6922
7292
  break;
6923
7293
  case "DataGrid":
@@ -6926,6 +7296,8 @@ const buildPropertiesSection = function(type) {
6926
7296
  getInputField("elevation", "Card Elevation"),
6927
7297
  getInputField("height", "Grid height"),
6928
7298
  getInputField("justifyContent", "justifyContent"),
7299
+ emptyBox,
7300
+ emptyBox,
6929
7301
  cardLayout
6930
7302
  ];
6931
7303
  break;
@@ -6936,6 +7308,7 @@ const buildPropertiesSection = function(type) {
6936
7308
  getInputField("resetText", "Reset Text"),
6937
7309
  getInputField("completeText", "Complete Text"),
6938
7310
  getSelectField("orientation", "Orientation Type"),
7311
+ emptyBox,
6939
7312
  getArrayControl("sectionLabels", "label")
6940
7313
  ];
6941
7314
  break;
@@ -6943,21 +7316,22 @@ const buildPropertiesSection = function(type) {
6943
7316
  uiSchema.elements = [
6944
7317
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
6945
7318
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
6946
- getInputField("maxWidth", "Max. Width"),
6947
- EmptyBox
7319
+ getInputField("maxWidth", "Max. Width")
6948
7320
  ];
6949
7321
  break;
6950
7322
  case "Text":
6951
7323
  uiSchema.elements = [
6952
7324
  getInputField("placeholder", "Placeholder"),
6953
- EmptyBox,
7325
+ emptyBox,
7326
+ emptyBox,
6954
7327
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
6955
7328
  ];
6956
7329
  break;
6957
7330
  case "TextArea":
6958
7331
  uiSchema.elements = [
6959
7332
  getInputField("placeholder", "Placeholder"),
6960
- EmptyBox
7333
+ emptyBox,
7334
+ emptyBox
6961
7335
  ];
6962
7336
  break;
6963
7337
  case "SpeedoMeter":
@@ -6966,7 +7340,8 @@ const buildPropertiesSection = function(type) {
6966
7340
  getInputField("heading", "Container Heading"),
6967
7341
  getInputField("heading", "Container Heading"),
6968
7342
  getInputField("speedoCaption", "Speedometer Caption"),
6969
- getInputField("width", "Speedometer Width")
7343
+ getInputField("width", "Speedometer Width"),
7344
+ emptyBox
6970
7345
  ];
6971
7346
  break;
6972
7347
  case "RankCard":
@@ -6974,7 +7349,9 @@ const buildPropertiesSection = function(type) {
6974
7349
  getInputField("rank", "Rank"),
6975
7350
  getInputField("image", "Image Url"),
6976
7351
  getInputField("title", "Card Title"),
6977
- getInputField("description", "Card Description")
7352
+ getInputField("description", "Card Description"),
7353
+ emptyBox,
7354
+ emptyBox
6978
7355
  ];
6979
7356
  break;
6980
7357
  case "LeaderBoard":
@@ -6983,6 +7360,8 @@ const buildPropertiesSection = function(type) {
6983
7360
  getInputField("firstImage", "First Image url"),
6984
7361
  getInputField("secondImage", "Second Image url"),
6985
7362
  getInputField("thirdImage", "Third Image url"),
7363
+ emptyBox,
7364
+ emptyBox,
6986
7365
  getTextArea("functionCode", "Write Compare Code", false)
6987
7366
  ];
6988
7367
  break;
@@ -6998,7 +7377,9 @@ const buildPropertiesSection = function(type) {
6998
7377
  getInputField("heading", "Heading"),
6999
7378
  getInputField("bottomLabel_1", "First BottomLabel"),
7000
7379
  getInputField("bottomLabel_2", "Second BottomLabel"),
7001
- getInputField("bottomLabel_3", "Third BottomLabel")
7380
+ getInputField("bottomLabel_3", "Third BottomLabel"),
7381
+ emptyBox,
7382
+ emptyBox
7002
7383
  ];
7003
7384
  break;
7004
7385
  case "card":
@@ -7006,7 +7387,7 @@ const buildPropertiesSection = function(type) {
7006
7387
  getInputField("url", "Image Url"),
7007
7388
  getInputField("label", "Label"),
7008
7389
  getInputField("description", "Description"),
7009
- EmptyBox
7390
+ emptyBox
7010
7391
  ];
7011
7392
  break;
7012
7393
  case "Button":
@@ -7016,7 +7397,7 @@ const buildPropertiesSection = function(type) {
7016
7397
  getSelectField("color", "Color"),
7017
7398
  getInputField("tooltipMessage", "Tooltip Message"),
7018
7399
  getSelectField("defaultStyle", "Default Style"),
7019
- EmptyBox
7400
+ emptyBox
7020
7401
  ];
7021
7402
  break;
7022
7403
  case "Graph":
@@ -7029,6 +7410,7 @@ const buildPropertiesSection = function(type) {
7029
7410
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7030
7411
  getInputField("yAxisValue", "Y-AxisValue"),
7031
7412
  getInputField("xAxisValue", "X-AxisValue"),
7413
+ emptyBox,
7032
7414
  getArrayControl("legendLabels", "label"),
7033
7415
  getArrayControl("pieArcColors", "color")
7034
7416
  ];
@@ -7038,13 +7420,16 @@ const buildPropertiesSection = function(type) {
7038
7420
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7039
7421
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7040
7422
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
7041
- getInputField("rowSpacing", "Row Spacing")
7423
+ getInputField("rowSpacing", "Row Spacing"),
7424
+ emptyBox,
7425
+ emptyBox
7042
7426
  ];
7043
7427
  break;
7044
7428
  case "TabSection":
7045
7429
  uiSchema.elements = [
7046
7430
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7047
7431
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7432
+ emptyBox,
7048
7433
  getArrayControl("sectionLabels", "label")
7049
7434
  ];
7050
7435
  break;
@@ -7069,13 +7454,15 @@ const buildPropertiesSection = function(type) {
7069
7454
  case "Select":
7070
7455
  uiSchema.elements = [
7071
7456
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7072
- getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
7457
+ getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7458
+ emptyBox
7073
7459
  ];
7074
7460
  break;
7075
7461
  case "MultipleSelect":
7076
7462
  uiSchema.elements = [
7077
7463
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7078
- EmptyBox
7464
+ emptyBox,
7465
+ emptyBox
7079
7466
  ];
7080
7467
  break;
7081
7468
  }
@@ -7116,100 +7503,106 @@ const StyleSection = {
7116
7503
  }
7117
7504
  ]
7118
7505
  };
7119
- const TableSection = {
7120
- type: "HorizontalLayout",
7121
- elements: [
7122
- {
7123
- type: "Control",
7124
- scope: "#/properties/elements",
7125
- options: {
7126
- widget: "Table"
7127
- },
7128
- config: {
7129
- main: {
7130
- headerIcons: {
7131
- elements: [
7132
- {
7133
- widget: {
7134
- type: "Control",
7135
- scope: "#/properties/New_Record",
7136
- options: {
7137
- widget: "IconButton"
7138
- },
7139
- config: {
7140
- main: {
7141
- color: "info",
7142
- onClick: "widgetAddClickHandler",
7143
- size: "small",
7144
- icon: "AddIcon",
7145
- iconLabel: "Add New",
7146
- styleDefault: true
7506
+ const TableSection = (theme) => {
7507
+ const uiSchema = {
7508
+ type: "HorizontalLayout",
7509
+ elements: [
7510
+ {
7511
+ type: "Control",
7512
+ scope: "#/properties/elements",
7513
+ options: {
7514
+ widget: "Table"
7515
+ },
7516
+ config: {
7517
+ main: {
7518
+ headerIcons: {
7519
+ elements: [
7520
+ {
7521
+ widget: {
7522
+ type: "Control",
7523
+ scope: "#/properties/New_Record",
7524
+ options: {
7525
+ widget: "IconButton"
7147
7526
  },
7148
- style: {
7149
- mt: "6px"
7527
+ config: {
7528
+ main: {
7529
+ color: "info",
7530
+ onClick: "widgetAddClickHandler",
7531
+ size: "small",
7532
+ icon: "AddIcon",
7533
+ iconLabel: "Add New",
7534
+ styleDefault: true
7535
+ },
7536
+ style: {
7537
+ mt: "6px"
7538
+ }
7150
7539
  }
7151
7540
  }
7152
7541
  }
7153
- }
7154
- ]
7155
- },
7156
- disableAction: true,
7157
- disableSelection: true,
7158
- enableDrag: true
7159
- }
7160
- },
7161
- elements: [
7162
- {
7163
- accessorKey: "name",
7164
- header: "Name"
7165
- },
7166
- {
7167
- accessorKey: "type",
7168
- header: "Type"
7169
- },
7170
- {
7171
- header: "Edit Record",
7172
- field: "Reject_Records",
7173
- flex: 1,
7174
- widget: {
7175
- type: "Control",
7176
- scope: "#/properties/RejectButton",
7177
- options: {
7178
- widget: "IconButton"
7542
+ ]
7179
7543
  },
7180
- config: {
7181
- main: {
7182
- icon: "EditIcon",
7183
- color: "primary",
7184
- onClick: "editComponents",
7185
- tooltipMessage: "Reject This Record"
7186
- }
7187
- }
7544
+ disableAction: true,
7545
+ disableSelection: true,
7546
+ enableDrag: true
7188
7547
  }
7189
7548
  },
7190
- {
7191
- header: "Delete",
7192
- field: "Reject_Records",
7193
- flex: 1,
7194
- widget: {
7195
- type: "Control",
7196
- scope: "#/properties/RejectButton",
7197
- options: {
7198
- widget: "IconButton"
7199
- },
7200
- config: {
7201
- main: {
7202
- icon: "RejectIcon",
7203
- color: "error",
7204
- onClick: "deleteComponent",
7205
- tooltipMessage: "Reject This Record"
7549
+ elements: [
7550
+ {
7551
+ accessorKey: "name",
7552
+ header: "Name"
7553
+ },
7554
+ {
7555
+ accessorKey: "type",
7556
+ header: "Type"
7557
+ },
7558
+ {
7559
+ header: "Edit Record",
7560
+ field: "Reject_Records",
7561
+ flex: 1,
7562
+ widget: {
7563
+ type: "Control",
7564
+ scope: "#/properties/RejectButton",
7565
+ options: {
7566
+ widget: "IconButton"
7567
+ },
7568
+ config: {
7569
+ main: {
7570
+ icon: "EditIcon",
7571
+ color: "primary",
7572
+ onClick: "editComponents",
7573
+ tooltipMessage: "Reject This Record"
7574
+ },
7575
+ style: {
7576
+ color: theme.palette.primary.main
7577
+ }
7578
+ }
7579
+ }
7580
+ },
7581
+ {
7582
+ header: "Delete",
7583
+ field: "Reject_Records",
7584
+ flex: 1,
7585
+ widget: {
7586
+ type: "Control",
7587
+ scope: "#/properties/RejectButton",
7588
+ options: {
7589
+ widget: "IconButton"
7590
+ },
7591
+ config: {
7592
+ main: {
7593
+ icon: "RejectIcon",
7594
+ color: "error",
7595
+ onClick: "deletePopUpComponent",
7596
+ tooltipMessage: "Reject This Record"
7597
+ }
7206
7598
  }
7207
7599
  }
7208
7600
  }
7209
- }
7210
- ]
7211
- }
7212
- ]
7601
+ ]
7602
+ }
7603
+ ]
7604
+ };
7605
+ return uiSchema;
7213
7606
  };
7214
7607
  const ValueTab = {
7215
7608
  type: "HorizontalLayout",
@@ -7217,7 +7610,7 @@ const ValueTab = {
7217
7610
  {
7218
7611
  type: "Control",
7219
7612
  scope: "#/properties/value",
7220
- layout: 11.5,
7613
+ layout: 12,
7221
7614
  options: {
7222
7615
  detail: {
7223
7616
  type: "HorizontalLayout",
@@ -7343,10 +7736,10 @@ var buildConfig = (FormData) => {
7343
7736
  const createLayoutFormat = (config) => {
7344
7737
  if (_.isEmpty(config)) {
7345
7738
  return {
7346
- xs: 11,
7347
- sm: 11,
7348
- md: 5.5,
7349
- lg: 5.5
7739
+ xs: 12,
7740
+ sm: 12,
7741
+ md: 12,
7742
+ lg: 12
7350
7743
  };
7351
7744
  }
7352
7745
  let data = {};
@@ -7503,14 +7896,14 @@ const refreshPage = (type, store2) => {
7503
7896
  const sectionUiSchema = {
7504
7897
  Core: CoreSection,
7505
7898
  Value: ValueTab,
7506
- style: StyleSection,
7507
- Event: EventSection,
7508
- Components: TableSection,
7899
+ Style: StyleSection,
7900
+ Event: EventSection(store2.theme.myTheme),
7901
+ Components: TableSection(store2.theme.myTheme),
7509
7902
  Properties: buildPropertiesSection(type),
7510
7903
  Validation: ValidationSection
7511
7904
  };
7512
7905
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
7513
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7906
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
7514
7907
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7515
7908
  }
7516
7909
  store2.setUiSchema(UiSchema);
@@ -7557,22 +7950,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7557
7950
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7558
7951
  }
7559
7952
  },
7560
- deleteComponents: function() {
7953
+ deleteComponents: function(shouldUpdateDialog = true) {
7561
7954
  var _a;
7562
7955
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7563
- const rowId = dynamicData2.path.split(".")[1];
7956
+ const rowId = localStorage.getItem("rowId");
7564
7957
  store2.formData.elements.splice(rowId, 1);
7565
7958
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7566
7959
  const data = path ? _.get(response, path) : response;
7567
7960
  store2.setFormdata(data);
7961
+ if (shouldUpdateDialog) {
7962
+ store2.updateDialog("popUpComponentSection");
7963
+ }
7964
+ localStorage.removeItem("rowId");
7568
7965
  },
7569
- deleteEvent: function() {
7966
+ deleteEvent: function(shouldUpdateDialog = true) {
7570
7967
  var _a;
7571
7968
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7572
- const rowId = dynamicData2.path.split(".")[1];
7969
+ const rowId = localStorage.getItem("rowId");
7573
7970
  store2.formData.events.splice(rowId, 1);
7574
7971
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7575
7972
  store2.setFormdata(_.get(response, path));
7973
+ if (shouldUpdateDialog) {
7974
+ store2.updateDialog("popUpEventSection");
7975
+ }
7976
+ localStorage.removeItem("rowId");
7576
7977
  },
7577
7978
  widgetAddClickHandler: function() {
7578
7979
  var _a;
@@ -7608,6 +8009,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7608
8009
  },
7609
8010
  backHandler: function() {
7610
8011
  store2.navigate(-1);
8012
+ },
8013
+ deletePopUpComponent: function() {
8014
+ const rowId = dynamicData2.path.split(".")[1];
8015
+ localStorage.setItem("rowId", rowId);
8016
+ store2.updateDialog("popUpComponentSection");
8017
+ },
8018
+ deletePopUpEvent: function() {
8019
+ const rowId = dynamicData2.path.split(".")[1];
8020
+ localStorage.setItem("rowId", rowId);
8021
+ store2.updateDialog("popUpEventSection");
7611
8022
  }
7612
8023
  };
7613
8024
  };
@@ -7662,7 +8073,10 @@ var pageMaster = (funcParams) => {
7662
8073
  },
7663
8074
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7664
8075
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7665
- Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
8076
+ Delete_Components: async function() {
8077
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
8078
+ store2.updateDialog("popUpPageMasterComponent");
8079
+ },
7666
8080
  eventAddHandler: function() {
7667
8081
  var _a;
7668
8082
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -7682,10 +8096,22 @@ var pageMaster = (funcParams) => {
7682
8096
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7683
8097
  },
7684
8098
  deleteEvent: function() {
7685
- const rowId = dynamicData2.path.split(".")[1];
8099
+ const rowId = localStorage.getItem("rowId");
7686
8100
  store2.formData.events.splice(rowId, 1);
7687
8101
  const response = saveFormdataInLocalStorage(store2.ctx.core.data);
7688
8102
  store2.setFormdata(response);
8103
+ store2.updateDialog("popUpPageMasterEvent");
8104
+ localStorage.removeItem("rowId");
8105
+ },
8106
+ deletePopUpComponent: function() {
8107
+ const rowId = dynamicData2.path.split(".")[1];
8108
+ localStorage.setItem("rowId", rowId);
8109
+ store2.updateDialog("popUpPageMasterComponent");
8110
+ },
8111
+ deletePopUpEvent: function() {
8112
+ const rowId = dynamicData2.path.split(".")[1];
8113
+ localStorage.setItem("rowId", rowId);
8114
+ store2.updateDialog("popUpPageMasterEvent");
7689
8115
  }
7690
8116
  };
7691
8117
  };
@@ -7810,28 +8236,15 @@ const EventUiSchema = (theme) => {
7810
8236
  }
7811
8237
  }
7812
8238
  },
8239
+ getSelectField("Handler", "Handler"),
7813
8240
  {
7814
8241
  type: "Control",
7815
- scope: `#/properties/Handler`,
7816
- options: {
7817
- widget: "SelectInputField"
7818
- },
7819
- config: {
7820
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7821
- main: {
7822
- label: "Handler",
7823
- type: "text"
7824
- }
7825
- }
7826
- },
7827
- {
7828
- type: "Control",
7829
- scope: "#/properties/emptyBox",
8242
+ scope: "#/properties/EmptyBox",
7830
8243
  options: {
7831
8244
  widget: "EmptyBox"
7832
8245
  },
7833
8246
  config: {
7834
- layout: { xs: 0, sm: 4 }
8247
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7835
8248
  }
7836
8249
  }
7837
8250
  ]
@@ -7894,13 +8307,14 @@ const EventUiSchema = (theme) => {
7894
8307
  },
7895
8308
  config: {
7896
8309
  main: {
8310
+ color: "info",
7897
8311
  size: "small",
7898
8312
  icon: "EditIcon",
7899
8313
  tooltipMessage: "Edit This Record",
7900
8314
  onClick: "editEvent"
7901
8315
  },
7902
8316
  style: {
7903
- color: "#3949ab"
8317
+ color: theme.palette.primary.main
7904
8318
  }
7905
8319
  }
7906
8320
  }
@@ -7919,7 +8333,7 @@ const EventUiSchema = (theme) => {
7919
8333
  icon: "RejectIcon",
7920
8334
  color: "error",
7921
8335
  tooltipMessage: "Reject This Record",
7922
- onClick: "deleteEvent"
8336
+ onClick: "deletePopUpEvent"
7923
8337
  }
7924
8338
  }
7925
8339
  }
@@ -7990,6 +8404,89 @@ const EventUiSchema = (theme) => {
7990
8404
  }
7991
8405
  }
7992
8406
  },
8407
+ {
8408
+ type: "Control",
8409
+ scope: "#/properties/popUpEvent",
8410
+ options: {
8411
+ widget: "PopUp"
8412
+ },
8413
+ config: {
8414
+ layout: {
8415
+ xs: 12,
8416
+ sm: 12,
8417
+ md: 6,
8418
+ lg: 6
8419
+ },
8420
+ main: {}
8421
+ },
8422
+ elements: [
8423
+ {
8424
+ type: "Control",
8425
+ scope: "#/properties/label",
8426
+ options: {
8427
+ widget: "Box"
8428
+ },
8429
+ config: {
8430
+ layout: 12,
8431
+ main: {
8432
+ heading: "Are you sure you want to delete ?"
8433
+ },
8434
+ style: {
8435
+ marginTop: "-40px"
8436
+ }
8437
+ }
8438
+ },
8439
+ {
8440
+ type: "Control",
8441
+ scope: "#/properties/EmptyBox",
8442
+ options: {
8443
+ widget: "EmptyBox"
8444
+ },
8445
+ config: {
8446
+ main: {},
8447
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
8448
+ }
8449
+ },
8450
+ {
8451
+ type: "Control",
8452
+ scope: "#/properties/ConfirmDeleteEventButton",
8453
+ options: {
8454
+ widget: "Button"
8455
+ },
8456
+ config: {
8457
+ layout: 3,
8458
+ main: {
8459
+ name: "Yes",
8460
+ startIcon: "ApproveIcon",
8461
+ variant: "contained",
8462
+ color: "info",
8463
+ type: "text",
8464
+ onClick: "deleteEvent",
8465
+ size: "small"
8466
+ }
8467
+ }
8468
+ },
8469
+ {
8470
+ type: "Control",
8471
+ scope: "#/properties/CancelDeleteEventButton",
8472
+ options: {
8473
+ widget: "Button"
8474
+ },
8475
+ config: {
8476
+ layout: 3,
8477
+ main: {
8478
+ name: "No",
8479
+ startIcon: "ApproveIcon",
8480
+ variant: "contained",
8481
+ color: "info",
8482
+ type: "text",
8483
+ onClick: "deletePopUpEvent",
8484
+ size: "small"
8485
+ }
8486
+ }
8487
+ }
8488
+ ]
8489
+ },
7993
8490
  {
7994
8491
  type: "Control",
7995
8492
  scope: "#/properties/notify",
@@ -8282,6 +8779,17 @@ const refreshSectionUiSchema = {
8282
8779
  }
8283
8780
  }
8284
8781
  },
8782
+ {
8783
+ type: "Control",
8784
+ scope: "#/properties/emptyBox",
8785
+ options: {
8786
+ widget: "EmptyBox"
8787
+ },
8788
+ config: {
8789
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8790
+ main: {}
8791
+ }
8792
+ },
8285
8793
  {
8286
8794
  type: "Control",
8287
8795
  scope: "#/properties/emptyBox",
@@ -8299,18 +8807,6 @@ const refreshSectionUiSchema = {
8299
8807
  }
8300
8808
  ]
8301
8809
  };
8302
- var emptyBox = {
8303
- type: "Control",
8304
- scope: "#/properties/emptyBox",
8305
- options: {
8306
- widget: "EmptyBox"
8307
- },
8308
- config: {
8309
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8310
- main: {},
8311
- style: {}
8312
- }
8313
- };
8314
8810
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8315
8811
  return {
8316
8812
  setPage: async function() {
@@ -8325,18 +8821,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8325
8821
  const schema2 = _.cloneDeep(EventSchema);
8326
8822
  if (handlerType) {
8327
8823
  if (handlerType === "custom") {
8328
- uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8329
- uiSchema.elements[1].elements[0].elements[3] = emptyBox;
8824
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8330
8825
  uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8331
8826
  schema2.required = ["eventType", "Handler", "eventCode"];
8332
8827
  } else if (handlerType === "api") {
8828
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
8333
8829
  uiSchema.elements[0].elements[0].elements[3] = APISection;
8334
8830
  schema2.required = ["eventType", "Handler", "method", "path"];
8335
8831
  } else if (handlerType === "inBuiltFunction") {
8336
8832
  uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8337
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
8833
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
8338
8834
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8339
8835
  } else if (handlerType === "refresh") {
8836
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
8340
8837
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
8341
8838
  schema2.properties.refreshElements.required = ["value"];
8342
8839
  schema2.properties.refreshElements.items.required = ["value"];
@@ -8353,8 +8850,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8353
8850
  store22.setUiSchema(uiSchema);
8354
8851
  },
8355
8852
  getFormData: Component(store2, dynamicData2, submitHandler, service2).getFormdata,
8356
- getUiSchema: async function() {
8357
- return await EventUiSchema(store2.theme.myTheme);
8853
+ getUiSchema: function() {
8854
+ return EventUiSchema;
8358
8855
  },
8359
8856
  getSchema: () => {
8360
8857
  return EventSchema;
@@ -8389,9 +8886,17 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8389
8886
  store2.setSearchParams(store2.searchParams);
8390
8887
  this.setPage();
8391
8888
  },
8392
- deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
8889
+ deleteEvent: async function() {
8890
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
8891
+ store2.updateDialog("popUpEvent");
8892
+ },
8393
8893
  backHandler: function() {
8394
8894
  store2.navigate(-1);
8895
+ },
8896
+ deletePopUpEvent: function() {
8897
+ const rowId = dynamicData2.path.split(".")[1];
8898
+ localStorage.setItem("rowId", rowId);
8899
+ store2.updateDialog("popUpEvent");
8395
8900
  }
8396
8901
  };
8397
8902
  };
@@ -8513,7 +9018,6 @@ function getRefreshElements(eventConfig, eventGropus) {
8513
9018
  result.push(result[0]);
8514
9019
  }
8515
9020
  }
8516
- console.log(result);
8517
9021
  return result;
8518
9022
  }
8519
9023
  async function executeRefreshHandler(params2) {
@@ -8615,17 +9119,25 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
8615
9119
  }
8616
9120
  }
8617
9121
  }
8618
- const buildBodyFormat = (body2, formData, userValue2) => {
9122
+ const buildBodyFormat = (body2, formData, userValue2, store2) => {
8619
9123
  let finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
8620
9124
  body2.map((elem) => {
8621
- var _a, _b;
9125
+ var _a, _b, _c, _d, _e;
8622
9126
  if (typeof (elem == null ? void 0 : elem.value) !== "string") {
8623
9127
  finalBody[elem.key] = elem.value;
8624
9128
  } else {
8625
9129
  if ((_a = elem == null ? void 0 : elem.value) == null ? void 0 : _a.startsWith("$userValue")) {
8626
9130
  const finalpath = elem.value.substring(11);
8627
9131
  finalBody[elem.key] = _.get(userValue2, finalpath);
8628
- } else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
9132
+ } else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$urlParams")) {
9133
+ const finalpath = elem.value.substring(11);
9134
+ const value = (_c = store2 == null ? void 0 : store2.searchParams) == null ? void 0 : _c.get(finalpath);
9135
+ finalBody[elem.key] = value;
9136
+ } else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
9137
+ const finalpath = elem.value.substring(7);
9138
+ const value = JSON.parse(localStorage.getItem(finalpath) || '""');
9139
+ finalBody[elem.key] = value;
9140
+ } else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
8629
9141
  const finalpath = elem.value.substring(1);
8630
9142
  finalBody[elem.key] = _.get(formData, finalpath);
8631
9143
  } else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
@@ -8673,7 +9185,7 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
8673
9185
  headers = buildHeadersFormat(compConfig.headers);
8674
9186
  }
8675
9187
  if (compConfig.body) {
8676
- 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) };
9188
+ 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) };
8677
9189
  }
8678
9190
  const promiseChain = { body, headers };
8679
9191
  if (compConfig.apiBody) {
@@ -8754,7 +9266,7 @@ var service = (funcParams) => {
8754
9266
  };
8755
9267
  return {
8756
9268
  setPage: async function() {
8757
- var _a;
9269
+ var _a, _b, _c, _d;
8758
9270
  funcParams.store.setFormdata({});
8759
9271
  funcParams.store.newData = {};
8760
9272
  const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
@@ -8770,7 +9282,114 @@ var service = (funcParams) => {
8770
9282
  }
8771
9283
  const config = pageData == null ? void 0 : pageData.config;
8772
9284
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
8773
- const schema2 = (_a = pageData == null ? void 0 : pageData.schema) != null ? _a : { type: "object", properties: {} };
9285
+ window.localStorage.setItem("pageName", config.label);
9286
+ window.dispatchEvent(new Event("pageNameChanged"));
9287
+ const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
9288
+ uiSchema.elements.push(
9289
+ {
9290
+ type: "HorizontalLayout",
9291
+ config: {
9292
+ main: {
9293
+ direction: "row"
9294
+ },
9295
+ style: {
9296
+ flexDirection: "row",
9297
+ position: "absolute",
9298
+ bottom: 0,
9299
+ marginBottom: "-8px",
9300
+ height: "fit-content",
9301
+ overflow: "hidden",
9302
+ zIndex: 1e3,
9303
+ width: "inherit"
9304
+ }
9305
+ },
9306
+ elements: [
9307
+ {
9308
+ type: "Control",
9309
+ scope: "#/properties/FooterText",
9310
+ options: {
9311
+ widget: "Box"
9312
+ },
9313
+ config: {
9314
+ main: {
9315
+ heading: "Copywriter@ACT21.IO"
9316
+ },
9317
+ style: {
9318
+ color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
9319
+ fontSize: "12px",
9320
+ textAlign: "center",
9321
+ lineHeight: 1,
9322
+ width: "fit-content",
9323
+ left: "50%",
9324
+ position: "relative",
9325
+ margin: 0,
9326
+ flexGrow: 1,
9327
+ height: 0
9328
+ }
9329
+ }
9330
+ },
9331
+ {
9332
+ type: "Control",
9333
+ scope: "#/properties/backIcon",
9334
+ options: {
9335
+ widget: "Box"
9336
+ },
9337
+ config: {
9338
+ main: {
9339
+ iconName: "PrevIcon",
9340
+ onClick: "backHandler",
9341
+ width: "fit-content"
9342
+ },
9343
+ style: {
9344
+ fill: theme.palette.primary.main,
9345
+ width: 20,
9346
+ height: 0,
9347
+ margin: 0,
9348
+ top: 0,
9349
+ right: "82px",
9350
+ position: "absolute",
9351
+ fontSize: "12px",
9352
+ cursor: "pointer",
9353
+ ":hover": {
9354
+ fill: theme.palette.primary.dark
9355
+ }
9356
+ }
9357
+ }
9358
+ },
9359
+ {
9360
+ type: "Control",
9361
+ scope: "#/properties/text",
9362
+ options: {
9363
+ widget: "Box"
9364
+ },
9365
+ config: {
9366
+ main: {
9367
+ heading: "Previous Page",
9368
+ onClick: "backHandler"
9369
+ },
9370
+ style: {
9371
+ textAlign: "left",
9372
+ lineHeight: 1,
9373
+ height: 0,
9374
+ width: "fit-content",
9375
+ color: theme.palette.primary.main,
9376
+ fontSize: "12px",
9377
+ cursor: "pointer",
9378
+ marginLeft: "2px",
9379
+ marginRight: 0,
9380
+ top: 3,
9381
+ right: "12px",
9382
+ position: "absolute",
9383
+ ":hover": {
9384
+ color: theme.palette.primary.dark
9385
+ }
9386
+ }
9387
+ }
9388
+ }
9389
+ ]
9390
+ }
9391
+ );
9392
+ const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
8774
9393
  eventGroups = {};
8775
9394
  eventGroups = extractEvents(config);
8776
9395
  executeEventsParameters = {
@@ -8795,8 +9414,6 @@ var service = (funcParams) => {
8795
9414
  eventGroups,
8796
9415
  formDataHolder
8797
9416
  });
8798
- const jsonres = await fetch("https://jsonplaceholder.typicode.com/todos/1");
8799
- await jsonres.json();
8800
9417
  funcParams.store.setSchema(
8801
9418
  (pre) => {
8802
9419
  return {
@@ -8956,9 +9573,12 @@ var leaderBoard = {
8956
9573
  label: "LeaderBoard",
8957
9574
  divider: true
8958
9575
  },
8959
- style: { wrapperStyle: {
8960
- height: { xs: 850, sm: 1e3 }
8961
- } },
9576
+ style: {
9577
+ wrapperStyle: {
9578
+ display: "flex",
9579
+ gap: "10px"
9580
+ }
9581
+ },
8962
9582
  wrapperStyle: {
8963
9583
  position: "relative",
8964
9584
  width: "100%"
@@ -9267,11 +9887,11 @@ var leaderBoard = {
9267
9887
  fontWeight: 900,
9268
9888
  background: "rgb(179, 198, 255)"
9269
9889
  },
9270
- position: "absolute",
9271
9890
  top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
9272
9891
  border: "2px solid rgb(179, 198, 255)",
9273
9892
  width: "95%",
9274
- left: "2.5%"
9893
+ left: "2.5%",
9894
+ margin: "auto"
9275
9895
  },
9276
9896
  main: {
9277
9897
  disableAction: true,
@@ -9410,7 +10030,7 @@ const LineGraph = {
9410
10030
  leftLabel: "Incentive",
9411
10031
  gridHidden: true,
9412
10032
  numHidden: false,
9413
- tooltipDataKey: ["First", "Second", "Third"],
10033
+ tooltipDataKey: ["MAMA New Project", "Second", "Third"],
9414
10034
  axisLeft: true,
9415
10035
  axisBottom: true,
9416
10036
  hideLeftAxisLine: false,
@@ -9616,6 +10236,7 @@ const buildStackbarGraph = (config, componentScope) => {
9616
10236
  if (config.leftLabel) {
9617
10237
  barGraph.config.main.leftLabel = config.leftLabel;
9618
10238
  }
10239
+ barGraph.scope = componentScope;
9619
10240
  return barGraph;
9620
10241
  };
9621
10242
  var RunnerBoyProgressBar = {
@@ -9668,7 +10289,8 @@ var WrapperSection = {
9668
10289
  config: {
9669
10290
  main: {
9670
10291
  rowSpacing: 3,
9671
- divider: true
10292
+ divider: true,
10293
+ label: "Default Label"
9672
10294
  },
9673
10295
  defaultStyle: true
9674
10296
  },
@@ -9679,7 +10301,7 @@ const buildWrapperSection = (config, componentScope) => {
9679
10301
  wrapper.scope = componentScope;
9680
10302
  wrapper.config.main.label = config.label;
9681
10303
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9682
- wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
10304
+ wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
9683
10305
  if (config.defaultStyle) {
9684
10306
  wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
9685
10307
  }
@@ -9764,12 +10386,7 @@ var Button = {
9764
10386
  widget: "Button"
9765
10387
  },
9766
10388
  config: {
9767
- layout: {
9768
- xs: 11,
9769
- sm: 11,
9770
- md: 5.5,
9771
- lg: 5.5
9772
- },
10389
+ layout: 3,
9773
10390
  main: {
9774
10391
  name: "Compare",
9775
10392
  variant: "contained",
@@ -9779,7 +10396,7 @@ var Button = {
9779
10396
  styleDefault: false,
9780
10397
  icon: "",
9781
10398
  onClick: "onClick",
9782
- size: "small"
10399
+ size: "medium"
9783
10400
  },
9784
10401
  style: {}
9785
10402
  }
@@ -9944,12 +10561,7 @@ const uploadFile = {
9944
10561
  "style": {
9945
10562
  "backgroundColor": "none"
9946
10563
  },
9947
- "layout": {
9948
- "lg": 5.5,
9949
- "md": 5.5,
9950
- "sm": 11,
9951
- "xs": 11
9952
- }
10564
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
9953
10565
  },
9954
10566
  "options": {
9955
10567
  "widget": "UploadFile"
@@ -9966,12 +10578,7 @@ const downloadFile = {
9966
10578
  "style": {
9967
10579
  "backgroundColor": "none"
9968
10580
  },
9969
- "layout": {
9970
- "lg": 5.5,
9971
- "md": 5.5,
9972
- "sm": 11,
9973
- "xs": 11
9974
- }
10581
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
9975
10582
  },
9976
10583
  "options": {
9977
10584
  "widget": "DownloadFile"
@@ -10022,14 +10629,16 @@ var Card = {
10022
10629
  main: {
10023
10630
  rowSpacing: 0.5
10024
10631
  },
10025
- componentsBoxStyle: {
10026
- position: "relative",
10027
- color: "white",
10028
- height: { xs: "120px", md: "160px" },
10029
- width: "100%",
10030
- textAlign: "left",
10031
- background: "#3f51b5",
10032
- borderRadius: "20px"
10632
+ style: {
10633
+ componentsBoxStyle: {
10634
+ position: "relative",
10635
+ color: "white",
10636
+ height: { xs: "120px", md: "160px" },
10637
+ width: "100%",
10638
+ textAlign: "left",
10639
+ background: "#3f51b5",
10640
+ borderRadius: "20px"
10641
+ }
10033
10642
  },
10034
10643
  layout: { xs: 12, sm: 12, md: 6, lg: 6 }
10035
10644
  },
@@ -10155,12 +10764,7 @@ const DateTime = {
10155
10764
  widget: "DateTimeInputField"
10156
10765
  },
10157
10766
  config: {
10158
- layout: {
10159
- xs: 11,
10160
- sm: 11,
10161
- md: 5.5,
10162
- lg: 5.5
10163
- },
10767
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10164
10768
  main: {
10165
10769
  label: "DateTime",
10166
10770
  type: "date"
@@ -10320,7 +10924,7 @@ const buildBasicUiSchema = (config) => {
10320
10924
  pageName: config.name,
10321
10925
  name: config.name,
10322
10926
  accessorKey: config.name,
10323
- header: config.label || config.name,
10927
+ heading: config.label || config.name,
10324
10928
  "elements": []
10325
10929
  };
10326
10930
  };
@@ -10453,7 +11057,7 @@ const RadioUiSchema = {
10453
11057
  widget: "RadioInputField"
10454
11058
  },
10455
11059
  config: {
10456
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
11060
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10457
11061
  main: {
10458
11062
  label: "Enabled",
10459
11063
  options: ["YES", "NO"],
@@ -10477,11 +11081,11 @@ const buildRadio = (config, componentScope) => {
10477
11081
  return Radio;
10478
11082
  };
10479
11083
  const buildEmptyBox = (config, componentScope) => {
10480
- const EmptyBox2 = _.cloneDeep(emptyBox);
11084
+ const EmptyBox = _.cloneDeep(emptyBox);
10481
11085
  if (config.layout) {
10482
- EmptyBox2.config.layout = createLayoutFormat(config.layout);
11086
+ EmptyBox.config.layout = createLayoutFormat(config.layout);
10483
11087
  }
10484
- return EmptyBox2;
11088
+ return EmptyBox;
10485
11089
  };
10486
11090
  const ArrayUiSchema = {
10487
11091
  type: "Control",
@@ -10562,7 +11166,7 @@ const FileInput = {
10562
11166
  widget: "FileInputField"
10563
11167
  },
10564
11168
  config: {
10565
- layout: 11.5,
11169
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10566
11170
  main: {
10567
11171
  required: false,
10568
11172
  onUpload: "onFileUpload",
@@ -11005,7 +11609,7 @@ const buildUiSchema = (config) => {
11005
11609
  switch (config.graphType) {
11006
11610
  case "BarGraph":
11007
11611
  case "StackBarGraph":
11008
- elements = buildStackbarGraph(config);
11612
+ elements = buildStackbarGraph(config, componentScope);
11009
11613
  break;
11010
11614
  case "LineGraph":
11011
11615
  elements = buildLineGraph(config, componentScope);