impaktapps-ui-builder 0.0.101-alpha.24 → 0.0.101-alpha.251

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 (31) hide show
  1. package/dist/impaktapps-ui-builder.es.js +557 -328
  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 +0 -10
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +3 -5
  7. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
  8. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
  9. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
  10. package/package.json +1 -1
  11. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  12. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +21 -29
  13. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +87 -72
  14. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +11 -8
  15. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -60
  16. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
  17. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +0 -52
  18. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -50
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +25 -28
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +46 -159
  21. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -97
  22. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  23. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +43 -259
  24. package/src/impaktapps-ui-builder/builder/services/component.ts +217 -56
  25. package/src/impaktapps-ui-builder/builder/services/event.ts +175 -58
  26. package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
  27. package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -111
  28. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
  30. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -22
  31. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +0 -18
@@ -184,7 +184,8 @@ const PageMasterUiSchema = (theme) => {
184
184
  size: "small",
185
185
  icon: "TablePaste",
186
186
  iconLabel: "Paste",
187
- styleDefault: true
187
+ styleDefault: true,
188
+ title: ""
188
189
  },
189
190
  style: {
190
191
  mt: "6px",
@@ -365,7 +366,7 @@ const PageMasterUiSchema = (theme) => {
365
366
  elements: [
366
367
  {
367
368
  accessorKey: "eventType",
368
- header: "Event Type",
369
+ header: "Event's Type",
369
370
  size: 300,
370
371
  type: "string"
371
372
  },
@@ -377,7 +378,7 @@ const PageMasterUiSchema = (theme) => {
377
378
  },
378
379
  {
379
380
  accessorKey: "Edit_Approve_Records",
380
- header: "Edit Widget",
381
+ header: "Edit",
381
382
  type: "action",
382
383
  size: 150,
383
384
  widget: {
@@ -524,15 +525,17 @@ const PageMasterUiSchema = (theme) => {
524
525
  config: {
525
526
  layout: 11,
526
527
  main: {
527
- heading: "Are you sure you want to delete ?"
528
+ heading: "Are you sure you want to delete this Component ?"
528
529
  },
529
530
  style: {
530
- marginTop: "-20px",
531
531
  fontSize: "20px",
532
532
  "&.MuiTypography-root": {
533
- padding: "10px 30px 20px 30px",
533
+ padding: "0px 20px",
534
534
  textAlign: "center",
535
- lineHeight: "1"
535
+ lineHeight: "1.2",
536
+ fontWeight: "normal",
537
+ fontSize: "18px",
538
+ marginBottom: theme.spacing(5)
536
539
  }
537
540
  }
538
541
  }
@@ -554,15 +557,15 @@ const PageMasterUiSchema = (theme) => {
554
557
  layout: 6,
555
558
  main: {
556
559
  name: "No",
557
- startIcon: "ApproveIcon",
558
560
  variant: "contained",
559
- color: "info",
560
561
  type: "text",
561
562
  onClick: "deletePopUpComponent",
562
563
  size: "large"
563
564
  },
564
565
  style: {
565
566
  position: "absolute",
567
+ padding: "8px 0px",
568
+ fontSize: "16px",
566
569
  bottom: 0,
567
570
  left: 0,
568
571
  width: "50%",
@@ -590,7 +593,6 @@ const PageMasterUiSchema = (theme) => {
590
593
  layout: 6,
591
594
  main: {
592
595
  name: "Yes",
593
- startIcon: "ApproveIcon",
594
596
  variant: "contained",
595
597
  color: "error",
596
598
  type: "text",
@@ -599,6 +601,8 @@ const PageMasterUiSchema = (theme) => {
599
601
  },
600
602
  style: {
601
603
  position: "absolute",
604
+ padding: "8px 0px",
605
+ fontSize: "16px",
602
606
  bottom: 0,
603
607
  right: 0,
604
608
  width: "50%",
@@ -647,15 +651,17 @@ const PageMasterUiSchema = (theme) => {
647
651
  config: {
648
652
  layout: 11,
649
653
  main: {
650
- heading: "Are you sure you want to delete ?"
654
+ heading: "Are you sure you want to delete this Event ?"
651
655
  },
652
656
  style: {
653
- marginTop: "-20px",
654
657
  fontSize: "20px",
655
658
  "&.MuiTypography-root": {
656
- padding: "10px 30px 20px 30px",
659
+ padding: "0px 20px",
657
660
  textAlign: "center",
658
- lineHeight: "1"
661
+ lineHeight: "1.2",
662
+ fontWeight: "normal",
663
+ fontSize: "18px",
664
+ marginBottom: theme.spacing(5)
659
665
  }
660
666
  }
661
667
  }
@@ -677,15 +683,15 @@ const PageMasterUiSchema = (theme) => {
677
683
  layout: 6,
678
684
  main: {
679
685
  name: "No",
680
- startIcon: "ApproveIcon",
681
686
  variant: "contained",
682
- color: "info",
683
687
  type: "text",
684
688
  onClick: "deletePopUpEvent",
685
689
  size: "large"
686
690
  },
687
691
  style: {
688
692
  position: "absolute",
693
+ padding: "8px 0px",
694
+ fontSize: "16px",
689
695
  bottom: 0,
690
696
  left: 0,
691
697
  width: "50%",
@@ -713,7 +719,6 @@ const PageMasterUiSchema = (theme) => {
713
719
  layout: 6,
714
720
  main: {
715
721
  name: "Yes",
716
- startIcon: "ApproveIcon",
717
722
  variant: "contained",
718
723
  color: "error",
719
724
  type: "text",
@@ -722,6 +727,8 @@ const PageMasterUiSchema = (theme) => {
722
727
  },
723
728
  style: {
724
729
  position: "absolute",
730
+ padding: "8px 0px",
731
+ fontSize: "16px",
725
732
  bottom: 0,
726
733
  right: 0,
727
734
  width: "50%",
@@ -6243,7 +6250,7 @@ const ComponentSchema = {
6243
6250
  properties: {
6244
6251
  type: {
6245
6252
  oneOf: [
6246
- { title: "Masked Aadhaar", const: "AadharcardText" },
6253
+ { title: "Masked Aadhar Card", const: "AadharcardText" },
6247
6254
  { title: "Array", const: "Array" },
6248
6255
  { title: "Button", const: "Button" },
6249
6256
  { title: "Data Card", const: "card" },
@@ -6258,7 +6265,7 @@ const ComponentSchema = {
6258
6265
  { title: "Graph", const: "Graph" },
6259
6266
  { title: "Input Slider", const: "InputSlider" },
6260
6267
  { title: "Label", const: "Box" },
6261
- { title: "LeaderBoard", const: "LeaderBoard" },
6268
+ { title: "Leaderboard", const: "LeaderBoard" },
6262
6269
  { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6263
6270
  { title: "Pan Card Masked", const: "PanCardText" },
6264
6271
  { title: "Pop Up", const: "PopUp" },
@@ -6280,8 +6287,7 @@ const ComponentSchema = {
6280
6287
  { title: "Upload", const: "UploadFile" },
6281
6288
  { title: "Tree ", const: "TreeMap" },
6282
6289
  { title: "Column Group", const: "ColumnGroup" },
6283
- { title: "Thought of the day", const: "Thought" },
6284
- { title: "Pdf Viewer", const: "PdfViewer" }
6290
+ { title: "Thought of the day", const: "Thought" }
6285
6291
  ]
6286
6292
  },
6287
6293
  columnFormat: {
@@ -6435,23 +6441,20 @@ const ComponentSchema = {
6435
6441
  }
6436
6442
  },
6437
6443
  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
- }
6444
+ oneOf: [
6445
+ { const: "fuzzy", title: "Fuzzy" },
6446
+ { const: "contains", title: "Contain" },
6447
+ { const: "startsWith", title: "Starts with" },
6448
+ { const: "endsWith", title: "Ends with" },
6449
+ { const: "equals", title: "Equals" },
6450
+ { const: "notEquals", title: "Not Equals" },
6451
+ { const: "between", title: "Between" },
6452
+ { const: "betweenInclusive", title: "Between inclusive" },
6453
+ { const: "greaterThan", title: "Greater than" },
6454
+ { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6455
+ { const: "lessThan", title: "Less than" },
6456
+ { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6457
+ ]
6455
6458
  },
6456
6459
  legendLabels: {
6457
6460
  type: "array",
@@ -6567,6 +6570,9 @@ const ComponentSchema = {
6567
6570
  { title: "Info", const: "info" }
6568
6571
  ]
6569
6572
  },
6573
+ pageName: {
6574
+ path: []
6575
+ },
6570
6576
  name: {
6571
6577
  type: "string"
6572
6578
  },
@@ -6828,15 +6834,16 @@ const componentBasicUiSchema = (theme) => {
6828
6834
  config: {
6829
6835
  layout: 11,
6830
6836
  main: {
6831
- heading: "Are you sure you want to delete ?"
6837
+ heading: "Are you sure you want to delete this Component ?"
6832
6838
  },
6833
6839
  style: {
6834
- marginTop: "-20px",
6835
- fontSize: "20px",
6836
6840
  "&.MuiTypography-root": {
6837
- padding: "10px 30px 20px 30px",
6841
+ padding: "0px 20px",
6838
6842
  textAlign: "center",
6839
- lineHeight: "1"
6843
+ lineHeight: "1.2",
6844
+ fontWeight: "normal",
6845
+ fontSize: "18px",
6846
+ marginBottom: theme.spacing(5)
6840
6847
  }
6841
6848
  }
6842
6849
  }
@@ -6865,6 +6872,8 @@ const componentBasicUiSchema = (theme) => {
6865
6872
  },
6866
6873
  style: {
6867
6874
  position: "absolute",
6875
+ padding: "8px 0px",
6876
+ fontSize: "16px",
6868
6877
  bottom: 0,
6869
6878
  left: 0,
6870
6879
  width: "50%",
@@ -6900,6 +6909,8 @@ const componentBasicUiSchema = (theme) => {
6900
6909
  },
6901
6910
  style: {
6902
6911
  position: "absolute",
6912
+ padding: "8px 0px",
6913
+ fontSize: "16px",
6903
6914
  bottom: 0,
6904
6915
  right: 0,
6905
6916
  width: "50%",
@@ -6948,15 +6959,17 @@ const componentBasicUiSchema = (theme) => {
6948
6959
  config: {
6949
6960
  layout: 11,
6950
6961
  main: {
6951
- heading: "Are you sure you want to delete ?"
6962
+ heading: "Are you sure you want to delete this Event ?"
6952
6963
  },
6953
6964
  style: {
6954
- marginTop: "-20px",
6955
6965
  fontSize: "20px",
6956
6966
  "&.MuiTypography-root": {
6957
- padding: "10px 30px 20px 30px",
6967
+ padding: "0px 20px",
6958
6968
  textAlign: "center",
6959
- lineHeight: "1"
6969
+ lineHeight: "1.2",
6970
+ fontWeight: "normal",
6971
+ fontSize: "18px",
6972
+ marginBottom: theme.spacing(5)
6960
6973
  }
6961
6974
  }
6962
6975
  }
@@ -6985,6 +6998,8 @@ const componentBasicUiSchema = (theme) => {
6985
6998
  },
6986
6999
  style: {
6987
7000
  position: "absolute",
7001
+ padding: "8px 0px",
7002
+ fontSize: "16px",
6988
7003
  bottom: 0,
6989
7004
  left: 0,
6990
7005
  width: "50%",
@@ -7020,6 +7035,8 @@ const componentBasicUiSchema = (theme) => {
7020
7035
  },
7021
7036
  style: {
7022
7037
  position: "absolute",
7038
+ padding: "8px 0px",
7039
+ fontSize: "16px",
7023
7040
  bottom: 0,
7024
7041
  right: 0,
7025
7042
  width: "50%",
@@ -7040,6 +7057,30 @@ const componentBasicUiSchema = (theme) => {
7040
7057
  }
7041
7058
  ]
7042
7059
  },
7060
+ {
7061
+ type: "Control",
7062
+ scope: "#/properties/pageName",
7063
+ options: {
7064
+ widget: "Breadcrumb"
7065
+ },
7066
+ config: {
7067
+ layout: 12,
7068
+ main: {
7069
+ onNavigatePopupNo: "onNavigatePopupNo",
7070
+ onNavigatePopupYes: "onNavigatePopupYes"
7071
+ },
7072
+ style: {
7073
+ paddingLeft: theme.spacing(3),
7074
+ color: theme.palette.grey[600],
7075
+ fontSize: "10px",
7076
+ position: "fixed",
7077
+ bottom: "24px",
7078
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
7079
+ borderTop: `1px solid ${theme.palette.common.black}29`,
7080
+ backgroundColor: theme.palette.background.default
7081
+ }
7082
+ }
7083
+ },
7043
7084
  {
7044
7085
  type: "Control",
7045
7086
  scope: "#/properties/notify",
@@ -7312,7 +7353,7 @@ const EventSection = (theme) => {
7312
7353
  elements: [
7313
7354
  {
7314
7355
  accessorKey: "eventType",
7315
- header: "Event Type",
7356
+ header: "Event's Type",
7316
7357
  type: "string",
7317
7358
  size: 300
7318
7359
  },
@@ -7324,7 +7365,7 @@ const EventSection = (theme) => {
7324
7365
  },
7325
7366
  {
7326
7367
  accessorKey: "Edit_Approve_Records",
7327
- header: "Edit Widget",
7368
+ header: "Edit",
7328
7369
  size: 150,
7329
7370
  type: "action",
7330
7371
  widget: {
@@ -7430,77 +7471,103 @@ const emptyBox$1 = (scope, layout) => {
7430
7471
  const cardLayout = {
7431
7472
  type: "Control",
7432
7473
  scope: "#/properties/cardLayout",
7433
- layout: 11.5,
7434
7474
  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
- ]
7475
+ widget: "Array"
7476
+ },
7477
+ config: {
7478
+ layout: 12,
7479
+ main: {
7480
+ label: "Card Layout",
7481
+ childElementLabel: "Card Layout"
7482
+ },
7483
+ style: {
7484
+ marginLeft: "-24px",
7485
+ marginBottom: "24px !important",
7486
+ labelStyle: {
7487
+ marginLeft: "24px"
7488
+ },
7489
+ detailsStyle: {
7490
+ marginLeft: "24px"
7491
+ }
7469
7492
  }
7470
- }
7493
+ },
7494
+ elements: [
7495
+ {
7496
+ type: "Control",
7497
+ scope: "#/properties/key",
7498
+ options: {
7499
+ widget: "SelectInputField"
7500
+ },
7501
+ config: {
7502
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7503
+ main: {
7504
+ label: "Screen Size"
7505
+ }
7506
+ }
7507
+ },
7508
+ {
7509
+ type: "Control",
7510
+ scope: "#/properties/value",
7511
+ options: {
7512
+ widget: "InputField"
7513
+ },
7514
+ config: {
7515
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7516
+ main: {
7517
+ label: "Value",
7518
+ type: "number",
7519
+ helperText: "Number should be in range of 0 to 12",
7520
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7521
+ }
7522
+ }
7523
+ },
7524
+ emptyBox$1("cardEmpty")
7525
+ ]
7471
7526
  };
7472
7527
  const getArrayControl = (parentScope, childScope, childLabel) => {
7473
7528
  return {
7474
7529
  type: "Control",
7475
7530
  scope: `#/properties/${parentScope}`,
7476
- layout: 12,
7477
7531
  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
- ]
7532
+ widget: "Array"
7533
+ },
7534
+ config: {
7535
+ layout: 12,
7536
+ main: {
7537
+ label: childLabel,
7538
+ childElementLabel: childLabel
7539
+ },
7540
+ style: {
7541
+ marginLeft: "-24px",
7542
+ marginBottom: "24px !important",
7543
+ labelStyle: {
7544
+ marginLeft: "24px"
7545
+ },
7546
+ detailsStyle: {
7547
+ marginLeft: "24px"
7548
+ }
7498
7549
  }
7499
- }
7550
+ },
7551
+ elements: [
7552
+ {
7553
+ type: "Control",
7554
+ scope: `#/properties/${childScope}`,
7555
+ options: {
7556
+ widget: "InputField"
7557
+ },
7558
+ config: {
7559
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7560
+ main: {
7561
+ label: childLabel || "Labels for Tab"
7562
+ }
7563
+ }
7564
+ },
7565
+ emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
7566
+ ]
7500
7567
  };
7501
7568
  };
7502
7569
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7503
- sizeHolder.options.detail.elements[1] = {
7570
+ sizeHolder.elements[1] = {
7504
7571
  type: "Control",
7505
7572
  scope: `#/properties/value`,
7506
7573
  options: {
@@ -7513,7 +7580,7 @@ sizeHolder.options.detail.elements[1] = {
7513
7580
  }
7514
7581
  }
7515
7582
  };
7516
- sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
7583
+ sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
7517
7584
  const getInputField = (scope, label) => {
7518
7585
  return {
7519
7586
  type: "Control",
@@ -7552,17 +7619,7 @@ const buildWrapper = (label, elements) => {
7552
7619
  main: {
7553
7620
  label: label || "Details",
7554
7621
  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
7622
+ }
7566
7623
  },
7567
7624
  elements: elements || []
7568
7625
  };
@@ -7684,7 +7741,7 @@ const buildPropertiesSection = function(type) {
7684
7741
  case "Text":
7685
7742
  uiSchema.elements = [
7686
7743
  getInputField("placeholder", "Placeholder"),
7687
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7744
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7688
7745
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7689
7746
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7690
7747
  ];
@@ -7693,7 +7750,8 @@ const buildPropertiesSection = function(type) {
7693
7750
  uiSchema.elements = [
7694
7751
  getInputField("placeholder", "Placeholder"),
7695
7752
  getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
7696
- getInputField("codeEditorLanguage", "Enter Code Language")
7753
+ getInputField("codeEditorLanguage", "Enter Code Language"),
7754
+ emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
7697
7755
  ];
7698
7756
  break;
7699
7757
  case "SpeedoMeter":
@@ -7773,7 +7831,7 @@ const buildPropertiesSection = function(type) {
7773
7831
  getInputField("xAxisValue", "X-AxisValue"),
7774
7832
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7775
7833
  getInputField("leftMargin", "Left Margin"),
7776
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7834
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7777
7835
  getArrayControl("legendLabels", "label"),
7778
7836
  getArrayControl("pieArcColors", "color")
7779
7837
  ];
@@ -8353,54 +8411,136 @@ function okHandler(store2) {
8353
8411
  }
8354
8412
  }
8355
8413
  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"],
8414
+ Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8415
+ MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8416
+ Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8417
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8360
8418
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8361
8419
  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"],
8420
+ SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8421
+ card: ["Core", "Properties", "Events", "Style", "Validation"],
8422
+ UploadFile: ["Core", "Events", "Style", "Validation"],
8423
+ Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8424
+ DownloadFile: ["Core", "Events", "Style", "Validation"],
8425
+ Box: ["Core", "Events", "Style", "Validation"],
8426
+ Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8427
+ ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8428
+ RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8429
+ Slider: ["Core", "Components", "Events", "Style", "Validation"],
8430
+ Timer: ["Core", "Events", "Style", "Validation"],
8431
+ Rank: ["Core", "Events", "Style", "Validation"],
8432
+ Button: ["Core", "Properties", "Events", "Style", "Validation"],
8375
8433
  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"],
8434
+ Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8435
+ Text: ["Core", "Properties", "Events", "Style", "Validation"],
8436
+ TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8379
8437
  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"],
8438
+ Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8439
+ DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8440
+ InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8441
+ TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8384
8442
  ColumnGroup: ["Core", "Components"],
8385
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8443
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8386
8444
  };
8387
8445
  function refreshPage(type, store2) {
8388
- var _a;
8446
+ var _a, _b;
8389
8447
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8448
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8390
8449
  if (type) {
8391
8450
  const sectionUiSchema = {
8392
8451
  Core: CoreSection,
8393
8452
  Value: ValueTab,
8394
8453
  Style: StyleSection,
8395
- Event: EventSection(store2.theme.myTheme),
8454
+ Events: EventSection(store2.theme.myTheme),
8396
8455
  Components: TableSection(store2.theme.myTheme),
8397
8456
  Properties: buildPropertiesSection(type),
8398
8457
  Validation: ValidationSection
8399
8458
  };
8400
8459
  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"];
8460
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
8402
8461
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8403
8462
  }
8463
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8464
+ const lastDotIndex = path.lastIndexOf(".");
8465
+ const parentPath = path.slice(0, lastDotIndex);
8466
+ const parentObj = _.get(currentConfig, parentPath);
8467
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8468
+ UiSchema.elements[0].elements[0].elements[4] = {
8469
+ type: "Control",
8470
+ scope: "#/properties/columnFormat",
8471
+ options: {
8472
+ widget: "SelectInputField"
8473
+ },
8474
+ config: {
8475
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8476
+ main: {
8477
+ label: "Column Format"
8478
+ }
8479
+ }
8480
+ };
8481
+ UiSchema.elements[0].elements[0].elements[6] = {
8482
+ type: "Control",
8483
+ scope: "#/properties/filteringOptions",
8484
+ options: {
8485
+ widget: "SelectInputField"
8486
+ },
8487
+ config: {
8488
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8489
+ main: {
8490
+ label: "Filter Mode",
8491
+ multiple: true
8492
+ }
8493
+ }
8494
+ };
8495
+ UiSchema.elements[0].elements[0].elements[5] = {
8496
+ type: "Control",
8497
+ scope: "#/properties/enableFilter",
8498
+ options: {
8499
+ widget: "RadioInputField"
8500
+ },
8501
+ config: {
8502
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8503
+ main: {
8504
+ label: "Enable Filter",
8505
+ options: ["Yes", "No"]
8506
+ }
8507
+ }
8508
+ }, UiSchema.elements[0].elements[0].elements[7] = {
8509
+ type: "Control",
8510
+ scope: "#/properties/enableSorting",
8511
+ options: {
8512
+ widget: "RadioInputField"
8513
+ },
8514
+ config: {
8515
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8516
+ main: {
8517
+ label: "Enable Sorting",
8518
+ options: ["Yes", "No"]
8519
+ }
8520
+ }
8521
+ }, UiSchema.elements[0].elements[0].elements[8] = {
8522
+ type: "Control",
8523
+ scope: "#/properties/columnKey",
8524
+ config: {
8525
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8526
+ main: {
8527
+ label: "Column Key"
8528
+ }
8529
+ },
8530
+ options: {
8531
+ widget: "InputField"
8532
+ }
8533
+ }, UiSchema.elements[0].elements[0].elements[9] = {
8534
+ type: "Control",
8535
+ scope: "#/properties/proc",
8536
+ config: {
8537
+ layout: { xs: 0, sm: 0, md: 4, lg: 0 }
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,33 @@ 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
+ }
8780
+ },
8781
+ onNavigatePopupYes: function() {
8782
+ try {
8783
+ store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
8784
+ store2.updateDialog(`pageNamepopup`);
8785
+ } catch (e) {
8786
+ store2.updateDialog(`pageNamepopup`);
8787
+ store2.setNotify({
8788
+ FailMessage: "Couldn't navigate page",
8789
+ Fail: true
8790
+ });
8791
+ }
8792
+ },
8793
+ onNavigatePopupNo: function() {
8794
+ store2.updateDialog(`pageNamepopup`);
8602
8795
  }
8603
8796
  };
8604
8797
  };
@@ -8749,18 +8942,18 @@ const EventSchema = {
8749
8942
  eventType: {
8750
8943
  type: "string",
8751
8944
  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" },
8945
+ { title: "Click", const: "onClick" },
8946
+ { title: "Load", const: "onLoad" },
8947
+ { title: "Change", const: "onChange" },
8948
+ { title: "Mount", const: "onMount" },
8756
8949
  { 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" },
8950
+ { title: "Start", const: "onStart" },
8951
+ { title: "Cell Render", const: "onCellRenderer" },
8952
+ { title: "Upload", const: "onUpload" },
8953
+ { title: "Back", const: "onBack" },
8954
+ { title: "Next", const: "onNext" },
8955
+ { title: "Row Movement", const: "onRowMovement" },
8956
+ { title: "Download", const: "onDownload" },
8764
8957
  { title: "Fail", const: "Fail" }
8765
8958
  ]
8766
8959
  },
@@ -8768,7 +8961,7 @@ const EventSchema = {
8768
8961
  type: "string",
8769
8962
  oneOf: [
8770
8963
  { title: "Custom", const: "custom" },
8771
- { title: "Api", const: "api" },
8964
+ { title: "API", const: "api" },
8772
8965
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8773
8966
  { title: "Refresh", const: "refresh" }
8774
8967
  ]
@@ -8797,15 +8990,18 @@ const EventSchema = {
8797
8990
  },
8798
8991
  RemoveItemButton: {
8799
8992
  disabled: true
8993
+ },
8994
+ pageName: {
8995
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8800
8996
  }
8801
8997
  },
8802
8998
  required: ["eventType", "Handler"]
8803
8999
  };
8804
9000
  const EventUiSchema = (theme) => {
8805
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
9001
+ var _a;
8806
9002
  const uiSchema = {
8807
9003
  type: "HorizontalLayout",
8808
- heading: "Page-Event",
9004
+ heading: "Page-Events",
8809
9005
  elements: [
8810
9006
  {
8811
9007
  type: "TabLayout",
@@ -8939,7 +9135,7 @@ const EventUiSchema = (theme) => {
8939
9135
  elements: [
8940
9136
  {
8941
9137
  accessorKey: "eventType",
8942
- header: "Event Type",
9138
+ header: "Event's Type",
8943
9139
  size: 300,
8944
9140
  type: "string"
8945
9141
  },
@@ -8951,7 +9147,7 @@ const EventUiSchema = (theme) => {
8951
9147
  },
8952
9148
  {
8953
9149
  accessorKey: "Edit_Approve_Records",
8954
- header: "Edit Widget",
9150
+ header: "Edit",
8955
9151
  type: "action",
8956
9152
  size: 150,
8957
9153
  widget: {
@@ -9108,15 +9304,17 @@ const EventUiSchema = (theme) => {
9108
9304
  config: {
9109
9305
  layout: 11,
9110
9306
  main: {
9111
- heading: "Are you sure you want to delete ?"
9307
+ heading: "Are you sure you want to delete this Event ?"
9112
9308
  },
9113
9309
  style: {
9114
- marginTop: "-20px",
9115
9310
  fontSize: "20px",
9116
9311
  "&.MuiTypography-root": {
9117
- padding: "10px 30px 20px 30px",
9312
+ padding: "0px 20px",
9118
9313
  textAlign: "center",
9119
- lineHeight: "1"
9314
+ lineHeight: "1.2",
9315
+ fontWeight: "normal",
9316
+ fontSize: "18px",
9317
+ marginBottom: theme.spacing(5)
9120
9318
  }
9121
9319
  }
9122
9320
  }
@@ -9140,13 +9338,14 @@ const EventUiSchema = (theme) => {
9140
9338
  name: "No",
9141
9339
  startIcon: "ApproveIcon",
9142
9340
  variant: "contained",
9143
- color: "info",
9144
9341
  type: "text",
9145
9342
  onClick: "deletePopUpEvent",
9146
9343
  size: "large"
9147
9344
  },
9148
9345
  style: {
9149
9346
  position: "absolute",
9347
+ padding: "8px 0px",
9348
+ fontSize: "16px",
9150
9349
  bottom: 0,
9151
9350
  left: 0,
9152
9351
  width: "50%",
@@ -9174,7 +9373,6 @@ const EventUiSchema = (theme) => {
9174
9373
  layout: 6,
9175
9374
  main: {
9176
9375
  name: "Yes",
9177
- startIcon: "ApproveIcon",
9178
9376
  variant: "contained",
9179
9377
  color: "error",
9180
9378
  type: "text",
@@ -9183,6 +9381,8 @@ const EventUiSchema = (theme) => {
9183
9381
  },
9184
9382
  style: {
9185
9383
  position: "absolute",
9384
+ padding: "8px 0px",
9385
+ fontSize: "16px",
9186
9386
  bottom: 0,
9187
9387
  right: 0,
9188
9388
  width: "50%",
@@ -9203,6 +9403,30 @@ const EventUiSchema = (theme) => {
9203
9403
  }
9204
9404
  ]
9205
9405
  },
9406
+ {
9407
+ type: "Control",
9408
+ scope: "#/properties/pageName",
9409
+ options: {
9410
+ widget: "Breadcrumb"
9411
+ },
9412
+ config: {
9413
+ layout: 12,
9414
+ main: {
9415
+ onNavigatePopupNo: "onNavigatePopupNo",
9416
+ onNavigatePopupYes: "onNavigatePopupYes"
9417
+ },
9418
+ style: {
9419
+ paddingLeft: theme.spacing(3),
9420
+ color: theme.palette.grey[600],
9421
+ fontSize: "10px",
9422
+ position: "fixed",
9423
+ bottom: "24px",
9424
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
9425
+ borderTop: `1px solid ${theme.palette.common.black}29`,
9426
+ backgroundColor: theme.palette.background.default
9427
+ }
9428
+ }
9429
+ },
9206
9430
  {
9207
9431
  type: "Control",
9208
9432
  scope: "#/properties/notify",
@@ -9220,7 +9444,7 @@ const EventUiSchema = (theme) => {
9220
9444
  style: {
9221
9445
  flexDirection: "row",
9222
9446
  position: "absolute",
9223
- bottom: 0,
9447
+ bottom: 10,
9224
9448
  height: "fit-content",
9225
9449
  overflow: "hidden",
9226
9450
  zIndex: 1e3,
@@ -9239,78 +9463,19 @@ const EventUiSchema = (theme) => {
9239
9463
  heading: "Copywriter@ACT21.IO"
9240
9464
  },
9241
9465
  style: {
9242
- color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
9466
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
9243
9467
  fontSize: "11px",
9244
9468
  textAlign: "center",
9245
- lineHeight: 2,
9469
+ lineHeight: 0,
9246
9470
  width: "fit-content",
9247
9471
  left: "50%",
9248
9472
  position: "relative",
9249
- margin: 0,
9473
+ margin: "revert",
9250
9474
  flexGrow: 1,
9251
9475
  height: 0,
9252
9476
  transform: "translate(-50%, 0%)"
9253
9477
  }
9254
9478
  }
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
9479
  }
9315
9480
  ]
9316
9481
  }
@@ -9549,15 +9714,21 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9549
9714
  const formdata = await this.getFormData();
9550
9715
  store2.setFormdata(formdata);
9551
9716
  const schema2 = await this.getSchema();
9717
+ console.log("SettingSchema>>", schema2);
9552
9718
  store2.setSchema(schema2);
9553
9719
  this.refreshPage(formdata.Handler, store2);
9554
9720
  },
9555
9721
  refreshPage: (handlerType, store22) => {
9722
+ var _a, _b, _c;
9556
9723
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9557
9724
  const schema2 = _.cloneDeep(EventSchema);
9558
9725
  if (handlerType) {
9559
9726
  if (handlerType === "custom") {
9560
- uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
9727
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
9728
+ "isSync",
9729
+ "Run in Sync",
9730
+ ["Yes", "No"]
9731
+ );
9561
9732
  uiSchema.elements[0].elements[0].elements[3] = {
9562
9733
  type: "Control",
9563
9734
  scope: "#/properties/emptyBox",
@@ -9570,14 +9741,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9570
9741
  style: {}
9571
9742
  }
9572
9743
  };
9573
- uiSchema.elements[0].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
9744
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9745
+ "eventCode",
9746
+ "Write Custom Code",
9747
+ false
9748
+ );
9574
9749
  schema2.required = ["eventType", "Handler", "eventCode"];
9575
9750
  } else if (handlerType === "api") {
9576
- uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs: 0, sm: 0, md: 4, lg: 6 });
9751
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9752
+ xs: 0,
9753
+ sm: 0,
9754
+ md: 4,
9755
+ lg: 6
9756
+ });
9577
9757
  uiSchema.elements[0].elements[0].elements[3] = APISection;
9578
9758
  schema2.required = ["eventType", "Handler", "method", "path"];
9579
9759
  } else if (handlerType === "inBuiltFunction") {
9580
- uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
9760
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField(
9761
+ "inBuiltFunctionType",
9762
+ "Function Name"
9763
+ );
9581
9764
  uiSchema.elements[0].elements[0].elements[3] = {
9582
9765
  type: "Control",
9583
9766
  scope: "#/properties/emptyBox",
@@ -9590,10 +9773,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9590
9773
  style: {}
9591
9774
  }
9592
9775
  };
9593
- uiSchema.elements[0].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
9776
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9777
+ "funcParametersCode",
9778
+ "Write Custom Code for Functions Parameter",
9779
+ true
9780
+ );
9594
9781
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9595
9782
  } else if (handlerType === "refresh") {
9596
- uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs: 0, sm: 0, md: 4, lg: 6 });
9783
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9784
+ xs: 0,
9785
+ sm: 0,
9786
+ md: 4,
9787
+ lg: 6
9788
+ });
9597
9789
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9598
9790
  schema2.properties.refreshElements.required = ["value"];
9599
9791
  schema2.properties.refreshElements.items.required = ["value"];
@@ -9607,9 +9799,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9607
9799
  ];
9608
9800
  }
9609
9801
  if (sessionStorage.getItem("copiedConfig")) {
9610
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9802
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9803
+ uiSchema
9804
+ );
9611
9805
  schema2.properties.RemoveItemButton.disabled = false;
9612
9806
  }
9807
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9808
+ const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
9809
+ const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
9810
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9811
+ if (path) {
9812
+ const pathArrayAll = path.split(".");
9813
+ const arr = [];
9814
+ pathArrayAll.map((e, i) => {
9815
+ if (i === 0) {
9816
+ arr.push(e);
9817
+ return;
9818
+ }
9819
+ arr.push(`${arr[i - 1]}.${e}`);
9820
+ });
9821
+ arr.map((e) => {
9822
+ const data = _.get(config2, e);
9823
+ pathArray.push({
9824
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9825
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9826
+ });
9827
+ });
9828
+ }
9829
+ schema2.properties.pageName.path = pathArray;
9613
9830
  store22.setSchema(schema2);
9614
9831
  store22.setUiSchema(uiSchema);
9615
9832
  },
@@ -9618,10 +9835,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9618
9835
  return EventUiSchema;
9619
9836
  },
9620
9837
  getSchema: () => {
9838
+ var _a, _b, _c;
9621
9839
  const schema2 = _.cloneDeep(EventSchema);
9622
9840
  if (sessionStorage.getItem("copiedConfig")) {
9623
9841
  schema2.properties.RemoveItemButton.disabled = false;
9624
9842
  }
9843
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9844
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9845
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9846
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9847
+ if (path) {
9848
+ const pathArrayAll = path.split(".");
9849
+ const arr = [];
9850
+ pathArrayAll.map((e, i) => {
9851
+ if (i === 0) {
9852
+ arr.push(e);
9853
+ return;
9854
+ }
9855
+ arr.push(`${arr[i - 1]}.${e}`);
9856
+ });
9857
+ arr.map((e) => {
9858
+ const data = _.get(config2, e);
9859
+ pathArray.push({
9860
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9861
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9862
+ });
9863
+ });
9864
+ }
9865
+ schema2.properties.pageName.path = _.cloneDeep(pathArray);
9625
9866
  return schema2;
9626
9867
  },
9627
9868
  okHandler: () => okHandler(store2),
@@ -9629,7 +9870,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9629
9870
  onChange: function() {
9630
9871
  var _a, _b, _c;
9631
9872
  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) {
9632
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9873
+ this.refreshPage(
9874
+ store2.newData.Handler || store2.formdata.Handler,
9875
+ store2
9876
+ );
9633
9877
  }
9634
9878
  },
9635
9879
  addEvent: function() {
@@ -9655,7 +9899,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9655
9899
  this.setPage();
9656
9900
  },
9657
9901
  deleteEvent: async function() {
9658
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9902
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9903
+ false
9904
+ );
9659
9905
  store2.updateDialog("popUpEvent");
9660
9906
  },
9661
9907
  backHandler: function() {
@@ -9667,10 +9913,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9667
9913
  store2.updateDialog("popUpEvent");
9668
9914
  },
9669
9915
  copyPasteElement: function() {
9670
- Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
9916
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
9917
+ store2,
9918
+ this.setPage.bind(this)
9919
+ );
9671
9920
  },
9672
9921
  RemoveItemButton: function() {
9673
- Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9922
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
9923
+ store2
9924
+ );
9925
+ },
9926
+ onNavigatePopupYes: function() {
9927
+ try {
9928
+ store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
9929
+ store2.updateDialog(`pageNamepopup`);
9930
+ } catch (e) {
9931
+ store2.updateDialog(`pageNamepopup`);
9932
+ store2.setNotify({
9933
+ FailMessage: "Couldn't navigate page",
9934
+ Fail: true
9935
+ });
9936
+ }
9937
+ },
9938
+ onNavigatePopupNo: function() {
9939
+ store2.updateDialog(`pageNamepopup`);
9674
9940
  }
9675
9941
  };
9676
9942
  };
@@ -9841,16 +10107,17 @@ function executeCustomHandler(params) {
9841
10107
  }
9842
10108
  }
9843
10109
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10110
+ var _a, _b, _c;
9844
10111
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9845
10112
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9846
10113
  store2.setSchema((pre) => {
9847
- var _a;
10114
+ var _a2;
9848
10115
  return {
9849
10116
  ...pre,
9850
10117
  properties: {
9851
10118
  ...pre.properties,
9852
10119
  [componentName]: {
9853
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10120
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9854
10121
  oneOf: handlerResponse.data
9855
10122
  }
9856
10123
  }
@@ -9860,13 +10127,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9860
10127
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9861
10128
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9862
10129
  store2.setSchema((pre) => {
9863
- var _a;
10130
+ var _a2;
9864
10131
  return {
9865
10132
  ...pre,
9866
10133
  properties: {
9867
10134
  ...pre.properties,
9868
10135
  [componentName]: {
9869
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10136
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9870
10137
  type: "array",
9871
10138
  items: {
9872
10139
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9886,6 +10153,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9886
10153
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9887
10154
  });
9888
10155
  }
10156
+ } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10157
+ if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10158
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10159
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10160
+ store2.setFormdata((pre) => {
10161
+ return { ...pre, ...formDataHolder };
10162
+ });
10163
+ }
9889
10164
  } else {
9890
10165
  if (handlerResponse) {
9891
10166
  formDataHolder[componentName] = handlerResponse.data;
@@ -10191,7 +10466,7 @@ var service = (funcParams) => {
10191
10466
  service: funcParams.service,
10192
10467
  serviceHolder: this,
10193
10468
  eventGroups,
10194
- formDataHolder
10469
+ formDataHolder: {}
10195
10470
  });
10196
10471
  funcParams.store.setSchema(
10197
10472
  (pre) => {
@@ -10206,11 +10481,11 @@ var service = (funcParams) => {
10206
10481
  funcParams.store.setUiSchema(uiSchema);
10207
10482
  },
10208
10483
  onCellRenderer: (cellParams) => {
10209
- var _a, _b, _c;
10484
+ var _a, _b, _c, _d;
10210
10485
  if (eventGroups.onCellRenderer) {
10211
10486
  let finalResponse = {};
10212
10487
  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]);
10213
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10488
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10214
10489
  executeEventsParameters.store.functionParameters = cellParams;
10215
10490
  finalResponse = executeEvents({
10216
10491
  ...executeEventsParameters,
@@ -10814,6 +11089,9 @@ const buildTextField = (config2, componentScope2) => {
10814
11089
  if (config2.style) {
10815
11090
  inputField.config.style = JSON.parse(config2.style);
10816
11091
  }
11092
+ if (config2.multiline) {
11093
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11094
+ }
10817
11095
  if (config2.InputFormatingAndMasking) {
10818
11096
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10819
11097
  }
@@ -11107,7 +11385,8 @@ function Card(theme) {
11107
11385
  wrapperStyle: {
11108
11386
  position: "relative",
11109
11387
  top: "50%",
11110
- transform: "translateY(-50%)"
11388
+ transform: "translateY(-50%)",
11389
+ marginBottom: 0
11111
11390
  },
11112
11391
  componentsBoxStyle: {
11113
11392
  boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
@@ -11146,7 +11425,8 @@ function Card(theme) {
11146
11425
  gap: 0
11147
11426
  },
11148
11427
  wrapperStyle: {
11149
- background: "transparent"
11428
+ background: "transparent",
11429
+ marginBottom: 0
11150
11430
  },
11151
11431
  componentsBoxStyle: {
11152
11432
  flexDirection: "column",
@@ -11167,7 +11447,8 @@ function Card(theme) {
11167
11447
  gap: 0
11168
11448
  },
11169
11449
  wrapperStyle: {
11170
- background: "transparent"
11450
+ background: "transparent",
11451
+ marginBottom: 0
11171
11452
  },
11172
11453
  componentsBoxStyle: {
11173
11454
  flexDirection: "row",
@@ -11176,8 +11457,6 @@ function Card(theme) {
11176
11457
  height: "0",
11177
11458
  background: "transparent",
11178
11459
  borderRadius: "0px",
11179
- marginLeft: "-10px",
11180
- marginTop: "-8px",
11181
11460
  justifyContent: "start",
11182
11461
  position: "relative"
11183
11462
  },
@@ -11199,7 +11478,6 @@ function Card(theme) {
11199
11478
  background: "inherit",
11200
11479
  justifyContent: "flex-start",
11201
11480
  width: "auto",
11202
- margin: "-8px",
11203
11481
  height: 0
11204
11482
  }
11205
11483
  },
@@ -11222,9 +11500,8 @@ function Card(theme) {
11222
11500
  background: "inherit",
11223
11501
  justifyContent: "flex-start",
11224
11502
  width: "auto",
11225
- margin: "-8px",
11226
11503
  position: "absolute",
11227
- left: "8px"
11504
+ left: "0px"
11228
11505
  }
11229
11506
  },
11230
11507
  options: {
@@ -11246,8 +11523,7 @@ function Card(theme) {
11246
11523
  justifyContent: "center",
11247
11524
  textWrap: "wrap",
11248
11525
  background: "inherit",
11249
- width: "calc(100%+8px)",
11250
- margin: "-8px",
11526
+ width: "100%",
11251
11527
  marginTop: { xs: "0px", md: "12px" },
11252
11528
  lineHeight: "1"
11253
11529
  },
@@ -12018,41 +12294,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12018
12294
  }
12019
12295
  return thought;
12020
12296
  };
12021
- var pdfViewer = {
12022
- type: "Control",
12023
- scope: "#/properties/pdfviewer",
12024
- options: {
12025
- widget: "PdfViewer"
12026
- },
12027
- config: {
12028
- layout: {
12029
- xs: 12,
12030
- sm: 12,
12031
- md: 12,
12032
- lg: 12
12033
- },
12034
- main: {
12035
- title: "PDF"
12036
- }
12037
- }
12038
- };
12039
- const buildPdfViewer = (config2) => {
12040
- const PdfViewer = _.cloneDeep(pdfViewer);
12041
- PdfViewer.config.main.label = config2.label;
12042
- if (config2.name) {
12043
- PdfViewer.scope = `#/properties/${config2.name}`;
12044
- }
12045
- if (config2.layout) {
12046
- PdfViewer.config.layout = createLayoutFormat(config2.layout);
12047
- }
12048
- if (config2.label) {
12049
- PdfViewer.config.main.title = config2.label;
12050
- }
12051
- if (config2.style) {
12052
- PdfViewer.config.style = JSON.parse(config2.style);
12053
- }
12054
- return PdfViewer;
12055
- };
12056
12297
  let schema = {
12057
12298
  type: "object",
12058
12299
  properties: {},
@@ -12307,9 +12548,6 @@ const buildUiSchema = (config2, store2) => {
12307
12548
  case "Thought":
12308
12549
  elements = buildThoughtOfTheDay(config2, componentScope2);
12309
12550
  break;
12310
- case "PdfViewer":
12311
- elements = buildPdfViewer(config2);
12312
- break;
12313
12551
  default:
12314
12552
  schema = {
12315
12553
  type: "object",
@@ -12339,39 +12577,30 @@ const buildUiSchema = (config2, store2) => {
12339
12577
  });
12340
12578
  } else if (config2.type == "Table") {
12341
12579
  const sizeMap = {};
12342
- const filterMap = {};
12343
12580
  if (config2.sizeHolder) {
12344
12581
  config2.sizeHolder.map((e, i) => {
12345
12582
  sizeMap[e.keyName] = e.value;
12346
12583
  });
12347
12584
  }
12348
- if (config2.enableColumnFilter) {
12349
- config2.enableColumnFilter.map((e) => {
12350
- filterMap[e.keyName] = true;
12351
- });
12352
- }
12353
12585
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12354
- var _a, _b;
12586
+ const commonProperties = {
12587
+ accessorKey: cellElem.name,
12588
+ type: cellElem.columnFormat,
12589
+ header: cellElem.label || cellElem.name,
12590
+ size: sizeMap[cellElem.name] || 180,
12591
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12592
+ columnFilterModeOptions: cellElem.filteringOptions,
12593
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
12594
+ columnKey: cellElem.columnKey
12595
+ };
12355
12596
  if (cellElem.type) {
12356
12597
  return {
12357
- accessorKey: cellElem.name,
12358
- header: cellElem.label || cellElem.name,
12359
- size: sizeMap[cellElem.name] || 180,
12360
- type: cellElem.columnFormat,
12361
12598
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12362
12599
  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
12600
+ ...commonProperties
12365
12601
  };
12366
12602
  } else {
12367
- return {
12368
- accessorKey: cellElem.name,
12369
- type: cellElem.columnFormat,
12370
- header: cellElem.label || cellElem.name,
12371
- size: sizeMap[cellElem.name] || 180,
12372
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12373
- columnFilterModeOptions: config2.filteringOptions
12374
- };
12603
+ return commonProperties;
12375
12604
  }
12376
12605
  });
12377
12606
  } else if (config2.type == "Array") {