impaktapps-ui-builder 0.0.101-alpha.13 → 0.0.101-alpha.130

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 (34) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1058 -717
  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/eventSection.d.ts +26 -33
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +52 -38
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +7 -8
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +29 -33
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +56 -37
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +56 -36
  13. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
  14. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +6 -0
  15. package/package.json +1 -1
  16. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  17. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +14 -10
  18. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +111 -96
  19. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +101 -95
  20. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +39 -17
  21. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +44 -44
  22. package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +9 -13
  23. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +40 -18
  24. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +117 -48
  25. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +113 -43
  26. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +23 -23
  27. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +68 -9
  28. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +46 -20
  29. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  30. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +188 -295
  31. package/src/impaktapps-ui-builder/builder/services/component.ts +161 -32
  32. package/src/impaktapps-ui-builder/builder/services/event.ts +165 -65
  33. package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
  34. package/src/impaktapps-ui-builder/runtime/services/service.ts +29 -4
@@ -96,11 +96,25 @@ const PageMasterUiSchema = (theme) => {
96
96
  }
97
97
  }
98
98
  },
99
+ {
100
+ type: "Control",
101
+ scope: "#/properties/programIdRequired",
102
+ options: {
103
+ widget: "RadioInputField"
104
+ },
105
+ config: {
106
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
107
+ main: {
108
+ label: "Program ID Required",
109
+ options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
110
+ }
111
+ }
112
+ },
99
113
  {
100
114
  type: "Control",
101
115
  scope: "#/properties/EmptyBox",
102
116
  config: {
103
- layout: { xs: 0, sm: 0, md: 4, lg: 6 }
117
+ layout: { xs: 0, sm: 6, md: 0, lg: 3 }
104
118
  },
105
119
  options: {
106
120
  widget: "EmptyBox"
@@ -184,7 +198,8 @@ const PageMasterUiSchema = (theme) => {
184
198
  size: "small",
185
199
  icon: "TablePaste",
186
200
  iconLabel: "Paste",
187
- styleDefault: true
201
+ styleDefault: true,
202
+ title: ""
188
203
  },
189
204
  style: {
190
205
  mt: "6px",
@@ -365,19 +380,19 @@ const PageMasterUiSchema = (theme) => {
365
380
  elements: [
366
381
  {
367
382
  accessorKey: "eventType",
368
- header: "Event Type",
383
+ header: "Event's Type",
369
384
  size: 300,
370
385
  type: "string"
371
386
  },
372
387
  {
373
388
  accessorKey: "Handler",
374
389
  header: "Handler",
375
- size: 300,
390
+ size: 200,
376
391
  type: "string"
377
392
  },
378
393
  {
379
394
  accessorKey: "Edit_Approve_Records",
380
- header: "Edit Widget",
395
+ header: "Edit",
381
396
  type: "action",
382
397
  size: 150,
383
398
  widget: {
@@ -405,6 +420,8 @@ const PageMasterUiSchema = (theme) => {
405
420
  {
406
421
  accessorKey: "Reject_Records",
407
422
  header: "Delete",
423
+ type: "action",
424
+ size: 150,
408
425
  widget: {
409
426
  type: "Control",
410
427
  scope: "#/properties/RejectButton",
@@ -429,7 +446,8 @@ const PageMasterUiSchema = (theme) => {
429
446
  {
430
447
  header: "Copy",
431
448
  field: "Copy_Event",
432
- flex: 1,
449
+ type: "action",
450
+ size: 150,
433
451
  widget: {
434
452
  type: "Control",
435
453
  scope: "#/properties/Copy_Event",
@@ -521,15 +539,17 @@ const PageMasterUiSchema = (theme) => {
521
539
  config: {
522
540
  layout: 11,
523
541
  main: {
524
- heading: "Are you sure you want to delete ?"
542
+ heading: "Are you sure you want to delete this Component ?"
525
543
  },
526
544
  style: {
527
- marginTop: "-20px",
528
545
  fontSize: "20px",
529
546
  "&.MuiTypography-root": {
530
- padding: "10px 30px 20px 30px",
547
+ padding: "0px 20px",
531
548
  textAlign: "center",
532
- lineHeight: "1"
549
+ lineHeight: "1.2",
550
+ fontWeight: "normal",
551
+ fontSize: "18px",
552
+ marginBottom: theme.spacing(5)
533
553
  }
534
554
  }
535
555
  }
@@ -551,15 +571,15 @@ const PageMasterUiSchema = (theme) => {
551
571
  layout: 6,
552
572
  main: {
553
573
  name: "No",
554
- startIcon: "ApproveIcon",
555
574
  variant: "contained",
556
- color: "info",
557
575
  type: "text",
558
576
  onClick: "deletePopUpComponent",
559
577
  size: "large"
560
578
  },
561
579
  style: {
562
580
  position: "absolute",
581
+ padding: "8px 0px",
582
+ fontSize: "16px",
563
583
  bottom: 0,
564
584
  left: 0,
565
585
  width: "50%",
@@ -587,7 +607,6 @@ const PageMasterUiSchema = (theme) => {
587
607
  layout: 6,
588
608
  main: {
589
609
  name: "Yes",
590
- startIcon: "ApproveIcon",
591
610
  variant: "contained",
592
611
  color: "error",
593
612
  type: "text",
@@ -596,6 +615,8 @@ const PageMasterUiSchema = (theme) => {
596
615
  },
597
616
  style: {
598
617
  position: "absolute",
618
+ padding: "8px 0px",
619
+ fontSize: "16px",
599
620
  bottom: 0,
600
621
  right: 0,
601
622
  width: "50%",
@@ -644,15 +665,17 @@ const PageMasterUiSchema = (theme) => {
644
665
  config: {
645
666
  layout: 11,
646
667
  main: {
647
- heading: "Are you sure you want to delete ?"
668
+ heading: "Are you sure you want to delete this Event ?"
648
669
  },
649
670
  style: {
650
- marginTop: "-20px",
651
671
  fontSize: "20px",
652
672
  "&.MuiTypography-root": {
653
- padding: "10px 30px 20px 30px",
673
+ padding: "0px 20px",
654
674
  textAlign: "center",
655
- lineHeight: "1"
675
+ lineHeight: "1.2",
676
+ fontWeight: "normal",
677
+ fontSize: "18px",
678
+ marginBottom: theme.spacing(5)
656
679
  }
657
680
  }
658
681
  }
@@ -674,15 +697,15 @@ const PageMasterUiSchema = (theme) => {
674
697
  layout: 6,
675
698
  main: {
676
699
  name: "No",
677
- startIcon: "ApproveIcon",
678
700
  variant: "contained",
679
- color: "info",
680
701
  type: "text",
681
702
  onClick: "deletePopUpEvent",
682
703
  size: "large"
683
704
  },
684
705
  style: {
685
706
  position: "absolute",
707
+ padding: "8px 0px",
708
+ fontSize: "16px",
686
709
  bottom: 0,
687
710
  left: 0,
688
711
  width: "50%",
@@ -710,7 +733,6 @@ const PageMasterUiSchema = (theme) => {
710
733
  layout: 6,
711
734
  main: {
712
735
  name: "Yes",
713
- startIcon: "ApproveIcon",
714
736
  variant: "contained",
715
737
  color: "error",
716
738
  type: "text",
@@ -719,6 +741,8 @@ const PageMasterUiSchema = (theme) => {
719
741
  },
720
742
  style: {
721
743
  position: "absolute",
744
+ padding: "8px 0px",
745
+ fontSize: "16px",
722
746
  bottom: 0,
723
747
  right: 0,
724
748
  width: "50%",
@@ -6240,44 +6264,44 @@ const ComponentSchema = {
6240
6264
  properties: {
6241
6265
  type: {
6242
6266
  oneOf: [
6243
- { title: "AadharcardText", const: "AadharcardText" },
6267
+ { title: "Masked Aadhar Card", const: "AadharcardText" },
6244
6268
  { title: "Array", const: "Array" },
6245
6269
  { title: "Button", const: "Button" },
6246
- { title: "Card", const: "card" },
6247
- { title: "CheckBox", const: "CheckBox" },
6270
+ { title: "Data Card", const: "card" },
6271
+ { title: "Check Box", const: "CheckBox" },
6248
6272
  { title: "Container", const: "WrapperSection" },
6249
- { title: "DataGrid", const: "DataGrid" },
6273
+ { title: "Data Grid", const: "DataGrid" },
6250
6274
  { title: "Date", const: "Date" },
6251
- { title: "DateTime", const: "DateTime" },
6252
- { title: "Download File", const: "DownloadFile" },
6275
+ { title: "Time Stamp", const: "DateTime" },
6276
+ { title: "Download", const: "DownloadFile" },
6253
6277
  { title: "Empty Box", const: "EmptyBox" },
6254
- { title: "File", const: "FileInput" },
6278
+ { title: "File Handler", const: "FileInput" },
6255
6279
  { title: "Graph", const: "Graph" },
6256
6280
  { title: "Input Slider", const: "InputSlider" },
6257
6281
  { 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" },
6282
+ { title: "Leaderboard", const: "LeaderBoard" },
6283
+ { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6284
+ { title: "Pan Card Masked", const: "PanCardText" },
6285
+ { title: "Pop Up", const: "PopUp" },
6286
+ { title: "Progress Bar", const: "ProgressBar" },
6287
+ { title: "Progress Bar Card", const: "ProgressBarCard" },
6288
+ { title: "Dropdown", const: "Select" },
6265
6289
  { title: "Slider", const: "Slider" },
6266
- { title: "SpeedoMeter", const: "SpeedoMeter" },
6290
+ { title: "Speedometer", const: "SpeedoMeter" },
6267
6291
  { title: "Stepper Container", const: "Stepper" },
6268
6292
  { title: "Radio", const: "Radio" },
6269
6293
  { title: "Rank", const: "Rank" },
6270
6294
  { title: "Rank Card", const: "RankCard" },
6271
- { title: "Runner Boy Progress Bar", const: "RunnerBoyProgressBar" },
6295
+ { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6272
6296
  { title: "Table", const: "Table" },
6273
6297
  { title: "Tabs", const: "TabSection" },
6274
6298
  { title: "Text", const: "Text" },
6275
6299
  { title: "Text Area", const: "TextArea" },
6276
6300
  { 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" },
6301
+ { title: "Upload", const: "UploadFile" },
6302
+ { title: "Tree ", const: "TreeMap" },
6303
+ { title: "Column Group", const: "ColumnGroup" },
6304
+ { title: "Thought of the day", const: "Thought" },
6281
6305
  { title: "Pdf Viewer", const: "PdfViewer" }
6282
6306
  ]
6283
6307
  },
@@ -6432,23 +6456,20 @@ const ComponentSchema = {
6432
6456
  }
6433
6457
  },
6434
6458
  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
- }
6459
+ oneOf: [
6460
+ { const: "fuzzy", title: "Fuzzy" },
6461
+ { const: "contains", title: "Contain" },
6462
+ { const: "startsWith", title: "Starts with" },
6463
+ { const: "endsWith", title: "Ends with" },
6464
+ { const: "equals", title: "Equals" },
6465
+ { const: "notEquals", title: "Not Equals" },
6466
+ { const: "between", title: "Between" },
6467
+ { const: "betweenInclusive", title: "Between inclusive" },
6468
+ { const: "greaterThan", title: "Greater than" },
6469
+ { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6470
+ { const: "lessThan", title: "Less than" },
6471
+ { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6472
+ ]
6452
6473
  },
6453
6474
  legendLabels: {
6454
6475
  type: "array",
@@ -6564,6 +6585,9 @@ const ComponentSchema = {
6564
6585
  { title: "Info", const: "info" }
6565
6586
  ]
6566
6587
  },
6588
+ pageName: {
6589
+ path: []
6590
+ },
6567
6591
  name: {
6568
6592
  type: "string"
6569
6593
  },
@@ -6825,15 +6849,16 @@ const componentBasicUiSchema = (theme) => {
6825
6849
  config: {
6826
6850
  layout: 11,
6827
6851
  main: {
6828
- heading: "Are you sure you want to delete ?"
6852
+ heading: "Are you sure you want to delete this Component ?"
6829
6853
  },
6830
6854
  style: {
6831
- marginTop: "-20px",
6832
- fontSize: "20px",
6833
6855
  "&.MuiTypography-root": {
6834
- padding: "10px 30px 20px 30px",
6856
+ padding: "0px 20px",
6835
6857
  textAlign: "center",
6836
- lineHeight: "1"
6858
+ lineHeight: "1.2",
6859
+ fontWeight: "normal",
6860
+ fontSize: "18px",
6861
+ marginBottom: theme.spacing(5)
6837
6862
  }
6838
6863
  }
6839
6864
  }
@@ -6862,6 +6887,8 @@ const componentBasicUiSchema = (theme) => {
6862
6887
  },
6863
6888
  style: {
6864
6889
  position: "absolute",
6890
+ padding: "8px 0px",
6891
+ fontSize: "16px",
6865
6892
  bottom: 0,
6866
6893
  left: 0,
6867
6894
  width: "50%",
@@ -6897,6 +6924,8 @@ const componentBasicUiSchema = (theme) => {
6897
6924
  },
6898
6925
  style: {
6899
6926
  position: "absolute",
6927
+ padding: "8px 0px",
6928
+ fontSize: "16px",
6900
6929
  bottom: 0,
6901
6930
  right: 0,
6902
6931
  width: "50%",
@@ -6945,15 +6974,17 @@ const componentBasicUiSchema = (theme) => {
6945
6974
  config: {
6946
6975
  layout: 11,
6947
6976
  main: {
6948
- heading: "Are you sure you want to delete ?"
6977
+ heading: "Are you sure you want to delete this Event ?"
6949
6978
  },
6950
6979
  style: {
6951
- marginTop: "-20px",
6952
6980
  fontSize: "20px",
6953
6981
  "&.MuiTypography-root": {
6954
- padding: "10px 30px 20px 30px",
6982
+ padding: "0px 20px",
6955
6983
  textAlign: "center",
6956
- lineHeight: "1"
6984
+ lineHeight: "1.2",
6985
+ fontWeight: "normal",
6986
+ fontSize: "18px",
6987
+ marginBottom: theme.spacing(5)
6957
6988
  }
6958
6989
  }
6959
6990
  }
@@ -6982,6 +7013,8 @@ const componentBasicUiSchema = (theme) => {
6982
7013
  },
6983
7014
  style: {
6984
7015
  position: "absolute",
7016
+ padding: "8px 0px",
7017
+ fontSize: "16px",
6985
7018
  bottom: 0,
6986
7019
  left: 0,
6987
7020
  width: "50%",
@@ -7017,6 +7050,8 @@ const componentBasicUiSchema = (theme) => {
7017
7050
  },
7018
7051
  style: {
7019
7052
  position: "absolute",
7053
+ padding: "8px 0px",
7054
+ fontSize: "16px",
7020
7055
  bottom: 0,
7021
7056
  right: 0,
7022
7057
  width: "50%",
@@ -7037,6 +7072,27 @@ const componentBasicUiSchema = (theme) => {
7037
7072
  }
7038
7073
  ]
7039
7074
  },
7075
+ {
7076
+ type: "Control",
7077
+ scope: "#/properties/pageName",
7078
+ options: {
7079
+ widget: "Breadcrumb"
7080
+ },
7081
+ config: {
7082
+ layout: 12,
7083
+ main: {},
7084
+ style: {
7085
+ paddingLeft: theme.spacing(3),
7086
+ color: theme.palette.grey[600],
7087
+ fontSize: "10px",
7088
+ position: "fixed",
7089
+ bottom: "24px",
7090
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
7091
+ borderTop: `1px solid ${theme.palette.common.black}29`,
7092
+ backgroundColor: theme.palette.background.default
7093
+ }
7094
+ }
7095
+ },
7040
7096
  {
7041
7097
  type: "Control",
7042
7098
  scope: "#/properties/notify",
@@ -7254,15 +7310,20 @@ const EventSection = (theme) => {
7254
7310
  },
7255
7311
  config: {
7256
7312
  main: {
7257
- color: "info",
7258
7313
  onClick: "eventAddHandler",
7259
7314
  size: "small",
7260
- icon: "AddIcon",
7261
- iconLabel: "Add New",
7315
+ icon: "TableAddIcon",
7316
+ iconLabel: "Add",
7262
7317
  styleDefault: true
7263
7318
  },
7264
7319
  style: {
7265
- mt: "6px"
7320
+ mt: "6px",
7321
+ color: "inherit",
7322
+ fill: "inherit",
7323
+ "&:hover": {
7324
+ color: "inherit",
7325
+ fill: "inherit"
7326
+ }
7266
7327
  }
7267
7328
  }
7268
7329
  }
@@ -7278,12 +7339,18 @@ const EventSection = (theme) => {
7278
7339
  main: {
7279
7340
  onClick: "copyPasteElement",
7280
7341
  size: "small",
7281
- icon: "PasteIcon",
7342
+ icon: "TablePaste",
7282
7343
  iconLabel: "Paste",
7283
7344
  styleDefault: true
7284
7345
  },
7285
7346
  style: {
7286
- mt: "6px"
7347
+ mt: "6px",
7348
+ color: "inherit",
7349
+ fill: "inherit",
7350
+ "&:hover": {
7351
+ color: "inherit",
7352
+ fill: "inherit"
7353
+ }
7287
7354
  }
7288
7355
  }
7289
7356
  }
@@ -7298,15 +7365,21 @@ const EventSection = (theme) => {
7298
7365
  elements: [
7299
7366
  {
7300
7367
  accessorKey: "eventType",
7301
- header: "Event Type"
7368
+ header: "Event's Type",
7369
+ type: "string",
7370
+ size: 300
7302
7371
  },
7303
7372
  {
7304
7373
  accessorKey: "Handler",
7305
- header: "Handler"
7374
+ header: "Handler",
7375
+ type: "string",
7376
+ size: 200
7306
7377
  },
7307
7378
  {
7308
7379
  accessorKey: "Edit_Approve_Records",
7309
- header: "Edit Widget",
7380
+ header: "Edit",
7381
+ size: 150,
7382
+ type: "action",
7310
7383
  widget: {
7311
7384
  type: "Control",
7312
7385
  scope: "#/properties/Edit_Records",
@@ -7315,14 +7388,16 @@ const EventSection = (theme) => {
7315
7388
  },
7316
7389
  config: {
7317
7390
  main: {
7318
- color: "info",
7319
7391
  size: "small",
7320
- icon: "EditIcon",
7392
+ icon: "TableEditIcon",
7321
7393
  tooltipMessage: "Edit This Record",
7322
7394
  onClick: "eventEditHandler"
7323
7395
  },
7324
7396
  style: {
7325
- color: theme.palette.primary.main
7397
+ fill: theme.palette.primary.main,
7398
+ "& :hover": {
7399
+ fill: theme.palette.primary.dark
7400
+ }
7326
7401
  }
7327
7402
  }
7328
7403
  }
@@ -7330,6 +7405,8 @@ const EventSection = (theme) => {
7330
7405
  {
7331
7406
  accessorKey: "Reject_Records",
7332
7407
  header: "Delete",
7408
+ size: 150,
7409
+ type: "action",
7333
7410
  widget: {
7334
7411
  type: "Control",
7335
7412
  scope: "#/properties/RejectButton",
@@ -7339,10 +7416,15 @@ const EventSection = (theme) => {
7339
7416
  },
7340
7417
  config: {
7341
7418
  main: {
7342
- icon: "RejectIcon",
7343
- color: "error",
7419
+ icon: "Bin",
7344
7420
  tooltipMessage: "Reject This Record",
7345
7421
  onClick: "deletePopUpEvent"
7422
+ },
7423
+ style: {
7424
+ fill: theme.palette.primary.main,
7425
+ "& :hover": {
7426
+ fill: theme.palette.primary.dark
7427
+ }
7346
7428
  }
7347
7429
  }
7348
7430
  }
@@ -7350,7 +7432,8 @@ const EventSection = (theme) => {
7350
7432
  {
7351
7433
  header: "Copy",
7352
7434
  field: "Copy_Event",
7353
- flex: 1,
7435
+ size: 150,
7436
+ type: "action",
7354
7437
  widget: {
7355
7438
  type: "Control",
7356
7439
  scope: "#/properties/Copy_Event",
@@ -7400,77 +7483,103 @@ const emptyBox$1 = (scope, layout) => {
7400
7483
  const cardLayout = {
7401
7484
  type: "Control",
7402
7485
  scope: "#/properties/cardLayout",
7403
- layout: 11.5,
7404
7486
  options: {
7405
- detail: {
7406
- type: "HorizontalLayout",
7407
- elements: [
7408
- {
7409
- type: "Control",
7410
- scope: "#/properties/key",
7411
- options: {
7412
- widget: "SelectInputField"
7413
- },
7414
- config: {
7415
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7416
- main: {
7417
- label: "Screen Size"
7418
- }
7419
- }
7420
- },
7421
- {
7422
- type: "Control",
7423
- scope: "#/properties/value",
7424
- options: {
7425
- widget: "InputField"
7426
- },
7427
- config: {
7428
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7429
- main: {
7430
- label: "Value",
7431
- type: "number",
7432
- helperText: "Number should be in range of 0 to 12",
7433
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7434
- }
7435
- }
7436
- },
7437
- emptyBox$1("cardEmpty")
7438
- ]
7487
+ widget: "Array"
7488
+ },
7489
+ config: {
7490
+ layout: 12,
7491
+ main: {
7492
+ label: "Card Layout",
7493
+ childElementLabel: "Card Layout"
7494
+ },
7495
+ style: {
7496
+ marginLeft: "-24px",
7497
+ marginBottom: "24px !important",
7498
+ labelStyle: {
7499
+ marginLeft: "24px"
7500
+ },
7501
+ detailsStyle: {
7502
+ marginLeft: "24px"
7503
+ }
7439
7504
  }
7440
- }
7505
+ },
7506
+ elements: [
7507
+ {
7508
+ type: "Control",
7509
+ scope: "#/properties/key",
7510
+ options: {
7511
+ widget: "SelectInputField"
7512
+ },
7513
+ config: {
7514
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7515
+ main: {
7516
+ label: "Screen Size"
7517
+ }
7518
+ }
7519
+ },
7520
+ {
7521
+ type: "Control",
7522
+ scope: "#/properties/value",
7523
+ options: {
7524
+ widget: "InputField"
7525
+ },
7526
+ config: {
7527
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7528
+ main: {
7529
+ label: "Value",
7530
+ type: "number",
7531
+ helperText: "Number should be in range of 0 to 12",
7532
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7533
+ }
7534
+ }
7535
+ },
7536
+ emptyBox$1("cardEmpty")
7537
+ ]
7441
7538
  };
7442
7539
  const getArrayControl = (parentScope, childScope, childLabel) => {
7443
7540
  return {
7444
7541
  type: "Control",
7445
7542
  scope: `#/properties/${parentScope}`,
7446
- layout: 12,
7447
7543
  options: {
7448
- "elementLabelProp": childScope,
7449
- detail: {
7450
- type: "HorizontalLayout",
7451
- elements: [
7452
- {
7453
- type: "Control",
7454
- scope: `#/properties/${childScope}`,
7455
- options: {
7456
- widget: "InputField"
7457
- },
7458
- config: {
7459
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7460
- main: {
7461
- label: childLabel || "Labels for Tab"
7462
- }
7463
- }
7464
- },
7465
- emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7466
- emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
7467
- ]
7544
+ widget: "Array"
7545
+ },
7546
+ config: {
7547
+ layout: 12,
7548
+ main: {
7549
+ label: childLabel,
7550
+ childElementLabel: childLabel
7551
+ },
7552
+ style: {
7553
+ marginLeft: "-24px",
7554
+ marginBottom: "24px !important",
7555
+ labelStyle: {
7556
+ marginLeft: "24px"
7557
+ },
7558
+ detailsStyle: {
7559
+ marginLeft: "24px"
7560
+ }
7468
7561
  }
7469
- }
7562
+ },
7563
+ elements: [
7564
+ {
7565
+ type: "Control",
7566
+ scope: `#/properties/${childScope}`,
7567
+ options: {
7568
+ widget: "InputField"
7569
+ },
7570
+ config: {
7571
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7572
+ main: {
7573
+ label: childLabel || "Labels for Tab"
7574
+ }
7575
+ }
7576
+ },
7577
+ emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
7578
+ ]
7470
7579
  };
7471
7580
  };
7472
7581
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7473
- sizeHolder.options.detail.elements[1] = {
7582
+ sizeHolder.elements[1] = {
7474
7583
  type: "Control",
7475
7584
  scope: `#/properties/value`,
7476
7585
  options: {
@@ -7483,7 +7592,7 @@ sizeHolder.options.detail.elements[1] = {
7483
7592
  }
7484
7593
  }
7485
7594
  };
7486
- sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
7595
+ sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
7487
7596
  const getInputField = (scope, label) => {
7488
7597
  return {
7489
7598
  type: "Control",
@@ -7492,7 +7601,7 @@ const getInputField = (scope, label) => {
7492
7601
  widget: "InputField"
7493
7602
  },
7494
7603
  config: {
7495
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7604
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7496
7605
  main: {
7497
7606
  label
7498
7607
  }
@@ -7507,7 +7616,7 @@ const getRadioInputField = (scope, label, options) => {
7507
7616
  widget: "RadioInputField"
7508
7617
  },
7509
7618
  config: {
7510
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
7619
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
7511
7620
  main: {
7512
7621
  label,
7513
7622
  options
@@ -7522,17 +7631,7 @@ const buildWrapper = (label, elements) => {
7522
7631
  main: {
7523
7632
  label: label || "Details",
7524
7633
  isAccordion: true
7525
- },
7526
- wrapperStyle: {
7527
- marginTop: "-6px",
7528
- marginBottom: "-8px",
7529
- marginLeft: "-34px",
7530
- width: "108%"
7531
- },
7532
- componentsBoxStyle: {
7533
- marginLeft: "12px"
7534
- },
7535
- defaultStyle: true
7634
+ }
7536
7635
  },
7537
7636
  elements: elements || []
7538
7637
  };
@@ -7546,18 +7645,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
7546
7645
  },
7547
7646
  config: {
7548
7647
  layout: layout || 12,
7549
- style: {
7550
- containerStyle: {
7551
- borderRadius: "20px"
7552
- },
7553
- headerContainerStyle: {},
7554
- textAreaStyle: {
7555
- borderRadius: "20px",
7556
- padding: "20px"
7557
- }
7558
- },
7559
7648
  main: {
7560
- heading,
7649
+ label: heading,
7561
7650
  minRows: 8,
7562
7651
  hideButton,
7563
7652
  enableCodeEditor: true
@@ -7573,7 +7662,7 @@ const getSelectField = (scope, label, options) => {
7573
7662
  widget: "SelectInputField"
7574
7663
  },
7575
7664
  config: {
7576
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7665
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7577
7666
  main: {
7578
7667
  label,
7579
7668
  type: "text"
@@ -7589,7 +7678,7 @@ const getMultiSelectField = (scope, label) => {
7589
7678
  widget: "MultipleSelect"
7590
7679
  },
7591
7680
  config: {
7592
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7681
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7593
7682
  main: {
7594
7683
  multiple: true,
7595
7684
  label,
@@ -7598,12 +7687,18 @@ const getMultiSelectField = (scope, label) => {
7598
7687
  }
7599
7688
  };
7600
7689
  };
7601
- const GraphSection = {
7690
+ const BaseSection = {
7602
7691
  type: "WrapperLayout",
7692
+ config: {
7693
+ main: {
7694
+ label: " ",
7695
+ gap: "8px"
7696
+ }
7697
+ },
7603
7698
  elements: []
7604
7699
  };
7605
7700
  const buildPropertiesSection = function(type) {
7606
- let uiSchema = _.cloneDeep(GraphSection);
7701
+ let uiSchema = _.cloneDeep(BaseSection);
7607
7702
  switch (type) {
7608
7703
  case "TreeMap":
7609
7704
  uiSchema.elements = [
@@ -7658,7 +7753,7 @@ const buildPropertiesSection = function(type) {
7658
7753
  case "Text":
7659
7754
  uiSchema.elements = [
7660
7755
  getInputField("placeholder", "Placeholder"),
7661
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7756
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7662
7757
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7663
7758
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7664
7759
  ];
@@ -7667,7 +7762,8 @@ const buildPropertiesSection = function(type) {
7667
7762
  uiSchema.elements = [
7668
7763
  getInputField("placeholder", "Placeholder"),
7669
7764
  getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
7670
- getInputField("codeEditorLanguage", "Enter Code Language")
7765
+ getInputField("codeEditorLanguage", "Enter Code Language"),
7766
+ emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
7671
7767
  ];
7672
7768
  break;
7673
7769
  case "SpeedoMeter":
@@ -7747,7 +7843,7 @@ const buildPropertiesSection = function(type) {
7747
7843
  getInputField("xAxisValue", "X-AxisValue"),
7748
7844
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7749
7845
  getInputField("leftMargin", "Left Margin"),
7750
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7846
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7751
7847
  getArrayControl("legendLabels", "label"),
7752
7848
  getArrayControl("pieArcColors", "color")
7753
7849
  ];
@@ -7828,7 +7924,13 @@ const buildPropertiesSection = function(type) {
7828
7924
  return uiSchema;
7829
7925
  };
7830
7926
  const StyleSection = {
7831
- type: "HorizontalLayout",
7927
+ type: "WrapperLayout",
7928
+ config: {
7929
+ main: {
7930
+ label: " ",
7931
+ gap: "8px"
7932
+ }
7933
+ },
7832
7934
  elements: [
7833
7935
  {
7834
7936
  type: "Control",
@@ -7844,14 +7946,7 @@ const StyleSection = {
7844
7946
  lg: 12
7845
7947
  },
7846
7948
  style: {
7847
- containerStyle: {
7848
- borderRadius: "20px"
7849
- },
7850
- headerContainerStyle: {},
7851
- textAreaStyle: {
7852
- borderRadius: "20px",
7853
- padding: "20px"
7854
- }
7949
+ "& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
7855
7950
  },
7856
7951
  main: {
7857
7952
  heading: "JSON Style",
@@ -7885,15 +7980,20 @@ const TableSection = (theme) => {
7885
7980
  },
7886
7981
  config: {
7887
7982
  main: {
7888
- color: "info",
7889
7983
  onClick: "widgetAddClickHandler",
7890
7984
  size: "small",
7891
- icon: "AddIcon",
7892
- iconLabel: "Add New",
7985
+ icon: "TableAddIcon",
7986
+ iconLabel: "Add",
7893
7987
  styleDefault: true
7894
7988
  },
7895
7989
  style: {
7896
- mt: "6px"
7990
+ mt: "6px",
7991
+ color: "inherit",
7992
+ fill: "inherit",
7993
+ "&:hover": {
7994
+ color: "inherit",
7995
+ fill: "inherit"
7996
+ }
7897
7997
  }
7898
7998
  }
7899
7999
  }
@@ -7909,12 +8009,18 @@ const TableSection = (theme) => {
7909
8009
  main: {
7910
8010
  onClick: "copyPasteElement",
7911
8011
  size: "small",
7912
- icon: "PasteIcon",
8012
+ icon: "TablePaste",
7913
8013
  iconLabel: "Paste",
7914
8014
  styleDefault: true
7915
8015
  },
7916
8016
  style: {
7917
- mt: "6px"
8017
+ mt: "6px",
8018
+ color: "inherit",
8019
+ fill: "inherit",
8020
+ "&:hover": {
8021
+ color: "inherit",
8022
+ fill: "inherit"
8023
+ }
7918
8024
  }
7919
8025
  }
7920
8026
  }
@@ -7929,16 +8035,21 @@ const TableSection = (theme) => {
7929
8035
  elements: [
7930
8036
  {
7931
8037
  accessorKey: "name",
7932
- header: "Name"
8038
+ header: "Name",
8039
+ type: "string",
8040
+ size: 300
7933
8041
  },
7934
8042
  {
7935
8043
  accessorKey: "type",
7936
- header: "Type"
8044
+ header: "Type",
8045
+ type: "string",
8046
+ size: 200
7937
8047
  },
7938
8048
  {
7939
8049
  header: "Edit Record",
7940
8050
  field: "Reject_Records",
7941
- flex: 1,
8051
+ size: 150,
8052
+ type: "action",
7942
8053
  widget: {
7943
8054
  type: "Control",
7944
8055
  scope: "#/properties/RejectButton",
@@ -7947,13 +8058,16 @@ const TableSection = (theme) => {
7947
8058
  },
7948
8059
  config: {
7949
8060
  main: {
7950
- icon: "EditIcon",
7951
- color: "primary",
8061
+ icon: "TableEditIcon",
8062
+ size: "small",
7952
8063
  onClick: "editComponents",
7953
8064
  tooltipMessage: "Reject This Record"
7954
8065
  },
7955
8066
  style: {
7956
- color: theme.palette.primary.main
8067
+ fill: theme.palette.primary.main,
8068
+ "& :hover": {
8069
+ fill: theme.palette.primary.dark
8070
+ }
7957
8071
  }
7958
8072
  }
7959
8073
  }
@@ -7961,7 +8075,8 @@ const TableSection = (theme) => {
7961
8075
  {
7962
8076
  header: "Delete",
7963
8077
  field: "Reject_Records",
7964
- flex: 1,
8078
+ size: 150,
8079
+ type: "action",
7965
8080
  widget: {
7966
8081
  type: "Control",
7967
8082
  scope: "#/properties/RejectButton",
@@ -7970,10 +8085,15 @@ const TableSection = (theme) => {
7970
8085
  },
7971
8086
  config: {
7972
8087
  main: {
7973
- icon: "RejectIcon",
7974
- color: "error",
8088
+ icon: "Bin",
7975
8089
  onClick: "deletePopUpComponent",
7976
8090
  tooltipMessage: "Reject This Record"
8091
+ },
8092
+ style: {
8093
+ fill: theme.palette.primary.main,
8094
+ "& :hover": {
8095
+ fill: theme.palette.primary.dark
8096
+ }
7977
8097
  }
7978
8098
  }
7979
8099
  }
@@ -7981,7 +8101,8 @@ const TableSection = (theme) => {
7981
8101
  {
7982
8102
  header: "Copy",
7983
8103
  field: "Copy_Component",
7984
- flex: 1,
8104
+ size: 150,
8105
+ type: "action",
7985
8106
  widget: {
7986
8107
  type: "Control",
7987
8108
  scope: "#/properties/Copy_Component",
@@ -8005,109 +8126,148 @@ const TableSection = (theme) => {
8005
8126
  return uiSchema;
8006
8127
  };
8007
8128
  const ValueTab = {
8008
- type: "HorizontalLayout",
8129
+ type: "WrapperLayout",
8130
+ config: {
8131
+ main: {
8132
+ label: " ",
8133
+ gap: "8px"
8134
+ }
8135
+ },
8009
8136
  elements: [
8010
8137
  {
8011
8138
  type: "Control",
8012
8139
  scope: "#/properties/value",
8013
- layout: 12,
8014
8140
  options: {
8015
- detail: {
8016
- type: "HorizontalLayout",
8017
- elements: [
8018
- {
8019
- type: "Control",
8020
- scope: "#/properties/label",
8021
- options: {
8022
- widget: "InputField"
8023
- },
8024
- config: {
8025
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8026
- main: {
8027
- label: "Label"
8028
- }
8029
- }
8030
- },
8031
- {
8032
- type: "Control",
8033
- scope: "#/properties/value",
8034
- options: {
8035
- widget: "InputField"
8036
- },
8037
- config: {
8038
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8039
- main: {
8040
- label: "Value"
8041
- }
8042
- }
8043
- },
8044
- {
8045
- type: "Control",
8046
- scope: "#/properties/emptyBox",
8047
- options: {
8048
- widget: "EmptyBox"
8049
- },
8050
- config: {
8051
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8052
- }
8053
- }
8054
- ]
8141
+ widget: "Array"
8142
+ },
8143
+ config: {
8144
+ layout: 12,
8145
+ main: {
8146
+ label: "Value",
8147
+ childElementLabel: "Value"
8148
+ },
8149
+ style: {
8150
+ marginLeft: "-24px",
8151
+ marginBottom: "24px !important",
8152
+ labelStyle: {
8153
+ marginLeft: "24px"
8154
+ },
8155
+ detailsStyle: {
8156
+ marginLeft: "24px"
8157
+ }
8055
8158
  }
8056
- }
8057
- }
8058
- ]
8059
- };
8060
- const ValidationSection = {
8061
- type: "HorizontalLayout",
8062
- elements: [
8063
- {
8159
+ },
8160
+ elements: [
8161
+ {
8162
+ type: "Control",
8163
+ scope: "#/properties/label",
8164
+ options: {
8165
+ widget: "InputField"
8166
+ },
8167
+ config: {
8168
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8169
+ main: {
8170
+ label: "Label"
8171
+ }
8172
+ }
8173
+ },
8174
+ {
8175
+ type: "Control",
8176
+ scope: "#/properties/value",
8177
+ options: {
8178
+ widget: "InputField"
8179
+ },
8180
+ config: {
8181
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8182
+ main: {
8183
+ label: "Value"
8184
+ }
8185
+ }
8186
+ },
8187
+ {
8188
+ type: "Control",
8189
+ scope: "#/properties/emptyBox",
8190
+ options: {
8191
+ widget: "EmptyBox"
8192
+ },
8193
+ config: {
8194
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8195
+ }
8196
+ }
8197
+ ]
8198
+ }
8199
+ ]
8200
+ };
8201
+ const ValidationSection = {
8202
+ type: "WrapperLayout",
8203
+ config: {
8204
+ main: {
8205
+ label: " ",
8206
+ gap: "8px"
8207
+ }
8208
+ },
8209
+ elements: [
8210
+ {
8064
8211
  type: "Control",
8065
8212
  scope: "#/properties/validation",
8066
- layout: 11.5,
8067
8213
  options: {
8068
- "elementLabelProp": "validationType",
8069
- detail: {
8070
- type: "HorizontalLayout",
8071
- elements: [
8072
- {
8073
- type: "Control",
8074
- scope: "#/properties/validationType",
8075
- options: {
8076
- widget: "SelectInputField"
8077
- },
8078
- config: {
8079
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8080
- main: {
8081
- label: "Validation Type"
8082
- }
8083
- }
8084
- },
8085
- {
8086
- type: "Control",
8087
- scope: "#/properties/validationValue",
8088
- options: {
8089
- widget: "InputField"
8090
- },
8091
- config: {
8092
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8093
- main: {
8094
- label: "Validation Value"
8095
- }
8096
- }
8097
- },
8098
- {
8099
- type: "Control",
8100
- scope: "#/properties/emptyBox",
8101
- options: {
8102
- widget: "EmptyBox"
8103
- },
8104
- config: {
8105
- layout: { xs: 0, sm: 0, md: 4 }
8106
- }
8214
+ widget: "Array"
8215
+ },
8216
+ config: {
8217
+ layout: 12,
8218
+ main: {
8219
+ label: "Validation",
8220
+ childElementLabel: "Validation"
8221
+ },
8222
+ style: {
8223
+ marginLeft: "-24px",
8224
+ marginBottom: "24px !important",
8225
+ labelStyle: {
8226
+ marginLeft: "24px"
8227
+ },
8228
+ detailsStyle: {
8229
+ marginLeft: "24px"
8230
+ }
8231
+ }
8232
+ },
8233
+ elements: [
8234
+ {
8235
+ type: "Control",
8236
+ scope: "#/properties/validationType",
8237
+ options: {
8238
+ widget: "SelectInputField"
8239
+ },
8240
+ config: {
8241
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8242
+ main: {
8243
+ label: "Validation Type"
8107
8244
  }
8108
- ]
8245
+ }
8246
+ },
8247
+ {
8248
+ type: "Control",
8249
+ scope: "#/properties/validationValue",
8250
+ options: {
8251
+ widget: "InputField"
8252
+ },
8253
+ config: {
8254
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8255
+ main: {
8256
+ label: "Validation Value"
8257
+ }
8258
+ }
8259
+ },
8260
+ {
8261
+ type: "Control",
8262
+ scope: "#/properties/emptyBox",
8263
+ options: {
8264
+ widget: "EmptyBox"
8265
+ },
8266
+ config: {
8267
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8268
+ }
8109
8269
  }
8110
- }
8270
+ ]
8111
8271
  }
8112
8272
  ]
8113
8273
  };
@@ -8263,54 +8423,124 @@ function okHandler(store2) {
8263
8423
  }
8264
8424
  }
8265
8425
  const sectionLabels = {
8266
- Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8267
- MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8268
- Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8269
- LeaderBoard: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8426
+ Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8427
+ MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8428
+ Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8429
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8270
8430
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8271
8431
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8272
- SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
8273
- card: ["Core", "Properties", "Event", "Style", "Validation"],
8274
- UploadFile: ["Core", "Event", "Style", "Validation"],
8275
- Graph: ["Core", "Properties", "Event", "Style", "Validation"],
8276
- DownloadFile: ["Core", "Event", "Style", "Validation"],
8277
- Box: ["Core", "Event", "Style", "Validation"],
8278
- Properties: ["Core", "Properties", "Event", "Style", "Validation"],
8279
- ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
8280
- RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
8281
- Slider: ["Core", "Components", "Event", "Style", "Validation"],
8282
- Timer: ["Core", "Event", "Style", "Validation"],
8283
- Rank: ["Core", "Event", "Style", "Validation"],
8284
- Button: ["Core", "Properties", "Event", "Style", "Validation"],
8432
+ SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8433
+ card: ["Core", "Properties", "Events", "Style", "Validation"],
8434
+ UploadFile: ["Core", "Events", "Style", "Validation"],
8435
+ Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8436
+ DownloadFile: ["Core", "Events", "Style", "Validation"],
8437
+ Box: ["Core", "Events", "Style", "Validation"],
8438
+ Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8439
+ ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8440
+ RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8441
+ Slider: ["Core", "Components", "Events", "Style", "Validation"],
8442
+ Timer: ["Core", "Events", "Style", "Validation"],
8443
+ Rank: ["Core", "Events", "Style", "Validation"],
8444
+ Button: ["Core", "Properties", "Events", "Style", "Validation"],
8285
8445
  Array: ["Core", "Components", "Validation"],
8286
- Radio: ["Core", "Properties", "Event", "Style", "Validation"],
8287
- Text: ["Core", "Properties", "Event", "Style", "Validation"],
8288
- TextArea: ["Core", "Properties", "Event", "Style", "Validation"],
8446
+ Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8447
+ Text: ["Core", "Properties", "Events", "Style", "Validation"],
8448
+ TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8289
8449
  PopUp: ["Core", "Components", "Properties", "Style"],
8290
- Stepper: ["Core", "Components", "Properties", "Event", "Style"],
8291
- DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8292
- InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8293
- TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
8450
+ Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8451
+ DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8452
+ InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8453
+ TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8294
8454
  ColumnGroup: ["Core", "Components"],
8295
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8455
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8296
8456
  };
8297
8457
  function refreshPage(type, store2) {
8298
- var _a;
8458
+ var _a, _b;
8299
8459
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8460
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8300
8461
  if (type) {
8301
8462
  const sectionUiSchema = {
8302
8463
  Core: CoreSection,
8303
8464
  Value: ValueTab,
8304
8465
  Style: StyleSection,
8305
- Event: EventSection(store2.theme.myTheme),
8466
+ Events: EventSection(store2.theme.myTheme),
8306
8467
  Components: TableSection(store2.theme.myTheme),
8307
8468
  Properties: buildPropertiesSection(type),
8308
8469
  Validation: ValidationSection
8309
8470
  };
8310
8471
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8311
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
8472
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
8312
8473
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8313
8474
  }
8475
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8476
+ const lastDotIndex = path.lastIndexOf(".");
8477
+ const parentPath = path.slice(0, lastDotIndex);
8478
+ const parentObj = _.get(currentConfig, parentPath);
8479
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8480
+ UiSchema.elements[0].elements[0].elements[4] = {
8481
+ type: "Control",
8482
+ scope: "#/properties/columnFormat",
8483
+ options: {
8484
+ widget: "SelectInputField"
8485
+ },
8486
+ config: {
8487
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8488
+ main: {
8489
+ label: "Column Format"
8490
+ }
8491
+ }
8492
+ };
8493
+ UiSchema.elements[0].elements[0].elements[6] = {
8494
+ type: "Control",
8495
+ scope: "#/properties/filteringOptions",
8496
+ options: {
8497
+ widget: "SelectInputField"
8498
+ },
8499
+ config: {
8500
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8501
+ main: {
8502
+ label: "Filter Mode",
8503
+ multiple: true
8504
+ }
8505
+ }
8506
+ };
8507
+ UiSchema.elements[0].elements[0].elements[5] = {
8508
+ type: "Control",
8509
+ scope: "#/properties/enableFilter",
8510
+ options: {
8511
+ widget: "RadioInputField"
8512
+ },
8513
+ config: {
8514
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8515
+ main: {
8516
+ label: "Enable Filter",
8517
+ options: ["Yes", "No"]
8518
+ }
8519
+ }
8520
+ }, UiSchema.elements[0].elements[0].elements[7] = {
8521
+ type: "Control",
8522
+ scope: "#/properties/enableSorting",
8523
+ options: {
8524
+ widget: "RadioInputField"
8525
+ },
8526
+ config: {
8527
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8528
+ main: {
8529
+ label: "Enable Sorting",
8530
+ options: ["Yes", "No"]
8531
+ }
8532
+ }
8533
+ }, UiSchema.elements[0].elements[0].elements[8] = {
8534
+ type: "Control",
8535
+ scope: "#/properties/proc",
8536
+ config: {
8537
+ layout: { xs: 6, sm: 6, md: 8, lg: 3 }
8538
+ },
8539
+ options: {
8540
+ widget: "EmptyBox"
8541
+ }
8542
+ };
8543
+ }
8314
8544
  if (sessionStorage.getItem("copiedConfig")) {
8315
8545
  this.ElementPathSetter(UiSchema);
8316
8546
  }
@@ -8332,10 +8562,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8332
8562
  return getFormdataFromSessionStorage(path);
8333
8563
  },
8334
8564
  getSchema: function() {
8565
+ var _a, _b, _c;
8335
8566
  const schema2 = _.cloneDeep(ComponentSchema);
8336
8567
  if (sessionStorage.getItem("copiedConfig")) {
8337
8568
  schema2.properties.RemoveItemButton.disabled = false;
8338
8569
  }
8570
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8571
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8572
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8573
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
8574
+ if (path) {
8575
+ const pathArrayAll = path.split(".");
8576
+ const arr = [];
8577
+ pathArrayAll.map((e, i) => {
8578
+ if (i === 0) {
8579
+ arr.push(e);
8580
+ return;
8581
+ }
8582
+ arr.push(`${arr[i - 1]}.${e}`);
8583
+ });
8584
+ arr.map((e) => {
8585
+ const data = _.get(config2, e);
8586
+ pathArray.push({
8587
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
8588
+ path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
8589
+ });
8590
+ });
8591
+ }
8592
+ schema2.properties.pageName.path = pathArray;
8339
8593
  return schema2;
8340
8594
  },
8341
8595
  okHandler: () => okHandler(store2),
@@ -8448,6 +8702,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8448
8702
  const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8449
8703
  this.ElementPathSetter(uiSchema, copiedFormData);
8450
8704
  sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8705
+ store2.setNotify({
8706
+ SuccessMessage: `${elementType} Copied Successfully`,
8707
+ Success: true
8708
+ });
8451
8709
  store2.setSchema(schema2);
8452
8710
  store2.setUiSchema(uiSchema);
8453
8711
  },
@@ -8473,15 +8731,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8473
8731
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8474
8732
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8475
8733
  const notificationMessages = {
8476
- Event: " The event cannot be integrated into the component section.",
8477
- Component: "The component cannot be integrated into the event section."
8734
+ Events: " The Events cannot be integrated into the component section.",
8735
+ Component: "The component cannot be integrated into the Events section."
8478
8736
  };
8479
8737
  if (copiedConfig.Handler && elementType === "Component") {
8480
8738
  store2.setNotify({
8481
- FailMessage: notificationMessages.Event,
8739
+ FailMessage: notificationMessages.Events,
8482
8740
  Fail: true
8483
8741
  });
8484
- } else if (copiedConfig.name && elementType === "Event") {
8742
+ } else if (copiedConfig.name && elementType === "Events") {
8485
8743
  store2.setNotify({
8486
8744
  FailMessage: notificationMessages.Component,
8487
8745
  Fail: true
@@ -8507,8 +8765,18 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8507
8765
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8508
8766
  },
8509
8767
  ElementPathSetter: function(uiSchema, copiedFormData) {
8768
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
8510
8769
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8511
- uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
8770
+ if ((_f = (_e = (_d = (_c = (_b = (_a = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _a[1]) == null ? void 0 : _b.elements) == null ? void 0 : _c[0]) == null ? void 0 : _d.config) == null ? void 0 : _e.main) == null ? void 0 : _f.headerIcons) {
8771
+ uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
8772
+ } else if ((_n = (_m = (_l = (_k = (_j = (_i = (_h = (_g = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _g[0]) == null ? void 0 : _h.elements) == null ? void 0 : _i[1]) == null ? void 0 : _j.elements) == null ? void 0 : _k[0]) == null ? void 0 : _l.config) == null ? void 0 : _m.main) == null ? void 0 : _n.headerIcons) {
8773
+ uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
8774
+ }
8775
+ if ((_t = (_s = (_r = (_q = (_p = (_o = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _o[1]) == null ? void 0 : _p.elements) == null ? void 0 : _q[1]) == null ? void 0 : _r.config) == null ? void 0 : _s.main) == null ? void 0 : _t.headerIcons) {
8776
+ uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
8777
+ } else if ((_z = (_y = (_x = (_w = (_v = (_u = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _u[0]) == null ? void 0 : _v.elements) == null ? void 0 : _w[1]) == null ? void 0 : _x.config) == null ? void 0 : _y.main) == null ? void 0 : _z.headerIcons) {
8778
+ uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
8779
+ }
8512
8780
  }
8513
8781
  };
8514
8782
  };
@@ -8659,18 +8927,18 @@ const EventSchema = {
8659
8927
  eventType: {
8660
8928
  type: "string",
8661
8929
  oneOf: [
8662
- { title: "Click Event", const: "onClick" },
8663
- { title: "Load Event", const: "onLoad" },
8664
- { title: "Change Event", const: "onChange" },
8665
- { title: "Mount Event", const: "onMount" },
8930
+ { title: "Click", const: "onClick" },
8931
+ { title: "Load", const: "onLoad" },
8932
+ { title: "Change", const: "onChange" },
8933
+ { title: "Mount", const: "onMount" },
8666
8934
  { title: "Success", const: "Success" },
8667
- { title: "onStart", const: "onStart" },
8668
- { title: "Cell Renderer", const: "onCellRenderer" },
8669
- { title: "File Upload Event", const: "onUpload" },
8670
- { title: "Back Event", const: "onBack" },
8671
- { title: "Next Event", const: "onNext" },
8672
- { title: "onRowMovement", const: "onRowMovement" },
8673
- { title: "File Download Event", const: "onDownload" },
8935
+ { title: "Start", const: "onStart" },
8936
+ { title: "Cell Render", const: "onCellRenderer" },
8937
+ { title: "Upload", const: "onUpload" },
8938
+ { title: "Back", const: "onBack" },
8939
+ { title: "Next", const: "onNext" },
8940
+ { title: "Row Movement", const: "onRowMovement" },
8941
+ { title: "Download", const: "onDownload" },
8674
8942
  { title: "Fail", const: "Fail" }
8675
8943
  ]
8676
8944
  },
@@ -8678,7 +8946,7 @@ const EventSchema = {
8678
8946
  type: "string",
8679
8947
  oneOf: [
8680
8948
  { title: "Custom", const: "custom" },
8681
- { title: "Api", const: "api" },
8949
+ { title: "API", const: "api" },
8682
8950
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8683
8951
  { title: "Refresh", const: "refresh" }
8684
8952
  ]
@@ -8707,47 +8975,49 @@ const EventSchema = {
8707
8975
  },
8708
8976
  RemoveItemButton: {
8709
8977
  disabled: true
8978
+ },
8979
+ pageName: {
8980
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8710
8981
  }
8711
8982
  },
8712
8983
  required: ["eventType", "Handler"]
8713
8984
  };
8714
8985
  const EventUiSchema = (theme) => {
8715
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8986
+ var _a;
8716
8987
  const uiSchema = {
8717
8988
  type: "HorizontalLayout",
8718
- heading: "Component",
8989
+ heading: "Page-Events",
8719
8990
  elements: [
8720
- {
8721
- type: "Control",
8722
- scope: "#/properties/pageName",
8723
- options: {
8724
- widget: "Box"
8725
- },
8726
- config: {
8727
- layout: 12,
8728
- main: {
8729
- heading: " "
8730
- },
8731
- style: {
8732
- marginLeft: theme.spacing(3),
8733
- width: "auto",
8734
- fontSize: "12px",
8735
- color: "gray"
8736
- }
8737
- }
8738
- },
8739
8991
  {
8740
8992
  type: "TabLayout",
8741
8993
  config: {
8742
8994
  main: {
8743
- tabLabels: ["Core", "Response Event"],
8744
- defaultStyle: true,
8995
+ tabLabels: ["Core", "Response Events"],
8745
8996
  id: "event"
8997
+ },
8998
+ style: {
8999
+ TabPanelStyle: {
9000
+ padding: 0
9001
+ }
9002
+ },
9003
+ TabsStyle: {
9004
+ marginBottom: "3px",
9005
+ paddingBottom: "4px",
9006
+ boxShadow: "0px 3px 4px #afafaf80",
9007
+ "& .MuiTabs-indicator": {
9008
+ bottom: "6px"
9009
+ }
8746
9010
  }
8747
9011
  },
8748
9012
  elements: [
8749
9013
  {
8750
- type: "HorizontalLayout",
9014
+ type: "WrapperLayout",
9015
+ config: {
9016
+ main: {
9017
+ label: " ",
9018
+ gap: "8px"
9019
+ }
9020
+ },
8751
9021
  elements: [
8752
9022
  {
8753
9023
  type: "Control",
@@ -8756,9 +9026,9 @@ const EventUiSchema = (theme) => {
8756
9026
  widget: "SelectInputField"
8757
9027
  },
8758
9028
  config: {
8759
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9029
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8760
9030
  main: {
8761
- label: "Event Type",
9031
+ label: "Event's Type",
8762
9032
  type: "text"
8763
9033
  }
8764
9034
  }
@@ -8771,7 +9041,7 @@ const EventUiSchema = (theme) => {
8771
9041
  widget: "EmptyBox"
8772
9042
  },
8773
9043
  config: {
8774
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
9044
+ layout: { xs: 0, sm: 0, md: 4, lg: 6 }
8775
9045
  }
8776
9046
  }
8777
9047
  ]
@@ -8797,12 +9067,18 @@ const EventUiSchema = (theme) => {
8797
9067
  main: {
8798
9068
  onClick: "addEvent",
8799
9069
  size: "small",
8800
- icon: "AddIcon",
8801
- iconLabel: "Add New",
9070
+ icon: "TableAddIcon",
9071
+ iconLabel: "Add",
8802
9072
  styleDefault: true
8803
9073
  },
8804
9074
  style: {
8805
- mt: "6px"
9075
+ mt: "6px",
9076
+ color: "inherit",
9077
+ fill: "inherit",
9078
+ "&:hover": {
9079
+ color: "inherit",
9080
+ fill: "inherit"
9081
+ }
8806
9082
  }
8807
9083
  }
8808
9084
  }
@@ -8818,12 +9094,18 @@ const EventUiSchema = (theme) => {
8818
9094
  main: {
8819
9095
  onClick: "copyPasteElement",
8820
9096
  size: "small",
8821
- icon: "PasteIcon",
9097
+ icon: "TablePaste",
8822
9098
  iconLabel: "Paste",
8823
9099
  styleDefault: true
8824
9100
  },
8825
9101
  style: {
8826
- mt: "6px"
9102
+ mt: "6px",
9103
+ color: "inherit",
9104
+ fill: "inherit",
9105
+ "&:hover": {
9106
+ color: "inherit",
9107
+ fill: "inherit"
9108
+ }
8827
9109
  }
8828
9110
  }
8829
9111
  }
@@ -8838,15 +9120,21 @@ const EventUiSchema = (theme) => {
8838
9120
  elements: [
8839
9121
  {
8840
9122
  accessorKey: "eventType",
8841
- header: "Event Type"
9123
+ header: "Event's Type",
9124
+ size: 300,
9125
+ type: "string"
8842
9126
  },
8843
9127
  {
8844
9128
  accessorKey: "Handler",
8845
- header: "Handler"
9129
+ header: "Handler",
9130
+ size: 200,
9131
+ type: "string"
8846
9132
  },
8847
9133
  {
8848
9134
  accessorKey: "Edit_Approve_Records",
8849
- header: "Edit Widget",
9135
+ header: "Edit",
9136
+ type: "action",
9137
+ size: 150,
8850
9138
  widget: {
8851
9139
  type: "Control",
8852
9140
  scope: "#/properties/Edit_Records",
@@ -8855,14 +9143,16 @@ const EventUiSchema = (theme) => {
8855
9143
  },
8856
9144
  config: {
8857
9145
  main: {
8858
- color: "info",
8859
9146
  size: "small",
8860
- icon: "EditIcon",
9147
+ icon: "TableEditIcon",
8861
9148
  tooltipMessage: "Edit This Record",
8862
9149
  onClick: "editEvent"
8863
9150
  },
8864
9151
  style: {
8865
- color: theme.palette.primary.main
9152
+ fill: theme.palette.primary.main,
9153
+ "& :hover": {
9154
+ fill: theme.palette.primary.dark
9155
+ }
8866
9156
  }
8867
9157
  }
8868
9158
  }
@@ -8870,6 +9160,8 @@ const EventUiSchema = (theme) => {
8870
9160
  {
8871
9161
  accessorKey: "Reject_Records",
8872
9162
  header: "Delete",
9163
+ type: "action",
9164
+ size: 150,
8873
9165
  widget: {
8874
9166
  type: "Control",
8875
9167
  scope: "#/properties/RejectButton",
@@ -8878,10 +9170,15 @@ const EventUiSchema = (theme) => {
8878
9170
  },
8879
9171
  config: {
8880
9172
  main: {
8881
- icon: "RejectIcon",
8882
- color: "error",
9173
+ icon: "Bin",
8883
9174
  tooltipMessage: "Reject This Record",
8884
9175
  onClick: "deletePopUpEvent"
9176
+ },
9177
+ style: {
9178
+ fill: theme.palette.primary.main,
9179
+ "& :hover": {
9180
+ fill: theme.palette.primary.dark
9181
+ }
8885
9182
  }
8886
9183
  }
8887
9184
  }
@@ -8889,7 +9186,8 @@ const EventUiSchema = (theme) => {
8889
9186
  {
8890
9187
  header: "Copy",
8891
9188
  field: "Copy_Event",
8892
- flex: 1,
9189
+ type: "action",
9190
+ size: 150,
8893
9191
  widget: {
8894
9192
  type: "Control",
8895
9193
  scope: "#/properties/Copy_Event",
@@ -8910,103 +9208,59 @@ const EventUiSchema = (theme) => {
8910
9208
  ]
8911
9209
  },
8912
9210
  {
8913
- type: "HorizontalLayout",
9211
+ type: "WrapperLayout",
8914
9212
  config: {
8915
- layout: { xs: 12, sm: 6 }
9213
+ main: {
9214
+ gap: "8px"
9215
+ }
8916
9216
  },
8917
9217
  elements: [
8918
9218
  {
8919
9219
  type: "Control",
8920
- scope: "#/properties/RemoveItemButton",
9220
+ scope: "#/properties/btn",
8921
9221
  options: {
8922
- widget: "IconButton"
9222
+ widget: "Button"
8923
9223
  },
8924
9224
  config: {
8925
- layout: { xs: 1, sm: 1 },
9225
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
8926
9226
  main: {
8927
- onClick: "RemoveItemButton",
8928
- size: "large",
8929
- icon: "RejectIcon",
8930
- styleDefault: true
8931
- },
8932
- style: {
8933
- marginLeft: "-10px"
9227
+ name: "Ok",
9228
+ variant: "contained",
9229
+ type: "text",
9230
+ onClick: "okHandler",
9231
+ size: "medium"
8934
9232
  }
8935
9233
  }
8936
9234
  },
8937
9235
  {
8938
9236
  type: "Control",
8939
- scope: "#/properties/copiedElementDetails",
9237
+ scope: "#/properties/btnSubmit",
8940
9238
  options: {
8941
- widget: "Box"
9239
+ widget: "Button"
8942
9240
  },
8943
9241
  config: {
8944
- layout: { xs: 6, sm: 6 },
9242
+ layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
8945
9243
  main: {
8946
- heading: "No element copied"
8947
- },
8948
- style: {
8949
- color: "#535557",
8950
- marginLeft: "-10px",
8951
- fontSize: "12px",
8952
- marginTop: "4px"
9244
+ name: "Save & Exit",
9245
+ variant: "contained",
9246
+ type: "text",
9247
+ onClick: "saveHandler",
9248
+ size: "medium"
8953
9249
  }
8954
9250
  }
8955
9251
  },
8956
9252
  {
8957
9253
  type: "Control",
8958
9254
  scope: "#/properties/EmptyBox",
9255
+ config: {
9256
+ layout: { xs: 4, sm: 7, md: 8, lg: 9 }
9257
+ },
8959
9258
  options: {
8960
9259
  widget: "EmptyBox"
8961
- },
8962
- config: {
8963
- layout: { xs: 1, sm: 5 }
8964
9260
  }
8965
9261
  }
8966
9262
  ]
8967
9263
  },
8968
- {
8969
- type: "Control",
8970
- scope: "#/properties/btn",
8971
- options: {
8972
- widget: "Button"
8973
- },
8974
- config: {
8975
- layout: { xs: 4, sm: 2 },
8976
- main: {
8977
- name: "Ok",
8978
- startIcon: "ApproveIcon",
8979
- variant: "contained",
8980
- type: "text",
8981
- onClick: "okHandler",
8982
- size: "medium"
8983
- },
8984
- style: {
8985
- float: "right"
8986
- }
8987
- }
8988
- },
8989
- {
8990
- type: "Control",
8991
- scope: "#/properties/btnSubmit",
8992
- options: {
8993
- widget: "Button"
8994
- },
8995
- config: {
8996
- layout: { xs: 4, sm: 2 },
8997
- main: {
8998
- name: "Save & Exit",
8999
- startIcon: "ApproveIcon",
9000
- variant: "contained",
9001
- type: "text",
9002
- onClick: "saveHandler",
9003
- size: "medium"
9004
- },
9005
- style: {
9006
- float: "right"
9007
- }
9008
- }
9009
- },
9010
9264
  {
9011
9265
  type: "Control",
9012
9266
  scope: "#/properties/popUpEvent",
@@ -9035,15 +9289,17 @@ const EventUiSchema = (theme) => {
9035
9289
  config: {
9036
9290
  layout: 11,
9037
9291
  main: {
9038
- heading: "Are you sure you want to delete ?"
9292
+ heading: "Are you sure you want to delete this Event ?"
9039
9293
  },
9040
9294
  style: {
9041
- marginTop: "-20px",
9042
9295
  fontSize: "20px",
9043
9296
  "&.MuiTypography-root": {
9044
- padding: "10px 30px 20px 30px",
9297
+ padding: "0px 20px",
9045
9298
  textAlign: "center",
9046
- lineHeight: "1"
9299
+ lineHeight: "1.2",
9300
+ fontWeight: "normal",
9301
+ fontSize: "18px",
9302
+ marginBottom: theme.spacing(5)
9047
9303
  }
9048
9304
  }
9049
9305
  }
@@ -9067,13 +9323,14 @@ const EventUiSchema = (theme) => {
9067
9323
  name: "No",
9068
9324
  startIcon: "ApproveIcon",
9069
9325
  variant: "contained",
9070
- color: "info",
9071
9326
  type: "text",
9072
9327
  onClick: "deletePopUpEvent",
9073
9328
  size: "large"
9074
9329
  },
9075
9330
  style: {
9076
9331
  position: "absolute",
9332
+ padding: "8px 0px",
9333
+ fontSize: "16px",
9077
9334
  bottom: 0,
9078
9335
  left: 0,
9079
9336
  width: "50%",
@@ -9101,7 +9358,6 @@ const EventUiSchema = (theme) => {
9101
9358
  layout: 6,
9102
9359
  main: {
9103
9360
  name: "Yes",
9104
- startIcon: "ApproveIcon",
9105
9361
  variant: "contained",
9106
9362
  color: "error",
9107
9363
  type: "text",
@@ -9110,6 +9366,8 @@ const EventUiSchema = (theme) => {
9110
9366
  },
9111
9367
  style: {
9112
9368
  position: "absolute",
9369
+ padding: "8px 0px",
9370
+ fontSize: "16px",
9113
9371
  bottom: 0,
9114
9372
  right: 0,
9115
9373
  width: "50%",
@@ -9130,6 +9388,27 @@ const EventUiSchema = (theme) => {
9130
9388
  }
9131
9389
  ]
9132
9390
  },
9391
+ {
9392
+ type: "Control",
9393
+ scope: "#/properties/pageName",
9394
+ options: {
9395
+ widget: "Breadcrumb"
9396
+ },
9397
+ config: {
9398
+ layout: 12,
9399
+ main: {},
9400
+ style: {
9401
+ paddingLeft: theme.spacing(3),
9402
+ color: theme.palette.grey[600],
9403
+ fontSize: "10px",
9404
+ position: "fixed",
9405
+ bottom: "24px",
9406
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
9407
+ borderTop: `1px solid ${theme.palette.common.black}29`,
9408
+ backgroundColor: theme.palette.background.default
9409
+ }
9410
+ }
9411
+ },
9133
9412
  {
9134
9413
  type: "Control",
9135
9414
  scope: "#/properties/notify",
@@ -9147,7 +9426,7 @@ const EventUiSchema = (theme) => {
9147
9426
  style: {
9148
9427
  flexDirection: "row",
9149
9428
  position: "absolute",
9150
- bottom: 0,
9429
+ bottom: 10,
9151
9430
  height: "fit-content",
9152
9431
  overflow: "hidden",
9153
9432
  zIndex: 1e3,
@@ -9166,78 +9445,19 @@ const EventUiSchema = (theme) => {
9166
9445
  heading: "Copywriter@ACT21.IO"
9167
9446
  },
9168
9447
  style: {
9169
- color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
9448
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
9170
9449
  fontSize: "11px",
9171
9450
  textAlign: "center",
9172
- lineHeight: 2,
9451
+ lineHeight: 0,
9173
9452
  width: "fit-content",
9174
9453
  left: "50%",
9175
9454
  position: "relative",
9176
- margin: 0,
9455
+ margin: "revert",
9177
9456
  flexGrow: 1,
9178
9457
  height: 0,
9179
9458
  transform: "translate(-50%, 0%)"
9180
9459
  }
9181
9460
  }
9182
- },
9183
- {
9184
- type: "Control",
9185
- scope: "#/properties/FooterBackIcon",
9186
- options: {
9187
- widget: "Box"
9188
- },
9189
- config: {
9190
- main: {
9191
- iconName: "PrevIcon",
9192
- onClick: "backHandler",
9193
- width: "fit-content"
9194
- },
9195
- style: {
9196
- fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
9197
- width: 20,
9198
- height: 0,
9199
- top: 0,
9200
- right: { xs: "12px", sm: "84px" },
9201
- position: "absolute",
9202
- fontSize: "12px",
9203
- cursor: "pointer",
9204
- ":hover": {
9205
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9206
- },
9207
- marginRight: "20px"
9208
- }
9209
- }
9210
- },
9211
- {
9212
- type: "Control",
9213
- scope: "#/properties/FooterBackHandlerText",
9214
- options: {
9215
- widget: "Box"
9216
- },
9217
- config: {
9218
- main: {
9219
- heading: "Previous Page",
9220
- onClick: "backHandler"
9221
- },
9222
- style: {
9223
- display: { xs: "none", sm: "flex" },
9224
- textAlign: "left",
9225
- lineHeight: 1,
9226
- height: 0,
9227
- width: "fit-content",
9228
- color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
9229
- fontSize: "12px",
9230
- cursor: "pointer",
9231
- marginLeft: "2px",
9232
- top: 3,
9233
- right: "12px",
9234
- position: "absolute",
9235
- ":hover": {
9236
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9237
- },
9238
- marginRight: "4px"
9239
- }
9240
- }
9241
9461
  }
9242
9462
  ]
9243
9463
  }
@@ -9255,7 +9475,7 @@ const APISection = {
9255
9475
  widget: "SelectInputField"
9256
9476
  },
9257
9477
  config: {
9258
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9478
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9259
9479
  main: {
9260
9480
  label: "Method",
9261
9481
  type: "text"
@@ -9269,132 +9489,148 @@ const APISection = {
9269
9489
  widget: "InputField"
9270
9490
  },
9271
9491
  config: {
9272
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9492
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
9273
9493
  main: {
9274
9494
  label: "Path",
9275
9495
  type: "text",
9276
9496
  multiple: false,
9277
9497
  options: []
9278
9498
  }
9279
- }
9499
+ }
9500
+ },
9501
+ {
9502
+ type: "Control",
9503
+ scope: "#/properties/emptyBox",
9504
+ options: {
9505
+ widget: "EmptyBox"
9506
+ },
9507
+ config: {
9508
+ layout: { xs: 0, sm: 0, md: 4, lg: 6 }
9509
+ }
9510
+ },
9511
+ {
9512
+ type: "Control",
9513
+ scope: "#/properties/headers",
9514
+ options: {
9515
+ widget: "Array"
9516
+ },
9517
+ config: {
9518
+ layout: 12,
9519
+ main: {
9520
+ label: "Headers",
9521
+ childElementLabel: "Headers"
9522
+ },
9523
+ style: {
9524
+ marginLeft: "-24px",
9525
+ marginBottom: "24px !important",
9526
+ labelStyle: {
9527
+ marginLeft: "24px"
9528
+ },
9529
+ detailsStyle: {
9530
+ marginLeft: "24px"
9531
+ }
9532
+ }
9533
+ },
9534
+ elements: [
9535
+ {
9536
+ type: "Control",
9537
+ scope: "#/properties/key",
9538
+ options: {
9539
+ widget: "InputField"
9540
+ },
9541
+ config: {
9542
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9543
+ main: {
9544
+ label: "Key"
9545
+ }
9546
+ }
9547
+ },
9548
+ {
9549
+ type: "Control",
9550
+ scope: "#/properties/value",
9551
+ options: {
9552
+ widget: "InputField"
9553
+ },
9554
+ config: {
9555
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9556
+ main: {
9557
+ label: "Value"
9558
+ }
9559
+ }
9560
+ },
9561
+ {
9562
+ type: "Control",
9563
+ scope: "#/properties/emptyBox",
9564
+ options: {
9565
+ widget: "EmptyBox"
9566
+ },
9567
+ config: {
9568
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9569
+ }
9570
+ }
9571
+ ]
9280
9572
  },
9281
9573
  {
9282
9574
  type: "Control",
9283
- scope: "#/properties/emptyBox",
9575
+ scope: "#/properties/body",
9284
9576
  options: {
9285
- widget: "EmptyBox"
9577
+ widget: "Array"
9286
9578
  },
9287
9579
  config: {
9288
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9289
- }
9290
- },
9291
- {
9292
- type: "Control",
9293
- scope: "#/properties/emptyBox",
9294
- options: {
9295
- widget: "EmptyBox"
9580
+ layout: 12,
9581
+ main: {
9582
+ label: "Body",
9583
+ childElementLabel: "Body"
9584
+ },
9585
+ style: {
9586
+ marginLeft: "-24px",
9587
+ marginBottom: "24px !important",
9588
+ labelStyle: {
9589
+ marginLeft: "24px"
9590
+ },
9591
+ detailsStyle: {
9592
+ marginLeft: "24px"
9593
+ }
9594
+ }
9296
9595
  },
9297
- config: {
9298
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9299
- }
9300
- },
9301
- {
9302
- type: "Control",
9303
- scope: "#/properties/headers",
9304
- layout: 11.5,
9305
- options: {
9306
- "elementLabelProp": "key",
9307
- detail: {
9308
- type: "HorizontalLayout",
9309
- elements: [
9310
- {
9311
- type: "Control",
9312
- scope: "#/properties/key",
9313
- options: {
9314
- widget: "InputField"
9315
- },
9316
- config: {
9317
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9318
- main: {
9319
- label: "Key"
9320
- }
9321
- }
9322
- },
9323
- {
9324
- type: "Control",
9325
- scope: "#/properties/value",
9326
- options: {
9327
- widget: "InputField"
9328
- },
9329
- config: {
9330
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9331
- main: {
9332
- label: "Value"
9333
- }
9334
- }
9335
- },
9336
- {
9337
- type: "Control",
9338
- scope: "#/properties/emptyBox",
9339
- options: {
9340
- widget: "EmptyBox"
9341
- },
9342
- config: {
9343
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9344
- }
9596
+ elements: [
9597
+ {
9598
+ type: "Control",
9599
+ scope: "#/properties/key",
9600
+ options: {
9601
+ widget: "InputField"
9602
+ },
9603
+ config: {
9604
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9605
+ main: {
9606
+ label: "Key"
9345
9607
  }
9346
- ]
9347
- }
9348
- }
9349
- },
9350
- {
9351
- type: "Control",
9352
- scope: "#/properties/body",
9353
- layout: 11.5,
9354
- options: {
9355
- "elementLabelProp": "key",
9356
- detail: {
9357
- type: "HorizontalLayout",
9358
- elements: [
9359
- {
9360
- type: "Control",
9361
- scope: "#/properties/key",
9362
- options: {
9363
- widget: "InputField"
9364
- },
9365
- config: {
9366
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9367
- main: {
9368
- label: "Key"
9369
- }
9370
- }
9371
- },
9372
- {
9373
- type: "Control",
9374
- scope: "#/properties/value",
9375
- options: {
9376
- widget: "InputField"
9377
- },
9378
- config: {
9379
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9380
- main: {
9381
- label: "Value"
9382
- }
9383
- }
9384
- },
9385
- {
9386
- type: "Control",
9387
- scope: "#/properties/emptyBox",
9388
- options: {
9389
- widget: "EmptyBox"
9390
- },
9391
- config: {
9392
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9393
- }
9608
+ }
9609
+ },
9610
+ {
9611
+ type: "Control",
9612
+ scope: "#/properties/value",
9613
+ options: {
9614
+ widget: "InputField"
9615
+ },
9616
+ config: {
9617
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9618
+ main: {
9619
+ label: "Value"
9394
9620
  }
9395
- ]
9621
+ }
9622
+ },
9623
+ {
9624
+ type: "Control",
9625
+ scope: "#/properties/emptyBox",
9626
+ options: {
9627
+ widget: "EmptyBox"
9628
+ },
9629
+ config: {
9630
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
9631
+ }
9396
9632
  }
9397
- }
9633
+ ]
9398
9634
  },
9399
9635
  getTextArea("apiBody", "Transformer", true, 12)
9400
9636
  ]
@@ -9405,116 +9641,134 @@ const refreshSectionUiSchema = {
9405
9641
  {
9406
9642
  type: "Control",
9407
9643
  scope: "#/properties/refreshElements",
9408
- layout: 11.5,
9409
9644
  options: {
9410
- detail: {
9411
- type: "HorizontalLayout",
9412
- elements: [
9413
- {
9414
- type: "Control",
9415
- scope: "#/properties/value",
9416
- options: {
9417
- widget: "InputField"
9418
- },
9419
- config: {
9420
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
9421
- main: {
9422
- label: "Value"
9423
- }
9424
- }
9425
- },
9426
- {
9427
- type: "Control",
9428
- scope: "#/properties/emptyBox",
9429
- options: {
9430
- widget: "EmptyBox"
9431
- },
9432
- config: {
9433
- layout: { xs: 0, sm: 6, md: 4, lg: 4 },
9434
- main: {}
9435
- }
9436
- },
9437
- {
9438
- type: "Control",
9439
- scope: "#/properties/emptyBox",
9440
- options: {
9441
- widget: "EmptyBox"
9442
- },
9443
- config: {
9444
- layout: { xs: 0, sm: 0, md: 4, lg: 4 },
9445
- main: {}
9446
- }
9645
+ widget: "Array"
9646
+ },
9647
+ config: {
9648
+ layout: 12,
9649
+ main: {
9650
+ label: "Refresh Elements",
9651
+ childElementLabel: "Refresh Elements"
9652
+ },
9653
+ style: {
9654
+ marginLeft: "-24px",
9655
+ marginBottom: "24px !important",
9656
+ labelStyle: {
9657
+ marginLeft: "24px"
9658
+ },
9659
+ detailsStyle: {
9660
+ marginLeft: "24px"
9661
+ }
9662
+ }
9663
+ },
9664
+ elements: [
9665
+ {
9666
+ type: "Control",
9667
+ scope: "#/properties/value",
9668
+ options: {
9669
+ widget: "InputField"
9670
+ },
9671
+ config: {
9672
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
9673
+ main: {
9674
+ label: "Value"
9447
9675
  }
9448
- ]
9676
+ }
9677
+ },
9678
+ {
9679
+ type: "Control",
9680
+ scope: "#/properties/emptyBox",
9681
+ options: {
9682
+ widget: "EmptyBox"
9683
+ },
9684
+ config: {
9685
+ layout: { xs: 6, sm: 6, md: 8, lg: 8 },
9686
+ main: {}
9687
+ }
9449
9688
  }
9450
- }
9689
+ ]
9451
9690
  }
9452
9691
  ]
9453
9692
  };
9454
- var emptyBox = {
9455
- type: "Control",
9456
- scope: "#/properties/emptyBox",
9457
- options: {
9458
- widget: "EmptyBox"
9459
- },
9460
- config: {
9461
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
9462
- main: {},
9463
- style: {}
9464
- }
9465
- };
9466
9693
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9467
9694
  return {
9468
9695
  setPage: async function() {
9469
9696
  const formdata = await this.getFormData();
9470
9697
  store2.setFormdata(formdata);
9471
9698
  const schema2 = await this.getSchema();
9699
+ console.log("SettingSchema>>", schema2);
9472
9700
  store2.setSchema(schema2);
9473
9701
  this.refreshPage(formdata.Handler, store2);
9474
9702
  },
9475
9703
  refreshPage: (handlerType, store22) => {
9704
+ var _a, _b, _c;
9476
9705
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9477
9706
  const schema2 = _.cloneDeep(EventSchema);
9478
9707
  if (handlerType) {
9479
9708
  if (handlerType === "custom") {
9480
- uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
9481
- uiSchema.elements[1].elements[0].elements[3] = {
9709
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
9710
+ "isSync",
9711
+ "Run in Sync",
9712
+ ["Yes", "No"]
9713
+ );
9714
+ uiSchema.elements[0].elements[0].elements[3] = {
9482
9715
  type: "Control",
9483
9716
  scope: "#/properties/emptyBox",
9484
9717
  options: {
9485
9718
  widget: "EmptyBox"
9486
9719
  },
9487
9720
  config: {
9488
- layout: { xs: 0, sm: 6, md: 0, lg: 0 },
9721
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 },
9489
9722
  main: {},
9490
9723
  style: {}
9491
9724
  }
9492
9725
  };
9493
- uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
9726
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9727
+ "eventCode",
9728
+ "Write Custom Code",
9729
+ false
9730
+ );
9494
9731
  schema2.required = ["eventType", "Handler", "eventCode"];
9495
9732
  } else if (handlerType === "api") {
9496
- uiSchema.elements[1].elements[0].elements[2] = emptyBox;
9497
- uiSchema.elements[1].elements[0].elements[3] = APISection;
9733
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9734
+ xs: 0,
9735
+ sm: 0,
9736
+ md: 4,
9737
+ lg: 6
9738
+ });
9739
+ uiSchema.elements[0].elements[0].elements[3] = APISection;
9498
9740
  schema2.required = ["eventType", "Handler", "method", "path"];
9499
9741
  } else if (handlerType === "inBuiltFunction") {
9500
- uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
9501
- uiSchema.elements[1].elements[0].elements[3] = {
9742
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField(
9743
+ "inBuiltFunctionType",
9744
+ "Function Name"
9745
+ );
9746
+ uiSchema.elements[0].elements[0].elements[3] = {
9502
9747
  type: "Control",
9503
9748
  scope: "#/properties/emptyBox",
9504
9749
  options: {
9505
9750
  widget: "EmptyBox"
9506
9751
  },
9507
9752
  config: {
9508
- layout: { xs: 6, sm: 6, md: 0, lg: 0 },
9753
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 },
9509
9754
  main: {},
9510
9755
  style: {}
9511
9756
  }
9512
9757
  };
9513
- uiSchema.elements[1].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
9758
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9759
+ "funcParametersCode",
9760
+ "Write Custom Code for Functions Parameter",
9761
+ true
9762
+ );
9514
9763
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9515
9764
  } else if (handlerType === "refresh") {
9516
- uiSchema.elements[1].elements[0].elements[2] = emptyBox;
9517
- uiSchema.elements[1].elements[0].elements[3] = refreshSectionUiSchema;
9765
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9766
+ xs: 0,
9767
+ sm: 0,
9768
+ md: 4,
9769
+ lg: 6
9770
+ });
9771
+ uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9518
9772
  schema2.properties.refreshElements.required = ["value"];
9519
9773
  schema2.properties.refreshElements.items.required = ["value"];
9520
9774
  schema2.required = ["eventType", "Handler", "refreshElements"];
@@ -9527,9 +9781,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9527
9781
  ];
9528
9782
  }
9529
9783
  if (sessionStorage.getItem("copiedConfig")) {
9530
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9784
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9785
+ uiSchema
9786
+ );
9531
9787
  schema2.properties.RemoveItemButton.disabled = false;
9532
9788
  }
9789
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9790
+ const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
9791
+ const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
9792
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9793
+ if (path) {
9794
+ const pathArrayAll = path.split(".");
9795
+ const arr = [];
9796
+ pathArrayAll.map((e, i) => {
9797
+ if (i === 0) {
9798
+ arr.push(e);
9799
+ return;
9800
+ }
9801
+ arr.push(`${arr[i - 1]}.${e}`);
9802
+ });
9803
+ arr.map((e) => {
9804
+ const data = _.get(config2, e);
9805
+ pathArray.push({
9806
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9807
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9808
+ });
9809
+ });
9810
+ }
9811
+ schema2.properties.pageName.path = pathArray;
9533
9812
  store22.setSchema(schema2);
9534
9813
  store22.setUiSchema(uiSchema);
9535
9814
  },
@@ -9538,10 +9817,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9538
9817
  return EventUiSchema;
9539
9818
  },
9540
9819
  getSchema: () => {
9820
+ var _a, _b, _c;
9541
9821
  const schema2 = _.cloneDeep(EventSchema);
9542
9822
  if (sessionStorage.getItem("copiedConfig")) {
9543
9823
  schema2.properties.RemoveItemButton.disabled = false;
9544
9824
  }
9825
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9826
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9827
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9828
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9829
+ if (path) {
9830
+ const pathArrayAll = path.split(".");
9831
+ const arr = [];
9832
+ pathArrayAll.map((e, i) => {
9833
+ if (i === 0) {
9834
+ arr.push(e);
9835
+ return;
9836
+ }
9837
+ arr.push(`${arr[i - 1]}.${e}`);
9838
+ });
9839
+ arr.map((e) => {
9840
+ const data = _.get(config2, e);
9841
+ pathArray.push({
9842
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9843
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9844
+ });
9845
+ });
9846
+ }
9847
+ schema2.properties.pageName.path = _.cloneDeep(pathArray);
9545
9848
  return schema2;
9546
9849
  },
9547
9850
  okHandler: () => okHandler(store2),
@@ -9549,7 +9852,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9549
9852
  onChange: function() {
9550
9853
  var _a, _b, _c;
9551
9854
  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) {
9552
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9855
+ this.refreshPage(
9856
+ store2.newData.Handler || store2.formdata.Handler,
9857
+ store2
9858
+ );
9553
9859
  }
9554
9860
  },
9555
9861
  addEvent: function() {
@@ -9575,7 +9881,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9575
9881
  this.setPage();
9576
9882
  },
9577
9883
  deleteEvent: async function() {
9578
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9884
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9885
+ false
9886
+ );
9579
9887
  store2.updateDialog("popUpEvent");
9580
9888
  },
9581
9889
  backHandler: function() {
@@ -9587,10 +9895,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9587
9895
  store2.updateDialog("popUpEvent");
9588
9896
  },
9589
9897
  copyPasteElement: function() {
9590
- Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
9898
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
9899
+ store2,
9900
+ this.setPage.bind(this)
9901
+ );
9591
9902
  },
9592
9903
  RemoveItemButton: function() {
9593
- Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9904
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
9905
+ store2
9906
+ );
9594
9907
  }
9595
9908
  };
9596
9909
  };
@@ -9761,16 +10074,17 @@ function executeCustomHandler(params) {
9761
10074
  }
9762
10075
  }
9763
10076
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10077
+ var _a, _b, _c;
9764
10078
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9765
10079
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9766
10080
  store2.setSchema((pre) => {
9767
- var _a;
10081
+ var _a2;
9768
10082
  return {
9769
10083
  ...pre,
9770
10084
  properties: {
9771
10085
  ...pre.properties,
9772
10086
  [componentName]: {
9773
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10087
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9774
10088
  oneOf: handlerResponse.data
9775
10089
  }
9776
10090
  }
@@ -9780,13 +10094,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9780
10094
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9781
10095
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9782
10096
  store2.setSchema((pre) => {
9783
- var _a;
10097
+ var _a2;
9784
10098
  return {
9785
10099
  ...pre,
9786
10100
  properties: {
9787
10101
  ...pre.properties,
9788
10102
  [componentName]: {
9789
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10103
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9790
10104
  type: "array",
9791
10105
  items: {
9792
10106
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9806,6 +10120,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9806
10120
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9807
10121
  });
9808
10122
  }
10123
+ } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10124
+ if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10125
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10126
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10127
+ store2.setFormdata((pre) => {
10128
+ return { ...pre, ...formDataHolder };
10129
+ });
10130
+ }
9809
10131
  } else {
9810
10132
  if (handlerResponse) {
9811
10133
  formDataHolder[componentName] = handlerResponse.data;
@@ -9962,7 +10284,7 @@ var service = (funcParams) => {
9962
10284
  };
9963
10285
  return {
9964
10286
  setPage: async function() {
9965
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10287
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
9966
10288
  funcParams.store.setFormdata({});
9967
10289
  funcParams.store.newData = {};
9968
10290
  const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
@@ -9977,12 +10299,21 @@ var service = (funcParams) => {
9977
10299
  }));
9978
10300
  }
9979
10301
  const config2 = pageData == null ? void 0 : pageData.config;
10302
+ const programId = ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
10303
+ const queryParams = funcParams.store.searchParam;
10304
+ console.log("queryParams ", queryParams);
10305
+ if ((queryParams == null ? void 0 : queryParams.get("ProgramID")) !== programId) {
10306
+ funcParams.store.setSearchParams({ ...queryParams, ProgramID: programId });
10307
+ funcParams.store.navigate(
10308
+ 0
10309
+ );
10310
+ }
9980
10311
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
9981
10312
  const event2 = new CustomEvent("pageNameChanged", {
9982
10313
  detail: { pageName: config2.label }
9983
10314
  });
9984
10315
  window.dispatchEvent(event2);
9985
- const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10316
+ const theme = (_c = (_b = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _b.theme) == null ? void 0 : _c.myTheme;
9986
10317
  uiSchema.elements.push(
9987
10318
  {
9988
10319
  type: "HorizontalLayout",
@@ -10012,7 +10343,7 @@ var service = (funcParams) => {
10012
10343
  heading: "Copywriter@ACT21.IO"
10013
10344
  },
10014
10345
  style: {
10015
- color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
10346
+ color: ((_e = (_d = theme == null ? void 0 : theme.palette) == null ? void 0 : _d.text) == null ? void 0 : _e.disabled) || "#AFAFAF",
10016
10347
  fontSize: "11px",
10017
10348
  textAlign: "center",
10018
10349
  lineHeight: 2,
@@ -10039,7 +10370,7 @@ var service = (funcParams) => {
10039
10370
  width: "fit-content"
10040
10371
  },
10041
10372
  style: {
10042
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
10373
+ fill: (_g = (_f = theme == null ? void 0 : theme.palette) == null ? void 0 : _f.primary) == null ? void 0 : _g.main,
10043
10374
  width: 20,
10044
10375
  height: 0,
10045
10376
  top: 0,
@@ -10048,7 +10379,7 @@ var service = (funcParams) => {
10048
10379
  fontSize: "12px",
10049
10380
  cursor: "pointer",
10050
10381
  ":hover": {
10051
- fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
10382
+ fill: (_i = (_h = theme == null ? void 0 : theme.palette) == null ? void 0 : _h.primary) == null ? void 0 : _i.dark
10052
10383
  },
10053
10384
  marginRight: "20px"
10054
10385
  }
@@ -10071,7 +10402,7 @@ var service = (funcParams) => {
10071
10402
  lineHeight: 1,
10072
10403
  height: 0,
10073
10404
  width: "fit-content",
10074
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
10405
+ color: (_k = (_j = theme == null ? void 0 : theme.palette) == null ? void 0 : _j.primary) == null ? void 0 : _k.main,
10075
10406
  fontSize: "12px",
10076
10407
  cursor: "pointer",
10077
10408
  marginLeft: "2px",
@@ -10079,7 +10410,7 @@ var service = (funcParams) => {
10079
10410
  right: "12px",
10080
10411
  position: "absolute",
10081
10412
  ":hover": {
10082
- color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
10413
+ color: (_m = (_l = theme == null ? void 0 : theme.palette) == null ? void 0 : _l.primary) == null ? void 0 : _m.dark
10083
10414
  },
10084
10415
  marginRight: "4px"
10085
10416
  }
@@ -10088,7 +10419,7 @@ var service = (funcParams) => {
10088
10419
  ]
10089
10420
  }
10090
10421
  );
10091
- const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
10422
+ const schema2 = (_n = pageData == null ? void 0 : pageData.schema) != null ? _n : { type: "object", properties: {} };
10092
10423
  eventGroups = extractEvents(config2);
10093
10424
  executeEventsParameters = {
10094
10425
  config: {},
@@ -10111,7 +10442,7 @@ var service = (funcParams) => {
10111
10442
  service: funcParams.service,
10112
10443
  serviceHolder: this,
10113
10444
  eventGroups,
10114
- formDataHolder
10445
+ formDataHolder: {}
10115
10446
  });
10116
10447
  funcParams.store.setSchema(
10117
10448
  (pre) => {
@@ -10126,11 +10457,11 @@ var service = (funcParams) => {
10126
10457
  funcParams.store.setUiSchema(uiSchema);
10127
10458
  },
10128
10459
  onCellRenderer: (cellParams) => {
10129
- var _a, _b, _c;
10460
+ var _a, _b, _c, _d;
10130
10461
  if (eventGroups.onCellRenderer) {
10131
10462
  let finalResponse = {};
10132
10463
  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]);
10133
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10464
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10134
10465
  executeEventsParameters.store.functionParameters = cellParams;
10135
10466
  finalResponse = executeEvents({
10136
10467
  ...executeEventsParameters,
@@ -10734,6 +11065,9 @@ const buildTextField = (config2, componentScope2) => {
10734
11065
  if (config2.style) {
10735
11066
  inputField.config.style = JSON.parse(config2.style);
10736
11067
  }
11068
+ if (config2.multiline) {
11069
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11070
+ }
10737
11071
  if (config2.InputFormatingAndMasking) {
10738
11072
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10739
11073
  }
@@ -11570,6 +11904,18 @@ const buildRadio = (config2, componentScope2) => {
11570
11904
  }
11571
11905
  return Radio;
11572
11906
  };
11907
+ var emptyBox = {
11908
+ type: "Control",
11909
+ scope: "#/properties/emptyBox",
11910
+ options: {
11911
+ widget: "EmptyBox"
11912
+ },
11913
+ config: {
11914
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
11915
+ main: {},
11916
+ style: {}
11917
+ }
11918
+ };
11573
11919
  const buildEmptyBox = (config2, componentScope2) => {
11574
11920
  const EmptyBox = _.cloneDeep(emptyBox);
11575
11921
  if (config2.layout) {
@@ -12247,19 +12593,12 @@ const buildUiSchema = (config2, store2) => {
12247
12593
  });
12248
12594
  } else if (config2.type == "Table") {
12249
12595
  const sizeMap = {};
12250
- const filterMap = {};
12251
12596
  if (config2.sizeHolder) {
12252
12597
  config2.sizeHolder.map((e, i) => {
12253
12598
  sizeMap[e.keyName] = e.value;
12254
12599
  });
12255
12600
  }
12256
- if (config2.enableColumnFilter) {
12257
- config2.enableColumnFilter.map((e) => {
12258
- filterMap[e.keyName] = true;
12259
- });
12260
- }
12261
12601
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12262
- var _a, _b;
12263
12602
  if (cellElem.type) {
12264
12603
  return {
12265
12604
  accessorKey: cellElem.name,
@@ -12268,8 +12607,9 @@ const buildUiSchema = (config2, store2) => {
12268
12607
  type: cellElem.columnFormat,
12269
12608
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12270
12609
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12271
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12272
- columnFilterModeOptions: config2.filteringOptions
12610
+ columnFilterModeOptions: cellElem.filteringOptions,
12611
+ enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
12612
+ enableSorting: cellElem.enableSorting === "Yes" ? true : false
12273
12613
  };
12274
12614
  } else {
12275
12615
  return {
@@ -12277,8 +12617,9 @@ const buildUiSchema = (config2, store2) => {
12277
12617
  type: cellElem.columnFormat,
12278
12618
  header: cellElem.label || cellElem.name,
12279
12619
  size: sizeMap[cellElem.name] || 180,
12280
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12281
- columnFilterModeOptions: config2.filteringOptions
12620
+ columnFilterModeOptions: cellElem.filteringOptions,
12621
+ enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
12622
+ enableSorting: cellElem.enableSorting === "Yes" ? true : false
12282
12623
  };
12283
12624
  }
12284
12625
  });