impaktapps-ui-builder 0.0.101-alpha.22 → 0.0.101-alpha.230

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 (21) hide show
  1. package/dist/impaktapps-ui-builder.es.js +538 -289
  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/buildPropertiesSection.d.ts +10 -10
  6. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
  7. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +6 -0
  8. package/package.json +1 -1
  9. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  10. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +14 -10
  11. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +88 -73
  12. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
  13. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +5 -5
  14. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +68 -9
  15. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +41 -17
  16. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  17. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +41 -201
  18. package/src/impaktapps-ui-builder/builder/services/component.ts +161 -32
  19. package/src/impaktapps-ui-builder/builder/services/event.ts +159 -59
  20. package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
  21. 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,7 +380,7 @@ 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
  },
@@ -377,7 +392,7 @@ const PageMasterUiSchema = (theme) => {
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: {
@@ -524,15 +539,17 @@ const PageMasterUiSchema = (theme) => {
524
539
  config: {
525
540
  layout: 11,
526
541
  main: {
527
- heading: "Are you sure you want to delete ?"
542
+ heading: "Are you sure you want to delete this Component ?"
528
543
  },
529
544
  style: {
530
- marginTop: "-20px",
531
545
  fontSize: "20px",
532
546
  "&.MuiTypography-root": {
533
- padding: "10px 30px 20px 30px",
547
+ padding: "0px 20px",
534
548
  textAlign: "center",
535
- lineHeight: "1"
549
+ lineHeight: "1.2",
550
+ fontWeight: "normal",
551
+ fontSize: "18px",
552
+ marginBottom: theme.spacing(5)
536
553
  }
537
554
  }
538
555
  }
@@ -554,15 +571,15 @@ const PageMasterUiSchema = (theme) => {
554
571
  layout: 6,
555
572
  main: {
556
573
  name: "No",
557
- startIcon: "ApproveIcon",
558
574
  variant: "contained",
559
- color: "info",
560
575
  type: "text",
561
576
  onClick: "deletePopUpComponent",
562
577
  size: "large"
563
578
  },
564
579
  style: {
565
580
  position: "absolute",
581
+ padding: "8px 0px",
582
+ fontSize: "16px",
566
583
  bottom: 0,
567
584
  left: 0,
568
585
  width: "50%",
@@ -590,7 +607,6 @@ const PageMasterUiSchema = (theme) => {
590
607
  layout: 6,
591
608
  main: {
592
609
  name: "Yes",
593
- startIcon: "ApproveIcon",
594
610
  variant: "contained",
595
611
  color: "error",
596
612
  type: "text",
@@ -599,6 +615,8 @@ const PageMasterUiSchema = (theme) => {
599
615
  },
600
616
  style: {
601
617
  position: "absolute",
618
+ padding: "8px 0px",
619
+ fontSize: "16px",
602
620
  bottom: 0,
603
621
  right: 0,
604
622
  width: "50%",
@@ -647,15 +665,17 @@ const PageMasterUiSchema = (theme) => {
647
665
  config: {
648
666
  layout: 11,
649
667
  main: {
650
- heading: "Are you sure you want to delete ?"
668
+ heading: "Are you sure you want to delete this Event ?"
651
669
  },
652
670
  style: {
653
- marginTop: "-20px",
654
671
  fontSize: "20px",
655
672
  "&.MuiTypography-root": {
656
- padding: "10px 30px 20px 30px",
673
+ padding: "0px 20px",
657
674
  textAlign: "center",
658
- lineHeight: "1"
675
+ lineHeight: "1.2",
676
+ fontWeight: "normal",
677
+ fontSize: "18px",
678
+ marginBottom: theme.spacing(5)
659
679
  }
660
680
  }
661
681
  }
@@ -677,15 +697,15 @@ const PageMasterUiSchema = (theme) => {
677
697
  layout: 6,
678
698
  main: {
679
699
  name: "No",
680
- startIcon: "ApproveIcon",
681
700
  variant: "contained",
682
- color: "info",
683
701
  type: "text",
684
702
  onClick: "deletePopUpEvent",
685
703
  size: "large"
686
704
  },
687
705
  style: {
688
706
  position: "absolute",
707
+ padding: "8px 0px",
708
+ fontSize: "16px",
689
709
  bottom: 0,
690
710
  left: 0,
691
711
  width: "50%",
@@ -713,7 +733,6 @@ const PageMasterUiSchema = (theme) => {
713
733
  layout: 6,
714
734
  main: {
715
735
  name: "Yes",
716
- startIcon: "ApproveIcon",
717
736
  variant: "contained",
718
737
  color: "error",
719
738
  type: "text",
@@ -722,6 +741,8 @@ const PageMasterUiSchema = (theme) => {
722
741
  },
723
742
  style: {
724
743
  position: "absolute",
744
+ padding: "8px 0px",
745
+ fontSize: "16px",
725
746
  bottom: 0,
726
747
  right: 0,
727
748
  width: "50%",
@@ -6243,7 +6264,7 @@ const ComponentSchema = {
6243
6264
  properties: {
6244
6265
  type: {
6245
6266
  oneOf: [
6246
- { title: "Masked Aadhaar", const: "AadharcardText" },
6267
+ { title: "Masked Aadhar Card", const: "AadharcardText" },
6247
6268
  { title: "Array", const: "Array" },
6248
6269
  { title: "Button", const: "Button" },
6249
6270
  { title: "Data Card", const: "card" },
@@ -6258,7 +6279,7 @@ const ComponentSchema = {
6258
6279
  { title: "Graph", const: "Graph" },
6259
6280
  { title: "Input Slider", const: "InputSlider" },
6260
6281
  { title: "Label", const: "Box" },
6261
- { title: "LeaderBoard", const: "LeaderBoard" },
6282
+ { title: "Leaderboard", const: "LeaderBoard" },
6262
6283
  { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6263
6284
  { title: "Pan Card Masked", const: "PanCardText" },
6264
6285
  { title: "Pop Up", const: "PopUp" },
@@ -6435,23 +6456,20 @@ const ComponentSchema = {
6435
6456
  }
6436
6457
  },
6437
6458
  filteringOptions: {
6438
- type: "array",
6439
- items: {
6440
- oneOf: [
6441
- { const: "fuzzy", title: "Fuzzy" },
6442
- { const: "contains", title: "Contain" },
6443
- { const: "startsWith", title: "Starts with" },
6444
- { const: "endsWith", title: "Ends with" },
6445
- { const: "equals", title: "Equals" },
6446
- { const: "notEquals", title: "Not Equals" },
6447
- { const: "between", title: "Between" },
6448
- { const: "betweenInclusive", title: "Between inclusive" },
6449
- { const: "greaterThan", title: "Greater than" },
6450
- { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6451
- { const: "lessThan", title: "Less than" },
6452
- { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6453
- ]
6454
- }
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
+ ]
6455
6473
  },
6456
6474
  legendLabels: {
6457
6475
  type: "array",
@@ -6567,6 +6585,9 @@ const ComponentSchema = {
6567
6585
  { title: "Info", const: "info" }
6568
6586
  ]
6569
6587
  },
6588
+ pageName: {
6589
+ path: []
6590
+ },
6570
6591
  name: {
6571
6592
  type: "string"
6572
6593
  },
@@ -6828,15 +6849,16 @@ const componentBasicUiSchema = (theme) => {
6828
6849
  config: {
6829
6850
  layout: 11,
6830
6851
  main: {
6831
- heading: "Are you sure you want to delete ?"
6852
+ heading: "Are you sure you want to delete this Component ?"
6832
6853
  },
6833
6854
  style: {
6834
- marginTop: "-20px",
6835
- fontSize: "20px",
6836
6855
  "&.MuiTypography-root": {
6837
- padding: "10px 30px 20px 30px",
6856
+ padding: "0px 20px",
6838
6857
  textAlign: "center",
6839
- lineHeight: "1"
6858
+ lineHeight: "1.2",
6859
+ fontWeight: "normal",
6860
+ fontSize: "18px",
6861
+ marginBottom: theme.spacing(5)
6840
6862
  }
6841
6863
  }
6842
6864
  }
@@ -6865,6 +6887,8 @@ const componentBasicUiSchema = (theme) => {
6865
6887
  },
6866
6888
  style: {
6867
6889
  position: "absolute",
6890
+ padding: "8px 0px",
6891
+ fontSize: "16px",
6868
6892
  bottom: 0,
6869
6893
  left: 0,
6870
6894
  width: "50%",
@@ -6900,6 +6924,8 @@ const componentBasicUiSchema = (theme) => {
6900
6924
  },
6901
6925
  style: {
6902
6926
  position: "absolute",
6927
+ padding: "8px 0px",
6928
+ fontSize: "16px",
6903
6929
  bottom: 0,
6904
6930
  right: 0,
6905
6931
  width: "50%",
@@ -6948,15 +6974,17 @@ const componentBasicUiSchema = (theme) => {
6948
6974
  config: {
6949
6975
  layout: 11,
6950
6976
  main: {
6951
- heading: "Are you sure you want to delete ?"
6977
+ heading: "Are you sure you want to delete this Event ?"
6952
6978
  },
6953
6979
  style: {
6954
- marginTop: "-20px",
6955
6980
  fontSize: "20px",
6956
6981
  "&.MuiTypography-root": {
6957
- padding: "10px 30px 20px 30px",
6982
+ padding: "0px 20px",
6958
6983
  textAlign: "center",
6959
- lineHeight: "1"
6984
+ lineHeight: "1.2",
6985
+ fontWeight: "normal",
6986
+ fontSize: "18px",
6987
+ marginBottom: theme.spacing(5)
6960
6988
  }
6961
6989
  }
6962
6990
  }
@@ -6985,6 +7013,8 @@ const componentBasicUiSchema = (theme) => {
6985
7013
  },
6986
7014
  style: {
6987
7015
  position: "absolute",
7016
+ padding: "8px 0px",
7017
+ fontSize: "16px",
6988
7018
  bottom: 0,
6989
7019
  left: 0,
6990
7020
  width: "50%",
@@ -7020,6 +7050,8 @@ const componentBasicUiSchema = (theme) => {
7020
7050
  },
7021
7051
  style: {
7022
7052
  position: "absolute",
7053
+ padding: "8px 0px",
7054
+ fontSize: "16px",
7023
7055
  bottom: 0,
7024
7056
  right: 0,
7025
7057
  width: "50%",
@@ -7040,6 +7072,27 @@ const componentBasicUiSchema = (theme) => {
7040
7072
  }
7041
7073
  ]
7042
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
+ },
7043
7096
  {
7044
7097
  type: "Control",
7045
7098
  scope: "#/properties/notify",
@@ -7312,7 +7365,7 @@ const EventSection = (theme) => {
7312
7365
  elements: [
7313
7366
  {
7314
7367
  accessorKey: "eventType",
7315
- header: "Event Type",
7368
+ header: "Event's Type",
7316
7369
  type: "string",
7317
7370
  size: 300
7318
7371
  },
@@ -7324,7 +7377,7 @@ const EventSection = (theme) => {
7324
7377
  },
7325
7378
  {
7326
7379
  accessorKey: "Edit_Approve_Records",
7327
- header: "Edit Widget",
7380
+ header: "Edit",
7328
7381
  size: 150,
7329
7382
  type: "action",
7330
7383
  widget: {
@@ -7430,77 +7483,103 @@ const emptyBox$1 = (scope, layout) => {
7430
7483
  const cardLayout = {
7431
7484
  type: "Control",
7432
7485
  scope: "#/properties/cardLayout",
7433
- layout: 11.5,
7434
7486
  options: {
7435
- detail: {
7436
- type: "HorizontalLayout",
7437
- elements: [
7438
- {
7439
- type: "Control",
7440
- scope: "#/properties/key",
7441
- options: {
7442
- widget: "SelectInputField"
7443
- },
7444
- config: {
7445
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7446
- main: {
7447
- label: "Screen Size"
7448
- }
7449
- }
7450
- },
7451
- {
7452
- type: "Control",
7453
- scope: "#/properties/value",
7454
- options: {
7455
- widget: "InputField"
7456
- },
7457
- config: {
7458
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7459
- main: {
7460
- label: "Value",
7461
- type: "number",
7462
- helperText: "Number should be in range of 0 to 12",
7463
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7464
- }
7465
- }
7466
- },
7467
- emptyBox$1("cardEmpty")
7468
- ]
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
+ }
7469
7504
  }
7470
- }
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
+ ]
7471
7538
  };
7472
7539
  const getArrayControl = (parentScope, childScope, childLabel) => {
7473
7540
  return {
7474
7541
  type: "Control",
7475
7542
  scope: `#/properties/${parentScope}`,
7476
- layout: 12,
7477
7543
  options: {
7478
- "elementLabelProp": childScope,
7479
- detail: {
7480
- type: "HorizontalLayout",
7481
- elements: [
7482
- {
7483
- type: "Control",
7484
- scope: `#/properties/${childScope}`,
7485
- options: {
7486
- widget: "InputField"
7487
- },
7488
- config: {
7489
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7490
- main: {
7491
- label: childLabel || "Labels for Tab"
7492
- }
7493
- }
7494
- },
7495
- emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7496
- emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
7497
- ]
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
+ }
7498
7561
  }
7499
- }
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
+ ]
7500
7579
  };
7501
7580
  };
7502
7581
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7503
- sizeHolder.options.detail.elements[1] = {
7582
+ sizeHolder.elements[1] = {
7504
7583
  type: "Control",
7505
7584
  scope: `#/properties/value`,
7506
7585
  options: {
@@ -7513,7 +7592,7 @@ sizeHolder.options.detail.elements[1] = {
7513
7592
  }
7514
7593
  }
7515
7594
  };
7516
- sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
7595
+ sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
7517
7596
  const getInputField = (scope, label) => {
7518
7597
  return {
7519
7598
  type: "Control",
@@ -7552,17 +7631,7 @@ const buildWrapper = (label, elements) => {
7552
7631
  main: {
7553
7632
  label: label || "Details",
7554
7633
  isAccordion: true
7555
- },
7556
- wrapperStyle: {
7557
- marginTop: "-6px",
7558
- marginBottom: "-8px",
7559
- marginLeft: "-34px",
7560
- width: "108%"
7561
- },
7562
- componentsBoxStyle: {
7563
- marginLeft: "12px"
7564
- },
7565
- defaultStyle: true
7634
+ }
7566
7635
  },
7567
7636
  elements: elements || []
7568
7637
  };
@@ -7684,7 +7753,7 @@ const buildPropertiesSection = function(type) {
7684
7753
  case "Text":
7685
7754
  uiSchema.elements = [
7686
7755
  getInputField("placeholder", "Placeholder"),
7687
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7756
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7688
7757
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7689
7758
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7690
7759
  ];
@@ -7693,7 +7762,8 @@ const buildPropertiesSection = function(type) {
7693
7762
  uiSchema.elements = [
7694
7763
  getInputField("placeholder", "Placeholder"),
7695
7764
  getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
7696
- getInputField("codeEditorLanguage", "Enter Code Language")
7765
+ getInputField("codeEditorLanguage", "Enter Code Language"),
7766
+ emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
7697
7767
  ];
7698
7768
  break;
7699
7769
  case "SpeedoMeter":
@@ -7773,7 +7843,7 @@ const buildPropertiesSection = function(type) {
7773
7843
  getInputField("xAxisValue", "X-AxisValue"),
7774
7844
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7775
7845
  getInputField("leftMargin", "Left Margin"),
7776
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7846
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7777
7847
  getArrayControl("legendLabels", "label"),
7778
7848
  getArrayControl("pieArcColors", "color")
7779
7849
  ];
@@ -8353,54 +8423,124 @@ function okHandler(store2) {
8353
8423
  }
8354
8424
  }
8355
8425
  const sectionLabels = {
8356
- Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8357
- MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8358
- Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8359
- 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"],
8360
8430
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8361
8431
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8362
- SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
8363
- card: ["Core", "Properties", "Event", "Style", "Validation"],
8364
- UploadFile: ["Core", "Event", "Style", "Validation"],
8365
- Graph: ["Core", "Properties", "Event", "Style", "Validation"],
8366
- DownloadFile: ["Core", "Event", "Style", "Validation"],
8367
- Box: ["Core", "Event", "Style", "Validation"],
8368
- Properties: ["Core", "Properties", "Event", "Style", "Validation"],
8369
- ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
8370
- RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
8371
- Slider: ["Core", "Components", "Event", "Style", "Validation"],
8372
- Timer: ["Core", "Event", "Style", "Validation"],
8373
- Rank: ["Core", "Event", "Style", "Validation"],
8374
- 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"],
8375
8445
  Array: ["Core", "Components", "Validation"],
8376
- Radio: ["Core", "Properties", "Event", "Style", "Validation"],
8377
- Text: ["Core", "Properties", "Event", "Style", "Validation"],
8378
- 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"],
8379
8449
  PopUp: ["Core", "Components", "Properties", "Style"],
8380
- Stepper: ["Core", "Components", "Properties", "Event", "Style"],
8381
- DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8382
- InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8383
- 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"],
8384
8454
  ColumnGroup: ["Core", "Components"],
8385
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8455
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8386
8456
  };
8387
8457
  function refreshPage(type, store2) {
8388
- var _a;
8458
+ var _a, _b;
8389
8459
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8460
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8390
8461
  if (type) {
8391
8462
  const sectionUiSchema = {
8392
8463
  Core: CoreSection,
8393
8464
  Value: ValueTab,
8394
8465
  Style: StyleSection,
8395
- Event: EventSection(store2.theme.myTheme),
8466
+ Events: EventSection(store2.theme.myTheme),
8396
8467
  Components: TableSection(store2.theme.myTheme),
8397
8468
  Properties: buildPropertiesSection(type),
8398
8469
  Validation: ValidationSection
8399
8470
  };
8400
8471
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8401
- 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"];
8402
8473
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8403
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
+ }
8404
8544
  if (sessionStorage.getItem("copiedConfig")) {
8405
8545
  this.ElementPathSetter(UiSchema);
8406
8546
  }
@@ -8422,10 +8562,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8422
8562
  return getFormdataFromSessionStorage(path);
8423
8563
  },
8424
8564
  getSchema: function() {
8565
+ var _a, _b, _c;
8425
8566
  const schema2 = _.cloneDeep(ComponentSchema);
8426
8567
  if (sessionStorage.getItem("copiedConfig")) {
8427
8568
  schema2.properties.RemoveItemButton.disabled = false;
8428
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;
8429
8593
  return schema2;
8430
8594
  },
8431
8595
  okHandler: () => okHandler(store2),
@@ -8538,6 +8702,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8538
8702
  const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8539
8703
  this.ElementPathSetter(uiSchema, copiedFormData);
8540
8704
  sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8705
+ store2.setNotify({
8706
+ SuccessMessage: `${elementType} Copied Successfully`,
8707
+ Success: true
8708
+ });
8541
8709
  store2.setSchema(schema2);
8542
8710
  store2.setUiSchema(uiSchema);
8543
8711
  },
@@ -8563,15 +8731,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8563
8731
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8564
8732
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8565
8733
  const notificationMessages = {
8566
- Event: " The event cannot be integrated into the component section.",
8567
- 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."
8568
8736
  };
8569
8737
  if (copiedConfig.Handler && elementType === "Component") {
8570
8738
  store2.setNotify({
8571
- FailMessage: notificationMessages.Event,
8739
+ FailMessage: notificationMessages.Events,
8572
8740
  Fail: true
8573
8741
  });
8574
- } else if (copiedConfig.name && elementType === "Event") {
8742
+ } else if (copiedConfig.name && elementType === "Events") {
8575
8743
  store2.setNotify({
8576
8744
  FailMessage: notificationMessages.Component,
8577
8745
  Fail: true
@@ -8597,8 +8765,18 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8597
8765
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8598
8766
  },
8599
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;
8600
8769
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8601
- 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
+ }
8602
8780
  }
8603
8781
  };
8604
8782
  };
@@ -8749,18 +8927,18 @@ const EventSchema = {
8749
8927
  eventType: {
8750
8928
  type: "string",
8751
8929
  oneOf: [
8752
- { title: "Click Event", const: "onClick" },
8753
- { title: "Load Event", const: "onLoad" },
8754
- { title: "Change Event", const: "onChange" },
8755
- { 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" },
8756
8934
  { title: "Success", const: "Success" },
8757
- { title: "onStart", const: "onStart" },
8758
- { title: "Cell Renderer", const: "onCellRenderer" },
8759
- { title: "File Upload Event", const: "onUpload" },
8760
- { title: "Back Event", const: "onBack" },
8761
- { title: "Next Event", const: "onNext" },
8762
- { title: "onRowMovement", const: "onRowMovement" },
8763
- { 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" },
8764
8942
  { title: "Fail", const: "Fail" }
8765
8943
  ]
8766
8944
  },
@@ -8768,7 +8946,7 @@ const EventSchema = {
8768
8946
  type: "string",
8769
8947
  oneOf: [
8770
8948
  { title: "Custom", const: "custom" },
8771
- { title: "Api", const: "api" },
8949
+ { title: "API", const: "api" },
8772
8950
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8773
8951
  { title: "Refresh", const: "refresh" }
8774
8952
  ]
@@ -8797,15 +8975,18 @@ const EventSchema = {
8797
8975
  },
8798
8976
  RemoveItemButton: {
8799
8977
  disabled: true
8978
+ },
8979
+ pageName: {
8980
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8800
8981
  }
8801
8982
  },
8802
8983
  required: ["eventType", "Handler"]
8803
8984
  };
8804
8985
  const EventUiSchema = (theme) => {
8805
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8986
+ var _a;
8806
8987
  const uiSchema = {
8807
8988
  type: "HorizontalLayout",
8808
- heading: "Page-Event",
8989
+ heading: "Page-Events",
8809
8990
  elements: [
8810
8991
  {
8811
8992
  type: "TabLayout",
@@ -8939,7 +9120,7 @@ const EventUiSchema = (theme) => {
8939
9120
  elements: [
8940
9121
  {
8941
9122
  accessorKey: "eventType",
8942
- header: "Event Type",
9123
+ header: "Event's Type",
8943
9124
  size: 300,
8944
9125
  type: "string"
8945
9126
  },
@@ -8951,7 +9132,7 @@ const EventUiSchema = (theme) => {
8951
9132
  },
8952
9133
  {
8953
9134
  accessorKey: "Edit_Approve_Records",
8954
- header: "Edit Widget",
9135
+ header: "Edit",
8955
9136
  type: "action",
8956
9137
  size: 150,
8957
9138
  widget: {
@@ -9108,15 +9289,17 @@ const EventUiSchema = (theme) => {
9108
9289
  config: {
9109
9290
  layout: 11,
9110
9291
  main: {
9111
- heading: "Are you sure you want to delete ?"
9292
+ heading: "Are you sure you want to delete this Event ?"
9112
9293
  },
9113
9294
  style: {
9114
- marginTop: "-20px",
9115
9295
  fontSize: "20px",
9116
9296
  "&.MuiTypography-root": {
9117
- padding: "10px 30px 20px 30px",
9297
+ padding: "0px 20px",
9118
9298
  textAlign: "center",
9119
- lineHeight: "1"
9299
+ lineHeight: "1.2",
9300
+ fontWeight: "normal",
9301
+ fontSize: "18px",
9302
+ marginBottom: theme.spacing(5)
9120
9303
  }
9121
9304
  }
9122
9305
  }
@@ -9140,13 +9323,14 @@ const EventUiSchema = (theme) => {
9140
9323
  name: "No",
9141
9324
  startIcon: "ApproveIcon",
9142
9325
  variant: "contained",
9143
- color: "info",
9144
9326
  type: "text",
9145
9327
  onClick: "deletePopUpEvent",
9146
9328
  size: "large"
9147
9329
  },
9148
9330
  style: {
9149
9331
  position: "absolute",
9332
+ padding: "8px 0px",
9333
+ fontSize: "16px",
9150
9334
  bottom: 0,
9151
9335
  left: 0,
9152
9336
  width: "50%",
@@ -9174,7 +9358,6 @@ const EventUiSchema = (theme) => {
9174
9358
  layout: 6,
9175
9359
  main: {
9176
9360
  name: "Yes",
9177
- startIcon: "ApproveIcon",
9178
9361
  variant: "contained",
9179
9362
  color: "error",
9180
9363
  type: "text",
@@ -9183,6 +9366,8 @@ const EventUiSchema = (theme) => {
9183
9366
  },
9184
9367
  style: {
9185
9368
  position: "absolute",
9369
+ padding: "8px 0px",
9370
+ fontSize: "16px",
9186
9371
  bottom: 0,
9187
9372
  right: 0,
9188
9373
  width: "50%",
@@ -9203,6 +9388,27 @@ const EventUiSchema = (theme) => {
9203
9388
  }
9204
9389
  ]
9205
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
+ },
9206
9412
  {
9207
9413
  type: "Control",
9208
9414
  scope: "#/properties/notify",
@@ -9220,7 +9426,7 @@ const EventUiSchema = (theme) => {
9220
9426
  style: {
9221
9427
  flexDirection: "row",
9222
9428
  position: "absolute",
9223
- bottom: 0,
9429
+ bottom: 10,
9224
9430
  height: "fit-content",
9225
9431
  overflow: "hidden",
9226
9432
  zIndex: 1e3,
@@ -9239,78 +9445,19 @@ const EventUiSchema = (theme) => {
9239
9445
  heading: "Copywriter@ACT21.IO"
9240
9446
  },
9241
9447
  style: {
9242
- 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",
9243
9449
  fontSize: "11px",
9244
9450
  textAlign: "center",
9245
- lineHeight: 2,
9451
+ lineHeight: 0,
9246
9452
  width: "fit-content",
9247
9453
  left: "50%",
9248
9454
  position: "relative",
9249
- margin: 0,
9455
+ margin: "revert",
9250
9456
  flexGrow: 1,
9251
9457
  height: 0,
9252
9458
  transform: "translate(-50%, 0%)"
9253
9459
  }
9254
9460
  }
9255
- },
9256
- {
9257
- type: "Control",
9258
- scope: "#/properties/FooterBackIcon",
9259
- options: {
9260
- widget: "Box"
9261
- },
9262
- config: {
9263
- main: {
9264
- iconName: "PrevIcon",
9265
- onClick: "backHandler",
9266
- width: "fit-content"
9267
- },
9268
- style: {
9269
- fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
9270
- width: 20,
9271
- height: 0,
9272
- top: 0,
9273
- right: { xs: "12px", sm: "84px" },
9274
- position: "absolute",
9275
- fontSize: "12px",
9276
- cursor: "pointer",
9277
- ":hover": {
9278
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9279
- },
9280
- marginRight: "20px"
9281
- }
9282
- }
9283
- },
9284
- {
9285
- type: "Control",
9286
- scope: "#/properties/FooterBackHandlerText",
9287
- options: {
9288
- widget: "Box"
9289
- },
9290
- config: {
9291
- main: {
9292
- heading: "Previous Page",
9293
- onClick: "backHandler"
9294
- },
9295
- style: {
9296
- display: { xs: "none", sm: "flex" },
9297
- textAlign: "left",
9298
- lineHeight: 1,
9299
- height: 0,
9300
- width: "fit-content",
9301
- color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
9302
- fontSize: "12px",
9303
- cursor: "pointer",
9304
- marginLeft: "2px",
9305
- top: 3,
9306
- right: "12px",
9307
- position: "absolute",
9308
- ":hover": {
9309
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9310
- },
9311
- marginRight: "4px"
9312
- }
9313
- }
9314
9461
  }
9315
9462
  ]
9316
9463
  }
@@ -9543,33 +9690,27 @@ const refreshSectionUiSchema = {
9543
9690
  }
9544
9691
  ]
9545
9692
  };
9546
- var emptyBox = {
9547
- type: "Control",
9548
- scope: "#/properties/emptyBox",
9549
- options: {
9550
- widget: "EmptyBox"
9551
- },
9552
- config: {
9553
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
9554
- main: {},
9555
- style: {}
9556
- }
9557
- };
9558
9693
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9559
9694
  return {
9560
9695
  setPage: async function() {
9561
9696
  const formdata = await this.getFormData();
9562
9697
  store2.setFormdata(formdata);
9563
9698
  const schema2 = await this.getSchema();
9699
+ console.log("SettingSchema>>", schema2);
9564
9700
  store2.setSchema(schema2);
9565
9701
  this.refreshPage(formdata.Handler, store2);
9566
9702
  },
9567
9703
  refreshPage: (handlerType, store22) => {
9704
+ var _a, _b, _c;
9568
9705
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9569
9706
  const schema2 = _.cloneDeep(EventSchema);
9570
9707
  if (handlerType) {
9571
9708
  if (handlerType === "custom") {
9572
- uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
9709
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
9710
+ "isSync",
9711
+ "Run in Sync",
9712
+ ["Yes", "No"]
9713
+ );
9573
9714
  uiSchema.elements[0].elements[0].elements[3] = {
9574
9715
  type: "Control",
9575
9716
  scope: "#/properties/emptyBox",
@@ -9582,14 +9723,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9582
9723
  style: {}
9583
9724
  }
9584
9725
  };
9585
- uiSchema.elements[0].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
+ );
9586
9731
  schema2.required = ["eventType", "Handler", "eventCode"];
9587
9732
  } else if (handlerType === "api") {
9588
- uiSchema.elements[0].elements[0].elements[2] = emptyBox;
9733
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9734
+ xs: 0,
9735
+ sm: 0,
9736
+ md: 4,
9737
+ lg: 6
9738
+ });
9589
9739
  uiSchema.elements[0].elements[0].elements[3] = APISection;
9590
9740
  schema2.required = ["eventType", "Handler", "method", "path"];
9591
9741
  } else if (handlerType === "inBuiltFunction") {
9592
- uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
9742
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField(
9743
+ "inBuiltFunctionType",
9744
+ "Function Name"
9745
+ );
9593
9746
  uiSchema.elements[0].elements[0].elements[3] = {
9594
9747
  type: "Control",
9595
9748
  scope: "#/properties/emptyBox",
@@ -9602,10 +9755,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9602
9755
  style: {}
9603
9756
  }
9604
9757
  };
9605
- uiSchema.elements[0].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
+ );
9606
9763
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9607
9764
  } else if (handlerType === "refresh") {
9608
- uiSchema.elements[0].elements[0].elements[2] = emptyBox;
9765
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9766
+ xs: 0,
9767
+ sm: 0,
9768
+ md: 4,
9769
+ lg: 6
9770
+ });
9609
9771
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9610
9772
  schema2.properties.refreshElements.required = ["value"];
9611
9773
  schema2.properties.refreshElements.items.required = ["value"];
@@ -9619,9 +9781,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9619
9781
  ];
9620
9782
  }
9621
9783
  if (sessionStorage.getItem("copiedConfig")) {
9622
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9784
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9785
+ uiSchema
9786
+ );
9623
9787
  schema2.properties.RemoveItemButton.disabled = false;
9624
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;
9625
9812
  store22.setSchema(schema2);
9626
9813
  store22.setUiSchema(uiSchema);
9627
9814
  },
@@ -9630,10 +9817,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9630
9817
  return EventUiSchema;
9631
9818
  },
9632
9819
  getSchema: () => {
9820
+ var _a, _b, _c;
9633
9821
  const schema2 = _.cloneDeep(EventSchema);
9634
9822
  if (sessionStorage.getItem("copiedConfig")) {
9635
9823
  schema2.properties.RemoveItemButton.disabled = false;
9636
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);
9637
9848
  return schema2;
9638
9849
  },
9639
9850
  okHandler: () => okHandler(store2),
@@ -9641,7 +9852,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9641
9852
  onChange: function() {
9642
9853
  var _a, _b, _c;
9643
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) {
9644
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9855
+ this.refreshPage(
9856
+ store2.newData.Handler || store2.formdata.Handler,
9857
+ store2
9858
+ );
9645
9859
  }
9646
9860
  },
9647
9861
  addEvent: function() {
@@ -9667,7 +9881,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9667
9881
  this.setPage();
9668
9882
  },
9669
9883
  deleteEvent: async function() {
9670
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9884
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9885
+ false
9886
+ );
9671
9887
  store2.updateDialog("popUpEvent");
9672
9888
  },
9673
9889
  backHandler: function() {
@@ -9679,10 +9895,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9679
9895
  store2.updateDialog("popUpEvent");
9680
9896
  },
9681
9897
  copyPasteElement: function() {
9682
- 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
+ );
9683
9902
  },
9684
9903
  RemoveItemButton: function() {
9685
- Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9904
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
9905
+ store2
9906
+ );
9686
9907
  }
9687
9908
  };
9688
9909
  };
@@ -9853,16 +10074,17 @@ function executeCustomHandler(params) {
9853
10074
  }
9854
10075
  }
9855
10076
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10077
+ var _a, _b, _c;
9856
10078
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9857
10079
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9858
10080
  store2.setSchema((pre) => {
9859
- var _a;
10081
+ var _a2;
9860
10082
  return {
9861
10083
  ...pre,
9862
10084
  properties: {
9863
10085
  ...pre.properties,
9864
10086
  [componentName]: {
9865
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10087
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9866
10088
  oneOf: handlerResponse.data
9867
10089
  }
9868
10090
  }
@@ -9872,13 +10094,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9872
10094
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9873
10095
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9874
10096
  store2.setSchema((pre) => {
9875
- var _a;
10097
+ var _a2;
9876
10098
  return {
9877
10099
  ...pre,
9878
10100
  properties: {
9879
10101
  ...pre.properties,
9880
10102
  [componentName]: {
9881
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10103
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9882
10104
  type: "array",
9883
10105
  items: {
9884
10106
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9898,6 +10120,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9898
10120
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9899
10121
  });
9900
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
+ }
9901
10131
  } else {
9902
10132
  if (handlerResponse) {
9903
10133
  formDataHolder[componentName] = handlerResponse.data;
@@ -10054,7 +10284,7 @@ var service = (funcParams) => {
10054
10284
  };
10055
10285
  return {
10056
10286
  setPage: async function() {
10057
- 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;
10058
10288
  funcParams.store.setFormdata({});
10059
10289
  funcParams.store.newData = {};
10060
10290
  const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
@@ -10069,12 +10299,21 @@ var service = (funcParams) => {
10069
10299
  }));
10070
10300
  }
10071
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
+ }
10072
10311
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10073
10312
  const event2 = new CustomEvent("pageNameChanged", {
10074
10313
  detail: { pageName: config2.label }
10075
10314
  });
10076
10315
  window.dispatchEvent(event2);
10077
- 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;
10078
10317
  uiSchema.elements.push(
10079
10318
  {
10080
10319
  type: "HorizontalLayout",
@@ -10104,7 +10343,7 @@ var service = (funcParams) => {
10104
10343
  heading: "Copywriter@ACT21.IO"
10105
10344
  },
10106
10345
  style: {
10107
- 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",
10108
10347
  fontSize: "11px",
10109
10348
  textAlign: "center",
10110
10349
  lineHeight: 2,
@@ -10131,7 +10370,7 @@ var service = (funcParams) => {
10131
10370
  width: "fit-content"
10132
10371
  },
10133
10372
  style: {
10134
- 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,
10135
10374
  width: 20,
10136
10375
  height: 0,
10137
10376
  top: 0,
@@ -10140,7 +10379,7 @@ var service = (funcParams) => {
10140
10379
  fontSize: "12px",
10141
10380
  cursor: "pointer",
10142
10381
  ":hover": {
10143
- 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
10144
10383
  },
10145
10384
  marginRight: "20px"
10146
10385
  }
@@ -10163,7 +10402,7 @@ var service = (funcParams) => {
10163
10402
  lineHeight: 1,
10164
10403
  height: 0,
10165
10404
  width: "fit-content",
10166
- 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,
10167
10406
  fontSize: "12px",
10168
10407
  cursor: "pointer",
10169
10408
  marginLeft: "2px",
@@ -10171,7 +10410,7 @@ var service = (funcParams) => {
10171
10410
  right: "12px",
10172
10411
  position: "absolute",
10173
10412
  ":hover": {
10174
- 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
10175
10414
  },
10176
10415
  marginRight: "4px"
10177
10416
  }
@@ -10180,7 +10419,7 @@ var service = (funcParams) => {
10180
10419
  ]
10181
10420
  }
10182
10421
  );
10183
- 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: {} };
10184
10423
  eventGroups = extractEvents(config2);
10185
10424
  executeEventsParameters = {
10186
10425
  config: {},
@@ -10203,7 +10442,7 @@ var service = (funcParams) => {
10203
10442
  service: funcParams.service,
10204
10443
  serviceHolder: this,
10205
10444
  eventGroups,
10206
- formDataHolder
10445
+ formDataHolder: {}
10207
10446
  });
10208
10447
  funcParams.store.setSchema(
10209
10448
  (pre) => {
@@ -10218,11 +10457,11 @@ var service = (funcParams) => {
10218
10457
  funcParams.store.setUiSchema(uiSchema);
10219
10458
  },
10220
10459
  onCellRenderer: (cellParams) => {
10221
- var _a, _b, _c;
10460
+ var _a, _b, _c, _d;
10222
10461
  if (eventGroups.onCellRenderer) {
10223
10462
  let finalResponse = {};
10224
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]);
10225
- 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]) {
10226
10465
  executeEventsParameters.store.functionParameters = cellParams;
10227
10466
  finalResponse = executeEvents({
10228
10467
  ...executeEventsParameters,
@@ -10826,6 +11065,9 @@ const buildTextField = (config2, componentScope2) => {
10826
11065
  if (config2.style) {
10827
11066
  inputField.config.style = JSON.parse(config2.style);
10828
11067
  }
11068
+ if (config2.multiline) {
11069
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11070
+ }
10829
11071
  if (config2.InputFormatingAndMasking) {
10830
11072
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10831
11073
  }
@@ -11662,6 +11904,18 @@ const buildRadio = (config2, componentScope2) => {
11662
11904
  }
11663
11905
  return Radio;
11664
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
+ };
11665
11919
  const buildEmptyBox = (config2, componentScope2) => {
11666
11920
  const EmptyBox = _.cloneDeep(emptyBox);
11667
11921
  if (config2.layout) {
@@ -12339,19 +12593,12 @@ const buildUiSchema = (config2, store2) => {
12339
12593
  });
12340
12594
  } else if (config2.type == "Table") {
12341
12595
  const sizeMap = {};
12342
- const filterMap = {};
12343
12596
  if (config2.sizeHolder) {
12344
12597
  config2.sizeHolder.map((e, i) => {
12345
12598
  sizeMap[e.keyName] = e.value;
12346
12599
  });
12347
12600
  }
12348
- if (config2.enableColumnFilter) {
12349
- config2.enableColumnFilter.map((e) => {
12350
- filterMap[e.keyName] = true;
12351
- });
12352
- }
12353
12601
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12354
- var _a, _b;
12355
12602
  if (cellElem.type) {
12356
12603
  return {
12357
12604
  accessorKey: cellElem.name,
@@ -12360,8 +12607,9 @@ const buildUiSchema = (config2, store2) => {
12360
12607
  type: cellElem.columnFormat,
12361
12608
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12362
12609
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12363
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12364
- columnFilterModeOptions: config2.filteringOptions
12610
+ columnFilterModeOptions: cellElem.filteringOptions,
12611
+ enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
12612
+ enableSorting: cellElem.enableSorting === "Yes" ? true : false
12365
12613
  };
12366
12614
  } else {
12367
12615
  return {
@@ -12369,8 +12617,9 @@ const buildUiSchema = (config2, store2) => {
12369
12617
  type: cellElem.columnFormat,
12370
12618
  header: cellElem.label || cellElem.name,
12371
12619
  size: sizeMap[cellElem.name] || 180,
12372
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12373
- columnFilterModeOptions: config2.filteringOptions
12620
+ columnFilterModeOptions: cellElem.filteringOptions,
12621
+ enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
12622
+ enableSorting: cellElem.enableSorting === "Yes" ? true : false
12374
12623
  };
12375
12624
  }
12376
12625
  });