impaktapps-ui-builder 0.0.101-alpha.9 → 0.0.101-alpha.90

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 (36) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1131 -809
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +62 -59
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +17 -21
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +98 -95
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +26 -33
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +52 -38
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +7 -8
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +29 -33
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +56 -37
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +56 -36
  14. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
  15. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +6 -0
  16. package/package.json +1 -1
  17. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  18. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +14 -10
  19. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +111 -96
  20. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +101 -95
  21. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +189 -110
  22. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +39 -17
  23. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +44 -44
  24. package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +9 -13
  25. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +40 -18
  26. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +117 -48
  27. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +113 -45
  28. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +23 -23
  29. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +119 -51
  30. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +30 -21
  31. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  32. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +188 -295
  33. package/src/impaktapps-ui-builder/builder/services/component.ts +144 -32
  34. package/src/impaktapps-ui-builder/builder/services/event.ts +167 -65
  35. package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
  36. package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -4
@@ -182,9 +182,10 @@ const PageMasterUiSchema = (theme) => {
182
182
  main: {
183
183
  onClick: "copyPasteElement",
184
184
  size: "small",
185
- icon: "TablePasteIcon",
185
+ icon: "TablePaste",
186
186
  iconLabel: "Paste",
187
- styleDefault: true
187
+ styleDefault: true,
188
+ title: ""
188
189
  },
189
190
  style: {
190
191
  mt: "6px",
@@ -339,7 +340,7 @@ const PageMasterUiSchema = (theme) => {
339
340
  main: {
340
341
  onClick: "copyPasteElement",
341
342
  size: "small",
342
- icon: "TablePasteIcon",
343
+ icon: "TablePaste",
343
344
  iconLabel: "Paste",
344
345
  styleDefault: true
345
346
  },
@@ -365,19 +366,19 @@ const PageMasterUiSchema = (theme) => {
365
366
  elements: [
366
367
  {
367
368
  accessorKey: "eventType",
368
- header: "Event Type",
369
+ header: "Event's Type",
369
370
  size: 300,
370
371
  type: "string"
371
372
  },
372
373
  {
373
374
  accessorKey: "Handler",
374
375
  header: "Handler",
375
- size: 300,
376
+ size: 200,
376
377
  type: "string"
377
378
  },
378
379
  {
379
380
  accessorKey: "Edit_Approve_Records",
380
- header: "Edit Widget",
381
+ header: "Edit",
381
382
  type: "action",
382
383
  size: 150,
383
384
  widget: {
@@ -405,6 +406,8 @@ const PageMasterUiSchema = (theme) => {
405
406
  {
406
407
  accessorKey: "Reject_Records",
407
408
  header: "Delete",
409
+ type: "action",
410
+ size: 150,
408
411
  widget: {
409
412
  type: "Control",
410
413
  scope: "#/properties/RejectButton",
@@ -429,7 +432,8 @@ const PageMasterUiSchema = (theme) => {
429
432
  {
430
433
  header: "Copy",
431
434
  field: "Copy_Event",
432
- flex: 1,
435
+ type: "action",
436
+ size: 150,
433
437
  widget: {
434
438
  type: "Control",
435
439
  scope: "#/properties/Copy_Event",
@@ -521,15 +525,17 @@ const PageMasterUiSchema = (theme) => {
521
525
  config: {
522
526
  layout: 11,
523
527
  main: {
524
- heading: "Are you sure you want to delete ?"
528
+ heading: "Are you sure you want to delete this Component ?"
525
529
  },
526
530
  style: {
527
- marginTop: "-20px",
528
531
  fontSize: "20px",
529
532
  "&.MuiTypography-root": {
530
- padding: "10px 30px 20px 30px",
533
+ padding: "0px 20px",
531
534
  textAlign: "center",
532
- lineHeight: "1"
535
+ lineHeight: "1.2",
536
+ fontWeight: "normal",
537
+ fontSize: "18px",
538
+ marginBottom: theme.spacing(5)
533
539
  }
534
540
  }
535
541
  }
@@ -551,15 +557,15 @@ const PageMasterUiSchema = (theme) => {
551
557
  layout: 6,
552
558
  main: {
553
559
  name: "No",
554
- startIcon: "ApproveIcon",
555
560
  variant: "contained",
556
- color: "info",
557
561
  type: "text",
558
562
  onClick: "deletePopUpComponent",
559
563
  size: "large"
560
564
  },
561
565
  style: {
562
566
  position: "absolute",
567
+ padding: "8px 0px",
568
+ fontSize: "16px",
563
569
  bottom: 0,
564
570
  left: 0,
565
571
  width: "50%",
@@ -587,7 +593,6 @@ const PageMasterUiSchema = (theme) => {
587
593
  layout: 6,
588
594
  main: {
589
595
  name: "Yes",
590
- startIcon: "ApproveIcon",
591
596
  variant: "contained",
592
597
  color: "error",
593
598
  type: "text",
@@ -596,6 +601,8 @@ const PageMasterUiSchema = (theme) => {
596
601
  },
597
602
  style: {
598
603
  position: "absolute",
604
+ padding: "8px 0px",
605
+ fontSize: "16px",
599
606
  bottom: 0,
600
607
  right: 0,
601
608
  width: "50%",
@@ -644,15 +651,17 @@ const PageMasterUiSchema = (theme) => {
644
651
  config: {
645
652
  layout: 11,
646
653
  main: {
647
- heading: "Are you sure you want to delete ?"
654
+ heading: "Are you sure you want to delete this Event ?"
648
655
  },
649
656
  style: {
650
- marginTop: "-20px",
651
657
  fontSize: "20px",
652
658
  "&.MuiTypography-root": {
653
- padding: "10px 30px 20px 30px",
659
+ padding: "0px 20px",
654
660
  textAlign: "center",
655
- lineHeight: "1"
661
+ lineHeight: "1.2",
662
+ fontWeight: "normal",
663
+ fontSize: "18px",
664
+ marginBottom: theme.spacing(5)
656
665
  }
657
666
  }
658
667
  }
@@ -674,15 +683,15 @@ const PageMasterUiSchema = (theme) => {
674
683
  layout: 6,
675
684
  main: {
676
685
  name: "No",
677
- startIcon: "ApproveIcon",
678
686
  variant: "contained",
679
- color: "info",
680
687
  type: "text",
681
688
  onClick: "deletePopUpEvent",
682
689
  size: "large"
683
690
  },
684
691
  style: {
685
692
  position: "absolute",
693
+ padding: "8px 0px",
694
+ fontSize: "16px",
686
695
  bottom: 0,
687
696
  left: 0,
688
697
  width: "50%",
@@ -710,7 +719,6 @@ const PageMasterUiSchema = (theme) => {
710
719
  layout: 6,
711
720
  main: {
712
721
  name: "Yes",
713
- startIcon: "ApproveIcon",
714
722
  variant: "contained",
715
723
  color: "error",
716
724
  type: "text",
@@ -719,6 +727,8 @@ const PageMasterUiSchema = (theme) => {
719
727
  },
720
728
  style: {
721
729
  position: "absolute",
730
+ padding: "8px 0px",
731
+ fontSize: "16px",
722
732
  bottom: 0,
723
733
  right: 0,
724
734
  width: "50%",
@@ -6240,44 +6250,44 @@ const ComponentSchema = {
6240
6250
  properties: {
6241
6251
  type: {
6242
6252
  oneOf: [
6243
- { title: "AadharcardText", const: "AadharcardText" },
6253
+ { title: "Masked Aadhar Card", const: "AadharcardText" },
6244
6254
  { title: "Array", const: "Array" },
6245
6255
  { title: "Button", const: "Button" },
6246
- { title: "Card", const: "card" },
6247
- { title: "CheckBox", const: "CheckBox" },
6256
+ { title: "Data Card", const: "card" },
6257
+ { title: "Check Box", const: "CheckBox" },
6248
6258
  { title: "Container", const: "WrapperSection" },
6249
- { title: "DataGrid", const: "DataGrid" },
6259
+ { title: "Data Grid", const: "DataGrid" },
6250
6260
  { title: "Date", const: "Date" },
6251
- { title: "DateTime", const: "DateTime" },
6252
- { title: "Download File", const: "DownloadFile" },
6261
+ { title: "Time Stamp", const: "DateTime" },
6262
+ { title: "Download", const: "DownloadFile" },
6253
6263
  { title: "Empty Box", const: "EmptyBox" },
6254
- { title: "File", const: "FileInput" },
6264
+ { title: "File Handler", const: "FileInput" },
6255
6265
  { title: "Graph", const: "Graph" },
6256
6266
  { title: "Input Slider", const: "InputSlider" },
6257
6267
  { title: "Label", const: "Box" },
6258
- { title: "LeaderBoard", const: "LeaderBoard" },
6259
- { title: "MultipleSelect", const: "MultipleSelect" },
6260
- { title: "PanCardText", const: "PanCardText" },
6261
- { title: "Popup Container", const: "PopUp" },
6262
- { title: "ProgressBar", const: "ProgressBar" },
6263
- { title: "ProgressBar Card", const: "ProgressBarCard" },
6264
- { title: "Select", const: "Select" },
6268
+ { title: "Leaderboard", const: "LeaderBoard" },
6269
+ { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6270
+ { title: "Pan Card Masked", const: "PanCardText" },
6271
+ { title: "Pop Up", const: "PopUp" },
6272
+ { title: "Progress Bar", const: "ProgressBar" },
6273
+ { title: "Progress Bar Card", const: "ProgressBarCard" },
6274
+ { title: "Dropdown", const: "Select" },
6265
6275
  { title: "Slider", const: "Slider" },
6266
- { title: "SpeedoMeter", const: "SpeedoMeter" },
6276
+ { title: "Speedometer", const: "SpeedoMeter" },
6267
6277
  { title: "Stepper Container", const: "Stepper" },
6268
6278
  { title: "Radio", const: "Radio" },
6269
6279
  { title: "Rank", const: "Rank" },
6270
6280
  { title: "Rank Card", const: "RankCard" },
6271
- { title: "Runner Boy Progress Bar", const: "RunnerBoyProgressBar" },
6281
+ { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6272
6282
  { title: "Table", const: "Table" },
6273
6283
  { title: "Tabs", const: "TabSection" },
6274
6284
  { title: "Text", const: "Text" },
6275
6285
  { title: "Text Area", const: "TextArea" },
6276
6286
  { title: "Timer", const: "Timer" },
6277
- { title: "Upload File", const: "UploadFile" },
6278
- { title: "TreeMap", const: "TreeMap" },
6279
- { title: "ColumnGroup", const: "ColumnGroup" },
6280
- { title: "Thought of the Day", const: "Thought" },
6287
+ { title: "Upload", const: "UploadFile" },
6288
+ { title: "Tree ", const: "TreeMap" },
6289
+ { title: "Column Group", const: "ColumnGroup" },
6290
+ { title: "Thought of the day", const: "Thought" },
6281
6291
  { title: "Pdf Viewer", const: "PdfViewer" }
6282
6292
  ]
6283
6293
  },
@@ -6432,23 +6442,20 @@ const ComponentSchema = {
6432
6442
  }
6433
6443
  },
6434
6444
  filteringOptions: {
6435
- type: "array",
6436
- items: {
6437
- oneOf: [
6438
- { const: "fuzzy", title: "Fuzzy" },
6439
- { const: "contains", title: "Contain" },
6440
- { const: "startsWith", title: "Starts with" },
6441
- { const: "endsWith", title: "Ends with" },
6442
- { const: "equals", title: "Equals" },
6443
- { const: "notEquals", title: "Not Equals" },
6444
- { const: "between", title: "Between" },
6445
- { const: "betweenInclusive", title: "Between inclusive" },
6446
- { const: "greaterThan", title: "Greater than" },
6447
- { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6448
- { const: "lessThan", title: "Less than" },
6449
- { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6450
- ]
6451
- }
6445
+ oneOf: [
6446
+ { const: "fuzzy", title: "Fuzzy" },
6447
+ { const: "contains", title: "Contain" },
6448
+ { const: "startsWith", title: "Starts with" },
6449
+ { const: "endsWith", title: "Ends with" },
6450
+ { const: "equals", title: "Equals" },
6451
+ { const: "notEquals", title: "Not Equals" },
6452
+ { const: "between", title: "Between" },
6453
+ { const: "betweenInclusive", title: "Between inclusive" },
6454
+ { const: "greaterThan", title: "Greater than" },
6455
+ { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6456
+ { const: "lessThan", title: "Less than" },
6457
+ { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6458
+ ]
6452
6459
  },
6453
6460
  legendLabels: {
6454
6461
  type: "array",
@@ -6564,6 +6571,9 @@ const ComponentSchema = {
6564
6571
  { title: "Info", const: "info" }
6565
6572
  ]
6566
6573
  },
6574
+ pageName: {
6575
+ path: []
6576
+ },
6567
6577
  name: {
6568
6578
  type: "string"
6569
6579
  },
@@ -6606,7 +6616,7 @@ const componentBasicUiSchema = (theme) => {
6606
6616
  type: "WrapperLayout",
6607
6617
  config: {
6608
6618
  main: {
6609
- label: "",
6619
+ label: " ",
6610
6620
  gap: "8px"
6611
6621
  }
6612
6622
  },
@@ -6644,8 +6654,6 @@ const componentBasicUiSchema = (theme) => {
6644
6654
  layout: { xs: 12, sm: 6, md: 4, lg: 3 },
6645
6655
  main: {
6646
6656
  label: "Component ID",
6647
- options: [],
6648
- color: "secondary",
6649
6657
  required: true
6650
6658
  }
6651
6659
  }
@@ -6746,48 +6754,58 @@ const componentBasicUiSchema = (theme) => {
6746
6754
  ]
6747
6755
  },
6748
6756
  {
6749
- type: "Control",
6750
- scope: "#/properties/btn",
6751
- options: {
6752
- widget: "Button"
6753
- },
6757
+ type: "WrapperLayout",
6754
6758
  config: {
6755
- layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
6756
6759
  main: {
6757
- name: "Ok",
6758
- variant: "contained",
6759
- type: "text",
6760
- onClick: "okHandler",
6761
- size: "medium"
6760
+ gap: "8px"
6762
6761
  }
6763
- }
6764
- },
6765
- {
6766
- type: "Control",
6767
- scope: "#/properties/btnSubmit",
6768
- options: {
6769
- widget: "Button"
6770
6762
  },
6771
- config: {
6772
- layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
6773
- main: {
6774
- name: "Save & Exit",
6775
- variant: "contained",
6776
- type: "text",
6777
- onClick: "saveHandler",
6778
- size: "medium"
6763
+ elements: [
6764
+ {
6765
+ type: "Control",
6766
+ scope: "#/properties/btn",
6767
+ options: {
6768
+ widget: "Button"
6769
+ },
6770
+ config: {
6771
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
6772
+ main: {
6773
+ name: "Ok",
6774
+ variant: "contained",
6775
+ type: "text",
6776
+ onClick: "okHandler",
6777
+ size: "medium"
6778
+ }
6779
+ }
6780
+ },
6781
+ {
6782
+ type: "Control",
6783
+ scope: "#/properties/btnSubmit",
6784
+ options: {
6785
+ widget: "Button"
6786
+ },
6787
+ config: {
6788
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
6789
+ main: {
6790
+ name: "Save & Exit",
6791
+ variant: "contained",
6792
+ type: "text",
6793
+ onClick: "saveHandler",
6794
+ size: "medium"
6795
+ }
6796
+ }
6797
+ },
6798
+ {
6799
+ type: "Control",
6800
+ scope: "#/properties/EmptyBox",
6801
+ config: {
6802
+ layout: { xs: 4, sm: 7, md: 8, lg: 9 }
6803
+ },
6804
+ options: {
6805
+ widget: "EmptyBox"
6806
+ }
6779
6807
  }
6780
- }
6781
- },
6782
- {
6783
- type: "Control",
6784
- scope: "#/properties/EmptyBox",
6785
- config: {
6786
- layout: { xs: 4, sm: 7, md: 8, lg: 9 }
6787
- },
6788
- options: {
6789
- widget: "EmptyBox"
6790
- }
6808
+ ]
6791
6809
  },
6792
6810
  {
6793
6811
  type: "Control",
@@ -6817,15 +6835,16 @@ const componentBasicUiSchema = (theme) => {
6817
6835
  config: {
6818
6836
  layout: 11,
6819
6837
  main: {
6820
- heading: "Are you sure you want to delete ?"
6838
+ heading: "Are you sure you want to delete this Component ?"
6821
6839
  },
6822
6840
  style: {
6823
- marginTop: "-20px",
6824
- fontSize: "20px",
6825
6841
  "&.MuiTypography-root": {
6826
- padding: "10px 30px 20px 30px",
6842
+ padding: "0px 20px",
6827
6843
  textAlign: "center",
6828
- lineHeight: "1"
6844
+ lineHeight: "1.2",
6845
+ fontWeight: "normal",
6846
+ fontSize: "18px",
6847
+ marginBottom: theme.spacing(5)
6829
6848
  }
6830
6849
  }
6831
6850
  }
@@ -6854,6 +6873,8 @@ const componentBasicUiSchema = (theme) => {
6854
6873
  },
6855
6874
  style: {
6856
6875
  position: "absolute",
6876
+ padding: "8px 0px",
6877
+ fontSize: "16px",
6857
6878
  bottom: 0,
6858
6879
  left: 0,
6859
6880
  width: "50%",
@@ -6889,6 +6910,8 @@ const componentBasicUiSchema = (theme) => {
6889
6910
  },
6890
6911
  style: {
6891
6912
  position: "absolute",
6913
+ padding: "8px 0px",
6914
+ fontSize: "16px",
6892
6915
  bottom: 0,
6893
6916
  right: 0,
6894
6917
  width: "50%",
@@ -6937,15 +6960,17 @@ const componentBasicUiSchema = (theme) => {
6937
6960
  config: {
6938
6961
  layout: 11,
6939
6962
  main: {
6940
- heading: "Are you sure you want to delete ?"
6963
+ heading: "Are you sure you want to delete this Event ?"
6941
6964
  },
6942
6965
  style: {
6943
- marginTop: "-20px",
6944
6966
  fontSize: "20px",
6945
6967
  "&.MuiTypography-root": {
6946
- padding: "10px 30px 20px 30px",
6968
+ padding: "0px 20px",
6947
6969
  textAlign: "center",
6948
- lineHeight: "1"
6970
+ lineHeight: "1.2",
6971
+ fontWeight: "normal",
6972
+ fontSize: "18px",
6973
+ marginBottom: theme.spacing(5)
6949
6974
  }
6950
6975
  }
6951
6976
  }
@@ -6974,6 +6999,8 @@ const componentBasicUiSchema = (theme) => {
6974
6999
  },
6975
7000
  style: {
6976
7001
  position: "absolute",
7002
+ padding: "8px 0px",
7003
+ fontSize: "16px",
6977
7004
  bottom: 0,
6978
7005
  left: 0,
6979
7006
  width: "50%",
@@ -7009,6 +7036,8 @@ const componentBasicUiSchema = (theme) => {
7009
7036
  },
7010
7037
  style: {
7011
7038
  position: "absolute",
7039
+ padding: "8px 0px",
7040
+ fontSize: "16px",
7012
7041
  bottom: 0,
7013
7042
  right: 0,
7014
7043
  width: "50%",
@@ -7029,6 +7058,27 @@ const componentBasicUiSchema = (theme) => {
7029
7058
  }
7030
7059
  ]
7031
7060
  },
7061
+ {
7062
+ type: "Control",
7063
+ scope: "#/properties/pageName",
7064
+ options: {
7065
+ widget: "Breadcrumb"
7066
+ },
7067
+ config: {
7068
+ layout: 12,
7069
+ main: {},
7070
+ style: {
7071
+ paddingLeft: theme.spacing(3),
7072
+ color: theme.palette.grey[600],
7073
+ fontSize: "10px",
7074
+ position: "fixed",
7075
+ bottom: "24px",
7076
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
7077
+ borderTop: `1px solid ${theme.palette.common.black}29`,
7078
+ backgroundColor: theme.palette.background.default
7079
+ }
7080
+ }
7081
+ },
7032
7082
  {
7033
7083
  type: "Control",
7034
7084
  scope: "#/properties/notify",
@@ -7086,7 +7136,13 @@ const componentBasicUiSchema = (theme) => {
7086
7136
  return uiSchema;
7087
7137
  };
7088
7138
  const CoreSection = {
7089
- type: "HorizontalLayout",
7139
+ type: "WrapperLayout",
7140
+ config: {
7141
+ main: {
7142
+ label: " ",
7143
+ gap: "8px"
7144
+ }
7145
+ },
7090
7146
  elements: [
7091
7147
  {
7092
7148
  type: "Control",
@@ -7095,7 +7151,7 @@ const CoreSection = {
7095
7151
  widget: "SelectInputField"
7096
7152
  },
7097
7153
  config: {
7098
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7154
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7099
7155
  main: {
7100
7156
  label: "Type",
7101
7157
  type: "text"
@@ -7104,40 +7160,39 @@ const CoreSection = {
7104
7160
  },
7105
7161
  {
7106
7162
  type: "Control",
7107
- scope: "#/properties/name",
7108
- options: {
7109
- widget: "InputField"
7110
- },
7163
+ scope: "#/properties/proc",
7111
7164
  config: {
7112
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7113
- main: {
7114
- label: "Name"
7115
- }
7165
+ layout: { xs: 6, sm: 0, md: 0, lg: 0 }
7166
+ },
7167
+ options: {
7168
+ widget: "EmptyBox"
7116
7169
  }
7117
7170
  },
7118
7171
  {
7119
7172
  type: "Control",
7120
- scope: "#/properties/label",
7173
+ scope: "#/properties/name",
7121
7174
  options: {
7122
7175
  widget: "InputField"
7123
7176
  },
7124
7177
  config: {
7125
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7178
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
7126
7179
  main: {
7127
- label: "Label"
7180
+ label: "Component ID",
7181
+ required: true
7128
7182
  }
7129
7183
  }
7130
7184
  },
7131
7185
  {
7132
7186
  type: "Control",
7133
- scope: "#/properties/columnFormat",
7187
+ scope: "#/properties/label",
7134
7188
  options: {
7135
- widget: "SelectInputField"
7189
+ widget: "InputField"
7136
7190
  },
7137
7191
  config: {
7138
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7192
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7139
7193
  main: {
7140
- label: "Column Format"
7194
+ label: "Label",
7195
+ required: true
7141
7196
  }
7142
7197
  }
7143
7198
  },
@@ -7145,17 +7200,7 @@ const CoreSection = {
7145
7200
  type: "Control",
7146
7201
  scope: "#/properties/proc",
7147
7202
  config: {
7148
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7149
- },
7150
- options: {
7151
- widget: "EmptyBox"
7152
- }
7153
- },
7154
- {
7155
- type: "Control",
7156
- scope: "#/properties/proc",
7157
- config: {
7158
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7203
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7159
7204
  },
7160
7205
  options: {
7161
7206
  widget: "EmptyBox"
@@ -7164,54 +7209,67 @@ const CoreSection = {
7164
7209
  {
7165
7210
  type: "Control",
7166
7211
  scope: "#/properties/layout",
7167
- layout: 12,
7168
7212
  options: {
7169
- "elementLabelProp": "key",
7170
- detail: {
7171
- type: "HorizontalLayout",
7172
- elements: [
7173
- {
7174
- type: "Control",
7175
- scope: "#/properties/key",
7176
- options: {
7177
- widget: "SelectInputField"
7178
- },
7179
- config: {
7180
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7181
- main: {
7182
- label: "Screen Size"
7183
- }
7184
- }
7185
- },
7186
- {
7187
- type: "Control",
7188
- scope: "#/properties/value",
7189
- options: {
7190
- widget: "InputField"
7191
- },
7192
- config: {
7193
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7194
- main: {
7195
- label: "Value",
7196
- type: "number",
7197
- helperText: "Number should be in range of 0 to 12",
7198
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7199
- }
7200
- }
7201
- },
7202
- {
7203
- type: "Control",
7204
- scope: "#/properties/proc",
7205
- config: {
7206
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7207
- },
7208
- options: {
7209
- widget: "EmptyBox"
7210
- }
7213
+ widget: "Array"
7214
+ },
7215
+ config: {
7216
+ layout: 12,
7217
+ main: {
7218
+ label: "Layout",
7219
+ childElementLabel: "Layout"
7220
+ },
7221
+ style: {
7222
+ marginLeft: "-24px",
7223
+ marginBottom: "24px !important",
7224
+ labelStyle: {
7225
+ marginLeft: "24px"
7226
+ },
7227
+ detailsStyle: {
7228
+ marginLeft: "24px"
7229
+ }
7230
+ }
7231
+ },
7232
+ elements: [
7233
+ {
7234
+ type: "Control",
7235
+ scope: "#/properties/key",
7236
+ options: {
7237
+ widget: "SelectInputField"
7238
+ },
7239
+ config: {
7240
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7241
+ main: {
7242
+ label: "Screen Size"
7211
7243
  }
7212
- ]
7244
+ }
7245
+ },
7246
+ {
7247
+ type: "Control",
7248
+ scope: "#/properties/value",
7249
+ options: {
7250
+ widget: "InputField"
7251
+ },
7252
+ config: {
7253
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7254
+ main: {
7255
+ label: "Value",
7256
+ type: "number",
7257
+ helperText: "Number should be in range of 0 to 12",
7258
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7259
+ }
7260
+ }
7261
+ },
7262
+ {
7263
+ type: "Control",
7264
+ scope: "#/properties/proc",
7265
+ config: {
7266
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7267
+ },
7268
+ options: {
7269
+ widget: "EmptyBox"
7270
+ }
7213
7271
  }
7214
- }
7272
+ ]
7215
7273
  }
7216
7274
  ]
7217
7275
  };
@@ -7238,15 +7296,20 @@ const EventSection = (theme) => {
7238
7296
  },
7239
7297
  config: {
7240
7298
  main: {
7241
- color: "info",
7242
7299
  onClick: "eventAddHandler",
7243
7300
  size: "small",
7244
- icon: "AddIcon",
7245
- iconLabel: "Add New",
7301
+ icon: "TableAddIcon",
7302
+ iconLabel: "Add",
7246
7303
  styleDefault: true
7247
7304
  },
7248
7305
  style: {
7249
- mt: "6px"
7306
+ mt: "6px",
7307
+ color: "inherit",
7308
+ fill: "inherit",
7309
+ "&:hover": {
7310
+ color: "inherit",
7311
+ fill: "inherit"
7312
+ }
7250
7313
  }
7251
7314
  }
7252
7315
  }
@@ -7262,12 +7325,18 @@ const EventSection = (theme) => {
7262
7325
  main: {
7263
7326
  onClick: "copyPasteElement",
7264
7327
  size: "small",
7265
- icon: "PasteIcon",
7328
+ icon: "TablePaste",
7266
7329
  iconLabel: "Paste",
7267
7330
  styleDefault: true
7268
7331
  },
7269
7332
  style: {
7270
- mt: "6px"
7333
+ mt: "6px",
7334
+ color: "inherit",
7335
+ fill: "inherit",
7336
+ "&:hover": {
7337
+ color: "inherit",
7338
+ fill: "inherit"
7339
+ }
7271
7340
  }
7272
7341
  }
7273
7342
  }
@@ -7282,15 +7351,21 @@ const EventSection = (theme) => {
7282
7351
  elements: [
7283
7352
  {
7284
7353
  accessorKey: "eventType",
7285
- header: "Event Type"
7354
+ header: "Event's Type",
7355
+ type: "string",
7356
+ size: 300
7286
7357
  },
7287
7358
  {
7288
7359
  accessorKey: "Handler",
7289
- header: "Handler"
7360
+ header: "Handler",
7361
+ type: "string",
7362
+ size: 200
7290
7363
  },
7291
7364
  {
7292
7365
  accessorKey: "Edit_Approve_Records",
7293
- header: "Edit Widget",
7366
+ header: "Edit",
7367
+ size: 150,
7368
+ type: "action",
7294
7369
  widget: {
7295
7370
  type: "Control",
7296
7371
  scope: "#/properties/Edit_Records",
@@ -7299,14 +7374,16 @@ const EventSection = (theme) => {
7299
7374
  },
7300
7375
  config: {
7301
7376
  main: {
7302
- color: "info",
7303
7377
  size: "small",
7304
- icon: "EditIcon",
7378
+ icon: "TableEditIcon",
7305
7379
  tooltipMessage: "Edit This Record",
7306
7380
  onClick: "eventEditHandler"
7307
7381
  },
7308
7382
  style: {
7309
- color: theme.palette.primary.main
7383
+ fill: theme.palette.primary.main,
7384
+ "& :hover": {
7385
+ fill: theme.palette.primary.dark
7386
+ }
7310
7387
  }
7311
7388
  }
7312
7389
  }
@@ -7314,6 +7391,8 @@ const EventSection = (theme) => {
7314
7391
  {
7315
7392
  accessorKey: "Reject_Records",
7316
7393
  header: "Delete",
7394
+ size: 150,
7395
+ type: "action",
7317
7396
  widget: {
7318
7397
  type: "Control",
7319
7398
  scope: "#/properties/RejectButton",
@@ -7323,10 +7402,15 @@ const EventSection = (theme) => {
7323
7402
  },
7324
7403
  config: {
7325
7404
  main: {
7326
- icon: "RejectIcon",
7327
- color: "error",
7405
+ icon: "Bin",
7328
7406
  tooltipMessage: "Reject This Record",
7329
7407
  onClick: "deletePopUpEvent"
7408
+ },
7409
+ style: {
7410
+ fill: theme.palette.primary.main,
7411
+ "& :hover": {
7412
+ fill: theme.palette.primary.dark
7413
+ }
7330
7414
  }
7331
7415
  }
7332
7416
  }
@@ -7334,7 +7418,8 @@ const EventSection = (theme) => {
7334
7418
  {
7335
7419
  header: "Copy",
7336
7420
  field: "Copy_Event",
7337
- flex: 1,
7421
+ size: 150,
7422
+ type: "action",
7338
7423
  widget: {
7339
7424
  type: "Control",
7340
7425
  scope: "#/properties/Copy_Event",
@@ -7384,77 +7469,103 @@ const emptyBox$1 = (scope, layout) => {
7384
7469
  const cardLayout = {
7385
7470
  type: "Control",
7386
7471
  scope: "#/properties/cardLayout",
7387
- layout: 11.5,
7388
7472
  options: {
7389
- detail: {
7390
- type: "HorizontalLayout",
7391
- elements: [
7392
- {
7393
- type: "Control",
7394
- scope: "#/properties/key",
7395
- options: {
7396
- widget: "SelectInputField"
7397
- },
7398
- config: {
7399
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7400
- main: {
7401
- label: "Screen Size"
7402
- }
7403
- }
7404
- },
7405
- {
7406
- type: "Control",
7407
- scope: "#/properties/value",
7408
- options: {
7409
- widget: "InputField"
7410
- },
7411
- config: {
7412
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7413
- main: {
7414
- label: "Value",
7415
- type: "number",
7416
- helperText: "Number should be in range of 0 to 12",
7417
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7418
- }
7419
- }
7420
- },
7421
- emptyBox$1("cardEmpty")
7422
- ]
7423
- }
7424
- }
7473
+ widget: "Array"
7474
+ },
7475
+ config: {
7476
+ layout: 12,
7477
+ main: {
7478
+ label: "Card Layout",
7479
+ childElementLabel: "Card Layout"
7480
+ },
7481
+ style: {
7482
+ marginLeft: "-24px",
7483
+ marginBottom: "24px !important",
7484
+ labelStyle: {
7485
+ marginLeft: "24px"
7486
+ },
7487
+ detailsStyle: {
7488
+ marginLeft: "24px"
7489
+ }
7490
+ }
7491
+ },
7492
+ elements: [
7493
+ {
7494
+ type: "Control",
7495
+ scope: "#/properties/key",
7496
+ options: {
7497
+ widget: "SelectInputField"
7498
+ },
7499
+ config: {
7500
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7501
+ main: {
7502
+ label: "Screen Size"
7503
+ }
7504
+ }
7505
+ },
7506
+ {
7507
+ type: "Control",
7508
+ scope: "#/properties/value",
7509
+ options: {
7510
+ widget: "InputField"
7511
+ },
7512
+ config: {
7513
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7514
+ main: {
7515
+ label: "Value",
7516
+ type: "number",
7517
+ helperText: "Number should be in range of 0 to 12",
7518
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7519
+ }
7520
+ }
7521
+ },
7522
+ emptyBox$1("cardEmpty")
7523
+ ]
7425
7524
  };
7426
7525
  const getArrayControl = (parentScope, childScope, childLabel) => {
7427
7526
  return {
7428
7527
  type: "Control",
7429
7528
  scope: `#/properties/${parentScope}`,
7430
- layout: 12,
7431
7529
  options: {
7432
- "elementLabelProp": childScope,
7433
- detail: {
7434
- type: "HorizontalLayout",
7435
- elements: [
7436
- {
7437
- type: "Control",
7438
- scope: `#/properties/${childScope}`,
7439
- options: {
7440
- widget: "InputField"
7441
- },
7442
- config: {
7443
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7444
- main: {
7445
- label: childLabel || "Labels for Tab"
7446
- }
7447
- }
7448
- },
7449
- emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7450
- emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
7451
- ]
7530
+ widget: "Array"
7531
+ },
7532
+ config: {
7533
+ layout: 12,
7534
+ main: {
7535
+ label: childLabel,
7536
+ childElementLabel: childLabel
7537
+ },
7538
+ style: {
7539
+ marginLeft: "-24px",
7540
+ marginBottom: "24px !important",
7541
+ labelStyle: {
7542
+ marginLeft: "24px"
7543
+ },
7544
+ detailsStyle: {
7545
+ marginLeft: "24px"
7546
+ }
7452
7547
  }
7453
- }
7548
+ },
7549
+ elements: [
7550
+ {
7551
+ type: "Control",
7552
+ scope: `#/properties/${childScope}`,
7553
+ options: {
7554
+ widget: "InputField"
7555
+ },
7556
+ config: {
7557
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7558
+ main: {
7559
+ label: childLabel || "Labels for Tab"
7560
+ }
7561
+ }
7562
+ },
7563
+ emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
7564
+ ]
7454
7565
  };
7455
7566
  };
7456
7567
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7457
- sizeHolder.options.detail.elements[1] = {
7568
+ sizeHolder.elements[1] = {
7458
7569
  type: "Control",
7459
7570
  scope: `#/properties/value`,
7460
7571
  options: {
@@ -7467,7 +7578,7 @@ sizeHolder.options.detail.elements[1] = {
7467
7578
  }
7468
7579
  }
7469
7580
  };
7470
- sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
7581
+ sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
7471
7582
  const getInputField = (scope, label) => {
7472
7583
  return {
7473
7584
  type: "Control",
@@ -7476,7 +7587,7 @@ const getInputField = (scope, label) => {
7476
7587
  widget: "InputField"
7477
7588
  },
7478
7589
  config: {
7479
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7590
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7480
7591
  main: {
7481
7592
  label
7482
7593
  }
@@ -7491,7 +7602,7 @@ const getRadioInputField = (scope, label, options) => {
7491
7602
  widget: "RadioInputField"
7492
7603
  },
7493
7604
  config: {
7494
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
7605
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
7495
7606
  main: {
7496
7607
  label,
7497
7608
  options
@@ -7506,17 +7617,7 @@ const buildWrapper = (label, elements) => {
7506
7617
  main: {
7507
7618
  label: label || "Details",
7508
7619
  isAccordion: true
7509
- },
7510
- wrapperStyle: {
7511
- marginTop: "-6px",
7512
- marginBottom: "-8px",
7513
- marginLeft: "-34px",
7514
- width: "108%"
7515
- },
7516
- componentsBoxStyle: {
7517
- marginLeft: "12px"
7518
- },
7519
- defaultStyle: true
7620
+ }
7520
7621
  },
7521
7622
  elements: elements || []
7522
7623
  };
@@ -7530,18 +7631,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
7530
7631
  },
7531
7632
  config: {
7532
7633
  layout: layout || 12,
7533
- style: {
7534
- containerStyle: {
7535
- borderRadius: "20px"
7536
- },
7537
- headerContainerStyle: {},
7538
- textAreaStyle: {
7539
- borderRadius: "20px",
7540
- padding: "20px"
7541
- }
7542
- },
7543
7634
  main: {
7544
- heading,
7635
+ label: heading,
7545
7636
  minRows: 8,
7546
7637
  hideButton,
7547
7638
  enableCodeEditor: true
@@ -7557,7 +7648,7 @@ const getSelectField = (scope, label, options) => {
7557
7648
  widget: "SelectInputField"
7558
7649
  },
7559
7650
  config: {
7560
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7651
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7561
7652
  main: {
7562
7653
  label,
7563
7654
  type: "text"
@@ -7573,7 +7664,7 @@ const getMultiSelectField = (scope, label) => {
7573
7664
  widget: "MultipleSelect"
7574
7665
  },
7575
7666
  config: {
7576
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7667
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7577
7668
  main: {
7578
7669
  multiple: true,
7579
7670
  label,
@@ -7582,12 +7673,18 @@ const getMultiSelectField = (scope, label) => {
7582
7673
  }
7583
7674
  };
7584
7675
  };
7585
- const GraphSection = {
7676
+ const BaseSection = {
7586
7677
  type: "WrapperLayout",
7678
+ config: {
7679
+ main: {
7680
+ label: " ",
7681
+ gap: "8px"
7682
+ }
7683
+ },
7587
7684
  elements: []
7588
7685
  };
7589
7686
  const buildPropertiesSection = function(type) {
7590
- let uiSchema = _.cloneDeep(GraphSection);
7687
+ let uiSchema = _.cloneDeep(BaseSection);
7591
7688
  switch (type) {
7592
7689
  case "TreeMap":
7593
7690
  uiSchema.elements = [
@@ -7642,7 +7739,7 @@ const buildPropertiesSection = function(type) {
7642
7739
  case "Text":
7643
7740
  uiSchema.elements = [
7644
7741
  getInputField("placeholder", "Placeholder"),
7645
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7742
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7646
7743
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7647
7744
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7648
7745
  ];
@@ -7651,7 +7748,8 @@ const buildPropertiesSection = function(type) {
7651
7748
  uiSchema.elements = [
7652
7749
  getInputField("placeholder", "Placeholder"),
7653
7750
  getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
7654
- getInputField("codeEditorLanguage", "Enter Code Language")
7751
+ getInputField("codeEditorLanguage", "Enter Code Language"),
7752
+ emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
7655
7753
  ];
7656
7754
  break;
7657
7755
  case "SpeedoMeter":
@@ -7731,7 +7829,7 @@ const buildPropertiesSection = function(type) {
7731
7829
  getInputField("xAxisValue", "X-AxisValue"),
7732
7830
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7733
7831
  getInputField("leftMargin", "Left Margin"),
7734
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7832
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7735
7833
  getArrayControl("legendLabels", "label"),
7736
7834
  getArrayControl("pieArcColors", "color")
7737
7835
  ];
@@ -7812,7 +7910,13 @@ const buildPropertiesSection = function(type) {
7812
7910
  return uiSchema;
7813
7911
  };
7814
7912
  const StyleSection = {
7815
- type: "HorizontalLayout",
7913
+ type: "WrapperLayout",
7914
+ config: {
7915
+ main: {
7916
+ label: " ",
7917
+ gap: "8px"
7918
+ }
7919
+ },
7816
7920
  elements: [
7817
7921
  {
7818
7922
  type: "Control",
@@ -7828,14 +7932,7 @@ const StyleSection = {
7828
7932
  lg: 12
7829
7933
  },
7830
7934
  style: {
7831
- containerStyle: {
7832
- borderRadius: "20px"
7833
- },
7834
- headerContainerStyle: {},
7835
- textAreaStyle: {
7836
- borderRadius: "20px",
7837
- padding: "20px"
7838
- }
7935
+ "& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
7839
7936
  },
7840
7937
  main: {
7841
7938
  heading: "JSON Style",
@@ -7869,15 +7966,20 @@ const TableSection = (theme) => {
7869
7966
  },
7870
7967
  config: {
7871
7968
  main: {
7872
- color: "info",
7873
7969
  onClick: "widgetAddClickHandler",
7874
7970
  size: "small",
7875
- icon: "AddIcon",
7876
- iconLabel: "Add New",
7971
+ icon: "TableAddIcon",
7972
+ iconLabel: "Add",
7877
7973
  styleDefault: true
7878
7974
  },
7879
7975
  style: {
7880
- mt: "6px"
7976
+ mt: "6px",
7977
+ color: "inherit",
7978
+ fill: "inherit",
7979
+ "&:hover": {
7980
+ color: "inherit",
7981
+ fill: "inherit"
7982
+ }
7881
7983
  }
7882
7984
  }
7883
7985
  }
@@ -7893,12 +7995,18 @@ const TableSection = (theme) => {
7893
7995
  main: {
7894
7996
  onClick: "copyPasteElement",
7895
7997
  size: "small",
7896
- icon: "PasteIcon",
7998
+ icon: "TablePaste",
7897
7999
  iconLabel: "Paste",
7898
8000
  styleDefault: true
7899
8001
  },
7900
8002
  style: {
7901
- mt: "6px"
8003
+ mt: "6px",
8004
+ color: "inherit",
8005
+ fill: "inherit",
8006
+ "&:hover": {
8007
+ color: "inherit",
8008
+ fill: "inherit"
8009
+ }
7902
8010
  }
7903
8011
  }
7904
8012
  }
@@ -7913,16 +8021,21 @@ const TableSection = (theme) => {
7913
8021
  elements: [
7914
8022
  {
7915
8023
  accessorKey: "name",
7916
- header: "Name"
8024
+ header: "Name",
8025
+ type: "string",
8026
+ size: 300
7917
8027
  },
7918
8028
  {
7919
8029
  accessorKey: "type",
7920
- header: "Type"
8030
+ header: "Type",
8031
+ type: "string",
8032
+ size: 200
7921
8033
  },
7922
8034
  {
7923
8035
  header: "Edit Record",
7924
8036
  field: "Reject_Records",
7925
- flex: 1,
8037
+ size: 150,
8038
+ type: "action",
7926
8039
  widget: {
7927
8040
  type: "Control",
7928
8041
  scope: "#/properties/RejectButton",
@@ -7931,13 +8044,16 @@ const TableSection = (theme) => {
7931
8044
  },
7932
8045
  config: {
7933
8046
  main: {
7934
- icon: "EditIcon",
7935
- color: "primary",
8047
+ icon: "TableEditIcon",
8048
+ size: "small",
7936
8049
  onClick: "editComponents",
7937
8050
  tooltipMessage: "Reject This Record"
7938
8051
  },
7939
8052
  style: {
7940
- color: theme.palette.primary.main
8053
+ fill: theme.palette.primary.main,
8054
+ "& :hover": {
8055
+ fill: theme.palette.primary.dark
8056
+ }
7941
8057
  }
7942
8058
  }
7943
8059
  }
@@ -7945,7 +8061,8 @@ const TableSection = (theme) => {
7945
8061
  {
7946
8062
  header: "Delete",
7947
8063
  field: "Reject_Records",
7948
- flex: 1,
8064
+ size: 150,
8065
+ type: "action",
7949
8066
  widget: {
7950
8067
  type: "Control",
7951
8068
  scope: "#/properties/RejectButton",
@@ -7954,10 +8071,15 @@ const TableSection = (theme) => {
7954
8071
  },
7955
8072
  config: {
7956
8073
  main: {
7957
- icon: "RejectIcon",
7958
- color: "error",
8074
+ icon: "Bin",
7959
8075
  onClick: "deletePopUpComponent",
7960
8076
  tooltipMessage: "Reject This Record"
8077
+ },
8078
+ style: {
8079
+ fill: theme.palette.primary.main,
8080
+ "& :hover": {
8081
+ fill: theme.palette.primary.dark
8082
+ }
7961
8083
  }
7962
8084
  }
7963
8085
  }
@@ -7965,7 +8087,8 @@ const TableSection = (theme) => {
7965
8087
  {
7966
8088
  header: "Copy",
7967
8089
  field: "Copy_Component",
7968
- flex: 1,
8090
+ size: 150,
8091
+ type: "action",
7969
8092
  widget: {
7970
8093
  type: "Control",
7971
8094
  scope: "#/properties/Copy_Component",
@@ -7989,109 +8112,148 @@ const TableSection = (theme) => {
7989
8112
  return uiSchema;
7990
8113
  };
7991
8114
  const ValueTab = {
7992
- type: "HorizontalLayout",
8115
+ type: "WrapperLayout",
8116
+ config: {
8117
+ main: {
8118
+ label: " ",
8119
+ gap: "8px"
8120
+ }
8121
+ },
7993
8122
  elements: [
7994
8123
  {
7995
8124
  type: "Control",
7996
8125
  scope: "#/properties/value",
7997
- layout: 12,
7998
8126
  options: {
7999
- detail: {
8000
- type: "HorizontalLayout",
8001
- elements: [
8002
- {
8003
- type: "Control",
8004
- scope: "#/properties/label",
8005
- options: {
8006
- widget: "InputField"
8007
- },
8008
- config: {
8009
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8010
- main: {
8011
- label: "Label"
8012
- }
8013
- }
8014
- },
8015
- {
8016
- type: "Control",
8017
- scope: "#/properties/value",
8018
- options: {
8019
- widget: "InputField"
8020
- },
8021
- config: {
8022
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8023
- main: {
8024
- label: "Value"
8025
- }
8026
- }
8027
- },
8028
- {
8029
- type: "Control",
8030
- scope: "#/properties/emptyBox",
8031
- options: {
8032
- widget: "EmptyBox"
8033
- },
8034
- config: {
8035
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8036
- }
8127
+ widget: "Array"
8128
+ },
8129
+ config: {
8130
+ layout: 12,
8131
+ main: {
8132
+ label: "Value",
8133
+ childElementLabel: "Value"
8134
+ },
8135
+ style: {
8136
+ marginLeft: "-24px",
8137
+ marginBottom: "24px !important",
8138
+ labelStyle: {
8139
+ marginLeft: "24px"
8140
+ },
8141
+ detailsStyle: {
8142
+ marginLeft: "24px"
8143
+ }
8144
+ }
8145
+ },
8146
+ elements: [
8147
+ {
8148
+ type: "Control",
8149
+ scope: "#/properties/label",
8150
+ options: {
8151
+ widget: "InputField"
8152
+ },
8153
+ config: {
8154
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8155
+ main: {
8156
+ label: "Label"
8037
8157
  }
8038
- ]
8158
+ }
8159
+ },
8160
+ {
8161
+ type: "Control",
8162
+ scope: "#/properties/value",
8163
+ options: {
8164
+ widget: "InputField"
8165
+ },
8166
+ config: {
8167
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8168
+ main: {
8169
+ label: "Value"
8170
+ }
8171
+ }
8172
+ },
8173
+ {
8174
+ type: "Control",
8175
+ scope: "#/properties/emptyBox",
8176
+ options: {
8177
+ widget: "EmptyBox"
8178
+ },
8179
+ config: {
8180
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8181
+ }
8039
8182
  }
8040
- }
8183
+ ]
8041
8184
  }
8042
8185
  ]
8043
8186
  };
8044
8187
  const ValidationSection = {
8045
- type: "HorizontalLayout",
8188
+ type: "WrapperLayout",
8189
+ config: {
8190
+ main: {
8191
+ label: " ",
8192
+ gap: "8px"
8193
+ }
8194
+ },
8046
8195
  elements: [
8047
8196
  {
8048
8197
  type: "Control",
8049
8198
  scope: "#/properties/validation",
8050
- layout: 11.5,
8051
8199
  options: {
8052
- "elementLabelProp": "validationType",
8053
- detail: {
8054
- type: "HorizontalLayout",
8055
- elements: [
8056
- {
8057
- type: "Control",
8058
- scope: "#/properties/validationType",
8059
- options: {
8060
- widget: "SelectInputField"
8061
- },
8062
- config: {
8063
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8064
- main: {
8065
- label: "Validation Type"
8066
- }
8067
- }
8068
- },
8069
- {
8070
- type: "Control",
8071
- scope: "#/properties/validationValue",
8072
- options: {
8073
- widget: "InputField"
8074
- },
8075
- config: {
8076
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8077
- main: {
8078
- label: "Validation Value"
8079
- }
8080
- }
8081
- },
8082
- {
8083
- type: "Control",
8084
- scope: "#/properties/emptyBox",
8085
- options: {
8086
- widget: "EmptyBox"
8087
- },
8088
- config: {
8089
- layout: { xs: 0, sm: 0, md: 4 }
8090
- }
8200
+ widget: "Array"
8201
+ },
8202
+ config: {
8203
+ layout: 12,
8204
+ main: {
8205
+ label: "Validation",
8206
+ childElementLabel: "Validation"
8207
+ },
8208
+ style: {
8209
+ marginLeft: "-24px",
8210
+ marginBottom: "24px !important",
8211
+ labelStyle: {
8212
+ marginLeft: "24px"
8213
+ },
8214
+ detailsStyle: {
8215
+ marginLeft: "24px"
8216
+ }
8217
+ }
8218
+ },
8219
+ elements: [
8220
+ {
8221
+ type: "Control",
8222
+ scope: "#/properties/validationType",
8223
+ options: {
8224
+ widget: "SelectInputField"
8225
+ },
8226
+ config: {
8227
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8228
+ main: {
8229
+ label: "Validation Type"
8091
8230
  }
8092
- ]
8231
+ }
8232
+ },
8233
+ {
8234
+ type: "Control",
8235
+ scope: "#/properties/validationValue",
8236
+ options: {
8237
+ widget: "InputField"
8238
+ },
8239
+ config: {
8240
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8241
+ main: {
8242
+ label: "Validation Value"
8243
+ }
8244
+ }
8245
+ },
8246
+ {
8247
+ type: "Control",
8248
+ scope: "#/properties/emptyBox",
8249
+ options: {
8250
+ widget: "EmptyBox"
8251
+ },
8252
+ config: {
8253
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8254
+ }
8093
8255
  }
8094
- }
8256
+ ]
8095
8257
  }
8096
8258
  ]
8097
8259
  };
@@ -8247,54 +8409,124 @@ function okHandler(store2) {
8247
8409
  }
8248
8410
  }
8249
8411
  const sectionLabels = {
8250
- Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8251
- MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8252
- Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8253
- LeaderBoard: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8412
+ Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8413
+ MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8414
+ Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8415
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8254
8416
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8255
8417
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8256
- SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
8257
- card: ["Core", "Properties", "Event", "Style", "Validation"],
8258
- UploadFile: ["Core", "Event", "Style", "Validation"],
8259
- Graph: ["Core", "Properties", "Event", "Style", "Validation"],
8260
- DownloadFile: ["Core", "Event", "Style", "Validation"],
8261
- Box: ["Core", "Event", "Style", "Validation"],
8262
- Properties: ["Core", "Properties", "Event", "Style", "Validation"],
8263
- ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
8264
- RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
8265
- Slider: ["Core", "Components", "Event", "Style", "Validation"],
8266
- Timer: ["Core", "Event", "Style", "Validation"],
8267
- Rank: ["Core", "Event", "Style", "Validation"],
8268
- Button: ["Core", "Properties", "Event", "Style", "Validation"],
8418
+ SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8419
+ card: ["Core", "Properties", "Events", "Style", "Validation"],
8420
+ UploadFile: ["Core", "Events", "Style", "Validation"],
8421
+ Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8422
+ DownloadFile: ["Core", "Events", "Style", "Validation"],
8423
+ Box: ["Core", "Events", "Style", "Validation"],
8424
+ Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8425
+ ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8426
+ RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8427
+ Slider: ["Core", "Components", "Events", "Style", "Validation"],
8428
+ Timer: ["Core", "Events", "Style", "Validation"],
8429
+ Rank: ["Core", "Events", "Style", "Validation"],
8430
+ Button: ["Core", "Properties", "Events", "Style", "Validation"],
8269
8431
  Array: ["Core", "Components", "Validation"],
8270
- Radio: ["Core", "Properties", "Event", "Style", "Validation"],
8271
- Text: ["Core", "Properties", "Event", "Style", "Validation"],
8272
- TextArea: ["Core", "Properties", "Event", "Style", "Validation"],
8432
+ Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8433
+ Text: ["Core", "Properties", "Events", "Style", "Validation"],
8434
+ TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8273
8435
  PopUp: ["Core", "Components", "Properties", "Style"],
8274
- Stepper: ["Core", "Components", "Properties", "Event", "Style"],
8275
- DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8276
- InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8277
- TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
8436
+ Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8437
+ DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8438
+ InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8439
+ TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8278
8440
  ColumnGroup: ["Core", "Components"],
8279
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8441
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8280
8442
  };
8281
8443
  function refreshPage(type, store2) {
8282
- var _a;
8444
+ var _a, _b;
8283
8445
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8446
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8284
8447
  if (type) {
8285
8448
  const sectionUiSchema = {
8286
8449
  Core: CoreSection,
8287
8450
  Value: ValueTab,
8288
8451
  Style: StyleSection,
8289
- Event: EventSection(store2.theme.myTheme),
8452
+ Events: EventSection(store2.theme.myTheme),
8290
8453
  Components: TableSection(store2.theme.myTheme),
8291
8454
  Properties: buildPropertiesSection(type),
8292
8455
  Validation: ValidationSection
8293
8456
  };
8294
8457
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8295
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
8458
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
8296
8459
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8297
8460
  }
8461
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8462
+ const lastDotIndex = path.lastIndexOf(".");
8463
+ const parentPath = path.slice(0, lastDotIndex);
8464
+ const parentObj = _.get(currentConfig, parentPath);
8465
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8466
+ UiSchema.elements[0].elements[0].elements[4] = {
8467
+ type: "Control",
8468
+ scope: "#/properties/columnFormat",
8469
+ options: {
8470
+ widget: "SelectInputField"
8471
+ },
8472
+ config: {
8473
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8474
+ main: {
8475
+ label: "Column Format"
8476
+ }
8477
+ }
8478
+ };
8479
+ UiSchema.elements[0].elements[0].elements[6] = {
8480
+ type: "Control",
8481
+ scope: "#/properties/filteringOptions",
8482
+ options: {
8483
+ widget: "SelectInputField"
8484
+ },
8485
+ config: {
8486
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8487
+ main: {
8488
+ label: "Filter Mode",
8489
+ multiple: true
8490
+ }
8491
+ }
8492
+ };
8493
+ UiSchema.elements[0].elements[0].elements[5] = {
8494
+ type: "Control",
8495
+ scope: "#/properties/enableFilter",
8496
+ options: {
8497
+ widget: "RadioInputField"
8498
+ },
8499
+ config: {
8500
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8501
+ main: {
8502
+ label: "Enable Filter",
8503
+ options: ["Yes", "No"]
8504
+ }
8505
+ }
8506
+ }, UiSchema.elements[0].elements[0].elements[7] = {
8507
+ type: "Control",
8508
+ scope: "#/properties/enableSorting",
8509
+ options: {
8510
+ widget: "RadioInputField"
8511
+ },
8512
+ config: {
8513
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8514
+ main: {
8515
+ label: "Enable Sorting",
8516
+ options: ["Yes", "No"]
8517
+ }
8518
+ }
8519
+ }, UiSchema.elements[0].elements[0].elements[8] = {
8520
+ type: "Control",
8521
+ scope: "#/properties/proc",
8522
+ config: {
8523
+ layout: { xs: 6, sm: 6, md: 8, lg: 3 }
8524
+ },
8525
+ options: {
8526
+ widget: "EmptyBox"
8527
+ }
8528
+ };
8529
+ }
8298
8530
  if (sessionStorage.getItem("copiedConfig")) {
8299
8531
  this.ElementPathSetter(UiSchema);
8300
8532
  }
@@ -8316,10 +8548,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8316
8548
  return getFormdataFromSessionStorage(path);
8317
8549
  },
8318
8550
  getSchema: function() {
8551
+ var _a, _b, _c;
8319
8552
  const schema2 = _.cloneDeep(ComponentSchema);
8320
8553
  if (sessionStorage.getItem("copiedConfig")) {
8321
8554
  schema2.properties.RemoveItemButton.disabled = false;
8322
8555
  }
8556
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8557
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8558
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8559
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
8560
+ if (path) {
8561
+ const pathArrayAll = path.split(".");
8562
+ const arr = [];
8563
+ pathArrayAll.map((e, i) => {
8564
+ if (i === 0) {
8565
+ arr.push(e);
8566
+ return;
8567
+ }
8568
+ arr.push(`${arr[i - 1]}.${e}`);
8569
+ });
8570
+ arr.map((e) => {
8571
+ const data = _.get(config2, e);
8572
+ pathArray.push({
8573
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
8574
+ path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
8575
+ });
8576
+ });
8577
+ }
8578
+ schema2.properties.pageName.path = pathArray;
8323
8579
  return schema2;
8324
8580
  },
8325
8581
  okHandler: () => okHandler(store2),
@@ -8457,15 +8713,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8457
8713
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8458
8714
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8459
8715
  const notificationMessages = {
8460
- Event: " The event cannot be integrated into the component section.",
8461
- Component: "The component cannot be integrated into the event section."
8716
+ Events: " The Events cannot be integrated into the component section.",
8717
+ Component: "The component cannot be integrated into the Events section."
8462
8718
  };
8463
8719
  if (copiedConfig.Handler && elementType === "Component") {
8464
8720
  store2.setNotify({
8465
- FailMessage: notificationMessages.Event,
8721
+ FailMessage: notificationMessages.Events,
8466
8722
  Fail: true
8467
8723
  });
8468
- } else if (copiedConfig.name && elementType === "Event") {
8724
+ } else if (copiedConfig.name && elementType === "Events") {
8469
8725
  store2.setNotify({
8470
8726
  FailMessage: notificationMessages.Component,
8471
8727
  Fail: true
@@ -8492,7 +8748,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8492
8748
  },
8493
8749
  ElementPathSetter: function(uiSchema, copiedFormData) {
8494
8750
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8495
- uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
8751
+ uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Path: ${formData.name}`;
8496
8752
  }
8497
8753
  };
8498
8754
  };
@@ -8643,18 +8899,18 @@ const EventSchema = {
8643
8899
  eventType: {
8644
8900
  type: "string",
8645
8901
  oneOf: [
8646
- { title: "Click Event", const: "onClick" },
8647
- { title: "Load Event", const: "onLoad" },
8648
- { title: "Change Event", const: "onChange" },
8649
- { title: "Mount Event", const: "onMount" },
8902
+ { title: "Click", const: "onClick" },
8903
+ { title: "Load", const: "onLoad" },
8904
+ { title: "Change", const: "onChange" },
8905
+ { title: "Mount", const: "onMount" },
8650
8906
  { title: "Success", const: "Success" },
8651
- { title: "onStart", const: "onStart" },
8652
- { title: "Cell Renderer", const: "onCellRenderer" },
8653
- { title: "File Upload Event", const: "onUpload" },
8654
- { title: "Back Event", const: "onBack" },
8655
- { title: "Next Event", const: "onNext" },
8656
- { title: "onRowMovement", const: "onRowMovement" },
8657
- { title: "File Download Event", const: "onDownload" },
8907
+ { title: "Start", const: "onStart" },
8908
+ { title: "Cell Render", const: "onCellRenderer" },
8909
+ { title: "Upload", const: "onUpload" },
8910
+ { title: "Back", const: "onBack" },
8911
+ { title: "Next", const: "onNext" },
8912
+ { title: "Row Movement", const: "onRowMovement" },
8913
+ { title: "Download", const: "onDownload" },
8658
8914
  { title: "Fail", const: "Fail" }
8659
8915
  ]
8660
8916
  },
@@ -8662,7 +8918,7 @@ const EventSchema = {
8662
8918
  type: "string",
8663
8919
  oneOf: [
8664
8920
  { title: "Custom", const: "custom" },
8665
- { title: "Api", const: "api" },
8921
+ { title: "API", const: "api" },
8666
8922
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8667
8923
  { title: "Refresh", const: "refresh" }
8668
8924
  ]
@@ -8691,47 +8947,49 @@ const EventSchema = {
8691
8947
  },
8692
8948
  RemoveItemButton: {
8693
8949
  disabled: true
8950
+ },
8951
+ pageName: {
8952
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8694
8953
  }
8695
8954
  },
8696
8955
  required: ["eventType", "Handler"]
8697
8956
  };
8698
8957
  const EventUiSchema = (theme) => {
8699
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8958
+ var _a;
8700
8959
  const uiSchema = {
8701
8960
  type: "HorizontalLayout",
8702
- heading: "Component",
8961
+ heading: "Page-Events",
8703
8962
  elements: [
8704
- {
8705
- type: "Control",
8706
- scope: "#/properties/pageName",
8707
- options: {
8708
- widget: "Box"
8709
- },
8710
- config: {
8711
- layout: 12,
8712
- main: {
8713
- heading: " "
8714
- },
8715
- style: {
8716
- marginLeft: theme.spacing(3),
8717
- width: "auto",
8718
- fontSize: "12px",
8719
- color: "gray"
8720
- }
8721
- }
8722
- },
8723
8963
  {
8724
8964
  type: "TabLayout",
8725
8965
  config: {
8726
8966
  main: {
8727
- tabLabels: ["Core", "Response Event"],
8728
- defaultStyle: true,
8967
+ tabLabels: ["Core", "Response Events"],
8729
8968
  id: "event"
8969
+ },
8970
+ style: {
8971
+ TabPanelStyle: {
8972
+ padding: 0
8973
+ }
8974
+ },
8975
+ TabsStyle: {
8976
+ marginBottom: "3px",
8977
+ paddingBottom: "4px",
8978
+ boxShadow: "0px 3px 4px #afafaf80",
8979
+ "& .MuiTabs-indicator": {
8980
+ bottom: "6px"
8981
+ }
8730
8982
  }
8731
8983
  },
8732
8984
  elements: [
8733
8985
  {
8734
- type: "HorizontalLayout",
8986
+ type: "WrapperLayout",
8987
+ config: {
8988
+ main: {
8989
+ label: " ",
8990
+ gap: "8px"
8991
+ }
8992
+ },
8735
8993
  elements: [
8736
8994
  {
8737
8995
  type: "Control",
@@ -8740,9 +8998,9 @@ const EventUiSchema = (theme) => {
8740
8998
  widget: "SelectInputField"
8741
8999
  },
8742
9000
  config: {
8743
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9001
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8744
9002
  main: {
8745
- label: "Event Type",
9003
+ label: "Event's Type",
8746
9004
  type: "text"
8747
9005
  }
8748
9006
  }
@@ -8755,7 +9013,7 @@ const EventUiSchema = (theme) => {
8755
9013
  widget: "EmptyBox"
8756
9014
  },
8757
9015
  config: {
8758
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
9016
+ layout: { xs: 0, sm: 0, md: 4, lg: 6 }
8759
9017
  }
8760
9018
  }
8761
9019
  ]
@@ -8781,12 +9039,18 @@ const EventUiSchema = (theme) => {
8781
9039
  main: {
8782
9040
  onClick: "addEvent",
8783
9041
  size: "small",
8784
- icon: "AddIcon",
8785
- iconLabel: "Add New",
9042
+ icon: "TableAddIcon",
9043
+ iconLabel: "Add",
8786
9044
  styleDefault: true
8787
9045
  },
8788
9046
  style: {
8789
- mt: "6px"
9047
+ mt: "6px",
9048
+ color: "inherit",
9049
+ fill: "inherit",
9050
+ "&:hover": {
9051
+ color: "inherit",
9052
+ fill: "inherit"
9053
+ }
8790
9054
  }
8791
9055
  }
8792
9056
  }
@@ -8802,12 +9066,18 @@ const EventUiSchema = (theme) => {
8802
9066
  main: {
8803
9067
  onClick: "copyPasteElement",
8804
9068
  size: "small",
8805
- icon: "PasteIcon",
9069
+ icon: "TablePaste",
8806
9070
  iconLabel: "Paste",
8807
9071
  styleDefault: true
8808
9072
  },
8809
9073
  style: {
8810
- mt: "6px"
9074
+ mt: "6px",
9075
+ color: "inherit",
9076
+ fill: "inherit",
9077
+ "&:hover": {
9078
+ color: "inherit",
9079
+ fill: "inherit"
9080
+ }
8811
9081
  }
8812
9082
  }
8813
9083
  }
@@ -8822,15 +9092,21 @@ const EventUiSchema = (theme) => {
8822
9092
  elements: [
8823
9093
  {
8824
9094
  accessorKey: "eventType",
8825
- header: "Event Type"
9095
+ header: "Event's Type",
9096
+ size: 300,
9097
+ type: "string"
8826
9098
  },
8827
9099
  {
8828
9100
  accessorKey: "Handler",
8829
- header: "Handler"
9101
+ header: "Handler",
9102
+ size: 200,
9103
+ type: "string"
8830
9104
  },
8831
9105
  {
8832
9106
  accessorKey: "Edit_Approve_Records",
8833
- header: "Edit Widget",
9107
+ header: "Edit",
9108
+ type: "action",
9109
+ size: 150,
8834
9110
  widget: {
8835
9111
  type: "Control",
8836
9112
  scope: "#/properties/Edit_Records",
@@ -8839,14 +9115,16 @@ const EventUiSchema = (theme) => {
8839
9115
  },
8840
9116
  config: {
8841
9117
  main: {
8842
- color: "info",
8843
9118
  size: "small",
8844
- icon: "EditIcon",
9119
+ icon: "TableEditIcon",
8845
9120
  tooltipMessage: "Edit This Record",
8846
9121
  onClick: "editEvent"
8847
9122
  },
8848
9123
  style: {
8849
- color: theme.palette.primary.main
9124
+ fill: theme.palette.primary.main,
9125
+ "& :hover": {
9126
+ fill: theme.palette.primary.dark
9127
+ }
8850
9128
  }
8851
9129
  }
8852
9130
  }
@@ -8854,6 +9132,8 @@ const EventUiSchema = (theme) => {
8854
9132
  {
8855
9133
  accessorKey: "Reject_Records",
8856
9134
  header: "Delete",
9135
+ type: "action",
9136
+ size: 150,
8857
9137
  widget: {
8858
9138
  type: "Control",
8859
9139
  scope: "#/properties/RejectButton",
@@ -8862,10 +9142,15 @@ const EventUiSchema = (theme) => {
8862
9142
  },
8863
9143
  config: {
8864
9144
  main: {
8865
- icon: "RejectIcon",
8866
- color: "error",
9145
+ icon: "Bin",
8867
9146
  tooltipMessage: "Reject This Record",
8868
9147
  onClick: "deletePopUpEvent"
9148
+ },
9149
+ style: {
9150
+ fill: theme.palette.primary.main,
9151
+ "& :hover": {
9152
+ fill: theme.palette.primary.dark
9153
+ }
8869
9154
  }
8870
9155
  }
8871
9156
  }
@@ -8873,7 +9158,8 @@ const EventUiSchema = (theme) => {
8873
9158
  {
8874
9159
  header: "Copy",
8875
9160
  field: "Copy_Event",
8876
- flex: 1,
9161
+ type: "action",
9162
+ size: 150,
8877
9163
  widget: {
8878
9164
  type: "Control",
8879
9165
  scope: "#/properties/Copy_Event",
@@ -8894,103 +9180,59 @@ const EventUiSchema = (theme) => {
8894
9180
  ]
8895
9181
  },
8896
9182
  {
8897
- type: "HorizontalLayout",
9183
+ type: "WrapperLayout",
8898
9184
  config: {
8899
- layout: { xs: 12, sm: 6 }
9185
+ main: {
9186
+ gap: "8px"
9187
+ }
8900
9188
  },
8901
9189
  elements: [
8902
9190
  {
8903
9191
  type: "Control",
8904
- scope: "#/properties/RemoveItemButton",
9192
+ scope: "#/properties/btn",
8905
9193
  options: {
8906
- widget: "IconButton"
9194
+ widget: "Button"
8907
9195
  },
8908
9196
  config: {
8909
- layout: { xs: 1, sm: 1 },
9197
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
8910
9198
  main: {
8911
- onClick: "RemoveItemButton",
8912
- size: "large",
8913
- icon: "RejectIcon",
8914
- styleDefault: true
8915
- },
8916
- style: {
8917
- marginLeft: "-10px"
9199
+ name: "Ok",
9200
+ variant: "contained",
9201
+ type: "text",
9202
+ onClick: "okHandler",
9203
+ size: "medium"
8918
9204
  }
8919
9205
  }
8920
9206
  },
8921
9207
  {
8922
9208
  type: "Control",
8923
- scope: "#/properties/copiedElementDetails",
9209
+ scope: "#/properties/btnSubmit",
8924
9210
  options: {
8925
- widget: "Box"
9211
+ widget: "Button"
8926
9212
  },
8927
9213
  config: {
8928
- layout: { xs: 6, sm: 6 },
9214
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
8929
9215
  main: {
8930
- heading: "No element copied"
8931
- },
8932
- style: {
8933
- color: "#535557",
8934
- marginLeft: "-10px",
8935
- fontSize: "12px",
8936
- marginTop: "4px"
9216
+ name: "Save & Exit",
9217
+ variant: "contained",
9218
+ type: "text",
9219
+ onClick: "saveHandler",
9220
+ size: "medium"
8937
9221
  }
8938
9222
  }
8939
9223
  },
8940
9224
  {
8941
9225
  type: "Control",
8942
9226
  scope: "#/properties/EmptyBox",
9227
+ config: {
9228
+ layout: { xs: 4, sm: 7, md: 8, lg: 9 }
9229
+ },
8943
9230
  options: {
8944
9231
  widget: "EmptyBox"
8945
- },
8946
- config: {
8947
- layout: { xs: 1, sm: 5 }
8948
9232
  }
8949
9233
  }
8950
9234
  ]
8951
9235
  },
8952
- {
8953
- type: "Control",
8954
- scope: "#/properties/btn",
8955
- options: {
8956
- widget: "Button"
8957
- },
8958
- config: {
8959
- layout: { xs: 4, sm: 2 },
8960
- main: {
8961
- name: "Ok",
8962
- startIcon: "ApproveIcon",
8963
- variant: "contained",
8964
- type: "text",
8965
- onClick: "okHandler",
8966
- size: "medium"
8967
- },
8968
- style: {
8969
- float: "right"
8970
- }
8971
- }
8972
- },
8973
- {
8974
- type: "Control",
8975
- scope: "#/properties/btnSubmit",
8976
- options: {
8977
- widget: "Button"
8978
- },
8979
- config: {
8980
- layout: { xs: 4, sm: 2 },
8981
- main: {
8982
- name: "Save & Exit",
8983
- startIcon: "ApproveIcon",
8984
- variant: "contained",
8985
- type: "text",
8986
- onClick: "saveHandler",
8987
- size: "medium"
8988
- },
8989
- style: {
8990
- float: "right"
8991
- }
8992
- }
8993
- },
8994
9236
  {
8995
9237
  type: "Control",
8996
9238
  scope: "#/properties/popUpEvent",
@@ -9019,15 +9261,17 @@ const EventUiSchema = (theme) => {
9019
9261
  config: {
9020
9262
  layout: 11,
9021
9263
  main: {
9022
- heading: "Are you sure you want to delete ?"
9264
+ heading: "Are you sure you want to delete this Event ?"
9023
9265
  },
9024
9266
  style: {
9025
- marginTop: "-20px",
9026
9267
  fontSize: "20px",
9027
9268
  "&.MuiTypography-root": {
9028
- padding: "10px 30px 20px 30px",
9269
+ padding: "0px 20px",
9029
9270
  textAlign: "center",
9030
- lineHeight: "1"
9271
+ lineHeight: "1.2",
9272
+ fontWeight: "normal",
9273
+ fontSize: "18px",
9274
+ marginBottom: theme.spacing(5)
9031
9275
  }
9032
9276
  }
9033
9277
  }
@@ -9051,13 +9295,14 @@ const EventUiSchema = (theme) => {
9051
9295
  name: "No",
9052
9296
  startIcon: "ApproveIcon",
9053
9297
  variant: "contained",
9054
- color: "info",
9055
9298
  type: "text",
9056
9299
  onClick: "deletePopUpEvent",
9057
9300
  size: "large"
9058
9301
  },
9059
9302
  style: {
9060
9303
  position: "absolute",
9304
+ padding: "8px 0px",
9305
+ fontSize: "16px",
9061
9306
  bottom: 0,
9062
9307
  left: 0,
9063
9308
  width: "50%",
@@ -9085,7 +9330,6 @@ const EventUiSchema = (theme) => {
9085
9330
  layout: 6,
9086
9331
  main: {
9087
9332
  name: "Yes",
9088
- startIcon: "ApproveIcon",
9089
9333
  variant: "contained",
9090
9334
  color: "error",
9091
9335
  type: "text",
@@ -9094,6 +9338,8 @@ const EventUiSchema = (theme) => {
9094
9338
  },
9095
9339
  style: {
9096
9340
  position: "absolute",
9341
+ padding: "8px 0px",
9342
+ fontSize: "16px",
9097
9343
  bottom: 0,
9098
9344
  right: 0,
9099
9345
  width: "50%",
@@ -9114,6 +9360,27 @@ const EventUiSchema = (theme) => {
9114
9360
  }
9115
9361
  ]
9116
9362
  },
9363
+ {
9364
+ type: "Control",
9365
+ scope: "#/properties/pageName",
9366
+ options: {
9367
+ widget: "Breadcrumb"
9368
+ },
9369
+ config: {
9370
+ layout: 12,
9371
+ main: {},
9372
+ style: {
9373
+ paddingLeft: theme.spacing(3),
9374
+ color: theme.palette.grey[600],
9375
+ fontSize: "10px",
9376
+ position: "fixed",
9377
+ bottom: "24px",
9378
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
9379
+ borderTop: `1px solid ${theme.palette.common.black}29`,
9380
+ backgroundColor: theme.palette.background.default
9381
+ }
9382
+ }
9383
+ },
9117
9384
  {
9118
9385
  type: "Control",
9119
9386
  scope: "#/properties/notify",
@@ -9131,7 +9398,7 @@ const EventUiSchema = (theme) => {
9131
9398
  style: {
9132
9399
  flexDirection: "row",
9133
9400
  position: "absolute",
9134
- bottom: 0,
9401
+ bottom: 10,
9135
9402
  height: "fit-content",
9136
9403
  overflow: "hidden",
9137
9404
  zIndex: 1e3,
@@ -9150,78 +9417,19 @@ const EventUiSchema = (theme) => {
9150
9417
  heading: "Copywriter@ACT21.IO"
9151
9418
  },
9152
9419
  style: {
9153
- color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
9420
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
9154
9421
  fontSize: "11px",
9155
9422
  textAlign: "center",
9156
- lineHeight: 2,
9423
+ lineHeight: 0,
9157
9424
  width: "fit-content",
9158
9425
  left: "50%",
9159
9426
  position: "relative",
9160
- margin: 0,
9427
+ margin: "revert",
9161
9428
  flexGrow: 1,
9162
9429
  height: 0,
9163
9430
  transform: "translate(-50%, 0%)"
9164
9431
  }
9165
9432
  }
9166
- },
9167
- {
9168
- type: "Control",
9169
- scope: "#/properties/FooterBackIcon",
9170
- options: {
9171
- widget: "Box"
9172
- },
9173
- config: {
9174
- main: {
9175
- iconName: "PrevIcon",
9176
- onClick: "backHandler",
9177
- width: "fit-content"
9178
- },
9179
- style: {
9180
- fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
9181
- width: 20,
9182
- height: 0,
9183
- top: 0,
9184
- right: { xs: "12px", sm: "84px" },
9185
- position: "absolute",
9186
- fontSize: "12px",
9187
- cursor: "pointer",
9188
- ":hover": {
9189
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9190
- },
9191
- marginRight: "20px"
9192
- }
9193
- }
9194
- },
9195
- {
9196
- type: "Control",
9197
- scope: "#/properties/FooterBackHandlerText",
9198
- options: {
9199
- widget: "Box"
9200
- },
9201
- config: {
9202
- main: {
9203
- heading: "Previous Page",
9204
- onClick: "backHandler"
9205
- },
9206
- style: {
9207
- display: { xs: "none", sm: "flex" },
9208
- textAlign: "left",
9209
- lineHeight: 1,
9210
- height: 0,
9211
- width: "fit-content",
9212
- color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
9213
- fontSize: "12px",
9214
- cursor: "pointer",
9215
- marginLeft: "2px",
9216
- top: 3,
9217
- right: "12px",
9218
- position: "absolute",
9219
- ":hover": {
9220
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9221
- },
9222
- marginRight: "4px"
9223
- }
9224
- }
9225
9433
  }
9226
9434
  ]
9227
9435
  }
@@ -9239,7 +9447,7 @@ const APISection = {
9239
9447
  widget: "SelectInputField"
9240
9448
  },
9241
9449
  config: {
9242
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9450
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9243
9451
  main: {
9244
9452
  label: "Method",
9245
9453
  type: "text"
@@ -9253,23 +9461,13 @@ const APISection = {
9253
9461
  widget: "InputField"
9254
9462
  },
9255
9463
  config: {
9256
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9257
- main: {
9258
- label: "Path",
9259
- type: "text",
9260
- multiple: false,
9261
- options: []
9262
- }
9263
- }
9264
- },
9265
- {
9266
- type: "Control",
9267
- scope: "#/properties/emptyBox",
9268
- options: {
9269
- widget: "EmptyBox"
9270
- },
9271
- config: {
9272
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9464
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9465
+ main: {
9466
+ label: "Path",
9467
+ type: "text",
9468
+ multiple: false,
9469
+ options: []
9470
+ }
9273
9471
  }
9274
9472
  },
9275
9473
  {
@@ -9279,106 +9477,132 @@ const APISection = {
9279
9477
  widget: "EmptyBox"
9280
9478
  },
9281
9479
  config: {
9282
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9480
+ layout: { xs: 0, sm: 0, md: 4, lg: 6 }
9283
9481
  }
9284
9482
  },
9285
9483
  {
9286
9484
  type: "Control",
9287
9485
  scope: "#/properties/headers",
9288
- layout: 11.5,
9289
9486
  options: {
9290
- "elementLabelProp": "key",
9291
- detail: {
9292
- type: "HorizontalLayout",
9293
- elements: [
9294
- {
9295
- type: "Control",
9296
- scope: "#/properties/key",
9297
- options: {
9298
- widget: "InputField"
9299
- },
9300
- config: {
9301
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9302
- main: {
9303
- label: "Key"
9304
- }
9305
- }
9306
- },
9307
- {
9308
- type: "Control",
9309
- scope: "#/properties/value",
9310
- options: {
9311
- widget: "InputField"
9312
- },
9313
- config: {
9314
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9315
- main: {
9316
- label: "Value"
9317
- }
9318
- }
9319
- },
9320
- {
9321
- type: "Control",
9322
- scope: "#/properties/emptyBox",
9323
- options: {
9324
- widget: "EmptyBox"
9325
- },
9326
- config: {
9327
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9328
- }
9487
+ widget: "Array"
9488
+ },
9489
+ config: {
9490
+ layout: 12,
9491
+ main: {
9492
+ label: "Headers",
9493
+ childElementLabel: "Headers"
9494
+ },
9495
+ style: {
9496
+ marginLeft: "-24px",
9497
+ marginBottom: "24px !important",
9498
+ labelStyle: {
9499
+ marginLeft: "24px"
9500
+ },
9501
+ detailsStyle: {
9502
+ marginLeft: "24px"
9503
+ }
9504
+ }
9505
+ },
9506
+ elements: [
9507
+ {
9508
+ type: "Control",
9509
+ scope: "#/properties/key",
9510
+ options: {
9511
+ widget: "InputField"
9512
+ },
9513
+ config: {
9514
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9515
+ main: {
9516
+ label: "Key"
9329
9517
  }
9330
- ]
9518
+ }
9519
+ },
9520
+ {
9521
+ type: "Control",
9522
+ scope: "#/properties/value",
9523
+ options: {
9524
+ widget: "InputField"
9525
+ },
9526
+ config: {
9527
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9528
+ main: {
9529
+ label: "Value"
9530
+ }
9531
+ }
9532
+ },
9533
+ {
9534
+ type: "Control",
9535
+ scope: "#/properties/emptyBox",
9536
+ options: {
9537
+ widget: "EmptyBox"
9538
+ },
9539
+ config: {
9540
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9541
+ }
9331
9542
  }
9332
- }
9543
+ ]
9333
9544
  },
9334
9545
  {
9335
9546
  type: "Control",
9336
9547
  scope: "#/properties/body",
9337
- layout: 11.5,
9338
9548
  options: {
9339
- "elementLabelProp": "key",
9340
- detail: {
9341
- type: "HorizontalLayout",
9342
- elements: [
9343
- {
9344
- type: "Control",
9345
- scope: "#/properties/key",
9346
- options: {
9347
- widget: "InputField"
9348
- },
9349
- config: {
9350
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9351
- main: {
9352
- label: "Key"
9353
- }
9354
- }
9355
- },
9356
- {
9357
- type: "Control",
9358
- scope: "#/properties/value",
9359
- options: {
9360
- widget: "InputField"
9361
- },
9362
- config: {
9363
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9364
- main: {
9365
- label: "Value"
9366
- }
9367
- }
9368
- },
9369
- {
9370
- type: "Control",
9371
- scope: "#/properties/emptyBox",
9372
- options: {
9373
- widget: "EmptyBox"
9374
- },
9375
- config: {
9376
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9377
- }
9549
+ widget: "Array"
9550
+ },
9551
+ config: {
9552
+ layout: 12,
9553
+ main: {
9554
+ label: "Body",
9555
+ childElementLabel: "Body"
9556
+ },
9557
+ style: {
9558
+ marginLeft: "-24px",
9559
+ marginBottom: "24px !important",
9560
+ labelStyle: {
9561
+ marginLeft: "24px"
9562
+ },
9563
+ detailsStyle: {
9564
+ marginLeft: "24px"
9565
+ }
9566
+ }
9567
+ },
9568
+ elements: [
9569
+ {
9570
+ type: "Control",
9571
+ scope: "#/properties/key",
9572
+ options: {
9573
+ widget: "InputField"
9574
+ },
9575
+ config: {
9576
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9577
+ main: {
9578
+ label: "Key"
9378
9579
  }
9379
- ]
9580
+ }
9581
+ },
9582
+ {
9583
+ type: "Control",
9584
+ scope: "#/properties/value",
9585
+ options: {
9586
+ widget: "InputField"
9587
+ },
9588
+ config: {
9589
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9590
+ main: {
9591
+ label: "Value"
9592
+ }
9593
+ }
9594
+ },
9595
+ {
9596
+ type: "Control",
9597
+ scope: "#/properties/emptyBox",
9598
+ options: {
9599
+ widget: "EmptyBox"
9600
+ },
9601
+ config: {
9602
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9603
+ }
9380
9604
  }
9381
- }
9605
+ ]
9382
9606
  },
9383
9607
  getTextArea("apiBody", "Transformer", true, 12)
9384
9608
  ]
@@ -9389,116 +9613,134 @@ const refreshSectionUiSchema = {
9389
9613
  {
9390
9614
  type: "Control",
9391
9615
  scope: "#/properties/refreshElements",
9392
- layout: 11.5,
9393
9616
  options: {
9394
- detail: {
9395
- type: "HorizontalLayout",
9396
- elements: [
9397
- {
9398
- type: "Control",
9399
- scope: "#/properties/value",
9400
- options: {
9401
- widget: "InputField"
9402
- },
9403
- config: {
9404
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
9405
- main: {
9406
- label: "Value"
9407
- }
9408
- }
9409
- },
9410
- {
9411
- type: "Control",
9412
- scope: "#/properties/emptyBox",
9413
- options: {
9414
- widget: "EmptyBox"
9415
- },
9416
- config: {
9417
- layout: { xs: 0, sm: 6, md: 4, lg: 4 },
9418
- main: {}
9419
- }
9420
- },
9421
- {
9422
- type: "Control",
9423
- scope: "#/properties/emptyBox",
9424
- options: {
9425
- widget: "EmptyBox"
9426
- },
9427
- config: {
9428
- layout: { xs: 0, sm: 0, md: 4, lg: 4 },
9429
- main: {}
9430
- }
9617
+ widget: "Array"
9618
+ },
9619
+ config: {
9620
+ layout: 12,
9621
+ main: {
9622
+ label: "Refresh Elements",
9623
+ childElementLabel: "Refresh Elements"
9624
+ },
9625
+ style: {
9626
+ marginLeft: "-24px",
9627
+ marginBottom: "24px !important",
9628
+ labelStyle: {
9629
+ marginLeft: "24px"
9630
+ },
9631
+ detailsStyle: {
9632
+ marginLeft: "24px"
9633
+ }
9634
+ }
9635
+ },
9636
+ elements: [
9637
+ {
9638
+ type: "Control",
9639
+ scope: "#/properties/value",
9640
+ options: {
9641
+ widget: "InputField"
9642
+ },
9643
+ config: {
9644
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9645
+ main: {
9646
+ label: "Value"
9431
9647
  }
9432
- ]
9648
+ }
9649
+ },
9650
+ {
9651
+ type: "Control",
9652
+ scope: "#/properties/emptyBox",
9653
+ options: {
9654
+ widget: "EmptyBox"
9655
+ },
9656
+ config: {
9657
+ layout: { xs: 6, sm: 6, md: 8, lg: 8 },
9658
+ main: {}
9659
+ }
9433
9660
  }
9434
- }
9661
+ ]
9435
9662
  }
9436
9663
  ]
9437
9664
  };
9438
- var emptyBox = {
9439
- type: "Control",
9440
- scope: "#/properties/emptyBox",
9441
- options: {
9442
- widget: "EmptyBox"
9443
- },
9444
- config: {
9445
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
9446
- main: {},
9447
- style: {}
9448
- }
9449
- };
9450
9665
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9451
9666
  return {
9452
9667
  setPage: async function() {
9453
9668
  const formdata = await this.getFormData();
9454
9669
  store2.setFormdata(formdata);
9455
9670
  const schema2 = await this.getSchema();
9671
+ console.log("SettingSchema>>", schema2);
9456
9672
  store2.setSchema(schema2);
9457
9673
  this.refreshPage(formdata.Handler, store2);
9458
9674
  },
9459
9675
  refreshPage: (handlerType, store22) => {
9676
+ var _a, _b, _c;
9460
9677
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9461
9678
  const schema2 = _.cloneDeep(EventSchema);
9462
9679
  if (handlerType) {
9463
9680
  if (handlerType === "custom") {
9464
- uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
9465
- uiSchema.elements[1].elements[0].elements[3] = {
9681
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
9682
+ "isSync",
9683
+ "Run in Sync",
9684
+ ["Yes", "No"]
9685
+ );
9686
+ uiSchema.elements[0].elements[0].elements[3] = {
9466
9687
  type: "Control",
9467
9688
  scope: "#/properties/emptyBox",
9468
9689
  options: {
9469
9690
  widget: "EmptyBox"
9470
9691
  },
9471
9692
  config: {
9472
- layout: { xs: 0, sm: 6, md: 0, lg: 0 },
9693
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 },
9473
9694
  main: {},
9474
9695
  style: {}
9475
9696
  }
9476
9697
  };
9477
- uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
9698
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9699
+ "eventCode",
9700
+ "Write Custom Code",
9701
+ false
9702
+ );
9478
9703
  schema2.required = ["eventType", "Handler", "eventCode"];
9479
9704
  } else if (handlerType === "api") {
9480
- uiSchema.elements[1].elements[0].elements[2] = emptyBox;
9481
- uiSchema.elements[1].elements[0].elements[3] = APISection;
9705
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9706
+ xs: 0,
9707
+ sm: 0,
9708
+ md: 4,
9709
+ lg: 6
9710
+ });
9711
+ uiSchema.elements[0].elements[0].elements[3] = APISection;
9482
9712
  schema2.required = ["eventType", "Handler", "method", "path"];
9483
9713
  } else if (handlerType === "inBuiltFunction") {
9484
- uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
9485
- uiSchema.elements[1].elements[0].elements[3] = {
9714
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField(
9715
+ "inBuiltFunctionType",
9716
+ "Function Name"
9717
+ );
9718
+ uiSchema.elements[0].elements[0].elements[3] = {
9486
9719
  type: "Control",
9487
9720
  scope: "#/properties/emptyBox",
9488
9721
  options: {
9489
9722
  widget: "EmptyBox"
9490
9723
  },
9491
9724
  config: {
9492
- layout: { xs: 6, sm: 6, md: 0, lg: 0 },
9725
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 },
9493
9726
  main: {},
9494
9727
  style: {}
9495
9728
  }
9496
9729
  };
9497
- uiSchema.elements[1].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
9730
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9731
+ "funcParametersCode",
9732
+ "Write Custom Code for Functions Parameter",
9733
+ true
9734
+ );
9498
9735
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9499
9736
  } else if (handlerType === "refresh") {
9500
- uiSchema.elements[1].elements[0].elements[2] = emptyBox;
9501
- uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
9737
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9738
+ xs: 0,
9739
+ sm: 0,
9740
+ md: 4,
9741
+ lg: 6
9742
+ });
9743
+ uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9502
9744
  schema2.properties.refreshElements.required = ["value"];
9503
9745
  schema2.properties.refreshElements.items.required = ["value"];
9504
9746
  schema2.required = ["eventType", "Handler", "refreshElements"];
@@ -9511,9 +9753,35 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9511
9753
  ];
9512
9754
  }
9513
9755
  if (sessionStorage.getItem("copiedConfig")) {
9514
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9756
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9757
+ uiSchema
9758
+ );
9515
9759
  schema2.properties.RemoveItemButton.disabled = false;
9516
9760
  }
9761
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9762
+ const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
9763
+ const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
9764
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9765
+ if (path) {
9766
+ const pathArrayAll = path.split(".");
9767
+ const arr = [];
9768
+ pathArrayAll.map((e, i) => {
9769
+ if (i === 0) {
9770
+ arr.push(e);
9771
+ return;
9772
+ }
9773
+ arr.push(`${arr[i - 1]}.${e}`);
9774
+ });
9775
+ arr.map((e) => {
9776
+ const data = _.get(config2, e);
9777
+ pathArray.push({
9778
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9779
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9780
+ });
9781
+ });
9782
+ }
9783
+ console.log("pathArray>>", pathArray);
9784
+ schema2.properties.pageName.path = pathArray;
9517
9785
  store22.setSchema(schema2);
9518
9786
  store22.setUiSchema(uiSchema);
9519
9787
  },
@@ -9522,10 +9790,35 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9522
9790
  return EventUiSchema;
9523
9791
  },
9524
9792
  getSchema: () => {
9793
+ var _a, _b, _c;
9525
9794
  const schema2 = _.cloneDeep(EventSchema);
9526
9795
  if (sessionStorage.getItem("copiedConfig")) {
9527
9796
  schema2.properties.RemoveItemButton.disabled = false;
9528
9797
  }
9798
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9799
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9800
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9801
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9802
+ if (path) {
9803
+ const pathArrayAll = path.split(".");
9804
+ const arr = [];
9805
+ pathArrayAll.map((e, i) => {
9806
+ if (i === 0) {
9807
+ arr.push(e);
9808
+ return;
9809
+ }
9810
+ arr.push(`${arr[i - 1]}.${e}`);
9811
+ });
9812
+ arr.map((e) => {
9813
+ const data = _.get(config2, e);
9814
+ pathArray.push({
9815
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9816
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9817
+ });
9818
+ });
9819
+ }
9820
+ console.log("pathArray>>", pathArray);
9821
+ schema2.properties.pageName.path = _.cloneDeep(pathArray);
9529
9822
  return schema2;
9530
9823
  },
9531
9824
  okHandler: () => okHandler(store2),
@@ -9533,7 +9826,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9533
9826
  onChange: function() {
9534
9827
  var _a, _b, _c;
9535
9828
  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) {
9536
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9829
+ this.refreshPage(
9830
+ store2.newData.Handler || store2.formdata.Handler,
9831
+ store2
9832
+ );
9537
9833
  }
9538
9834
  },
9539
9835
  addEvent: function() {
@@ -9559,7 +9855,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9559
9855
  this.setPage();
9560
9856
  },
9561
9857
  deleteEvent: async function() {
9562
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9858
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9859
+ false
9860
+ );
9563
9861
  store2.updateDialog("popUpEvent");
9564
9862
  },
9565
9863
  backHandler: function() {
@@ -9571,10 +9869,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9571
9869
  store2.updateDialog("popUpEvent");
9572
9870
  },
9573
9871
  copyPasteElement: function() {
9574
- Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
9872
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
9873
+ store2,
9874
+ this.setPage.bind(this)
9875
+ );
9575
9876
  },
9576
9877
  RemoveItemButton: function() {
9577
- Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9878
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
9879
+ store2
9880
+ );
9578
9881
  }
9579
9882
  };
9580
9883
  };
@@ -9745,16 +10048,17 @@ function executeCustomHandler(params) {
9745
10048
  }
9746
10049
  }
9747
10050
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10051
+ var _a, _b, _c;
9748
10052
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9749
10053
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9750
10054
  store2.setSchema((pre) => {
9751
- var _a;
10055
+ var _a2;
9752
10056
  return {
9753
10057
  ...pre,
9754
10058
  properties: {
9755
10059
  ...pre.properties,
9756
10060
  [componentName]: {
9757
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10061
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9758
10062
  oneOf: handlerResponse.data
9759
10063
  }
9760
10064
  }
@@ -9764,13 +10068,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9764
10068
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9765
10069
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9766
10070
  store2.setSchema((pre) => {
9767
- var _a;
10071
+ var _a2;
9768
10072
  return {
9769
10073
  ...pre,
9770
10074
  properties: {
9771
10075
  ...pre.properties,
9772
10076
  [componentName]: {
9773
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10077
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9774
10078
  type: "array",
9775
10079
  items: {
9776
10080
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9790,6 +10094,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9790
10094
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9791
10095
  });
9792
10096
  }
10097
+ } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10098
+ if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10099
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10100
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10101
+ store2.setFormdata((pre) => {
10102
+ return { ...pre, ...formDataHolder };
10103
+ });
10104
+ }
9793
10105
  } else {
9794
10106
  if (handlerResponse) {
9795
10107
  formDataHolder[componentName] = handlerResponse.data;
@@ -10095,7 +10407,7 @@ var service = (funcParams) => {
10095
10407
  service: funcParams.service,
10096
10408
  serviceHolder: this,
10097
10409
  eventGroups,
10098
- formDataHolder
10410
+ formDataHolder: {}
10099
10411
  });
10100
10412
  funcParams.store.setSchema(
10101
10413
  (pre) => {
@@ -10110,11 +10422,11 @@ var service = (funcParams) => {
10110
10422
  funcParams.store.setUiSchema(uiSchema);
10111
10423
  },
10112
10424
  onCellRenderer: (cellParams) => {
10113
- var _a, _b, _c;
10425
+ var _a, _b, _c, _d;
10114
10426
  if (eventGroups.onCellRenderer) {
10115
10427
  let finalResponse = {};
10116
10428
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
10117
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10429
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10118
10430
  executeEventsParameters.store.functionParameters = cellParams;
10119
10431
  finalResponse = executeEvents({
10120
10432
  ...executeEventsParameters,
@@ -10718,6 +11030,9 @@ const buildTextField = (config2, componentScope2) => {
10718
11030
  if (config2.style) {
10719
11031
  inputField.config.style = JSON.parse(config2.style);
10720
11032
  }
11033
+ if (config2.multiline) {
11034
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11035
+ }
10721
11036
  if (config2.InputFormatingAndMasking) {
10722
11037
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10723
11038
  }
@@ -11554,6 +11869,18 @@ const buildRadio = (config2, componentScope2) => {
11554
11869
  }
11555
11870
  return Radio;
11556
11871
  };
11872
+ var emptyBox = {
11873
+ type: "Control",
11874
+ scope: "#/properties/emptyBox",
11875
+ options: {
11876
+ widget: "EmptyBox"
11877
+ },
11878
+ config: {
11879
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
11880
+ main: {},
11881
+ style: {}
11882
+ }
11883
+ };
11557
11884
  const buildEmptyBox = (config2, componentScope2) => {
11558
11885
  const EmptyBox = _.cloneDeep(emptyBox);
11559
11886
  if (config2.layout) {
@@ -12231,19 +12558,12 @@ const buildUiSchema = (config2, store2) => {
12231
12558
  });
12232
12559
  } else if (config2.type == "Table") {
12233
12560
  const sizeMap = {};
12234
- const filterMap = {};
12235
12561
  if (config2.sizeHolder) {
12236
12562
  config2.sizeHolder.map((e, i) => {
12237
12563
  sizeMap[e.keyName] = e.value;
12238
12564
  });
12239
12565
  }
12240
- if (config2.enableColumnFilter) {
12241
- config2.enableColumnFilter.map((e) => {
12242
- filterMap[e.keyName] = true;
12243
- });
12244
- }
12245
12566
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12246
- var _a, _b;
12247
12567
  if (cellElem.type) {
12248
12568
  return {
12249
12569
  accessorKey: cellElem.name,
@@ -12252,8 +12572,9 @@ const buildUiSchema = (config2, store2) => {
12252
12572
  type: cellElem.columnFormat,
12253
12573
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12254
12574
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12255
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12256
- columnFilterModeOptions: config2.filteringOptions
12575
+ columnFilterModeOptions: cellElem.filteringOptions,
12576
+ enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
12577
+ enableSorting: cellElem.enableSorting === "Yes" ? true : false
12257
12578
  };
12258
12579
  } else {
12259
12580
  return {
@@ -12261,8 +12582,9 @@ const buildUiSchema = (config2, store2) => {
12261
12582
  type: cellElem.columnFormat,
12262
12583
  header: cellElem.label || cellElem.name,
12263
12584
  size: sizeMap[cellElem.name] || 180,
12264
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12265
- columnFilterModeOptions: config2.filteringOptions
12585
+ columnFilterModeOptions: cellElem.filteringOptions,
12586
+ enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
12587
+ enableSorting: cellElem.enableSorting === "Yes" ? true : false
12266
12588
  };
12267
12589
  }
12268
12590
  });