impaktapps-ui-builder 0.0.101-alpha.21 → 0.0.101-alpha.213

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 (23) hide show
  1. package/dist/impaktapps-ui-builder.es.js +520 -284
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +0 -3
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +10 -13
  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 +6 -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 +14 -10
  13. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +88 -76
  14. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
  15. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -6
  16. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +68 -9
  17. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -16
  18. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +41 -201
  20. package/src/impaktapps-ui-builder/builder/services/component.ts +177 -32
  21. package/src/impaktapps-ui-builder/builder/services/event.ts +159 -59
  22. package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
  23. package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -4
@@ -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" },
@@ -6281,7 +6288,7 @@ const ComponentSchema = {
6281
6288
  { title: "Tree ", const: "TreeMap" },
6282
6289
  { title: "Column Group", const: "ColumnGroup" },
6283
6290
  { title: "Thought of the day", const: "Thought" },
6284
- { title: "Pdf Viewer", const: "PdfViewer" }
6291
+ { title: "PDF", const: "PdfViewer" }
6285
6292
  ]
6286
6293
  },
6287
6294
  columnFormat: {
@@ -6435,23 +6442,20 @@ const ComponentSchema = {
6435
6442
  }
6436
6443
  },
6437
6444
  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
- }
6445
+ oneOf: [
6446
+ { const: "fuzzy", title: "Fuzzy" },
6447
+ { const: "contains", title: "Contain" },
6448
+ { const: "startsWith", title: "Starts with" },
6449
+ { const: "endsWith", title: "Ends with" },
6450
+ { const: "equals", title: "Equals" },
6451
+ { const: "notEquals", title: "Not Equals" },
6452
+ { const: "between", title: "Between" },
6453
+ { const: "betweenInclusive", title: "Between inclusive" },
6454
+ { const: "greaterThan", title: "Greater than" },
6455
+ { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6456
+ { const: "lessThan", title: "Less than" },
6457
+ { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6458
+ ]
6455
6459
  },
6456
6460
  legendLabels: {
6457
6461
  type: "array",
@@ -6567,6 +6571,9 @@ const ComponentSchema = {
6567
6571
  { title: "Info", const: "info" }
6568
6572
  ]
6569
6573
  },
6574
+ pageName: {
6575
+ path: []
6576
+ },
6570
6577
  name: {
6571
6578
  type: "string"
6572
6579
  },
@@ -6828,15 +6835,16 @@ const componentBasicUiSchema = (theme) => {
6828
6835
  config: {
6829
6836
  layout: 11,
6830
6837
  main: {
6831
- heading: "Are you sure you want to delete ?"
6838
+ heading: "Are you sure you want to delete this Component ?"
6832
6839
  },
6833
6840
  style: {
6834
- marginTop: "-20px",
6835
- fontSize: "20px",
6836
6841
  "&.MuiTypography-root": {
6837
- padding: "10px 30px 20px 30px",
6842
+ padding: "0px 20px",
6838
6843
  textAlign: "center",
6839
- lineHeight: "1"
6844
+ lineHeight: "1.2",
6845
+ fontWeight: "normal",
6846
+ fontSize: "18px",
6847
+ marginBottom: theme.spacing(5)
6840
6848
  }
6841
6849
  }
6842
6850
  }
@@ -6865,6 +6873,8 @@ const componentBasicUiSchema = (theme) => {
6865
6873
  },
6866
6874
  style: {
6867
6875
  position: "absolute",
6876
+ padding: "8px 0px",
6877
+ fontSize: "16px",
6868
6878
  bottom: 0,
6869
6879
  left: 0,
6870
6880
  width: "50%",
@@ -6900,6 +6910,8 @@ const componentBasicUiSchema = (theme) => {
6900
6910
  },
6901
6911
  style: {
6902
6912
  position: "absolute",
6913
+ padding: "8px 0px",
6914
+ fontSize: "16px",
6903
6915
  bottom: 0,
6904
6916
  right: 0,
6905
6917
  width: "50%",
@@ -6948,15 +6960,17 @@ const componentBasicUiSchema = (theme) => {
6948
6960
  config: {
6949
6961
  layout: 11,
6950
6962
  main: {
6951
- heading: "Are you sure you want to delete ?"
6963
+ heading: "Are you sure you want to delete this Event ?"
6952
6964
  },
6953
6965
  style: {
6954
- marginTop: "-20px",
6955
6966
  fontSize: "20px",
6956
6967
  "&.MuiTypography-root": {
6957
- padding: "10px 30px 20px 30px",
6968
+ padding: "0px 20px",
6958
6969
  textAlign: "center",
6959
- lineHeight: "1"
6970
+ lineHeight: "1.2",
6971
+ fontWeight: "normal",
6972
+ fontSize: "18px",
6973
+ marginBottom: theme.spacing(5)
6960
6974
  }
6961
6975
  }
6962
6976
  }
@@ -6985,6 +6999,8 @@ const componentBasicUiSchema = (theme) => {
6985
6999
  },
6986
7000
  style: {
6987
7001
  position: "absolute",
7002
+ padding: "8px 0px",
7003
+ fontSize: "16px",
6988
7004
  bottom: 0,
6989
7005
  left: 0,
6990
7006
  width: "50%",
@@ -7020,6 +7036,8 @@ const componentBasicUiSchema = (theme) => {
7020
7036
  },
7021
7037
  style: {
7022
7038
  position: "absolute",
7039
+ padding: "8px 0px",
7040
+ fontSize: "16px",
7023
7041
  bottom: 0,
7024
7042
  right: 0,
7025
7043
  width: "50%",
@@ -7040,6 +7058,27 @@ const componentBasicUiSchema = (theme) => {
7040
7058
  }
7041
7059
  ]
7042
7060
  },
7061
+ {
7062
+ type: "Control",
7063
+ scope: "#/properties/pageName",
7064
+ options: {
7065
+ widget: "Breadcrumb"
7066
+ },
7067
+ config: {
7068
+ layout: 12,
7069
+ main: {},
7070
+ style: {
7071
+ paddingLeft: theme.spacing(3),
7072
+ color: theme.palette.grey[600],
7073
+ fontSize: "10px",
7074
+ position: "fixed",
7075
+ bottom: "24px",
7076
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
7077
+ borderTop: `1px solid ${theme.palette.common.black}29`,
7078
+ backgroundColor: theme.palette.background.default
7079
+ }
7080
+ }
7081
+ },
7043
7082
  {
7044
7083
  type: "Control",
7045
7084
  scope: "#/properties/notify",
@@ -7312,7 +7351,7 @@ const EventSection = (theme) => {
7312
7351
  elements: [
7313
7352
  {
7314
7353
  accessorKey: "eventType",
7315
- header: "Event Type",
7354
+ header: "Event's Type",
7316
7355
  type: "string",
7317
7356
  size: 300
7318
7357
  },
@@ -7324,7 +7363,7 @@ const EventSection = (theme) => {
7324
7363
  },
7325
7364
  {
7326
7365
  accessorKey: "Edit_Approve_Records",
7327
- header: "Edit Widget",
7366
+ header: "Edit",
7328
7367
  size: 150,
7329
7368
  type: "action",
7330
7369
  widget: {
@@ -7430,77 +7469,103 @@ const emptyBox$1 = (scope, layout) => {
7430
7469
  const cardLayout = {
7431
7470
  type: "Control",
7432
7471
  scope: "#/properties/cardLayout",
7433
- layout: 11.5,
7434
7472
  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
- ]
7473
+ widget: "Array"
7474
+ },
7475
+ config: {
7476
+ layout: 12,
7477
+ main: {
7478
+ label: "Card Layout",
7479
+ childElementLabel: "Card Layout"
7480
+ },
7481
+ style: {
7482
+ marginLeft: "-24px",
7483
+ marginBottom: "24px !important",
7484
+ labelStyle: {
7485
+ marginLeft: "24px"
7486
+ },
7487
+ detailsStyle: {
7488
+ marginLeft: "24px"
7489
+ }
7469
7490
  }
7470
- }
7491
+ },
7492
+ elements: [
7493
+ {
7494
+ type: "Control",
7495
+ scope: "#/properties/key",
7496
+ options: {
7497
+ widget: "SelectInputField"
7498
+ },
7499
+ config: {
7500
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7501
+ main: {
7502
+ label: "Screen Size"
7503
+ }
7504
+ }
7505
+ },
7506
+ {
7507
+ type: "Control",
7508
+ scope: "#/properties/value",
7509
+ options: {
7510
+ widget: "InputField"
7511
+ },
7512
+ config: {
7513
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7514
+ main: {
7515
+ label: "Value",
7516
+ type: "number",
7517
+ helperText: "Number should be in range of 0 to 12",
7518
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7519
+ }
7520
+ }
7521
+ },
7522
+ emptyBox$1("cardEmpty")
7523
+ ]
7471
7524
  };
7472
7525
  const getArrayControl = (parentScope, childScope, childLabel) => {
7473
7526
  return {
7474
7527
  type: "Control",
7475
7528
  scope: `#/properties/${parentScope}`,
7476
- layout: 12,
7477
7529
  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
- ]
7530
+ widget: "Array"
7531
+ },
7532
+ config: {
7533
+ layout: 12,
7534
+ main: {
7535
+ label: childLabel,
7536
+ childElementLabel: childLabel
7537
+ },
7538
+ style: {
7539
+ marginLeft: "-24px",
7540
+ marginBottom: "24px !important",
7541
+ labelStyle: {
7542
+ marginLeft: "24px"
7543
+ },
7544
+ detailsStyle: {
7545
+ marginLeft: "24px"
7546
+ }
7498
7547
  }
7499
- }
7548
+ },
7549
+ elements: [
7550
+ {
7551
+ type: "Control",
7552
+ scope: `#/properties/${childScope}`,
7553
+ options: {
7554
+ widget: "InputField"
7555
+ },
7556
+ config: {
7557
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7558
+ main: {
7559
+ label: childLabel || "Labels for Tab"
7560
+ }
7561
+ }
7562
+ },
7563
+ emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
7564
+ ]
7500
7565
  };
7501
7566
  };
7502
7567
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7503
- sizeHolder.options.detail.elements[1] = {
7568
+ sizeHolder.elements[1] = {
7504
7569
  type: "Control",
7505
7570
  scope: `#/properties/value`,
7506
7571
  options: {
@@ -7513,7 +7578,7 @@ sizeHolder.options.detail.elements[1] = {
7513
7578
  }
7514
7579
  }
7515
7580
  };
7516
- sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
7581
+ sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
7517
7582
  const getInputField = (scope, label) => {
7518
7583
  return {
7519
7584
  type: "Control",
@@ -7552,17 +7617,7 @@ const buildWrapper = (label, elements) => {
7552
7617
  main: {
7553
7618
  label: label || "Details",
7554
7619
  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
7620
+ }
7566
7621
  },
7567
7622
  elements: elements || []
7568
7623
  };
@@ -7576,9 +7631,6 @@ const getTextArea = (scope, heading, hideButton, layout) => {
7576
7631
  },
7577
7632
  config: {
7578
7633
  layout: layout || 12,
7579
- style: {
7580
- "& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
7581
- },
7582
7634
  main: {
7583
7635
  label: heading,
7584
7636
  minRows: 8,
@@ -7687,7 +7739,7 @@ const buildPropertiesSection = function(type) {
7687
7739
  case "Text":
7688
7740
  uiSchema.elements = [
7689
7741
  getInputField("placeholder", "Placeholder"),
7690
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7742
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7691
7743
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7692
7744
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7693
7745
  ];
@@ -7696,7 +7748,8 @@ const buildPropertiesSection = function(type) {
7696
7748
  uiSchema.elements = [
7697
7749
  getInputField("placeholder", "Placeholder"),
7698
7750
  getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
7699
- getInputField("codeEditorLanguage", "Enter Code Language")
7751
+ getInputField("codeEditorLanguage", "Enter Code Language"),
7752
+ emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
7700
7753
  ];
7701
7754
  break;
7702
7755
  case "SpeedoMeter":
@@ -7776,7 +7829,7 @@ const buildPropertiesSection = function(type) {
7776
7829
  getInputField("xAxisValue", "X-AxisValue"),
7777
7830
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7778
7831
  getInputField("leftMargin", "Left Margin"),
7779
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7832
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7780
7833
  getArrayControl("legendLabels", "label"),
7781
7834
  getArrayControl("pieArcColors", "color")
7782
7835
  ];
@@ -8356,54 +8409,124 @@ function okHandler(store2) {
8356
8409
  }
8357
8410
  }
8358
8411
  const sectionLabels = {
8359
- Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8360
- MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8361
- Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8362
- LeaderBoard: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8412
+ Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8413
+ MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8414
+ Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8415
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8363
8416
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8364
8417
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8365
- SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
8366
- card: ["Core", "Properties", "Event", "Style", "Validation"],
8367
- UploadFile: ["Core", "Event", "Style", "Validation"],
8368
- Graph: ["Core", "Properties", "Event", "Style", "Validation"],
8369
- DownloadFile: ["Core", "Event", "Style", "Validation"],
8370
- Box: ["Core", "Event", "Style", "Validation"],
8371
- Properties: ["Core", "Properties", "Event", "Style", "Validation"],
8372
- ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
8373
- RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
8374
- Slider: ["Core", "Components", "Event", "Style", "Validation"],
8375
- Timer: ["Core", "Event", "Style", "Validation"],
8376
- Rank: ["Core", "Event", "Style", "Validation"],
8377
- Button: ["Core", "Properties", "Event", "Style", "Validation"],
8418
+ SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8419
+ card: ["Core", "Properties", "Events", "Style", "Validation"],
8420
+ UploadFile: ["Core", "Events", "Style", "Validation"],
8421
+ Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8422
+ DownloadFile: ["Core", "Events", "Style", "Validation"],
8423
+ Box: ["Core", "Events", "Style", "Validation"],
8424
+ Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8425
+ ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8426
+ RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8427
+ Slider: ["Core", "Components", "Events", "Style", "Validation"],
8428
+ Timer: ["Core", "Events", "Style", "Validation"],
8429
+ Rank: ["Core", "Events", "Style", "Validation"],
8430
+ Button: ["Core", "Properties", "Events", "Style", "Validation"],
8378
8431
  Array: ["Core", "Components", "Validation"],
8379
- Radio: ["Core", "Properties", "Event", "Style", "Validation"],
8380
- Text: ["Core", "Properties", "Event", "Style", "Validation"],
8381
- TextArea: ["Core", "Properties", "Event", "Style", "Validation"],
8432
+ Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8433
+ Text: ["Core", "Properties", "Events", "Style", "Validation"],
8434
+ TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8382
8435
  PopUp: ["Core", "Components", "Properties", "Style"],
8383
- Stepper: ["Core", "Components", "Properties", "Event", "Style"],
8384
- DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8385
- InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8386
- TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
8436
+ Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8437
+ DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8438
+ InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8439
+ TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8387
8440
  ColumnGroup: ["Core", "Components"],
8388
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8441
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8389
8442
  };
8390
8443
  function refreshPage(type, store2) {
8391
- var _a;
8444
+ var _a, _b;
8392
8445
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8446
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8393
8447
  if (type) {
8394
8448
  const sectionUiSchema = {
8395
8449
  Core: CoreSection,
8396
8450
  Value: ValueTab,
8397
8451
  Style: StyleSection,
8398
- Event: EventSection(store2.theme.myTheme),
8452
+ Events: EventSection(store2.theme.myTheme),
8399
8453
  Components: TableSection(store2.theme.myTheme),
8400
8454
  Properties: buildPropertiesSection(type),
8401
8455
  Validation: ValidationSection
8402
8456
  };
8403
8457
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8404
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
8458
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
8405
8459
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8406
8460
  }
8461
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8462
+ const lastDotIndex = path.lastIndexOf(".");
8463
+ const parentPath = path.slice(0, lastDotIndex);
8464
+ const parentObj = _.get(currentConfig, parentPath);
8465
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8466
+ UiSchema.elements[0].elements[0].elements[4] = {
8467
+ type: "Control",
8468
+ scope: "#/properties/columnFormat",
8469
+ options: {
8470
+ widget: "SelectInputField"
8471
+ },
8472
+ config: {
8473
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8474
+ main: {
8475
+ label: "Column Format"
8476
+ }
8477
+ }
8478
+ };
8479
+ UiSchema.elements[0].elements[0].elements[6] = {
8480
+ type: "Control",
8481
+ scope: "#/properties/filteringOptions",
8482
+ options: {
8483
+ widget: "SelectInputField"
8484
+ },
8485
+ config: {
8486
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8487
+ main: {
8488
+ label: "Filter Mode",
8489
+ multiple: true
8490
+ }
8491
+ }
8492
+ };
8493
+ UiSchema.elements[0].elements[0].elements[5] = {
8494
+ type: "Control",
8495
+ scope: "#/properties/enableFilter",
8496
+ options: {
8497
+ widget: "RadioInputField"
8498
+ },
8499
+ config: {
8500
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8501
+ main: {
8502
+ label: "Enable Filter",
8503
+ options: ["Yes", "No"]
8504
+ }
8505
+ }
8506
+ }, UiSchema.elements[0].elements[0].elements[7] = {
8507
+ type: "Control",
8508
+ scope: "#/properties/enableSorting",
8509
+ options: {
8510
+ widget: "RadioInputField"
8511
+ },
8512
+ config: {
8513
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8514
+ main: {
8515
+ label: "Enable Sorting",
8516
+ options: ["Yes", "No"]
8517
+ }
8518
+ }
8519
+ }, UiSchema.elements[0].elements[0].elements[8] = {
8520
+ type: "Control",
8521
+ scope: "#/properties/proc",
8522
+ config: {
8523
+ layout: { xs: 6, sm: 6, md: 8, lg: 3 }
8524
+ },
8525
+ options: {
8526
+ widget: "EmptyBox"
8527
+ }
8528
+ };
8529
+ }
8407
8530
  if (sessionStorage.getItem("copiedConfig")) {
8408
8531
  this.ElementPathSetter(UiSchema);
8409
8532
  }
@@ -8425,10 +8548,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8425
8548
  return getFormdataFromSessionStorage(path);
8426
8549
  },
8427
8550
  getSchema: function() {
8551
+ var _a, _b, _c;
8428
8552
  const schema2 = _.cloneDeep(ComponentSchema);
8429
8553
  if (sessionStorage.getItem("copiedConfig")) {
8430
8554
  schema2.properties.RemoveItemButton.disabled = false;
8431
8555
  }
8556
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8557
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8558
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8559
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
8560
+ if (path) {
8561
+ const pathArrayAll = path.split(".");
8562
+ const arr = [];
8563
+ pathArrayAll.map((e, i) => {
8564
+ if (i === 0) {
8565
+ arr.push(e);
8566
+ return;
8567
+ }
8568
+ arr.push(`${arr[i - 1]}.${e}`);
8569
+ });
8570
+ arr.map((e) => {
8571
+ const data = _.get(config2, e);
8572
+ pathArray.push({
8573
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
8574
+ path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
8575
+ });
8576
+ });
8577
+ }
8578
+ schema2.properties.pageName.path = pathArray;
8432
8579
  return schema2;
8433
8580
  },
8434
8581
  okHandler: () => okHandler(store2),
@@ -8541,6 +8688,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8541
8688
  const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8542
8689
  this.ElementPathSetter(uiSchema, copiedFormData);
8543
8690
  sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8691
+ store2.setNotify({
8692
+ SuccessMessage: `${elementType} Copied Successfully`,
8693
+ Success: true
8694
+ });
8544
8695
  store2.setSchema(schema2);
8545
8696
  store2.setUiSchema(uiSchema);
8546
8697
  },
@@ -8566,15 +8717,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8566
8717
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8567
8718
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8568
8719
  const notificationMessages = {
8569
- Event: " The event cannot be integrated into the component section.",
8570
- Component: "The component cannot be integrated into the event section."
8720
+ Events: " The Events cannot be integrated into the component section.",
8721
+ Component: "The component cannot be integrated into the Events section."
8571
8722
  };
8572
8723
  if (copiedConfig.Handler && elementType === "Component") {
8573
8724
  store2.setNotify({
8574
- FailMessage: notificationMessages.Event,
8725
+ FailMessage: notificationMessages.Events,
8575
8726
  Fail: true
8576
8727
  });
8577
- } else if (copiedConfig.name && elementType === "Event") {
8728
+ } else if (copiedConfig.name && elementType === "Events") {
8578
8729
  store2.setNotify({
8579
8730
  FailMessage: notificationMessages.Component,
8580
8731
  Fail: true
@@ -8600,8 +8751,31 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8600
8751
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8601
8752
  },
8602
8753
  ElementPathSetter: function(uiSchema, copiedFormData) {
8754
+ 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;
8603
8755
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8604
- uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
8756
+ 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) {
8757
+ uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
8758
+ } 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) {
8759
+ uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
8760
+ }
8761
+ 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) {
8762
+ uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
8763
+ } 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) {
8764
+ uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
8765
+ }
8766
+ },
8767
+ onNavigatePopupYes: function() {
8768
+ try {
8769
+ store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
8770
+ } catch (e) {
8771
+ store2.setNotify({
8772
+ FailMessage: "Couldn't navigate page",
8773
+ Fail: true
8774
+ });
8775
+ }
8776
+ },
8777
+ onNavigatePopupNo: function() {
8778
+ store2.updateDialog(`${store2.path}popup`);
8605
8779
  }
8606
8780
  };
8607
8781
  };
@@ -8752,18 +8926,18 @@ const EventSchema = {
8752
8926
  eventType: {
8753
8927
  type: "string",
8754
8928
  oneOf: [
8755
- { title: "Click Event", const: "onClick" },
8756
- { title: "Load Event", const: "onLoad" },
8757
- { title: "Change Event", const: "onChange" },
8758
- { title: "Mount Event", const: "onMount" },
8929
+ { title: "Click", const: "onClick" },
8930
+ { title: "Load", const: "onLoad" },
8931
+ { title: "Change", const: "onChange" },
8932
+ { title: "Mount", const: "onMount" },
8759
8933
  { title: "Success", const: "Success" },
8760
- { title: "onStart", const: "onStart" },
8761
- { title: "Cell Renderer", const: "onCellRenderer" },
8762
- { title: "File Upload Event", const: "onUpload" },
8763
- { title: "Back Event", const: "onBack" },
8764
- { title: "Next Event", const: "onNext" },
8765
- { title: "onRowMovement", const: "onRowMovement" },
8766
- { title: "File Download Event", const: "onDownload" },
8934
+ { title: "Start", const: "onStart" },
8935
+ { title: "Cell Render", const: "onCellRenderer" },
8936
+ { title: "Upload", const: "onUpload" },
8937
+ { title: "Back", const: "onBack" },
8938
+ { title: "Next", const: "onNext" },
8939
+ { title: "Row Movement", const: "onRowMovement" },
8940
+ { title: "Download", const: "onDownload" },
8767
8941
  { title: "Fail", const: "Fail" }
8768
8942
  ]
8769
8943
  },
@@ -8771,7 +8945,7 @@ const EventSchema = {
8771
8945
  type: "string",
8772
8946
  oneOf: [
8773
8947
  { title: "Custom", const: "custom" },
8774
- { title: "Api", const: "api" },
8948
+ { title: "API", const: "api" },
8775
8949
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8776
8950
  { title: "Refresh", const: "refresh" }
8777
8951
  ]
@@ -8800,15 +8974,18 @@ const EventSchema = {
8800
8974
  },
8801
8975
  RemoveItemButton: {
8802
8976
  disabled: true
8977
+ },
8978
+ pageName: {
8979
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8803
8980
  }
8804
8981
  },
8805
8982
  required: ["eventType", "Handler"]
8806
8983
  };
8807
8984
  const EventUiSchema = (theme) => {
8808
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8985
+ var _a;
8809
8986
  const uiSchema = {
8810
8987
  type: "HorizontalLayout",
8811
- heading: "Page-Event",
8988
+ heading: "Page-Events",
8812
8989
  elements: [
8813
8990
  {
8814
8991
  type: "TabLayout",
@@ -8942,7 +9119,7 @@ const EventUiSchema = (theme) => {
8942
9119
  elements: [
8943
9120
  {
8944
9121
  accessorKey: "eventType",
8945
- header: "Event Type",
9122
+ header: "Event's Type",
8946
9123
  size: 300,
8947
9124
  type: "string"
8948
9125
  },
@@ -8954,7 +9131,7 @@ const EventUiSchema = (theme) => {
8954
9131
  },
8955
9132
  {
8956
9133
  accessorKey: "Edit_Approve_Records",
8957
- header: "Edit Widget",
9134
+ header: "Edit",
8958
9135
  type: "action",
8959
9136
  size: 150,
8960
9137
  widget: {
@@ -9111,15 +9288,17 @@ const EventUiSchema = (theme) => {
9111
9288
  config: {
9112
9289
  layout: 11,
9113
9290
  main: {
9114
- heading: "Are you sure you want to delete ?"
9291
+ heading: "Are you sure you want to delete this Event ?"
9115
9292
  },
9116
9293
  style: {
9117
- marginTop: "-20px",
9118
9294
  fontSize: "20px",
9119
9295
  "&.MuiTypography-root": {
9120
- padding: "10px 30px 20px 30px",
9296
+ padding: "0px 20px",
9121
9297
  textAlign: "center",
9122
- lineHeight: "1"
9298
+ lineHeight: "1.2",
9299
+ fontWeight: "normal",
9300
+ fontSize: "18px",
9301
+ marginBottom: theme.spacing(5)
9123
9302
  }
9124
9303
  }
9125
9304
  }
@@ -9143,13 +9322,14 @@ const EventUiSchema = (theme) => {
9143
9322
  name: "No",
9144
9323
  startIcon: "ApproveIcon",
9145
9324
  variant: "contained",
9146
- color: "info",
9147
9325
  type: "text",
9148
9326
  onClick: "deletePopUpEvent",
9149
9327
  size: "large"
9150
9328
  },
9151
9329
  style: {
9152
9330
  position: "absolute",
9331
+ padding: "8px 0px",
9332
+ fontSize: "16px",
9153
9333
  bottom: 0,
9154
9334
  left: 0,
9155
9335
  width: "50%",
@@ -9177,7 +9357,6 @@ const EventUiSchema = (theme) => {
9177
9357
  layout: 6,
9178
9358
  main: {
9179
9359
  name: "Yes",
9180
- startIcon: "ApproveIcon",
9181
9360
  variant: "contained",
9182
9361
  color: "error",
9183
9362
  type: "text",
@@ -9186,6 +9365,8 @@ const EventUiSchema = (theme) => {
9186
9365
  },
9187
9366
  style: {
9188
9367
  position: "absolute",
9368
+ padding: "8px 0px",
9369
+ fontSize: "16px",
9189
9370
  bottom: 0,
9190
9371
  right: 0,
9191
9372
  width: "50%",
@@ -9206,6 +9387,27 @@ const EventUiSchema = (theme) => {
9206
9387
  }
9207
9388
  ]
9208
9389
  },
9390
+ {
9391
+ type: "Control",
9392
+ scope: "#/properties/pageName",
9393
+ options: {
9394
+ widget: "Breadcrumb"
9395
+ },
9396
+ config: {
9397
+ layout: 12,
9398
+ main: {},
9399
+ style: {
9400
+ paddingLeft: theme.spacing(3),
9401
+ color: theme.palette.grey[600],
9402
+ fontSize: "10px",
9403
+ position: "fixed",
9404
+ bottom: "24px",
9405
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
9406
+ borderTop: `1px solid ${theme.palette.common.black}29`,
9407
+ backgroundColor: theme.palette.background.default
9408
+ }
9409
+ }
9410
+ },
9209
9411
  {
9210
9412
  type: "Control",
9211
9413
  scope: "#/properties/notify",
@@ -9223,7 +9425,7 @@ const EventUiSchema = (theme) => {
9223
9425
  style: {
9224
9426
  flexDirection: "row",
9225
9427
  position: "absolute",
9226
- bottom: 0,
9428
+ bottom: 10,
9227
9429
  height: "fit-content",
9228
9430
  overflow: "hidden",
9229
9431
  zIndex: 1e3,
@@ -9242,78 +9444,19 @@ const EventUiSchema = (theme) => {
9242
9444
  heading: "Copywriter@ACT21.IO"
9243
9445
  },
9244
9446
  style: {
9245
- color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
9447
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
9246
9448
  fontSize: "11px",
9247
9449
  textAlign: "center",
9248
- lineHeight: 2,
9450
+ lineHeight: 0,
9249
9451
  width: "fit-content",
9250
9452
  left: "50%",
9251
9453
  position: "relative",
9252
- margin: 0,
9454
+ margin: "revert",
9253
9455
  flexGrow: 1,
9254
9456
  height: 0,
9255
9457
  transform: "translate(-50%, 0%)"
9256
9458
  }
9257
9459
  }
9258
- },
9259
- {
9260
- type: "Control",
9261
- scope: "#/properties/FooterBackIcon",
9262
- options: {
9263
- widget: "Box"
9264
- },
9265
- config: {
9266
- main: {
9267
- iconName: "PrevIcon",
9268
- onClick: "backHandler",
9269
- width: "fit-content"
9270
- },
9271
- style: {
9272
- fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
9273
- width: 20,
9274
- height: 0,
9275
- top: 0,
9276
- right: { xs: "12px", sm: "84px" },
9277
- position: "absolute",
9278
- fontSize: "12px",
9279
- cursor: "pointer",
9280
- ":hover": {
9281
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9282
- },
9283
- marginRight: "20px"
9284
- }
9285
- }
9286
- },
9287
- {
9288
- type: "Control",
9289
- scope: "#/properties/FooterBackHandlerText",
9290
- options: {
9291
- widget: "Box"
9292
- },
9293
- config: {
9294
- main: {
9295
- heading: "Previous Page",
9296
- onClick: "backHandler"
9297
- },
9298
- style: {
9299
- display: { xs: "none", sm: "flex" },
9300
- textAlign: "left",
9301
- lineHeight: 1,
9302
- height: 0,
9303
- width: "fit-content",
9304
- color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
9305
- fontSize: "12px",
9306
- cursor: "pointer",
9307
- marginLeft: "2px",
9308
- top: 3,
9309
- right: "12px",
9310
- position: "absolute",
9311
- ":hover": {
9312
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9313
- },
9314
- marginRight: "4px"
9315
- }
9316
- }
9317
9460
  }
9318
9461
  ]
9319
9462
  }
@@ -9546,33 +9689,27 @@ const refreshSectionUiSchema = {
9546
9689
  }
9547
9690
  ]
9548
9691
  };
9549
- var emptyBox = {
9550
- type: "Control",
9551
- scope: "#/properties/emptyBox",
9552
- options: {
9553
- widget: "EmptyBox"
9554
- },
9555
- config: {
9556
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
9557
- main: {},
9558
- style: {}
9559
- }
9560
- };
9561
9692
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9562
9693
  return {
9563
9694
  setPage: async function() {
9564
9695
  const formdata = await this.getFormData();
9565
9696
  store2.setFormdata(formdata);
9566
9697
  const schema2 = await this.getSchema();
9698
+ console.log("SettingSchema>>", schema2);
9567
9699
  store2.setSchema(schema2);
9568
9700
  this.refreshPage(formdata.Handler, store2);
9569
9701
  },
9570
9702
  refreshPage: (handlerType, store22) => {
9703
+ var _a, _b, _c;
9571
9704
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9572
9705
  const schema2 = _.cloneDeep(EventSchema);
9573
9706
  if (handlerType) {
9574
9707
  if (handlerType === "custom") {
9575
- uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
9708
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
9709
+ "isSync",
9710
+ "Run in Sync",
9711
+ ["Yes", "No"]
9712
+ );
9576
9713
  uiSchema.elements[0].elements[0].elements[3] = {
9577
9714
  type: "Control",
9578
9715
  scope: "#/properties/emptyBox",
@@ -9585,14 +9722,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9585
9722
  style: {}
9586
9723
  }
9587
9724
  };
9588
- uiSchema.elements[0].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
9725
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9726
+ "eventCode",
9727
+ "Write Custom Code",
9728
+ false
9729
+ );
9589
9730
  schema2.required = ["eventType", "Handler", "eventCode"];
9590
9731
  } else if (handlerType === "api") {
9591
- uiSchema.elements[0].elements[0].elements[2] = emptyBox;
9732
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9733
+ xs: 0,
9734
+ sm: 0,
9735
+ md: 4,
9736
+ lg: 6
9737
+ });
9592
9738
  uiSchema.elements[0].elements[0].elements[3] = APISection;
9593
9739
  schema2.required = ["eventType", "Handler", "method", "path"];
9594
9740
  } else if (handlerType === "inBuiltFunction") {
9595
- uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
9741
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField(
9742
+ "inBuiltFunctionType",
9743
+ "Function Name"
9744
+ );
9596
9745
  uiSchema.elements[0].elements[0].elements[3] = {
9597
9746
  type: "Control",
9598
9747
  scope: "#/properties/emptyBox",
@@ -9605,10 +9754,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9605
9754
  style: {}
9606
9755
  }
9607
9756
  };
9608
- uiSchema.elements[0].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
9757
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9758
+ "funcParametersCode",
9759
+ "Write Custom Code for Functions Parameter",
9760
+ true
9761
+ );
9609
9762
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9610
9763
  } else if (handlerType === "refresh") {
9611
- uiSchema.elements[0].elements[0].elements[2] = emptyBox;
9764
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9765
+ xs: 0,
9766
+ sm: 0,
9767
+ md: 4,
9768
+ lg: 6
9769
+ });
9612
9770
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9613
9771
  schema2.properties.refreshElements.required = ["value"];
9614
9772
  schema2.properties.refreshElements.items.required = ["value"];
@@ -9622,9 +9780,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9622
9780
  ];
9623
9781
  }
9624
9782
  if (sessionStorage.getItem("copiedConfig")) {
9625
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9783
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9784
+ uiSchema
9785
+ );
9626
9786
  schema2.properties.RemoveItemButton.disabled = false;
9627
9787
  }
9788
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9789
+ const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
9790
+ const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
9791
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9792
+ if (path) {
9793
+ const pathArrayAll = path.split(".");
9794
+ const arr = [];
9795
+ pathArrayAll.map((e, i) => {
9796
+ if (i === 0) {
9797
+ arr.push(e);
9798
+ return;
9799
+ }
9800
+ arr.push(`${arr[i - 1]}.${e}`);
9801
+ });
9802
+ arr.map((e) => {
9803
+ const data = _.get(config2, e);
9804
+ pathArray.push({
9805
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9806
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9807
+ });
9808
+ });
9809
+ }
9810
+ schema2.properties.pageName.path = pathArray;
9628
9811
  store22.setSchema(schema2);
9629
9812
  store22.setUiSchema(uiSchema);
9630
9813
  },
@@ -9633,10 +9816,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9633
9816
  return EventUiSchema;
9634
9817
  },
9635
9818
  getSchema: () => {
9819
+ var _a, _b, _c;
9636
9820
  const schema2 = _.cloneDeep(EventSchema);
9637
9821
  if (sessionStorage.getItem("copiedConfig")) {
9638
9822
  schema2.properties.RemoveItemButton.disabled = false;
9639
9823
  }
9824
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9825
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9826
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9827
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9828
+ if (path) {
9829
+ const pathArrayAll = path.split(".");
9830
+ const arr = [];
9831
+ pathArrayAll.map((e, i) => {
9832
+ if (i === 0) {
9833
+ arr.push(e);
9834
+ return;
9835
+ }
9836
+ arr.push(`${arr[i - 1]}.${e}`);
9837
+ });
9838
+ arr.map((e) => {
9839
+ const data = _.get(config2, e);
9840
+ pathArray.push({
9841
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9842
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9843
+ });
9844
+ });
9845
+ }
9846
+ schema2.properties.pageName.path = _.cloneDeep(pathArray);
9640
9847
  return schema2;
9641
9848
  },
9642
9849
  okHandler: () => okHandler(store2),
@@ -9644,7 +9851,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9644
9851
  onChange: function() {
9645
9852
  var _a, _b, _c;
9646
9853
  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) {
9647
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9854
+ this.refreshPage(
9855
+ store2.newData.Handler || store2.formdata.Handler,
9856
+ store2
9857
+ );
9648
9858
  }
9649
9859
  },
9650
9860
  addEvent: function() {
@@ -9670,7 +9880,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9670
9880
  this.setPage();
9671
9881
  },
9672
9882
  deleteEvent: async function() {
9673
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9883
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9884
+ false
9885
+ );
9674
9886
  store2.updateDialog("popUpEvent");
9675
9887
  },
9676
9888
  backHandler: function() {
@@ -9682,10 +9894,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9682
9894
  store2.updateDialog("popUpEvent");
9683
9895
  },
9684
9896
  copyPasteElement: function() {
9685
- Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
9897
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
9898
+ store2,
9899
+ this.setPage.bind(this)
9900
+ );
9686
9901
  },
9687
9902
  RemoveItemButton: function() {
9688
- Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9903
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
9904
+ store2
9905
+ );
9689
9906
  }
9690
9907
  };
9691
9908
  };
@@ -9856,16 +10073,17 @@ function executeCustomHandler(params) {
9856
10073
  }
9857
10074
  }
9858
10075
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10076
+ var _a, _b, _c;
9859
10077
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9860
10078
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9861
10079
  store2.setSchema((pre) => {
9862
- var _a;
10080
+ var _a2;
9863
10081
  return {
9864
10082
  ...pre,
9865
10083
  properties: {
9866
10084
  ...pre.properties,
9867
10085
  [componentName]: {
9868
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10086
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9869
10087
  oneOf: handlerResponse.data
9870
10088
  }
9871
10089
  }
@@ -9875,13 +10093,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9875
10093
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9876
10094
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9877
10095
  store2.setSchema((pre) => {
9878
- var _a;
10096
+ var _a2;
9879
10097
  return {
9880
10098
  ...pre,
9881
10099
  properties: {
9882
10100
  ...pre.properties,
9883
10101
  [componentName]: {
9884
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10102
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9885
10103
  type: "array",
9886
10104
  items: {
9887
10105
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9901,6 +10119,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9901
10119
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9902
10120
  });
9903
10121
  }
10122
+ } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10123
+ if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10124
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10125
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10126
+ store2.setFormdata((pre) => {
10127
+ return { ...pre, ...formDataHolder };
10128
+ });
10129
+ }
9904
10130
  } else {
9905
10131
  if (handlerResponse) {
9906
10132
  formDataHolder[componentName] = handlerResponse.data;
@@ -10206,7 +10432,7 @@ var service = (funcParams) => {
10206
10432
  service: funcParams.service,
10207
10433
  serviceHolder: this,
10208
10434
  eventGroups,
10209
- formDataHolder
10435
+ formDataHolder: {}
10210
10436
  });
10211
10437
  funcParams.store.setSchema(
10212
10438
  (pre) => {
@@ -10221,11 +10447,11 @@ var service = (funcParams) => {
10221
10447
  funcParams.store.setUiSchema(uiSchema);
10222
10448
  },
10223
10449
  onCellRenderer: (cellParams) => {
10224
- var _a, _b, _c;
10450
+ var _a, _b, _c, _d;
10225
10451
  if (eventGroups.onCellRenderer) {
10226
10452
  let finalResponse = {};
10227
10453
  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]);
10228
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10454
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10229
10455
  executeEventsParameters.store.functionParameters = cellParams;
10230
10456
  finalResponse = executeEvents({
10231
10457
  ...executeEventsParameters,
@@ -10829,6 +11055,9 @@ const buildTextField = (config2, componentScope2) => {
10829
11055
  if (config2.style) {
10830
11056
  inputField.config.style = JSON.parse(config2.style);
10831
11057
  }
11058
+ if (config2.multiline) {
11059
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11060
+ }
10832
11061
  if (config2.InputFormatingAndMasking) {
10833
11062
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10834
11063
  }
@@ -11665,6 +11894,18 @@ const buildRadio = (config2, componentScope2) => {
11665
11894
  }
11666
11895
  return Radio;
11667
11896
  };
11897
+ var emptyBox = {
11898
+ type: "Control",
11899
+ scope: "#/properties/emptyBox",
11900
+ options: {
11901
+ widget: "EmptyBox"
11902
+ },
11903
+ config: {
11904
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
11905
+ main: {},
11906
+ style: {}
11907
+ }
11908
+ };
11668
11909
  const buildEmptyBox = (config2, componentScope2) => {
11669
11910
  const EmptyBox = _.cloneDeep(emptyBox);
11670
11911
  if (config2.layout) {
@@ -12342,19 +12583,12 @@ const buildUiSchema = (config2, store2) => {
12342
12583
  });
12343
12584
  } else if (config2.type == "Table") {
12344
12585
  const sizeMap = {};
12345
- const filterMap = {};
12346
12586
  if (config2.sizeHolder) {
12347
12587
  config2.sizeHolder.map((e, i) => {
12348
12588
  sizeMap[e.keyName] = e.value;
12349
12589
  });
12350
12590
  }
12351
- if (config2.enableColumnFilter) {
12352
- config2.enableColumnFilter.map((e) => {
12353
- filterMap[e.keyName] = true;
12354
- });
12355
- }
12356
12591
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12357
- var _a, _b;
12358
12592
  if (cellElem.type) {
12359
12593
  return {
12360
12594
  accessorKey: cellElem.name,
@@ -12363,8 +12597,9 @@ const buildUiSchema = (config2, store2) => {
12363
12597
  type: cellElem.columnFormat,
12364
12598
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12365
12599
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12366
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12367
- columnFilterModeOptions: config2.filteringOptions
12600
+ columnFilterModeOptions: cellElem.filteringOptions,
12601
+ enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
12602
+ enableSorting: cellElem.enableSorting === "Yes" ? true : false
12368
12603
  };
12369
12604
  } else {
12370
12605
  return {
@@ -12372,8 +12607,9 @@ const buildUiSchema = (config2, store2) => {
12372
12607
  type: cellElem.columnFormat,
12373
12608
  header: cellElem.label || cellElem.name,
12374
12609
  size: sizeMap[cellElem.name] || 180,
12375
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12376
- columnFilterModeOptions: config2.filteringOptions
12610
+ columnFilterModeOptions: cellElem.filteringOptions,
12611
+ enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
12612
+ enableSorting: cellElem.enableSorting === "Yes" ? true : false
12377
12613
  };
12378
12614
  }
12379
12615
  });