impaktapps-ui-builder 0.0.100 → 0.0.101-alpha.2

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 (62) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1998 -1528
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +17 -17
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +94 -23
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +52 -22
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
  17. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
  18. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  19. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
  20. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
  21. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
  22. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
  23. package/package.json +5 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -0
  25. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
  26. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +7 -2
  27. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +18 -14
  28. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
  30. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -2
  31. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +22 -0
  32. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +4 -15
  33. package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
  34. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +16 -4
  35. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
  36. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +11 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
  38. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +17 -10
  39. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -1
  40. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +103 -46
  41. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
  42. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -28
  43. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -366
  44. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  45. package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
  46. package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
  47. package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
  48. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
  49. package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
  50. package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
  51. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -1
  52. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +424 -202
  53. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
  54. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +576 -221
  55. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
  56. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +339 -111
  57. package/src/impaktapps-ui-builder/builder/services/component.ts +94 -8
  58. package/src/impaktapps-ui-builder/builder/services/event.ts +19 -4
  59. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +20 -2
  60. package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
  61. package/src/impaktapps-ui-builder/runtime/services/events.ts +23 -19
  62. package/src/impaktapps-ui-builder/runtime/services/service.ts +108 -3
@@ -39,23 +39,26 @@ const PageMasterSchema = {
39
39
  }
40
40
  }
41
41
  }
42
+ },
43
+ RemoveItemButton: {
44
+ disabled: true
42
45
  }
43
46
  },
44
47
  required: ["template", "name", "label"]
45
48
  };
46
49
  const PageMasterUiSchema = (theme) => {
47
- var _a;
50
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
48
51
  const uiSchema = {
49
52
  type: "HorizontalLayout",
50
- heading: "Page Master",
53
+ heading: "Page",
51
54
  elements: [
52
55
  {
53
56
  type: "WrapperLayout",
54
57
  config: {
55
- main: {},
56
- wrapperStyle: {
57
- marginLeft: theme.spacing(2),
58
- backgroundColor: theme.palette.background.default
58
+ main: {
59
+ label: "Basic Details",
60
+ isAccordion: true,
61
+ gap: "8px"
59
62
  }
60
63
  },
61
64
  elements: [
@@ -66,9 +69,9 @@ const PageMasterUiSchema = (theme) => {
66
69
  widget: "InputField"
67
70
  },
68
71
  config: {
69
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
72
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
70
73
  main: {
71
- label: "Name",
74
+ label: "Page Name",
72
75
  options: [],
73
76
  color: "secondary",
74
77
  errorMessage: "Name should be start with 'page_'",
@@ -77,26 +80,6 @@ const PageMasterUiSchema = (theme) => {
77
80
  }
78
81
  }
79
82
  },
80
- {
81
- type: "Control",
82
- scope: "#/properties/template",
83
- options: {
84
- widget: "SelectInputField"
85
- },
86
- config: {
87
- layout: { xs: 6, sm: 6, 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
- }
98
- }
99
- },
100
83
  {
101
84
  type: "Control",
102
85
  scope: "#/properties/label",
@@ -104,9 +87,9 @@ const PageMasterUiSchema = (theme) => {
104
87
  widget: "InputField"
105
88
  },
106
89
  config: {
107
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
90
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
108
91
  main: {
109
- label: "Label",
92
+ label: "Page Heading",
110
93
  options: [],
111
94
  color: "secondary",
112
95
  required: true
@@ -117,7 +100,7 @@ const PageMasterUiSchema = (theme) => {
117
100
  type: "Control",
118
101
  scope: "#/properties/EmptyBox",
119
102
  config: {
120
- layout: { xs: 6, sm: 6, md: 0, lg: 0 }
103
+ layout: { xs: 0, sm: 0, md: 4, lg: 6 }
121
104
  },
122
105
  options: {
123
106
  widget: "EmptyBox"
@@ -128,11 +111,24 @@ const PageMasterUiSchema = (theme) => {
128
111
  {
129
112
  type: "TabLayout",
130
113
  config: {
114
+ layout: 12,
131
115
  main: {
132
- tabLabels: ["Components", "events"],
133
- divider: true
116
+ tabLabels: ["Page Components", "Page Events"]
134
117
  },
135
- defaultStyle: true
118
+ style: {
119
+ TabPanelStyle: {
120
+ padding: 0
121
+ }
122
+ },
123
+ TabsStyle: {
124
+ borderTop: `1px solid ${theme.palette.common.black}29`,
125
+ marginBottom: "3px",
126
+ paddingBottom: "4px",
127
+ boxShadow: "0px 3px 4px #afafaf80",
128
+ "& .MuiTabs-indicator": {
129
+ bottom: "6px"
130
+ }
131
+ }
136
132
  },
137
133
  elements: [
138
134
  {
@@ -156,12 +152,45 @@ const PageMasterUiSchema = (theme) => {
156
152
  main: {
157
153
  onClick: "onAddClickHandler",
158
154
  size: "small",
159
- icon: "AddIcon",
160
- iconLabel: "Add New",
155
+ icon: "TableAddIcon",
156
+ iconLabel: "Add",
161
157
  styleDefault: true
162
158
  },
163
159
  style: {
164
- mt: "6px"
160
+ mt: "6px",
161
+ color: "inherit",
162
+ fill: "inherit",
163
+ "&:hover": {
164
+ color: "inherit",
165
+ fill: "inherit"
166
+ }
167
+ }
168
+ }
169
+ }
170
+ },
171
+ {
172
+ widget: {
173
+ type: "Control",
174
+ scope: "#/properties/Paste_Component",
175
+ options: {
176
+ widget: "IconButton"
177
+ },
178
+ config: {
179
+ main: {
180
+ onClick: "copyPasteElement",
181
+ size: "small",
182
+ icon: "PasteIcon",
183
+ iconLabel: "Paste",
184
+ styleDefault: true
185
+ },
186
+ style: {
187
+ mt: "6px",
188
+ color: "inherit",
189
+ fill: "inherit",
190
+ "&:hover": {
191
+ color: "inherit",
192
+ fill: "inherit"
193
+ }
165
194
  }
166
195
  }
167
196
  }
@@ -176,16 +205,21 @@ const PageMasterUiSchema = (theme) => {
176
205
  elements: [
177
206
  {
178
207
  accessorKey: "name",
179
- header: "Name"
208
+ header: "Name",
209
+ size: 300,
210
+ type: "string"
180
211
  },
181
212
  {
182
213
  accessorKey: "type",
183
- header: "Type"
214
+ header: "Type",
215
+ size: 300,
216
+ type: "string"
184
217
  },
185
218
  {
186
219
  header: "Edit",
187
220
  field: "Reject_Records",
188
- flex: 1,
221
+ size: 150,
222
+ type: "action",
189
223
  widget: {
190
224
  type: "Control",
191
225
  scope: "#/properties/RejectButton",
@@ -194,13 +228,15 @@ const PageMasterUiSchema = (theme) => {
194
228
  },
195
229
  config: {
196
230
  main: {
197
- icon: "EditIcon",
198
- color: "primary",
231
+ icon: "TableEditIcon",
199
232
  onClick: "Edit_Components",
200
233
  tooltipMessage: "Edit This Record"
201
234
  },
202
235
  style: {
203
- color: theme.palette.primary.main
236
+ fill: theme.palette.primary.main,
237
+ "& :hover": {
238
+ fill: theme.palette.primary.dark
239
+ }
204
240
  }
205
241
  }
206
242
  }
@@ -208,7 +244,8 @@ const PageMasterUiSchema = (theme) => {
208
244
  {
209
245
  header: "Delete",
210
246
  field: "Reject_Records",
211
- flex: 1,
247
+ size: 150,
248
+ type: "action",
212
249
  widget: {
213
250
  type: "Control",
214
251
  scope: "#/properties/RejectButton",
@@ -217,10 +254,34 @@ const PageMasterUiSchema = (theme) => {
217
254
  },
218
255
  config: {
219
256
  main: {
220
- icon: "RejectIcon",
221
- color: "error",
257
+ icon: "Bin",
222
258
  onClick: "deletePopUpComponent",
223
259
  tooltipMessage: "Reject This Record"
260
+ },
261
+ style: {
262
+ fill: theme.palette.primary.main,
263
+ "& :hover": {
264
+ fill: theme.palette.primary.dark
265
+ }
266
+ }
267
+ }
268
+ }
269
+ },
270
+ {
271
+ header: "Copy",
272
+ field: "Copy_Component",
273
+ flex: 1,
274
+ widget: {
275
+ type: "Control",
276
+ scope: "#/properties/Copy_Component",
277
+ options: {
278
+ widget: "IconButton"
279
+ },
280
+ config: {
281
+ main: {
282
+ icon: "FileCopyIcon",
283
+ onClick: "copyPasteElement",
284
+ styleDefault: true
224
285
  }
225
286
  }
226
287
  }
@@ -248,8 +309,35 @@ const PageMasterUiSchema = (theme) => {
248
309
  main: {
249
310
  onClick: "eventAddHandler",
250
311
  size: "small",
251
- icon: "AddIcon",
252
- iconLabel: "Add New",
312
+ icon: "TableAddIcon",
313
+ iconLabel: "Add",
314
+ styleDefault: true
315
+ },
316
+ style: {
317
+ mt: "6px",
318
+ color: "inherit",
319
+ fill: "inherit",
320
+ "&:hover": {
321
+ color: "inherit",
322
+ fill: "inherit"
323
+ }
324
+ }
325
+ }
326
+ }
327
+ },
328
+ {
329
+ widget: {
330
+ type: "Control",
331
+ scope: "#/properties/Paste_Event",
332
+ options: {
333
+ widget: "IconButton"
334
+ },
335
+ config: {
336
+ main: {
337
+ onClick: "copyPasteElement",
338
+ size: "small",
339
+ icon: "PasteIcon",
340
+ iconLabel: "Paste",
253
341
  styleDefault: true
254
342
  },
255
343
  style: {
@@ -268,15 +356,21 @@ const PageMasterUiSchema = (theme) => {
268
356
  elements: [
269
357
  {
270
358
  accessorKey: "eventType",
271
- header: "Event Type"
359
+ header: "Event Type",
360
+ size: 300,
361
+ type: "string"
272
362
  },
273
363
  {
274
364
  accessorKey: "Handler",
275
- header: "Handler"
365
+ header: "Handler",
366
+ size: 300,
367
+ type: "string"
276
368
  },
277
369
  {
278
370
  accessorKey: "Edit_Approve_Records",
279
371
  header: "Edit Widget",
372
+ type: "action",
373
+ size: 150,
280
374
  widget: {
281
375
  type: "Control",
282
376
  scope: "#/properties/Edit_Records",
@@ -285,14 +379,16 @@ const PageMasterUiSchema = (theme) => {
285
379
  },
286
380
  config: {
287
381
  main: {
288
- color: "info",
289
382
  size: "small",
290
- icon: "EditIcon",
383
+ icon: "TableEditIcon",
291
384
  tooltipMessage: "Edit This Record",
292
385
  onClick: "editEvent"
293
386
  },
294
387
  style: {
295
- color: theme.palette.primary.main
388
+ fill: theme.palette.primary.main,
389
+ "& :hover": {
390
+ fill: theme.palette.primary.dark
391
+ }
296
392
  }
297
393
  }
298
394
  }
@@ -308,10 +404,34 @@ const PageMasterUiSchema = (theme) => {
308
404
  },
309
405
  config: {
310
406
  main: {
311
- icon: "RejectIcon",
312
- color: "error",
407
+ icon: "Bin",
313
408
  tooltipMessage: "Reject This Record",
314
409
  onClick: "deletePopUpEvent"
410
+ },
411
+ style: {
412
+ fill: theme.palette.primary.main,
413
+ "& :hover": {
414
+ fill: theme.palette.primary.dark
415
+ }
416
+ }
417
+ }
418
+ }
419
+ },
420
+ {
421
+ header: "Copy",
422
+ field: "Copy_Event",
423
+ flex: 1,
424
+ widget: {
425
+ type: "Control",
426
+ scope: "#/properties/Copy_Event",
427
+ options: {
428
+ widget: "IconButton"
429
+ },
430
+ config: {
431
+ main: {
432
+ icon: "FileCopyIcon",
433
+ onClick: "copyPasteElement",
434
+ styleDefault: true
315
435
  }
316
436
  }
317
437
  }
@@ -321,14 +441,60 @@ const PageMasterUiSchema = (theme) => {
321
441
  ]
322
442
  },
323
443
  {
324
- type: "Control",
325
- scope: "#/properties/btn",
326
- options: {
327
- widget: "EmptyBox"
328
- },
444
+ type: "HorizontalLayout",
329
445
  config: {
330
- layout: { xs: 8, sm: 10 }
331
- }
446
+ layout: { xs: 12, sm: 9 }
447
+ },
448
+ elements: [
449
+ {
450
+ type: "Control",
451
+ scope: "#/properties/RemoveItemButton",
452
+ options: {
453
+ widget: "IconButton"
454
+ },
455
+ config: {
456
+ layout: { xs: 1, sm: 1 },
457
+ main: {
458
+ onClick: "RemoveItemButton",
459
+ size: "large",
460
+ icon: "RejectIcon",
461
+ styleDefault: true
462
+ },
463
+ style: {
464
+ marginLeft: "-5px"
465
+ }
466
+ }
467
+ },
468
+ {
469
+ type: "Control",
470
+ scope: "#/properties/copiedElementDetails",
471
+ options: {
472
+ widget: "Box"
473
+ },
474
+ config: {
475
+ layout: { xs: 6, sm: 6 },
476
+ main: {
477
+ heading: "No element copied"
478
+ },
479
+ style: {
480
+ color: "#535557",
481
+ marginLeft: "-30px",
482
+ fontSize: "12px",
483
+ marginTop: "4px"
484
+ }
485
+ }
486
+ },
487
+ {
488
+ type: "Control",
489
+ scope: "#/properties/EmptyBox",
490
+ options: {
491
+ widget: "EmptyBox"
492
+ },
493
+ config: {
494
+ layout: { xs: 1, sm: 5 }
495
+ }
496
+ }
497
+ ]
332
498
  },
333
499
  {
334
500
  type: "Control",
@@ -358,84 +524,116 @@ const PageMasterUiSchema = (theme) => {
358
524
  layout: {
359
525
  xs: 12,
360
526
  sm: 12,
361
- md: 6,
362
- lg: 6
527
+ md: 12,
528
+ lg: 12
363
529
  },
364
- main: {},
365
- style: {
366
- "& .MuiPaper-root": {
367
- width: "30%"
368
- },
369
- "& .MuiTypography-root": {
370
- padding: 0
371
- }
372
- }
530
+ main: {
531
+ title: "WARNING!"
532
+ },
533
+ style: {}
373
534
  },
374
535
  elements: [
375
536
  {
376
537
  type: "Control",
377
- scope: "#/properties/label",
538
+ scope: "#/properties/popText",
378
539
  options: {
379
540
  widget: "Box"
380
541
  },
381
542
  config: {
382
- layout: 12,
543
+ layout: 11,
383
544
  main: {
384
545
  heading: "Are you sure you want to delete ?"
385
546
  },
386
547
  style: {
387
- marginTop: "-40px"
548
+ marginTop: "-20px",
549
+ fontSize: "20px",
550
+ "&.MuiTypography-root": {
551
+ padding: "10px 30px 20px 30px",
552
+ textAlign: "center",
553
+ lineHeight: "1"
554
+ }
388
555
  }
389
556
  }
390
557
  },
391
558
  {
392
- type: "Control",
393
- scope: "#/properties/EmptyBox",
394
- options: {
395
- widget: "EmptyBox"
396
- },
397
- config: {
398
- main: {},
399
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
400
- }
401
- },
402
- {
403
- type: "Control",
404
- scope: "#/properties/ConfirmDeleteCompButton",
405
- options: {
406
- widget: "Button"
407
- },
559
+ type: "WrapperLayout",
408
560
  config: {
409
- layout: 3,
410
- main: {
411
- name: "Yes",
412
- startIcon: "ApproveIcon",
413
- variant: "contained",
414
- color: "info",
415
- type: "text",
416
- onClick: "Delete_Components",
417
- size: "small"
418
- }
419
- }
420
- },
421
- {
422
- type: "Control",
423
- scope: "#/properties/CancelDeleteCompButton",
424
- options: {
425
- widget: "Button"
561
+ layout: 11,
562
+ main: {}
426
563
  },
427
- config: {
428
- layout: 3,
429
- main: {
430
- name: "No",
431
- startIcon: "ApproveIcon",
432
- variant: "contained",
433
- color: "info",
434
- type: "text",
435
- onClick: "deletePopUpComponent",
436
- size: "small"
564
+ elements: [
565
+ {
566
+ type: "Control",
567
+ scope: "#/properties/CancelDeleteCompButton",
568
+ options: {
569
+ widget: "Button"
570
+ },
571
+ config: {
572
+ layout: 6,
573
+ main: {
574
+ name: "No",
575
+ startIcon: "ApproveIcon",
576
+ variant: "contained",
577
+ color: "info",
578
+ type: "text",
579
+ onClick: "deletePopUpComponent",
580
+ size: "large"
581
+ },
582
+ style: {
583
+ position: "absolute",
584
+ bottom: 0,
585
+ left: 0,
586
+ width: "50%",
587
+ borderRadius: 0,
588
+ boxShadow: 0,
589
+ backgroundColor: "transparent",
590
+ color: theme.palette.primary.main,
591
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
592
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
593
+ "&:hover": {
594
+ color: theme.palette.primary.contrastText,
595
+ backgroundColor: theme.palette.primary.main,
596
+ boxShadow: "none"
597
+ }
598
+ }
599
+ }
600
+ },
601
+ {
602
+ type: "Control",
603
+ scope: "#/properties/ConfirmDeleteCompButton",
604
+ options: {
605
+ widget: "Button"
606
+ },
607
+ config: {
608
+ layout: 6,
609
+ main: {
610
+ name: "Yes",
611
+ startIcon: "ApproveIcon",
612
+ variant: "contained",
613
+ color: "error",
614
+ type: "text",
615
+ onClick: "Delete_Components",
616
+ size: "large"
617
+ },
618
+ style: {
619
+ position: "absolute",
620
+ bottom: 0,
621
+ right: 0,
622
+ width: "50%",
623
+ borderRadius: 0,
624
+ boxShadow: 0,
625
+ backgroundColor: "transparent",
626
+ color: theme.palette.error.main,
627
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
628
+ "&:hover": {
629
+ color: theme.palette.error.contrastText,
630
+ backgroundColor: theme.palette.error.main,
631
+ boxShadow: "none"
632
+ }
633
+ }
634
+ }
437
635
  }
438
- }
636
+ ]
439
637
  }
440
638
  ]
441
639
  },
@@ -449,84 +647,116 @@ const PageMasterUiSchema = (theme) => {
449
647
  layout: {
450
648
  xs: 12,
451
649
  sm: 12,
452
- md: 6,
453
- lg: 6
650
+ md: 12,
651
+ lg: 12
454
652
  },
455
- main: {},
456
- style: {
457
- "& .MuiPaper-root": {
458
- width: "30%"
459
- },
460
- "& .MuiTypography-root": {
461
- padding: 0
462
- }
463
- }
653
+ main: {
654
+ title: "WARNING!"
655
+ },
656
+ style: {}
464
657
  },
465
658
  elements: [
466
659
  {
467
660
  type: "Control",
468
- scope: "#/properties/label",
661
+ scope: "#/properties/popText1",
469
662
  options: {
470
663
  widget: "Box"
471
664
  },
472
665
  config: {
473
- layout: 12,
666
+ layout: 11,
474
667
  main: {
475
668
  heading: "Are you sure you want to delete ?"
476
669
  },
477
670
  style: {
478
- marginTop: "-40px"
671
+ marginTop: "-20px",
672
+ fontSize: "20px",
673
+ "&.MuiTypography-root": {
674
+ padding: "10px 30px 20px 30px",
675
+ textAlign: "center",
676
+ lineHeight: "1"
677
+ }
479
678
  }
480
679
  }
481
680
  },
482
681
  {
483
- type: "Control",
484
- scope: "#/properties/EmptyBox",
485
- options: {
486
- widget: "EmptyBox"
487
- },
682
+ type: "WrapperLayout",
488
683
  config: {
489
- main: {},
490
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
491
- }
492
- },
493
- {
494
- type: "Control",
495
- scope: "#/properties/ConfirmDeleteEventButton",
496
- options: {
497
- widget: "Button"
684
+ layout: 11,
685
+ main: {}
498
686
  },
499
- config: {
500
- layout: 3,
501
- main: {
502
- name: "Yes",
503
- startIcon: "ApproveIcon",
504
- variant: "contained",
505
- color: "info",
506
- type: "text",
507
- onClick: "deleteEvent",
508
- size: "small"
509
- }
510
- }
511
- },
512
- {
513
- type: "Control",
514
- scope: "#/properties/CancelDeleteEventButton",
515
- options: {
516
- widget: "Button"
517
- },
518
- config: {
519
- layout: 3,
520
- main: {
521
- name: "No",
522
- startIcon: "ApproveIcon",
523
- variant: "contained",
524
- color: "error",
525
- type: "text",
526
- onClick: "deletePopUpEvent",
527
- size: "small"
687
+ elements: [
688
+ {
689
+ type: "Control",
690
+ scope: "#/properties/CancelDeleteEventButton",
691
+ options: {
692
+ widget: "Button"
693
+ },
694
+ config: {
695
+ layout: 6,
696
+ main: {
697
+ name: "No",
698
+ startIcon: "ApproveIcon",
699
+ variant: "contained",
700
+ color: "info",
701
+ type: "text",
702
+ onClick: "deletePopUpEvent",
703
+ size: "large"
704
+ },
705
+ style: {
706
+ position: "absolute",
707
+ bottom: 0,
708
+ left: 0,
709
+ width: "50%",
710
+ borderRadius: 0,
711
+ boxShadow: 0,
712
+ backgroundColor: "transparent",
713
+ color: theme.palette.primary.main,
714
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
715
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
716
+ "&:hover": {
717
+ color: theme.palette.primary.contrastText,
718
+ backgroundColor: theme.palette.primary.main,
719
+ boxShadow: "none"
720
+ }
721
+ }
722
+ }
723
+ },
724
+ {
725
+ type: "Control",
726
+ scope: "#/properties/ConfirmDeleteEventButton",
727
+ options: {
728
+ widget: "Button"
729
+ },
730
+ config: {
731
+ layout: 6,
732
+ main: {
733
+ name: "Yes",
734
+ startIcon: "ApproveIcon",
735
+ variant: "contained",
736
+ color: "error",
737
+ type: "text",
738
+ onClick: "deleteEvent",
739
+ size: "large"
740
+ },
741
+ style: {
742
+ position: "absolute",
743
+ bottom: 0,
744
+ right: 0,
745
+ width: "50%",
746
+ borderRadius: 0,
747
+ boxShadow: 0,
748
+ backgroundColor: "transparent",
749
+ color: theme.palette.error.main,
750
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
751
+ "&:hover": {
752
+ color: theme.palette.error.contrastText,
753
+ backgroundColor: theme.palette.error.main,
754
+ boxShadow: "none"
755
+ }
756
+ }
757
+ }
528
758
  }
529
- }
759
+ ]
530
760
  }
531
761
  ]
532
762
  },
@@ -548,7 +778,6 @@ const PageMasterUiSchema = (theme) => {
548
778
  flexDirection: "row",
549
779
  position: "absolute",
550
780
  bottom: 0,
551
- marginBottom: "-8px",
552
781
  height: "fit-content",
553
782
  overflow: "hidden",
554
783
  zIndex: 1e3,
@@ -567,22 +796,23 @@ const PageMasterUiSchema = (theme) => {
567
796
  heading: "Copywriter@ACT21.IO"
568
797
  },
569
798
  style: {
570
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
571
- fontSize: "12px",
799
+ color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
800
+ fontSize: "11px",
572
801
  textAlign: "center",
573
- lineHeight: 1,
802
+ lineHeight: 2,
574
803
  width: "fit-content",
575
804
  left: "50%",
576
805
  position: "relative",
577
806
  margin: 0,
578
807
  flexGrow: 1,
579
- height: 0
808
+ height: 0,
809
+ transform: "translate(-50%, 0%)"
580
810
  }
581
811
  }
582
812
  },
583
813
  {
584
814
  type: "Control",
585
- scope: "#/properties/backIcon",
815
+ scope: "#/properties/FooterBackIcon",
586
816
  options: {
587
817
  widget: "Box"
588
818
  },
@@ -593,24 +823,24 @@ const PageMasterUiSchema = (theme) => {
593
823
  width: "fit-content"
594
824
  },
595
825
  style: {
596
- fill: theme.palette.primary.main,
826
+ fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
597
827
  width: 20,
598
828
  height: 0,
599
- margin: 0,
600
829
  top: 0,
601
830
  right: { xs: "12px", sm: "84px" },
602
831
  position: "absolute",
603
832
  fontSize: "12px",
604
833
  cursor: "pointer",
605
834
  ":hover": {
606
- fill: theme.palette.primary.dark
607
- }
835
+ fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
836
+ },
837
+ marginRight: "20px"
608
838
  }
609
839
  }
610
840
  },
611
841
  {
612
842
  type: "Control",
613
- scope: "#/properties/text",
843
+ scope: "#/properties/FooterBackHandlerText",
614
844
  options: {
615
845
  widget: "Box"
616
846
  },
@@ -625,17 +855,17 @@ const PageMasterUiSchema = (theme) => {
625
855
  lineHeight: 1,
626
856
  height: 0,
627
857
  width: "fit-content",
628
- color: theme.palette.primary.main,
858
+ color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
629
859
  fontSize: "12px",
630
860
  cursor: "pointer",
631
861
  marginLeft: "2px",
632
- marginRight: 0,
633
862
  top: 3,
634
863
  right: "12px",
635
864
  position: "absolute",
636
865
  ":hover": {
637
- color: theme.palette.primary.dark
638
- }
866
+ color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
867
+ },
868
+ marginRight: "4px"
639
869
  }
640
870
  }
641
871
  }
@@ -6126,7 +6356,9 @@ const ComponentSchema = {
6126
6356
  { title: "Timer", const: "Timer" },
6127
6357
  { title: "Upload File", const: "UploadFile" },
6128
6358
  { title: "TreeMap", const: "TreeMap" },
6129
- { title: "ColumnGroup", const: "ColumnGroup" }
6359
+ { title: "ColumnGroup", const: "ColumnGroup" },
6360
+ { title: "Thought of the Day", const: "Thought" },
6361
+ { title: "Pdf Viewer", const: "PdfViewer" }
6130
6362
  ]
6131
6363
  },
6132
6364
  columnFormat: {
@@ -6415,12 +6647,15 @@ const ComponentSchema = {
6415
6647
  name: {
6416
6648
  type: "string"
6417
6649
  },
6418
- label: { type: "string" }
6650
+ label: { type: "string" },
6651
+ RemoveItemButton: {
6652
+ disabled: true
6653
+ }
6419
6654
  },
6420
6655
  required: ["name"]
6421
6656
  };
6422
6657
  const componentBasicUiSchema = (theme) => {
6423
- var _a;
6658
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
6424
6659
  const uiSchema = {
6425
6660
  type: "HorizontalLayout",
6426
6661
  heading: "Component",
@@ -6591,99 +6826,100 @@ const componentBasicUiSchema = (theme) => {
6591
6826
  ]
6592
6827
  },
6593
6828
  {
6594
- type: "Control",
6595
- scope: "#/properties/popUpComponentSection",
6596
- options: {
6597
- widget: "PopUp"
6598
- },
6829
+ type: "HorizontalLayout",
6599
6830
  config: {
6600
- layout: {
6601
- xs: 12,
6602
- sm: 12,
6603
- md: 12,
6604
- lg: 12
6605
- },
6606
- main: {},
6607
- style: {
6608
- "& .MuiPaper-root": {
6609
- width: "30%"
6610
- },
6611
- "& .MuiTypography-root": {
6612
- padding: 0
6613
- }
6614
- }
6831
+ layout: { xs: 12, sm: 6 }
6615
6832
  },
6616
6833
  elements: [
6617
6834
  {
6618
6835
  type: "Control",
6619
- scope: "#/properties/label",
6836
+ scope: "#/properties/RemoveItemButton",
6620
6837
  options: {
6621
- widget: "Box"
6838
+ widget: "IconButton"
6622
6839
  },
6623
6840
  config: {
6624
- layout: 12,
6841
+ layout: { xs: 1, sm: 1 },
6625
6842
  main: {
6626
- heading: "Are you sure you want to delete ?"
6843
+ onClick: "RemoveItemButton",
6844
+ size: "large",
6845
+ icon: "RejectIcon",
6846
+ styleDefault: true
6627
6847
  },
6628
6848
  style: {
6629
- marginTop: "-40px"
6849
+ marginLeft: "-10px"
6630
6850
  }
6631
6851
  }
6632
6852
  },
6633
6853
  {
6634
6854
  type: "Control",
6635
- scope: "#/properties/EmptyBox",
6636
- options: {
6637
- widget: "EmptyBox"
6638
- },
6639
- config: {
6640
- main: {},
6641
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6642
- }
6643
- },
6644
- {
6645
- type: "Control",
6646
- scope: "#/properties/ConfirmDeleteCompButton",
6855
+ scope: "#/properties/copiedElementDetails",
6647
6856
  options: {
6648
- widget: "Button"
6857
+ widget: "Box"
6649
6858
  },
6650
6859
  config: {
6651
- layout: 3,
6860
+ layout: { xs: 6, sm: 6 },
6652
6861
  main: {
6653
- name: "Yes",
6654
- startIcon: "ApproveIcon",
6655
- variant: "contained",
6656
- color: "error",
6657
- type: "text",
6658
- onClick: "deleteComponents",
6659
- size: "small"
6862
+ heading: "No element copied"
6863
+ },
6864
+ style: {
6865
+ color: "#535557",
6866
+ marginLeft: "-10px",
6867
+ fontSize: "12px",
6868
+ marginTop: "4px"
6660
6869
  }
6661
6870
  }
6662
6871
  },
6663
6872
  {
6664
6873
  type: "Control",
6665
- scope: "#/properties/CancelDeleteCompButton",
6874
+ scope: "#/properties/EmptyBox",
6666
6875
  options: {
6667
- widget: "Button"
6876
+ widget: "EmptyBox"
6668
6877
  },
6669
6878
  config: {
6670
- layout: 3,
6671
- main: {
6672
- name: "No",
6673
- startIcon: "ApproveIcon",
6674
- variant: "contained",
6675
- color: "info",
6676
- type: "text",
6677
- onClick: "deletePopUpComponent",
6678
- size: "small"
6679
- }
6879
+ layout: { xs: 1, sm: 5 }
6680
6880
  }
6681
6881
  }
6682
6882
  ]
6683
6883
  },
6684
6884
  {
6685
6885
  type: "Control",
6686
- scope: "#/properties/popUpEventSection",
6886
+ scope: "#/properties/btn",
6887
+ options: {
6888
+ widget: "Button"
6889
+ },
6890
+ config: {
6891
+ layout: { xs: 4, sm: 2 },
6892
+ main: {
6893
+ name: "Ok",
6894
+ startIcon: "ApproveIcon",
6895
+ variant: "contained",
6896
+ type: "text",
6897
+ onClick: "okHandler",
6898
+ size: "medium"
6899
+ }
6900
+ }
6901
+ },
6902
+ {
6903
+ type: "Control",
6904
+ scope: "#/properties/btnSubmit",
6905
+ options: {
6906
+ widget: "Button"
6907
+ },
6908
+ config: {
6909
+ layout: { xs: 4, sm: 2 },
6910
+ main: {
6911
+ name: "Save & Exit",
6912
+ startIcon: "ApproveIcon",
6913
+ variant: "contained",
6914
+ type: "text",
6915
+ onClick: "saveHandler",
6916
+ size: "medium"
6917
+ }
6918
+ }
6919
+ },
6920
+ {
6921
+ type: "Control",
6922
+ scope: "#/properties/popUpComponentSection",
6687
6923
  options: {
6688
6924
  widget: "PopUp"
6689
6925
  },
@@ -6694,130 +6930,239 @@ const componentBasicUiSchema = (theme) => {
6694
6930
  md: 12,
6695
6931
  lg: 12
6696
6932
  },
6697
- main: {},
6698
- style: {
6699
- "& .MuiPaper-root": {
6700
- width: "30%"
6701
- },
6702
- "& .MuiTypography-root": {
6703
- padding: 0
6704
- }
6705
- }
6933
+ main: {
6934
+ title: "WARNING!"
6935
+ },
6936
+ style: {}
6706
6937
  },
6707
6938
  elements: [
6708
6939
  {
6709
6940
  type: "Control",
6710
- scope: "#/properties/label",
6941
+ scope: "#/properties/popupText",
6711
6942
  options: {
6712
6943
  widget: "Box"
6713
6944
  },
6714
6945
  config: {
6715
- layout: 12,
6946
+ layout: 11,
6716
6947
  main: {
6717
6948
  heading: "Are you sure you want to delete ?"
6718
6949
  },
6719
6950
  style: {
6720
- marginTop: "-40px"
6951
+ marginTop: "-20px",
6952
+ fontSize: "20px",
6953
+ "&.MuiTypography-root": {
6954
+ padding: "10px 30px 20px 30px",
6955
+ textAlign: "center",
6956
+ lineHeight: "1"
6957
+ }
6721
6958
  }
6722
6959
  }
6723
6960
  },
6724
6961
  {
6725
- type: "Control",
6726
- scope: "#/properties/EmptyBox",
6727
- options: {
6728
- widget: "EmptyBox"
6729
- },
6962
+ type: "WrapperLayout",
6730
6963
  config: {
6731
- main: {},
6732
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6733
- }
6964
+ layout: 11,
6965
+ main: {}
6966
+ },
6967
+ elements: [
6968
+ {
6969
+ type: "Control",
6970
+ scope: "#/properties/CancelDeleteCompButton",
6971
+ options: {
6972
+ widget: "Button"
6973
+ },
6974
+ config: {
6975
+ layout: 6,
6976
+ main: {
6977
+ name: "No",
6978
+ startIcon: "ApproveIcon",
6979
+ variant: "contained",
6980
+ color: "info",
6981
+ type: "text",
6982
+ onClick: "deletePopUpComponent",
6983
+ size: "large"
6984
+ },
6985
+ style: {
6986
+ position: "absolute",
6987
+ bottom: 0,
6988
+ left: 0,
6989
+ width: "50%",
6990
+ borderRadius: 0,
6991
+ boxShadow: 0,
6992
+ backgroundColor: "transparent",
6993
+ color: theme.palette.primary.main,
6994
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
6995
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
6996
+ "&:hover": {
6997
+ color: theme.palette.primary.contrastText,
6998
+ backgroundColor: theme.palette.primary.main,
6999
+ boxShadow: "none"
7000
+ }
7001
+ }
7002
+ }
7003
+ },
7004
+ {
7005
+ type: "Control",
7006
+ scope: "#/properties/ConfirmDeleteCompButton",
7007
+ options: {
7008
+ widget: "Button"
7009
+ },
7010
+ config: {
7011
+ layout: 6,
7012
+ main: {
7013
+ name: "Yes",
7014
+ startIcon: "ApproveIcon",
7015
+ variant: "contained",
7016
+ color: "error",
7017
+ type: "text",
7018
+ onClick: "deleteComponents",
7019
+ size: "large"
7020
+ },
7021
+ style: {
7022
+ position: "absolute",
7023
+ bottom: 0,
7024
+ right: 0,
7025
+ width: "50%",
7026
+ borderRadius: 0,
7027
+ boxShadow: 0,
7028
+ backgroundColor: "transparent",
7029
+ color: theme.palette.error.main,
7030
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
7031
+ "&:hover": {
7032
+ color: theme.palette.error.contrastText,
7033
+ backgroundColor: theme.palette.error.main,
7034
+ boxShadow: "none"
7035
+ }
7036
+ }
7037
+ }
7038
+ }
7039
+ ]
7040
+ }
7041
+ ]
7042
+ },
7043
+ {
7044
+ type: "Control",
7045
+ scope: "#/properties/popUpEventSection",
7046
+ options: {
7047
+ widget: "PopUp"
7048
+ },
7049
+ config: {
7050
+ layout: {
7051
+ xs: 12,
7052
+ sm: 12,
7053
+ md: 12,
7054
+ lg: 12
7055
+ },
7056
+ main: {
7057
+ title: "WARNING!"
6734
7058
  },
7059
+ style: {}
7060
+ },
7061
+ elements: [
6735
7062
  {
6736
7063
  type: "Control",
6737
- scope: "#/properties/ConfirmDeleteEventButton",
7064
+ scope: "#/properties/popupText1",
6738
7065
  options: {
6739
- widget: "Button"
7066
+ widget: "Box"
6740
7067
  },
6741
7068
  config: {
6742
- layout: 3,
7069
+ layout: 11,
6743
7070
  main: {
6744
- name: "Yes",
6745
- startIcon: "ApproveIcon",
6746
- variant: "contained",
6747
- color: "info",
6748
- type: "text",
6749
- onClick: "deleteEvent",
6750
- size: "small"
7071
+ heading: "Are you sure you want to delete ?"
7072
+ },
7073
+ style: {
7074
+ marginTop: "-20px",
7075
+ fontSize: "20px",
7076
+ "&.MuiTypography-root": {
7077
+ padding: "10px 30px 20px 30px",
7078
+ textAlign: "center",
7079
+ lineHeight: "1"
7080
+ }
6751
7081
  }
6752
7082
  }
6753
7083
  },
6754
7084
  {
6755
- type: "Control",
6756
- scope: "#/properties/CancelDeleteEventButton",
6757
- options: {
6758
- widget: "Button"
6759
- },
7085
+ type: "WrapperLayout",
6760
7086
  config: {
6761
- layout: 3,
6762
- main: {
6763
- name: "No",
6764
- startIcon: "ApproveIcon",
6765
- variant: "contained",
6766
- color: "info",
6767
- type: "text",
6768
- onClick: "deletePopUpEvent",
6769
- size: "small"
7087
+ layout: 11,
7088
+ main: {}
7089
+ },
7090
+ elements: [
7091
+ {
7092
+ type: "Control",
7093
+ scope: "#/properties/CancelDeleteEventButton",
7094
+ options: {
7095
+ widget: "Button"
7096
+ },
7097
+ config: {
7098
+ layout: 6,
7099
+ main: {
7100
+ name: "No",
7101
+ startIcon: "ApproveIcon",
7102
+ variant: "contained",
7103
+ color: "info",
7104
+ type: "text",
7105
+ onClick: "deletePopUpEvent",
7106
+ size: "large"
7107
+ },
7108
+ style: {
7109
+ position: "absolute",
7110
+ bottom: 0,
7111
+ left: 0,
7112
+ width: "50%",
7113
+ borderRadius: 0,
7114
+ boxShadow: 0,
7115
+ backgroundColor: "transparent",
7116
+ color: theme.palette.primary.main,
7117
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
7118
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
7119
+ "&:hover": {
7120
+ color: theme.palette.primary.contrastText,
7121
+ backgroundColor: theme.palette.primary.main,
7122
+ boxShadow: "none"
7123
+ }
7124
+ }
7125
+ }
7126
+ },
7127
+ {
7128
+ type: "Control",
7129
+ scope: "#/properties/ConfirmDeleteEventButton",
7130
+ options: {
7131
+ widget: "Button"
7132
+ },
7133
+ config: {
7134
+ layout: 6,
7135
+ main: {
7136
+ name: "Yes",
7137
+ startIcon: "ApproveIcon",
7138
+ variant: "contained",
7139
+ color: "error",
7140
+ type: "text",
7141
+ onClick: "deleteEvent",
7142
+ size: "large"
7143
+ },
7144
+ style: {
7145
+ position: "absolute",
7146
+ bottom: 0,
7147
+ right: 0,
7148
+ width: "50%",
7149
+ borderRadius: 0,
7150
+ boxShadow: 0,
7151
+ backgroundColor: "transparent",
7152
+ color: theme.palette.error.main,
7153
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
7154
+ "&:hover": {
7155
+ color: theme.palette.error.contrastText,
7156
+ backgroundColor: theme.palette.error.main,
7157
+ boxShadow: "none"
7158
+ }
7159
+ }
7160
+ }
6770
7161
  }
6771
- }
7162
+ ]
6772
7163
  }
6773
7164
  ]
6774
7165
  },
6775
- {
6776
- type: "Control",
6777
- scope: "#/properties/EmptyBox",
6778
- options: {
6779
- widget: "EmptyBox"
6780
- },
6781
- config: {
6782
- layout: { xs: 4, sm: 8 }
6783
- }
6784
- },
6785
- {
6786
- type: "Control",
6787
- scope: "#/properties/btn",
6788
- options: {
6789
- widget: "Button"
6790
- },
6791
- config: {
6792
- layout: { xs: 4, sm: 2 },
6793
- main: {
6794
- name: "Ok",
6795
- startIcon: "ApproveIcon",
6796
- variant: "contained",
6797
- type: "text",
6798
- onClick: "okHandler",
6799
- size: "medium"
6800
- }
6801
- }
6802
- },
6803
- {
6804
- type: "Control",
6805
- scope: "#/properties/btnSubmit",
6806
- options: {
6807
- widget: "Button"
6808
- },
6809
- config: {
6810
- layout: { xs: 4, sm: 2 },
6811
- main: {
6812
- name: "Save & Exit",
6813
- startIcon: "ApproveIcon",
6814
- variant: "contained",
6815
- type: "text",
6816
- onClick: "saveHandler",
6817
- size: "medium"
6818
- }
6819
- }
6820
- },
6821
7166
  {
6822
7167
  type: "Control",
6823
7168
  scope: "#/properties/notify",
@@ -6836,7 +7181,6 @@ const componentBasicUiSchema = (theme) => {
6836
7181
  flexDirection: "row",
6837
7182
  position: "absolute",
6838
7183
  bottom: 0,
6839
- marginBottom: "-8px",
6840
7184
  height: "fit-content",
6841
7185
  overflow: "hidden",
6842
7186
  zIndex: 1e3,
@@ -6855,22 +7199,23 @@ const componentBasicUiSchema = (theme) => {
6855
7199
  heading: "Copywriter@ACT21.IO"
6856
7200
  },
6857
7201
  style: {
6858
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
6859
- fontSize: "12px",
7202
+ color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
7203
+ fontSize: "11px",
6860
7204
  textAlign: "center",
6861
- lineHeight: 1,
7205
+ lineHeight: 2,
6862
7206
  width: "fit-content",
6863
7207
  left: "50%",
6864
7208
  position: "relative",
6865
7209
  margin: 0,
6866
7210
  flexGrow: 1,
6867
- height: 0
7211
+ height: 0,
7212
+ transform: "translate(-50%, 0%)"
6868
7213
  }
6869
7214
  }
6870
7215
  },
6871
7216
  {
6872
7217
  type: "Control",
6873
- scope: "#/properties/backIcon",
7218
+ scope: "#/properties/FooterBackIcon",
6874
7219
  options: {
6875
7220
  widget: "Box"
6876
7221
  },
@@ -6881,24 +7226,24 @@ const componentBasicUiSchema = (theme) => {
6881
7226
  width: "fit-content"
6882
7227
  },
6883
7228
  style: {
6884
- fill: theme.palette.primary.main,
7229
+ fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
6885
7230
  width: 20,
6886
7231
  height: 0,
6887
- margin: 0,
6888
7232
  top: 0,
6889
7233
  right: { xs: "12px", sm: "84px" },
6890
7234
  position: "absolute",
6891
7235
  fontSize: "12px",
6892
7236
  cursor: "pointer",
6893
7237
  ":hover": {
6894
- fill: theme.palette.primary.dark
6895
- }
7238
+ fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
7239
+ },
7240
+ marginRight: "20px"
6896
7241
  }
6897
7242
  }
6898
7243
  },
6899
7244
  {
6900
7245
  type: "Control",
6901
- scope: "#/properties/text",
7246
+ scope: "#/properties/FooterBackHandlerText",
6902
7247
  options: {
6903
7248
  widget: "Box"
6904
7249
  },
@@ -6913,17 +7258,17 @@ const componentBasicUiSchema = (theme) => {
6913
7258
  lineHeight: 1,
6914
7259
  height: 0,
6915
7260
  width: "fit-content",
6916
- color: theme.palette.primary.main,
7261
+ color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
6917
7262
  fontSize: "12px",
6918
7263
  cursor: "pointer",
6919
7264
  marginLeft: "2px",
6920
- marginRight: 0,
6921
7265
  top: 3,
6922
7266
  right: "12px",
6923
7267
  position: "absolute",
6924
7268
  ":hover": {
6925
- color: theme.palette.primary.dark
6926
- }
7269
+ color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
7270
+ },
7271
+ marginRight: "4px"
6927
7272
  }
6928
7273
  }
6929
7274
  }
@@ -7098,6 +7443,27 @@ const EventSection = (theme) => {
7098
7443
  }
7099
7444
  }
7100
7445
  }
7446
+ },
7447
+ {
7448
+ widget: {
7449
+ type: "Control",
7450
+ scope: "#/properties/Paste_Event",
7451
+ options: {
7452
+ widget: "IconButton"
7453
+ },
7454
+ config: {
7455
+ main: {
7456
+ onClick: "copyPasteElement",
7457
+ size: "small",
7458
+ icon: "PasteIcon",
7459
+ iconLabel: "Paste",
7460
+ styleDefault: true
7461
+ },
7462
+ style: {
7463
+ mt: "6px"
7464
+ }
7465
+ }
7466
+ }
7101
7467
  }
7102
7468
  ]
7103
7469
  },
@@ -7157,6 +7523,26 @@ const EventSection = (theme) => {
7157
7523
  }
7158
7524
  }
7159
7525
  }
7526
+ },
7527
+ {
7528
+ header: "Copy",
7529
+ field: "Copy_Event",
7530
+ flex: 1,
7531
+ widget: {
7532
+ type: "Control",
7533
+ scope: "#/properties/Copy_Event",
7534
+ options: {
7535
+ widget: "IconButton"
7536
+ },
7537
+ config: {
7538
+ main: {
7539
+ icon: "FileCopyIcon",
7540
+ onClick: "copyPasteElement",
7541
+ tooltipMessage: "Reject This Record",
7542
+ styleDefault: true
7543
+ }
7544
+ }
7545
+ }
7160
7546
  }
7161
7547
  ]
7162
7548
  }
@@ -7321,7 +7707,7 @@ const buildWrapper = (label, elements) => {
7321
7707
  width: "108%"
7322
7708
  },
7323
7709
  componentsBoxStyle: {
7324
- marginLeft: "24px"
7710
+ marginLeft: "12px"
7325
7711
  },
7326
7712
  defaultStyle: true
7327
7713
  },
@@ -7474,22 +7860,19 @@ const buildPropertiesSection = function(type) {
7474
7860
  case "RankCard":
7475
7861
  uiSchema.elements = [
7476
7862
  getInputField("rank", "Rank"),
7477
- getInputField("image", "Image Url"),
7478
- getInputField("title", "Card Title"),
7479
- getInputField("description", "Card Description"),
7480
- emptyBox$1("RankCardEmpty1"),
7481
- emptyBox$1("RankCardEmpty2")
7863
+ getInputField("height", "Height"),
7864
+ emptyBox$1("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })
7482
7865
  ];
7483
7866
  break;
7484
7867
  case "LeaderBoard":
7485
7868
  uiSchema.elements = [
7486
- getInputField("valueLabel", "Value Label"),
7487
7869
  getInputField("firstImage", "First Image url"),
7488
7870
  getInputField("secondImage", "Second Image url"),
7489
7871
  getInputField("thirdImage", "Third Image url"),
7490
- emptyBox$1("LeaderBoardEmpty1"),
7491
- emptyBox$1("LeaderBoardEmpty2"),
7492
- getTextArea("functionCode", "Write Compare Code", false)
7872
+ getInputField("nameKey", "Key for Name"),
7873
+ getInputField("imageKey", "Key for Image"),
7874
+ getInputField("scoreKey", "Key for comparing parameter"),
7875
+ emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
7493
7876
  ];
7494
7877
  break;
7495
7878
  case "CardSlider":
@@ -7513,8 +7896,9 @@ const buildPropertiesSection = function(type) {
7513
7896
  uiSchema.elements = [
7514
7897
  getInputField("url", "Image Url"),
7515
7898
  getInputField("label", "Label"),
7899
+ getInputField("titleIcon", "Unicode of Icon for title"),
7516
7900
  getInputField("description", "Description"),
7517
- emptyBox$1("cardEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7901
+ emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7518
7902
  ];
7519
7903
  break;
7520
7904
  case "Button":
@@ -7538,7 +7922,9 @@ const buildPropertiesSection = function(type) {
7538
7922
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7539
7923
  getInputField("yAxisValue", "Y-AxisValue"),
7540
7924
  getInputField("xAxisValue", "X-AxisValue"),
7541
- emptyBox$1("GraphEmpty2"),
7925
+ getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7926
+ getInputField("leftMargin", "Left Margin"),
7927
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7542
7928
  getArrayControl("legendLabels", "label"),
7543
7929
  getArrayControl("pieArcColors", "color")
7544
7930
  ];
@@ -7610,6 +7996,11 @@ const buildPropertiesSection = function(type) {
7610
7996
  emptyBox$1("MultipleSelectEmpty2")
7611
7997
  ];
7612
7998
  break;
7999
+ case "Thought":
8000
+ uiSchema.elements = [
8001
+ getTextArea("thought", "Today's thought", false)
8002
+ ];
8003
+ break;
7613
8004
  }
7614
8005
  return uiSchema;
7615
8006
  };
@@ -7683,6 +8074,27 @@ const TableSection = (theme) => {
7683
8074
  }
7684
8075
  }
7685
8076
  }
8077
+ },
8078
+ {
8079
+ widget: {
8080
+ type: "Control",
8081
+ scope: "#/properties/Paste_Component",
8082
+ options: {
8083
+ widget: "IconButton"
8084
+ },
8085
+ config: {
8086
+ main: {
8087
+ onClick: "copyPasteElement",
8088
+ size: "small",
8089
+ icon: "PasteIcon",
8090
+ iconLabel: "Paste",
8091
+ styleDefault: true
8092
+ },
8093
+ style: {
8094
+ mt: "6px"
8095
+ }
8096
+ }
8097
+ }
7686
8098
  }
7687
8099
  ]
7688
8100
  },
@@ -7742,6 +8154,26 @@ const TableSection = (theme) => {
7742
8154
  }
7743
8155
  }
7744
8156
  }
8157
+ },
8158
+ {
8159
+ header: "Copy",
8160
+ field: "Copy_Component",
8161
+ flex: 1,
8162
+ widget: {
8163
+ type: "Control",
8164
+ scope: "#/properties/Copy_Component",
8165
+ options: {
8166
+ widget: "IconButton"
8167
+ },
8168
+ config: {
8169
+ main: {
8170
+ icon: "FileCopyIcon",
8171
+ onClick: "copyPasteElement",
8172
+ styleDefault: true,
8173
+ disabled: false
8174
+ }
8175
+ }
8176
+ }
7745
8177
  }
7746
8178
  ]
7747
8179
  }
@@ -7878,8 +8310,8 @@ var buildConfig = (FormData) => {
7878
8310
  component = { ...formData, ...component };
7879
8311
  return component;
7880
8312
  };
7881
- const createLayoutFormat = (config) => {
7882
- if (_.isEmpty(config)) {
8313
+ const createLayoutFormat = (config2) => {
8314
+ if (_.isEmpty(config2)) {
7883
8315
  return {
7884
8316
  xs: 12,
7885
8317
  sm: 12,
@@ -7887,18 +8319,23 @@ const createLayoutFormat = (config) => {
7887
8319
  lg: 12
7888
8320
  };
7889
8321
  }
7890
- let data = {};
7891
- config.map((e) => {
8322
+ let data = {
8323
+ xs: 12,
8324
+ sm: 12,
8325
+ md: 6,
8326
+ lg: 6
8327
+ };
8328
+ config2.map((e) => {
7892
8329
  data[e.key || "xs"] = +e.value || 5.5;
7893
8330
  });
7894
8331
  return data;
7895
8332
  };
7896
- const flatObjectValueInArray = (config = []) => {
7897
- if (config[0].length < 1) {
8333
+ const flatObjectValueInArray = (config2 = []) => {
8334
+ if (config2.length < 1) {
7898
8335
  return;
7899
8336
  }
7900
- const keyName = Object.keys(config[0])[0];
7901
- const data = config.map((e) => {
8337
+ const keyName = Object.keys(config2[0])[0];
8338
+ const data = config2.map((e) => {
7902
8339
  return e[keyName];
7903
8340
  });
7904
8341
  return data;
@@ -7906,9 +8343,9 @@ const flatObjectValueInArray = (config = []) => {
7906
8343
  const clearFromSessionStorage = () => {
7907
8344
  sessionStorage.removeItem("pageFormdata");
7908
8345
  };
7909
- const getNavigationHistory = (config, path) => {
8346
+ const getNavigationHistory = (config2, path) => {
7910
8347
  if (path) {
7911
- let urlRoutes = config.name;
8348
+ let urlRoutes = config2.name;
7912
8349
  const pathArrayAll = path.split(".");
7913
8350
  const arr = [];
7914
8351
  pathArrayAll.map((e, i) => {
@@ -7919,7 +8356,7 @@ const getNavigationHistory = (config, path) => {
7919
8356
  arr.push(`${arr[i - 1]}.${e}`);
7920
8357
  });
7921
8358
  arr.map((e) => {
7922
- const data = _.get(config, e);
8359
+ const data = _.get(config2, e);
7923
8360
  if (data) {
7924
8361
  urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
7925
8362
  } else {
@@ -7953,16 +8390,16 @@ const getFormdataFromSessionStorage = (path) => {
7953
8390
  }
7954
8391
  return returnValue || pageFormdata;
7955
8392
  };
7956
- async function saveHandler(store2, service2, submitHandler, pageName) {
8393
+ async function saveHandler(store2, service2, submitHandler) {
7957
8394
  var _a, _b;
7958
8395
  (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7959
8396
  const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
7960
8397
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
7961
- const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
8398
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
7962
8399
  if (_.isEmpty(store2.ctx.core.errors)) {
7963
8400
  try {
7964
- const saveReturn = await submitHandler(store2, service2, config);
7965
- navigateHandler(store2, true, pageName ? `/${pageName}?id=${saveReturn.id}` : "/PageMasterRecords");
8401
+ const saveReturn = await submitHandler(store2, service2, config2);
8402
+ navigateHandler(store2, true, "/PageMasterRecords");
7966
8403
  } catch (err) {
7967
8404
  navigateHandler(store2, false);
7968
8405
  }
@@ -8031,9 +8468,10 @@ const sectionLabels = {
8031
8468
  DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8032
8469
  InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8033
8470
  TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
8034
- ColumnGroup: ["Core", "Components"]
8471
+ ColumnGroup: ["Core", "Components"],
8472
+ Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8035
8473
  };
8036
- const refreshPage = (type, store2) => {
8474
+ function refreshPage(type, store2) {
8037
8475
  var _a;
8038
8476
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8039
8477
  if (type) {
@@ -8050,8 +8488,11 @@ const refreshPage = (type, store2) => {
8050
8488
  UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
8051
8489
  UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8052
8490
  }
8491
+ if (sessionStorage.getItem("copiedConfig")) {
8492
+ this.ElementPathSetter(UiSchema);
8493
+ }
8053
8494
  store2.setUiSchema(UiSchema);
8054
- };
8495
+ }
8055
8496
  var Component = (store2, dynamicData2, submitHandler, service2) => {
8056
8497
  return {
8057
8498
  setPage: async function() {
@@ -8068,10 +8509,14 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8068
8509
  return getFormdataFromSessionStorage(path);
8069
8510
  },
8070
8511
  getSchema: function() {
8071
- return ComponentSchema;
8512
+ const schema2 = _.cloneDeep(ComponentSchema);
8513
+ if (sessionStorage.getItem("copiedConfig")) {
8514
+ schema2.properties.RemoveItemButton.disabled = false;
8515
+ }
8516
+ return schema2;
8072
8517
  },
8073
8518
  okHandler: () => okHandler(store2),
8074
- saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
8519
+ saveHandler: async () => await saveHandler(store2, service2, submitHandler),
8075
8520
  onChange: function() {
8076
8521
  var _a, _b, _c, _d;
8077
8522
  if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.type) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.type) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.type) !== void 0) {
@@ -8163,6 +8608,84 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8163
8608
  const rowId = dynamicData2.path.split(".")[1];
8164
8609
  sessionStorage.setItem("rowId", rowId);
8165
8610
  store2.updateDialog("popUpEventSection");
8611
+ },
8612
+ copyPasteElement: function(paramStore, setPage = this.setPage.bind(this)) {
8613
+ var _a;
8614
+ const [actionType, elementType] = (_a = dynamicData2.path.split(".").pop()) == null ? void 0 : _a.split("_");
8615
+ actionType === "Copy" ? this.CopyElement(paramStore, elementType) : this.PasteElement(setPage, elementType);
8616
+ },
8617
+ CopyElement: function(paramStore = store2, elementType) {
8618
+ var _a;
8619
+ const schema2 = lodash.exports.cloneDeep(paramStore.schema);
8620
+ const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
8621
+ schema2.properties.RemoveItemButton.disabled = false;
8622
+ const rowId = dynamicData2.path.split(".")[1];
8623
+ const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8624
+ const copiedElementPath = this.elementPathHandler(parentPathOfCopiedComponent, rowId, elementType);
8625
+ const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8626
+ this.ElementPathSetter(uiSchema, copiedFormData);
8627
+ sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8628
+ store2.setSchema(schema2);
8629
+ store2.setUiSchema(uiSchema);
8630
+ },
8631
+ PasteElement: function(setPage, elementType) {
8632
+ var _a;
8633
+ if (!sessionStorage.getItem("copiedConfig")) {
8634
+ store2.setNotify({
8635
+ FailMessage: "No item has been copied.",
8636
+ Fail: true
8637
+ });
8638
+ return;
8639
+ }
8640
+ const pastedElementParentPath = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8641
+ if (!Array.isArray(store2.formData.elements)) {
8642
+ store2.formData.elements = [];
8643
+ }
8644
+ if (!Array.isArray(store2.formData.events)) {
8645
+ store2.formData.events = [];
8646
+ }
8647
+ saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8648
+ const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8649
+ const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
8650
+ const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8651
+ const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8652
+ const notificationMessages = {
8653
+ Event: " The event cannot be integrated into the component section.",
8654
+ Component: "The component cannot be integrated into the event section."
8655
+ };
8656
+ if (copiedConfig.Handler && elementType === "Component") {
8657
+ store2.setNotify({
8658
+ FailMessage: notificationMessages.Event,
8659
+ Fail: true
8660
+ });
8661
+ } else if (copiedConfig.name && elementType === "Event") {
8662
+ store2.setNotify({
8663
+ FailMessage: notificationMessages.Component,
8664
+ Fail: true
8665
+ });
8666
+ } else {
8667
+ saveFormdataInSessionStorage(copiedConfig, pastedElementPath);
8668
+ setPage();
8669
+ }
8670
+ },
8671
+ RemoveItemButton: function(paramStore = store2) {
8672
+ const schema2 = lodash.exports.cloneDeep(paramStore.schema);
8673
+ const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
8674
+ schema2.properties.RemoveItemButton.disabled = true;
8675
+ uiSchema.elements[2].elements[1].config.main.heading = `No element copied`;
8676
+ sessionStorage.removeItem("copiedConfig");
8677
+ store2.setSchema(schema2);
8678
+ store2.setUiSchema(uiSchema);
8679
+ },
8680
+ elementPathHandler: function(parentPath, rowId, elementType) {
8681
+ if (elementType === "Component") {
8682
+ return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
8683
+ }
8684
+ return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8685
+ },
8686
+ ElementPathSetter: function(uiSchema, copiedFormData) {
8687
+ const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8688
+ uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
8166
8689
  }
8167
8690
  };
8168
8691
  };
@@ -8180,19 +8703,27 @@ var pageMaster = (funcParams) => {
8180
8703
  getFormdata: async function() {
8181
8704
  var _a;
8182
8705
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8183
- const config = await funcParams.pageConfigProvider(id);
8706
+ const config2 = await funcParams.pageConfigProvider(id);
8184
8707
  const formData = getFormdataFromSessionStorage();
8185
8708
  if (formData) {
8186
8709
  return formData;
8187
8710
  }
8188
- saveFormdataInSessionStorage(config);
8189
- return config;
8711
+ saveFormdataInSessionStorage(config2);
8712
+ return config2;
8190
8713
  },
8191
8714
  getUiSchema: function() {
8192
- return PageMasterUiSchema(store2.theme.myTheme);
8715
+ const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
8716
+ if (sessionStorage.getItem("copiedConfig")) {
8717
+ Component(store2, dynamicData2, submitHandler, service2).ElementPathSetter(UiSchema);
8718
+ }
8719
+ return UiSchema;
8193
8720
  },
8194
8721
  getSchema: () => {
8195
- return PageMasterSchema;
8722
+ const schema2 = _.cloneDeep(PageMasterSchema);
8723
+ if (sessionStorage.getItem("copiedConfig")) {
8724
+ schema2.properties.RemoveItemButton.disabled = false;
8725
+ }
8726
+ return schema2;
8196
8727
  },
8197
8728
  backHandler: () => {
8198
8729
  sessionStorage.removeItem("pageFormdata");
@@ -8256,6 +8787,12 @@ var pageMaster = (funcParams) => {
8256
8787
  const rowId = dynamicData2.path.split(".")[1];
8257
8788
  sessionStorage.setItem("rowId", rowId);
8258
8789
  store2.updateDialog("popUpPageMasterEvent");
8790
+ },
8791
+ copyPasteElement: function() {
8792
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
8793
+ },
8794
+ RemoveItemButton: function() {
8795
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
8259
8796
  }
8260
8797
  };
8261
8798
  };
@@ -8344,12 +8881,15 @@ const EventSchema = {
8344
8881
  }
8345
8882
  }
8346
8883
  }
8884
+ },
8885
+ RemoveItemButton: {
8886
+ disabled: true
8347
8887
  }
8348
8888
  },
8349
8889
  required: ["eventType", "Handler"]
8350
8890
  };
8351
8891
  const EventUiSchema = (theme) => {
8352
- var _a;
8892
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8353
8893
  const uiSchema = {
8354
8894
  type: "HorizontalLayout",
8355
8895
  heading: "Component",
@@ -8443,6 +8983,27 @@ const EventUiSchema = (theme) => {
8443
8983
  }
8444
8984
  }
8445
8985
  }
8986
+ },
8987
+ {
8988
+ widget: {
8989
+ type: "Control",
8990
+ scope: "#/properties/Paste_Event",
8991
+ options: {
8992
+ widget: "IconButton"
8993
+ },
8994
+ config: {
8995
+ main: {
8996
+ onClick: "copyPasteElement",
8997
+ size: "small",
8998
+ icon: "PasteIcon",
8999
+ iconLabel: "Paste",
9000
+ styleDefault: true
9001
+ },
9002
+ style: {
9003
+ mt: "6px"
9004
+ }
9005
+ }
9006
+ }
8446
9007
  }
8447
9008
  ]
8448
9009
  },
@@ -8501,21 +9062,86 @@ const EventUiSchema = (theme) => {
8501
9062
  }
8502
9063
  }
8503
9064
  }
9065
+ },
9066
+ {
9067
+ header: "Copy",
9068
+ field: "Copy_Event",
9069
+ flex: 1,
9070
+ widget: {
9071
+ type: "Control",
9072
+ scope: "#/properties/Copy_Event",
9073
+ options: {
9074
+ widget: "IconButton"
9075
+ },
9076
+ config: {
9077
+ main: {
9078
+ icon: "FileCopyIcon",
9079
+ onClick: "copyPasteElement",
9080
+ styleDefault: true
9081
+ }
9082
+ }
9083
+ }
8504
9084
  }
8505
9085
  ]
8506
9086
  }
8507
9087
  ]
8508
9088
  },
8509
- {
8510
- type: "Control",
8511
- scope: "#/properties/EmptyBox",
8512
- options: {
8513
- widget: "EmptyBox"
8514
- },
8515
- config: {
8516
- layout: { xs: 4, sm: 8 }
8517
- }
8518
- },
9089
+ {
9090
+ type: "HorizontalLayout",
9091
+ config: {
9092
+ layout: { xs: 12, sm: 6 }
9093
+ },
9094
+ elements: [
9095
+ {
9096
+ type: "Control",
9097
+ scope: "#/properties/RemoveItemButton",
9098
+ options: {
9099
+ widget: "IconButton"
9100
+ },
9101
+ config: {
9102
+ layout: { xs: 1, sm: 1 },
9103
+ main: {
9104
+ onClick: "RemoveItemButton",
9105
+ size: "large",
9106
+ icon: "RejectIcon",
9107
+ styleDefault: true
9108
+ },
9109
+ style: {
9110
+ marginLeft: "-10px"
9111
+ }
9112
+ }
9113
+ },
9114
+ {
9115
+ type: "Control",
9116
+ scope: "#/properties/copiedElementDetails",
9117
+ options: {
9118
+ widget: "Box"
9119
+ },
9120
+ config: {
9121
+ layout: { xs: 6, sm: 6 },
9122
+ main: {
9123
+ heading: "No element copied"
9124
+ },
9125
+ style: {
9126
+ color: "#535557",
9127
+ marginLeft: "-10px",
9128
+ fontSize: "12px",
9129
+ marginTop: "4px"
9130
+ }
9131
+ }
9132
+ },
9133
+ {
9134
+ type: "Control",
9135
+ scope: "#/properties/EmptyBox",
9136
+ options: {
9137
+ widget: "EmptyBox"
9138
+ },
9139
+ config: {
9140
+ layout: { xs: 1, sm: 5 }
9141
+ }
9142
+ }
9143
+ ]
9144
+ },
8519
9145
  {
8520
9146
  type: "Control",
8521
9147
  scope: "#/properties/btn",
@@ -8568,87 +9194,116 @@ const EventUiSchema = (theme) => {
8568
9194
  layout: {
8569
9195
  xs: 12,
8570
9196
  sm: 12,
8571
- md: 6,
8572
- lg: 6
9197
+ md: 12,
9198
+ lg: 12
8573
9199
  },
8574
- main: {},
8575
- style: {
8576
- "& .MuiPaper-root": {
8577
- width: "30%"
8578
- },
8579
- "& .MuiTypography-root": {
8580
- padding: 0
8581
- },
8582
- wrapperStyle: {
8583
- width: { xs: "100%", sm: "100%", md: "98%" }
8584
- }
8585
- }
9200
+ main: {
9201
+ title: "WARNING!"
9202
+ },
9203
+ style: {}
8586
9204
  },
8587
9205
  elements: [
8588
9206
  {
8589
9207
  type: "Control",
8590
- scope: "#/properties/label",
9208
+ scope: "#/properties/popupText",
8591
9209
  options: {
8592
9210
  widget: "Box"
8593
9211
  },
8594
9212
  config: {
8595
- layout: 12,
9213
+ layout: 11,
8596
9214
  main: {
8597
9215
  heading: "Are you sure you want to delete ?"
8598
9216
  },
8599
9217
  style: {
8600
- marginTop: "-40px"
9218
+ marginTop: "-20px",
9219
+ fontSize: "20px",
9220
+ "&.MuiTypography-root": {
9221
+ padding: "10px 30px 20px 30px",
9222
+ textAlign: "center",
9223
+ lineHeight: "1"
9224
+ }
8601
9225
  }
8602
9226
  }
8603
9227
  },
8604
9228
  {
8605
- type: "Control",
8606
- scope: "#/properties/EmptyBox",
8607
- options: {
8608
- widget: "EmptyBox"
8609
- },
8610
- config: {
8611
- main: {},
8612
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
8613
- }
8614
- },
8615
- {
8616
- type: "Control",
8617
- scope: "#/properties/ConfirmDeleteEventButton",
8618
- options: {
8619
- widget: "Button"
8620
- },
9229
+ type: "WrapperLayout",
8621
9230
  config: {
8622
- layout: 3,
8623
- main: {
8624
- name: "Yes",
8625
- startIcon: "ApproveIcon",
8626
- variant: "contained",
8627
- color: "error",
8628
- type: "text",
8629
- onClick: "deleteEvent",
8630
- size: "small"
8631
- }
8632
- }
8633
- },
8634
- {
8635
- type: "Control",
8636
- scope: "#/properties/CancelDeleteEventButton",
8637
- options: {
8638
- widget: "Button"
9231
+ layout: 11,
9232
+ main: {}
8639
9233
  },
8640
- config: {
8641
- layout: 3,
8642
- main: {
8643
- name: "No",
8644
- startIcon: "ApproveIcon",
8645
- variant: "contained",
8646
- color: "info",
8647
- type: "text",
8648
- onClick: "deletePopUpEvent",
8649
- size: "small"
9234
+ elements: [
9235
+ {
9236
+ type: "Control",
9237
+ scope: "#/properties/CancelDeleteEventButton",
9238
+ options: {
9239
+ widget: "Button"
9240
+ },
9241
+ config: {
9242
+ layout: 6,
9243
+ main: {
9244
+ name: "No",
9245
+ startIcon: "ApproveIcon",
9246
+ variant: "contained",
9247
+ color: "info",
9248
+ type: "text",
9249
+ onClick: "deletePopUpEvent",
9250
+ size: "large"
9251
+ },
9252
+ style: {
9253
+ position: "absolute",
9254
+ bottom: 0,
9255
+ left: 0,
9256
+ width: "50%",
9257
+ borderRadius: 0,
9258
+ boxShadow: 0,
9259
+ backgroundColor: "transparent",
9260
+ color: theme.palette.primary.main,
9261
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
9262
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
9263
+ "&:hover": {
9264
+ color: theme.palette.primary.contrastText,
9265
+ backgroundColor: theme.palette.primary.main,
9266
+ boxShadow: "none"
9267
+ }
9268
+ }
9269
+ }
9270
+ },
9271
+ {
9272
+ type: "Control",
9273
+ scope: "#/properties/ConfirmDeleteEventButton",
9274
+ options: {
9275
+ widget: "Button"
9276
+ },
9277
+ config: {
9278
+ layout: 6,
9279
+ main: {
9280
+ name: "Yes",
9281
+ startIcon: "ApproveIcon",
9282
+ variant: "contained",
9283
+ color: "error",
9284
+ type: "text",
9285
+ onClick: "deleteEvent",
9286
+ size: "large"
9287
+ },
9288
+ style: {
9289
+ position: "absolute",
9290
+ bottom: 0,
9291
+ right: 0,
9292
+ width: "50%",
9293
+ borderRadius: 0,
9294
+ boxShadow: 0,
9295
+ backgroundColor: "transparent",
9296
+ color: theme.palette.error.main,
9297
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
9298
+ "&:hover": {
9299
+ color: theme.palette.error.contrastText,
9300
+ backgroundColor: theme.palette.error.main,
9301
+ boxShadow: "none"
9302
+ }
9303
+ }
9304
+ }
8650
9305
  }
8651
- }
9306
+ ]
8652
9307
  }
8653
9308
  ]
8654
9309
  },
@@ -8670,7 +9325,6 @@ const EventUiSchema = (theme) => {
8670
9325
  flexDirection: "row",
8671
9326
  position: "absolute",
8672
9327
  bottom: 0,
8673
- marginBottom: "-8px",
8674
9328
  height: "fit-content",
8675
9329
  overflow: "hidden",
8676
9330
  zIndex: 1e3,
@@ -8689,22 +9343,23 @@ const EventUiSchema = (theme) => {
8689
9343
  heading: "Copywriter@ACT21.IO"
8690
9344
  },
8691
9345
  style: {
8692
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
8693
- fontSize: "12px",
9346
+ color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
9347
+ fontSize: "11px",
8694
9348
  textAlign: "center",
8695
- lineHeight: 1,
9349
+ lineHeight: 2,
8696
9350
  width: "fit-content",
8697
9351
  left: "50%",
8698
9352
  position: "relative",
8699
9353
  margin: 0,
8700
9354
  flexGrow: 1,
8701
- height: 0
9355
+ height: 0,
9356
+ transform: "translate(-50%, 0%)"
8702
9357
  }
8703
9358
  }
8704
9359
  },
8705
9360
  {
8706
9361
  type: "Control",
8707
- scope: "#/properties/backIcon",
9362
+ scope: "#/properties/FooterBackIcon",
8708
9363
  options: {
8709
9364
  widget: "Box"
8710
9365
  },
@@ -8715,24 +9370,24 @@ const EventUiSchema = (theme) => {
8715
9370
  width: "fit-content"
8716
9371
  },
8717
9372
  style: {
8718
- fill: theme.palette.primary.main,
9373
+ fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
8719
9374
  width: 20,
8720
9375
  height: 0,
8721
- margin: 0,
8722
9376
  top: 0,
8723
9377
  right: { xs: "12px", sm: "84px" },
8724
9378
  position: "absolute",
8725
9379
  fontSize: "12px",
8726
9380
  cursor: "pointer",
8727
9381
  ":hover": {
8728
- fill: theme.palette.primary.dark
8729
- }
9382
+ fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9383
+ },
9384
+ marginRight: "20px"
8730
9385
  }
8731
9386
  }
8732
9387
  },
8733
9388
  {
8734
9389
  type: "Control",
8735
- scope: "#/properties/text",
9390
+ scope: "#/properties/FooterBackHandlerText",
8736
9391
  options: {
8737
9392
  widget: "Box"
8738
9393
  },
@@ -8747,17 +9402,17 @@ const EventUiSchema = (theme) => {
8747
9402
  lineHeight: 1,
8748
9403
  height: 0,
8749
9404
  width: "fit-content",
8750
- color: theme.palette.primary.main,
9405
+ color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
8751
9406
  fontSize: "12px",
8752
9407
  cursor: "pointer",
8753
9408
  marginLeft: "2px",
8754
- marginRight: 0,
8755
9409
  top: 3,
8756
9410
  right: "12px",
8757
9411
  position: "absolute",
8758
9412
  ":hover": {
8759
- color: theme.palette.primary.dark
8760
- }
9413
+ color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9414
+ },
9415
+ marginRight: "4px"
8761
9416
  }
8762
9417
  }
8763
9418
  }
@@ -9048,6 +9703,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9048
9703
  ...functionsName
9049
9704
  ];
9050
9705
  }
9706
+ if (sessionStorage.getItem("copiedConfig")) {
9707
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9708
+ schema2.properties.RemoveItemButton.disabled = false;
9709
+ }
9051
9710
  store22.setSchema(schema2);
9052
9711
  store22.setUiSchema(uiSchema);
9053
9712
  },
@@ -9056,10 +9715,14 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9056
9715
  return EventUiSchema;
9057
9716
  },
9058
9717
  getSchema: () => {
9059
- return EventSchema;
9718
+ const schema2 = _.cloneDeep(EventSchema);
9719
+ if (sessionStorage.getItem("copiedConfig")) {
9720
+ schema2.properties.RemoveItemButton.disabled = false;
9721
+ }
9722
+ return schema2;
9060
9723
  },
9061
9724
  okHandler: () => okHandler(store2),
9062
- saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
9725
+ saveHandler: async () => await saveHandler(store2, service2, submitHandler),
9063
9726
  onChange: function() {
9064
9727
  var _a, _b, _c;
9065
9728
  if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.Handler) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.Handler) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.Handler) !== void 0) {
@@ -9099,6 +9762,12 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9099
9762
  const rowId = dynamicData2.path.split(".")[1];
9100
9763
  sessionStorage.setItem("rowId", rowId);
9101
9764
  store2.updateDialog("popUpEvent");
9765
+ },
9766
+ copyPasteElement: function() {
9767
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
9768
+ },
9769
+ RemoveItemButton: function() {
9770
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9102
9771
  }
9103
9772
  };
9104
9773
  };
@@ -9270,36 +9939,40 @@ function executeCustomHandler(params) {
9270
9939
  }
9271
9940
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9272
9941
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9273
- store2.setSchema((pre) => {
9274
- var _a;
9275
- return {
9276
- ...pre,
9277
- properties: {
9278
- ...pre.properties,
9279
- [componentName]: {
9280
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9281
- oneOf: handlerResponse.data
9942
+ if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9943
+ store2.setSchema((pre) => {
9944
+ var _a;
9945
+ return {
9946
+ ...pre,
9947
+ properties: {
9948
+ ...pre.properties,
9949
+ [componentName]: {
9950
+ ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9951
+ oneOf: handlerResponse.data
9952
+ }
9282
9953
  }
9283
- }
9284
- };
9285
- });
9954
+ };
9955
+ });
9956
+ }
9286
9957
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9287
- store2.setSchema((pre) => {
9288
- var _a;
9289
- return {
9290
- ...pre,
9291
- properties: {
9292
- ...pre.properties,
9293
- [componentName]: {
9294
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9295
- type: "array",
9296
- items: {
9297
- oneOf: handlerResponse == null ? void 0 : handlerResponse.data
9958
+ if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9959
+ store2.setSchema((pre) => {
9960
+ var _a;
9961
+ return {
9962
+ ...pre,
9963
+ properties: {
9964
+ ...pre.properties,
9965
+ [componentName]: {
9966
+ ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9967
+ type: "array",
9968
+ items: {
9969
+ oneOf: handlerResponse == null ? void 0 : handlerResponse.data
9970
+ }
9298
9971
  }
9299
9972
  }
9300
- }
9301
- };
9302
- });
9973
+ };
9974
+ });
9975
+ }
9303
9976
  } else if (eventConfig.type === "page") {
9304
9977
  if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
9305
9978
  store2.newData = {
@@ -9480,10 +10153,10 @@ var service = (funcParams) => {
9480
10153
  config: pageData == null ? void 0 : pageData.config
9481
10154
  }));
9482
10155
  }
9483
- const config = pageData == null ? void 0 : pageData.config;
10156
+ const config2 = pageData == null ? void 0 : pageData.config;
9484
10157
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
9485
10158
  const event2 = new CustomEvent("pageNameChanged", {
9486
- detail: { pageName: config.label }
10159
+ detail: { pageName: config2.label }
9487
10160
  });
9488
10161
  window.dispatchEvent(event2);
9489
10162
  const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
@@ -9517,7 +10190,7 @@ var service = (funcParams) => {
9517
10190
  },
9518
10191
  style: {
9519
10192
  color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
9520
- fontSize: "12px",
10193
+ fontSize: "11px",
9521
10194
  textAlign: "center",
9522
10195
  lineHeight: 2,
9523
10196
  width: "fit-content",
@@ -9554,7 +10227,7 @@ var service = (funcParams) => {
9554
10227
  ":hover": {
9555
10228
  fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
9556
10229
  },
9557
- marginRight: "13px"
10230
+ marginRight: "20px"
9558
10231
  }
9559
10232
  }
9560
10233
  },
@@ -9576,7 +10249,7 @@ var service = (funcParams) => {
9576
10249
  height: 0,
9577
10250
  width: "fit-content",
9578
10251
  color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
9579
- fontSize: "14px",
10252
+ fontSize: "12px",
9580
10253
  cursor: "pointer",
9581
10254
  marginLeft: "2px",
9582
10255
  top: 3,
@@ -9593,7 +10266,7 @@ var service = (funcParams) => {
9593
10266
  }
9594
10267
  );
9595
10268
  const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
9596
- eventGroups = extractEvents(config);
10269
+ eventGroups = extractEvents(config2);
9597
10270
  executeEventsParameters = {
9598
10271
  config: {},
9599
10272
  componentName: "",
@@ -9744,415 +10417,89 @@ var service = (funcParams) => {
9744
10417
  },
9745
10418
  onNext: async function(functionParameters) {
9746
10419
  var _a, _b;
9747
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
9748
- await this.callHandler("onNext", functionParameters);
9749
- if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
9750
- functionParameters == null ? void 0 : functionParameters.handleNext();
9751
- }
9752
- },
9753
- onReset: async function(functionParameters) {
9754
- var _a, _b;
9755
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
9756
- await this.callHandler("onReset", functionParameters);
9757
- if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
9758
- functionParameters == null ? void 0 : functionParameters.handleReset();
9759
- }
9760
- },
9761
- callHandler: async function(eventType, functionParameters) {
9762
- var _a, _b, _c;
9763
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
9764
- if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
9765
- Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
9766
- executeEventsParameters.store.functionParameters = functionParameters;
9767
- executeEvents({
9768
- ...executeEventsParameters,
9769
- config: eventConfig,
9770
- componentName: path
9771
- });
9772
- }));
9773
- }
9774
- },
9775
- downloadFile: downloadFile$1,
9776
- download: doDownload,
9777
- ...funcParams.functionsProvider
9778
- };
9779
- };
9780
- var leaderBoard = {
9781
- type: "WrapperLayout",
9782
- config: {
9783
- main: {
9784
- rowSpacing: 3,
9785
- header: true,
9786
- label: "LeaderBoard",
9787
- divider: true
9788
- },
9789
- style: {},
9790
- wrapperStyle: {
9791
- position: "relative",
9792
- width: "100%"
9793
- },
9794
- componentsBoxStyle: {
9795
- display: "flex",
9796
- flexDirection: "column",
9797
- gap: "20px"
9798
- }
9799
- },
9800
- elements: [
9801
- {
9802
- type: "Control",
9803
- scope: "#/properties/leaderBoard/properties/firstImage",
9804
- config: {
9805
- main: {
9806
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9807
- },
9808
- style: {
9809
- imageStyle: {
9810
- objectFit: "cover",
9811
- width: "100%",
9812
- height: "100%",
9813
- borderRadius: "50%"
9814
- },
9815
- containerStyle: {
9816
- objectFit: "cover",
9817
- position: "absolute",
9818
- top: { xs: "90px", "md": "60px" },
9819
- left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
9820
- width: { "xs": "100px", "sm": "100px", "md": "200px" },
9821
- border: "5px solid rgb(179, 198, 255)",
9822
- height: { "xs": "100px", "sm": "100px", "md": "200px" },
9823
- borderRadius: "50%"
9824
- }
9825
- },
9826
- layout: 6
9827
- },
9828
- options: {
9829
- widget: "Image"
9830
- }
9831
- },
9832
- {
9833
- type: "Control",
9834
- scope: "#/properties/leaderBoard/properties/secondImage",
9835
- config: {
9836
- main: {
9837
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9838
- },
9839
- style: {
9840
- imageStyle: {
9841
- objectFit: "cover",
9842
- width: "100%",
9843
- height: "100%",
9844
- borderRadius: "50%"
9845
- },
9846
- containerStyle: {
9847
- objectFit: "cover",
9848
- position: "absolute",
9849
- top: { xs: "160px", "md": "130px" },
9850
- left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
9851
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
9852
- border: "5px solid rgb(179, 198, 255)",
9853
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
9854
- borderRadius: "50%"
9855
- }
9856
- },
9857
- layout: 6
9858
- },
9859
- options: {
9860
- widget: "Image"
9861
- }
9862
- },
9863
- {
9864
- type: "Control",
9865
- scope: "#/properties/leaderBoard/properties/thirdImage",
9866
- config: {
9867
- main: {
9868
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9869
- },
9870
- style: {
9871
- imageStyle: {
9872
- objectFit: "cover",
9873
- width: "100%",
9874
- height: "100%",
9875
- borderRadius: "50%"
9876
- },
9877
- containerStyle: {
9878
- objectFit: "cover",
9879
- position: "absolute",
9880
- top: { xs: "160px", "md": "130px" },
9881
- left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
9882
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
9883
- border: "5px solid rgb(179, 198, 255)",
9884
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
9885
- borderRadius: "50%"
9886
- }
9887
- },
9888
- layout: 6
9889
- },
9890
- options: {
9891
- widget: "Image"
9892
- }
9893
- },
9894
- {
9895
- type: "Control",
9896
- scope: "#/properties/leaderBoard/properties/firstName",
9897
- config: {
9898
- main: {
9899
- heading: "Satendra Raghav"
9900
- },
9901
- style: {
9902
- objectFit: "cover",
9903
- position: "absolute",
9904
- display: "flex",
9905
- justifyContent: "center",
9906
- alignItems: "center",
9907
- color: "black",
9908
- top: { xs: "190px", md: "270px" },
9909
- fontSize: { xs: "12px", md: "20px" },
9910
- left: "calc(50% - 90px)",
9911
- width: "180px",
9912
- fontWeight: "bold",
9913
- borderRadius: "50%",
9914
- zIndex: 7
9915
- },
9916
- layout: 6
9917
- },
9918
- options: {
9919
- widget: "Box"
9920
- }
9921
- },
9922
- {
9923
- type: "Control",
9924
- scope: "#/properties/leaderBoard/properties/secondName",
9925
- config: {
9926
- main: {
9927
- heading: "Satendra Raghav"
9928
- },
9929
- style: {
9930
- objectFit: "cover",
9931
- position: "absolute",
9932
- display: "flex",
9933
- justifyContent: "center",
9934
- alignItems: "center",
9935
- color: "black",
9936
- top: { xs: "240px", md: "320px" },
9937
- fontSize: { xs: "12px", md: "20px" },
9938
- left: "calc(25% - 90px)",
9939
- width: "180px",
9940
- fontWeight: "bold",
9941
- borderRadius: "50%"
9942
- },
9943
- layout: 6
9944
- },
9945
- options: {
9946
- widget: "Box"
9947
- }
9948
- },
9949
- {
9950
- type: "Control",
9951
- scope: "#/properties/leaderBoard/properties/thirdName",
9952
- config: {
9953
- main: {
9954
- heading: "Satendra Raghav"
9955
- },
9956
- style: {
9957
- objectFit: "cover",
9958
- position: "absolute",
9959
- display: "flex",
9960
- justifyContent: "center",
9961
- alignItems: "center",
9962
- color: "black",
9963
- top: { xs: "240px", md: "320px" },
9964
- fontSize: { xs: "12px", md: "20px" },
9965
- left: "calc(75% - 90px)",
9966
- width: "180px",
9967
- fontWeight: "bold",
9968
- borderRadius: "50%"
9969
- },
9970
- layout: 6
9971
- },
9972
- options: {
9973
- widget: "Box"
9974
- }
9975
- },
9976
- {
9977
- type: "Control",
9978
- scope: "#/properties/econd",
9979
- config: {
9980
- main: {
9981
- heading: "2"
9982
- },
9983
- style: {
9984
- objectFit: "cover",
9985
- position: "absolute",
9986
- display: "flex",
9987
- justifyContent: "center",
9988
- alignItems: "center",
9989
- textShadow: "2px 2px 5px #5065C7",
9990
- background: "green",
9991
- color: "white",
9992
- top: { xs: "225px", md: "280px" },
9993
- fontSize: { xs: "12px", md: "16px" },
9994
- left: { xs: "calc(25% - 12px)", md: "calc(25% - 16px)" },
9995
- width: { xs: "20px", md: "40px" },
9996
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
9997
- height: { xs: "20px", md: "40px" },
9998
- "@keyframes rotateAnimation": {
9999
- from: {
10000
- transform: "rotate(0deg)"
10001
- },
10002
- to: {
10003
- transform: "rotate(360deg)"
10004
- }
10005
- },
10006
- animation: "rotateAnimation 4s infinite",
10007
- borderRadius: "50%",
10008
- zIndex: 5
10009
- },
10010
- layout: 6
10011
- },
10012
- options: {
10013
- widget: "Box"
10420
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10421
+ await this.callHandler("onNext", functionParameters);
10422
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
10423
+ functionParameters == null ? void 0 : functionParameters.handleNext();
10014
10424
  }
10015
10425
  },
10016
- {
10017
- type: "Control",
10018
- scope: "#/properties/first",
10019
- config: {
10020
- main: {
10021
- heading: "1"
10022
- },
10023
- style: {
10024
- objectFit: "cover",
10025
- position: "absolute",
10026
- display: "flex",
10027
- justifyContent: "center",
10028
- alignItems: "center",
10029
- textShadow: "2px 2px 5px #5065C7",
10030
- background: "green",
10031
- color: "white",
10032
- top: { xs: "175px", md: "230px" },
10033
- fontSize: { xs: "12px", md: "16px" },
10034
- left: { xs: "calc(50% - 12px)", md: "calc(50% - 16px)" },
10035
- "@keyframes rotateAnimation": {
10036
- from: {
10037
- transform: "rotate(0deg)"
10038
- },
10039
- to: {
10040
- transform: "rotate(360deg)"
10041
- }
10042
- },
10043
- animation: "rotateAnimation 4s infinite",
10044
- width: { xs: "20px", md: "40px" },
10045
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
10046
- height: { xs: "20px", md: "40px" },
10047
- borderRadius: "50%",
10048
- zIndex: 5
10049
- },
10050
- layout: 6
10051
- },
10052
- options: {
10053
- widget: "Box"
10426
+ onReset: async function(functionParameters) {
10427
+ var _a, _b;
10428
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10429
+ await this.callHandler("onReset", functionParameters);
10430
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
10431
+ functionParameters == null ? void 0 : functionParameters.handleReset();
10054
10432
  }
10055
10433
  },
10056
- {
10057
- type: "Control",
10058
- scope: "#/properties/third",
10059
- config: {
10060
- main: {
10061
- heading: "3"
10062
- },
10063
- style: {
10064
- objectFit: "cover",
10065
- position: "absolute",
10066
- display: "flex",
10067
- justifyContent: "center",
10068
- alignItems: "center",
10069
- textShadow: "2px 2px 5px #5065C7",
10070
- background: "green",
10071
- color: "white",
10072
- top: { xs: "225px", md: "280px" },
10073
- fontSize: { xs: "12px", md: "16px" },
10074
- left: { xs: "calc(75% - 12px)", md: "calc(75% - 16px)" },
10075
- width: { xs: "20px", md: "40px" },
10076
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
10077
- height: { xs: "20px", md: "40px" },
10078
- "@keyframes rotateAnimation": {
10079
- from: {
10080
- transform: "rotate(0deg)"
10081
- },
10082
- to: {
10083
- transform: "rotate(360deg)"
10084
- }
10085
- },
10086
- animation: "rotateAnimation 4s infinite",
10087
- borderRadius: "50%",
10088
- zIndex: 5
10089
- },
10090
- layout: 6
10091
- },
10092
- options: {
10093
- widget: "Box"
10434
+ callHandler: async function(eventType, functionParameters) {
10435
+ var _a, _b, _c;
10436
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10437
+ if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10438
+ Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
10439
+ executeEventsParameters.store.functionParameters = functionParameters;
10440
+ executeEvents({
10441
+ ...executeEventsParameters,
10442
+ config: eventConfig,
10443
+ componentName: path
10444
+ });
10445
+ }));
10094
10446
  }
10095
10447
  },
10096
- {
10097
- type: "Control",
10098
- scope: "#/properties/leaderBoard/properties/table",
10099
- options: {
10100
- widget: "Table"
10101
- },
10102
- elements: [],
10103
- config: {
10104
- style: {
10105
- tableHeadstyle: {
10106
- fontWeight: 900,
10107
- background: "rgb(179, 198, 255)"
10108
- },
10109
- top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
10110
- border: "2px solid rgb(179, 198, 255)",
10111
- width: "95%",
10112
- left: "2.5%",
10113
- margin: "auto"
10114
- },
10115
- main: {
10116
- disableAction: true,
10117
- disableSelection: true
10118
- }
10119
- }
10120
- }
10121
- ]
10448
+ downloadFile: downloadFile$1,
10449
+ download: doDownload,
10450
+ ...funcParams.functionsProvider
10451
+ };
10452
+ };
10453
+ var leaderBoard = {
10454
+ type: "Control",
10455
+ scope: "#/properties/path",
10456
+ options: {
10457
+ widget: "LeaderBoard"
10458
+ },
10459
+ config: {
10460
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
10461
+ main: {}
10462
+ }
10122
10463
  };
10123
- const buildLeaderBoard = (config) => {
10464
+ const buildLeaderBoard = (config2) => {
10124
10465
  const LeaderBoard = _.cloneDeep(leaderBoard);
10125
- if (config.elements) {
10126
- const modifyColumns = config.elements.map((e, i) => {
10466
+ if (config2.elements) {
10467
+ const modifyColumns = config2.elements.map((e, i) => {
10127
10468
  if (!e.type) {
10128
10469
  return { accessorKey: e.name, header: e.label || e.name };
10129
10470
  }
10130
10471
  const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name };
10131
10472
  return { ...widgetSchema };
10132
10473
  });
10133
- LeaderBoard.elements[9].elements = modifyColumns;
10474
+ LeaderBoard.elements = modifyColumns;
10134
10475
  }
10135
- LeaderBoard.config.main.label = config.label;
10136
- if (config.name) {
10137
- LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
10138
- LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`;
10139
- LeaderBoard.elements[1].scope = `#/properties/${config.name}/properties/secondImage`;
10140
- LeaderBoard.elements[4].scope = `#/properties/${config.name}/properties/secondName`;
10141
- LeaderBoard.elements[2].scope = `#/properties/${config.name}/properties/thirdImage`;
10142
- LeaderBoard.elements[5].scope = `#/properties/${config.name}/properties/thirdName`;
10143
- LeaderBoard.elements[9].scope = `#/properties/${config.name}/properties/table`;
10476
+ LeaderBoard.config.main.label = config2.label;
10477
+ if (config2.name) {
10478
+ LeaderBoard.scope = `#/properties/${config2.name}`;
10144
10479
  }
10145
- if (config.firstImage) {
10146
- LeaderBoard.elements[0].config.main.url = config.firstImage;
10480
+ if (config2.firstImage) {
10481
+ LeaderBoard.config.main.firstImage = config2.firstImage;
10147
10482
  }
10148
- if (config.secondImage) {
10149
- LeaderBoard.elements[1].config.main.url = config.secondImage;
10483
+ if (config2.secondImage) {
10484
+ LeaderBoard.config.main.secondImage = config2.secondImage;
10150
10485
  }
10151
- if (config.secondImage) {
10152
- LeaderBoard.elements[2].config.main.url = config.thirdImage;
10486
+ if (config2.thirdImage) {
10487
+ LeaderBoard.config.main.thirdImage = config2.thirdImage;
10153
10488
  }
10154
- if (config.layout) {
10155
- LeaderBoard.config.layout = createLayoutFormat(config.layout);
10489
+ if (config2.nameKey) {
10490
+ LeaderBoard.config.main.nameKey = config2.nameKey;
10491
+ }
10492
+ if (config2.imageKey) {
10493
+ LeaderBoard.config.main.imageKey = config2.imageKey;
10494
+ }
10495
+ if (config2.scoreKey) {
10496
+ LeaderBoard.config.main.scoreKey = config2.scoreKey;
10497
+ }
10498
+ if (config2.layout) {
10499
+ LeaderBoard.config.layout = createLayoutFormat(config2.layout);
10500
+ }
10501
+ if (config2.style) {
10502
+ LeaderBoard.config.style = JSON.parse(config2.style);
10156
10503
  }
10157
10504
  return LeaderBoard;
10158
10505
  };
@@ -10163,7 +10510,7 @@ var progressBar = {
10163
10510
  widget: "ProgressBar"
10164
10511
  },
10165
10512
  config: {
10166
- layout: 6,
10513
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
10167
10514
  main: {
10168
10515
  developOnlyProgresBar: false,
10169
10516
  bottomLabel_3: "Remaining",
@@ -10171,44 +10518,44 @@ var progressBar = {
10171
10518
  }
10172
10519
  }
10173
10520
  };
10174
- const buildProgressBarCard = (config, myScope) => {
10521
+ const buildProgressBarCard = (config2, myScope) => {
10175
10522
  const progressBarCard = _.cloneDeep(progressBar);
10176
10523
  progressBarCard.scope = myScope;
10177
- if (config.heading) {
10178
- progressBarCard.config.main.heading = config.heading;
10524
+ if (config2.heading) {
10525
+ progressBarCard.config.main.heading = config2.heading;
10179
10526
  }
10180
- if (config.bottomLabel_3) {
10181
- progressBarCard.config.main.bottomLabel_3 = config.bottomLabel_3;
10527
+ if (config2.bottomLabel_3) {
10528
+ progressBarCard.config.main.bottomLabel_3 = config2.bottomLabel_3;
10182
10529
  }
10183
- if (config.bottomLabel_2) {
10184
- progressBarCard.config.main.bottomLabel_2 = config.bottomLabel_2;
10530
+ if (config2.bottomLabel_2) {
10531
+ progressBarCard.config.main.bottomLabel_2 = config2.bottomLabel_2;
10185
10532
  }
10186
- if (config.bottomLabel_1) {
10187
- progressBarCard.elements[0].config.main.bottomLabel_1 = config.bottomLabel_1;
10533
+ if (config2.bottomLabel_1) {
10534
+ progressBarCard.elements[0].config.main.bottomLabel_1 = config2.bottomLabel_1;
10188
10535
  }
10189
- if (config.layout) {
10190
- progressBarCard.config.layout = createLayoutFormat(config.layout);
10536
+ if (config2.layout) {
10537
+ progressBarCard.config.layout = createLayoutFormat(config2.layout);
10191
10538
  }
10192
10539
  return progressBarCard;
10193
10540
  };
10194
- const buildProgressBar = (config, componentScope) => {
10541
+ const buildProgressBar = (config2, componentScope2) => {
10195
10542
  const ProgressBar = _.cloneDeep(progressBar);
10196
- ProgressBar.scope = componentScope;
10197
- if (config.layout) {
10198
- ProgressBar.config.layout = config.layout;
10543
+ ProgressBar.scope = componentScope2;
10544
+ if (config2.layout) {
10545
+ ProgressBar.config.layout = config2.layout;
10199
10546
  }
10200
- ProgressBar.config.main.heading = config.label;
10201
- if (config.bottomLabel_3) {
10202
- ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
10547
+ ProgressBar.config.main.heading = config2.label;
10548
+ if (config2.bottomLabel_3) {
10549
+ ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10203
10550
  }
10204
- if (config.layout) {
10205
- ProgressBar.config.layout = createLayoutFormat(config.layout);
10551
+ if (config2.layout) {
10552
+ ProgressBar.config.layout = createLayoutFormat(config2.layout);
10206
10553
  }
10207
- if (config.bottomLabel_2) {
10208
- ProgressBar.config.main.bottomLabel_2 = config.bottomLabel_2;
10554
+ if (config2.bottomLabel_2) {
10555
+ ProgressBar.config.main.bottomLabel_2 = config2.bottomLabel_2;
10209
10556
  }
10210
- if (config.bottomLabel_1) {
10211
- ProgressBar.config.main.bottomLabel_1 = config.bottomLabel_1;
10557
+ if (config2.bottomLabel_1) {
10558
+ ProgressBar.config.main.bottomLabel_1 = config2.bottomLabel_1;
10212
10559
  }
10213
10560
  return ProgressBar;
10214
10561
  };
@@ -10219,8 +10566,12 @@ const BarGraph = {
10219
10566
  widget: "Graph"
10220
10567
  },
10221
10568
  config: {
10222
- main: {},
10223
- style: { containerStyle: {} }
10569
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10570
+ main: {
10571
+ type: "BarGraph",
10572
+ legendLabels: null
10573
+ },
10574
+ style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10224
10575
  }
10225
10576
  };
10226
10577
  const PieGraph = {
@@ -10230,10 +10581,12 @@ const PieGraph = {
10230
10581
  widget: "Graph"
10231
10582
  },
10232
10583
  config: {
10584
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10233
10585
  main: {
10234
- type: "PieGraph"
10586
+ type: "PieGraph",
10587
+ legendLabels: null
10235
10588
  },
10236
- style: {}
10589
+ style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
10237
10590
  }
10238
10591
  };
10239
10592
  const LineGraph = {
@@ -10243,32 +10596,12 @@ const LineGraph = {
10243
10596
  widget: "Graph"
10244
10597
  },
10245
10598
  config: {
10246
- layout: 12,
10599
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10247
10600
  main: {
10248
10601
  type: "LineGraph",
10249
- header: "Quartely Incentive in Thousand",
10250
- bottomLabel: "Years",
10251
- leftLabel: "Incentive",
10252
- gridHidden: true,
10253
- numHidden: false,
10254
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
10255
- axisLeft: true,
10256
- axisBottom: true,
10257
- hideLeftAxisLine: false,
10258
- hideBottomAxisLine: false,
10259
- legend: {
10260
- labelColor: "green",
10261
- direction: "row",
10262
- align: "right",
10263
- colorRectWidth: 20
10264
- }
10602
+ legendLabels: null
10265
10603
  },
10266
- style: {
10267
- containerStyle: {},
10268
- headerStyle: {},
10269
- labelStyle: {},
10270
- lineStyle: {}
10271
- }
10604
+ style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
10272
10605
  }
10273
10606
  };
10274
10607
  const HorizontalBarGraph = {
@@ -10278,42 +10611,51 @@ const HorizontalBarGraph = {
10278
10611
  widget: "Graph"
10279
10612
  },
10280
10613
  config: {
10614
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10281
10615
  main: {
10282
- type: "HorizontalBarGraph"
10616
+ type: "HorizontalBarGraph",
10617
+ legendLabels: null
10283
10618
  },
10284
- style: {}
10619
+ style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10285
10620
  }
10286
10621
  };
10287
- const buildHorizontalBarGraph = (config, componentScope) => {
10622
+ const buildHorizontalBarGraph = (config2, componentScope2) => {
10288
10623
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10289
- horizontalBarGraph.scope = componentScope;
10290
- if (config.layout) {
10291
- horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
10624
+ horizontalBarGraph.scope = componentScope2;
10625
+ if (config2.layout) {
10626
+ horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
10292
10627
  }
10293
- horizontalBarGraph.config.main.type = config.graphType;
10294
- horizontalBarGraph.scope = componentScope;
10295
- horizontalBarGraph.config.main.header = config.heading;
10296
- if (config.barColor) {
10297
- horizontalBarGraph.config.barStyle.color = config.barColor;
10628
+ horizontalBarGraph.config.main.type = config2.graphType;
10629
+ horizontalBarGraph.scope = componentScope2;
10630
+ horizontalBarGraph.config.main.header = config2.heading;
10631
+ if (config2.legendHide) {
10632
+ horizontalBarGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10298
10633
  }
10299
- if (config.xAxisValue) {
10300
- horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
10634
+ if (config2.bottomAxisAngle) {
10635
+ horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10301
10636
  }
10302
- if (config.containerBackground) {
10303
- horizontalBarGraph.config.containerStyle.background = config.containerBackground;
10637
+ if (config2.legendLabels) {
10638
+ horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10304
10639
  }
10305
- if (config.height) {
10306
- horizontalBarGraph.config.style = {
10307
- containerStyle: {
10308
- height: config.height
10309
- }
10640
+ if (config2.pieArcColors) {
10641
+ horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10642
+ }
10643
+ if (config2.xAxisValue) {
10644
+ horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
10645
+ }
10646
+ if (config2.height) {
10647
+ horizontalBarGraph.config.style.containerStyle.height = config2.height;
10648
+ }
10649
+ if (config2.leftMargin) {
10650
+ horizontalBarGraph.config.style.labelStyle.margin = {
10651
+ left: config2.leftMargin
10310
10652
  };
10311
10653
  }
10312
- if (config.bottomLabel) {
10313
- horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
10654
+ if (config2.bottomLabel) {
10655
+ horizontalBarGraph.config.main.bottomLabel = config2.bottomLabel;
10314
10656
  }
10315
- if (config.leftLabel) {
10316
- horizontalBarGraph.config.main.leftLabel = config.leftLabel;
10657
+ if (config2.leftLabel) {
10658
+ horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
10317
10659
  }
10318
10660
  return horizontalBarGraph;
10319
10661
  };
@@ -10363,20 +10705,20 @@ var SpeedoMeter = {
10363
10705
  }
10364
10706
  }
10365
10707
  };
10366
- const buildSpeedoMeter = (config, componentScope) => {
10708
+ const buildSpeedoMeter = (config2, componentScope2) => {
10367
10709
  const speedoMeter = _.cloneDeep(SpeedoMeter);
10368
- speedoMeter.scope = componentScope;
10369
- if (config.layout) {
10370
- speedoMeter.config.layout = createLayoutFormat(config.layout);
10710
+ speedoMeter.scope = componentScope2;
10711
+ if (config2.layout) {
10712
+ speedoMeter.config.layout = createLayoutFormat(config2.layout);
10371
10713
  }
10372
- if (config.heading) {
10373
- speedoMeter.config.main.header = config.heading;
10714
+ if (config2.heading) {
10715
+ speedoMeter.config.main.header = config2.heading;
10374
10716
  }
10375
- if (config.segments) {
10376
- speedoMeter.config.main.segments = config.segments;
10717
+ if (config2.segments) {
10718
+ speedoMeter.config.main.segments = config2.segments;
10377
10719
  }
10378
- if (config.style) {
10379
- const styleObj = JSON.parse(config.style);
10720
+ if (config2.style) {
10721
+ const styleObj = JSON.parse(config2.style);
10380
10722
  if (styleObj == null ? void 0 : styleObj.style) {
10381
10723
  speedoMeter.config.style = { ...speedoMeter.config.style, ...styleObj.style };
10382
10724
  }
@@ -10384,90 +10726,95 @@ const buildSpeedoMeter = (config, componentScope) => {
10384
10726
  speedoMeter.config.style.containerStyle = { ...speedoMeter.config.style.containerStyle, ...styleObj.containerStyle };
10385
10727
  }
10386
10728
  }
10387
- if (config.width) {
10388
- speedoMeter.config.main.width = config.width;
10729
+ if (config2.width) {
10730
+ speedoMeter.config.main.width = config2.width;
10389
10731
  }
10390
- if (config.speedoCaption) {
10391
- speedoMeter.config.main.currentValueText = config.speedoCaption;
10732
+ if (config2.speedoCaption) {
10733
+ speedoMeter.config.main.currentValueText = config2.speedoCaption;
10392
10734
  }
10393
- if (config.data) {
10394
- speedoMeter.config.main.data = config.data;
10735
+ if (config2.data) {
10736
+ speedoMeter.config.main.data = config2.data;
10395
10737
  }
10396
- if (config.needleColor) {
10397
- speedoMeter.config.style.needleColor = config.needleColor;
10738
+ if (config2.needleColor) {
10739
+ speedoMeter.config.style.needleColor = config2.needleColor;
10398
10740
  }
10399
- if (config.segments) {
10400
- speedoMeter.config.style.segments = config.segments;
10741
+ if (config2.segments) {
10742
+ speedoMeter.config.style.segments = config2.segments;
10401
10743
  }
10402
- if (config.endColor) {
10403
- speedoMeter.config.style.endColor = config.endColor;
10744
+ if (config2.endColor) {
10745
+ speedoMeter.config.style.endColor = config2.endColor;
10404
10746
  }
10405
- if (config.startColor) {
10406
- speedoMeter.config.style.startColor = config.startColor;
10747
+ if (config2.startColor) {
10748
+ speedoMeter.config.style.startColor = config2.startColor;
10407
10749
  }
10408
- if (config.segmentColors) {
10409
- speedoMeter.config.style.segmentColors = config.segmentColors;
10750
+ if (config2.segmentColors) {
10751
+ speedoMeter.config.style.segmentColors = config2.segmentColors;
10410
10752
  }
10411
10753
  return speedoMeter;
10412
10754
  };
10413
- const buildPieGraph = (config, componentScope) => {
10755
+ const buildPieGraph = (config2, componentScope2) => {
10414
10756
  const pieGraph = _.cloneDeep(PieGraph);
10415
- if (config.layout) {
10416
- pieGraph.config.layout = createLayoutFormat(config.layout);
10757
+ if (config2.layout) {
10758
+ pieGraph.config.layout = createLayoutFormat(config2.layout);
10417
10759
  }
10418
- if (config.height) {
10419
- pieGraph.config.style = {
10420
- containerStyle: {
10421
- height: config.height
10422
- }
10423
- };
10760
+ if (config2.height) {
10761
+ pieGraph.config.style.containerStyle.height = config2.height;
10424
10762
  }
10425
- if (config.legendHide) {
10426
- pieGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
10763
+ if (config2.legendHide) {
10764
+ pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10427
10765
  }
10428
- pieGraph.scope = componentScope;
10429
- pieGraph.config.main.header = config.heading;
10430
- if (config.legendLabels) {
10431
- pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10766
+ pieGraph.scope = componentScope2;
10767
+ pieGraph.config.main.header = config2.heading;
10768
+ if (config2.legendLabels) {
10769
+ pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10432
10770
  }
10433
- if (config.xAxisValue) {
10434
- pieGraph.config.main.xAxisValue = config.xAxisValue;
10771
+ if (config2.xAxisValue) {
10772
+ pieGraph.config.main.xAxisValue = config2.xAxisValue;
10435
10773
  }
10436
- if (config.pieArcColors) {
10437
- pieGraph.config.style = {
10438
- pieStyle: {
10439
- colorRange: flatObjectValueInArray(config.pieArcColors)
10440
- }
10441
- };
10774
+ if (config2.pieArcColors) {
10775
+ pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10442
10776
  }
10443
10777
  return pieGraph;
10444
10778
  };
10445
- const buildStackbarGraph = (config, componentScope) => {
10779
+ const buildStackbarGraph = (config2, componentScope2) => {
10780
+ var _a;
10446
10781
  const barGraph = _.cloneDeep(BarGraph);
10447
- if (config.layout) {
10448
- barGraph.config.layout = createLayoutFormat(config.layout);
10782
+ if (config2.layout) {
10783
+ barGraph.config.layout = createLayoutFormat(config2.layout);
10784
+ }
10785
+ if (config2.legendHide) {
10786
+ barGraph.config.main.legendAvailable = config2.legendHide;
10787
+ barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10449
10788
  }
10450
- if (config.legendHide) {
10451
- barGraph.config.main.legendAvailable = config.legendHide;
10789
+ if (config2.bottomAxisAngle) {
10790
+ barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10452
10791
  }
10453
- barGraph.config.main.type = config.graphType;
10454
- barGraph.config.main.header = config.heading;
10455
- if (config.barColor) {
10456
- barGraph.config.barStyle.color = config.barColor;
10792
+ barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
10793
+ barGraph.config.main.header = config2.heading;
10794
+ if (config2.legendLabels) {
10795
+ barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10457
10796
  }
10458
- if (config.xAxisValue) {
10459
- barGraph.config.main.xAxisValue = config.xAxisValue;
10797
+ if (config2.pieArcColors) {
10798
+ barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10460
10799
  }
10461
- if (config.height) {
10462
- barGraph.config.style.containerStyle.height = config.height;
10800
+ if (config2.xAxisValue) {
10801
+ barGraph.config.main.xAxisValue = config2.xAxisValue;
10463
10802
  }
10464
- if (config.bottomLabel) {
10465
- barGraph.config.main.bottomLabel = config.bottomLabel;
10803
+ if (config2.height) {
10804
+ barGraph.config.style.containerStyle.height = config2.height;
10466
10805
  }
10467
- if (config.leftLabel) {
10468
- barGraph.config.main.leftLabel = config.leftLabel;
10806
+ if (config2.leftMargin) {
10807
+ barGraph.config.style.labelStyle.margin = {
10808
+ left: config2.leftMargin
10809
+ };
10810
+ }
10811
+ if (config2.bottomLabel) {
10812
+ barGraph.config.main.bottomLabel = config2.bottomLabel;
10469
10813
  }
10470
- barGraph.scope = componentScope;
10814
+ if (config2.leftLabel) {
10815
+ barGraph.config.main.leftLabel = config2.leftLabel;
10816
+ }
10817
+ barGraph.scope = componentScope2;
10471
10818
  return barGraph;
10472
10819
  };
10473
10820
  var RunnerBoyProgressBar = {
@@ -10477,15 +10824,15 @@ var RunnerBoyProgressBar = {
10477
10824
  widget: "RunnerBoyProgressBar"
10478
10825
  },
10479
10826
  config: {
10480
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
10827
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
10481
10828
  main: {}
10482
10829
  }
10483
10830
  };
10484
- const RunnerBoyProgressbar = (config, componentScope) => {
10831
+ const RunnerBoyProgressbar = (config2, componentScope2) => {
10485
10832
  const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
10486
- RunnerBoy.scope = componentScope;
10487
- if (config.layout) {
10488
- RunnerBoy.config.layout = createLayoutFormat(config.layout);
10833
+ RunnerBoy.scope = componentScope2;
10834
+ if (config2.layout) {
10835
+ RunnerBoy.config.layout = createLayoutFormat(config2.layout);
10489
10836
  }
10490
10837
  return RunnerBoy;
10491
10838
  };
@@ -10500,19 +10847,19 @@ var Tabsection = {
10500
10847
  },
10501
10848
  elements: []
10502
10849
  };
10503
- const buildTabSection = (config, componentScope) => {
10850
+ const buildTabSection = (config2, componentScope2) => {
10504
10851
  const tab = _.cloneDeep(Tabsection);
10505
- tab.scope = componentScope;
10506
- if (config.lazyLoad) {
10507
- tab.config.main.lazyLoad = config.lazyLoad === "YES" ? true : false;
10852
+ tab.scope = componentScope2;
10853
+ if (config2.lazyLoad) {
10854
+ tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
10508
10855
  }
10509
- if (config.orientation) {
10510
- tab.config.main.orientation = config.orientation === "YES" ? "vertical" : "horizontal";
10856
+ if (config2.orientation) {
10857
+ tab.config.main.orientation = config2.orientation === "YES" ? "vertical" : "horizontal";
10511
10858
  }
10512
- if (config.sectionLabels) {
10513
- tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
10859
+ if (config2.sectionLabels) {
10860
+ tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
10514
10861
  }
10515
- tab.config.main.id = config.name;
10862
+ tab.config.main.id = config2.name;
10516
10863
  return tab;
10517
10864
  };
10518
10865
  var WrapperSection = {
@@ -10527,20 +10874,20 @@ var WrapperSection = {
10527
10874
  },
10528
10875
  elements: []
10529
10876
  };
10530
- const buildWrapperSection = (config, componentScope) => {
10877
+ const buildWrapperSection = (config2, componentScope2) => {
10531
10878
  const wrapper = _.cloneDeep(WrapperSection);
10532
- wrapper.scope = componentScope;
10533
- wrapper.config.main.label = config.label;
10534
- wrapper.config.main.divider = config.divider === "YES" ? true : false;
10535
- wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
10536
- if (config.defaultStyle) {
10537
- wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
10879
+ wrapper.scope = componentScope2;
10880
+ wrapper.config.main.label = config2.label;
10881
+ wrapper.config.main.divider = config2.divider === "YES" ? true : false;
10882
+ wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
10883
+ if (config2.defaultStyle) {
10884
+ wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
10538
10885
  }
10539
- if (config.style) {
10540
- wrapper.config.style = JSON.parse(config.style);
10886
+ if (config2.style) {
10887
+ wrapper.config.style = JSON.parse(config2.style);
10541
10888
  }
10542
- if (config.layout) {
10543
- wrapper.config.layout = createLayoutFormat(config.layout);
10889
+ if (config2.layout) {
10890
+ wrapper.config.layout = createLayoutFormat(config2.layout);
10544
10891
  }
10545
10892
  return wrapper;
10546
10893
  };
@@ -10558,23 +10905,23 @@ var TextInputField = {
10558
10905
  style: {}
10559
10906
  }
10560
10907
  };
10561
- const buildTextField = (config, componentScope) => {
10908
+ const buildTextField = (config2, componentScope2) => {
10562
10909
  const inputField = _.cloneDeep(TextInputField);
10563
- inputField.config.main.label = config.label;
10564
- if (config.style) {
10565
- inputField.config.style = JSON.parse(config.style);
10910
+ inputField.config.main.label = config2.label;
10911
+ if (config2.style) {
10912
+ inputField.config.style = JSON.parse(config2.style);
10566
10913
  }
10567
- if (config.InputFormatingAndMasking) {
10568
- inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map((e) => e.formatElement);
10914
+ if (config2.InputFormatingAndMasking) {
10915
+ inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10569
10916
  }
10570
- if (config.placeholder) {
10571
- inputField.config.main.placeholder = config.placeholder;
10917
+ if (config2.placeholder) {
10918
+ inputField.config.main.placeholder = config2.placeholder;
10572
10919
  }
10573
- if (config.layout) {
10574
- inputField.config.layout = createLayoutFormat(config.layout);
10920
+ if (config2.layout) {
10921
+ inputField.config.layout = createLayoutFormat(config2.layout);
10575
10922
  }
10576
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
10577
- inputField.scope = componentScope;
10923
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
10924
+ inputField.scope = componentScope2;
10578
10925
  return inputField;
10579
10926
  };
10580
10927
  var SelectInputField = {
@@ -10592,22 +10939,22 @@ var SelectInputField = {
10592
10939
  }
10593
10940
  }
10594
10941
  };
10595
- const buildSelect = (config, componentScope) => {
10942
+ const buildSelect = (config2, componentScope2) => {
10596
10943
  const selectInputField = _.cloneDeep(SelectInputField);
10597
- selectInputField.config.main.label = config.label;
10598
- if (config.value) {
10599
- selectInputField.config.main.options = config.value;
10944
+ selectInputField.config.main.label = config2.label;
10945
+ if (config2.value) {
10946
+ selectInputField.config.main.options = config2.value;
10600
10947
  }
10601
- if (config.freeSolo) {
10602
- selectInputField.config.main.freeSolo = config.freeSolo === "YES" ? true : false;
10948
+ if (config2.freeSolo) {
10949
+ selectInputField.config.main.freeSolo = config2.freeSolo === "YES" ? true : false;
10603
10950
  }
10604
- if (config.lazyLoading) {
10605
- selectInputField.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
10951
+ if (config2.lazyLoading) {
10952
+ selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
10606
10953
  }
10607
- if (config.layout) {
10608
- selectInputField.config.layout = createLayoutFormat(config.layout);
10954
+ if (config2.layout) {
10955
+ selectInputField.config.layout = createLayoutFormat(config2.layout);
10609
10956
  }
10610
- selectInputField.scope = componentScope;
10957
+ selectInputField.scope = componentScope2;
10611
10958
  return selectInputField;
10612
10959
  };
10613
10960
  var Button = {
@@ -10621,7 +10968,6 @@ var Button = {
10621
10968
  main: {
10622
10969
  name: "Compare",
10623
10970
  variant: "contained",
10624
- color: "info",
10625
10971
  type: "text",
10626
10972
  startIcon: "",
10627
10973
  styleDefault: false,
@@ -10632,37 +10978,37 @@ var Button = {
10632
10978
  style: {}
10633
10979
  }
10634
10980
  };
10635
- const buildButton = (config, componentScope) => {
10981
+ const buildButton = (config2, componentScope2) => {
10636
10982
  const button = _.cloneDeep(Button);
10637
- if (config.buttonType) {
10638
- button.options.widget = config.buttonType === "IconButton" ? "IconButton" : "Button";
10639
- config.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config.iconName : button.config.main.icon = config.iconName;
10983
+ if (config2.buttonType) {
10984
+ button.options.widget = config2.buttonType === "IconButton" ? "IconButton" : "Button";
10985
+ config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
10640
10986
  }
10641
- if (config.layout) {
10642
- button.config.layout = createLayoutFormat(config.layout);
10987
+ if (config2.layout) {
10988
+ button.config.layout = createLayoutFormat(config2.layout);
10643
10989
  }
10644
- if (config.tooltipMessage) {
10645
- button.config.main.tooltipMessage = config.tooltipMessage;
10990
+ if (config2.tooltipMessage) {
10991
+ button.config.main.tooltipMessage = config2.tooltipMessage;
10646
10992
  }
10647
- if (config.defaultStyle) {
10648
- if (config.buttonType === "IconButton") {
10649
- button.config.main.styleDefault = config.defaultStyle === "true" ? true : false;
10993
+ if (config2.defaultStyle) {
10994
+ if (config2.buttonType === "IconButton") {
10995
+ button.config.main.styleDefault = config2.defaultStyle === "true" ? true : false;
10650
10996
  } else {
10651
- button.config.main.enableDefaultStyle = config.defaultStyle === "true" ? false : true;
10997
+ button.config.main.enableDefaultStyle = config2.defaultStyle === "true" ? false : true;
10652
10998
  }
10653
10999
  }
10654
- button.scope = componentScope;
10655
- if (config.style) {
10656
- button.config.style = JSON.parse(config.style);
11000
+ button.scope = componentScope2;
11001
+ if (config2.style) {
11002
+ button.config.style = JSON.parse(config2.style);
10657
11003
  }
10658
- if (config.size) {
10659
- button.config.main.size = config.size;
11004
+ if (config2.size) {
11005
+ button.config.main.size = config2.size;
10660
11006
  }
10661
- if (config.color) {
10662
- button.config.main.color = config.color;
11007
+ if (config2.color) {
11008
+ button.config.main.color = config2.color;
10663
11009
  }
10664
- if (config.label) {
10665
- button.config.main.name = config.label;
11010
+ if (config2.label) {
11011
+ button.config.main.name = config2.label;
10666
11012
  }
10667
11013
  return button;
10668
11014
  };
@@ -10686,71 +11032,71 @@ var Table = {
10686
11032
  }
10687
11033
  }
10688
11034
  };
10689
- const buildTable = (config, componentScope) => {
11035
+ const buildTable = (config2, componentScope2) => {
10690
11036
  const table = _.cloneDeep(Table);
10691
- table.scope = componentScope;
10692
- if (config.style) {
10693
- table.config.style = JSON.parse(config.style);
11037
+ table.scope = componentScope2;
11038
+ if (config2.style) {
11039
+ table.config.style = JSON.parse(config2.style);
10694
11040
  }
10695
- if (config.lazyLoading) {
10696
- table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11041
+ if (config2.lazyLoading) {
11042
+ table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
10697
11043
  }
10698
- if (config.enableRowMovement) {
10699
- table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
11044
+ if (config2.enableRowMovement) {
11045
+ table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
10700
11046
  }
10701
- if (config.enableExpanding) {
10702
- table.config.main.enableExpanding = config.enableExpanding === "YES" ? true : false;
11047
+ if (config2.enableExpanding) {
11048
+ table.config.main.enableExpanding = config2.enableExpanding === "YES" ? true : false;
10703
11049
  }
10704
- if (config.enableExpandAll) {
10705
- table.config.main.enableExpandAll = config.enableExpandAll === "YES" ? true : false;
11050
+ if (config2.enableExpandAll) {
11051
+ table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
10706
11052
  }
10707
- if (config.paginateExpandedRows) {
10708
- table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
11053
+ if (config2.paginateExpandedRows) {
11054
+ table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
10709
11055
  }
10710
- if (config.treeStructure) {
10711
- table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
11056
+ if (config2.treeStructure) {
11057
+ table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
10712
11058
  }
10713
- if (config.SelectionAvailable) {
10714
- table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
11059
+ if (config2.SelectionAvailable) {
11060
+ table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
10715
11061
  }
10716
- if (config.ColumnResizingAvailable) {
10717
- table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
11062
+ if (config2.ColumnResizingAvailable) {
11063
+ table.config.main.disableColumnResizing = config2.ColumnResizingAvailable === "YES" ? false : true;
10718
11064
  }
10719
- if (config.DragAvailable) {
10720
- table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
11065
+ if (config2.DragAvailable) {
11066
+ table.config.main.enableDrag = config2.DragAvailable === "YES" ? true : false;
10721
11067
  }
10722
- if (config.downloadAllData) {
10723
- table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
11068
+ if (config2.downloadAllData) {
11069
+ table.config.main.downloadAllData = config2.downloadAllData === "YES" ? true : false;
10724
11070
  }
10725
- if (config.disableGlobalSearch) {
10726
- table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false;
11071
+ if (config2.disableGlobalSearch) {
11072
+ table.config.main.disableGlobalSearch = config2.disableGlobalSearch === "YES" ? true : false;
10727
11073
  }
10728
- if (config.disableColumnFilter) {
10729
- table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false;
11074
+ if (config2.disableColumnFilter) {
11075
+ table.config.main.disableColumnFilter = config2.disableColumnFilter === "YES" ? true : false;
10730
11076
  }
10731
- if (config.disableSorting) {
10732
- table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
11077
+ if (config2.disableSorting) {
11078
+ table.config.main.disableSorting = config2.disableSorting === "YES" ? true : false;
10733
11079
  }
10734
- if (config.disableEditColumn) {
10735
- table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
11080
+ if (config2.disableEditColumn) {
11081
+ table.config.main.disableEditColumn = config2.disableEditColumn === "YES" ? true : false;
10736
11082
  }
10737
- if (config.disableFullScreenToggle) {
10738
- table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
11083
+ if (config2.disableFullScreenToggle) {
11084
+ table.config.main.disableFullScreenToggle = config2.disableFullScreenToggle === "YES" ? true : false;
10739
11085
  }
10740
- if (config.disableDensityToggle) {
10741
- table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
11086
+ if (config2.disableDensityToggle) {
11087
+ table.config.main.disableDensityToggle = config2.disableDensityToggle === "YES" ? true : false;
10742
11088
  }
10743
- if (config.disableDownloadFile) {
10744
- table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
11089
+ if (config2.disableDownloadFile) {
11090
+ table.config.main.disableDownloadFile = config2.disableDownloadFile === "YES" ? true : false;
10745
11091
  }
10746
- if (config.disablePagination) {
10747
- table.config.main.disablePagination = config.disablePagination === "YES" ? true : false;
11092
+ if (config2.disablePagination) {
11093
+ table.config.main.disablePagination = config2.disablePagination === "YES" ? true : false;
10748
11094
  }
10749
- if (config.Table_Download_Keys_Name) {
10750
- table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
11095
+ if (config2.Table_Download_Keys_Name) {
11096
+ table.config.main.TableDownloadKeysName = config2.Table_Download_Keys_Name.map((e) => e.KeyName);
10751
11097
  }
10752
- if (config.selectKey) {
10753
- table.config.main.selectKey = config.selectKey;
11098
+ if (config2.selectKey) {
11099
+ table.config.main.selectKey = config2.selectKey;
10754
11100
  }
10755
11101
  return table;
10756
11102
  };
@@ -10766,15 +11112,15 @@ const Box = {
10766
11112
  style: {}
10767
11113
  }
10768
11114
  };
10769
- const buildLabel = (config, componentScope) => {
11115
+ const buildLabel = (config2, componentScope2) => {
10770
11116
  const box = _.cloneDeep(Box);
10771
- box.scope = componentScope;
10772
- box.config.main.heading = config.label;
10773
- if (config.layout) {
10774
- box.config.layout = createLayoutFormat(config.layout);
11117
+ box.scope = componentScope2;
11118
+ box.config.main.heading = config2.label;
11119
+ if (config2.layout) {
11120
+ box.config.layout = createLayoutFormat(config2.layout);
10775
11121
  }
10776
- if (config.style) {
10777
- box.config.style = JSON.parse(config.style);
11122
+ if (config2.style) {
11123
+ box.config.style = JSON.parse(config2.style);
10778
11124
  }
10779
11125
  return box;
10780
11126
  };
@@ -10814,42 +11160,39 @@ const downloadFile = {
10814
11160
  "widget": "DownloadFile"
10815
11161
  }
10816
11162
  };
10817
- const buildUploadFile = (config, componentScope) => {
11163
+ const buildUploadFile = (config2, componentScope2) => {
10818
11164
  const UploadFile = _.cloneDeep(uploadFile);
10819
- UploadFile.scope = componentScope;
10820
- UploadFile.config.main.label = config.label;
10821
- if (config.layout) {
10822
- UploadFile.config.layout = config.layout;
10823
- }
10824
- if (config.layout) {
10825
- uploadFile.config.layout = createLayoutFormat(config.layout);
11165
+ UploadFile.scope = componentScope2;
11166
+ UploadFile.config.main.label = config2.label;
11167
+ if (config2.layout) {
11168
+ UploadFile.config.layout = createLayoutFormat(config2.layout);
10826
11169
  }
10827
- if (config.style) {
10828
- UploadFile.config.style = config.style;
11170
+ if (config2.style) {
11171
+ UploadFile.config.style = config2.style;
10829
11172
  }
10830
- if (config.required) {
11173
+ if (config2.required) {
10831
11174
  UploadFile.config.main.required = true;
10832
11175
  }
10833
- UploadFile.config.main.errorMessage = config.errorMessage;
11176
+ UploadFile.config.main.errorMessage = config2.errorMessage;
10834
11177
  return UploadFile;
10835
11178
  };
10836
- const buildDownloadFile = (config, componentScope) => {
11179
+ const buildDownloadFile = (config2, componentScope2) => {
10837
11180
  const DownloadFile = _.cloneDeep(downloadFile);
10838
- DownloadFile.scope = componentScope;
10839
- if (config.layout) {
10840
- DownloadFile.config.layout = config.layout;
11181
+ DownloadFile.scope = componentScope2;
11182
+ if (config2.layout) {
11183
+ DownloadFile.config.layout = config2.layout;
10841
11184
  }
10842
- if (config.style) {
10843
- DownloadFile.config.style = config.style;
11185
+ if (config2.style) {
11186
+ DownloadFile.config.style = config2.style;
10844
11187
  }
10845
- if (config.required) {
11188
+ if (config2.required) {
10846
11189
  DownloadFile.config.main.required = true;
10847
11190
  }
10848
- if (config.layout) {
10849
- DownloadFile.config.layout = createLayoutFormat(config.layout);
11191
+ if (config2.layout) {
11192
+ DownloadFile.config.layout = createLayoutFormat(config2.layout);
10850
11193
  }
10851
- if (config.errorMessage) {
10852
- DownloadFile.config.main.errorMessage = config.errorMessage;
11194
+ if (config2.errorMessage) {
11195
+ DownloadFile.config.main.errorMessage = config2.errorMessage;
10853
11196
  }
10854
11197
  return DownloadFile;
10855
11198
  };
@@ -10858,15 +11201,23 @@ function Card(theme) {
10858
11201
  type: "WrapperLayout",
10859
11202
  config: {
10860
11203
  main: {},
10861
- wrapperStyle: {},
11204
+ wrapperStyle: {
11205
+ position: "relative",
11206
+ top: "50%",
11207
+ transform: "translateY(-50%)"
11208
+ },
10862
11209
  componentsBoxStyle: {
11210
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
10863
11211
  flexDirection: "row",
10864
11212
  flexWrap: "nowrap",
10865
- width: "100%",
11213
+ width: "100% !important",
10866
11214
  background: "transparent",
10867
- border: `1.5px solid ${theme.palette.primary.main}`,
10868
- borderRadius: "20px",
10869
- padding: "0px 20px 0px 20px",
11215
+ border: `1.5px solid ${theme.palette.primary.light}`,
11216
+ borderRadius: "8px",
11217
+ padding: "0px 4px",
11218
+ height: "100%",
11219
+ alignItems: "center",
11220
+ marginLeft: "0px",
10870
11221
  "&: hover": {
10871
11222
  background: `${theme.palette.primary.main}`,
10872
11223
  border: `1.5px solid black`,
@@ -10892,7 +11243,6 @@ function Card(theme) {
10892
11243
  gap: 0
10893
11244
  },
10894
11245
  wrapperStyle: {
10895
- marginTop: "4px",
10896
11246
  background: "transparent"
10897
11247
  },
10898
11248
  componentsBoxStyle: {
@@ -10907,27 +11257,78 @@ function Card(theme) {
10907
11257
  },
10908
11258
  elements: [
10909
11259
  {
10910
- type: "Control",
10911
- scope: "#/properties/programType",
11260
+ type: "WrapperLayout",
10912
11261
  config: {
10913
11262
  main: {
10914
- heading: "$5000.00"
11263
+ columnSpacing: 0,
11264
+ gap: 0
10915
11265
  },
10916
- style: {
10917
- color: "black",
10918
- display: "flex",
10919
- fontSize: { xs: "24px", md: "28px" },
10920
- fontWeight: "bold",
10921
- background: "inherit",
10922
- justifyContent: "flex-start",
10923
- width: "calc(100%+8px)",
10924
- margin: "-8px"
11266
+ wrapperStyle: {
11267
+ background: "transparent"
11268
+ },
11269
+ componentsBoxStyle: {
11270
+ flexDirection: "row",
11271
+ flexWrap: "nowrap",
11272
+ width: "100%",
11273
+ height: "0",
11274
+ background: "transparent",
11275
+ borderRadius: "0px",
11276
+ marginLeft: "-10px",
11277
+ marginTop: "-8px",
11278
+ justifyContent: "start",
11279
+ position: "relative"
10925
11280
  },
10926
11281
  layout: 12
10927
11282
  },
10928
- options: {
10929
- widget: "Box"
10930
- }
11283
+ elements: [
11284
+ {
11285
+ type: "Control",
11286
+ scope: "#/properties/programType",
11287
+ config: {
11288
+ main: {
11289
+ heading: ""
11290
+ },
11291
+ style: {
11292
+ color: "black",
11293
+ display: "flex",
11294
+ fontSize: { xs: "24px", md: "28px" },
11295
+ fontWeight: "bold",
11296
+ background: "inherit",
11297
+ justifyContent: "flex-start",
11298
+ width: "auto",
11299
+ margin: "-8px",
11300
+ height: 0
11301
+ }
11302
+ },
11303
+ options: {
11304
+ widget: "Box"
11305
+ }
11306
+ },
11307
+ {
11308
+ type: "Control",
11309
+ scope: "#/properties/programType",
11310
+ config: {
11311
+ main: {
11312
+ heading: "5000.00"
11313
+ },
11314
+ style: {
11315
+ color: "black",
11316
+ display: "flex",
11317
+ fontSize: { xs: "24px", md: "28px" },
11318
+ fontWeight: "bold",
11319
+ background: "inherit",
11320
+ justifyContent: "flex-start",
11321
+ width: "auto",
11322
+ margin: "-8px",
11323
+ position: "absolute",
11324
+ left: "8px"
11325
+ }
11326
+ },
11327
+ options: {
11328
+ widget: "Box"
11329
+ }
11330
+ }
11331
+ ]
10931
11332
  },
10932
11333
  {
10933
11334
  type: "Control",
@@ -10942,8 +11343,9 @@ function Card(theme) {
10942
11343
  justifyContent: "center",
10943
11344
  textWrap: "wrap",
10944
11345
  background: "inherit",
10945
- width: "calc(100%+8pc)",
11346
+ width: "calc(100%+8px)",
10946
11347
  margin: "-8px",
11348
+ marginTop: { xs: "0px", md: "12px" },
10947
11349
  lineHeight: "1"
10948
11350
  },
10949
11351
  layout: 12
@@ -10967,13 +11369,14 @@ function Card(theme) {
10967
11369
  containerStyle: {
10968
11370
  height: "100%",
10969
11371
  display: "flex",
10970
- justifyContent: "center"
11372
+ justifyContent: "end"
10971
11373
  },
10972
11374
  imageStyle: {
10973
- height: "100%",
11375
+ width: "unset",
10974
11376
  fontSize: "none",
10975
11377
  padding: "4px",
10976
- marginLeft: "8px"
11378
+ margin: "0px 0px 0px 8px",
11379
+ height: "64px"
10977
11380
  }
10978
11381
  },
10979
11382
  layout: 4
@@ -10986,19 +11389,23 @@ function Card(theme) {
10986
11389
  };
10987
11390
  return uiSchema;
10988
11391
  }
10989
- const buildCard = (config, componentScope, store2) => {
10990
- const card = _.cloneDeep(Card(store2.theme.myTheme));
11392
+ const buildCard = (config, componentScope, store) => {
11393
+ const card = _.cloneDeep(Card(store.theme.myTheme));
10991
11394
  if (config.style) {
10992
- card.config.style = JSON.parse(config.style);
11395
+ card.config.wrapperStyle = JSON.parse(config.style);
10993
11396
  }
10994
- card.elements[0].elements[0].elements[0].scope = `#/properties/${config.name}/properties/value`;
11397
+ card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
10995
11398
  card.elements[1].scope = `#/properties/${config.name}/properties/url`;
10996
11399
  card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
10997
11400
  if (config.layout) {
10998
11401
  card.config.layout = createLayoutFormat(config.layout);
10999
11402
  }
11403
+ if (config == null ? void 0 : config.titleIcon) {
11404
+ card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
11405
+ card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11406
+ }
11000
11407
  if (config.label) {
11001
- card.elements[0].elements[0].elements[0].config.main.heading = config.label;
11408
+ card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
11002
11409
  }
11003
11410
  if (config.url) {
11004
11411
  card.elements[1].config.main.url = config.url;
@@ -11036,23 +11443,23 @@ const DateTime = {
11036
11443
  }
11037
11444
  }
11038
11445
  };
11039
- const buildDate = (config, componentScope) => {
11446
+ const buildDate = (config2, componentScope2) => {
11040
11447
  const dateInputField = _.cloneDeep(DateInputField);
11041
- dateInputField.config.main.label = config.label;
11042
- dateInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11043
- dateInputField.scope = componentScope;
11044
- if (config.layout) {
11045
- dateInputField.config.layout = createLayoutFormat(config.layout);
11448
+ dateInputField.config.main.label = config2.label;
11449
+ dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11450
+ dateInputField.scope = componentScope2;
11451
+ if (config2.layout) {
11452
+ dateInputField.config.layout = createLayoutFormat(config2.layout);
11046
11453
  }
11047
11454
  return dateInputField;
11048
11455
  };
11049
- const buildDateTime = (config, componentScope) => {
11456
+ const buildDateTime = (config2, componentScope2) => {
11050
11457
  const dateTimeInputField = _.cloneDeep(DateTime);
11051
- dateTimeInputField.config.main.label = config.label;
11052
- dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11053
- dateTimeInputField.scope = componentScope;
11054
- if (config.layout) {
11055
- dateTimeInputField.config.layout = createLayoutFormat(config.layout);
11458
+ dateTimeInputField.config.main.label = config2.label;
11459
+ dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11460
+ dateTimeInputField.scope = componentScope2;
11461
+ if (config2.layout) {
11462
+ dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11056
11463
  }
11057
11464
  return dateTimeInputField;
11058
11465
  };
@@ -11063,27 +11470,21 @@ var RankCard = {
11063
11470
  widget: "RankCard"
11064
11471
  },
11065
11472
  config: {
11066
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
11473
+ layout: { xs: 12, sm: 6, md: 6, lg: 6 },
11067
11474
  main: {}
11068
11475
  }
11069
11476
  };
11070
- const buildRankCard = (config, componentScope) => {
11477
+ const buildRankCard = (config2, componentScope2) => {
11071
11478
  const rankCard = _.cloneDeep(RankCard);
11072
- rankCard.scope = componentScope;
11073
- if (config.image) {
11074
- rankCard.config.main.url = config.image;
11075
- }
11076
- if (config.title) {
11077
- rankCard.config.main.title = config.title;
11479
+ rankCard.scope = componentScope2;
11480
+ if (config2.rank) {
11481
+ rankCard.config.main.rank = `${config2.rank}`;
11078
11482
  }
11079
- if (config.description) {
11080
- rankCard.config.main.description = config.description;
11081
- }
11082
- if (config.rank) {
11083
- rankCard.config.main.rank = `#${config.rank}`;
11483
+ if (config2.height) {
11484
+ rankCard.config.main.height = `${config2.height}px`;
11084
11485
  }
11085
- if (config.layout) {
11086
- rankCard.config.layout = createLayoutFormat(config.layout);
11486
+ if (config2.layout) {
11487
+ rankCard.config.layout = createLayoutFormat(config2.layout);
11087
11488
  }
11088
11489
  return rankCard;
11089
11490
  };
@@ -11098,13 +11499,13 @@ var RollAndDice = {
11098
11499
  main: {}
11099
11500
  }
11100
11501
  };
11101
- const buildRollAndDice = (config, componentScope) => {
11502
+ const buildRollAndDice = (config2, componentScope2) => {
11102
11503
  const rank = _.cloneDeep(RollAndDice);
11103
- if (config.name) {
11104
- rank.scope = componentScope;
11504
+ if (config2.name) {
11505
+ rank.scope = componentScope2;
11105
11506
  }
11106
- if (config.layout) {
11107
- rank.config.layout = createLayoutFormat(config.layout);
11507
+ if (config2.layout) {
11508
+ rank.config.layout = createLayoutFormat(config2.layout);
11108
11509
  }
11109
11510
  return rank;
11110
11511
  };
@@ -11118,34 +11519,21 @@ var Timer = {
11118
11519
  layout: {
11119
11520
  xs: 12,
11120
11521
  sm: 12,
11121
- md: 12,
11122
- lg: 12
11522
+ md: 6,
11523
+ lg: 6
11123
11524
  },
11124
11525
  main: {},
11125
- style: {
11126
- digitContainer: {
11127
- borderRadius: "4px",
11128
- textShawdow: "none",
11129
- width: "22%"
11130
- },
11131
- container: {
11132
- backgroundColor: "#FFFFFF",
11133
- borderRadius: "18px"
11134
- },
11135
- containerLabelColor: {
11136
- color: "red"
11137
- }
11138
- }
11526
+ style: {}
11139
11527
  }
11140
11528
  };
11141
- const buildTimer = (config, componentScope) => {
11529
+ const buildTimer = (config2, componentScope2) => {
11142
11530
  const timer = _.cloneDeep(Timer);
11143
- timer.scope = componentScope;
11144
- if (config.label) {
11145
- timer.config.main.label = config.label;
11531
+ timer.scope = componentScope2;
11532
+ if (config2.label) {
11533
+ timer.config.main.label = config2.label;
11146
11534
  }
11147
- if (config.layout) {
11148
- timer.config.layout = createLayoutFormat(config.layout);
11535
+ if (config2.layout) {
11536
+ timer.config.layout = createLayoutFormat(config2.layout);
11149
11537
  }
11150
11538
  return timer;
11151
11539
  };
@@ -11166,30 +11554,30 @@ var MultipleSelect = {
11166
11554
  }
11167
11555
  }
11168
11556
  };
11169
- const buildMultiSelect = (config, componentScope) => {
11557
+ const buildMultiSelect = (config2, componentScope2) => {
11170
11558
  const multipleSelect = _.cloneDeep(MultipleSelect);
11171
- multipleSelect.scope = componentScope;
11172
- if (config.label) {
11173
- multipleSelect.config.main.label = config.label;
11559
+ multipleSelect.scope = componentScope2;
11560
+ if (config2.label) {
11561
+ multipleSelect.config.main.label = config2.label;
11174
11562
  }
11175
- if (config.layout) {
11176
- multipleSelect.config.layout = createLayoutFormat(config.layout);
11563
+ if (config2.layout) {
11564
+ multipleSelect.config.layout = createLayoutFormat(config2.layout);
11177
11565
  }
11178
- if (config.value) {
11179
- multipleSelect.config.main.options = config.value;
11566
+ if (config2.value) {
11567
+ multipleSelect.config.main.options = config2.value;
11180
11568
  }
11181
- if (config.lazyLoading) {
11182
- multipleSelect.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11569
+ if (config2.lazyLoading) {
11570
+ multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11183
11571
  }
11184
11572
  return multipleSelect;
11185
11573
  };
11186
- const buildBasicUiSchema = (config) => {
11574
+ const buildBasicUiSchema = (config2) => {
11187
11575
  return {
11188
11576
  "type": "HorizontalLayout",
11189
- pageName: config.name,
11190
- name: config.name,
11191
- accessorKey: config.name,
11192
- heading: config.label || config.name,
11577
+ pageName: config2.name,
11578
+ name: config2.name,
11579
+ accessorKey: config2.name,
11580
+ heading: config2.label || config2.name,
11193
11581
  "elements": []
11194
11582
  };
11195
11583
  };
@@ -11220,25 +11608,25 @@ const TextArea = {
11220
11608
  }
11221
11609
  }
11222
11610
  };
11223
- const buildTextArea = (config, componentScope) => {
11611
+ const buildTextArea = (config2, componentScope2) => {
11224
11612
  const textArea = _.cloneDeep(TextArea);
11225
- textArea.config.main.heading = config.label;
11226
- if (config.layout) {
11227
- textArea.config.layout = createLayoutFormat(config.layout);
11613
+ textArea.config.main.heading = config2.label;
11614
+ if (config2.layout) {
11615
+ textArea.config.layout = createLayoutFormat(config2.layout);
11228
11616
  }
11229
- if (config.style) {
11230
- textArea.config.style = JSON.parse(config.style);
11617
+ if (config2.style) {
11618
+ textArea.config.style = JSON.parse(config2.style);
11231
11619
  }
11232
- if (config.placeholder) {
11233
- textArea.config.main.placeholder = config.placeholder;
11620
+ if (config2.placeholder) {
11621
+ textArea.config.main.placeholder = config2.placeholder;
11234
11622
  }
11235
- if (config.enableCodeEditor) {
11236
- textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
11623
+ if (config2.enableCodeEditor) {
11624
+ textArea.config.main.enableCodeEditor = config2.enableCodeEditor === "YES" ? true : false;
11237
11625
  }
11238
- if (config.codeEditorLanguage) {
11239
- textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
11626
+ if (config2.codeEditorLanguage) {
11627
+ textArea.config.main.codeEditorLanguage = config2.codeEditorLanguage;
11240
11628
  }
11241
- textArea.scope = componentScope;
11629
+ textArea.scope = componentScope2;
11242
11630
  return textArea;
11243
11631
  };
11244
11632
  var cardSlider = {
@@ -11253,13 +11641,13 @@ var cardSlider = {
11253
11641
  main: {}
11254
11642
  }
11255
11643
  };
11256
- const buildSlider = (config, componentScope) => {
11644
+ const buildSlider = (config2, componentScope2) => {
11257
11645
  const slider = _.cloneDeep(cardSlider);
11258
- if (config.name) {
11259
- slider.scope = componentScope;
11646
+ if (config2.name) {
11647
+ slider.scope = componentScope2;
11260
11648
  }
11261
- if (config.layout) {
11262
- slider.config.layout = createLayoutFormat(config.layout);
11649
+ if (config2.layout) {
11650
+ slider.config.layout = createLayoutFormat(config2.layout);
11263
11651
  }
11264
11652
  return slider;
11265
11653
  };
@@ -11276,49 +11664,57 @@ const Checkbox = {
11276
11664
  }
11277
11665
  }
11278
11666
  };
11279
- const buildCheckbox = (config, componentScope) => {
11667
+ const buildCheckbox = (config2, componentScope2) => {
11280
11668
  const check = _.cloneDeep(Checkbox);
11281
- check.scope = componentScope;
11282
- check.config.main.label = config.label;
11283
- if (config.layout) {
11284
- check.config.layout = createLayoutFormat(config.layout);
11669
+ check.scope = componentScope2;
11670
+ check.config.main.label = config2.label;
11671
+ if (config2.layout) {
11672
+ check.config.layout = createLayoutFormat(config2.layout);
11285
11673
  }
11286
- if (config.style) {
11287
- check.config.style = JSON.parse(config.style);
11674
+ if (config2.style) {
11675
+ check.config.style = JSON.parse(config2.style);
11288
11676
  }
11289
11677
  return check;
11290
11678
  };
11291
- const buildLineGraph = (config, componentScope) => {
11679
+ const buildLineGraph = (config2, componentScope2) => {
11292
11680
  const lineGraph = _.cloneDeep(LineGraph);
11293
- if (config.layout) {
11294
- lineGraph.config.layout = createLayoutFormat(config.layout);
11681
+ if (config2.layout) {
11682
+ lineGraph.config.layout = createLayoutFormat(config2.layout);
11683
+ }
11684
+ lineGraph.config.main.header = config2.heading;
11685
+ if (config2.height) {
11686
+ lineGraph.config.style.containerStyle.height = config2.height;
11687
+ }
11688
+ if (config2.leftMargin) {
11689
+ lineGraph.config.style.labelStyle.margin = {
11690
+ left: config2.leftMargin
11691
+ };
11295
11692
  }
11296
- lineGraph.config.main.header = config.heading;
11297
- if (config.height) {
11298
- lineGraph.config.style.containerStyle.height = config.height;
11693
+ if (config2.bottomLabel) {
11694
+ lineGraph.config.main.bottomLabel = config2.bottomLabel;
11299
11695
  }
11300
- if (config.bottomLabel) {
11301
- lineGraph.config.main.bottomLabel = config.bottomLabel;
11696
+ if (config2.yAxisValue) {
11697
+ lineGraph.config.main.yAxisValue = config2.yAxisValue;
11302
11698
  }
11303
- if (config.yAxisValue) {
11304
- lineGraph.config.main.yAxisValue = config.yAxisValue;
11699
+ if (config2.xAxisValue) {
11700
+ lineGraph.config.main.xAxisValue = config2.xAxisValue;
11305
11701
  }
11306
- if (config.xAxisValue) {
11307
- lineGraph.config.main.xAxisValue = config.xAxisValue;
11702
+ if (config2.leftLabel) {
11703
+ lineGraph.config.main.leftLabel = config2.leftLabel;
11308
11704
  }
11309
- if (config.leftLabel) {
11310
- lineGraph.config.main.leftLabel = config.leftLabel;
11705
+ if (config2.legendHide) {
11706
+ lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11311
11707
  }
11312
- if (config.legendHide) {
11313
- lineGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
11708
+ if (config2.bottomAxisAngle) {
11709
+ lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11314
11710
  }
11315
- if (config.legendLabels) {
11316
- lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
11711
+ if (config2.legendLabels) {
11712
+ lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11317
11713
  }
11318
- if (config.pieArcColors) {
11319
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11714
+ if (config2.pieArcColors) {
11715
+ lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11320
11716
  }
11321
- lineGraph.scope = componentScope;
11717
+ lineGraph.scope = componentScope2;
11322
11718
  return lineGraph;
11323
11719
  };
11324
11720
  const RadioUiSchema = {
@@ -11336,25 +11732,25 @@ const RadioUiSchema = {
11336
11732
  }
11337
11733
  }
11338
11734
  };
11339
- const buildRadio = (config, componentScope) => {
11735
+ const buildRadio = (config2, componentScope2) => {
11340
11736
  const Radio = _.cloneDeep(RadioUiSchema);
11341
- Radio.scope = componentScope;
11342
- Radio.config.main.label = config.label;
11343
- if (config.layout) {
11344
- Radio.config.layout = createLayoutFormat(config.layout);
11737
+ Radio.scope = componentScope2;
11738
+ Radio.config.main.label = config2.label;
11739
+ if (config2.layout) {
11740
+ Radio.config.layout = createLayoutFormat(config2.layout);
11345
11741
  }
11346
- if (config.sectionLabels) {
11347
- Radio.config.main.options = config.sectionLabels.map((e) => e.label || e.Options);
11742
+ if (config2.sectionLabels) {
11743
+ Radio.config.main.options = config2.sectionLabels.map((e) => e.label || e.Options);
11348
11744
  }
11349
- if (config.style) {
11350
- Radio.config.style = JSON.parse(config.style);
11745
+ if (config2.style) {
11746
+ Radio.config.style = JSON.parse(config2.style);
11351
11747
  }
11352
11748
  return Radio;
11353
11749
  };
11354
- const buildEmptyBox = (config, componentScope) => {
11750
+ const buildEmptyBox = (config2, componentScope2) => {
11355
11751
  const EmptyBox = _.cloneDeep(emptyBox);
11356
- if (config.layout) {
11357
- EmptyBox.config.layout = createLayoutFormat(config.layout);
11752
+ if (config2.layout) {
11753
+ EmptyBox.config.layout = createLayoutFormat(config2.layout);
11358
11754
  }
11359
11755
  return EmptyBox;
11360
11756
  };
@@ -11369,9 +11765,9 @@ const ArrayUiSchema = {
11369
11765
  }
11370
11766
  }
11371
11767
  };
11372
- const buildArray = (config, componentScope) => {
11768
+ const buildArray = (config2, componentScope2) => {
11373
11769
  const array = _.cloneDeep(ArrayUiSchema);
11374
- array.scope = componentScope;
11770
+ array.scope = componentScope2;
11375
11771
  return array;
11376
11772
  };
11377
11773
  const TextField = {
@@ -11382,6 +11778,7 @@ const TextField = {
11382
11778
  "widget": "InputField"
11383
11779
  },
11384
11780
  config: {
11781
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11385
11782
  main: {
11386
11783
  label: "Adhaar Card",
11387
11784
  formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
@@ -11389,17 +11786,17 @@ const TextField = {
11389
11786
  }
11390
11787
  }
11391
11788
  };
11392
- const buildAdhaarField = (config, componentScope) => {
11789
+ const buildAdhaarField = (config2, componentScope2) => {
11393
11790
  const inputField = _.cloneDeep(TextField);
11394
- inputField.config.main.label = config.label;
11395
- if (config.style) {
11396
- inputField.config.style = JSON.parse(config.style);
11791
+ inputField.config.main.label = config2.label;
11792
+ if (config2.style) {
11793
+ inputField.config.style = JSON.parse(config2.style);
11397
11794
  }
11398
- if (config.layout) {
11399
- inputField.config.layout = createLayoutFormat(config.layout);
11795
+ if (config2.layout) {
11796
+ inputField.config.layout = createLayoutFormat(config2.layout);
11400
11797
  }
11401
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11402
- inputField.scope = componentScope;
11798
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11799
+ inputField.scope = componentScope2;
11403
11800
  return inputField;
11404
11801
  };
11405
11802
  const PanField = {
@@ -11410,6 +11807,7 @@ const PanField = {
11410
11807
  "widget": "InputField"
11411
11808
  },
11412
11809
  config: {
11810
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11413
11811
  main: {
11414
11812
  label: "Pan Card",
11415
11813
  placeholder: "AAAAA0000A",
@@ -11417,17 +11815,17 @@ const PanField = {
11417
11815
  }
11418
11816
  }
11419
11817
  };
11420
- const buildPanField = (config, componentScope) => {
11818
+ const buildPanField = (config2, componentScope2) => {
11421
11819
  const inputField = _.cloneDeep(PanField);
11422
- inputField.config.main.label = config.label;
11423
- if (config.style) {
11424
- inputField.config.style = JSON.parse(config.style);
11820
+ inputField.config.main.label = config2.label;
11821
+ if (config2.style) {
11822
+ inputField.config.style = JSON.parse(config2.style);
11425
11823
  }
11426
- if (config.layout) {
11427
- inputField.config.layout = createLayoutFormat(config.layout);
11824
+ if (config2.layout) {
11825
+ inputField.config.layout = createLayoutFormat(config2.layout);
11428
11826
  }
11429
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11430
- inputField.scope = componentScope;
11827
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11828
+ inputField.scope = componentScope2;
11431
11829
  return inputField;
11432
11830
  };
11433
11831
  const FileInput = {
@@ -11449,15 +11847,15 @@ const FileInput = {
11449
11847
  }
11450
11848
  }
11451
11849
  };
11452
- const buildFileInput = (config, componentScope) => {
11850
+ const buildFileInput = (config2, componentScope2) => {
11453
11851
  const box = _.cloneDeep(FileInput);
11454
- box.scope = componentScope;
11455
- box.config.main.label = config.label;
11456
- if (config.layout) {
11457
- box.config.layout = createLayoutFormat(config.layout);
11852
+ box.scope = componentScope2;
11853
+ box.config.main.label = config2.label;
11854
+ if (config2.layout) {
11855
+ box.config.layout = createLayoutFormat(config2.layout);
11458
11856
  }
11459
- if (config.style) {
11460
- box.config.style = JSON.parse(config.style);
11857
+ if (config2.style) {
11858
+ box.config.style = JSON.parse(config2.style);
11461
11859
  }
11462
11860
  return box;
11463
11861
  };
@@ -11477,26 +11875,26 @@ const Stepper = {
11477
11875
  },
11478
11876
  "elements": []
11479
11877
  };
11480
- const buildStepper = (config, componentScope) => {
11878
+ const buildStepper = (config2, componentScope2) => {
11481
11879
  const stepper = _.cloneDeep(Stepper);
11482
- stepper.scope = componentScope;
11483
- stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
11484
- if (config.defaultButtonAvailable) {
11485
- stepper.config.main.defaultButtonAvailable = config.defaultButtonAvailable === "YES" ? true : false;
11486
- }
11487
- stepper.config.main.resetText = config.resetText || "ResetData";
11488
- stepper.config.main.completeText = config.completeText || "Complete Text";
11489
- stepper.config.main.orientation = config.orientation || "horizontal";
11490
- if (config.sectionLabels) {
11491
- stepper.config.main.steps = config.sectionLabels.map((e, i) => {
11880
+ stepper.scope = componentScope2;
11881
+ stepper.config.main.resetButton = config2.resetButton === "YES" ? true : false;
11882
+ if (config2.defaultButtonAvailable) {
11883
+ stepper.config.main.defaultButtonAvailable = config2.defaultButtonAvailable === "YES" ? true : false;
11884
+ }
11885
+ stepper.config.main.resetText = config2.resetText || "ResetData";
11886
+ stepper.config.main.completeText = config2.completeText || "Complete Text";
11887
+ stepper.config.main.orientation = config2.orientation || "horizontal";
11888
+ if (config2.sectionLabels) {
11889
+ stepper.config.main.steps = config2.sectionLabels.map((e, i) => {
11492
11890
  return { label: e.label, id: i };
11493
11891
  });
11494
11892
  }
11495
- if (config.layout) {
11496
- stepper.config.layout = createLayoutFormat(config.layout);
11893
+ if (config2.layout) {
11894
+ stepper.config.layout = createLayoutFormat(config2.layout);
11497
11895
  }
11498
- if (config.style) {
11499
- stepper.config.style = JSON.parse(config.style);
11896
+ if (config2.style) {
11897
+ stepper.config.style = JSON.parse(config2.style);
11500
11898
  }
11501
11899
  return stepper;
11502
11900
  };
@@ -11524,18 +11922,18 @@ const PopUP = {
11524
11922
  style: {}
11525
11923
  }
11526
11924
  };
11527
- const buildPopUp = (config, componentScope) => {
11925
+ const buildPopUp = (config2, componentScope2) => {
11528
11926
  const popup = _.cloneDeep(PopUP);
11529
- popup.scope = componentScope;
11530
- popup.config.main.title = config.label;
11531
- popup.config.main.fullScreen = config.fullScreen === "YES" ? true : false;
11532
- popup.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
11533
- popup.config.main.maxWidth = config.maxWidth || false;
11534
- if (config.layout) {
11535
- popup.config.layout = createLayoutFormat(config.layout);
11927
+ popup.scope = componentScope2;
11928
+ popup.config.main.title = config2.label;
11929
+ popup.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
11930
+ popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
11931
+ popup.config.main.maxWidth = config2.maxWidth || false;
11932
+ if (config2.layout) {
11933
+ popup.config.layout = createLayoutFormat(config2.layout);
11536
11934
  }
11537
- if (config.style) {
11538
- PopUP.config.style = JSON.parse(config.style);
11935
+ if (config2.style) {
11936
+ PopUP.config.style = JSON.parse(config2.style);
11539
11937
  }
11540
11938
  return popup;
11541
11939
  };
@@ -11555,30 +11953,30 @@ const dataGrid = {
11555
11953
  style: {}
11556
11954
  }
11557
11955
  };
11558
- const buildDataGrid = (config, componentScope) => {
11956
+ const buildDataGrid = (config2, componentScope2) => {
11559
11957
  const DataGrid = _.cloneDeep(dataGrid);
11560
- DataGrid.scope = componentScope;
11561
- if (config.elevation) {
11562
- DataGrid.config.main.elevation = +config.elevation;
11958
+ DataGrid.scope = componentScope2;
11959
+ if (config2.elevation) {
11960
+ DataGrid.config.main.elevation = +config2.elevation;
11563
11961
  }
11564
- DataGrid.config.main.divider = config.divider === "NO" ? false : true;
11565
- if (config.height) {
11566
- DataGrid.config.main.height = `${config.height}px`;
11962
+ DataGrid.config.main.divider = config2.divider === "NO" ? false : true;
11963
+ if (config2.height) {
11964
+ DataGrid.config.main.height = `${config2.height}px`;
11567
11965
  }
11568
- if (config.justifyContent) {
11569
- DataGrid.config.main.justifyContent = config.justifyContent;
11966
+ if (config2.justifyContent) {
11967
+ DataGrid.config.main.justifyContent = config2.justifyContent;
11570
11968
  }
11571
- if (config.label) {
11572
- DataGrid.config.main.label = config.label;
11969
+ if (config2.label) {
11970
+ DataGrid.config.main.label = config2.label;
11573
11971
  }
11574
- if (config.layout) {
11575
- DataGrid.config.layout = createLayoutFormat(config.layout);
11972
+ if (config2.layout) {
11973
+ DataGrid.config.layout = createLayoutFormat(config2.layout);
11576
11974
  }
11577
- if (config.cardLayout) {
11578
- DataGrid.config.cardLayout = createLayoutFormat(config.cardLayout);
11975
+ if (config2.cardLayout) {
11976
+ DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
11579
11977
  }
11580
- if (config.style) {
11581
- DataGrid.config.style = JSON.parse(config.style);
11978
+ if (config2.style) {
11979
+ DataGrid.config.style = JSON.parse(config2.style);
11582
11980
  }
11583
11981
  return DataGrid;
11584
11982
  };
@@ -11589,7 +11987,7 @@ const InputSlider = {
11589
11987
  widget: "InputSlider"
11590
11988
  },
11591
11989
  config: {
11592
- layout: 12,
11990
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
11593
11991
  main: {
11594
11992
  limitToMax: false,
11595
11993
  max: 1e4,
@@ -11599,27 +11997,27 @@ const InputSlider = {
11599
11997
  }
11600
11998
  }
11601
11999
  };
11602
- const buildInputSlider = (config, componentScope) => {
12000
+ const buildInputSlider = (config2, componentScope2) => {
11603
12001
  const inputSlider = _.cloneDeep(InputSlider);
11604
- inputSlider.scope = componentScope;
11605
- inputSlider.config.main.label = config.label;
11606
- if (config.layout) {
11607
- inputSlider.config.layout = createLayoutFormat(config.layout);
12002
+ inputSlider.scope = componentScope2;
12003
+ inputSlider.config.main.label = config2.label;
12004
+ if (config2.layout) {
12005
+ inputSlider.config.layout = createLayoutFormat(config2.layout);
11608
12006
  }
11609
- if (config.limitToMax) {
11610
- inputSlider.config.main.limitToMax = config.limitToMax === "YES" ? true : false;
12007
+ if (config2.limitToMax) {
12008
+ inputSlider.config.main.limitToMax = config2.limitToMax === "YES" ? true : false;
11611
12009
  }
11612
- if (config.max) {
11613
- inputSlider.config.main.max = config.max;
12010
+ if (config2.max) {
12011
+ inputSlider.config.main.max = config2.max;
11614
12012
  }
11615
- if (config.step) {
11616
- inputSlider.config.main.step = config.step;
12013
+ if (config2.step) {
12014
+ inputSlider.config.main.step = config2.step;
11617
12015
  }
11618
- if (config.min) {
11619
- inputSlider.config.main.min = config.min;
12016
+ if (config2.min) {
12017
+ inputSlider.config.main.min = config2.min;
11620
12018
  }
11621
- if (config.style) {
11622
- inputSlider.config.main.defaultStyle = JSON.parse(config.style);
12019
+ if (config2.style) {
12020
+ inputSlider.config.main.defaultStyle = JSON.parse(config2.style);
11623
12021
  }
11624
12022
  return inputSlider;
11625
12023
  };
@@ -11645,38 +12043,101 @@ const TreeMap = {
11645
12043
  },
11646
12044
  elements: []
11647
12045
  };
11648
- const buildTreeMap = (config, componentScope) => {
12046
+ const buildTreeMap = (config2, componentScope2) => {
11649
12047
  const treMap = _.cloneDeep(TreeMap);
11650
- treMap.scope = componentScope;
11651
- if (config.label) {
11652
- treMap.config.main.header = config.label;
12048
+ treMap.scope = componentScope2;
12049
+ if (config2.label) {
12050
+ treMap.config.main.header = config2.label;
11653
12051
  }
11654
- if (config.layout) {
11655
- treMap.config.layout = createLayoutFormat(config.layout);
12052
+ if (config2.layout) {
12053
+ treMap.config.layout = createLayoutFormat(config2.layout);
11656
12054
  }
11657
- if (config.orientation) {
11658
- treMap.config.main.orientation = config.orientation;
12055
+ if (config2.orientation) {
12056
+ treMap.config.main.orientation = config2.orientation;
11659
12057
  }
11660
- if (config.linkType) {
11661
- treMap.config.main.linkType = config.linkType;
12058
+ if (config2.linkType) {
12059
+ treMap.config.main.linkType = config2.linkType;
11662
12060
  }
11663
- if (config.graphHeight) {
11664
- treMap.config.main.graphHeight = config.graphHeight;
12061
+ if (config2.graphHeight) {
12062
+ treMap.config.main.graphHeight = config2.graphHeight;
11665
12063
  }
11666
- if (config.graphWidth) {
11667
- treMap.config.main.graphWidth = config.graphWidth;
12064
+ if (config2.graphWidth) {
12065
+ treMap.config.main.graphWidth = config2.graphWidth;
11668
12066
  }
11669
- if (config.graphZoomHeight) {
11670
- treMap.config.main.graphZoomHeight = config.graphZoomHeight;
12067
+ if (config2.graphZoomHeight) {
12068
+ treMap.config.main.graphZoomHeight = config2.graphZoomHeight;
11671
12069
  }
11672
- if (config.graphZoomWidth) {
11673
- treMap.config.main.graphZoomWidth = config.graphZoomWidth;
12070
+ if (config2.graphZoomWidth) {
12071
+ treMap.config.main.graphZoomWidth = config2.graphZoomWidth;
11674
12072
  }
11675
- if (config.style) {
11676
- treMap.config.style = JSON.parse(config.style);
12073
+ if (config2.style) {
12074
+ treMap.config.style = JSON.parse(config2.style);
11677
12075
  }
11678
12076
  return treMap;
11679
12077
  };
12078
+ var Thought = {
12079
+ type: "Control",
12080
+ scope: "#/properties/path",
12081
+ options: {
12082
+ widget: "Thought"
12083
+ },
12084
+ config: {
12085
+ layout: { xs: 11.5, sm: 11.5, md: 8, lg: 8 },
12086
+ main: {}
12087
+ }
12088
+ };
12089
+ const buildThoughtOfTheDay = (config2, componentScope2) => {
12090
+ const thought = _.cloneDeep(Thought);
12091
+ thought.scope = componentScope2;
12092
+ if (config2.thought) {
12093
+ thought.config.main.thought = `${config2.thought}`;
12094
+ }
12095
+ if (config2.layout) {
12096
+ thought.config.layout = createLayoutFormat(config2.layout);
12097
+ }
12098
+ if (config2.label) {
12099
+ thought.config.main.label = config2.label;
12100
+ }
12101
+ if (config2.style) {
12102
+ thought.config.style = JSON.parse(config2.style);
12103
+ }
12104
+ return thought;
12105
+ };
12106
+ var pdfViewer = {
12107
+ type: "Control",
12108
+ scope: "#/properties/pdfviewer",
12109
+ options: {
12110
+ widget: "PdfViewer"
12111
+ },
12112
+ config: {
12113
+ layout: {
12114
+ xs: 12,
12115
+ sm: 12,
12116
+ md: 12,
12117
+ lg: 12
12118
+ },
12119
+ main: {
12120
+ title: "PDF"
12121
+ }
12122
+ }
12123
+ };
12124
+ const buildPdfViewer = (config2) => {
12125
+ const PdfViewer = _.cloneDeep(pdfViewer);
12126
+ PdfViewer.config.main.label = config2.label;
12127
+ if (config2.name) {
12128
+ PdfViewer.scope = `#/properties/${config2.name}`;
12129
+ }
12130
+ if (config2.layout) {
12131
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
12132
+ }
12133
+ if (config2.label) {
12134
+ PdfViewer.config.main.title = config2.label;
12135
+ }
12136
+ if (config2.style) {
12137
+ PdfViewer.config.style = JSON.parse(config2.style);
12138
+ }
12139
+ return PdfViewer;
12140
+ };
11680
12141
  let schema = {
11681
12142
  type: "object",
11682
12143
  properties: {},
@@ -11766,12 +12227,12 @@ function buildRule(configObj, tableName, arrayHolderName) {
11766
12227
  });
11767
12228
  }
11768
12229
  }
11769
- const buildSchema = (config, tableName, isArrayType) => {
11770
- buildRule(config, tableName, isArrayType);
11771
- if (config == null ? void 0 : config.elements) {
11772
- if (config.type == "Table" || config.type == "Array") {
11773
- if (!schema.properties[config.name]) {
11774
- schema.properties[config.name] = {
12230
+ const buildSchema = (config2, tableName, isArrayType) => {
12231
+ buildRule(config2, tableName, isArrayType);
12232
+ if (config2 == null ? void 0 : config2.elements) {
12233
+ if (config2.type == "Table" || config2.type == "Array") {
12234
+ if (!schema.properties[config2.name]) {
12235
+ schema.properties[config2.name] = {
11775
12236
  type: "array",
11776
12237
  items: {
11777
12238
  type: "object",
@@ -11780,150 +12241,159 @@ const buildSchema = (config, tableName, isArrayType) => {
11780
12241
  }
11781
12242
  };
11782
12243
  }
11783
- config.elements.map((e, elemInd) => {
11784
- buildSchema(e, config.name, config.type === "Array" ? true : false);
12244
+ config2.elements.map((e, elemInd) => {
12245
+ buildSchema(e, config2.name, config2.type === "Array" ? true : false);
11785
12246
  });
11786
12247
  } else {
11787
- config.elements.map((e, elemInd) => {
12248
+ config2.elements.map((e, elemInd) => {
11788
12249
  buildSchema(e);
11789
12250
  });
11790
12251
  }
11791
12252
  }
11792
12253
  return schema;
11793
12254
  };
11794
- const buildUiSchema = (config, store2) => {
12255
+ const buildUiSchema = (config2, store2) => {
11795
12256
  let elements = {};
11796
- const componentScope = `#/properties/${config.name}`;
11797
- switch (config.type) {
12257
+ const componentScope2 = `#/properties/${config2.name}`;
12258
+ switch (config2.type) {
11798
12259
  case "TreeMap":
11799
- elements = buildTreeMap(config, componentScope);
12260
+ elements = buildTreeMap(config2, componentScope2);
11800
12261
  break;
11801
12262
  case "DateTime":
11802
- elements = buildDateTime(config, componentScope);
12263
+ elements = buildDateTime(config2, componentScope2);
11803
12264
  break;
11804
12265
  case "InputSlider":
11805
- elements = buildInputSlider(config, componentScope);
12266
+ elements = buildInputSlider(config2, componentScope2);
11806
12267
  break;
11807
12268
  case "DataGrid":
11808
- elements = buildDataGrid(config, componentScope);
12269
+ elements = buildDataGrid(config2, componentScope2);
11809
12270
  break;
11810
12271
  case "Stepper":
11811
- elements = buildStepper(config, componentScope);
12272
+ elements = buildStepper(config2, componentScope2);
11812
12273
  break;
11813
12274
  case "PopUp":
11814
- elements = buildPopUp(config, componentScope);
12275
+ elements = buildPopUp(config2, componentScope2);
11815
12276
  break;
11816
12277
  case "FileInput":
11817
- elements = buildFileInput(config, componentScope);
12278
+ elements = buildFileInput(config2, componentScope2);
11818
12279
  break;
11819
12280
  case "AadharcardText":
11820
- elements = buildAdhaarField(config, componentScope);
12281
+ elements = buildAdhaarField(config2, componentScope2);
11821
12282
  break;
11822
12283
  case "PanCardText":
11823
- elements = buildPanField(config, componentScope);
12284
+ elements = buildPanField(config2, componentScope2);
11824
12285
  break;
11825
12286
  case "TabSection":
11826
- elements = buildTabSection(config, componentScope);
12287
+ elements = buildTabSection(config2, componentScope2);
11827
12288
  break;
11828
12289
  case "RunnerBoyProgressBar":
11829
- elements = RunnerBoyProgressbar(config, componentScope);
12290
+ elements = RunnerBoyProgressbar(config2, componentScope2);
11830
12291
  break;
11831
12292
  case "WrapperSection":
11832
- elements = buildWrapperSection(config, componentScope);
12293
+ elements = buildWrapperSection(config2, componentScope2);
11833
12294
  break;
11834
12295
  case "Text":
11835
- elements = buildTextField(config, componentScope);
12296
+ elements = buildTextField(config2, componentScope2);
11836
12297
  break;
11837
12298
  case "TextArea":
11838
- elements = buildTextArea(config, componentScope);
12299
+ elements = buildTextArea(config2, componentScope2);
11839
12300
  break;
11840
12301
  case "Date":
11841
- elements = buildDate(config, componentScope);
12302
+ elements = buildDate(config2, componentScope2);
11842
12303
  break;
11843
12304
  case "Select":
11844
- elements = buildSelect(config, componentScope);
12305
+ elements = buildSelect(config2, componentScope2);
11845
12306
  break;
11846
12307
  case "Radio":
11847
- elements = buildRadio(config, componentScope);
12308
+ elements = buildRadio(config2, componentScope2);
11848
12309
  break;
11849
12310
  case "Button":
11850
- elements = buildButton(config, componentScope);
12311
+ elements = buildButton(config2, componentScope2);
11851
12312
  break;
11852
12313
  case "Table":
11853
- elements = buildTable(config, componentScope);
12314
+ elements = buildTable(config2, componentScope2);
11854
12315
  break;
11855
12316
  case "Array":
11856
- elements = buildArray(config, componentScope);
12317
+ elements = buildArray(config2, componentScope2);
11857
12318
  break;
11858
12319
  case "Box":
11859
- elements = buildLabel(config, componentScope);
12320
+ elements = buildLabel(config2, componentScope2);
11860
12321
  break;
11861
12322
  case "CheckBox":
11862
- elements = buildCheckbox(config, componentScope);
12323
+ elements = buildCheckbox(config2, componentScope2);
11863
12324
  break;
11864
12325
  case "UploadFile":
11865
- elements = buildUploadFile(config, componentScope);
12326
+ elements = buildUploadFile(config2, componentScope2);
11866
12327
  break;
11867
12328
  case "DownloadFile":
11868
- elements = buildDownloadFile(config, componentScope);
12329
+ elements = buildDownloadFile(config2, componentScope2);
11869
12330
  break;
11870
12331
  case "EmptyBox":
11871
- elements = buildEmptyBox(config);
12332
+ elements = buildEmptyBox(config2);
11872
12333
  break;
11873
12334
  case "card":
11874
- elements = buildCard(config, componentScope, store2);
12335
+ elements = buildCard(config2, componentScope2, store2);
11875
12336
  break;
11876
12337
  case "Graph":
11877
- switch (config.graphType) {
12338
+ switch (config2.graphType) {
11878
12339
  case "BarGraph":
11879
12340
  case "StackBarGraph":
11880
- elements = buildStackbarGraph(config, componentScope);
12341
+ elements = buildStackbarGraph(config2, componentScope2);
11881
12342
  break;
11882
12343
  case "LineGraph":
11883
- elements = buildLineGraph(config, componentScope);
12344
+ elements = buildLineGraph(config2, componentScope2);
11884
12345
  break;
11885
12346
  case "PieGraph":
11886
- elements = buildPieGraph(config, componentScope);
12347
+ elements = buildPieGraph(config2, componentScope2);
11887
12348
  break;
11888
12349
  case "HorizontalBarGraph":
11889
12350
  case "HorizontalStackBarGraph":
11890
- elements = buildHorizontalBarGraph(config, componentScope);
12351
+ elements = buildHorizontalBarGraph(config2, componentScope2);
12352
+ break;
12353
+ default:
12354
+ elements = buildStackbarGraph(config2, componentScope2);
11891
12355
  break;
11892
12356
  }
11893
12357
  break;
11894
12358
  case "ProgressBar":
11895
- elements = buildProgressBar(config, componentScope);
12359
+ elements = buildProgressBar(config2, componentScope2);
11896
12360
  break;
11897
12361
  case "SpeedoMeter":
11898
- elements = buildSpeedoMeter(config, componentScope);
12362
+ elements = buildSpeedoMeter(config2, componentScope2);
11899
12363
  break;
11900
12364
  case "ProgressBarCard":
11901
- elements = buildProgressBarCard(config, componentScope);
12365
+ elements = buildProgressBarCard(config2, componentScope2);
11902
12366
  break;
11903
12367
  case "RankCard":
11904
- elements = buildRankCard(config, componentScope);
12368
+ elements = buildRankCard(config2, componentScope2);
11905
12369
  break;
11906
12370
  case "Rank":
11907
- elements = buildRollAndDice(config, componentScope);
12371
+ elements = buildRollAndDice(config2, componentScope2);
11908
12372
  break;
11909
12373
  case "Slider":
11910
- elements = buildSlider(config, componentScope);
12374
+ elements = buildSlider(config2, componentScope2);
11911
12375
  break;
11912
12376
  case "Timer":
11913
- elements = buildTimer(config, componentScope);
12377
+ elements = buildTimer(config2, componentScope2);
11914
12378
  break;
11915
12379
  case "ColumnGroup":
11916
12380
  elements = {
11917
- accessorKey: config.name,
11918
- header: config.label || config.name,
12381
+ accessorKey: config2.name,
12382
+ header: config2.label || config2.name,
11919
12383
  elements: []
11920
12384
  };
11921
12385
  break;
11922
12386
  case "MultipleSelect":
11923
- elements = buildMultiSelect(config, componentScope);
12387
+ elements = buildMultiSelect(config2, componentScope2);
11924
12388
  break;
11925
12389
  case "LeaderBoard":
11926
- elements = buildLeaderBoard(config);
12390
+ elements = buildLeaderBoard(config2);
12391
+ break;
12392
+ case "Thought":
12393
+ elements = buildThoughtOfTheDay(config2, componentScope2);
12394
+ break;
12395
+ case "PdfViewer":
12396
+ elements = buildPdfViewer(config2);
11927
12397
  break;
11928
12398
  default:
11929
12399
  schema = {
@@ -11931,19 +12401,19 @@ const buildUiSchema = (config, store2) => {
11931
12401
  properties: {},
11932
12402
  required: []
11933
12403
  };
11934
- elements = buildBasicUiSchema(config);
12404
+ elements = buildBasicUiSchema(config2);
11935
12405
  }
11936
- if (config == null ? void 0 : config.elements) {
11937
- if ((config == null ? void 0 : config.type) === "LeaderBoard") {
12406
+ if (config2 == null ? void 0 : config2.elements) {
12407
+ if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
11938
12408
  return elements;
11939
- } else if (config.type == "ColumnGroup") {
12409
+ } else if (config2.type == "ColumnGroup") {
11940
12410
  const sizeMap = {};
11941
- if (config.sizeHolder) {
11942
- config.sizeHolder.map((e, i) => {
12411
+ if (config2.sizeHolder) {
12412
+ config2.sizeHolder.map((e, i) => {
11943
12413
  sizeMap[e.keyName] = e.value;
11944
12414
  });
11945
12415
  }
11946
- elements.elements = config.elements.map((cellElem, elemInd) => {
12416
+ elements.elements = config2.elements.map((cellElem, elemInd) => {
11947
12417
  return {
11948
12418
  accessorKey: cellElem.name,
11949
12419
  header: cellElem.label || cellElem.name,
@@ -11952,20 +12422,20 @@ const buildUiSchema = (config, store2) => {
11952
12422
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
11953
12423
  };
11954
12424
  });
11955
- } else if (config.type == "Table") {
12425
+ } else if (config2.type == "Table") {
11956
12426
  const sizeMap = {};
11957
12427
  const filterMap = {};
11958
- if (config.sizeHolder) {
11959
- config.sizeHolder.map((e, i) => {
12428
+ if (config2.sizeHolder) {
12429
+ config2.sizeHolder.map((e, i) => {
11960
12430
  sizeMap[e.keyName] = e.value;
11961
12431
  });
11962
12432
  }
11963
- if (config.enableColumnFilter) {
11964
- config.enableColumnFilter.map((e) => {
12433
+ if (config2.enableColumnFilter) {
12434
+ config2.enableColumnFilter.map((e) => {
11965
12435
  filterMap[e.keyName] = true;
11966
12436
  });
11967
12437
  }
11968
- elements.elements = config.elements.map((cellElem, elemInd) => {
12438
+ elements.elements = config2.elements.map((cellElem, elemInd) => {
11969
12439
  var _a, _b;
11970
12440
  if (cellElem.type) {
11971
12441
  return {
@@ -11976,7 +12446,7 @@ const buildUiSchema = (config, store2) => {
11976
12446
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
11977
12447
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
11978
12448
  enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
11979
- columnFilterModeOptions: config.filteringOptions
12449
+ columnFilterModeOptions: config2.filteringOptions
11980
12450
  };
11981
12451
  } else {
11982
12452
  return {
@@ -11985,16 +12455,16 @@ const buildUiSchema = (config, store2) => {
11985
12455
  header: cellElem.label || cellElem.name,
11986
12456
  size: sizeMap[cellElem.name] || 180,
11987
12457
  enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
11988
- columnFilterModeOptions: config.filteringOptions
12458
+ columnFilterModeOptions: config2.filteringOptions
11989
12459
  };
11990
12460
  }
11991
12461
  });
11992
- } else if (config.type == "Array") {
11993
- elements.options.detail.elements = config.elements.map((e, elemInd) => {
12462
+ } else if (config2.type == "Array") {
12463
+ elements.options.detail.elements = config2.elements.map((e, elemInd) => {
11994
12464
  return buildUiSchema(e, store2);
11995
12465
  });
11996
12466
  } else {
11997
- elements.elements = config.elements.map((e, elemInd) => {
12467
+ elements.elements = config2.elements.map((e, elemInd) => {
11998
12468
  return buildUiSchema(e, store2);
11999
12469
  });
12000
12470
  }