impaktapps-ui-builder 0.0.101-alpha.25 → 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 (30) hide show
  1. package/dist/impaktapps-ui-builder.es.js +475 -259
  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/card.d.ts +3 -5
  6. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
  7. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
  8. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
  9. package/package.json +1 -1
  10. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  11. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +21 -29
  12. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +8 -4
  13. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +11 -8
  14. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -60
  15. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
  16. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +0 -52
  17. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -50
  18. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +25 -28
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +46 -159
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -97
  21. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  22. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +43 -259
  23. package/src/impaktapps-ui-builder/builder/services/component.ts +217 -56
  24. package/src/impaktapps-ui-builder/builder/services/event.ts +175 -58
  25. package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
  26. package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -111
  27. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
  29. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -22
  30. 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: {
@@ -7487,11 +7528,14 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7487
7528
  return {
7488
7529
  type: "Control",
7489
7530
  scope: `#/properties/${parentScope}`,
7531
+ options: {
7532
+ widget: "Array"
7533
+ },
7490
7534
  config: {
7491
7535
  layout: 12,
7492
7536
  main: {
7493
- label: childScope,
7494
- childElementLabel: childScope
7537
+ label: childLabel,
7538
+ childElementLabel: childLabel
7495
7539
  },
7496
7540
  style: {
7497
7541
  marginLeft: "-24px",
@@ -7697,7 +7741,7 @@ const buildPropertiesSection = function(type) {
7697
7741
  case "Text":
7698
7742
  uiSchema.elements = [
7699
7743
  getInputField("placeholder", "Placeholder"),
7700
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7744
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7701
7745
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7702
7746
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7703
7747
  ];
@@ -7706,7 +7750,8 @@ const buildPropertiesSection = function(type) {
7706
7750
  uiSchema.elements = [
7707
7751
  getInputField("placeholder", "Placeholder"),
7708
7752
  getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
7709
- getInputField("codeEditorLanguage", "Enter Code Language")
7753
+ getInputField("codeEditorLanguage", "Enter Code Language"),
7754
+ emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
7710
7755
  ];
7711
7756
  break;
7712
7757
  case "SpeedoMeter":
@@ -7786,7 +7831,7 @@ const buildPropertiesSection = function(type) {
7786
7831
  getInputField("xAxisValue", "X-AxisValue"),
7787
7832
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7788
7833
  getInputField("leftMargin", "Left Margin"),
7789
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7834
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
7790
7835
  getArrayControl("legendLabels", "label"),
7791
7836
  getArrayControl("pieArcColors", "color")
7792
7837
  ];
@@ -8366,54 +8411,136 @@ function okHandler(store2) {
8366
8411
  }
8367
8412
  }
8368
8413
  const sectionLabels = {
8369
- Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8370
- MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8371
- Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8372
- 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"],
8373
8418
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8374
8419
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8375
- SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
8376
- card: ["Core", "Properties", "Event", "Style", "Validation"],
8377
- UploadFile: ["Core", "Event", "Style", "Validation"],
8378
- Graph: ["Core", "Properties", "Event", "Style", "Validation"],
8379
- DownloadFile: ["Core", "Event", "Style", "Validation"],
8380
- Box: ["Core", "Event", "Style", "Validation"],
8381
- Properties: ["Core", "Properties", "Event", "Style", "Validation"],
8382
- ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
8383
- RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
8384
- Slider: ["Core", "Components", "Event", "Style", "Validation"],
8385
- Timer: ["Core", "Event", "Style", "Validation"],
8386
- Rank: ["Core", "Event", "Style", "Validation"],
8387
- 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"],
8388
8433
  Array: ["Core", "Components", "Validation"],
8389
- Radio: ["Core", "Properties", "Event", "Style", "Validation"],
8390
- Text: ["Core", "Properties", "Event", "Style", "Validation"],
8391
- 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"],
8392
8437
  PopUp: ["Core", "Components", "Properties", "Style"],
8393
- Stepper: ["Core", "Components", "Properties", "Event", "Style"],
8394
- DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8395
- InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8396
- 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"],
8397
8442
  ColumnGroup: ["Core", "Components"],
8398
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8443
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8399
8444
  };
8400
8445
  function refreshPage(type, store2) {
8401
- var _a;
8446
+ var _a, _b;
8402
8447
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8448
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8403
8449
  if (type) {
8404
8450
  const sectionUiSchema = {
8405
8451
  Core: CoreSection,
8406
8452
  Value: ValueTab,
8407
8453
  Style: StyleSection,
8408
- Event: EventSection(store2.theme.myTheme),
8454
+ Events: EventSection(store2.theme.myTheme),
8409
8455
  Components: TableSection(store2.theme.myTheme),
8410
8456
  Properties: buildPropertiesSection(type),
8411
8457
  Validation: ValidationSection
8412
8458
  };
8413
8459
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8414
- 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"];
8415
8461
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8416
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
+ }
8417
8544
  if (sessionStorage.getItem("copiedConfig")) {
8418
8545
  this.ElementPathSetter(UiSchema);
8419
8546
  }
@@ -8435,10 +8562,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8435
8562
  return getFormdataFromSessionStorage(path);
8436
8563
  },
8437
8564
  getSchema: function() {
8565
+ var _a, _b, _c;
8438
8566
  const schema2 = _.cloneDeep(ComponentSchema);
8439
8567
  if (sessionStorage.getItem("copiedConfig")) {
8440
8568
  schema2.properties.RemoveItemButton.disabled = false;
8441
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;
8442
8593
  return schema2;
8443
8594
  },
8444
8595
  okHandler: () => okHandler(store2),
@@ -8551,6 +8702,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8551
8702
  const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8552
8703
  this.ElementPathSetter(uiSchema, copiedFormData);
8553
8704
  sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8705
+ store2.setNotify({
8706
+ SuccessMessage: `${elementType} Copied Successfully`,
8707
+ Success: true
8708
+ });
8554
8709
  store2.setSchema(schema2);
8555
8710
  store2.setUiSchema(uiSchema);
8556
8711
  },
@@ -8576,15 +8731,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8576
8731
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8577
8732
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8578
8733
  const notificationMessages = {
8579
- Event: " The event cannot be integrated into the component section.",
8580
- 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."
8581
8736
  };
8582
8737
  if (copiedConfig.Handler && elementType === "Component") {
8583
8738
  store2.setNotify({
8584
- FailMessage: notificationMessages.Event,
8739
+ FailMessage: notificationMessages.Events,
8585
8740
  Fail: true
8586
8741
  });
8587
- } else if (copiedConfig.name && elementType === "Event") {
8742
+ } else if (copiedConfig.name && elementType === "Events") {
8588
8743
  store2.setNotify({
8589
8744
  FailMessage: notificationMessages.Component,
8590
8745
  Fail: true
@@ -8610,8 +8765,33 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8610
8765
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8611
8766
  },
8612
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;
8613
8769
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8614
- 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`);
8615
8795
  }
8616
8796
  };
8617
8797
  };
@@ -8762,18 +8942,18 @@ const EventSchema = {
8762
8942
  eventType: {
8763
8943
  type: "string",
8764
8944
  oneOf: [
8765
- { title: "Click Event", const: "onClick" },
8766
- { title: "Load Event", const: "onLoad" },
8767
- { title: "Change Event", const: "onChange" },
8768
- { 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" },
8769
8949
  { title: "Success", const: "Success" },
8770
- { title: "onStart", const: "onStart" },
8771
- { title: "Cell Renderer", const: "onCellRenderer" },
8772
- { title: "File Upload Event", const: "onUpload" },
8773
- { title: "Back Event", const: "onBack" },
8774
- { title: "Next Event", const: "onNext" },
8775
- { title: "onRowMovement", const: "onRowMovement" },
8776
- { 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" },
8777
8957
  { title: "Fail", const: "Fail" }
8778
8958
  ]
8779
8959
  },
@@ -8781,7 +8961,7 @@ const EventSchema = {
8781
8961
  type: "string",
8782
8962
  oneOf: [
8783
8963
  { title: "Custom", const: "custom" },
8784
- { title: "Api", const: "api" },
8964
+ { title: "API", const: "api" },
8785
8965
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8786
8966
  { title: "Refresh", const: "refresh" }
8787
8967
  ]
@@ -8810,15 +8990,18 @@ const EventSchema = {
8810
8990
  },
8811
8991
  RemoveItemButton: {
8812
8992
  disabled: true
8993
+ },
8994
+ pageName: {
8995
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8813
8996
  }
8814
8997
  },
8815
8998
  required: ["eventType", "Handler"]
8816
8999
  };
8817
9000
  const EventUiSchema = (theme) => {
8818
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
9001
+ var _a;
8819
9002
  const uiSchema = {
8820
9003
  type: "HorizontalLayout",
8821
- heading: "Page-Event",
9004
+ heading: "Page-Events",
8822
9005
  elements: [
8823
9006
  {
8824
9007
  type: "TabLayout",
@@ -8952,7 +9135,7 @@ const EventUiSchema = (theme) => {
8952
9135
  elements: [
8953
9136
  {
8954
9137
  accessorKey: "eventType",
8955
- header: "Event Type",
9138
+ header: "Event's Type",
8956
9139
  size: 300,
8957
9140
  type: "string"
8958
9141
  },
@@ -8964,7 +9147,7 @@ const EventUiSchema = (theme) => {
8964
9147
  },
8965
9148
  {
8966
9149
  accessorKey: "Edit_Approve_Records",
8967
- header: "Edit Widget",
9150
+ header: "Edit",
8968
9151
  type: "action",
8969
9152
  size: 150,
8970
9153
  widget: {
@@ -9121,15 +9304,17 @@ const EventUiSchema = (theme) => {
9121
9304
  config: {
9122
9305
  layout: 11,
9123
9306
  main: {
9124
- heading: "Are you sure you want to delete ?"
9307
+ heading: "Are you sure you want to delete this Event ?"
9125
9308
  },
9126
9309
  style: {
9127
- marginTop: "-20px",
9128
9310
  fontSize: "20px",
9129
9311
  "&.MuiTypography-root": {
9130
- padding: "10px 30px 20px 30px",
9312
+ padding: "0px 20px",
9131
9313
  textAlign: "center",
9132
- lineHeight: "1"
9314
+ lineHeight: "1.2",
9315
+ fontWeight: "normal",
9316
+ fontSize: "18px",
9317
+ marginBottom: theme.spacing(5)
9133
9318
  }
9134
9319
  }
9135
9320
  }
@@ -9153,13 +9338,14 @@ const EventUiSchema = (theme) => {
9153
9338
  name: "No",
9154
9339
  startIcon: "ApproveIcon",
9155
9340
  variant: "contained",
9156
- color: "info",
9157
9341
  type: "text",
9158
9342
  onClick: "deletePopUpEvent",
9159
9343
  size: "large"
9160
9344
  },
9161
9345
  style: {
9162
9346
  position: "absolute",
9347
+ padding: "8px 0px",
9348
+ fontSize: "16px",
9163
9349
  bottom: 0,
9164
9350
  left: 0,
9165
9351
  width: "50%",
@@ -9187,7 +9373,6 @@ const EventUiSchema = (theme) => {
9187
9373
  layout: 6,
9188
9374
  main: {
9189
9375
  name: "Yes",
9190
- startIcon: "ApproveIcon",
9191
9376
  variant: "contained",
9192
9377
  color: "error",
9193
9378
  type: "text",
@@ -9196,6 +9381,8 @@ const EventUiSchema = (theme) => {
9196
9381
  },
9197
9382
  style: {
9198
9383
  position: "absolute",
9384
+ padding: "8px 0px",
9385
+ fontSize: "16px",
9199
9386
  bottom: 0,
9200
9387
  right: 0,
9201
9388
  width: "50%",
@@ -9216,6 +9403,30 @@ const EventUiSchema = (theme) => {
9216
9403
  }
9217
9404
  ]
9218
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
+ },
9219
9430
  {
9220
9431
  type: "Control",
9221
9432
  scope: "#/properties/notify",
@@ -9233,7 +9444,7 @@ const EventUiSchema = (theme) => {
9233
9444
  style: {
9234
9445
  flexDirection: "row",
9235
9446
  position: "absolute",
9236
- bottom: 0,
9447
+ bottom: 10,
9237
9448
  height: "fit-content",
9238
9449
  overflow: "hidden",
9239
9450
  zIndex: 1e3,
@@ -9252,78 +9463,19 @@ const EventUiSchema = (theme) => {
9252
9463
  heading: "Copywriter@ACT21.IO"
9253
9464
  },
9254
9465
  style: {
9255
- 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",
9256
9467
  fontSize: "11px",
9257
9468
  textAlign: "center",
9258
- lineHeight: 2,
9469
+ lineHeight: 0,
9259
9470
  width: "fit-content",
9260
9471
  left: "50%",
9261
9472
  position: "relative",
9262
- margin: 0,
9473
+ margin: "revert",
9263
9474
  flexGrow: 1,
9264
9475
  height: 0,
9265
9476
  transform: "translate(-50%, 0%)"
9266
9477
  }
9267
9478
  }
9268
- },
9269
- {
9270
- type: "Control",
9271
- scope: "#/properties/FooterBackIcon",
9272
- options: {
9273
- widget: "Box"
9274
- },
9275
- config: {
9276
- main: {
9277
- iconName: "PrevIcon",
9278
- onClick: "backHandler",
9279
- width: "fit-content"
9280
- },
9281
- style: {
9282
- fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
9283
- width: 20,
9284
- height: 0,
9285
- top: 0,
9286
- right: { xs: "12px", sm: "84px" },
9287
- position: "absolute",
9288
- fontSize: "12px",
9289
- cursor: "pointer",
9290
- ":hover": {
9291
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9292
- },
9293
- marginRight: "20px"
9294
- }
9295
- }
9296
- },
9297
- {
9298
- type: "Control",
9299
- scope: "#/properties/FooterBackHandlerText",
9300
- options: {
9301
- widget: "Box"
9302
- },
9303
- config: {
9304
- main: {
9305
- heading: "Previous Page",
9306
- onClick: "backHandler"
9307
- },
9308
- style: {
9309
- display: { xs: "none", sm: "flex" },
9310
- textAlign: "left",
9311
- lineHeight: 1,
9312
- height: 0,
9313
- width: "fit-content",
9314
- color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
9315
- fontSize: "12px",
9316
- cursor: "pointer",
9317
- marginLeft: "2px",
9318
- top: 3,
9319
- right: "12px",
9320
- position: "absolute",
9321
- ":hover": {
9322
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9323
- },
9324
- marginRight: "4px"
9325
- }
9326
- }
9327
9479
  }
9328
9480
  ]
9329
9481
  }
@@ -9562,15 +9714,21 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9562
9714
  const formdata = await this.getFormData();
9563
9715
  store2.setFormdata(formdata);
9564
9716
  const schema2 = await this.getSchema();
9717
+ console.log("SettingSchema>>", schema2);
9565
9718
  store2.setSchema(schema2);
9566
9719
  this.refreshPage(formdata.Handler, store2);
9567
9720
  },
9568
9721
  refreshPage: (handlerType, store22) => {
9722
+ var _a, _b, _c;
9569
9723
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9570
9724
  const schema2 = _.cloneDeep(EventSchema);
9571
9725
  if (handlerType) {
9572
9726
  if (handlerType === "custom") {
9573
- 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
+ );
9574
9732
  uiSchema.elements[0].elements[0].elements[3] = {
9575
9733
  type: "Control",
9576
9734
  scope: "#/properties/emptyBox",
@@ -9583,14 +9741,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9583
9741
  style: {}
9584
9742
  }
9585
9743
  };
9586
- 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
+ );
9587
9749
  schema2.required = ["eventType", "Handler", "eventCode"];
9588
9750
  } else if (handlerType === "api") {
9589
- 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
+ });
9590
9757
  uiSchema.elements[0].elements[0].elements[3] = APISection;
9591
9758
  schema2.required = ["eventType", "Handler", "method", "path"];
9592
9759
  } else if (handlerType === "inBuiltFunction") {
9593
- 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
+ );
9594
9764
  uiSchema.elements[0].elements[0].elements[3] = {
9595
9765
  type: "Control",
9596
9766
  scope: "#/properties/emptyBox",
@@ -9603,10 +9773,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9603
9773
  style: {}
9604
9774
  }
9605
9775
  };
9606
- 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
+ );
9607
9781
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9608
9782
  } else if (handlerType === "refresh") {
9609
- 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
+ });
9610
9789
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9611
9790
  schema2.properties.refreshElements.required = ["value"];
9612
9791
  schema2.properties.refreshElements.items.required = ["value"];
@@ -9620,9 +9799,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9620
9799
  ];
9621
9800
  }
9622
9801
  if (sessionStorage.getItem("copiedConfig")) {
9623
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9802
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9803
+ uiSchema
9804
+ );
9624
9805
  schema2.properties.RemoveItemButton.disabled = false;
9625
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;
9626
9830
  store22.setSchema(schema2);
9627
9831
  store22.setUiSchema(uiSchema);
9628
9832
  },
@@ -9631,10 +9835,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9631
9835
  return EventUiSchema;
9632
9836
  },
9633
9837
  getSchema: () => {
9838
+ var _a, _b, _c;
9634
9839
  const schema2 = _.cloneDeep(EventSchema);
9635
9840
  if (sessionStorage.getItem("copiedConfig")) {
9636
9841
  schema2.properties.RemoveItemButton.disabled = false;
9637
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);
9638
9866
  return schema2;
9639
9867
  },
9640
9868
  okHandler: () => okHandler(store2),
@@ -9642,7 +9870,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9642
9870
  onChange: function() {
9643
9871
  var _a, _b, _c;
9644
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) {
9645
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9873
+ this.refreshPage(
9874
+ store2.newData.Handler || store2.formdata.Handler,
9875
+ store2
9876
+ );
9646
9877
  }
9647
9878
  },
9648
9879
  addEvent: function() {
@@ -9668,7 +9899,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9668
9899
  this.setPage();
9669
9900
  },
9670
9901
  deleteEvent: async function() {
9671
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9902
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9903
+ false
9904
+ );
9672
9905
  store2.updateDialog("popUpEvent");
9673
9906
  },
9674
9907
  backHandler: function() {
@@ -9680,10 +9913,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9680
9913
  store2.updateDialog("popUpEvent");
9681
9914
  },
9682
9915
  copyPasteElement: function() {
9683
- 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
+ );
9684
9920
  },
9685
9921
  RemoveItemButton: function() {
9686
- 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`);
9687
9940
  }
9688
9941
  };
9689
9942
  };
@@ -9854,16 +10107,17 @@ function executeCustomHandler(params) {
9854
10107
  }
9855
10108
  }
9856
10109
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10110
+ var _a, _b, _c;
9857
10111
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9858
10112
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9859
10113
  store2.setSchema((pre) => {
9860
- var _a;
10114
+ var _a2;
9861
10115
  return {
9862
10116
  ...pre,
9863
10117
  properties: {
9864
10118
  ...pre.properties,
9865
10119
  [componentName]: {
9866
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10120
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9867
10121
  oneOf: handlerResponse.data
9868
10122
  }
9869
10123
  }
@@ -9873,13 +10127,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9873
10127
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9874
10128
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9875
10129
  store2.setSchema((pre) => {
9876
- var _a;
10130
+ var _a2;
9877
10131
  return {
9878
10132
  ...pre,
9879
10133
  properties: {
9880
10134
  ...pre.properties,
9881
10135
  [componentName]: {
9882
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10136
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9883
10137
  type: "array",
9884
10138
  items: {
9885
10139
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9899,6 +10153,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9899
10153
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9900
10154
  });
9901
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
+ }
9902
10164
  } else {
9903
10165
  if (handlerResponse) {
9904
10166
  formDataHolder[componentName] = handlerResponse.data;
@@ -10204,7 +10466,7 @@ var service = (funcParams) => {
10204
10466
  service: funcParams.service,
10205
10467
  serviceHolder: this,
10206
10468
  eventGroups,
10207
- formDataHolder
10469
+ formDataHolder: {}
10208
10470
  });
10209
10471
  funcParams.store.setSchema(
10210
10472
  (pre) => {
@@ -10219,11 +10481,11 @@ var service = (funcParams) => {
10219
10481
  funcParams.store.setUiSchema(uiSchema);
10220
10482
  },
10221
10483
  onCellRenderer: (cellParams) => {
10222
- var _a, _b, _c;
10484
+ var _a, _b, _c, _d;
10223
10485
  if (eventGroups.onCellRenderer) {
10224
10486
  let finalResponse = {};
10225
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]);
10226
- 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]) {
10227
10489
  executeEventsParameters.store.functionParameters = cellParams;
10228
10490
  finalResponse = executeEvents({
10229
10491
  ...executeEventsParameters,
@@ -10827,6 +11089,9 @@ const buildTextField = (config2, componentScope2) => {
10827
11089
  if (config2.style) {
10828
11090
  inputField.config.style = JSON.parse(config2.style);
10829
11091
  }
11092
+ if (config2.multiline) {
11093
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11094
+ }
10830
11095
  if (config2.InputFormatingAndMasking) {
10831
11096
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10832
11097
  }
@@ -11120,7 +11385,8 @@ function Card(theme) {
11120
11385
  wrapperStyle: {
11121
11386
  position: "relative",
11122
11387
  top: "50%",
11123
- transform: "translateY(-50%)"
11388
+ transform: "translateY(-50%)",
11389
+ marginBottom: 0
11124
11390
  },
11125
11391
  componentsBoxStyle: {
11126
11392
  boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
@@ -11159,7 +11425,8 @@ function Card(theme) {
11159
11425
  gap: 0
11160
11426
  },
11161
11427
  wrapperStyle: {
11162
- background: "transparent"
11428
+ background: "transparent",
11429
+ marginBottom: 0
11163
11430
  },
11164
11431
  componentsBoxStyle: {
11165
11432
  flexDirection: "column",
@@ -11180,7 +11447,8 @@ function Card(theme) {
11180
11447
  gap: 0
11181
11448
  },
11182
11449
  wrapperStyle: {
11183
- background: "transparent"
11450
+ background: "transparent",
11451
+ marginBottom: 0
11184
11452
  },
11185
11453
  componentsBoxStyle: {
11186
11454
  flexDirection: "row",
@@ -11189,8 +11457,6 @@ function Card(theme) {
11189
11457
  height: "0",
11190
11458
  background: "transparent",
11191
11459
  borderRadius: "0px",
11192
- marginLeft: "-10px",
11193
- marginTop: "-8px",
11194
11460
  justifyContent: "start",
11195
11461
  position: "relative"
11196
11462
  },
@@ -11212,7 +11478,6 @@ function Card(theme) {
11212
11478
  background: "inherit",
11213
11479
  justifyContent: "flex-start",
11214
11480
  width: "auto",
11215
- margin: "-8px",
11216
11481
  height: 0
11217
11482
  }
11218
11483
  },
@@ -11235,9 +11500,8 @@ function Card(theme) {
11235
11500
  background: "inherit",
11236
11501
  justifyContent: "flex-start",
11237
11502
  width: "auto",
11238
- margin: "-8px",
11239
11503
  position: "absolute",
11240
- left: "8px"
11504
+ left: "0px"
11241
11505
  }
11242
11506
  },
11243
11507
  options: {
@@ -11259,8 +11523,7 @@ function Card(theme) {
11259
11523
  justifyContent: "center",
11260
11524
  textWrap: "wrap",
11261
11525
  background: "inherit",
11262
- width: "calc(100%+8px)",
11263
- margin: "-8px",
11526
+ width: "100%",
11264
11527
  marginTop: { xs: "0px", md: "12px" },
11265
11528
  lineHeight: "1"
11266
11529
  },
@@ -12031,41 +12294,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12031
12294
  }
12032
12295
  return thought;
12033
12296
  };
12034
- var pdfViewer = {
12035
- type: "Control",
12036
- scope: "#/properties/pdfviewer",
12037
- options: {
12038
- widget: "PdfViewer"
12039
- },
12040
- config: {
12041
- layout: {
12042
- xs: 12,
12043
- sm: 12,
12044
- md: 12,
12045
- lg: 12
12046
- },
12047
- main: {
12048
- title: "PDF"
12049
- }
12050
- }
12051
- };
12052
- const buildPdfViewer = (config2) => {
12053
- const PdfViewer = _.cloneDeep(pdfViewer);
12054
- PdfViewer.config.main.label = config2.label;
12055
- if (config2.name) {
12056
- PdfViewer.scope = `#/properties/${config2.name}`;
12057
- }
12058
- if (config2.layout) {
12059
- PdfViewer.config.layout = createLayoutFormat(config2.layout);
12060
- }
12061
- if (config2.label) {
12062
- PdfViewer.config.main.title = config2.label;
12063
- }
12064
- if (config2.style) {
12065
- PdfViewer.config.style = JSON.parse(config2.style);
12066
- }
12067
- return PdfViewer;
12068
- };
12069
12297
  let schema = {
12070
12298
  type: "object",
12071
12299
  properties: {},
@@ -12320,9 +12548,6 @@ const buildUiSchema = (config2, store2) => {
12320
12548
  case "Thought":
12321
12549
  elements = buildThoughtOfTheDay(config2, componentScope2);
12322
12550
  break;
12323
- case "PdfViewer":
12324
- elements = buildPdfViewer(config2);
12325
- break;
12326
12551
  default:
12327
12552
  schema = {
12328
12553
  type: "object",
@@ -12352,39 +12577,30 @@ const buildUiSchema = (config2, store2) => {
12352
12577
  });
12353
12578
  } else if (config2.type == "Table") {
12354
12579
  const sizeMap = {};
12355
- const filterMap = {};
12356
12580
  if (config2.sizeHolder) {
12357
12581
  config2.sizeHolder.map((e, i) => {
12358
12582
  sizeMap[e.keyName] = e.value;
12359
12583
  });
12360
12584
  }
12361
- if (config2.enableColumnFilter) {
12362
- config2.enableColumnFilter.map((e) => {
12363
- filterMap[e.keyName] = true;
12364
- });
12365
- }
12366
12585
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12367
- 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
+ };
12368
12596
  if (cellElem.type) {
12369
12597
  return {
12370
- accessorKey: cellElem.name,
12371
- header: cellElem.label || cellElem.name,
12372
- size: sizeMap[cellElem.name] || 180,
12373
- type: cellElem.columnFormat,
12374
12598
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12375
12599
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12376
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12377
- columnFilterModeOptions: config2.filteringOptions
12600
+ ...commonProperties
12378
12601
  };
12379
12602
  } else {
12380
- return {
12381
- accessorKey: cellElem.name,
12382
- type: cellElem.columnFormat,
12383
- header: cellElem.label || cellElem.name,
12384
- size: sizeMap[cellElem.name] || 180,
12385
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12386
- columnFilterModeOptions: config2.filteringOptions
12387
- };
12603
+ return commonProperties;
12388
12604
  }
12389
12605
  });
12390
12606
  } else if (config2.type == "Array") {