impaktapps-ui-builder 0.0.101-alpha.26 → 0.0.101-alpha.261

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/impaktapps-ui-builder.es.js +498 -255
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +5 -1
  6. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
  7. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
  8. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
  9. package/package.json +1 -1
  10. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  11. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +36 -29
  12. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +4 -3
  13. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +7 -4
  14. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -60
  15. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
  16. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +0 -52
  17. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -50
  18. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +33 -28
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +46 -159
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -97
  21. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  22. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +43 -259
  23. package/src/impaktapps-ui-builder/builder/services/component.ts +220 -56
  24. package/src/impaktapps-ui-builder/builder/services/event.ts +175 -58
  25. package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
  26. package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -111
  27. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
  29. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -22
  30. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +0 -18
@@ -184,7 +184,8 @@ const PageMasterUiSchema = (theme) => {
184
184
  size: "small",
185
185
  icon: "TablePaste",
186
186
  iconLabel: "Paste",
187
- styleDefault: true
187
+ styleDefault: true,
188
+ title: ""
188
189
  },
189
190
  style: {
190
191
  mt: "6px",
@@ -365,7 +366,7 @@ const PageMasterUiSchema = (theme) => {
365
366
  elements: [
366
367
  {
367
368
  accessorKey: "eventType",
368
- header: "Event Type",
369
+ header: "Event's Type",
369
370
  size: 300,
370
371
  type: "string"
371
372
  },
@@ -377,7 +378,7 @@ const PageMasterUiSchema = (theme) => {
377
378
  },
378
379
  {
379
380
  accessorKey: "Edit_Approve_Records",
380
- header: "Edit Widget",
381
+ header: "Edit",
381
382
  type: "action",
382
383
  size: 150,
383
384
  widget: {
@@ -524,15 +525,17 @@ const PageMasterUiSchema = (theme) => {
524
525
  config: {
525
526
  layout: 11,
526
527
  main: {
527
- heading: "Are you sure you want to delete ?"
528
+ heading: "Are you sure you want to delete this Component ?"
528
529
  },
529
530
  style: {
530
- marginTop: "-20px",
531
531
  fontSize: "20px",
532
532
  "&.MuiTypography-root": {
533
- padding: "10px 30px 20px 30px",
533
+ padding: "0px 20px",
534
534
  textAlign: "center",
535
- lineHeight: "1"
535
+ lineHeight: "1.2",
536
+ fontWeight: "normal",
537
+ fontSize: "18px",
538
+ marginBottom: theme.spacing(5)
536
539
  }
537
540
  }
538
541
  }
@@ -554,15 +557,15 @@ const PageMasterUiSchema = (theme) => {
554
557
  layout: 6,
555
558
  main: {
556
559
  name: "No",
557
- startIcon: "ApproveIcon",
558
560
  variant: "contained",
559
- color: "info",
560
561
  type: "text",
561
562
  onClick: "deletePopUpComponent",
562
563
  size: "large"
563
564
  },
564
565
  style: {
565
566
  position: "absolute",
567
+ padding: "8px 0px",
568
+ fontSize: "16px",
566
569
  bottom: 0,
567
570
  left: 0,
568
571
  width: "50%",
@@ -590,7 +593,6 @@ const PageMasterUiSchema = (theme) => {
590
593
  layout: 6,
591
594
  main: {
592
595
  name: "Yes",
593
- startIcon: "ApproveIcon",
594
596
  variant: "contained",
595
597
  color: "error",
596
598
  type: "text",
@@ -599,6 +601,8 @@ const PageMasterUiSchema = (theme) => {
599
601
  },
600
602
  style: {
601
603
  position: "absolute",
604
+ padding: "8px 0px",
605
+ fontSize: "16px",
602
606
  bottom: 0,
603
607
  right: 0,
604
608
  width: "50%",
@@ -647,15 +651,17 @@ const PageMasterUiSchema = (theme) => {
647
651
  config: {
648
652
  layout: 11,
649
653
  main: {
650
- heading: "Are you sure you want to delete ?"
654
+ heading: "Are you sure you want to delete this Event ?"
651
655
  },
652
656
  style: {
653
- marginTop: "-20px",
654
657
  fontSize: "20px",
655
658
  "&.MuiTypography-root": {
656
- padding: "10px 30px 20px 30px",
659
+ padding: "0px 20px",
657
660
  textAlign: "center",
658
- lineHeight: "1"
661
+ lineHeight: "1.2",
662
+ fontWeight: "normal",
663
+ fontSize: "18px",
664
+ marginBottom: theme.spacing(5)
659
665
  }
660
666
  }
661
667
  }
@@ -677,15 +683,15 @@ const PageMasterUiSchema = (theme) => {
677
683
  layout: 6,
678
684
  main: {
679
685
  name: "No",
680
- startIcon: "ApproveIcon",
681
686
  variant: "contained",
682
- color: "info",
683
687
  type: "text",
684
688
  onClick: "deletePopUpEvent",
685
689
  size: "large"
686
690
  },
687
691
  style: {
688
692
  position: "absolute",
693
+ padding: "8px 0px",
694
+ fontSize: "16px",
689
695
  bottom: 0,
690
696
  left: 0,
691
697
  width: "50%",
@@ -713,7 +719,6 @@ const PageMasterUiSchema = (theme) => {
713
719
  layout: 6,
714
720
  main: {
715
721
  name: "Yes",
716
- startIcon: "ApproveIcon",
717
722
  variant: "contained",
718
723
  color: "error",
719
724
  type: "text",
@@ -722,6 +727,8 @@ const PageMasterUiSchema = (theme) => {
722
727
  },
723
728
  style: {
724
729
  position: "absolute",
730
+ padding: "8px 0px",
731
+ fontSize: "16px",
725
732
  bottom: 0,
726
733
  right: 0,
727
734
  width: "50%",
@@ -6243,7 +6250,7 @@ const ComponentSchema = {
6243
6250
  properties: {
6244
6251
  type: {
6245
6252
  oneOf: [
6246
- { title: "Masked Aadhaar", const: "AadharcardText" },
6253
+ { title: "Masked Aadhar Card", const: "AadharcardText" },
6247
6254
  { title: "Array", const: "Array" },
6248
6255
  { title: "Button", const: "Button" },
6249
6256
  { title: "Data Card", const: "card" },
@@ -6258,7 +6265,7 @@ const ComponentSchema = {
6258
6265
  { title: "Graph", const: "Graph" },
6259
6266
  { title: "Input Slider", const: "InputSlider" },
6260
6267
  { title: "Label", const: "Box" },
6261
- { title: "LeaderBoard", const: "LeaderBoard" },
6268
+ { title: "Leaderboard", const: "LeaderBoard" },
6262
6269
  { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6263
6270
  { title: "Pan Card Masked", const: "PanCardText" },
6264
6271
  { title: "Pop Up", const: "PopUp" },
@@ -6280,8 +6287,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%",
@@ -7040,6 +7064,30 @@ const componentBasicUiSchema = (theme) => {
7040
7064
  }
7041
7065
  ]
7042
7066
  },
7067
+ {
7068
+ type: "Control",
7069
+ scope: "#/properties/pageName",
7070
+ options: {
7071
+ widget: "Breadcrumb"
7072
+ },
7073
+ config: {
7074
+ layout: 12,
7075
+ main: {
7076
+ onNavigatePopupNo: "onNavigatePopupNo",
7077
+ onNavigatePopupYes: "onNavigatePopupYes"
7078
+ },
7079
+ style: {
7080
+ paddingLeft: theme.spacing(3),
7081
+ color: theme.palette.grey[600],
7082
+ fontSize: "10px",
7083
+ position: "fixed",
7084
+ bottom: "24px",
7085
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
7086
+ borderTop: `1px solid ${theme.palette.common.black}29`,
7087
+ backgroundColor: theme.palette.background.default
7088
+ }
7089
+ }
7090
+ },
7043
7091
  {
7044
7092
  type: "Control",
7045
7093
  scope: "#/properties/notify",
@@ -7312,7 +7360,7 @@ const EventSection = (theme) => {
7312
7360
  elements: [
7313
7361
  {
7314
7362
  accessorKey: "eventType",
7315
- header: "Event Type",
7363
+ header: "Event's Type",
7316
7364
  type: "string",
7317
7365
  size: 300
7318
7366
  },
@@ -7324,7 +7372,7 @@ const EventSection = (theme) => {
7324
7372
  },
7325
7373
  {
7326
7374
  accessorKey: "Edit_Approve_Records",
7327
- header: "Edit Widget",
7375
+ header: "Edit",
7328
7376
  size: 150,
7329
7377
  type: "action",
7330
7378
  widget: {
@@ -7493,8 +7541,8 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7493
7541
  config: {
7494
7542
  layout: 12,
7495
7543
  main: {
7496
- label: childScope,
7497
- childElementLabel: childScope
7544
+ label: childLabel,
7545
+ childElementLabel: childLabel
7498
7546
  },
7499
7547
  style: {
7500
7548
  marginLeft: "-24px",
@@ -7700,7 +7748,7 @@ const buildPropertiesSection = function(type) {
7700
7748
  case "Text":
7701
7749
  uiSchema.elements = [
7702
7750
  getInputField("placeholder", "Placeholder"),
7703
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7751
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7704
7752
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7705
7753
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7706
7754
  ];
@@ -7709,7 +7757,8 @@ const buildPropertiesSection = function(type) {
7709
7757
  uiSchema.elements = [
7710
7758
  getInputField("placeholder", "Placeholder"),
7711
7759
  getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
7712
- getInputField("codeEditorLanguage", "Enter Code Language")
7760
+ getInputField("codeEditorLanguage", "Enter Code Language"),
7761
+ emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
7713
7762
  ];
7714
7763
  break;
7715
7764
  case "SpeedoMeter":
@@ -8369,54 +8418,139 @@ function okHandler(store2) {
8369
8418
  }
8370
8419
  }
8371
8420
  const sectionLabels = {
8372
- Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8373
- MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
8374
- Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
8375
- 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"],
8376
8425
  WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8377
8426
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8378
- SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
8379
- card: ["Core", "Properties", "Event", "Style", "Validation"],
8380
- UploadFile: ["Core", "Event", "Style", "Validation"],
8381
- Graph: ["Core", "Properties", "Event", "Style", "Validation"],
8382
- DownloadFile: ["Core", "Event", "Style", "Validation"],
8383
- Box: ["Core", "Event", "Style", "Validation"],
8384
- Properties: ["Core", "Properties", "Event", "Style", "Validation"],
8385
- ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
8386
- RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
8387
- Slider: ["Core", "Components", "Event", "Style", "Validation"],
8388
- Timer: ["Core", "Event", "Style", "Validation"],
8389
- Rank: ["Core", "Event", "Style", "Validation"],
8390
- 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"],
8391
8440
  Array: ["Core", "Components", "Validation"],
8392
- Radio: ["Core", "Properties", "Event", "Style", "Validation"],
8393
- Text: ["Core", "Properties", "Event", "Style", "Validation"],
8394
- 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"],
8395
8444
  PopUp: ["Core", "Components", "Properties", "Style"],
8396
- Stepper: ["Core", "Components", "Properties", "Event", "Style"],
8397
- DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8398
- InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8399
- 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"],
8400
8449
  ColumnGroup: ["Core", "Components"],
8401
- Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8450
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"]
8402
8451
  };
8403
8452
  function refreshPage(type, store2) {
8404
- var _a;
8453
+ var _a, _b;
8405
8454
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8455
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8406
8456
  if (type) {
8407
8457
  const sectionUiSchema = {
8408
8458
  Core: CoreSection,
8409
8459
  Value: ValueTab,
8410
8460
  Style: StyleSection,
8411
- Event: EventSection(store2.theme.myTheme),
8461
+ Events: EventSection(store2.theme.myTheme),
8412
8462
  Components: TableSection(store2.theme.myTheme),
8413
8463
  Properties: buildPropertiesSection(type),
8414
8464
  Validation: ValidationSection
8415
8465
  };
8416
8466
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8417
- 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"];
8418
8468
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8419
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
+ }
8420
8554
  if (sessionStorage.getItem("copiedConfig")) {
8421
8555
  this.ElementPathSetter(UiSchema);
8422
8556
  }
@@ -8438,10 +8572,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8438
8572
  return getFormdataFromSessionStorage(path);
8439
8573
  },
8440
8574
  getSchema: function() {
8575
+ var _a, _b, _c;
8441
8576
  const schema2 = _.cloneDeep(ComponentSchema);
8442
8577
  if (sessionStorage.getItem("copiedConfig")) {
8443
8578
  schema2.properties.RemoveItemButton.disabled = false;
8444
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;
8445
8603
  return schema2;
8446
8604
  },
8447
8605
  okHandler: () => okHandler(store2),
@@ -8554,6 +8712,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8554
8712
  const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8555
8713
  this.ElementPathSetter(uiSchema, copiedFormData);
8556
8714
  sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8715
+ store2.setNotify({
8716
+ SuccessMessage: `${elementType} Copied Successfully`,
8717
+ Success: true
8718
+ });
8557
8719
  store2.setSchema(schema2);
8558
8720
  store2.setUiSchema(uiSchema);
8559
8721
  },
@@ -8579,15 +8741,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8579
8741
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8580
8742
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8581
8743
  const notificationMessages = {
8582
- Event: " The event cannot be integrated into the component section.",
8583
- 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."
8584
8746
  };
8585
8747
  if (copiedConfig.Handler && elementType === "Component") {
8586
8748
  store2.setNotify({
8587
- FailMessage: notificationMessages.Event,
8749
+ FailMessage: notificationMessages.Events,
8588
8750
  Fail: true
8589
8751
  });
8590
- } else if (copiedConfig.name && elementType === "Event") {
8752
+ } else if (copiedConfig.name && elementType === "Events") {
8591
8753
  store2.setNotify({
8592
8754
  FailMessage: notificationMessages.Component,
8593
8755
  Fail: true
@@ -8613,8 +8775,33 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8613
8775
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8614
8776
  },
8615
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;
8616
8779
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8617
- 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`);
8618
8805
  }
8619
8806
  };
8620
8807
  };
@@ -8765,18 +8952,18 @@ const EventSchema = {
8765
8952
  eventType: {
8766
8953
  type: "string",
8767
8954
  oneOf: [
8768
- { title: "Click Event", const: "onClick" },
8769
- { title: "Load Event", const: "onLoad" },
8770
- { title: "Change Event", const: "onChange" },
8771
- { 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" },
8772
8959
  { title: "Success", const: "Success" },
8773
- { title: "onStart", const: "onStart" },
8774
- { title: "Cell Renderer", const: "onCellRenderer" },
8775
- { title: "File Upload Event", const: "onUpload" },
8776
- { title: "Back Event", const: "onBack" },
8777
- { title: "Next Event", const: "onNext" },
8778
- { title: "onRowMovement", const: "onRowMovement" },
8779
- { 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" },
8780
8967
  { title: "Fail", const: "Fail" }
8781
8968
  ]
8782
8969
  },
@@ -8784,7 +8971,7 @@ const EventSchema = {
8784
8971
  type: "string",
8785
8972
  oneOf: [
8786
8973
  { title: "Custom", const: "custom" },
8787
- { title: "Api", const: "api" },
8974
+ { title: "API", const: "api" },
8788
8975
  { title: "Inbuilt Function", const: "inBuiltFunction" },
8789
8976
  { title: "Refresh", const: "refresh" }
8790
8977
  ]
@@ -8813,15 +9000,18 @@ const EventSchema = {
8813
9000
  },
8814
9001
  RemoveItemButton: {
8815
9002
  disabled: true
9003
+ },
9004
+ pageName: {
9005
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
8816
9006
  }
8817
9007
  },
8818
9008
  required: ["eventType", "Handler"]
8819
9009
  };
8820
9010
  const EventUiSchema = (theme) => {
8821
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
9011
+ var _a;
8822
9012
  const uiSchema = {
8823
9013
  type: "HorizontalLayout",
8824
- heading: "Page-Event",
9014
+ heading: "Page-Events",
8825
9015
  elements: [
8826
9016
  {
8827
9017
  type: "TabLayout",
@@ -8955,7 +9145,7 @@ const EventUiSchema = (theme) => {
8955
9145
  elements: [
8956
9146
  {
8957
9147
  accessorKey: "eventType",
8958
- header: "Event Type",
9148
+ header: "Event's Type",
8959
9149
  size: 300,
8960
9150
  type: "string"
8961
9151
  },
@@ -8967,7 +9157,7 @@ const EventUiSchema = (theme) => {
8967
9157
  },
8968
9158
  {
8969
9159
  accessorKey: "Edit_Approve_Records",
8970
- header: "Edit Widget",
9160
+ header: "Edit",
8971
9161
  type: "action",
8972
9162
  size: 150,
8973
9163
  widget: {
@@ -9124,15 +9314,17 @@ const EventUiSchema = (theme) => {
9124
9314
  config: {
9125
9315
  layout: 11,
9126
9316
  main: {
9127
- heading: "Are you sure you want to delete ?"
9317
+ heading: "Are you sure you want to delete this Event ?"
9128
9318
  },
9129
9319
  style: {
9130
- marginTop: "-20px",
9131
9320
  fontSize: "20px",
9132
9321
  "&.MuiTypography-root": {
9133
- padding: "10px 30px 20px 30px",
9322
+ padding: "0px 20px",
9134
9323
  textAlign: "center",
9135
- lineHeight: "1"
9324
+ lineHeight: "1.2",
9325
+ fontWeight: "normal",
9326
+ fontSize: "18px",
9327
+ marginBottom: theme.spacing(5)
9136
9328
  }
9137
9329
  }
9138
9330
  }
@@ -9156,13 +9348,14 @@ const EventUiSchema = (theme) => {
9156
9348
  name: "No",
9157
9349
  startIcon: "ApproveIcon",
9158
9350
  variant: "contained",
9159
- color: "info",
9160
9351
  type: "text",
9161
9352
  onClick: "deletePopUpEvent",
9162
9353
  size: "large"
9163
9354
  },
9164
9355
  style: {
9165
9356
  position: "absolute",
9357
+ padding: "8px 0px",
9358
+ fontSize: "16px",
9166
9359
  bottom: 0,
9167
9360
  left: 0,
9168
9361
  width: "50%",
@@ -9190,7 +9383,6 @@ const EventUiSchema = (theme) => {
9190
9383
  layout: 6,
9191
9384
  main: {
9192
9385
  name: "Yes",
9193
- startIcon: "ApproveIcon",
9194
9386
  variant: "contained",
9195
9387
  color: "error",
9196
9388
  type: "text",
@@ -9199,6 +9391,8 @@ const EventUiSchema = (theme) => {
9199
9391
  },
9200
9392
  style: {
9201
9393
  position: "absolute",
9394
+ padding: "8px 0px",
9395
+ fontSize: "16px",
9202
9396
  bottom: 0,
9203
9397
  right: 0,
9204
9398
  width: "50%",
@@ -9219,6 +9413,30 @@ const EventUiSchema = (theme) => {
9219
9413
  }
9220
9414
  ]
9221
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
+ },
9222
9440
  {
9223
9441
  type: "Control",
9224
9442
  scope: "#/properties/notify",
@@ -9236,7 +9454,7 @@ const EventUiSchema = (theme) => {
9236
9454
  style: {
9237
9455
  flexDirection: "row",
9238
9456
  position: "absolute",
9239
- bottom: 0,
9457
+ bottom: 10,
9240
9458
  height: "fit-content",
9241
9459
  overflow: "hidden",
9242
9460
  zIndex: 1e3,
@@ -9255,78 +9473,19 @@ const EventUiSchema = (theme) => {
9255
9473
  heading: "Copywriter@ACT21.IO"
9256
9474
  },
9257
9475
  style: {
9258
- 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",
9259
9477
  fontSize: "11px",
9260
9478
  textAlign: "center",
9261
- lineHeight: 2,
9479
+ lineHeight: 0,
9262
9480
  width: "fit-content",
9263
9481
  left: "50%",
9264
9482
  position: "relative",
9265
- margin: 0,
9483
+ margin: "revert",
9266
9484
  flexGrow: 1,
9267
9485
  height: 0,
9268
9486
  transform: "translate(-50%, 0%)"
9269
9487
  }
9270
9488
  }
9271
- },
9272
- {
9273
- type: "Control",
9274
- scope: "#/properties/FooterBackIcon",
9275
- options: {
9276
- widget: "Box"
9277
- },
9278
- config: {
9279
- main: {
9280
- iconName: "PrevIcon",
9281
- onClick: "backHandler",
9282
- width: "fit-content"
9283
- },
9284
- style: {
9285
- fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
9286
- width: 20,
9287
- height: 0,
9288
- top: 0,
9289
- right: { xs: "12px", sm: "84px" },
9290
- position: "absolute",
9291
- fontSize: "12px",
9292
- cursor: "pointer",
9293
- ":hover": {
9294
- fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9295
- },
9296
- marginRight: "20px"
9297
- }
9298
- }
9299
- },
9300
- {
9301
- type: "Control",
9302
- scope: "#/properties/FooterBackHandlerText",
9303
- options: {
9304
- widget: "Box"
9305
- },
9306
- config: {
9307
- main: {
9308
- heading: "Previous Page",
9309
- onClick: "backHandler"
9310
- },
9311
- style: {
9312
- display: { xs: "none", sm: "flex" },
9313
- textAlign: "left",
9314
- lineHeight: 1,
9315
- height: 0,
9316
- width: "fit-content",
9317
- color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
9318
- fontSize: "12px",
9319
- cursor: "pointer",
9320
- marginLeft: "2px",
9321
- top: 3,
9322
- right: "12px",
9323
- position: "absolute",
9324
- ":hover": {
9325
- color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9326
- },
9327
- marginRight: "4px"
9328
- }
9329
- }
9330
9489
  }
9331
9490
  ]
9332
9491
  }
@@ -9565,15 +9724,21 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9565
9724
  const formdata = await this.getFormData();
9566
9725
  store2.setFormdata(formdata);
9567
9726
  const schema2 = await this.getSchema();
9727
+ console.log("SettingSchema>>", schema2);
9568
9728
  store2.setSchema(schema2);
9569
9729
  this.refreshPage(formdata.Handler, store2);
9570
9730
  },
9571
9731
  refreshPage: (handlerType, store22) => {
9732
+ var _a, _b, _c;
9572
9733
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9573
9734
  const schema2 = _.cloneDeep(EventSchema);
9574
9735
  if (handlerType) {
9575
9736
  if (handlerType === "custom") {
9576
- 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
+ );
9577
9742
  uiSchema.elements[0].elements[0].elements[3] = {
9578
9743
  type: "Control",
9579
9744
  scope: "#/properties/emptyBox",
@@ -9586,14 +9751,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9586
9751
  style: {}
9587
9752
  }
9588
9753
  };
9589
- 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
+ );
9590
9759
  schema2.required = ["eventType", "Handler", "eventCode"];
9591
9760
  } else if (handlerType === "api") {
9592
- 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
+ });
9593
9767
  uiSchema.elements[0].elements[0].elements[3] = APISection;
9594
9768
  schema2.required = ["eventType", "Handler", "method", "path"];
9595
9769
  } else if (handlerType === "inBuiltFunction") {
9596
- 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
+ );
9597
9774
  uiSchema.elements[0].elements[0].elements[3] = {
9598
9775
  type: "Control",
9599
9776
  scope: "#/properties/emptyBox",
@@ -9606,10 +9783,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9606
9783
  style: {}
9607
9784
  }
9608
9785
  };
9609
- 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
+ );
9610
9791
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
9611
9792
  } else if (handlerType === "refresh") {
9612
- 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
+ });
9613
9799
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
9614
9800
  schema2.properties.refreshElements.required = ["value"];
9615
9801
  schema2.properties.refreshElements.items.required = ["value"];
@@ -9623,9 +9809,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9623
9809
  ];
9624
9810
  }
9625
9811
  if (sessionStorage.getItem("copiedConfig")) {
9626
- Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9812
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
9813
+ uiSchema
9814
+ );
9627
9815
  schema2.properties.RemoveItemButton.disabled = false;
9628
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;
9629
9840
  store22.setSchema(schema2);
9630
9841
  store22.setUiSchema(uiSchema);
9631
9842
  },
@@ -9634,10 +9845,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9634
9845
  return EventUiSchema;
9635
9846
  },
9636
9847
  getSchema: () => {
9848
+ var _a, _b, _c;
9637
9849
  const schema2 = _.cloneDeep(EventSchema);
9638
9850
  if (sessionStorage.getItem("copiedConfig")) {
9639
9851
  schema2.properties.RemoveItemButton.disabled = false;
9640
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);
9641
9876
  return schema2;
9642
9877
  },
9643
9878
  okHandler: () => okHandler(store2),
@@ -9645,7 +9880,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9645
9880
  onChange: function() {
9646
9881
  var _a, _b, _c;
9647
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) {
9648
- this.refreshPage(store2.newData.Handler || store2.formdata.Handler, store2);
9883
+ this.refreshPage(
9884
+ store2.newData.Handler || store2.formdata.Handler,
9885
+ store2
9886
+ );
9649
9887
  }
9650
9888
  },
9651
9889
  addEvent: function() {
@@ -9671,7 +9909,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9671
9909
  this.setPage();
9672
9910
  },
9673
9911
  deleteEvent: async function() {
9674
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
9912
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
9913
+ false
9914
+ );
9675
9915
  store2.updateDialog("popUpEvent");
9676
9916
  },
9677
9917
  backHandler: function() {
@@ -9683,10 +9923,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9683
9923
  store2.updateDialog("popUpEvent");
9684
9924
  },
9685
9925
  copyPasteElement: function() {
9686
- 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
+ );
9687
9930
  },
9688
9931
  RemoveItemButton: function() {
9689
- 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`);
9690
9950
  }
9691
9951
  };
9692
9952
  };
@@ -9857,16 +10117,17 @@ function executeCustomHandler(params) {
9857
10117
  }
9858
10118
  }
9859
10119
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10120
+ var _a, _b, _c;
9860
10121
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9861
10122
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9862
10123
  store2.setSchema((pre) => {
9863
- var _a;
10124
+ var _a2;
9864
10125
  return {
9865
10126
  ...pre,
9866
10127
  properties: {
9867
10128
  ...pre.properties,
9868
10129
  [componentName]: {
9869
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10130
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9870
10131
  oneOf: handlerResponse.data
9871
10132
  }
9872
10133
  }
@@ -9876,13 +10137,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9876
10137
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9877
10138
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9878
10139
  store2.setSchema((pre) => {
9879
- var _a;
10140
+ var _a2;
9880
10141
  return {
9881
10142
  ...pre,
9882
10143
  properties: {
9883
10144
  ...pre.properties,
9884
10145
  [componentName]: {
9885
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10146
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
9886
10147
  type: "array",
9887
10148
  items: {
9888
10149
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -9902,6 +10163,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9902
10163
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9903
10164
  });
9904
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
+ }
9905
10174
  } else {
9906
10175
  if (handlerResponse) {
9907
10176
  formDataHolder[componentName] = handlerResponse.data;
@@ -10059,6 +10328,7 @@ var service = (funcParams) => {
10059
10328
  return {
10060
10329
  setPage: async function() {
10061
10330
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10331
+ funcParams.store.setAdditionalErrors([]);
10062
10332
  funcParams.store.setFormdata({});
10063
10333
  funcParams.store.newData = {};
10064
10334
  const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
@@ -10207,7 +10477,7 @@ var service = (funcParams) => {
10207
10477
  service: funcParams.service,
10208
10478
  serviceHolder: this,
10209
10479
  eventGroups,
10210
- formDataHolder
10480
+ formDataHolder: {}
10211
10481
  });
10212
10482
  funcParams.store.setSchema(
10213
10483
  (pre) => {
@@ -10222,11 +10492,11 @@ var service = (funcParams) => {
10222
10492
  funcParams.store.setUiSchema(uiSchema);
10223
10493
  },
10224
10494
  onCellRenderer: (cellParams) => {
10225
- var _a, _b, _c;
10495
+ var _a, _b, _c, _d;
10226
10496
  if (eventGroups.onCellRenderer) {
10227
10497
  let finalResponse = {};
10228
10498
  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]);
10229
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10499
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10230
10500
  executeEventsParameters.store.functionParameters = cellParams;
10231
10501
  finalResponse = executeEvents({
10232
10502
  ...executeEventsParameters,
@@ -10830,6 +11100,9 @@ const buildTextField = (config2, componentScope2) => {
10830
11100
  if (config2.style) {
10831
11101
  inputField.config.style = JSON.parse(config2.style);
10832
11102
  }
11103
+ if (config2.multiline) {
11104
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11105
+ }
10833
11106
  if (config2.InputFormatingAndMasking) {
10834
11107
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10835
11108
  }
@@ -11123,7 +11396,8 @@ function Card(theme) {
11123
11396
  wrapperStyle: {
11124
11397
  position: "relative",
11125
11398
  top: "50%",
11126
- transform: "translateY(-50%)"
11399
+ transform: "translateY(-50%)",
11400
+ marginBottom: 0
11127
11401
  },
11128
11402
  componentsBoxStyle: {
11129
11403
  boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
@@ -11162,7 +11436,8 @@ function Card(theme) {
11162
11436
  gap: 0
11163
11437
  },
11164
11438
  wrapperStyle: {
11165
- background: "transparent"
11439
+ background: "transparent",
11440
+ marginBottom: 0
11166
11441
  },
11167
11442
  componentsBoxStyle: {
11168
11443
  flexDirection: "column",
@@ -11183,7 +11458,8 @@ function Card(theme) {
11183
11458
  gap: 0
11184
11459
  },
11185
11460
  wrapperStyle: {
11186
- background: "transparent"
11461
+ background: "transparent",
11462
+ marginBottom: 0
11187
11463
  },
11188
11464
  componentsBoxStyle: {
11189
11465
  flexDirection: "row",
@@ -11216,6 +11492,7 @@ function Card(theme) {
11216
11492
  justifyContent: "flex-start",
11217
11493
  width: "auto",
11218
11494
  margin: "-8px",
11495
+ marginLeft: "-24px",
11219
11496
  height: 0
11220
11497
  }
11221
11498
  },
@@ -11240,7 +11517,7 @@ function Card(theme) {
11240
11517
  width: "auto",
11241
11518
  margin: "-8px",
11242
11519
  position: "absolute",
11243
- left: "8px"
11520
+ left: "24px"
11244
11521
  }
11245
11522
  },
11246
11523
  options: {
@@ -11264,8 +11541,7 @@ function Card(theme) {
11264
11541
  background: "inherit",
11265
11542
  width: "calc(100%+8px)",
11266
11543
  margin: "-8px",
11267
- marginTop: { xs: "0px", md: "12px" },
11268
- lineHeight: "1"
11544
+ marginTop: { xs: "16px", md: "20px" }
11269
11545
  },
11270
11546
  layout: 12
11271
11547
  },
@@ -12034,41 +12310,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12034
12310
  }
12035
12311
  return thought;
12036
12312
  };
12037
- var pdfViewer = {
12038
- type: "Control",
12039
- scope: "#/properties/pdfviewer",
12040
- options: {
12041
- widget: "PdfViewer"
12042
- },
12043
- config: {
12044
- layout: {
12045
- xs: 12,
12046
- sm: 12,
12047
- md: 12,
12048
- lg: 12
12049
- },
12050
- main: {
12051
- title: "PDF"
12052
- }
12053
- }
12054
- };
12055
- const buildPdfViewer = (config2) => {
12056
- const PdfViewer = _.cloneDeep(pdfViewer);
12057
- PdfViewer.config.main.label = config2.label;
12058
- if (config2.name) {
12059
- PdfViewer.scope = `#/properties/${config2.name}`;
12060
- }
12061
- if (config2.layout) {
12062
- PdfViewer.config.layout = createLayoutFormat(config2.layout);
12063
- }
12064
- if (config2.label) {
12065
- PdfViewer.config.main.title = config2.label;
12066
- }
12067
- if (config2.style) {
12068
- PdfViewer.config.style = JSON.parse(config2.style);
12069
- }
12070
- return PdfViewer;
12071
- };
12072
12313
  let schema = {
12073
12314
  type: "object",
12074
12315
  properties: {},
@@ -12323,9 +12564,6 @@ const buildUiSchema = (config2, store2) => {
12323
12564
  case "Thought":
12324
12565
  elements = buildThoughtOfTheDay(config2, componentScope2);
12325
12566
  break;
12326
- case "PdfViewer":
12327
- elements = buildPdfViewer(config2);
12328
- break;
12329
12567
  default:
12330
12568
  schema = {
12331
12569
  type: "object",
@@ -12355,41 +12593,46 @@ const buildUiSchema = (config2, store2) => {
12355
12593
  });
12356
12594
  } else if (config2.type == "Table") {
12357
12595
  const sizeMap = {};
12358
- const filterMap = {};
12359
12596
  if (config2.sizeHolder) {
12360
12597
  config2.sizeHolder.map((e, i) => {
12361
12598
  sizeMap[e.keyName] = e.value;
12362
12599
  });
12363
12600
  }
12364
- if (config2.enableColumnFilter) {
12365
- config2.enableColumnFilter.map((e) => {
12366
- filterMap[e.keyName] = true;
12367
- });
12368
- }
12369
- elements.elements = config2.elements.map((cellElem, elemInd) => {
12370
- var _a, _b;
12601
+ const tableHeaderElements = [];
12602
+ const tableActionElement = [];
12603
+ elements.elements = config2.elements.filter((cellElem, elemInd) => {
12604
+ const commonProperties = {
12605
+ accessorKey: cellElem.name,
12606
+ type: cellElem.columnFormat,
12607
+ header: cellElem.label || cellElem.name,
12608
+ size: sizeMap[cellElem.name] || 180,
12609
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12610
+ columnFilterModeOptions: cellElem.filteringOptions,
12611
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
12612
+ columnKey: cellElem.columnKey
12613
+ };
12371
12614
  if (cellElem.type) {
12615
+ if (cellElem.elementType == "action") {
12616
+ const actionElem = buildUiSchema(cellElem, store2);
12617
+ tableActionElement.push(actionElem);
12618
+ return false;
12619
+ }
12620
+ if (cellElem.elementType == "tableHeader") {
12621
+ const headerElem = buildUiSchema(cellElem, store2);
12622
+ tableHeaderElements.push(headerElem);
12623
+ return false;
12624
+ }
12372
12625
  return {
12373
- accessorKey: cellElem.name,
12374
- header: cellElem.label || cellElem.name,
12375
- size: sizeMap[cellElem.name] || 180,
12376
- type: cellElem.columnFormat,
12377
12626
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12378
12627
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12379
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12380
- columnFilterModeOptions: config2.filteringOptions
12628
+ ...commonProperties
12381
12629
  };
12382
12630
  } else {
12383
- return {
12384
- accessorKey: cellElem.name,
12385
- type: cellElem.columnFormat,
12386
- header: cellElem.label || cellElem.name,
12387
- size: sizeMap[cellElem.name] || 180,
12388
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12389
- columnFilterModeOptions: config2.filteringOptions
12390
- };
12631
+ return commonProperties;
12391
12632
  }
12392
12633
  });
12634
+ elements.config.main.action = tableActionElement;
12635
+ elements.config.main.headerIcons = tableHeaderElements;
12393
12636
  } else if (config2.type == "Array") {
12394
12637
  elements.options.detail.elements = config2.elements.map((e, elemInd) => {
12395
12638
  return buildUiSchema(e, store2);