impaktapps-ui-builder 0.0.101-alpha.28 → 0.0.101-alpha.281

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 +466 -223
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +16 -16
  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 +26 -164
  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 +19 -93
  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 +14 -131
  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,23 +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],
7082
+ fontSize: "10px",
7059
7083
  position: "fixed",
7060
7084
  bottom: "24px",
7061
- backgroundColor: theme.palette.background.default,
7062
7085
  borderBottom: `1px solid ${theme.palette.common.black}29`,
7063
- borderTop: `1px solid ${theme.palette.common.black}29`
7086
+ borderTop: `1px solid ${theme.palette.common.black}29`,
7087
+ backgroundColor: theme.palette.background.default
7064
7088
  }
7065
7089
  }
7066
7090
  },
@@ -7336,7 +7360,7 @@ const EventSection = (theme) => {
7336
7360
  elements: [
7337
7361
  {
7338
7362
  accessorKey: "eventType",
7339
- header: "Event Type",
7363
+ header: "Event's Type",
7340
7364
  type: "string",
7341
7365
  size: 300
7342
7366
  },
@@ -7348,7 +7372,7 @@ const EventSection = (theme) => {
7348
7372
  },
7349
7373
  {
7350
7374
  accessorKey: "Edit_Approve_Records",
7351
- header: "Edit Widget",
7375
+ header: "Edit",
7352
7376
  size: 150,
7353
7377
  type: "action",
7354
7378
  widget: {
@@ -7724,7 +7748,7 @@ const buildPropertiesSection = function(type) {
7724
7748
  case "Text":
7725
7749
  uiSchema.elements = [
7726
7750
  getInputField("placeholder", "Placeholder"),
7727
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7751
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7728
7752
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7729
7753
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7730
7754
  ];
@@ -8394,54 +8418,139 @@ function okHandler(store2) {
8394
8418
  }
8395
8419
  }
8396
8420
  const sectionLabels = {
8397
- Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8398
- MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8399
- Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8400
- 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"],
8401
8425
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8402
8426
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8403
- SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
8404
- card: ["Core", "Properties", "Event", "Style", "Validation"],
8405
- UploadFile: ["Core", "Event", "Style", "Validation"],
8406
- Graph: ["Core", "Properties", "Event", "Style", "Validation"],
8407
- DownloadFile: ["Core", "Event", "Style", "Validation"],
8408
- Box: ["Core", "Event", "Style", "Validation"],
8409
- Properties: ["Core", "Properties", "Event", "Style", "Validation"],
8410
- ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
8411
- RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
8412
- Slider: ["Core", "Components", "Event", "Style", "Validation"],
8413
- Timer: ["Core", "Event", "Style", "Validation"],
8414
- Rank: ["Core", "Event", "Style", "Validation"],
8415
- 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"],
8416
8440
  Array: ["Core", "Components", "Validation"],
8417
- Radio: ["Core", "Properties", "Event", "Style", "Validation"],
8418
- Text: ["Core", "Properties", "Event", "Style", "Validation"],
8419
- 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"],
8420
8444
  PopUp: ["Core", "Components", "Properties", "Style"],
8421
- Stepper: ["Core", "Components", "Properties", "Event", "Style"],
8422
- DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8423
- InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8424
- 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"],
8425
8449
  ColumnGroup: ["Core", "Components"],
8426
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8450
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8427
8451
  };
8428
8452
  function refreshPage(type, store2) {
8429
- var _a;
8453
+ var _a, _b;
8430
8454
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8455
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8431
8456
  if (type) {
8432
8457
  const sectionUiSchema = {
8433
8458
  Core: CoreSection,
8434
8459
  Value: ValueTab,
8435
8460
  Style: StyleSection,
8436
- Event: EventSection(store2.theme.myTheme),
8461
+ Events: EventSection(store2.theme.myTheme),
8437
8462
  Components: TableSection(store2.theme.myTheme),
8438
8463
  Properties: buildPropertiesSection(type),
8439
8464
  Validation: ValidationSection
8440
8465
  };
8441
8466
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8442
- 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"];
8443
8468
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8444
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
+ }
8445
8554
  if (sessionStorage.getItem("copiedConfig")) {
8446
8555
  this.ElementPathSetter(UiSchema);
8447
8556
  }
@@ -8463,10 +8572,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8463
8572
  return getFormdataFromSessionStorage(path);
8464
8573
  },
8465
8574
  getSchema: function() {
8575
+ var _a, _b, _c;
8466
8576
  const schema2 = _.cloneDeep(ComponentSchema);
8467
8577
  if (sessionStorage.getItem("copiedConfig")) {
8468
8578
  schema2.properties.RemoveItemButton.disabled = false;
8469
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;
8470
8603
  return schema2;
8471
8604
  },
8472
8605
  okHandler: () => okHandler(store2),
@@ -8579,6 +8712,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8579
8712
  const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8580
8713
  this.ElementPathSetter(uiSchema, copiedFormData);
8581
8714
  sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8715
+ store2.setNotify({
8716
+ SuccessMessage: `${elementType} Copied Successfully`,
8717
+ Success: true
8718
+ });
8582
8719
  store2.setSchema(schema2);
8583
8720
  store2.setUiSchema(uiSchema);
8584
8721
  },
@@ -8604,15 +8741,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8604
8741
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8605
8742
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8606
8743
  const notificationMessages = {
8607
- Event: " The event cannot be integrated into the component section.",
8608
- 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."
8609
8746
  };
8610
8747
  if (copiedConfig.Handler && elementType === "Component") {
8611
8748
  store2.setNotify({
8612
- FailMessage: notificationMessages.Event,
8749
+ FailMessage: notificationMessages.Events,
8613
8750
  Fail: true
8614
8751
  });
8615
- } else if (copiedConfig.name && elementType === "Event") {
8752
+ } else if (copiedConfig.name && elementType === "Events") {
8616
8753
  store2.setNotify({
8617
8754
  FailMessage: notificationMessages.Component,
8618
8755
  Fail: true
@@ -8638,8 +8775,33 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8638
8775
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8639
8776
  },
8640
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;
8641
8779
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8642
- 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`);
8643
8805
  }
8644
8806
  };
8645
8807
  };
@@ -8790,18 +8952,18 @@ const EventSchema = {
8790
8952
  eventType: {
8791
8953
  type: "string",
8792
8954
  oneOf: [
8793
- { title: "Click Event", const: "onClick" },
8794
- { title: "Load Event", const: "onLoad" },
8795
- { title: "Change Event", const: "onChange" },
8796
- { 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" },
8797
8959
  { title: "Success", const: "Success" },
8798
- { title: "onStart", const: "onStart" },
8799
- { title: "Cell Renderer", const: "onCellRenderer" },
8800
- { title: "File Upload Event", const: "onUpload" },
8801
- { title: "Back Event", const: "onBack" },
8802
- { title: "Next Event", const: "onNext" },
8803
- { title: "onRowMovement", const: "onRowMovement" },
8804
- { 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" },
8805
8967
  { title: "Fail", const: "Fail" }
8806
8968
  ]
8807
8969
  },
@@ -8809,7 +8971,7 @@ const EventSchema = {
8809
8971
  type: "string",
8810
8972
  oneOf: [
8811
8973
  { title: "Custom", const: "custom" },
8812
- { title: "Api", const: "api" },
8974
+ { title: "API", const: "api" },
8813
8975
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8814
8976
  { title: "Refresh", const: "refresh" }
8815
8977
  ]
@@ -8838,6 +9000,9 @@ const EventSchema = {
8838
9000
  },
8839
9001
  RemoveItemButton: {
8840
9002
  disabled: true
9003
+ },
9004
+ pageName: {
9005
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8841
9006
  }
8842
9007
  },
8843
9008
  required: ["eventType", "Handler"]
@@ -8846,7 +9011,7 @@ const EventUiSchema = (theme) => {
8846
9011
  var _a;
8847
9012
  const uiSchema = {
8848
9013
  type: "HorizontalLayout",
8849
- heading: "Page-Event",
9014
+ heading: "Page-Events",
8850
9015
  elements: [
8851
9016
  {
8852
9017
  type: "TabLayout",
@@ -8980,7 +9145,7 @@ const EventUiSchema = (theme) => {
8980
9145
  elements: [
8981
9146
  {
8982
9147
  accessorKey: "eventType",
8983
- header: "Event Type",
9148
+ header: "Event's Type",
8984
9149
  size: 300,
8985
9150
  type: "string"
8986
9151
  },
@@ -8992,7 +9157,7 @@ const EventUiSchema = (theme) => {
8992
9157
  },
8993
9158
  {
8994
9159
  accessorKey: "Edit_Approve_Records",
8995
- header: "Edit Widget",
9160
+ header: "Edit",
8996
9161
  type: "action",
8997
9162
  size: 150,
8998
9163
  widget: {
@@ -9149,15 +9314,17 @@ const EventUiSchema = (theme) => {
9149
9314
  config: {
9150
9315
  layout: 11,
9151
9316
  main: {
9152
- heading: "Are you sure you want to delete ?"
9317
+ heading: "Are you sure you want to delete this Event ?"
9153
9318
  },
9154
9319
  style: {
9155
- marginTop: "-20px",
9156
9320
  fontSize: "20px",
9157
9321
  "&.MuiTypography-root": {
9158
- padding: "10px 30px 20px 30px",
9322
+ padding: "0px 20px",
9159
9323
  textAlign: "center",
9160
- lineHeight: "1"
9324
+ lineHeight: "1.2",
9325
+ fontWeight: "normal",
9326
+ fontSize: "18px",
9327
+ marginBottom: theme.spacing(5)
9161
9328
  }
9162
9329
  }
9163
9330
  }
@@ -9181,13 +9348,14 @@ const EventUiSchema = (theme) => {
9181
9348
  name: "No",
9182
9349
  startIcon: "ApproveIcon",
9183
9350
  variant: "contained",
9184
- color: "info",
9185
9351
  type: "text",
9186
9352
  onClick: "deletePopUpEvent",
9187
9353
  size: "large"
9188
9354
  },
9189
9355
  style: {
9190
9356
  position: "absolute",
9357
+ padding: "8px 0px",
9358
+ fontSize: "16px",
9191
9359
  bottom: 0,
9192
9360
  left: 0,
9193
9361
  width: "50%",
@@ -9215,7 +9383,6 @@ const EventUiSchema = (theme) => {
9215
9383
  layout: 6,
9216
9384
  main: {
9217
9385
  name: "Yes",
9218
- startIcon: "ApproveIcon",
9219
9386
  variant: "contained",
9220
9387
  color: "error",
9221
9388
  type: "text",
@@ -9224,6 +9391,8 @@ const EventUiSchema = (theme) => {
9224
9391
  },
9225
9392
  style: {
9226
9393
  position: "absolute",
9394
+ padding: "8px 0px",
9395
+ fontSize: "16px",
9227
9396
  bottom: 0,
9228
9397
  right: 0,
9229
9398
  width: "50%",
@@ -9248,23 +9417,23 @@ const EventUiSchema = (theme) => {
9248
9417
  type: "Control",
9249
9418
  scope: "#/properties/pageName",
9250
9419
  options: {
9251
- widget: "Box"
9420
+ widget: "Breadcrumb"
9252
9421
  },
9253
9422
  config: {
9254
9423
  layout: 12,
9255
9424
  main: {
9256
- heading: ""
9425
+ onNavigatePopupNo: "onNavigatePopupNo",
9426
+ onNavigatePopupYes: "onNavigatePopupYes"
9257
9427
  },
9258
9428
  style: {
9259
9429
  paddingLeft: theme.spacing(3),
9260
- width: "100%",
9261
- fontSize: "10px",
9262
9430
  color: theme.palette.grey[600],
9431
+ fontSize: "10px",
9263
9432
  position: "fixed",
9264
9433
  bottom: "24px",
9265
- backgroundColor: theme.palette.background.default,
9266
9434
  borderBottom: `1px solid ${theme.palette.common.black}29`,
9267
- borderTop: `1px solid ${theme.palette.common.black}29`
9435
+ borderTop: `1px solid ${theme.palette.common.black}29`,
9436
+ backgroundColor: theme.palette.background.default
9268
9437
  }
9269
9438
  }
9270
9439
  },
@@ -9555,15 +9724,21 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9555
9724
  const formdata = await this.getFormData();
9556
9725
  store2.setFormdata(formdata);
9557
9726
  const schema2 = await this.getSchema();
9727
+ console.log("SettingSchema>>", schema2);
9558
9728
  store2.setSchema(schema2);
9559
9729
  this.refreshPage(formdata.Handler, store2);
9560
9730
  },
9561
9731
  refreshPage: (handlerType, store22) => {
9732
+ var _a, _b, _c;
9562
9733
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9563
9734
  const schema2 = _.cloneDeep(EventSchema);
9564
9735
  if (handlerType) {
9565
9736
  if (handlerType === "custom") {
9566
- 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
+ );
9567
9742
  uiSchema.elements[0].elements[0].elements[3] = {
9568
9743
  type: "Control",
9569
9744
  scope: "#/properties/emptyBox",
@@ -9576,14 +9751,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9576
9751
  style: {}
9577
9752
  }
9578
9753
  };
9579
- 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
+ );
9580
9759
  schema2.required = ["eventType", "Handler", "eventCode"];
9581
9760
  } else if (handlerType === "api") {
9582
- 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
+ });
9583
9767
  uiSchema.elements[0].elements[0].elements[3] = APISection;
9584
9768
  schema2.required = ["eventType", "Handler", "method", "path"];
9585
9769
  } else if (handlerType === "inBuiltFunction") {
9586
- 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
+ );
9587
9774
  uiSchema.elements[0].elements[0].elements[3] = {
9588
9775
  type: "Control",
9589
9776
  scope: "#/properties/emptyBox",
@@ -9596,10 +9783,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9596
9783
  style: {}
9597
9784
  }
9598
9785
  };
9599
- 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
+ );
9600
9791
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9601
9792
  } else if (handlerType === "refresh") {
9602
- 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
+ });
9603
9799
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9604
9800
  schema2.properties.refreshElements.required = ["value"];
9605
9801
  schema2.properties.refreshElements.items.required = ["value"];
@@ -9613,9 +9809,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9613
9809
  ];
9614
9810
  }
9615
9811
  if (sessionStorage.getItem("copiedConfig")) {
9616
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9812
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9813
+ uiSchema
9814
+ );
9617
9815
  schema2.properties.RemoveItemButton.disabled = false;
9618
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;
9619
9840
  store22.setSchema(schema2);
9620
9841
  store22.setUiSchema(uiSchema);
9621
9842
  },
@@ -9624,10 +9845,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9624
9845
  return EventUiSchema;
9625
9846
  },
9626
9847
  getSchema: () => {
9848
+ var _a, _b, _c;
9627
9849
  const schema2 = _.cloneDeep(EventSchema);
9628
9850
  if (sessionStorage.getItem("copiedConfig")) {
9629
9851
  schema2.properties.RemoveItemButton.disabled = false;
9630
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);
9631
9876
  return schema2;
9632
9877
  },
9633
9878
  okHandler: () => okHandler(store2),
@@ -9635,7 +9880,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9635
9880
  onChange: function() {
9636
9881
  var _a, _b, _c;
9637
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) {
9638
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9883
+ this.refreshPage(
9884
+ store2.newData.Handler || store2.formdata.Handler,
9885
+ store2
9886
+ );
9639
9887
  }
9640
9888
  },
9641
9889
  addEvent: function() {
@@ -9661,7 +9909,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9661
9909
  this.setPage();
9662
9910
  },
9663
9911
  deleteEvent: async function() {
9664
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9912
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9913
+ false
9914
+ );
9665
9915
  store2.updateDialog("popUpEvent");
9666
9916
  },
9667
9917
  backHandler: function() {
@@ -9673,10 +9923,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9673
9923
  store2.updateDialog("popUpEvent");
9674
9924
  },
9675
9925
  copyPasteElement: function() {
9676
- 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
+ );
9677
9930
  },
9678
9931
  RemoveItemButton: function() {
9679
- 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`);
9680
9950
  }
9681
9951
  };
9682
9952
  };
@@ -9847,16 +10117,17 @@ function executeCustomHandler(params) {
9847
10117
  }
9848
10118
  }
9849
10119
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10120
+ var _a, _b, _c;
9850
10121
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9851
10122
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9852
10123
  store2.setSchema((pre) => {
9853
- var _a;
10124
+ var _a2;
9854
10125
  return {
9855
10126
  ...pre,
9856
10127
  properties: {
9857
10128
  ...pre.properties,
9858
10129
  [componentName]: {
9859
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10130
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9860
10131
  oneOf: handlerResponse.data
9861
10132
  }
9862
10133
  }
@@ -9866,13 +10137,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9866
10137
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9867
10138
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9868
10139
  store2.setSchema((pre) => {
9869
- var _a;
10140
+ var _a2;
9870
10141
  return {
9871
10142
  ...pre,
9872
10143
  properties: {
9873
10144
  ...pre.properties,
9874
10145
  [componentName]: {
9875
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10146
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9876
10147
  type: "array",
9877
10148
  items: {
9878
10149
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9892,6 +10163,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9892
10163
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9893
10164
  });
9894
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
+ }
9895
10174
  } else {
9896
10175
  if (handlerResponse) {
9897
10176
  formDataHolder[componentName] = handlerResponse.data;
@@ -10027,13 +10306,7 @@ const extractEvents = (eventConfig) => {
10027
10306
  return eventGroups;
10028
10307
  };
10029
10308
  var service = (funcParams) => {
10030
- eventGroups = {};
10031
10309
  const formDataHolder = {};
10032
- if (pageData) {
10033
- if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object") {
10034
- eventGroups = extractEvents(pageData == null ? void 0 : pageData.config);
10035
- }
10036
- }
10037
10310
  let executeEventsParameters = {
10038
10311
  config: {},
10039
10312
  componentName: "",
@@ -10042,26 +10315,18 @@ var service = (funcParams) => {
10042
10315
  userValue: funcParams.userValue,
10043
10316
  service: funcParams.service,
10044
10317
  serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
10045
- eventGroups,
10046
10318
  functionsProvider: funcParams.functionsProvider,
10047
10319
  formDataHolder
10048
10320
  };
10049
10321
  return {
10050
10322
  setPage: async function() {
10051
10323
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10324
+ funcParams.store.setAdditionalErrors([]);
10052
10325
  funcParams.store.setFormdata({});
10326
+ funcParams.store.setSchema({ type: "object", properties: {} });
10053
10327
  funcParams.store.newData = {};
10054
- const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
10055
- if (pageBasicDetailString) {
10056
- pageData = JSON.parse(pageBasicDetailString);
10057
- } else {
10058
- pageData = await funcParams.pageDataProvider();
10059
- sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
10060
- schema: pageData == null ? void 0 : pageData.schema,
10061
- uiSchema: pageData == null ? void 0 : pageData.uiSchema,
10062
- config: pageData == null ? void 0 : pageData.config
10063
- }));
10064
- }
10328
+ eventGroups = {};
10329
+ pageData = await funcParams.pageDataProvider();
10065
10330
  const config2 = pageData == null ? void 0 : pageData.config;
10066
10331
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10067
10332
  const event2 = new CustomEvent("pageNameChanged", {
@@ -10175,7 +10440,8 @@ var service = (funcParams) => {
10175
10440
  }
10176
10441
  );
10177
10442
  const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
10178
- eventGroups = extractEvents(config2);
10443
+ const newEventGroups = extractEvents(config2);
10444
+ eventGroups = newEventGroups;
10179
10445
  executeEventsParameters = {
10180
10446
  config: {},
10181
10447
  componentName: "",
@@ -10185,7 +10451,7 @@ var service = (funcParams) => {
10185
10451
  service: funcParams.service,
10186
10452
  functionsProvider: funcParams.functionsProvider,
10187
10453
  serviceHolder: this,
10188
- eventGroups,
10454
+ eventGroups: newEventGroups,
10189
10455
  formDataHolder
10190
10456
  };
10191
10457
  await executeRefreshHandler({
@@ -10196,8 +10462,8 @@ var service = (funcParams) => {
10196
10462
  userValue: funcParams.userValue,
10197
10463
  service: funcParams.service,
10198
10464
  serviceHolder: this,
10199
- eventGroups,
10200
- formDataHolder
10465
+ eventGroups: newEventGroups,
10466
+ formDataHolder: {}
10201
10467
  });
10202
10468
  funcParams.store.setSchema(
10203
10469
  (pre) => {
@@ -10212,11 +10478,11 @@ var service = (funcParams) => {
10212
10478
  funcParams.store.setUiSchema(uiSchema);
10213
10479
  },
10214
10480
  onCellRenderer: (cellParams) => {
10215
- var _a, _b, _c;
10481
+ var _a, _b, _c, _d;
10216
10482
  if (eventGroups.onCellRenderer) {
10217
10483
  let finalResponse = {};
10218
10484
  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]);
10219
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10485
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10220
10486
  executeEventsParameters.store.functionParameters = cellParams;
10221
10487
  finalResponse = executeEvents({
10222
10488
  ...executeEventsParameters,
@@ -10271,7 +10537,7 @@ var service = (funcParams) => {
10271
10537
  { key: "searchValue", value: param.serachValue },
10272
10538
  { key: "currentValue", value: param.currentValue }
10273
10539
  ];
10274
- const response = await this.callExecuteEvents(param, apiBody);
10540
+ const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10275
10541
  return response == null ? void 0 : response.data;
10276
10542
  }
10277
10543
  },
@@ -10820,6 +11086,9 @@ const buildTextField = (config2, componentScope2) => {
10820
11086
  if (config2.style) {
10821
11087
  inputField.config.style = JSON.parse(config2.style);
10822
11088
  }
11089
+ if (config2.multiline) {
11090
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11091
+ }
10823
11092
  if (config2.InputFormatingAndMasking) {
10824
11093
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10825
11094
  }
@@ -10932,6 +11201,7 @@ var Table = {
10932
11201
  main: {
10933
11202
  onMount: "onMount",
10934
11203
  enableExpandAll: true,
11204
+ headerIcons: {},
10935
11205
  allRowData: [],
10936
11206
  downloadAllData: false,
10937
11207
  columns: {
@@ -11113,7 +11383,8 @@ function Card(theme) {
11113
11383
  wrapperStyle: {
11114
11384
  position: "relative",
11115
11385
  top: "50%",
11116
- transform: "translateY(-50%)"
11386
+ transform: "translateY(-50%)",
11387
+ marginBottom: 0
11117
11388
  },
11118
11389
  componentsBoxStyle: {
11119
11390
  boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
@@ -11152,7 +11423,8 @@ function Card(theme) {
11152
11423
  gap: 0
11153
11424
  },
11154
11425
  wrapperStyle: {
11155
- background: "transparent"
11426
+ background: "transparent",
11427
+ marginBottom: 0
11156
11428
  },
11157
11429
  componentsBoxStyle: {
11158
11430
  flexDirection: "column",
@@ -11173,7 +11445,8 @@ function Card(theme) {
11173
11445
  gap: 0
11174
11446
  },
11175
11447
  wrapperStyle: {
11176
- background: "transparent"
11448
+ background: "transparent",
11449
+ marginBottom: 0
11177
11450
  },
11178
11451
  componentsBoxStyle: {
11179
11452
  flexDirection: "row",
@@ -11206,6 +11479,7 @@ function Card(theme) {
11206
11479
  justifyContent: "flex-start",
11207
11480
  width: "auto",
11208
11481
  margin: "-8px",
11482
+ marginLeft: "-24px",
11209
11483
  height: 0
11210
11484
  }
11211
11485
  },
@@ -11230,7 +11504,7 @@ function Card(theme) {
11230
11504
  width: "auto",
11231
11505
  margin: "-8px",
11232
11506
  position: "absolute",
11233
- left: "8px"
11507
+ left: "24px"
11234
11508
  }
11235
11509
  },
11236
11510
  options: {
@@ -11254,8 +11528,7 @@ function Card(theme) {
11254
11528
  background: "inherit",
11255
11529
  width: "calc(100%+8px)",
11256
11530
  margin: "-8px",
11257
- marginTop: { xs: "0px", md: "12px" },
11258
- lineHeight: "1"
11531
+ marginTop: { xs: "16px", md: "20px" }
11259
11532
  },
11260
11533
  layout: 12
11261
11534
  },
@@ -12024,41 +12297,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12024
12297
  }
12025
12298
  return thought;
12026
12299
  };
12027
- var pdfViewer = {
12028
- type: "Control",
12029
- scope: "#/properties/pdfviewer",
12030
- options: {
12031
- widget: "PdfViewer"
12032
- },
12033
- config: {
12034
- layout: {
12035
- xs: 12,
12036
- sm: 12,
12037
- md: 12,
12038
- lg: 12
12039
- },
12040
- main: {
12041
- title: "PDF"
12042
- }
12043
- }
12044
- };
12045
- const buildPdfViewer = (config2) => {
12046
- const PdfViewer = _.cloneDeep(pdfViewer);
12047
- PdfViewer.config.main.label = config2.label;
12048
- if (config2.name) {
12049
- PdfViewer.scope = `#/properties/${config2.name}`;
12050
- }
12051
- if (config2.layout) {
12052
- PdfViewer.config.layout = createLayoutFormat(config2.layout);
12053
- }
12054
- if (config2.label) {
12055
- PdfViewer.config.main.title = config2.label;
12056
- }
12057
- if (config2.style) {
12058
- PdfViewer.config.style = JSON.parse(config2.style);
12059
- }
12060
- return PdfViewer;
12061
- };
12062
12300
  let schema = {
12063
12301
  type: "object",
12064
12302
  properties: {},
@@ -12313,9 +12551,6 @@ const buildUiSchema = (config2, store2) => {
12313
12551
  case "Thought":
12314
12552
  elements = buildThoughtOfTheDay(config2, componentScope2);
12315
12553
  break;
12316
- case "PdfViewer":
12317
- elements = buildPdfViewer(config2);
12318
- break;
12319
12554
  default:
12320
12555
  schema = {
12321
12556
  type: "object",
@@ -12345,41 +12580,49 @@ const buildUiSchema = (config2, store2) => {
12345
12580
  });
12346
12581
  } else if (config2.type == "Table") {
12347
12582
  const sizeMap = {};
12348
- const filterMap = {};
12349
12583
  if (config2.sizeHolder) {
12350
12584
  config2.sizeHolder.map((e, i) => {
12351
12585
  sizeMap[e.keyName] = e.value;
12352
12586
  });
12353
12587
  }
12354
- if (config2.enableColumnFilter) {
12355
- config2.enableColumnFilter.map((e) => {
12356
- filterMap[e.keyName] = true;
12357
- });
12358
- }
12359
- elements.elements = config2.elements.map((cellElem, elemInd) => {
12360
- var _a, _b;
12588
+ const tableHeaderElements = [];
12589
+ const tableActionElement = [];
12590
+ const rowElements = [];
12591
+ config2.elements.filter((cellElem, elemInd) => {
12592
+ const commonProperties = {
12593
+ accessorKey: cellElem.name,
12594
+ type: cellElem.columnFormat,
12595
+ header: cellElem.label || cellElem.name,
12596
+ size: sizeMap[cellElem.name] || 180,
12597
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12598
+ columnFilterModeOptions: cellElem.filteringOptions,
12599
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
12600
+ columnKey: cellElem.columnKey
12601
+ };
12361
12602
  if (cellElem.type) {
12362
- return {
12363
- accessorKey: cellElem.name,
12364
- header: cellElem.label || cellElem.name,
12365
- size: sizeMap[cellElem.name] || 180,
12366
- type: cellElem.columnFormat,
12603
+ if (cellElem.elementType == "action") {
12604
+ const actionElem = buildUiSchema(cellElem, store2);
12605
+ tableActionElement.push(actionElem);
12606
+ return false;
12607
+ }
12608
+ if (cellElem.elementType == "tableHeader") {
12609
+ const headerElem = buildUiSchema(cellElem, store2);
12610
+ tableHeaderElements.push({ widget: headerElem });
12611
+ return false;
12612
+ }
12613
+ const tableElem = {
12367
12614
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12368
12615
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12369
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12370
- columnFilterModeOptions: config2.filteringOptions
12616
+ ...commonProperties
12371
12617
  };
12618
+ rowElements.push(tableElem);
12372
12619
  } else {
12373
- return {
12374
- accessorKey: cellElem.name,
12375
- type: cellElem.columnFormat,
12376
- header: cellElem.label || cellElem.name,
12377
- size: sizeMap[cellElem.name] || 180,
12378
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12379
- columnFilterModeOptions: config2.filteringOptions
12380
- };
12620
+ rowElements.push({ ...commonProperties });
12381
12621
  }
12382
12622
  });
12623
+ elements.elements = rowElements;
12624
+ elements.config.action = tableActionElement;
12625
+ elements.config.main.headerIcons.elements = tableHeaderElements;
12383
12626
  } else if (config2.type == "Array") {
12384
12627
  elements.options.detail.elements = config2.elements.map((e, elemInd) => {
12385
12628
  return buildUiSchema(e, store2);