impaktapps-ui-builder 0.0.412-mtreemap.9 → 0.0.591

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1082 -351
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +2 -2
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +18 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +1 -6
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +10 -12
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +2 -2
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +5 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +58 -45
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +25 -1
  17. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  18. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
  19. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  20. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -1
  21. package/package.json +1 -1
  22. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
  23. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +5 -5
  24. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +1 -1
  25. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  26. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  27. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +0 -1
  28. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  29. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +17 -1
  30. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -2
  32. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +78 -33
  33. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  34. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +88 -90
  35. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +10 -0
  36. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
  37. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +6 -55
  38. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  39. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +6 -118
  40. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +82 -72
  41. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +5 -7
  42. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +93 -137
  43. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  44. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +206 -74
  45. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +195 -120
  46. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -0
  47. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +118 -128
  48. package/src/impaktapps-ui-builder/builder/services/component.ts +26 -9
  49. package/src/impaktapps-ui-builder/builder/services/event.ts +17 -9
  50. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
  51. package/src/impaktapps-ui-builder/builder/services/utils.ts +0 -1
  52. package/src/impaktapps-ui-builder/runtime/services/events.ts +14 -20
  53. package/src/impaktapps-ui-builder/runtime/services/service.ts +128 -9
@@ -54,9 +54,9 @@ const PageMasterUiSchema = (theme) => {
54
54
  config: {
55
55
  main: {},
56
56
  wrapperStyle: {
57
+ marginLeft: theme.spacing(2),
57
58
  backgroundColor: theme.palette.background.default
58
- },
59
- defaultStyle: true
59
+ }
60
60
  },
61
61
  elements: [
62
62
  {
@@ -188,6 +188,9 @@ const PageMasterUiSchema = (theme) => {
188
188
  color: "primary",
189
189
  onClick: "Edit_Components",
190
190
  tooltipMessage: "Edit This Record"
191
+ },
192
+ style: {
193
+ color: theme.palette.primary.main
191
194
  }
192
195
  }
193
196
  }
@@ -206,7 +209,7 @@ const PageMasterUiSchema = (theme) => {
206
209
  main: {
207
210
  icon: "RejectIcon",
208
211
  color: "error",
209
- onClick: "Delete_Components",
212
+ onClick: "deletePopUpComponent",
210
213
  tooltipMessage: "Reject This Record"
211
214
  }
212
215
  }
@@ -279,7 +282,7 @@ const PageMasterUiSchema = (theme) => {
279
282
  onClick: "editEvent"
280
283
  },
281
284
  style: {
282
- color: "#3949ab"
285
+ color: theme.palette.primary.main
283
286
  }
284
287
  }
285
288
  }
@@ -298,7 +301,7 @@ const PageMasterUiSchema = (theme) => {
298
301
  icon: "RejectIcon",
299
302
  color: "error",
300
303
  tooltipMessage: "Reject This Record",
301
- onClick: "deleteEvent"
304
+ onClick: "deletePopUpEvent"
302
305
  }
303
306
  }
304
307
  }
@@ -314,7 +317,7 @@ const PageMasterUiSchema = (theme) => {
314
317
  widget: "EmptyBox"
315
318
  },
316
319
  config: {
317
- layout: { xs: 0, sm: 0, md: 8, lg: 7 }
320
+ layout: { xs: 0, sm: 8, md: 8, lg: 8 }
318
321
  }
319
322
  },
320
323
  {
@@ -339,6 +342,188 @@ const PageMasterUiSchema = (theme) => {
339
342
  }
340
343
  }
341
344
  },
345
+ {
346
+ type: "Control",
347
+ scope: "#/properties/popUpPageMasterComponent",
348
+ options: {
349
+ widget: "PopUp"
350
+ },
351
+ config: {
352
+ layout: {
353
+ xs: 12,
354
+ sm: 12,
355
+ md: 6,
356
+ lg: 6
357
+ },
358
+ main: {},
359
+ style: {
360
+ "& .MuiPaper-root": {
361
+ width: "30%"
362
+ },
363
+ "& .MuiTypography-root": {
364
+ padding: 0
365
+ }
366
+ }
367
+ },
368
+ elements: [
369
+ {
370
+ type: "Control",
371
+ scope: "#/properties/label",
372
+ options: {
373
+ widget: "Box"
374
+ },
375
+ config: {
376
+ layout: 12,
377
+ main: {
378
+ heading: "Are you sure you want to delete ?"
379
+ },
380
+ style: {
381
+ marginTop: "-40px"
382
+ }
383
+ }
384
+ },
385
+ {
386
+ type: "Control",
387
+ scope: "#/properties/EmptyBox",
388
+ options: {
389
+ widget: "EmptyBox"
390
+ },
391
+ config: {
392
+ main: {},
393
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
394
+ }
395
+ },
396
+ {
397
+ type: "Control",
398
+ scope: "#/properties/ConfirmDeleteCompButton",
399
+ options: {
400
+ widget: "Button"
401
+ },
402
+ config: {
403
+ layout: 3,
404
+ main: {
405
+ name: "Yes",
406
+ startIcon: "ApproveIcon",
407
+ variant: "contained",
408
+ color: "info",
409
+ type: "text",
410
+ onClick: "Delete_Components",
411
+ size: "small"
412
+ }
413
+ }
414
+ },
415
+ {
416
+ type: "Control",
417
+ scope: "#/properties/CancelDeleteCompButton",
418
+ options: {
419
+ widget: "Button"
420
+ },
421
+ config: {
422
+ layout: 3,
423
+ main: {
424
+ name: "No",
425
+ startIcon: "ApproveIcon",
426
+ variant: "contained",
427
+ color: "info",
428
+ type: "text",
429
+ onClick: "deletePopUpComponent",
430
+ size: "small"
431
+ }
432
+ }
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ type: "Control",
438
+ scope: "#/properties/popUpPageMasterEvent",
439
+ options: {
440
+ widget: "PopUp"
441
+ },
442
+ config: {
443
+ layout: {
444
+ xs: 12,
445
+ sm: 12,
446
+ md: 6,
447
+ lg: 6
448
+ },
449
+ main: {},
450
+ style: {
451
+ "& .MuiPaper-root": {
452
+ width: "30%"
453
+ },
454
+ "& .MuiTypography-root": {
455
+ padding: 0
456
+ }
457
+ }
458
+ },
459
+ elements: [
460
+ {
461
+ type: "Control",
462
+ scope: "#/properties/label",
463
+ options: {
464
+ widget: "Box"
465
+ },
466
+ config: {
467
+ layout: 12,
468
+ main: {
469
+ heading: "Are you sure you want to delete ?"
470
+ },
471
+ style: {
472
+ marginTop: "-40px"
473
+ }
474
+ }
475
+ },
476
+ {
477
+ type: "Control",
478
+ scope: "#/properties/EmptyBox",
479
+ options: {
480
+ widget: "EmptyBox"
481
+ },
482
+ config: {
483
+ main: {},
484
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
485
+ }
486
+ },
487
+ {
488
+ type: "Control",
489
+ scope: "#/properties/ConfirmDeleteEventButton",
490
+ options: {
491
+ widget: "Button"
492
+ },
493
+ config: {
494
+ layout: 3,
495
+ main: {
496
+ name: "Yes",
497
+ startIcon: "ApproveIcon",
498
+ variant: "contained",
499
+ color: "info",
500
+ type: "text",
501
+ onClick: "deleteEvent",
502
+ size: "small"
503
+ }
504
+ }
505
+ },
506
+ {
507
+ type: "Control",
508
+ scope: "#/properties/CancelDeleteEventButton",
509
+ options: {
510
+ widget: "Button"
511
+ },
512
+ config: {
513
+ layout: 3,
514
+ main: {
515
+ name: "No",
516
+ startIcon: "ApproveIcon",
517
+ variant: "contained",
518
+ color: "error",
519
+ type: "text",
520
+ onClick: "deletePopUpEvent",
521
+ size: "small"
522
+ }
523
+ }
524
+ }
525
+ ]
526
+ },
342
527
  {
343
528
  type: "Control",
344
529
  scope: "#/properties/notify",
@@ -5933,8 +6118,6 @@ const ComponentSchema = {
5933
6118
  { title: "Text Area", const: "TextArea" },
5934
6119
  { title: "Timer", const: "Timer" },
5935
6120
  { title: "Upload File", const: "UploadFile" },
5936
- { title: "Timer", const: "Timer" },
5937
- { title: "Upload File", const: "UploadFile" },
5938
6121
  { title: "TreeMap", const: "TreeMap" },
5939
6122
  { title: "ColumnGroup", const: "ColumnGroup" }
5940
6123
  ]
@@ -6204,6 +6387,25 @@ const componentBasicUiSchema = (theme) => {
6204
6387
  type: "HorizontalLayout",
6205
6388
  heading: "Component",
6206
6389
  elements: [
6390
+ {
6391
+ type: "Control",
6392
+ scope: "#/properties/pageName",
6393
+ options: {
6394
+ widget: "Box"
6395
+ },
6396
+ config: {
6397
+ layout: 12,
6398
+ main: {
6399
+ heading: " "
6400
+ },
6401
+ style: {
6402
+ marginLeft: theme.spacing(3),
6403
+ width: "auto",
6404
+ fontSize: "12px",
6405
+ color: "gray"
6406
+ }
6407
+ }
6408
+ },
6207
6409
  {
6208
6410
  type: "TabLayout",
6209
6411
  config: {
@@ -6350,6 +6552,188 @@ const componentBasicUiSchema = (theme) => {
6350
6552
  }
6351
6553
  ]
6352
6554
  },
6555
+ {
6556
+ type: "Control",
6557
+ scope: "#/properties/popUpComponentSection",
6558
+ options: {
6559
+ widget: "PopUp"
6560
+ },
6561
+ config: {
6562
+ layout: {
6563
+ xs: 12,
6564
+ sm: 12,
6565
+ md: 12,
6566
+ lg: 12
6567
+ },
6568
+ main: {},
6569
+ style: {
6570
+ "& .MuiPaper-root": {
6571
+ width: "30%"
6572
+ },
6573
+ "& .MuiTypography-root": {
6574
+ padding: 0
6575
+ }
6576
+ }
6577
+ },
6578
+ elements: [
6579
+ {
6580
+ type: "Control",
6581
+ scope: "#/properties/label",
6582
+ options: {
6583
+ widget: "Box"
6584
+ },
6585
+ config: {
6586
+ layout: 12,
6587
+ main: {
6588
+ heading: "Are you sure you want to delete ?"
6589
+ },
6590
+ style: {
6591
+ marginTop: "-40px"
6592
+ }
6593
+ }
6594
+ },
6595
+ {
6596
+ type: "Control",
6597
+ scope: "#/properties/EmptyBox",
6598
+ options: {
6599
+ widget: "EmptyBox"
6600
+ },
6601
+ config: {
6602
+ main: {},
6603
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6604
+ }
6605
+ },
6606
+ {
6607
+ type: "Control",
6608
+ scope: "#/properties/ConfirmDeleteCompButton",
6609
+ options: {
6610
+ widget: "Button"
6611
+ },
6612
+ config: {
6613
+ layout: 3,
6614
+ main: {
6615
+ name: "Yes",
6616
+ startIcon: "ApproveIcon",
6617
+ variant: "contained",
6618
+ color: "error",
6619
+ type: "text",
6620
+ onClick: "deleteComponents",
6621
+ size: "small"
6622
+ }
6623
+ }
6624
+ },
6625
+ {
6626
+ type: "Control",
6627
+ scope: "#/properties/CancelDeleteCompButton",
6628
+ options: {
6629
+ widget: "Button"
6630
+ },
6631
+ config: {
6632
+ layout: 3,
6633
+ main: {
6634
+ name: "No",
6635
+ startIcon: "ApproveIcon",
6636
+ variant: "contained",
6637
+ color: "info",
6638
+ type: "text",
6639
+ onClick: "deletePopUpComponent",
6640
+ size: "small"
6641
+ }
6642
+ }
6643
+ }
6644
+ ]
6645
+ },
6646
+ {
6647
+ type: "Control",
6648
+ scope: "#/properties/popUpEventSection",
6649
+ options: {
6650
+ widget: "PopUp"
6651
+ },
6652
+ config: {
6653
+ layout: {
6654
+ xs: 12,
6655
+ sm: 12,
6656
+ md: 12,
6657
+ lg: 12
6658
+ },
6659
+ main: {},
6660
+ style: {
6661
+ "& .MuiPaper-root": {
6662
+ width: "30%"
6663
+ },
6664
+ "& .MuiTypography-root": {
6665
+ padding: 0
6666
+ }
6667
+ }
6668
+ },
6669
+ elements: [
6670
+ {
6671
+ type: "Control",
6672
+ scope: "#/properties/label",
6673
+ options: {
6674
+ widget: "Box"
6675
+ },
6676
+ config: {
6677
+ layout: 12,
6678
+ main: {
6679
+ heading: "Are you sure you want to delete ?"
6680
+ },
6681
+ style: {
6682
+ marginTop: "-40px"
6683
+ }
6684
+ }
6685
+ },
6686
+ {
6687
+ type: "Control",
6688
+ scope: "#/properties/EmptyBox",
6689
+ options: {
6690
+ widget: "EmptyBox"
6691
+ },
6692
+ config: {
6693
+ main: {},
6694
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6695
+ }
6696
+ },
6697
+ {
6698
+ type: "Control",
6699
+ scope: "#/properties/ConfirmDeleteEventButton",
6700
+ options: {
6701
+ widget: "Button"
6702
+ },
6703
+ config: {
6704
+ layout: 3,
6705
+ main: {
6706
+ name: "Yes",
6707
+ startIcon: "ApproveIcon",
6708
+ variant: "contained",
6709
+ color: "info",
6710
+ type: "text",
6711
+ onClick: "deleteEvent",
6712
+ size: "small"
6713
+ }
6714
+ }
6715
+ },
6716
+ {
6717
+ type: "Control",
6718
+ scope: "#/properties/CancelDeleteEventButton",
6719
+ options: {
6720
+ widget: "Button"
6721
+ },
6722
+ config: {
6723
+ layout: 3,
6724
+ main: {
6725
+ name: "No",
6726
+ startIcon: "ApproveIcon",
6727
+ variant: "contained",
6728
+ color: "info",
6729
+ type: "text",
6730
+ onClick: "deletePopUpEvent",
6731
+ size: "small"
6732
+ }
6733
+ }
6734
+ }
6735
+ ]
6736
+ },
6353
6737
  {
6354
6738
  type: "Control",
6355
6739
  scope: "#/properties/EmptyBox",
@@ -6592,6 +6976,16 @@ const CoreSection = {
6592
6976
  widget: "EmptyBox"
6593
6977
  }
6594
6978
  },
6979
+ {
6980
+ type: "Control",
6981
+ scope: "#/properties/proc",
6982
+ config: {
6983
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6984
+ },
6985
+ options: {
6986
+ widget: "EmptyBox"
6987
+ }
6988
+ },
6595
6989
  {
6596
6990
  type: "Control",
6597
6991
  scope: "#/properties/layout",
@@ -6646,113 +7040,117 @@ const CoreSection = {
6646
7040
  }
6647
7041
  ]
6648
7042
  };
6649
- const EventSection = {
6650
- type: "HorizontalLayout",
6651
- elements: [
6652
- {
6653
- type: "Control",
6654
- scope: "#/properties/events",
6655
- options: {
6656
- widget: "Table"
6657
- },
6658
- config: {
6659
- main: {
6660
- headerIcons: {
6661
- elements: [
6662
- {
6663
- widget: {
6664
- type: "Control",
6665
- scope: "#/properties/New_Record",
6666
- options: {
6667
- widget: "IconButton"
6668
- },
6669
- config: {
6670
- main: {
6671
- color: "info",
6672
- onClick: "eventAddHandler",
6673
- size: "small",
6674
- icon: "AddIcon",
6675
- iconLabel: "Add New",
6676
- styleDefault: true
7043
+ const EventSection = (theme) => {
7044
+ const uiSchema = {
7045
+ type: "HorizontalLayout",
7046
+ elements: [
7047
+ {
7048
+ type: "Control",
7049
+ scope: "#/properties/events",
7050
+ options: {
7051
+ widget: "Table"
7052
+ },
7053
+ config: {
7054
+ main: {
7055
+ headerIcons: {
7056
+ elements: [
7057
+ {
7058
+ widget: {
7059
+ type: "Control",
7060
+ scope: "#/properties/New_Record",
7061
+ options: {
7062
+ widget: "IconButton"
6677
7063
  },
6678
- style: {
6679
- mt: "6px"
7064
+ config: {
7065
+ main: {
7066
+ color: "info",
7067
+ onClick: "eventAddHandler",
7068
+ size: "small",
7069
+ icon: "AddIcon",
7070
+ iconLabel: "Add New",
7071
+ styleDefault: true
7072
+ },
7073
+ style: {
7074
+ mt: "6px"
7075
+ }
6680
7076
  }
6681
7077
  }
6682
7078
  }
6683
- }
6684
- ]
6685
- },
6686
- disableAction: true,
6687
- disableSelection: true,
6688
- enableDrag: true
6689
- }
6690
- },
6691
- elements: [
6692
- {
6693
- accessorKey: "eventType",
6694
- header: "Event Type"
6695
- },
6696
- {
6697
- accessorKey: "Handler",
6698
- header: "Handler"
6699
- },
6700
- {
6701
- accessorKey: "Edit_Approve_Records",
6702
- header: "Edit Widget",
6703
- widget: {
6704
- type: "Control",
6705
- scope: "#/properties/Edit_Records",
6706
- options: {
6707
- widget: "IconButton"
7079
+ ]
6708
7080
  },
6709
- config: {
6710
- main: {
6711
- color: "info",
6712
- size: "small",
6713
- icon: "EditIcon",
6714
- tooltipMessage: "Edit This Record",
6715
- onClick: "eventEditHandler"
7081
+ disableAction: true,
7082
+ disableSelection: true,
7083
+ enableDrag: true
7084
+ }
7085
+ },
7086
+ elements: [
7087
+ {
7088
+ accessorKey: "eventType",
7089
+ header: "Event Type"
7090
+ },
7091
+ {
7092
+ accessorKey: "Handler",
7093
+ header: "Handler"
7094
+ },
7095
+ {
7096
+ accessorKey: "Edit_Approve_Records",
7097
+ header: "Edit Widget",
7098
+ widget: {
7099
+ type: "Control",
7100
+ scope: "#/properties/Edit_Records",
7101
+ options: {
7102
+ widget: "IconButton"
6716
7103
  },
6717
- style: {
6718
- color: "#3949ab"
7104
+ config: {
7105
+ main: {
7106
+ color: "info",
7107
+ size: "small",
7108
+ icon: "EditIcon",
7109
+ tooltipMessage: "Edit This Record",
7110
+ onClick: "eventEditHandler"
7111
+ },
7112
+ style: {
7113
+ color: theme.palette.primary.main
7114
+ }
6719
7115
  }
6720
7116
  }
6721
- }
6722
- },
6723
- {
6724
- accessorKey: "Reject_Records",
6725
- header: "Delete",
6726
- widget: {
6727
- type: "Control",
6728
- scope: "#/properties/RejectButton",
6729
- accessorKeyName: "Reject_Records",
6730
- options: {
6731
- widget: "IconButton"
6732
- },
6733
- config: {
6734
- main: {
6735
- icon: "RejectIcon",
6736
- color: "error",
6737
- tooltipMessage: "Reject This Record",
6738
- onClick: "deleteEvent"
7117
+ },
7118
+ {
7119
+ accessorKey: "Reject_Records",
7120
+ header: "Delete",
7121
+ widget: {
7122
+ type: "Control",
7123
+ scope: "#/properties/RejectButton",
7124
+ accessorKeyName: "Reject_Records",
7125
+ options: {
7126
+ widget: "IconButton"
7127
+ },
7128
+ config: {
7129
+ main: {
7130
+ icon: "RejectIcon",
7131
+ color: "error",
7132
+ tooltipMessage: "Reject This Record",
7133
+ onClick: "deletePopUpEvent"
7134
+ }
6739
7135
  }
6740
7136
  }
6741
7137
  }
6742
- }
6743
- ]
6744
- }
6745
- ]
7138
+ ]
7139
+ }
7140
+ ]
7141
+ };
7142
+ return uiSchema;
6746
7143
  };
6747
- const EmptyBox = {
7144
+ var emptyBox = {
6748
7145
  type: "Control",
6749
- scope: `#/properties/empty`,
7146
+ scope: "#/properties/emptyBox",
6750
7147
  options: {
6751
7148
  widget: "EmptyBox"
6752
7149
  },
6753
7150
  config: {
6754
7151
  layout: { xs: 0, sm: 4, md: 4, lg: 4 },
6755
- main: {}
7152
+ main: {},
7153
+ style: {}
6756
7154
  }
6757
7155
  };
6758
7156
  const cardLayout = {
@@ -6792,7 +7190,7 @@ const cardLayout = {
6792
7190
  }
6793
7191
  }
6794
7192
  },
6795
- EmptyBox
7193
+ emptyBox
6796
7194
  ]
6797
7195
  }
6798
7196
  }
@@ -6801,7 +7199,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6801
7199
  return {
6802
7200
  type: "Control",
6803
7201
  scope: `#/properties/${parentScope}`,
6804
- layout: 11.5,
7202
+ layout: 12,
6805
7203
  options: {
6806
7204
  "elementLabelProp": childScope,
6807
7205
  detail: {
@@ -6820,7 +7218,8 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6820
7218
  }
6821
7219
  }
6822
7220
  },
6823
- EmptyBox
7221
+ emptyBox,
7222
+ emptyBox
6824
7223
  ]
6825
7224
  }
6826
7225
  }
@@ -6840,6 +7239,7 @@ sizeHolder.options.detail.elements[1] = {
6840
7239
  }
6841
7240
  }
6842
7241
  };
7242
+ sizeHolder.options.detail.elements[2] = emptyBox;
6843
7243
  const getInputField = (scope, label) => {
6844
7244
  return {
6845
7245
  type: "Control",
@@ -6871,6 +7271,26 @@ const getRadioInputField = (scope, label, options) => {
6871
7271
  }
6872
7272
  };
6873
7273
  };
7274
+ const buildWrapper = (label, elements) => {
7275
+ return {
7276
+ type: "WrapperLayout",
7277
+ config: {
7278
+ main: {
7279
+ label: label || "Details",
7280
+ isAccordion: true
7281
+ },
7282
+ wrapperStyle: {
7283
+ marginTop: "-6px",
7284
+ marginBottom: "-8px"
7285
+ },
7286
+ componentsBoxStyle: {
7287
+ marginLeft: "24px"
7288
+ },
7289
+ defaultStyle: true
7290
+ },
7291
+ elements: elements || []
7292
+ };
7293
+ };
6874
7294
  const getTextArea = (scope, heading, hideButton, layout) => {
6875
7295
  return {
6876
7296
  type: "Control",
@@ -6927,7 +7347,8 @@ const buildPropertiesSection = function(type) {
6927
7347
  getInputField("linkType", "linkType"),
6928
7348
  getInputField("graphHeight", "Graph Height"),
6929
7349
  getInputField("graphWidth", "Graph Width"),
6930
- getInputField("graphZoomHeight", "Zoom Height")
7350
+ getInputField("graphZoomHeight", "Zoom Height"),
7351
+ emptyBox
6931
7352
  ];
6932
7353
  break;
6933
7354
  case "InputSlider":
@@ -6935,7 +7356,9 @@ const buildPropertiesSection = function(type) {
6935
7356
  getInputField("max", "Max Limit"),
6936
7357
  getInputField("step", "Step"),
6937
7358
  getInputField("min", "Min Limit"),
6938
- getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"])
7359
+ getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
7360
+ emptyBox,
7361
+ emptyBox
6939
7362
  ];
6940
7363
  break;
6941
7364
  case "DataGrid":
@@ -6944,8 +7367,8 @@ const buildPropertiesSection = function(type) {
6944
7367
  getInputField("elevation", "Card Elevation"),
6945
7368
  getInputField("height", "Grid height"),
6946
7369
  getInputField("justifyContent", "justifyContent"),
6947
- EmptyBox,
6948
- EmptyBox,
7370
+ emptyBox,
7371
+ emptyBox,
6949
7372
  cardLayout
6950
7373
  ];
6951
7374
  break;
@@ -6956,6 +7379,7 @@ const buildPropertiesSection = function(type) {
6956
7379
  getInputField("resetText", "Reset Text"),
6957
7380
  getInputField("completeText", "Complete Text"),
6958
7381
  getSelectField("orientation", "Orientation Type"),
7382
+ emptyBox,
6959
7383
  getArrayControl("sectionLabels", "label")
6960
7384
  ];
6961
7385
  break;
@@ -6969,14 +7393,16 @@ const buildPropertiesSection = function(type) {
6969
7393
  case "Text":
6970
7394
  uiSchema.elements = [
6971
7395
  getInputField("placeholder", "Placeholder"),
6972
- EmptyBox,
7396
+ emptyBox,
7397
+ emptyBox,
6973
7398
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
6974
7399
  ];
6975
7400
  break;
6976
7401
  case "TextArea":
6977
7402
  uiSchema.elements = [
6978
7403
  getInputField("placeholder", "Placeholder"),
6979
- EmptyBox
7404
+ emptyBox,
7405
+ emptyBox
6980
7406
  ];
6981
7407
  break;
6982
7408
  case "SpeedoMeter":
@@ -6985,7 +7411,8 @@ const buildPropertiesSection = function(type) {
6985
7411
  getInputField("heading", "Container Heading"),
6986
7412
  getInputField("heading", "Container Heading"),
6987
7413
  getInputField("speedoCaption", "Speedometer Caption"),
6988
- getInputField("width", "Speedometer Width")
7414
+ getInputField("width", "Speedometer Width"),
7415
+ emptyBox
6989
7416
  ];
6990
7417
  break;
6991
7418
  case "RankCard":
@@ -6993,7 +7420,9 @@ const buildPropertiesSection = function(type) {
6993
7420
  getInputField("rank", "Rank"),
6994
7421
  getInputField("image", "Image Url"),
6995
7422
  getInputField("title", "Card Title"),
6996
- getInputField("description", "Card Description")
7423
+ getInputField("description", "Card Description"),
7424
+ emptyBox,
7425
+ emptyBox
6997
7426
  ];
6998
7427
  break;
6999
7428
  case "LeaderBoard":
@@ -7002,6 +7431,8 @@ const buildPropertiesSection = function(type) {
7002
7431
  getInputField("firstImage", "First Image url"),
7003
7432
  getInputField("secondImage", "Second Image url"),
7004
7433
  getInputField("thirdImage", "Third Image url"),
7434
+ emptyBox,
7435
+ emptyBox,
7005
7436
  getTextArea("functionCode", "Write Compare Code", false)
7006
7437
  ];
7007
7438
  break;
@@ -7017,7 +7448,9 @@ const buildPropertiesSection = function(type) {
7017
7448
  getInputField("heading", "Heading"),
7018
7449
  getInputField("bottomLabel_1", "First BottomLabel"),
7019
7450
  getInputField("bottomLabel_2", "Second BottomLabel"),
7020
- getInputField("bottomLabel_3", "Third BottomLabel")
7451
+ getInputField("bottomLabel_3", "Third BottomLabel"),
7452
+ emptyBox,
7453
+ emptyBox
7021
7454
  ];
7022
7455
  break;
7023
7456
  case "card":
@@ -7025,7 +7458,7 @@ const buildPropertiesSection = function(type) {
7025
7458
  getInputField("url", "Image Url"),
7026
7459
  getInputField("label", "Label"),
7027
7460
  getInputField("description", "Description"),
7028
- EmptyBox
7461
+ emptyBox
7029
7462
  ];
7030
7463
  break;
7031
7464
  case "Button":
@@ -7035,7 +7468,7 @@ const buildPropertiesSection = function(type) {
7035
7468
  getSelectField("color", "Color"),
7036
7469
  getInputField("tooltipMessage", "Tooltip Message"),
7037
7470
  getSelectField("defaultStyle", "Default Style"),
7038
- EmptyBox
7471
+ emptyBox
7039
7472
  ];
7040
7473
  break;
7041
7474
  case "Graph":
@@ -7048,6 +7481,7 @@ const buildPropertiesSection = function(type) {
7048
7481
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7049
7482
  getInputField("yAxisValue", "Y-AxisValue"),
7050
7483
  getInputField("xAxisValue", "X-AxisValue"),
7484
+ emptyBox,
7051
7485
  getArrayControl("legendLabels", "label"),
7052
7486
  getArrayControl("pieArcColors", "color")
7053
7487
  ];
@@ -7057,13 +7491,16 @@ const buildPropertiesSection = function(type) {
7057
7491
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7058
7492
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7059
7493
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
7060
- getInputField("rowSpacing", "Row Spacing")
7494
+ getInputField("rowSpacing", "Row Spacing"),
7495
+ emptyBox,
7496
+ emptyBox
7061
7497
  ];
7062
7498
  break;
7063
7499
  case "TabSection":
7064
7500
  uiSchema.elements = [
7065
7501
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7066
7502
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7503
+ emptyBox,
7067
7504
  getArrayControl("sectionLabels", "label")
7068
7505
  ];
7069
7506
  break;
@@ -7071,11 +7508,20 @@ const buildPropertiesSection = function(type) {
7071
7508
  case "LazyLoadingTable":
7072
7509
  uiSchema.elements = [
7073
7510
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7074
- getRadioInputField("SelectionAvailable", "Selection Available", ["YES", "NO"]),
7075
- getRadioInputField("ColumnResizingAvailable", "ColumnResizing Available", ["YES", "NO"]),
7076
- getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
7511
+ getRadioInputField("SelectionAvailable", "Row Selection", ["YES", "NO"]),
7512
+ getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
7513
+ getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
7077
7514
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
7078
7515
  getInputField("selectKey", "Selection Key"),
7516
+ emptyBox,
7517
+ buildWrapper("Tree Table Properties", [
7518
+ getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7519
+ getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
7520
+ getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
7521
+ getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
7522
+ emptyBox,
7523
+ emptyBox
7524
+ ]),
7079
7525
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
7080
7526
  sizeHolder
7081
7527
  ];
@@ -7088,13 +7534,15 @@ const buildPropertiesSection = function(type) {
7088
7534
  case "Select":
7089
7535
  uiSchema.elements = [
7090
7536
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7091
- getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
7537
+ getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7538
+ emptyBox
7092
7539
  ];
7093
7540
  break;
7094
7541
  case "MultipleSelect":
7095
7542
  uiSchema.elements = [
7096
7543
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7097
- EmptyBox
7544
+ emptyBox,
7545
+ emptyBox
7098
7546
  ];
7099
7547
  break;
7100
7548
  }
@@ -7135,100 +7583,106 @@ const StyleSection = {
7135
7583
  }
7136
7584
  ]
7137
7585
  };
7138
- const TableSection = {
7139
- type: "HorizontalLayout",
7140
- elements: [
7141
- {
7142
- type: "Control",
7143
- scope: "#/properties/elements",
7144
- options: {
7145
- widget: "Table"
7146
- },
7147
- config: {
7148
- main: {
7149
- headerIcons: {
7150
- elements: [
7151
- {
7152
- widget: {
7153
- type: "Control",
7154
- scope: "#/properties/New_Record",
7155
- options: {
7156
- widget: "IconButton"
7157
- },
7158
- config: {
7159
- main: {
7160
- color: "info",
7161
- onClick: "widgetAddClickHandler",
7162
- size: "small",
7163
- icon: "AddIcon",
7164
- iconLabel: "Add New",
7165
- styleDefault: true
7586
+ const TableSection = (theme) => {
7587
+ const uiSchema = {
7588
+ type: "HorizontalLayout",
7589
+ elements: [
7590
+ {
7591
+ type: "Control",
7592
+ scope: "#/properties/elements",
7593
+ options: {
7594
+ widget: "Table"
7595
+ },
7596
+ config: {
7597
+ main: {
7598
+ headerIcons: {
7599
+ elements: [
7600
+ {
7601
+ widget: {
7602
+ type: "Control",
7603
+ scope: "#/properties/New_Record",
7604
+ options: {
7605
+ widget: "IconButton"
7166
7606
  },
7167
- style: {
7168
- mt: "6px"
7607
+ config: {
7608
+ main: {
7609
+ color: "info",
7610
+ onClick: "widgetAddClickHandler",
7611
+ size: "small",
7612
+ icon: "AddIcon",
7613
+ iconLabel: "Add New",
7614
+ styleDefault: true
7615
+ },
7616
+ style: {
7617
+ mt: "6px"
7618
+ }
7169
7619
  }
7170
7620
  }
7171
7621
  }
7172
- }
7173
- ]
7174
- },
7175
- disableAction: true,
7176
- disableSelection: true,
7177
- enableDrag: true
7178
- }
7179
- },
7180
- elements: [
7181
- {
7182
- accessorKey: "name",
7183
- header: "Name"
7184
- },
7185
- {
7186
- accessorKey: "type",
7187
- header: "Type"
7188
- },
7189
- {
7190
- header: "Edit Record",
7191
- field: "Reject_Records",
7192
- flex: 1,
7193
- widget: {
7194
- type: "Control",
7195
- scope: "#/properties/RejectButton",
7196
- options: {
7197
- widget: "IconButton"
7622
+ ]
7198
7623
  },
7199
- config: {
7200
- main: {
7201
- icon: "EditIcon",
7202
- color: "primary",
7203
- onClick: "editComponents",
7204
- tooltipMessage: "Reject This Record"
7205
- }
7206
- }
7624
+ disableAction: true,
7625
+ disableSelection: true,
7626
+ enableDrag: true
7207
7627
  }
7208
7628
  },
7209
- {
7210
- header: "Delete",
7211
- field: "Reject_Records",
7212
- flex: 1,
7213
- widget: {
7214
- type: "Control",
7215
- scope: "#/properties/RejectButton",
7216
- options: {
7217
- widget: "IconButton"
7218
- },
7219
- config: {
7220
- main: {
7221
- icon: "RejectIcon",
7222
- color: "error",
7223
- onClick: "deleteComponent",
7224
- tooltipMessage: "Reject This Record"
7629
+ elements: [
7630
+ {
7631
+ accessorKey: "name",
7632
+ header: "Name"
7633
+ },
7634
+ {
7635
+ accessorKey: "type",
7636
+ header: "Type"
7637
+ },
7638
+ {
7639
+ header: "Edit Record",
7640
+ field: "Reject_Records",
7641
+ flex: 1,
7642
+ widget: {
7643
+ type: "Control",
7644
+ scope: "#/properties/RejectButton",
7645
+ options: {
7646
+ widget: "IconButton"
7647
+ },
7648
+ config: {
7649
+ main: {
7650
+ icon: "EditIcon",
7651
+ color: "primary",
7652
+ onClick: "editComponents",
7653
+ tooltipMessage: "Reject This Record"
7654
+ },
7655
+ style: {
7656
+ color: theme.palette.primary.main
7657
+ }
7658
+ }
7659
+ }
7660
+ },
7661
+ {
7662
+ header: "Delete",
7663
+ field: "Reject_Records",
7664
+ flex: 1,
7665
+ widget: {
7666
+ type: "Control",
7667
+ scope: "#/properties/RejectButton",
7668
+ options: {
7669
+ widget: "IconButton"
7670
+ },
7671
+ config: {
7672
+ main: {
7673
+ icon: "RejectIcon",
7674
+ color: "error",
7675
+ onClick: "deletePopUpComponent",
7676
+ tooltipMessage: "Reject This Record"
7677
+ }
7225
7678
  }
7226
7679
  }
7227
7680
  }
7228
- }
7229
- ]
7230
- }
7231
- ]
7681
+ ]
7682
+ }
7683
+ ]
7684
+ };
7685
+ return uiSchema;
7232
7686
  };
7233
7687
  const ValueTab = {
7234
7688
  type: "HorizontalLayout",
@@ -7362,10 +7816,10 @@ var buildConfig = (FormData) => {
7362
7816
  const createLayoutFormat = (config) => {
7363
7817
  if (_.isEmpty(config)) {
7364
7818
  return {
7365
- xs: 11,
7366
- sm: 11,
7367
- md: 5.5,
7368
- lg: 5.5
7819
+ xs: 12,
7820
+ sm: 12,
7821
+ md: 12,
7822
+ lg: 12
7369
7823
  };
7370
7824
  }
7371
7825
  let data = {};
@@ -7374,7 +7828,7 @@ const createLayoutFormat = (config) => {
7374
7828
  });
7375
7829
  return data;
7376
7830
  };
7377
- const flatObjectValueInArray = (config) => {
7831
+ const flatObjectValueInArray = (config = []) => {
7378
7832
  if (config[0].length < 1) {
7379
7833
  return;
7380
7834
  }
@@ -7468,7 +7922,6 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
7468
7922
  function okHandler(store2) {
7469
7923
  var _a;
7470
7924
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7471
- console.log(store2.ctx.core.errors);
7472
7925
  if (_.isEmpty(store2.ctx.core.errors)) {
7473
7926
  saveFormdataInLocalStorage(store2.ctx.core.data, path);
7474
7927
  store2.navigate(-1);
@@ -7523,14 +7976,14 @@ const refreshPage = (type, store2) => {
7523
7976
  Core: CoreSection,
7524
7977
  Value: ValueTab,
7525
7978
  Style: StyleSection,
7526
- Event: EventSection,
7527
- Components: TableSection,
7979
+ Event: EventSection(store2.theme.myTheme),
7980
+ Components: TableSection(store2.theme.myTheme),
7528
7981
  Properties: buildPropertiesSection(type),
7529
7982
  Validation: ValidationSection
7530
7983
  };
7531
7984
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
7532
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
7533
- UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7985
+ UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
7986
+ UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
7534
7987
  }
7535
7988
  store2.setUiSchema(UiSchema);
7536
7989
  };
@@ -7576,22 +8029,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7576
8029
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7577
8030
  }
7578
8031
  },
7579
- deleteComponents: function() {
8032
+ deleteComponents: function(shouldUpdateDialog = true) {
7580
8033
  var _a;
7581
8034
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7582
- const rowId = dynamicData2.path.split(".")[1];
8035
+ const rowId = localStorage.getItem("rowId");
7583
8036
  store2.formData.elements.splice(rowId, 1);
7584
8037
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7585
8038
  const data = path ? _.get(response, path) : response;
7586
8039
  store2.setFormdata(data);
8040
+ if (shouldUpdateDialog) {
8041
+ store2.updateDialog("popUpComponentSection");
8042
+ }
8043
+ localStorage.removeItem("rowId");
7587
8044
  },
7588
- deleteEvent: function() {
8045
+ deleteEvent: function(shouldUpdateDialog = true) {
7589
8046
  var _a;
7590
8047
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7591
- const rowId = dynamicData2.path.split(".")[1];
8048
+ const rowId = localStorage.getItem("rowId");
7592
8049
  store2.formData.events.splice(rowId, 1);
7593
8050
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7594
8051
  store2.setFormdata(_.get(response, path));
8052
+ if (shouldUpdateDialog) {
8053
+ store2.updateDialog("popUpEventSection");
8054
+ }
8055
+ localStorage.removeItem("rowId");
7595
8056
  },
7596
8057
  widgetAddClickHandler: function() {
7597
8058
  var _a;
@@ -7627,6 +8088,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7627
8088
  },
7628
8089
  backHandler: function() {
7629
8090
  store2.navigate(-1);
8091
+ },
8092
+ deletePopUpComponent: function() {
8093
+ const rowId = dynamicData2.path.split(".")[1];
8094
+ localStorage.setItem("rowId", rowId);
8095
+ store2.updateDialog("popUpComponentSection");
8096
+ },
8097
+ deletePopUpEvent: function() {
8098
+ const rowId = dynamicData2.path.split(".")[1];
8099
+ localStorage.setItem("rowId", rowId);
8100
+ store2.updateDialog("popUpEventSection");
7630
8101
  }
7631
8102
  };
7632
8103
  };
@@ -7681,7 +8152,10 @@ var pageMaster = (funcParams) => {
7681
8152
  },
7682
8153
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7683
8154
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7684
- Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
8155
+ Delete_Components: async function() {
8156
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
8157
+ store2.updateDialog("popUpPageMasterComponent");
8158
+ },
7685
8159
  eventAddHandler: function() {
7686
8160
  var _a;
7687
8161
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -7701,10 +8175,22 @@ var pageMaster = (funcParams) => {
7701
8175
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7702
8176
  },
7703
8177
  deleteEvent: function() {
7704
- const rowId = dynamicData2.path.split(".")[1];
8178
+ const rowId = localStorage.getItem("rowId");
7705
8179
  store2.formData.events.splice(rowId, 1);
7706
8180
  const response = saveFormdataInLocalStorage(store2.ctx.core.data);
7707
8181
  store2.setFormdata(response);
8182
+ store2.updateDialog("popUpPageMasterEvent");
8183
+ localStorage.removeItem("rowId");
8184
+ },
8185
+ deletePopUpComponent: function() {
8186
+ const rowId = dynamicData2.path.split(".")[1];
8187
+ localStorage.setItem("rowId", rowId);
8188
+ store2.updateDialog("popUpPageMasterComponent");
8189
+ },
8190
+ deletePopUpEvent: function() {
8191
+ const rowId = dynamicData2.path.split(".")[1];
8192
+ localStorage.setItem("rowId", rowId);
8193
+ store2.updateDialog("popUpPageMasterEvent");
7708
8194
  }
7709
8195
  };
7710
8196
  };
@@ -7758,6 +8244,7 @@ const EventSchema = {
7758
8244
  { title: "File Upload Event", const: "onUpload" },
7759
8245
  { title: "Back Event", const: "onBack" },
7760
8246
  { title: "Next Event", const: "onNext" },
8247
+ { title: "onRowMovement", const: "onRowMovement" },
7761
8248
  { title: "File Download Event", const: "onDownload" },
7762
8249
  { title: "Fail", const: "Fail" }
7763
8250
  ]
@@ -7802,6 +8289,25 @@ const EventUiSchema = (theme) => {
7802
8289
  type: "HorizontalLayout",
7803
8290
  heading: "Component",
7804
8291
  elements: [
8292
+ {
8293
+ type: "Control",
8294
+ scope: "#/properties/pageName",
8295
+ options: {
8296
+ widget: "Box"
8297
+ },
8298
+ config: {
8299
+ layout: 12,
8300
+ main: {
8301
+ heading: " "
8302
+ },
8303
+ style: {
8304
+ marginLeft: theme.spacing(3),
8305
+ width: "auto",
8306
+ fontSize: "12px",
8307
+ color: "gray"
8308
+ }
8309
+ }
8310
+ },
7805
8311
  {
7806
8312
  type: "TabLayout",
7807
8313
  config: {
@@ -7907,7 +8413,7 @@ const EventUiSchema = (theme) => {
7907
8413
  onClick: "editEvent"
7908
8414
  },
7909
8415
  style: {
7910
- color: "#3949ab"
8416
+ color: theme.palette.primary.main
7911
8417
  }
7912
8418
  }
7913
8419
  }
@@ -7926,7 +8432,7 @@ const EventUiSchema = (theme) => {
7926
8432
  icon: "RejectIcon",
7927
8433
  color: "error",
7928
8434
  tooltipMessage: "Reject This Record",
7929
- onClick: "deleteEvent"
8435
+ onClick: "deletePopUpEvent"
7930
8436
  }
7931
8437
  }
7932
8438
  }
@@ -7997,6 +8503,100 @@ const EventUiSchema = (theme) => {
7997
8503
  }
7998
8504
  }
7999
8505
  },
8506
+ {
8507
+ type: "Control",
8508
+ scope: "#/properties/popUpEvent",
8509
+ options: {
8510
+ widget: "PopUp"
8511
+ },
8512
+ config: {
8513
+ layout: {
8514
+ xs: 12,
8515
+ sm: 12,
8516
+ md: 6,
8517
+ lg: 6
8518
+ },
8519
+ main: {},
8520
+ style: {
8521
+ "& .MuiPaper-root": {
8522
+ width: "30%"
8523
+ },
8524
+ "& .MuiTypography-root": {
8525
+ padding: 0
8526
+ },
8527
+ wrapperStyle: {
8528
+ width: { xs: "100%", sm: "100%", md: "98%" }
8529
+ }
8530
+ }
8531
+ },
8532
+ elements: [
8533
+ {
8534
+ type: "Control",
8535
+ scope: "#/properties/label",
8536
+ options: {
8537
+ widget: "Box"
8538
+ },
8539
+ config: {
8540
+ layout: 12,
8541
+ main: {
8542
+ heading: "Are you sure you want to delete ?"
8543
+ },
8544
+ style: {
8545
+ marginTop: "-40px"
8546
+ }
8547
+ }
8548
+ },
8549
+ {
8550
+ type: "Control",
8551
+ scope: "#/properties/EmptyBox",
8552
+ options: {
8553
+ widget: "EmptyBox"
8554
+ },
8555
+ config: {
8556
+ main: {},
8557
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
8558
+ }
8559
+ },
8560
+ {
8561
+ type: "Control",
8562
+ scope: "#/properties/ConfirmDeleteEventButton",
8563
+ options: {
8564
+ widget: "Button"
8565
+ },
8566
+ config: {
8567
+ layout: 3,
8568
+ main: {
8569
+ name: "Yes",
8570
+ startIcon: "ApproveIcon",
8571
+ variant: "contained",
8572
+ color: "error",
8573
+ type: "text",
8574
+ onClick: "deleteEvent",
8575
+ size: "small"
8576
+ }
8577
+ }
8578
+ },
8579
+ {
8580
+ type: "Control",
8581
+ scope: "#/properties/CancelDeleteEventButton",
8582
+ options: {
8583
+ widget: "Button"
8584
+ },
8585
+ config: {
8586
+ layout: 3,
8587
+ main: {
8588
+ name: "No",
8589
+ startIcon: "ApproveIcon",
8590
+ variant: "contained",
8591
+ color: "info",
8592
+ type: "text",
8593
+ onClick: "deletePopUpEvent",
8594
+ size: "small"
8595
+ }
8596
+ }
8597
+ }
8598
+ ]
8599
+ },
8000
8600
  {
8001
8601
  type: "Control",
8002
8602
  scope: "#/properties/notify",
@@ -8317,18 +8917,6 @@ const refreshSectionUiSchema = {
8317
8917
  }
8318
8918
  ]
8319
8919
  };
8320
- var emptyBox = {
8321
- type: "Control",
8322
- scope: "#/properties/emptyBox",
8323
- options: {
8324
- widget: "EmptyBox"
8325
- },
8326
- config: {
8327
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8328
- main: {},
8329
- style: {}
8330
- }
8331
- };
8332
8920
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8333
8921
  return {
8334
8922
  setPage: async function() {
@@ -8343,20 +8931,20 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8343
8931
  const schema2 = _.cloneDeep(EventSchema);
8344
8932
  if (handlerType) {
8345
8933
  if (handlerType === "custom") {
8346
- uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8347
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8934
+ uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8935
+ uiSchema.elements[1].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8348
8936
  schema2.required = ["eventType", "Handler", "eventCode"];
8349
8937
  } else if (handlerType === "api") {
8350
- uiSchema.elements[0].elements[0].elements[2] = emptyBox;
8351
- uiSchema.elements[0].elements[0].elements[3] = APISection;
8938
+ uiSchema.elements[1].elements[0].elements[2] = emptyBox;
8939
+ uiSchema.elements[1].elements[0].elements[3] = APISection;
8352
8940
  schema2.required = ["eventType", "Handler", "method", "path"];
8353
8941
  } else if (handlerType === "inBuiltFunction") {
8354
- uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8355
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
8942
+ uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8943
+ uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
8356
8944
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8357
8945
  } else if (handlerType === "refresh") {
8358
- uiSchema.elements[0].elements[0].elements[2] = emptyBox;
8359
- uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
8946
+ uiSchema.elements[1].elements[0].elements[2] = emptyBox;
8947
+ uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
8360
8948
  schema2.properties.refreshElements.required = ["value"];
8361
8949
  schema2.properties.refreshElements.items.required = ["value"];
8362
8950
  schema2.required = ["eventType", "Handler", "refreshElements"];
@@ -8408,9 +8996,17 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8408
8996
  store2.setSearchParams(store2.searchParams);
8409
8997
  this.setPage();
8410
8998
  },
8411
- deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
8999
+ deleteEvent: async function() {
9000
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9001
+ store2.updateDialog("popUpEvent");
9002
+ },
8412
9003
  backHandler: function() {
8413
9004
  store2.navigate(-1);
9005
+ },
9006
+ deletePopUpEvent: function() {
9007
+ const rowId = dynamicData2.path.split(".")[1];
9008
+ localStorage.setItem("rowId", rowId);
9009
+ store2.updateDialog("popUpEvent");
8414
9010
  }
8415
9011
  };
8416
9012
  };
@@ -8532,7 +9128,6 @@ function getRefreshElements(eventConfig, eventGropus) {
8532
9128
  result.push(result[0]);
8533
9129
  }
8534
9130
  }
8535
- console.log(result);
8536
9131
  return result;
8537
9132
  }
8538
9133
  async function executeRefreshHandler(params2) {
@@ -8583,16 +9178,15 @@ function executeCustomHandler(params) {
8583
9178
  }
8584
9179
  }
8585
9180
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder2) {
8586
- var _a;
8587
9181
  if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
8588
9182
  store2.setSchema((pre) => {
8589
- var _a2;
9183
+ var _a;
8590
9184
  return {
8591
9185
  ...pre,
8592
9186
  properties: {
8593
9187
  ...pre.properties,
8594
9188
  [componentName]: {
8595
- ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9189
+ ...(_a = pre.properties) == null ? void 0 : _a[componentName],
8596
9190
  oneOf: handlerResponse.data
8597
9191
  }
8598
9192
  }
@@ -8600,13 +9194,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
8600
9194
  });
8601
9195
  } else if (eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
8602
9196
  store2.setSchema((pre) => {
8603
- var _a2;
9197
+ var _a;
8604
9198
  return {
8605
9199
  ...pre,
8606
9200
  properties: {
8607
9201
  ...pre.properties,
8608
9202
  [componentName]: {
8609
- ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9203
+ ...(_a = pre.properties) == null ? void 0 : _a[componentName],
8610
9204
  type: "array",
8611
9205
  items: {
8612
9206
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -8627,24 +9221,32 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
8627
9221
  }
8628
9222
  } else {
8629
9223
  if (handlerResponse) {
8630
- formDataHolder2[componentName] = eventConfig.lazyLoading ? (_a = handlerResponse == null ? void 0 : handlerResponse.data) == null ? void 0 : _a.data : handlerResponse.data;
9224
+ formDataHolder2[componentName] = handlerResponse.data;
8631
9225
  store2.setFormdata((pre) => {
8632
9226
  return { ...pre, ...formDataHolder2 };
8633
9227
  });
8634
9228
  }
8635
9229
  }
8636
9230
  }
8637
- const buildBodyFormat = (body2, formData, userValue2) => {
9231
+ const buildBodyFormat = (body2, formData, userValue2, store2) => {
8638
9232
  let finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
8639
9233
  body2.map((elem) => {
8640
- var _a, _b;
9234
+ var _a, _b, _c, _d, _e;
8641
9235
  if (typeof (elem == null ? void 0 : elem.value) !== "string") {
8642
9236
  finalBody[elem.key] = elem.value;
8643
9237
  } else {
8644
9238
  if ((_a = elem == null ? void 0 : elem.value) == null ? void 0 : _a.startsWith("$userValue")) {
8645
9239
  const finalpath = elem.value.substring(11);
8646
9240
  finalBody[elem.key] = _.get(userValue2, finalpath);
8647
- } else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
9241
+ } else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$urlParams")) {
9242
+ const finalpath = elem.value.substring(11);
9243
+ const value = (_c = store2 == null ? void 0 : store2.searchParams) == null ? void 0 : _c.get(finalpath);
9244
+ finalBody[elem.key] = value;
9245
+ } else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
9246
+ const finalpath = elem.value.substring(7);
9247
+ const value = JSON.parse(localStorage.getItem(finalpath) || '""');
9248
+ finalBody[elem.key] = value;
9249
+ } else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
8648
9250
  const finalpath = elem.value.substring(1);
8649
9251
  finalBody[elem.key] = _.get(formData, finalpath);
8650
9252
  } else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
@@ -8692,7 +9294,7 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
8692
9294
  headers = buildHeadersFormat(compConfig.headers);
8693
9295
  }
8694
9296
  if (compConfig.body) {
8695
- body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue) };
9297
+ body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue, store) };
8696
9298
  }
8697
9299
  const promiseChain = { body, headers };
8698
9300
  if (compConfig.apiBody) {
@@ -8773,7 +9375,7 @@ var service = (funcParams) => {
8773
9375
  };
8774
9376
  return {
8775
9377
  setPage: async function() {
8776
- var _a;
9378
+ var _a, _b, _c, _d;
8777
9379
  funcParams.store.setFormdata({});
8778
9380
  funcParams.store.newData = {};
8779
9381
  const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
@@ -8789,7 +9391,116 @@ var service = (funcParams) => {
8789
9391
  }
8790
9392
  const config = pageData == null ? void 0 : pageData.config;
8791
9393
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
8792
- const schema2 = (_a = pageData == null ? void 0 : pageData.schema) != null ? _a : { type: "object", properties: {} };
9394
+ const event2 = new CustomEvent("pageNameChanged", {
9395
+ detail: { pageName: config.label }
9396
+ });
9397
+ window.dispatchEvent(event2);
9398
+ const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
9399
+ uiSchema.elements.push(
9400
+ {
9401
+ type: "HorizontalLayout",
9402
+ config: {
9403
+ main: {
9404
+ direction: "row"
9405
+ },
9406
+ style: {
9407
+ flexDirection: "row",
9408
+ position: "absolute",
9409
+ bottom: 0,
9410
+ marginBottom: "-8px",
9411
+ height: "fit-content",
9412
+ overflow: "hidden",
9413
+ zIndex: 1e3,
9414
+ width: "inherit"
9415
+ }
9416
+ },
9417
+ elements: [
9418
+ {
9419
+ type: "Control",
9420
+ scope: "#/properties/FooterText",
9421
+ options: {
9422
+ widget: "Box"
9423
+ },
9424
+ config: {
9425
+ main: {
9426
+ heading: "Copywriter@ACT21.IO"
9427
+ },
9428
+ style: {
9429
+ color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
9430
+ fontSize: "12px",
9431
+ textAlign: "center",
9432
+ lineHeight: 1,
9433
+ width: "fit-content",
9434
+ left: "50%",
9435
+ position: "relative",
9436
+ margin: 0,
9437
+ flexGrow: 1,
9438
+ height: 0
9439
+ }
9440
+ }
9441
+ },
9442
+ {
9443
+ type: "Control",
9444
+ scope: "#/properties/backIcon",
9445
+ options: {
9446
+ widget: "Box"
9447
+ },
9448
+ config: {
9449
+ main: {
9450
+ iconName: "PrevIcon",
9451
+ onClick: "backHandler",
9452
+ width: "fit-content"
9453
+ },
9454
+ style: {
9455
+ fill: theme.palette.primary.main,
9456
+ width: 20,
9457
+ height: 0,
9458
+ margin: 0,
9459
+ top: 0,
9460
+ right: "82px",
9461
+ position: "absolute",
9462
+ fontSize: "12px",
9463
+ cursor: "pointer",
9464
+ ":hover": {
9465
+ fill: theme.palette.primary.dark
9466
+ }
9467
+ }
9468
+ }
9469
+ },
9470
+ {
9471
+ type: "Control",
9472
+ scope: "#/properties/text",
9473
+ options: {
9474
+ widget: "Box"
9475
+ },
9476
+ config: {
9477
+ main: {
9478
+ heading: "Previous Page",
9479
+ onClick: "backHandler"
9480
+ },
9481
+ style: {
9482
+ textAlign: "left",
9483
+ lineHeight: 1,
9484
+ height: 0,
9485
+ width: "fit-content",
9486
+ color: theme.palette.primary.main,
9487
+ fontSize: "12px",
9488
+ cursor: "pointer",
9489
+ marginLeft: "2px",
9490
+ marginRight: 0,
9491
+ top: 3,
9492
+ right: "12px",
9493
+ position: "absolute",
9494
+ ":hover": {
9495
+ color: theme.palette.primary.dark
9496
+ }
9497
+ }
9498
+ }
9499
+ }
9500
+ ]
9501
+ }
9502
+ );
9503
+ const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
8793
9504
  eventGroups = {};
8794
9505
  eventGroups = extractEvents(config);
8795
9506
  executeEventsParameters = {
@@ -8801,7 +9512,8 @@ var service = (funcParams) => {
8801
9512
  service: funcParams.service,
8802
9513
  functionsProvider: funcParams.functionsProvider,
8803
9514
  serviceHolder: this,
8804
- eventGroups
9515
+ eventGroups,
9516
+ formDataHolder
8805
9517
  };
8806
9518
  await executeRefreshHandler({
8807
9519
  config: {},
@@ -8814,8 +9526,6 @@ var service = (funcParams) => {
8814
9526
  eventGroups,
8815
9527
  formDataHolder
8816
9528
  });
8817
- const jsonres = await fetch("https://jsonplaceholder.typicode.com/todos/1");
8818
- await jsonres.json();
8819
9529
  funcParams.store.setSchema(
8820
9530
  (pre) => {
8821
9531
  return {
@@ -8859,6 +9569,16 @@ var service = (funcParams) => {
8859
9569
  backHandler: function() {
8860
9570
  funcParams.store.navigate(-1);
8861
9571
  },
9572
+ onRowMovement: async function(paginationValues) {
9573
+ const apiBody = [
9574
+ { key: "direction", value: paginationValues.rowMovement.direction },
9575
+ { key: "movedRowId", value: paginationValues.rowMovement.movedRowId },
9576
+ { key: "targetRowId", value: paginationValues.rowMovement.targetRowId || [] }
9577
+ ];
9578
+ await this.callExecuteEvents({ path: paginationValues == null ? void 0 : paginationValues.path }, apiBody, "onRowMovement");
9579
+ const response = await this.callExecuteEvents({ path: paginationValues == null ? void 0 : paginationValues.path }, apiBody, "onLoad");
9580
+ return response == null ? void 0 : response.data;
9581
+ },
8862
9582
  onPaginationChange: async function(paginationValues) {
8863
9583
  var _a;
8864
9584
  const apiBody = [
@@ -8868,7 +9588,7 @@ var service = (funcParams) => {
8868
9588
  { key: "filters", value: paginationValues.columnFilters || [] },
8869
9589
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
8870
9590
  ];
8871
- const response = await this.updateConfigApiBody(paginationValues, apiBody);
9591
+ const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
8872
9592
  return response == null ? void 0 : response.data;
8873
9593
  },
8874
9594
  getSelectOptions: async function(param) {
@@ -8877,7 +9597,7 @@ var service = (funcParams) => {
8877
9597
  { key: "searchValue", value: param.serachValue },
8878
9598
  { key: "currentValue", value: param.currentValue }
8879
9599
  ];
8880
- const response = await this.updateConfigApiBody(param, apiBody);
9600
+ const response = await this.callExecuteEvents(param, apiBody);
8881
9601
  return response == null ? void 0 : response.data;
8882
9602
  }
8883
9603
  },
@@ -8898,10 +9618,10 @@ var service = (funcParams) => {
8898
9618
  }));
8899
9619
  }
8900
9620
  },
8901
- updateConfigApiBody: async function(paramValue, apiBody) {
8902
- var _a;
9621
+ callExecuteEvents: async function(paramValue, apiBody, eventType) {
9622
+ var _a, _b;
8903
9623
  let LastCallResponse = void 0;
8904
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onLoad[paramValue.path]) {
9624
+ for (const eventConfig of (_a = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _a[paramValue.path]) {
8905
9625
  if (eventConfig.body) {
8906
9626
  eventConfig.body = [
8907
9627
  ...eventConfig.body,
@@ -8910,7 +9630,7 @@ var service = (funcParams) => {
8910
9630
  } else {
8911
9631
  eventConfig.body = apiBody;
8912
9632
  }
8913
- const responseEvent = (_a = eventConfig == null ? void 0 : eventConfig.events) == null ? void 0 : _a.filter((elem) => {
9633
+ const responseEvent = (_b = eventConfig == null ? void 0 : eventConfig.events) == null ? void 0 : _b.filter((elem) => {
8914
9634
  return elem.Handler !== "mergeFormdata";
8915
9635
  });
8916
9636
  eventConfig.events = responseEvent != null ? responseEvent : [];
@@ -8948,7 +9668,6 @@ var service = (funcParams) => {
8948
9668
  },
8949
9669
  callHandler: async function(eventType, functionParameters) {
8950
9670
  var _a, _b, _c;
8951
- formDataHolder = {};
8952
9671
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8953
9672
  if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
8954
9673
  Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
@@ -8975,12 +9694,15 @@ var leaderBoard = {
8975
9694
  label: "LeaderBoard",
8976
9695
  divider: true
8977
9696
  },
8978
- style: { wrapperStyle: {
8979
- height: { xs: 850, sm: 1e3 }
8980
- } },
9697
+ style: {},
8981
9698
  wrapperStyle: {
8982
9699
  position: "relative",
8983
9700
  width: "100%"
9701
+ },
9702
+ componentsBoxStyle: {
9703
+ display: "flex",
9704
+ flexDirection: "column",
9705
+ gap: "20px"
8984
9706
  }
8985
9707
  },
8986
9708
  elements: [
@@ -8991,21 +9713,23 @@ var leaderBoard = {
8991
9713
  main: {
8992
9714
  url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
8993
9715
  },
8994
- containerStyle: {
8995
- objectFit: "cover",
8996
- position: "absolute",
8997
- top: { xs: "90px", "md": "60px" },
8998
- left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
8999
- width: { "xs": "100px", "sm": "100px", "md": "200px" },
9000
- border: "5px solid rgb(179, 198, 255)",
9001
- height: { "xs": "100px", "sm": "100px", "md": "200px" },
9002
- borderRadius: "50%"
9003
- },
9004
9716
  style: {
9005
- objectFit: "cover",
9006
- width: "100%",
9007
- height: "100%",
9008
- borderRadius: "50%"
9717
+ imageStyle: {
9718
+ objectFit: "cover",
9719
+ width: "100%",
9720
+ height: "100%",
9721
+ borderRadius: "50%"
9722
+ },
9723
+ containerStyle: {
9724
+ objectFit: "cover",
9725
+ position: "absolute",
9726
+ top: { xs: "90px", "md": "60px" },
9727
+ left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
9728
+ width: { "xs": "100px", "sm": "100px", "md": "200px" },
9729
+ border: "5px solid rgb(179, 198, 255)",
9730
+ height: { "xs": "100px", "sm": "100px", "md": "200px" },
9731
+ borderRadius: "50%"
9732
+ }
9009
9733
  },
9010
9734
  layout: 6
9011
9735
  },
@@ -9020,21 +9744,23 @@ var leaderBoard = {
9020
9744
  main: {
9021
9745
  url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9022
9746
  },
9023
- containerStyle: {
9024
- objectFit: "cover",
9025
- position: "absolute",
9026
- top: { xs: "160px", "md": "130px" },
9027
- left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
9028
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
9029
- border: "5px solid rgb(179, 198, 255)",
9030
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
9031
- borderRadius: "50%"
9032
- },
9033
9747
  style: {
9034
- objectFit: "cover",
9035
- width: "100%",
9036
- height: "100%",
9037
- borderRadius: "50%"
9748
+ imageStyle: {
9749
+ objectFit: "cover",
9750
+ width: "100%",
9751
+ height: "100%",
9752
+ borderRadius: "50%"
9753
+ },
9754
+ containerStyle: {
9755
+ objectFit: "cover",
9756
+ position: "absolute",
9757
+ top: { xs: "160px", "md": "130px" },
9758
+ left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
9759
+ width: { "xs": "80px", "sm": "80px", "md": "180px" },
9760
+ border: "5px solid rgb(179, 198, 255)",
9761
+ height: { "xs": "80px", "sm": "80px", "md": "180px" },
9762
+ borderRadius: "50%"
9763
+ }
9038
9764
  },
9039
9765
  layout: 6
9040
9766
  },
@@ -9049,21 +9775,23 @@ var leaderBoard = {
9049
9775
  main: {
9050
9776
  url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9051
9777
  },
9052
- containerStyle: {
9053
- objectFit: "cover",
9054
- position: "absolute",
9055
- top: { xs: "160px", "md": "130px" },
9056
- left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
9057
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
9058
- border: "5px solid rgb(179, 198, 255)",
9059
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
9060
- borderRadius: "50%"
9061
- },
9062
9778
  style: {
9063
- objectFit: "cover",
9064
- width: "100%",
9065
- height: "100%",
9066
- borderRadius: "50%"
9779
+ imageStyle: {
9780
+ objectFit: "cover",
9781
+ width: "100%",
9782
+ height: "100%",
9783
+ borderRadius: "50%"
9784
+ },
9785
+ containerStyle: {
9786
+ objectFit: "cover",
9787
+ position: "absolute",
9788
+ top: { xs: "160px", "md": "130px" },
9789
+ left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
9790
+ width: { "xs": "80px", "sm": "80px", "md": "180px" },
9791
+ border: "5px solid rgb(179, 198, 255)",
9792
+ height: { "xs": "80px", "sm": "80px", "md": "180px" },
9793
+ borderRadius: "50%"
9794
+ }
9067
9795
  },
9068
9796
  layout: 6
9069
9797
  },
@@ -9286,11 +10014,11 @@ var leaderBoard = {
9286
10014
  fontWeight: 900,
9287
10015
  background: "rgb(179, 198, 255)"
9288
10016
  },
9289
- position: "absolute",
9290
10017
  top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
9291
10018
  border: "2px solid rgb(179, 198, 255)",
9292
10019
  width: "95%",
9293
- left: "2.5%"
10020
+ left: "2.5%",
10021
+ margin: "auto"
9294
10022
  },
9295
10023
  main: {
9296
10024
  disableAction: true,
@@ -9399,7 +10127,8 @@ const BarGraph = {
9399
10127
  widget: "Graph"
9400
10128
  },
9401
10129
  config: {
9402
- main: {}
10130
+ main: {},
10131
+ style: { containerStyle: {} }
9403
10132
  }
9404
10133
  };
9405
10134
  const PieGraph = {
@@ -9411,7 +10140,8 @@ const PieGraph = {
9411
10140
  config: {
9412
10141
  main: {
9413
10142
  type: "PieGraph"
9414
- }
10143
+ },
10144
+ style: {}
9415
10145
  }
9416
10146
  };
9417
10147
  const LineGraph = {
@@ -9459,7 +10189,8 @@ const HorizontalBarGraph = {
9459
10189
  config: {
9460
10190
  main: {
9461
10191
  type: "HorizontalBarGraph"
9462
- }
10192
+ },
10193
+ style: {}
9463
10194
  }
9464
10195
  };
9465
10196
  const buildHorizontalBarGraph = (config, componentScope) => {
@@ -9635,6 +10366,7 @@ const buildStackbarGraph = (config, componentScope) => {
9635
10366
  if (config.leftLabel) {
9636
10367
  barGraph.config.main.leftLabel = config.leftLabel;
9637
10368
  }
10369
+ barGraph.scope = componentScope;
9638
10370
  return barGraph;
9639
10371
  };
9640
10372
  var RunnerBoyProgressBar = {
@@ -9699,7 +10431,7 @@ const buildWrapperSection = (config, componentScope) => {
9699
10431
  wrapper.scope = componentScope;
9700
10432
  wrapper.config.main.label = config.label;
9701
10433
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9702
- wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
10434
+ wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
9703
10435
  if (config.defaultStyle) {
9704
10436
  wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
9705
10437
  }
@@ -9784,12 +10516,7 @@ var Button = {
9784
10516
  widget: "Button"
9785
10517
  },
9786
10518
  config: {
9787
- layout: {
9788
- xs: 11,
9789
- sm: 11,
9790
- md: 5.5,
9791
- lg: 5.5
9792
- },
10519
+ layout: 3,
9793
10520
  main: {
9794
10521
  name: "Compare",
9795
10522
  variant: "contained",
@@ -9799,7 +10526,7 @@ var Button = {
9799
10526
  styleDefault: false,
9800
10527
  icon: "",
9801
10528
  onClick: "onClick",
9802
- size: "small"
10529
+ size: "medium"
9803
10530
  },
9804
10531
  style: {}
9805
10532
  }
@@ -9848,6 +10575,7 @@ var Table = {
9848
10575
  config: {
9849
10576
  main: {
9850
10577
  onMount: "onMount",
10578
+ enableExpandAll: true,
9851
10579
  allRowData: [],
9852
10580
  downloadAllData: false,
9853
10581
  columns: {
@@ -9880,6 +10608,21 @@ const buildTable = (config, componentScope) => {
9880
10608
  if (config.lazyLoading) {
9881
10609
  table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
9882
10610
  }
10611
+ if (config.enableRowMovement) {
10612
+ table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
10613
+ }
10614
+ if (config.enableExpanding) {
10615
+ table.config.main.enableExpanding = config.enableExpanding === "YES" ? true : false;
10616
+ }
10617
+ if (config.enableExpandAll) {
10618
+ table.config.main.enableExpandAll = config.enableExpandAll === "YES" ? true : false;
10619
+ }
10620
+ if (config.paginateExpandedRows) {
10621
+ table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
10622
+ }
10623
+ if (config.treeStructure) {
10624
+ table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
10625
+ }
9883
10626
  if (config.SelectionAvailable) {
9884
10627
  table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
9885
10628
  }
@@ -9927,7 +10670,7 @@ const buildLazyLoadingTable = (config, componentScope) => {
9927
10670
  table.config.main.label = config.label;
9928
10671
  return table;
9929
10672
  };
9930
- var Box = {
10673
+ const Box = {
9931
10674
  type: "Control",
9932
10675
  scope: "#/properties/emptyBox",
9933
10676
  options: {
@@ -9964,12 +10707,7 @@ const uploadFile = {
9964
10707
  "style": {
9965
10708
  "backgroundColor": "none"
9966
10709
  },
9967
- "layout": {
9968
- "lg": 5.5,
9969
- "md": 5.5,
9970
- "sm": 11,
9971
- "xs": 11
9972
- }
10710
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
9973
10711
  },
9974
10712
  "options": {
9975
10713
  "widget": "UploadFile"
@@ -9986,12 +10724,7 @@ const downloadFile = {
9986
10724
  "style": {
9987
10725
  "backgroundColor": "none"
9988
10726
  },
9989
- "layout": {
9990
- "lg": 5.5,
9991
- "md": 5.5,
9992
- "sm": 11,
9993
- "xs": 11
9994
- }
10727
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
9995
10728
  },
9996
10729
  "options": {
9997
10730
  "widget": "DownloadFile"
@@ -10042,16 +10775,14 @@ var Card = {
10042
10775
  main: {
10043
10776
  rowSpacing: 0.5
10044
10777
  },
10045
- style: {
10046
- componentsBoxStyle: {
10047
- position: "relative",
10048
- color: "white",
10049
- height: { xs: "120px", md: "160px" },
10050
- width: "100%",
10051
- textAlign: "left",
10052
- background: "#3f51b5",
10053
- borderRadius: "20px"
10054
- }
10778
+ componentsBoxStyle: {
10779
+ position: "relative",
10780
+ color: "white",
10781
+ height: { xs: "120px", md: "160px" },
10782
+ width: "100%",
10783
+ textAlign: "left",
10784
+ background: "#3f51b5",
10785
+ borderRadius: "20px"
10055
10786
  },
10056
10787
  layout: { xs: 12, sm: 12, md: 6, lg: 6 }
10057
10788
  },
@@ -10337,7 +11068,7 @@ const buildBasicUiSchema = (config) => {
10337
11068
  pageName: config.name,
10338
11069
  name: config.name,
10339
11070
  accessorKey: config.name,
10340
- headeing: config.label || config.name,
11071
+ heading: config.label || config.name,
10341
11072
  "elements": []
10342
11073
  };
10343
11074
  };
@@ -10470,7 +11201,7 @@ const RadioUiSchema = {
10470
11201
  widget: "RadioInputField"
10471
11202
  },
10472
11203
  config: {
10473
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
11204
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10474
11205
  main: {
10475
11206
  label: "Enabled",
10476
11207
  options: ["YES", "NO"],
@@ -10494,11 +11225,11 @@ const buildRadio = (config, componentScope) => {
10494
11225
  return Radio;
10495
11226
  };
10496
11227
  const buildEmptyBox = (config, componentScope) => {
10497
- const EmptyBox2 = _.cloneDeep(emptyBox);
11228
+ const EmptyBox = _.cloneDeep(emptyBox);
10498
11229
  if (config.layout) {
10499
- EmptyBox2.config.layout = createLayoutFormat(config.layout);
11230
+ EmptyBox.config.layout = createLayoutFormat(config.layout);
10500
11231
  }
10501
- return EmptyBox2;
11232
+ return EmptyBox;
10502
11233
  };
10503
11234
  const ArrayUiSchema = {
10504
11235
  type: "Control",
@@ -10579,7 +11310,7 @@ const FileInput = {
10579
11310
  widget: "FileInputField"
10580
11311
  },
10581
11312
  config: {
10582
- layout: 11.5,
11313
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10583
11314
  main: {
10584
11315
  required: false,
10585
11316
  onUpload: "onFileUpload",
@@ -11022,7 +11753,7 @@ const buildUiSchema = (config) => {
11022
11753
  switch (config.graphType) {
11023
11754
  case "BarGraph":
11024
11755
  case "StackBarGraph":
11025
- elements = buildStackbarGraph(config);
11756
+ elements = buildStackbarGraph(config, componentScope);
11026
11757
  break;
11027
11758
  case "LineGraph":
11028
11759
  elements = buildLineGraph(config, componentScope);