impaktapps-ui-builder 0.0.101-alpha.27 → 0.0.101-alpha.273

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 (32) hide show
  1. package/dist/impaktapps-ui-builder.es.js +491 -272
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +17 -17
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +5 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
  8. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
  9. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
  10. package/package.json +1 -1
  11. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  12. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +38 -30
  13. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -1
  14. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +7 -4
  15. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -60
  16. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
  17. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
  18. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +0 -52
  19. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -50
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +33 -28
  21. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +28 -165
  22. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -97
  23. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  24. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +43 -259
  25. package/src/impaktapps-ui-builder/builder/services/component.ts +220 -56
  26. package/src/impaktapps-ui-builder/builder/services/event.ts +175 -58
  27. package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
  28. package/src/impaktapps-ui-builder/runtime/services/service.ts +19 -122
  29. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
  31. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -22
  32. 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,14 @@ 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" }
6291
+ ]
6292
+ },
6293
+ elementType: {
6294
+ oneOf: [
6295
+ { title: "Table Action Element", const: "action" },
6296
+ { title: "Table Header Element", const: "tableHeader" },
6297
+ { title: "Table Element", const: "element" }
6285
6298
  ]
6286
6299
  },
6287
6300
  columnFormat: {
@@ -6435,23 +6448,20 @@ const ComponentSchema = {
6435
6448
  }
6436
6449
  },
6437
6450
  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
- }
6451
+ oneOf: [
6452
+ { const: "fuzzy", title: "Fuzzy" },
6453
+ { const: "contains", title: "Contain" },
6454
+ { const: "startsWith", title: "Starts with" },
6455
+ { const: "endsWith", title: "Ends with" },
6456
+ { const: "equals", title: "Equals" },
6457
+ { const: "notEquals", title: "Not Equals" },
6458
+ { const: "between", title: "Between" },
6459
+ { const: "betweenInclusive", title: "Between inclusive" },
6460
+ { const: "greaterThan", title: "Greater than" },
6461
+ { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6462
+ { const: "lessThan", title: "Less than" },
6463
+ { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6464
+ ]
6455
6465
  },
6456
6466
  legendLabels: {
6457
6467
  type: "array",
@@ -6567,6 +6577,9 @@ const ComponentSchema = {
6567
6577
  { title: "Info", const: "info" }
6568
6578
  ]
6569
6579
  },
6580
+ pageName: {
6581
+ path: []
6582
+ },
6570
6583
  name: {
6571
6584
  type: "string"
6572
6585
  },
@@ -6828,15 +6841,16 @@ const componentBasicUiSchema = (theme) => {
6828
6841
  config: {
6829
6842
  layout: 11,
6830
6843
  main: {
6831
- heading: "Are you sure you want to delete ?"
6844
+ heading: "Are you sure you want to delete this Component ?"
6832
6845
  },
6833
6846
  style: {
6834
- marginTop: "-20px",
6835
- fontSize: "20px",
6836
6847
  "&.MuiTypography-root": {
6837
- padding: "10px 30px 20px 30px",
6848
+ padding: "0px 20px",
6838
6849
  textAlign: "center",
6839
- lineHeight: "1"
6850
+ lineHeight: "1.2",
6851
+ fontWeight: "normal",
6852
+ fontSize: "18px",
6853
+ marginBottom: theme.spacing(5)
6840
6854
  }
6841
6855
  }
6842
6856
  }
@@ -6865,6 +6879,8 @@ const componentBasicUiSchema = (theme) => {
6865
6879
  },
6866
6880
  style: {
6867
6881
  position: "absolute",
6882
+ padding: "8px 0px",
6883
+ fontSize: "16px",
6868
6884
  bottom: 0,
6869
6885
  left: 0,
6870
6886
  width: "50%",
@@ -6900,6 +6916,8 @@ const componentBasicUiSchema = (theme) => {
6900
6916
  },
6901
6917
  style: {
6902
6918
  position: "absolute",
6919
+ padding: "8px 0px",
6920
+ fontSize: "16px",
6903
6921
  bottom: 0,
6904
6922
  right: 0,
6905
6923
  width: "50%",
@@ -6948,15 +6966,17 @@ const componentBasicUiSchema = (theme) => {
6948
6966
  config: {
6949
6967
  layout: 11,
6950
6968
  main: {
6951
- heading: "Are you sure you want to delete ?"
6969
+ heading: "Are you sure you want to delete this Event ?"
6952
6970
  },
6953
6971
  style: {
6954
- marginTop: "-20px",
6955
6972
  fontSize: "20px",
6956
6973
  "&.MuiTypography-root": {
6957
- padding: "10px 30px 20px 30px",
6974
+ padding: "0px 20px",
6958
6975
  textAlign: "center",
6959
- lineHeight: "1"
6976
+ lineHeight: "1.2",
6977
+ fontWeight: "normal",
6978
+ fontSize: "18px",
6979
+ marginBottom: theme.spacing(5)
6960
6980
  }
6961
6981
  }
6962
6982
  }
@@ -6985,6 +7005,8 @@ const componentBasicUiSchema = (theme) => {
6985
7005
  },
6986
7006
  style: {
6987
7007
  position: "absolute",
7008
+ padding: "8px 0px",
7009
+ fontSize: "16px",
6988
7010
  bottom: 0,
6989
7011
  left: 0,
6990
7012
  width: "50%",
@@ -7020,6 +7042,8 @@ const componentBasicUiSchema = (theme) => {
7020
7042
  },
7021
7043
  style: {
7022
7044
  position: "absolute",
7045
+ padding: "8px 0px",
7046
+ fontSize: "16px",
7023
7047
  bottom: 0,
7024
7048
  right: 0,
7025
7049
  width: "50%",
@@ -7044,22 +7068,23 @@ const componentBasicUiSchema = (theme) => {
7044
7068
  type: "Control",
7045
7069
  scope: "#/properties/pageName",
7046
7070
  options: {
7047
- widget: "Box"
7071
+ widget: "Breadcrumb"
7048
7072
  },
7049
7073
  config: {
7050
7074
  layout: 12,
7051
7075
  main: {
7052
- heading: ""
7076
+ onNavigatePopupNo: "onNavigatePopupNo",
7077
+ onNavigatePopupYes: "onNavigatePopupYes"
7053
7078
  },
7054
7079
  style: {
7055
7080
  paddingLeft: theme.spacing(3),
7056
- width: "100%",
7057
- fontSize: "10px",
7058
7081
  color: theme.palette.grey[600],
7059
- position: "relative",
7060
- bottom: "0px",
7082
+ fontSize: "10px",
7083
+ position: "fixed",
7084
+ bottom: "24px",
7061
7085
  borderBottom: `1px solid ${theme.palette.common.black}29`,
7062
- borderTop: `1px solid ${theme.palette.common.black}29`
7086
+ borderTop: `1px solid ${theme.palette.common.black}29`,
7087
+ backgroundColor: theme.palette.background.default
7063
7088
  }
7064
7089
  }
7065
7090
  },
@@ -7335,7 +7360,7 @@ const EventSection = (theme) => {
7335
7360
  elements: [
7336
7361
  {
7337
7362
  accessorKey: "eventType",
7338
- header: "Event Type",
7363
+ header: "Event's Type",
7339
7364
  type: "string",
7340
7365
  size: 300
7341
7366
  },
@@ -7347,7 +7372,7 @@ const EventSection = (theme) => {
7347
7372
  },
7348
7373
  {
7349
7374
  accessorKey: "Edit_Approve_Records",
7350
- header: "Edit Widget",
7375
+ header: "Edit",
7351
7376
  size: 150,
7352
7377
  type: "action",
7353
7378
  widget: {
@@ -7723,7 +7748,7 @@ const buildPropertiesSection = function(type) {
7723
7748
  case "Text":
7724
7749
  uiSchema.elements = [
7725
7750
  getInputField("placeholder", "Placeholder"),
7726
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7751
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7727
7752
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7728
7753
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7729
7754
  ];
@@ -8393,54 +8418,139 @@ function okHandler(store2) {
8393
8418
  }
8394
8419
  }
8395
8420
  const sectionLabels = {
8396
- Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8397
- MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8398
- Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8399
- LeaderBoard: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8421
+ Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8422
+ MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8423
+ Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8424
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8400
8425
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8401
8426
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8402
- SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
8403
- card: ["Core", "Properties", "Event", "Style", "Validation"],
8404
- UploadFile: ["Core", "Event", "Style", "Validation"],
8405
- Graph: ["Core", "Properties", "Event", "Style", "Validation"],
8406
- DownloadFile: ["Core", "Event", "Style", "Validation"],
8407
- Box: ["Core", "Event", "Style", "Validation"],
8408
- Properties: ["Core", "Properties", "Event", "Style", "Validation"],
8409
- ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
8410
- RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
8411
- Slider: ["Core", "Components", "Event", "Style", "Validation"],
8412
- Timer: ["Core", "Event", "Style", "Validation"],
8413
- Rank: ["Core", "Event", "Style", "Validation"],
8414
- Button: ["Core", "Properties", "Event", "Style", "Validation"],
8427
+ SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8428
+ card: ["Core", "Properties", "Events", "Style", "Validation"],
8429
+ UploadFile: ["Core", "Events", "Style", "Validation"],
8430
+ Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8431
+ DownloadFile: ["Core", "Events", "Style", "Validation"],
8432
+ Box: ["Core", "Events", "Style", "Validation"],
8433
+ Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8434
+ ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8435
+ RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8436
+ Slider: ["Core", "Components", "Events", "Style", "Validation"],
8437
+ Timer: ["Core", "Events", "Style", "Validation"],
8438
+ Rank: ["Core", "Events", "Style", "Validation"],
8439
+ Button: ["Core", "Properties", "Events", "Style", "Validation"],
8415
8440
  Array: ["Core", "Components", "Validation"],
8416
- Radio: ["Core", "Properties", "Event", "Style", "Validation"],
8417
- Text: ["Core", "Properties", "Event", "Style", "Validation"],
8418
- TextArea: ["Core", "Properties", "Event", "Style", "Validation"],
8441
+ Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8442
+ Text: ["Core", "Properties", "Events", "Style", "Validation"],
8443
+ TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8419
8444
  PopUp: ["Core", "Components", "Properties", "Style"],
8420
- Stepper: ["Core", "Components", "Properties", "Event", "Style"],
8421
- DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8422
- InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8423
- TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
8445
+ Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8446
+ DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8447
+ InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8448
+ TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8424
8449
  ColumnGroup: ["Core", "Components"],
8425
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8450
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8426
8451
  };
8427
8452
  function refreshPage(type, store2) {
8428
- var _a;
8453
+ var _a, _b;
8429
8454
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8455
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8430
8456
  if (type) {
8431
8457
  const sectionUiSchema = {
8432
8458
  Core: CoreSection,
8433
8459
  Value: ValueTab,
8434
8460
  Style: StyleSection,
8435
- Event: EventSection(store2.theme.myTheme),
8461
+ Events: EventSection(store2.theme.myTheme),
8436
8462
  Components: TableSection(store2.theme.myTheme),
8437
8463
  Properties: buildPropertiesSection(type),
8438
8464
  Validation: ValidationSection
8439
8465
  };
8440
8466
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8441
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
8467
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
8442
8468
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8443
8469
  }
8470
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8471
+ const lastDotIndex = path.lastIndexOf(".");
8472
+ const parentPath = path.slice(0, lastDotIndex);
8473
+ const parentObj = _.get(currentConfig, parentPath);
8474
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8475
+ UiSchema.elements[0].elements[0].elements[4] = {
8476
+ type: "Control",
8477
+ scope: "#/properties/columnFormat",
8478
+ options: {
8479
+ widget: "SelectInputField"
8480
+ },
8481
+ config: {
8482
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8483
+ main: {
8484
+ label: "Column Format"
8485
+ }
8486
+ }
8487
+ };
8488
+ UiSchema.elements[0].elements[0].elements[6] = {
8489
+ type: "Control",
8490
+ scope: "#/properties/filteringOptions",
8491
+ options: {
8492
+ widget: "SelectInputField"
8493
+ },
8494
+ config: {
8495
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8496
+ main: {
8497
+ label: "Filter Mode",
8498
+ multiple: true
8499
+ }
8500
+ }
8501
+ };
8502
+ UiSchema.elements[0].elements[0].elements[5] = {
8503
+ type: "Control",
8504
+ scope: "#/properties/enableFilter",
8505
+ options: {
8506
+ widget: "RadioInputField"
8507
+ },
8508
+ config: {
8509
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8510
+ main: {
8511
+ label: "Enable Filter",
8512
+ options: ["Yes", "No"]
8513
+ }
8514
+ }
8515
+ }, UiSchema.elements[0].elements[0].elements[7] = {
8516
+ type: "Control",
8517
+ scope: "#/properties/enableSorting",
8518
+ options: {
8519
+ widget: "RadioInputField"
8520
+ },
8521
+ config: {
8522
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8523
+ main: {
8524
+ label: "Enable Sorting",
8525
+ options: ["Yes", "No"]
8526
+ }
8527
+ }
8528
+ }, UiSchema.elements[0].elements[0].elements[8] = {
8529
+ type: "Control",
8530
+ scope: "#/properties/columnKey",
8531
+ config: {
8532
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8533
+ main: {
8534
+ label: "Column Key"
8535
+ }
8536
+ },
8537
+ options: {
8538
+ widget: "InputField"
8539
+ }
8540
+ }, UiSchema.elements[0].elements[0].elements[9] = {
8541
+ type: "Control",
8542
+ scope: "#/properties/elementType",
8543
+ options: {
8544
+ widget: "SelectInputField"
8545
+ },
8546
+ config: {
8547
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8548
+ main: {
8549
+ label: "Element Type"
8550
+ }
8551
+ }
8552
+ };
8553
+ }
8444
8554
  if (sessionStorage.getItem("copiedConfig")) {
8445
8555
  this.ElementPathSetter(UiSchema);
8446
8556
  }
@@ -8462,10 +8572,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8462
8572
  return getFormdataFromSessionStorage(path);
8463
8573
  },
8464
8574
  getSchema: function() {
8575
+ var _a, _b, _c;
8465
8576
  const schema2 = _.cloneDeep(ComponentSchema);
8466
8577
  if (sessionStorage.getItem("copiedConfig")) {
8467
8578
  schema2.properties.RemoveItemButton.disabled = false;
8468
8579
  }
8580
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8581
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8582
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8583
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
8584
+ if (path) {
8585
+ const pathArrayAll = path.split(".");
8586
+ const arr = [];
8587
+ pathArrayAll.map((e, i) => {
8588
+ if (i === 0) {
8589
+ arr.push(e);
8590
+ return;
8591
+ }
8592
+ arr.push(`${arr[i - 1]}.${e}`);
8593
+ });
8594
+ arr.map((e) => {
8595
+ const data = _.get(config2, e);
8596
+ pathArray.push({
8597
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
8598
+ path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
8599
+ });
8600
+ });
8601
+ }
8602
+ schema2.properties.pageName.path = pathArray;
8469
8603
  return schema2;
8470
8604
  },
8471
8605
  okHandler: () => okHandler(store2),
@@ -8578,6 +8712,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8578
8712
  const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8579
8713
  this.ElementPathSetter(uiSchema, copiedFormData);
8580
8714
  sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8715
+ store2.setNotify({
8716
+ SuccessMessage: `${elementType} Copied Successfully`,
8717
+ Success: true
8718
+ });
8581
8719
  store2.setSchema(schema2);
8582
8720
  store2.setUiSchema(uiSchema);
8583
8721
  },
@@ -8603,15 +8741,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8603
8741
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8604
8742
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8605
8743
  const notificationMessages = {
8606
- Event: " The event cannot be integrated into the component section.",
8607
- Component: "The component cannot be integrated into the event section."
8744
+ Events: " The Events cannot be integrated into the component section.",
8745
+ Component: "The component cannot be integrated into the Events section."
8608
8746
  };
8609
8747
  if (copiedConfig.Handler && elementType === "Component") {
8610
8748
  store2.setNotify({
8611
- FailMessage: notificationMessages.Event,
8749
+ FailMessage: notificationMessages.Events,
8612
8750
  Fail: true
8613
8751
  });
8614
- } else if (copiedConfig.name && elementType === "Event") {
8752
+ } else if (copiedConfig.name && elementType === "Events") {
8615
8753
  store2.setNotify({
8616
8754
  FailMessage: notificationMessages.Component,
8617
8755
  Fail: true
@@ -8637,8 +8775,33 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8637
8775
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8638
8776
  },
8639
8777
  ElementPathSetter: function(uiSchema, copiedFormData) {
8778
+ 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;
8640
8779
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8641
- uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
8780
+ 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) {
8781
+ uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
8782
+ } 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) {
8783
+ uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
8784
+ }
8785
+ 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) {
8786
+ uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
8787
+ } 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) {
8788
+ uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
8789
+ }
8790
+ },
8791
+ onNavigatePopupYes: function() {
8792
+ try {
8793
+ store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
8794
+ store2.updateDialog(`pageNamepopup`);
8795
+ } catch (e) {
8796
+ store2.updateDialog(`pageNamepopup`);
8797
+ store2.setNotify({
8798
+ FailMessage: "Couldn't navigate page",
8799
+ Fail: true
8800
+ });
8801
+ }
8802
+ },
8803
+ onNavigatePopupNo: function() {
8804
+ store2.updateDialog(`pageNamepopup`);
8642
8805
  }
8643
8806
  };
8644
8807
  };
@@ -8789,18 +8952,18 @@ const EventSchema = {
8789
8952
  eventType: {
8790
8953
  type: "string",
8791
8954
  oneOf: [
8792
- { title: "Click Event", const: "onClick" },
8793
- { title: "Load Event", const: "onLoad" },
8794
- { title: "Change Event", const: "onChange" },
8795
- { title: "Mount Event", const: "onMount" },
8955
+ { title: "Click", const: "onClick" },
8956
+ { title: "Load", const: "onLoad" },
8957
+ { title: "Change", const: "onChange" },
8958
+ { title: "Mount", const: "onMount" },
8796
8959
  { title: "Success", const: "Success" },
8797
- { title: "onStart", const: "onStart" },
8798
- { title: "Cell Renderer", const: "onCellRenderer" },
8799
- { title: "File Upload Event", const: "onUpload" },
8800
- { title: "Back Event", const: "onBack" },
8801
- { title: "Next Event", const: "onNext" },
8802
- { title: "onRowMovement", const: "onRowMovement" },
8803
- { title: "File Download Event", const: "onDownload" },
8960
+ { title: "Start", const: "onStart" },
8961
+ { title: "Cell Render", const: "onCellRenderer" },
8962
+ { title: "Upload", const: "onUpload" },
8963
+ { title: "Back", const: "onBack" },
8964
+ { title: "Next", const: "onNext" },
8965
+ { title: "Row Movement", const: "onRowMovement" },
8966
+ { title: "Download", const: "onDownload" },
8804
8967
  { title: "Fail", const: "Fail" }
8805
8968
  ]
8806
8969
  },
@@ -8808,7 +8971,7 @@ const EventSchema = {
8808
8971
  type: "string",
8809
8972
  oneOf: [
8810
8973
  { title: "Custom", const: "custom" },
8811
- { title: "Api", const: "api" },
8974
+ { title: "API", const: "api" },
8812
8975
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8813
8976
  { title: "Refresh", const: "refresh" }
8814
8977
  ]
@@ -8837,15 +9000,18 @@ const EventSchema = {
8837
9000
  },
8838
9001
  RemoveItemButton: {
8839
9002
  disabled: true
9003
+ },
9004
+ pageName: {
9005
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8840
9006
  }
8841
9007
  },
8842
9008
  required: ["eventType", "Handler"]
8843
9009
  };
8844
9010
  const EventUiSchema = (theme) => {
8845
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
9011
+ var _a;
8846
9012
  const uiSchema = {
8847
9013
  type: "HorizontalLayout",
8848
- heading: "Page-Event",
9014
+ heading: "Page-Events",
8849
9015
  elements: [
8850
9016
  {
8851
9017
  type: "TabLayout",
@@ -8979,7 +9145,7 @@ const EventUiSchema = (theme) => {
8979
9145
  elements: [
8980
9146
  {
8981
9147
  accessorKey: "eventType",
8982
- header: "Event Type",
9148
+ header: "Event's Type",
8983
9149
  size: 300,
8984
9150
  type: "string"
8985
9151
  },
@@ -8991,7 +9157,7 @@ const EventUiSchema = (theme) => {
8991
9157
  },
8992
9158
  {
8993
9159
  accessorKey: "Edit_Approve_Records",
8994
- header: "Edit Widget",
9160
+ header: "Edit",
8995
9161
  type: "action",
8996
9162
  size: 150,
8997
9163
  widget: {
@@ -9148,15 +9314,17 @@ const EventUiSchema = (theme) => {
9148
9314
  config: {
9149
9315
  layout: 11,
9150
9316
  main: {
9151
- heading: "Are you sure you want to delete ?"
9317
+ heading: "Are you sure you want to delete this Event ?"
9152
9318
  },
9153
9319
  style: {
9154
- marginTop: "-20px",
9155
9320
  fontSize: "20px",
9156
9321
  "&.MuiTypography-root": {
9157
- padding: "10px 30px 20px 30px",
9322
+ padding: "0px 20px",
9158
9323
  textAlign: "center",
9159
- lineHeight: "1"
9324
+ lineHeight: "1.2",
9325
+ fontWeight: "normal",
9326
+ fontSize: "18px",
9327
+ marginBottom: theme.spacing(5)
9160
9328
  }
9161
9329
  }
9162
9330
  }
@@ -9180,13 +9348,14 @@ const EventUiSchema = (theme) => {
9180
9348
  name: "No",
9181
9349
  startIcon: "ApproveIcon",
9182
9350
  variant: "contained",
9183
- color: "info",
9184
9351
  type: "text",
9185
9352
  onClick: "deletePopUpEvent",
9186
9353
  size: "large"
9187
9354
  },
9188
9355
  style: {
9189
9356
  position: "absolute",
9357
+ padding: "8px 0px",
9358
+ fontSize: "16px",
9190
9359
  bottom: 0,
9191
9360
  left: 0,
9192
9361
  width: "50%",
@@ -9214,7 +9383,6 @@ const EventUiSchema = (theme) => {
9214
9383
  layout: 6,
9215
9384
  main: {
9216
9385
  name: "Yes",
9217
- startIcon: "ApproveIcon",
9218
9386
  variant: "contained",
9219
9387
  color: "error",
9220
9388
  type: "text",
@@ -9223,6 +9391,8 @@ const EventUiSchema = (theme) => {
9223
9391
  },
9224
9392
  style: {
9225
9393
  position: "absolute",
9394
+ padding: "8px 0px",
9395
+ fontSize: "16px",
9226
9396
  bottom: 0,
9227
9397
  right: 0,
9228
9398
  width: "50%",
@@ -9243,6 +9413,30 @@ const EventUiSchema = (theme) => {
9243
9413
  }
9244
9414
  ]
9245
9415
  },
9416
+ {
9417
+ type: "Control",
9418
+ scope: "#/properties/pageName",
9419
+ options: {
9420
+ widget: "Breadcrumb"
9421
+ },
9422
+ config: {
9423
+ layout: 12,
9424
+ main: {
9425
+ onNavigatePopupNo: "onNavigatePopupNo",
9426
+ onNavigatePopupYes: "onNavigatePopupYes"
9427
+ },
9428
+ style: {
9429
+ paddingLeft: theme.spacing(3),
9430
+ color: theme.palette.grey[600],
9431
+ fontSize: "10px",
9432
+ position: "fixed",
9433
+ bottom: "24px",
9434
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
9435
+ borderTop: `1px solid ${theme.palette.common.black}29`,
9436
+ backgroundColor: theme.palette.background.default
9437
+ }
9438
+ }
9439
+ },
9246
9440
  {
9247
9441
  type: "Control",
9248
9442
  scope: "#/properties/notify",
@@ -9260,7 +9454,7 @@ const EventUiSchema = (theme) => {
9260
9454
  style: {
9261
9455
  flexDirection: "row",
9262
9456
  position: "absolute",
9263
- bottom: 0,
9457
+ bottom: 10,
9264
9458
  height: "fit-content",
9265
9459
  overflow: "hidden",
9266
9460
  zIndex: 1e3,
@@ -9279,78 +9473,19 @@ const EventUiSchema = (theme) => {
9279
9473
  heading: "Copywriter@ACT21.IO"
9280
9474
  },
9281
9475
  style: {
9282
- color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
9476
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
9283
9477
  fontSize: "11px",
9284
9478
  textAlign: "center",
9285
- lineHeight: 2,
9479
+ lineHeight: 0,
9286
9480
  width: "fit-content",
9287
9481
  left: "50%",
9288
9482
  position: "relative",
9289
- margin: 0,
9483
+ margin: "revert",
9290
9484
  flexGrow: 1,
9291
9485
  height: 0,
9292
9486
  transform: "translate(-50%, 0%)"
9293
9487
  }
9294
9488
  }
9295
- },
9296
- {
9297
- type: "Control",
9298
- scope: "#/properties/FooterBackIcon",
9299
- options: {
9300
- widget: "Box"
9301
- },
9302
- config: {
9303
- main: {
9304
- iconName: "PrevIcon",
9305
- onClick: "backHandler",
9306
- width: "fit-content"
9307
- },
9308
- style: {
9309
- fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
9310
- width: 20,
9311
- height: 0,
9312
- top: 0,
9313
- right: { xs: "12px", sm: "84px" },
9314
- position: "absolute",
9315
- fontSize: "12px",
9316
- cursor: "pointer",
9317
- ":hover": {
9318
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9319
- },
9320
- marginRight: "20px"
9321
- }
9322
- }
9323
- },
9324
- {
9325
- type: "Control",
9326
- scope: "#/properties/FooterBackHandlerText",
9327
- options: {
9328
- widget: "Box"
9329
- },
9330
- config: {
9331
- main: {
9332
- heading: "Previous Page",
9333
- onClick: "backHandler"
9334
- },
9335
- style: {
9336
- display: { xs: "none", sm: "flex" },
9337
- textAlign: "left",
9338
- lineHeight: 1,
9339
- height: 0,
9340
- width: "fit-content",
9341
- color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
9342
- fontSize: "12px",
9343
- cursor: "pointer",
9344
- marginLeft: "2px",
9345
- top: 3,
9346
- right: "12px",
9347
- position: "absolute",
9348
- ":hover": {
9349
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9350
- },
9351
- marginRight: "4px"
9352
- }
9353
- }
9354
9489
  }
9355
9490
  ]
9356
9491
  }
@@ -9589,15 +9724,21 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9589
9724
  const formdata = await this.getFormData();
9590
9725
  store2.setFormdata(formdata);
9591
9726
  const schema2 = await this.getSchema();
9727
+ console.log("SettingSchema>>", schema2);
9592
9728
  store2.setSchema(schema2);
9593
9729
  this.refreshPage(formdata.Handler, store2);
9594
9730
  },
9595
9731
  refreshPage: (handlerType, store22) => {
9732
+ var _a, _b, _c;
9596
9733
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9597
9734
  const schema2 = _.cloneDeep(EventSchema);
9598
9735
  if (handlerType) {
9599
9736
  if (handlerType === "custom") {
9600
- uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
9737
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
9738
+ "isSync",
9739
+ "Run in Sync",
9740
+ ["Yes", "No"]
9741
+ );
9601
9742
  uiSchema.elements[0].elements[0].elements[3] = {
9602
9743
  type: "Control",
9603
9744
  scope: "#/properties/emptyBox",
@@ -9610,14 +9751,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9610
9751
  style: {}
9611
9752
  }
9612
9753
  };
9613
- uiSchema.elements[0].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
9754
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9755
+ "eventCode",
9756
+ "Write Custom Code",
9757
+ false
9758
+ );
9614
9759
  schema2.required = ["eventType", "Handler", "eventCode"];
9615
9760
  } else if (handlerType === "api") {
9616
- uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs: 0, sm: 0, md: 4, lg: 6 });
9761
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9762
+ xs: 0,
9763
+ sm: 0,
9764
+ md: 4,
9765
+ lg: 6
9766
+ });
9617
9767
  uiSchema.elements[0].elements[0].elements[3] = APISection;
9618
9768
  schema2.required = ["eventType", "Handler", "method", "path"];
9619
9769
  } else if (handlerType === "inBuiltFunction") {
9620
- uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
9770
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField(
9771
+ "inBuiltFunctionType",
9772
+ "Function Name"
9773
+ );
9621
9774
  uiSchema.elements[0].elements[0].elements[3] = {
9622
9775
  type: "Control",
9623
9776
  scope: "#/properties/emptyBox",
@@ -9630,10 +9783,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9630
9783
  style: {}
9631
9784
  }
9632
9785
  };
9633
- uiSchema.elements[0].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
9786
+ uiSchema.elements[0].elements[0].elements[4] = getTextArea(
9787
+ "funcParametersCode",
9788
+ "Write Custom Code for Functions Parameter",
9789
+ true
9790
+ );
9634
9791
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9635
9792
  } else if (handlerType === "refresh") {
9636
- uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs: 0, sm: 0, md: 4, lg: 6 });
9793
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
9794
+ xs: 0,
9795
+ sm: 0,
9796
+ md: 4,
9797
+ lg: 6
9798
+ });
9637
9799
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9638
9800
  schema2.properties.refreshElements.required = ["value"];
9639
9801
  schema2.properties.refreshElements.items.required = ["value"];
@@ -9647,9 +9809,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9647
9809
  ];
9648
9810
  }
9649
9811
  if (sessionStorage.getItem("copiedConfig")) {
9650
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9812
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9813
+ uiSchema
9814
+ );
9651
9815
  schema2.properties.RemoveItemButton.disabled = false;
9652
9816
  }
9817
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9818
+ const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
9819
+ const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
9820
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9821
+ if (path) {
9822
+ const pathArrayAll = path.split(".");
9823
+ const arr = [];
9824
+ pathArrayAll.map((e, i) => {
9825
+ if (i === 0) {
9826
+ arr.push(e);
9827
+ return;
9828
+ }
9829
+ arr.push(`${arr[i - 1]}.${e}`);
9830
+ });
9831
+ arr.map((e) => {
9832
+ const data = _.get(config2, e);
9833
+ pathArray.push({
9834
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9835
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9836
+ });
9837
+ });
9838
+ }
9839
+ schema2.properties.pageName.path = pathArray;
9653
9840
  store22.setSchema(schema2);
9654
9841
  store22.setUiSchema(uiSchema);
9655
9842
  },
@@ -9658,10 +9845,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9658
9845
  return EventUiSchema;
9659
9846
  },
9660
9847
  getSchema: () => {
9848
+ var _a, _b, _c;
9661
9849
  const schema2 = _.cloneDeep(EventSchema);
9662
9850
  if (sessionStorage.getItem("copiedConfig")) {
9663
9851
  schema2.properties.RemoveItemButton.disabled = false;
9664
9852
  }
9853
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9854
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9855
+ const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9856
+ let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
9857
+ if (path) {
9858
+ const pathArrayAll = path.split(".");
9859
+ const arr = [];
9860
+ pathArrayAll.map((e, i) => {
9861
+ if (i === 0) {
9862
+ arr.push(e);
9863
+ return;
9864
+ }
9865
+ arr.push(`${arr[i - 1]}.${e}`);
9866
+ });
9867
+ arr.map((e) => {
9868
+ const data = _.get(config2, e);
9869
+ pathArray.push({
9870
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9871
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
9872
+ });
9873
+ });
9874
+ }
9875
+ schema2.properties.pageName.path = _.cloneDeep(pathArray);
9665
9876
  return schema2;
9666
9877
  },
9667
9878
  okHandler: () => okHandler(store2),
@@ -9669,7 +9880,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9669
9880
  onChange: function() {
9670
9881
  var _a, _b, _c;
9671
9882
  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) {
9672
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9883
+ this.refreshPage(
9884
+ store2.newData.Handler || store2.formdata.Handler,
9885
+ store2
9886
+ );
9673
9887
  }
9674
9888
  },
9675
9889
  addEvent: function() {
@@ -9695,7 +9909,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9695
9909
  this.setPage();
9696
9910
  },
9697
9911
  deleteEvent: async function() {
9698
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9912
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9913
+ false
9914
+ );
9699
9915
  store2.updateDialog("popUpEvent");
9700
9916
  },
9701
9917
  backHandler: function() {
@@ -9707,10 +9923,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9707
9923
  store2.updateDialog("popUpEvent");
9708
9924
  },
9709
9925
  copyPasteElement: function() {
9710
- Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
9926
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
9927
+ store2,
9928
+ this.setPage.bind(this)
9929
+ );
9711
9930
  },
9712
9931
  RemoveItemButton: function() {
9713
- Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9932
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
9933
+ store2
9934
+ );
9935
+ },
9936
+ onNavigatePopupYes: function() {
9937
+ try {
9938
+ store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
9939
+ store2.updateDialog(`pageNamepopup`);
9940
+ } catch (e) {
9941
+ store2.updateDialog(`pageNamepopup`);
9942
+ store2.setNotify({
9943
+ FailMessage: "Couldn't navigate page",
9944
+ Fail: true
9945
+ });
9946
+ }
9947
+ },
9948
+ onNavigatePopupNo: function() {
9949
+ store2.updateDialog(`pageNamepopup`);
9714
9950
  }
9715
9951
  };
9716
9952
  };
@@ -9881,16 +10117,17 @@ function executeCustomHandler(params) {
9881
10117
  }
9882
10118
  }
9883
10119
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10120
+ var _a, _b, _c;
9884
10121
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9885
10122
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9886
10123
  store2.setSchema((pre) => {
9887
- var _a;
10124
+ var _a2;
9888
10125
  return {
9889
10126
  ...pre,
9890
10127
  properties: {
9891
10128
  ...pre.properties,
9892
10129
  [componentName]: {
9893
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10130
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9894
10131
  oneOf: handlerResponse.data
9895
10132
  }
9896
10133
  }
@@ -9900,13 +10137,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9900
10137
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9901
10138
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9902
10139
  store2.setSchema((pre) => {
9903
- var _a;
10140
+ var _a2;
9904
10141
  return {
9905
10142
  ...pre,
9906
10143
  properties: {
9907
10144
  ...pre.properties,
9908
10145
  [componentName]: {
9909
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10146
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9910
10147
  type: "array",
9911
10148
  items: {
9912
10149
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9926,6 +10163,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9926
10163
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9927
10164
  });
9928
10165
  }
10166
+ } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10167
+ if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10168
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10169
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10170
+ store2.setFormdata((pre) => {
10171
+ return { ...pre, ...formDataHolder };
10172
+ });
10173
+ }
9929
10174
  } else {
9930
10175
  if (handlerResponse) {
9931
10176
  formDataHolder[componentName] = handlerResponse.data;
@@ -10083,19 +10328,11 @@ var service = (funcParams) => {
10083
10328
  return {
10084
10329
  setPage: async function() {
10085
10330
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10331
+ funcParams.store.setAdditionalErrors([]);
10086
10332
  funcParams.store.setFormdata({});
10333
+ funcParams.store.setSchema({ type: "object", properties: {} });
10087
10334
  funcParams.store.newData = {};
10088
- const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
10089
- if (pageBasicDetailString) {
10090
- pageData = JSON.parse(pageBasicDetailString);
10091
- } else {
10092
- pageData = await funcParams.pageDataProvider();
10093
- sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
10094
- schema: pageData == null ? void 0 : pageData.schema,
10095
- uiSchema: pageData == null ? void 0 : pageData.uiSchema,
10096
- config: pageData == null ? void 0 : pageData.config
10097
- }));
10098
- }
10335
+ pageData = await funcParams.pageDataProvider();
10099
10336
  const config2 = pageData == null ? void 0 : pageData.config;
10100
10337
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10101
10338
  const event2 = new CustomEvent("pageNameChanged", {
@@ -10231,7 +10468,7 @@ var service = (funcParams) => {
10231
10468
  service: funcParams.service,
10232
10469
  serviceHolder: this,
10233
10470
  eventGroups,
10234
- formDataHolder
10471
+ formDataHolder: {}
10235
10472
  });
10236
10473
  funcParams.store.setSchema(
10237
10474
  (pre) => {
@@ -10244,13 +10481,18 @@ var service = (funcParams) => {
10244
10481
  );
10245
10482
  uiSchema.elements.push(notifyUiSchema);
10246
10483
  funcParams.store.setUiSchema(uiSchema);
10484
+ sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
10485
+ schema: pageData == null ? void 0 : pageData.schema,
10486
+ uiSchema: pageData == null ? void 0 : pageData.uiSchema,
10487
+ config: pageData == null ? void 0 : pageData.config
10488
+ }));
10247
10489
  },
10248
10490
  onCellRenderer: (cellParams) => {
10249
- var _a, _b, _c;
10491
+ var _a, _b, _c, _d;
10250
10492
  if (eventGroups.onCellRenderer) {
10251
10493
  let finalResponse = {};
10252
10494
  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]);
10253
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10495
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10254
10496
  executeEventsParameters.store.functionParameters = cellParams;
10255
10497
  finalResponse = executeEvents({
10256
10498
  ...executeEventsParameters,
@@ -10305,7 +10547,7 @@ var service = (funcParams) => {
10305
10547
  { key: "searchValue", value: param.serachValue },
10306
10548
  { key: "currentValue", value: param.currentValue }
10307
10549
  ];
10308
- const response = await this.callExecuteEvents(param, apiBody);
10550
+ const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10309
10551
  return response == null ? void 0 : response.data;
10310
10552
  }
10311
10553
  },
@@ -10854,6 +11096,9 @@ const buildTextField = (config2, componentScope2) => {
10854
11096
  if (config2.style) {
10855
11097
  inputField.config.style = JSON.parse(config2.style);
10856
11098
  }
11099
+ if (config2.multiline) {
11100
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11101
+ }
10857
11102
  if (config2.InputFormatingAndMasking) {
10858
11103
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10859
11104
  }
@@ -10966,6 +11211,7 @@ var Table = {
10966
11211
  main: {
10967
11212
  onMount: "onMount",
10968
11213
  enableExpandAll: true,
11214
+ headerIcons: {},
10969
11215
  allRowData: [],
10970
11216
  downloadAllData: false,
10971
11217
  columns: {
@@ -11147,7 +11393,8 @@ function Card(theme) {
11147
11393
  wrapperStyle: {
11148
11394
  position: "relative",
11149
11395
  top: "50%",
11150
- transform: "translateY(-50%)"
11396
+ transform: "translateY(-50%)",
11397
+ marginBottom: 0
11151
11398
  },
11152
11399
  componentsBoxStyle: {
11153
11400
  boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
@@ -11186,7 +11433,8 @@ function Card(theme) {
11186
11433
  gap: 0
11187
11434
  },
11188
11435
  wrapperStyle: {
11189
- background: "transparent"
11436
+ background: "transparent",
11437
+ marginBottom: 0
11190
11438
  },
11191
11439
  componentsBoxStyle: {
11192
11440
  flexDirection: "column",
@@ -11207,7 +11455,8 @@ function Card(theme) {
11207
11455
  gap: 0
11208
11456
  },
11209
11457
  wrapperStyle: {
11210
- background: "transparent"
11458
+ background: "transparent",
11459
+ marginBottom: 0
11211
11460
  },
11212
11461
  componentsBoxStyle: {
11213
11462
  flexDirection: "row",
@@ -11240,6 +11489,7 @@ function Card(theme) {
11240
11489
  justifyContent: "flex-start",
11241
11490
  width: "auto",
11242
11491
  margin: "-8px",
11492
+ marginLeft: "-24px",
11243
11493
  height: 0
11244
11494
  }
11245
11495
  },
@@ -11264,7 +11514,7 @@ function Card(theme) {
11264
11514
  width: "auto",
11265
11515
  margin: "-8px",
11266
11516
  position: "absolute",
11267
- left: "8px"
11517
+ left: "24px"
11268
11518
  }
11269
11519
  },
11270
11520
  options: {
@@ -11288,8 +11538,7 @@ function Card(theme) {
11288
11538
  background: "inherit",
11289
11539
  width: "calc(100%+8px)",
11290
11540
  margin: "-8px",
11291
- marginTop: { xs: "0px", md: "12px" },
11292
- lineHeight: "1"
11541
+ marginTop: { xs: "16px", md: "20px" }
11293
11542
  },
11294
11543
  layout: 12
11295
11544
  },
@@ -12058,41 +12307,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12058
12307
  }
12059
12308
  return thought;
12060
12309
  };
12061
- var pdfViewer = {
12062
- type: "Control",
12063
- scope: "#/properties/pdfviewer",
12064
- options: {
12065
- widget: "PdfViewer"
12066
- },
12067
- config: {
12068
- layout: {
12069
- xs: 12,
12070
- sm: 12,
12071
- md: 12,
12072
- lg: 12
12073
- },
12074
- main: {
12075
- title: "PDF"
12076
- }
12077
- }
12078
- };
12079
- const buildPdfViewer = (config2) => {
12080
- const PdfViewer = _.cloneDeep(pdfViewer);
12081
- PdfViewer.config.main.label = config2.label;
12082
- if (config2.name) {
12083
- PdfViewer.scope = `#/properties/${config2.name}`;
12084
- }
12085
- if (config2.layout) {
12086
- PdfViewer.config.layout = createLayoutFormat(config2.layout);
12087
- }
12088
- if (config2.label) {
12089
- PdfViewer.config.main.title = config2.label;
12090
- }
12091
- if (config2.style) {
12092
- PdfViewer.config.style = JSON.parse(config2.style);
12093
- }
12094
- return PdfViewer;
12095
- };
12096
12310
  let schema = {
12097
12311
  type: "object",
12098
12312
  properties: {},
@@ -12347,9 +12561,6 @@ const buildUiSchema = (config2, store2) => {
12347
12561
  case "Thought":
12348
12562
  elements = buildThoughtOfTheDay(config2, componentScope2);
12349
12563
  break;
12350
- case "PdfViewer":
12351
- elements = buildPdfViewer(config2);
12352
- break;
12353
12564
  default:
12354
12565
  schema = {
12355
12566
  type: "object",
@@ -12379,41 +12590,49 @@ const buildUiSchema = (config2, store2) => {
12379
12590
  });
12380
12591
  } else if (config2.type == "Table") {
12381
12592
  const sizeMap = {};
12382
- const filterMap = {};
12383
12593
  if (config2.sizeHolder) {
12384
12594
  config2.sizeHolder.map((e, i) => {
12385
12595
  sizeMap[e.keyName] = e.value;
12386
12596
  });
12387
12597
  }
12388
- if (config2.enableColumnFilter) {
12389
- config2.enableColumnFilter.map((e) => {
12390
- filterMap[e.keyName] = true;
12391
- });
12392
- }
12393
- elements.elements = config2.elements.map((cellElem, elemInd) => {
12394
- var _a, _b;
12598
+ const tableHeaderElements = [];
12599
+ const tableActionElement = [];
12600
+ const rowElements = [];
12601
+ config2.elements.filter((cellElem, elemInd) => {
12602
+ const commonProperties = {
12603
+ accessorKey: cellElem.name,
12604
+ type: cellElem.columnFormat,
12605
+ header: cellElem.label || cellElem.name,
12606
+ size: sizeMap[cellElem.name] || 180,
12607
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12608
+ columnFilterModeOptions: cellElem.filteringOptions,
12609
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
12610
+ columnKey: cellElem.columnKey
12611
+ };
12395
12612
  if (cellElem.type) {
12396
- return {
12397
- accessorKey: cellElem.name,
12398
- header: cellElem.label || cellElem.name,
12399
- size: sizeMap[cellElem.name] || 180,
12400
- type: cellElem.columnFormat,
12613
+ if (cellElem.elementType == "action") {
12614
+ const actionElem = buildUiSchema(cellElem, store2);
12615
+ tableActionElement.push(actionElem);
12616
+ return false;
12617
+ }
12618
+ if (cellElem.elementType == "tableHeader") {
12619
+ const headerElem = buildUiSchema(cellElem, store2);
12620
+ tableHeaderElements.push({ widget: headerElem });
12621
+ return false;
12622
+ }
12623
+ const tableElem = {
12401
12624
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12402
12625
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12403
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12404
- columnFilterModeOptions: config2.filteringOptions
12626
+ ...commonProperties
12405
12627
  };
12628
+ rowElements.push(tableElem);
12406
12629
  } else {
12407
- return {
12408
- accessorKey: cellElem.name,
12409
- type: cellElem.columnFormat,
12410
- header: cellElem.label || cellElem.name,
12411
- size: sizeMap[cellElem.name] || 180,
12412
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12413
- columnFilterModeOptions: config2.filteringOptions
12414
- };
12630
+ rowElements.push({ ...commonProperties });
12415
12631
  }
12416
12632
  });
12633
+ elements.elements = rowElements;
12634
+ elements.config.action = tableActionElement;
12635
+ elements.config.main.headerIcons.elements = tableHeaderElements;
12417
12636
  } else if (config2.type == "Array") {
12418
12637
  elements.options.detail.elements = config2.elements.map((e, elemInd) => {
12419
12638
  return buildUiSchema(e, store2);