impaktapps-ui-builder 0.0.101-alpha.26 → 0.0.101-alpha.260
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.
- package/dist/impaktapps-ui-builder.es.js +473 -254
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +5 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +21 -29
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +4 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +7 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -60
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +0 -52
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -50
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +25 -28
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +46 -159
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -97
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +43 -259
- package/src/impaktapps-ui-builder/builder/services/component.ts +217 -56
- package/src/impaktapps-ui-builder/builder/services/event.ts +175 -58
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -111
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -22
- 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
|
|
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: "
|
|
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: "
|
|
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
|
|
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: "
|
|
6268
|
+
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6262
6269
|
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6263
6270
|
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6264
6271
|
{ title: "Pop Up", const: "PopUp" },
|
|
@@ -6280,8 +6287,7 @@ const ComponentSchema = {
|
|
|
6280
6287
|
{ title: "Upload", const: "UploadFile" },
|
|
6281
6288
|
{ title: "Tree ", const: "TreeMap" },
|
|
6282
6289
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
6283
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6284
|
-
{ title: "Pdf Viewer", const: "PdfViewer" }
|
|
6290
|
+
{ title: "Thought of the day", const: "Thought" }
|
|
6285
6291
|
]
|
|
6286
6292
|
},
|
|
6287
6293
|
columnFormat: {
|
|
@@ -6435,23 +6441,20 @@ const ComponentSchema = {
|
|
|
6435
6441
|
}
|
|
6436
6442
|
},
|
|
6437
6443
|
filteringOptions: {
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6453
|
-
]
|
|
6454
|
-
}
|
|
6444
|
+
oneOf: [
|
|
6445
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6446
|
+
{ const: "contains", title: "Contain" },
|
|
6447
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6448
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6449
|
+
{ const: "equals", title: "Equals" },
|
|
6450
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6451
|
+
{ const: "between", title: "Between" },
|
|
6452
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6453
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6454
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6455
|
+
{ const: "lessThan", title: "Less than" },
|
|
6456
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6457
|
+
]
|
|
6455
6458
|
},
|
|
6456
6459
|
legendLabels: {
|
|
6457
6460
|
type: "array",
|
|
@@ -6567,6 +6570,9 @@ const ComponentSchema = {
|
|
|
6567
6570
|
{ title: "Info", const: "info" }
|
|
6568
6571
|
]
|
|
6569
6572
|
},
|
|
6573
|
+
pageName: {
|
|
6574
|
+
path: []
|
|
6575
|
+
},
|
|
6570
6576
|
name: {
|
|
6571
6577
|
type: "string"
|
|
6572
6578
|
},
|
|
@@ -6828,15 +6834,16 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6828
6834
|
config: {
|
|
6829
6835
|
layout: 11,
|
|
6830
6836
|
main: {
|
|
6831
|
-
heading: "Are you sure you want to delete ?"
|
|
6837
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
6832
6838
|
},
|
|
6833
6839
|
style: {
|
|
6834
|
-
marginTop: "-20px",
|
|
6835
|
-
fontSize: "20px",
|
|
6836
6840
|
"&.MuiTypography-root": {
|
|
6837
|
-
padding: "
|
|
6841
|
+
padding: "0px 20px",
|
|
6838
6842
|
textAlign: "center",
|
|
6839
|
-
lineHeight: "1"
|
|
6843
|
+
lineHeight: "1.2",
|
|
6844
|
+
fontWeight: "normal",
|
|
6845
|
+
fontSize: "18px",
|
|
6846
|
+
marginBottom: theme.spacing(5)
|
|
6840
6847
|
}
|
|
6841
6848
|
}
|
|
6842
6849
|
}
|
|
@@ -6865,6 +6872,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6865
6872
|
},
|
|
6866
6873
|
style: {
|
|
6867
6874
|
position: "absolute",
|
|
6875
|
+
padding: "8px 0px",
|
|
6876
|
+
fontSize: "16px",
|
|
6868
6877
|
bottom: 0,
|
|
6869
6878
|
left: 0,
|
|
6870
6879
|
width: "50%",
|
|
@@ -6900,6 +6909,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6900
6909
|
},
|
|
6901
6910
|
style: {
|
|
6902
6911
|
position: "absolute",
|
|
6912
|
+
padding: "8px 0px",
|
|
6913
|
+
fontSize: "16px",
|
|
6903
6914
|
bottom: 0,
|
|
6904
6915
|
right: 0,
|
|
6905
6916
|
width: "50%",
|
|
@@ -6948,15 +6959,17 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6948
6959
|
config: {
|
|
6949
6960
|
layout: 11,
|
|
6950
6961
|
main: {
|
|
6951
|
-
heading: "Are you sure you want to delete ?"
|
|
6962
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
6952
6963
|
},
|
|
6953
6964
|
style: {
|
|
6954
|
-
marginTop: "-20px",
|
|
6955
6965
|
fontSize: "20px",
|
|
6956
6966
|
"&.MuiTypography-root": {
|
|
6957
|
-
padding: "
|
|
6967
|
+
padding: "0px 20px",
|
|
6958
6968
|
textAlign: "center",
|
|
6959
|
-
lineHeight: "1"
|
|
6969
|
+
lineHeight: "1.2",
|
|
6970
|
+
fontWeight: "normal",
|
|
6971
|
+
fontSize: "18px",
|
|
6972
|
+
marginBottom: theme.spacing(5)
|
|
6960
6973
|
}
|
|
6961
6974
|
}
|
|
6962
6975
|
}
|
|
@@ -6985,6 +6998,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6985
6998
|
},
|
|
6986
6999
|
style: {
|
|
6987
7000
|
position: "absolute",
|
|
7001
|
+
padding: "8px 0px",
|
|
7002
|
+
fontSize: "16px",
|
|
6988
7003
|
bottom: 0,
|
|
6989
7004
|
left: 0,
|
|
6990
7005
|
width: "50%",
|
|
@@ -7020,6 +7035,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7020
7035
|
},
|
|
7021
7036
|
style: {
|
|
7022
7037
|
position: "absolute",
|
|
7038
|
+
padding: "8px 0px",
|
|
7039
|
+
fontSize: "16px",
|
|
7023
7040
|
bottom: 0,
|
|
7024
7041
|
right: 0,
|
|
7025
7042
|
width: "50%",
|
|
@@ -7040,6 +7057,30 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7040
7057
|
}
|
|
7041
7058
|
]
|
|
7042
7059
|
},
|
|
7060
|
+
{
|
|
7061
|
+
type: "Control",
|
|
7062
|
+
scope: "#/properties/pageName",
|
|
7063
|
+
options: {
|
|
7064
|
+
widget: "Breadcrumb"
|
|
7065
|
+
},
|
|
7066
|
+
config: {
|
|
7067
|
+
layout: 12,
|
|
7068
|
+
main: {
|
|
7069
|
+
onNavigatePopupNo: "onNavigatePopupNo",
|
|
7070
|
+
onNavigatePopupYes: "onNavigatePopupYes"
|
|
7071
|
+
},
|
|
7072
|
+
style: {
|
|
7073
|
+
paddingLeft: theme.spacing(3),
|
|
7074
|
+
color: theme.palette.grey[600],
|
|
7075
|
+
fontSize: "10px",
|
|
7076
|
+
position: "fixed",
|
|
7077
|
+
bottom: "24px",
|
|
7078
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7079
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
7080
|
+
backgroundColor: theme.palette.background.default
|
|
7081
|
+
}
|
|
7082
|
+
}
|
|
7083
|
+
},
|
|
7043
7084
|
{
|
|
7044
7085
|
type: "Control",
|
|
7045
7086
|
scope: "#/properties/notify",
|
|
@@ -7312,7 +7353,7 @@ const EventSection = (theme) => {
|
|
|
7312
7353
|
elements: [
|
|
7313
7354
|
{
|
|
7314
7355
|
accessorKey: "eventType",
|
|
7315
|
-
header: "Event Type",
|
|
7356
|
+
header: "Event's Type",
|
|
7316
7357
|
type: "string",
|
|
7317
7358
|
size: 300
|
|
7318
7359
|
},
|
|
@@ -7324,7 +7365,7 @@ const EventSection = (theme) => {
|
|
|
7324
7365
|
},
|
|
7325
7366
|
{
|
|
7326
7367
|
accessorKey: "Edit_Approve_Records",
|
|
7327
|
-
header: "Edit
|
|
7368
|
+
header: "Edit",
|
|
7328
7369
|
size: 150,
|
|
7329
7370
|
type: "action",
|
|
7330
7371
|
widget: {
|
|
@@ -7493,8 +7534,8 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7493
7534
|
config: {
|
|
7494
7535
|
layout: 12,
|
|
7495
7536
|
main: {
|
|
7496
|
-
label:
|
|
7497
|
-
childElementLabel:
|
|
7537
|
+
label: childLabel,
|
|
7538
|
+
childElementLabel: childLabel
|
|
7498
7539
|
},
|
|
7499
7540
|
style: {
|
|
7500
7541
|
marginLeft: "-24px",
|
|
@@ -7700,7 +7741,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7700
7741
|
case "Text":
|
|
7701
7742
|
uiSchema.elements = [
|
|
7702
7743
|
getInputField("placeholder", "Placeholder"),
|
|
7703
|
-
|
|
7744
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7704
7745
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7705
7746
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7706
7747
|
];
|
|
@@ -7709,7 +7750,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7709
7750
|
uiSchema.elements = [
|
|
7710
7751
|
getInputField("placeholder", "Placeholder"),
|
|
7711
7752
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7712
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7753
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7754
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7713
7755
|
];
|
|
7714
7756
|
break;
|
|
7715
7757
|
case "SpeedoMeter":
|
|
@@ -8369,54 +8411,136 @@ function okHandler(store2) {
|
|
|
8369
8411
|
}
|
|
8370
8412
|
}
|
|
8371
8413
|
const sectionLabels = {
|
|
8372
|
-
Select: ["Core", "Properties", "Value", "
|
|
8373
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8374
|
-
Table: ["Core", "Components", "Properties", "
|
|
8375
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8414
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8415
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8416
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8417
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8376
8418
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8377
8419
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8378
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
8379
|
-
card: ["Core", "Properties", "
|
|
8380
|
-
UploadFile: ["Core", "
|
|
8381
|
-
Graph: ["Core", "Properties", "
|
|
8382
|
-
DownloadFile: ["Core", "
|
|
8383
|
-
Box: ["Core", "
|
|
8384
|
-
Properties: ["Core", "Properties", "
|
|
8385
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
8386
|
-
RankCard: ["Core", "Properties", "
|
|
8387
|
-
Slider: ["Core", "Components", "
|
|
8388
|
-
Timer: ["Core", "
|
|
8389
|
-
Rank: ["Core", "
|
|
8390
|
-
Button: ["Core", "Properties", "
|
|
8420
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8421
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8422
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8423
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8424
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8425
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8426
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8427
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8428
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8429
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8430
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8431
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8432
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8391
8433
|
Array: ["Core", "Components", "Validation"],
|
|
8392
|
-
Radio: ["Core", "Properties", "
|
|
8393
|
-
Text: ["Core", "Properties", "
|
|
8394
|
-
TextArea: ["Core", "Properties", "
|
|
8434
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8435
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8436
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8395
8437
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8396
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8397
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8398
|
-
InputSlider: ["Core", "Properties", "
|
|
8399
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8438
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8439
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8440
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8441
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8400
8442
|
ColumnGroup: ["Core", "Components"],
|
|
8401
|
-
Thought: ["Core", "Properties", "
|
|
8443
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8402
8444
|
};
|
|
8403
8445
|
function refreshPage(type, store2) {
|
|
8404
|
-
var _a;
|
|
8446
|
+
var _a, _b;
|
|
8405
8447
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8448
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8406
8449
|
if (type) {
|
|
8407
8450
|
const sectionUiSchema = {
|
|
8408
8451
|
Core: CoreSection,
|
|
8409
8452
|
Value: ValueTab,
|
|
8410
8453
|
Style: StyleSection,
|
|
8411
|
-
|
|
8454
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8412
8455
|
Components: TableSection(store2.theme.myTheme),
|
|
8413
8456
|
Properties: buildPropertiesSection(type),
|
|
8414
8457
|
Validation: ValidationSection
|
|
8415
8458
|
};
|
|
8416
8459
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8417
|
-
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "
|
|
8460
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8418
8461
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8419
8462
|
}
|
|
8463
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8464
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8465
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8466
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8467
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8468
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8469
|
+
type: "Control",
|
|
8470
|
+
scope: "#/properties/columnFormat",
|
|
8471
|
+
options: {
|
|
8472
|
+
widget: "SelectInputField"
|
|
8473
|
+
},
|
|
8474
|
+
config: {
|
|
8475
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8476
|
+
main: {
|
|
8477
|
+
label: "Column Format"
|
|
8478
|
+
}
|
|
8479
|
+
}
|
|
8480
|
+
};
|
|
8481
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8482
|
+
type: "Control",
|
|
8483
|
+
scope: "#/properties/filteringOptions",
|
|
8484
|
+
options: {
|
|
8485
|
+
widget: "SelectInputField"
|
|
8486
|
+
},
|
|
8487
|
+
config: {
|
|
8488
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8489
|
+
main: {
|
|
8490
|
+
label: "Filter Mode",
|
|
8491
|
+
multiple: true
|
|
8492
|
+
}
|
|
8493
|
+
}
|
|
8494
|
+
};
|
|
8495
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8496
|
+
type: "Control",
|
|
8497
|
+
scope: "#/properties/enableFilter",
|
|
8498
|
+
options: {
|
|
8499
|
+
widget: "RadioInputField"
|
|
8500
|
+
},
|
|
8501
|
+
config: {
|
|
8502
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8503
|
+
main: {
|
|
8504
|
+
label: "Enable Filter",
|
|
8505
|
+
options: ["Yes", "No"]
|
|
8506
|
+
}
|
|
8507
|
+
}
|
|
8508
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8509
|
+
type: "Control",
|
|
8510
|
+
scope: "#/properties/enableSorting",
|
|
8511
|
+
options: {
|
|
8512
|
+
widget: "RadioInputField"
|
|
8513
|
+
},
|
|
8514
|
+
config: {
|
|
8515
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8516
|
+
main: {
|
|
8517
|
+
label: "Enable Sorting",
|
|
8518
|
+
options: ["Yes", "No"]
|
|
8519
|
+
}
|
|
8520
|
+
}
|
|
8521
|
+
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8522
|
+
type: "Control",
|
|
8523
|
+
scope: "#/properties/columnKey",
|
|
8524
|
+
config: {
|
|
8525
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8526
|
+
main: {
|
|
8527
|
+
label: "Column Key"
|
|
8528
|
+
}
|
|
8529
|
+
},
|
|
8530
|
+
options: {
|
|
8531
|
+
widget: "InputField"
|
|
8532
|
+
}
|
|
8533
|
+
}, UiSchema.elements[0].elements[0].elements[9] = {
|
|
8534
|
+
type: "Control",
|
|
8535
|
+
scope: "#/properties/proc",
|
|
8536
|
+
config: {
|
|
8537
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 0 }
|
|
8538
|
+
},
|
|
8539
|
+
options: {
|
|
8540
|
+
widget: "EmptyBox"
|
|
8541
|
+
}
|
|
8542
|
+
};
|
|
8543
|
+
}
|
|
8420
8544
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8421
8545
|
this.ElementPathSetter(UiSchema);
|
|
8422
8546
|
}
|
|
@@ -8438,10 +8562,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8438
8562
|
return getFormdataFromSessionStorage(path);
|
|
8439
8563
|
},
|
|
8440
8564
|
getSchema: function() {
|
|
8565
|
+
var _a, _b, _c;
|
|
8441
8566
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8442
8567
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8443
8568
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8444
8569
|
}
|
|
8570
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8571
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8572
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8573
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8574
|
+
if (path) {
|
|
8575
|
+
const pathArrayAll = path.split(".");
|
|
8576
|
+
const arr = [];
|
|
8577
|
+
pathArrayAll.map((e, i) => {
|
|
8578
|
+
if (i === 0) {
|
|
8579
|
+
arr.push(e);
|
|
8580
|
+
return;
|
|
8581
|
+
}
|
|
8582
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8583
|
+
});
|
|
8584
|
+
arr.map((e) => {
|
|
8585
|
+
const data = _.get(config2, e);
|
|
8586
|
+
pathArray.push({
|
|
8587
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8588
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8589
|
+
});
|
|
8590
|
+
});
|
|
8591
|
+
}
|
|
8592
|
+
schema2.properties.pageName.path = pathArray;
|
|
8445
8593
|
return schema2;
|
|
8446
8594
|
},
|
|
8447
8595
|
okHandler: () => okHandler(store2),
|
|
@@ -8554,6 +8702,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8554
8702
|
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8555
8703
|
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8556
8704
|
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8705
|
+
store2.setNotify({
|
|
8706
|
+
SuccessMessage: `${elementType} Copied Successfully`,
|
|
8707
|
+
Success: true
|
|
8708
|
+
});
|
|
8557
8709
|
store2.setSchema(schema2);
|
|
8558
8710
|
store2.setUiSchema(uiSchema);
|
|
8559
8711
|
},
|
|
@@ -8579,15 +8731,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8579
8731
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8580
8732
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8581
8733
|
const notificationMessages = {
|
|
8582
|
-
|
|
8583
|
-
Component: "The component cannot be integrated into the
|
|
8734
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8735
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8584
8736
|
};
|
|
8585
8737
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8586
8738
|
store2.setNotify({
|
|
8587
|
-
FailMessage: notificationMessages.
|
|
8739
|
+
FailMessage: notificationMessages.Events,
|
|
8588
8740
|
Fail: true
|
|
8589
8741
|
});
|
|
8590
|
-
} else if (copiedConfig.name && elementType === "
|
|
8742
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8591
8743
|
store2.setNotify({
|
|
8592
8744
|
FailMessage: notificationMessages.Component,
|
|
8593
8745
|
Fail: true
|
|
@@ -8613,8 +8765,33 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8613
8765
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8614
8766
|
},
|
|
8615
8767
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8768
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
8616
8769
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8617
|
-
uiSchema.elements[
|
|
8770
|
+
if ((_f = (_e = (_d = (_c = (_b = (_a = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _a[1]) == null ? void 0 : _b.elements) == null ? void 0 : _c[0]) == null ? void 0 : _d.config) == null ? void 0 : _e.main) == null ? void 0 : _f.headerIcons) {
|
|
8771
|
+
uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8772
|
+
} else if ((_n = (_m = (_l = (_k = (_j = (_i = (_h = (_g = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _g[0]) == null ? void 0 : _h.elements) == null ? void 0 : _i[1]) == null ? void 0 : _j.elements) == null ? void 0 : _k[0]) == null ? void 0 : _l.config) == null ? void 0 : _m.main) == null ? void 0 : _n.headerIcons) {
|
|
8773
|
+
uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8774
|
+
}
|
|
8775
|
+
if ((_t = (_s = (_r = (_q = (_p = (_o = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _o[1]) == null ? void 0 : _p.elements) == null ? void 0 : _q[1]) == null ? void 0 : _r.config) == null ? void 0 : _s.main) == null ? void 0 : _t.headerIcons) {
|
|
8776
|
+
uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
|
|
8777
|
+
} else if ((_z = (_y = (_x = (_w = (_v = (_u = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _u[0]) == null ? void 0 : _v.elements) == null ? void 0 : _w[1]) == null ? void 0 : _x.config) == null ? void 0 : _y.main) == null ? void 0 : _z.headerIcons) {
|
|
8778
|
+
uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
|
|
8779
|
+
}
|
|
8780
|
+
},
|
|
8781
|
+
onNavigatePopupYes: function() {
|
|
8782
|
+
try {
|
|
8783
|
+
store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
|
|
8784
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8785
|
+
} catch (e) {
|
|
8786
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8787
|
+
store2.setNotify({
|
|
8788
|
+
FailMessage: "Couldn't navigate page",
|
|
8789
|
+
Fail: true
|
|
8790
|
+
});
|
|
8791
|
+
}
|
|
8792
|
+
},
|
|
8793
|
+
onNavigatePopupNo: function() {
|
|
8794
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8618
8795
|
}
|
|
8619
8796
|
};
|
|
8620
8797
|
};
|
|
@@ -8765,18 +8942,18 @@ const EventSchema = {
|
|
|
8765
8942
|
eventType: {
|
|
8766
8943
|
type: "string",
|
|
8767
8944
|
oneOf: [
|
|
8768
|
-
{ title: "Click
|
|
8769
|
-
{ title: "Load
|
|
8770
|
-
{ title: "Change
|
|
8771
|
-
{ title: "Mount
|
|
8945
|
+
{ title: "Click", const: "onClick" },
|
|
8946
|
+
{ title: "Load", const: "onLoad" },
|
|
8947
|
+
{ title: "Change", const: "onChange" },
|
|
8948
|
+
{ title: "Mount", const: "onMount" },
|
|
8772
8949
|
{ title: "Success", const: "Success" },
|
|
8773
|
-
{ title: "
|
|
8774
|
-
{ title: "Cell
|
|
8775
|
-
{ title: "
|
|
8776
|
-
{ title: "Back
|
|
8777
|
-
{ title: "Next
|
|
8778
|
-
{ title: "
|
|
8779
|
-
{ title: "
|
|
8950
|
+
{ title: "Start", const: "onStart" },
|
|
8951
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8952
|
+
{ title: "Upload", const: "onUpload" },
|
|
8953
|
+
{ title: "Back", const: "onBack" },
|
|
8954
|
+
{ title: "Next", const: "onNext" },
|
|
8955
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8956
|
+
{ title: "Download", const: "onDownload" },
|
|
8780
8957
|
{ title: "Fail", const: "Fail" }
|
|
8781
8958
|
]
|
|
8782
8959
|
},
|
|
@@ -8784,7 +8961,7 @@ const EventSchema = {
|
|
|
8784
8961
|
type: "string",
|
|
8785
8962
|
oneOf: [
|
|
8786
8963
|
{ title: "Custom", const: "custom" },
|
|
8787
|
-
{ title: "
|
|
8964
|
+
{ title: "API", const: "api" },
|
|
8788
8965
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8789
8966
|
{ title: "Refresh", const: "refresh" }
|
|
8790
8967
|
]
|
|
@@ -8813,15 +8990,18 @@ const EventSchema = {
|
|
|
8813
8990
|
},
|
|
8814
8991
|
RemoveItemButton: {
|
|
8815
8992
|
disabled: true
|
|
8993
|
+
},
|
|
8994
|
+
pageName: {
|
|
8995
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8816
8996
|
}
|
|
8817
8997
|
},
|
|
8818
8998
|
required: ["eventType", "Handler"]
|
|
8819
8999
|
};
|
|
8820
9000
|
const EventUiSchema = (theme) => {
|
|
8821
|
-
var _a
|
|
9001
|
+
var _a;
|
|
8822
9002
|
const uiSchema = {
|
|
8823
9003
|
type: "HorizontalLayout",
|
|
8824
|
-
heading: "Page-
|
|
9004
|
+
heading: "Page-Events",
|
|
8825
9005
|
elements: [
|
|
8826
9006
|
{
|
|
8827
9007
|
type: "TabLayout",
|
|
@@ -8955,7 +9135,7 @@ const EventUiSchema = (theme) => {
|
|
|
8955
9135
|
elements: [
|
|
8956
9136
|
{
|
|
8957
9137
|
accessorKey: "eventType",
|
|
8958
|
-
header: "Event Type",
|
|
9138
|
+
header: "Event's Type",
|
|
8959
9139
|
size: 300,
|
|
8960
9140
|
type: "string"
|
|
8961
9141
|
},
|
|
@@ -8967,7 +9147,7 @@ const EventUiSchema = (theme) => {
|
|
|
8967
9147
|
},
|
|
8968
9148
|
{
|
|
8969
9149
|
accessorKey: "Edit_Approve_Records",
|
|
8970
|
-
header: "Edit
|
|
9150
|
+
header: "Edit",
|
|
8971
9151
|
type: "action",
|
|
8972
9152
|
size: 150,
|
|
8973
9153
|
widget: {
|
|
@@ -9124,15 +9304,17 @@ const EventUiSchema = (theme) => {
|
|
|
9124
9304
|
config: {
|
|
9125
9305
|
layout: 11,
|
|
9126
9306
|
main: {
|
|
9127
|
-
heading: "Are you sure you want to delete ?"
|
|
9307
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
9128
9308
|
},
|
|
9129
9309
|
style: {
|
|
9130
|
-
marginTop: "-20px",
|
|
9131
9310
|
fontSize: "20px",
|
|
9132
9311
|
"&.MuiTypography-root": {
|
|
9133
|
-
padding: "
|
|
9312
|
+
padding: "0px 20px",
|
|
9134
9313
|
textAlign: "center",
|
|
9135
|
-
lineHeight: "1"
|
|
9314
|
+
lineHeight: "1.2",
|
|
9315
|
+
fontWeight: "normal",
|
|
9316
|
+
fontSize: "18px",
|
|
9317
|
+
marginBottom: theme.spacing(5)
|
|
9136
9318
|
}
|
|
9137
9319
|
}
|
|
9138
9320
|
}
|
|
@@ -9156,13 +9338,14 @@ const EventUiSchema = (theme) => {
|
|
|
9156
9338
|
name: "No",
|
|
9157
9339
|
startIcon: "ApproveIcon",
|
|
9158
9340
|
variant: "contained",
|
|
9159
|
-
color: "info",
|
|
9160
9341
|
type: "text",
|
|
9161
9342
|
onClick: "deletePopUpEvent",
|
|
9162
9343
|
size: "large"
|
|
9163
9344
|
},
|
|
9164
9345
|
style: {
|
|
9165
9346
|
position: "absolute",
|
|
9347
|
+
padding: "8px 0px",
|
|
9348
|
+
fontSize: "16px",
|
|
9166
9349
|
bottom: 0,
|
|
9167
9350
|
left: 0,
|
|
9168
9351
|
width: "50%",
|
|
@@ -9190,7 +9373,6 @@ const EventUiSchema = (theme) => {
|
|
|
9190
9373
|
layout: 6,
|
|
9191
9374
|
main: {
|
|
9192
9375
|
name: "Yes",
|
|
9193
|
-
startIcon: "ApproveIcon",
|
|
9194
9376
|
variant: "contained",
|
|
9195
9377
|
color: "error",
|
|
9196
9378
|
type: "text",
|
|
@@ -9199,6 +9381,8 @@ const EventUiSchema = (theme) => {
|
|
|
9199
9381
|
},
|
|
9200
9382
|
style: {
|
|
9201
9383
|
position: "absolute",
|
|
9384
|
+
padding: "8px 0px",
|
|
9385
|
+
fontSize: "16px",
|
|
9202
9386
|
bottom: 0,
|
|
9203
9387
|
right: 0,
|
|
9204
9388
|
width: "50%",
|
|
@@ -9219,6 +9403,30 @@ const EventUiSchema = (theme) => {
|
|
|
9219
9403
|
}
|
|
9220
9404
|
]
|
|
9221
9405
|
},
|
|
9406
|
+
{
|
|
9407
|
+
type: "Control",
|
|
9408
|
+
scope: "#/properties/pageName",
|
|
9409
|
+
options: {
|
|
9410
|
+
widget: "Breadcrumb"
|
|
9411
|
+
},
|
|
9412
|
+
config: {
|
|
9413
|
+
layout: 12,
|
|
9414
|
+
main: {
|
|
9415
|
+
onNavigatePopupNo: "onNavigatePopupNo",
|
|
9416
|
+
onNavigatePopupYes: "onNavigatePopupYes"
|
|
9417
|
+
},
|
|
9418
|
+
style: {
|
|
9419
|
+
paddingLeft: theme.spacing(3),
|
|
9420
|
+
color: theme.palette.grey[600],
|
|
9421
|
+
fontSize: "10px",
|
|
9422
|
+
position: "fixed",
|
|
9423
|
+
bottom: "24px",
|
|
9424
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9425
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
9426
|
+
backgroundColor: theme.palette.background.default
|
|
9427
|
+
}
|
|
9428
|
+
}
|
|
9429
|
+
},
|
|
9222
9430
|
{
|
|
9223
9431
|
type: "Control",
|
|
9224
9432
|
scope: "#/properties/notify",
|
|
@@ -9236,7 +9444,7 @@ const EventUiSchema = (theme) => {
|
|
|
9236
9444
|
style: {
|
|
9237
9445
|
flexDirection: "row",
|
|
9238
9446
|
position: "absolute",
|
|
9239
|
-
bottom:
|
|
9447
|
+
bottom: 10,
|
|
9240
9448
|
height: "fit-content",
|
|
9241
9449
|
overflow: "hidden",
|
|
9242
9450
|
zIndex: 1e3,
|
|
@@ -9255,78 +9463,19 @@ const EventUiSchema = (theme) => {
|
|
|
9255
9463
|
heading: "Copywriter@ACT21.IO"
|
|
9256
9464
|
},
|
|
9257
9465
|
style: {
|
|
9258
|
-
color: ((
|
|
9466
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9259
9467
|
fontSize: "11px",
|
|
9260
9468
|
textAlign: "center",
|
|
9261
|
-
lineHeight:
|
|
9469
|
+
lineHeight: 0,
|
|
9262
9470
|
width: "fit-content",
|
|
9263
9471
|
left: "50%",
|
|
9264
9472
|
position: "relative",
|
|
9265
|
-
margin:
|
|
9473
|
+
margin: "revert",
|
|
9266
9474
|
flexGrow: 1,
|
|
9267
9475
|
height: 0,
|
|
9268
9476
|
transform: "translate(-50%, 0%)"
|
|
9269
9477
|
}
|
|
9270
9478
|
}
|
|
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
9479
|
}
|
|
9331
9480
|
]
|
|
9332
9481
|
}
|
|
@@ -9565,15 +9714,21 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9565
9714
|
const formdata = await this.getFormData();
|
|
9566
9715
|
store2.setFormdata(formdata);
|
|
9567
9716
|
const schema2 = await this.getSchema();
|
|
9717
|
+
console.log("SettingSchema>>", schema2);
|
|
9568
9718
|
store2.setSchema(schema2);
|
|
9569
9719
|
this.refreshPage(formdata.Handler, store2);
|
|
9570
9720
|
},
|
|
9571
9721
|
refreshPage: (handlerType, store22) => {
|
|
9722
|
+
var _a, _b, _c;
|
|
9572
9723
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9573
9724
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9574
9725
|
if (handlerType) {
|
|
9575
9726
|
if (handlerType === "custom") {
|
|
9576
|
-
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9727
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9728
|
+
"isSync",
|
|
9729
|
+
"Run in Sync",
|
|
9730
|
+
["Yes", "No"]
|
|
9731
|
+
);
|
|
9577
9732
|
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9578
9733
|
type: "Control",
|
|
9579
9734
|
scope: "#/properties/emptyBox",
|
|
@@ -9586,14 +9741,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9586
9741
|
style: {}
|
|
9587
9742
|
}
|
|
9588
9743
|
};
|
|
9589
|
-
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9744
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9745
|
+
"eventCode",
|
|
9746
|
+
"Write Custom Code",
|
|
9747
|
+
false
|
|
9748
|
+
);
|
|
9590
9749
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9591
9750
|
} else if (handlerType === "api") {
|
|
9592
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9751
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9752
|
+
xs: 0,
|
|
9753
|
+
sm: 0,
|
|
9754
|
+
md: 4,
|
|
9755
|
+
lg: 6
|
|
9756
|
+
});
|
|
9593
9757
|
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9594
9758
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9595
9759
|
} else if (handlerType === "inBuiltFunction") {
|
|
9596
|
-
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9760
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9761
|
+
"inBuiltFunctionType",
|
|
9762
|
+
"Function Name"
|
|
9763
|
+
);
|
|
9597
9764
|
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9598
9765
|
type: "Control",
|
|
9599
9766
|
scope: "#/properties/emptyBox",
|
|
@@ -9606,10 +9773,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9606
9773
|
style: {}
|
|
9607
9774
|
}
|
|
9608
9775
|
};
|
|
9609
|
-
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9776
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9777
|
+
"funcParametersCode",
|
|
9778
|
+
"Write Custom Code for Functions Parameter",
|
|
9779
|
+
true
|
|
9780
|
+
);
|
|
9610
9781
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9611
9782
|
} else if (handlerType === "refresh") {
|
|
9612
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9783
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9784
|
+
xs: 0,
|
|
9785
|
+
sm: 0,
|
|
9786
|
+
md: 4,
|
|
9787
|
+
lg: 6
|
|
9788
|
+
});
|
|
9613
9789
|
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9614
9790
|
schema2.properties.refreshElements.required = ["value"];
|
|
9615
9791
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
@@ -9623,9 +9799,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9623
9799
|
];
|
|
9624
9800
|
}
|
|
9625
9801
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9626
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9802
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9803
|
+
uiSchema
|
|
9804
|
+
);
|
|
9627
9805
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9628
9806
|
}
|
|
9807
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9808
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9809
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9810
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9811
|
+
if (path) {
|
|
9812
|
+
const pathArrayAll = path.split(".");
|
|
9813
|
+
const arr = [];
|
|
9814
|
+
pathArrayAll.map((e, i) => {
|
|
9815
|
+
if (i === 0) {
|
|
9816
|
+
arr.push(e);
|
|
9817
|
+
return;
|
|
9818
|
+
}
|
|
9819
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9820
|
+
});
|
|
9821
|
+
arr.map((e) => {
|
|
9822
|
+
const data = _.get(config2, e);
|
|
9823
|
+
pathArray.push({
|
|
9824
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9825
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9826
|
+
});
|
|
9827
|
+
});
|
|
9828
|
+
}
|
|
9829
|
+
schema2.properties.pageName.path = pathArray;
|
|
9629
9830
|
store22.setSchema(schema2);
|
|
9630
9831
|
store22.setUiSchema(uiSchema);
|
|
9631
9832
|
},
|
|
@@ -9634,10 +9835,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9634
9835
|
return EventUiSchema;
|
|
9635
9836
|
},
|
|
9636
9837
|
getSchema: () => {
|
|
9838
|
+
var _a, _b, _c;
|
|
9637
9839
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9638
9840
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9639
9841
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9640
9842
|
}
|
|
9843
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9844
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9845
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9846
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9847
|
+
if (path) {
|
|
9848
|
+
const pathArrayAll = path.split(".");
|
|
9849
|
+
const arr = [];
|
|
9850
|
+
pathArrayAll.map((e, i) => {
|
|
9851
|
+
if (i === 0) {
|
|
9852
|
+
arr.push(e);
|
|
9853
|
+
return;
|
|
9854
|
+
}
|
|
9855
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9856
|
+
});
|
|
9857
|
+
arr.map((e) => {
|
|
9858
|
+
const data = _.get(config2, e);
|
|
9859
|
+
pathArray.push({
|
|
9860
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9861
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9862
|
+
});
|
|
9863
|
+
});
|
|
9864
|
+
}
|
|
9865
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9641
9866
|
return schema2;
|
|
9642
9867
|
},
|
|
9643
9868
|
okHandler: () => okHandler(store2),
|
|
@@ -9645,7 +9870,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9645
9870
|
onChange: function() {
|
|
9646
9871
|
var _a, _b, _c;
|
|
9647
9872
|
if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.Handler) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.Handler) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.Handler) !== void 0) {
|
|
9648
|
-
this.refreshPage(
|
|
9873
|
+
this.refreshPage(
|
|
9874
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9875
|
+
store2
|
|
9876
|
+
);
|
|
9649
9877
|
}
|
|
9650
9878
|
},
|
|
9651
9879
|
addEvent: function() {
|
|
@@ -9671,7 +9899,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9671
9899
|
this.setPage();
|
|
9672
9900
|
},
|
|
9673
9901
|
deleteEvent: async function() {
|
|
9674
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9902
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9903
|
+
false
|
|
9904
|
+
);
|
|
9675
9905
|
store2.updateDialog("popUpEvent");
|
|
9676
9906
|
},
|
|
9677
9907
|
backHandler: function() {
|
|
@@ -9683,10 +9913,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9683
9913
|
store2.updateDialog("popUpEvent");
|
|
9684
9914
|
},
|
|
9685
9915
|
copyPasteElement: function() {
|
|
9686
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9916
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9917
|
+
store2,
|
|
9918
|
+
this.setPage.bind(this)
|
|
9919
|
+
);
|
|
9687
9920
|
},
|
|
9688
9921
|
RemoveItemButton: function() {
|
|
9689
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9922
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9923
|
+
store2
|
|
9924
|
+
);
|
|
9925
|
+
},
|
|
9926
|
+
onNavigatePopupYes: function() {
|
|
9927
|
+
try {
|
|
9928
|
+
store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
|
|
9929
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9930
|
+
} catch (e) {
|
|
9931
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9932
|
+
store2.setNotify({
|
|
9933
|
+
FailMessage: "Couldn't navigate page",
|
|
9934
|
+
Fail: true
|
|
9935
|
+
});
|
|
9936
|
+
}
|
|
9937
|
+
},
|
|
9938
|
+
onNavigatePopupNo: function() {
|
|
9939
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9690
9940
|
}
|
|
9691
9941
|
};
|
|
9692
9942
|
};
|
|
@@ -9857,16 +10107,17 @@ function executeCustomHandler(params) {
|
|
|
9857
10107
|
}
|
|
9858
10108
|
}
|
|
9859
10109
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10110
|
+
var _a, _b, _c;
|
|
9860
10111
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9861
10112
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9862
10113
|
store2.setSchema((pre) => {
|
|
9863
|
-
var
|
|
10114
|
+
var _a2;
|
|
9864
10115
|
return {
|
|
9865
10116
|
...pre,
|
|
9866
10117
|
properties: {
|
|
9867
10118
|
...pre.properties,
|
|
9868
10119
|
[componentName]: {
|
|
9869
|
-
...(
|
|
10120
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9870
10121
|
oneOf: handlerResponse.data
|
|
9871
10122
|
}
|
|
9872
10123
|
}
|
|
@@ -9876,13 +10127,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9876
10127
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9877
10128
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9878
10129
|
store2.setSchema((pre) => {
|
|
9879
|
-
var
|
|
10130
|
+
var _a2;
|
|
9880
10131
|
return {
|
|
9881
10132
|
...pre,
|
|
9882
10133
|
properties: {
|
|
9883
10134
|
...pre.properties,
|
|
9884
10135
|
[componentName]: {
|
|
9885
|
-
...(
|
|
10136
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9886
10137
|
type: "array",
|
|
9887
10138
|
items: {
|
|
9888
10139
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -9902,6 +10153,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9902
10153
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9903
10154
|
});
|
|
9904
10155
|
}
|
|
10156
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10157
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10158
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10159
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10160
|
+
store2.setFormdata((pre) => {
|
|
10161
|
+
return { ...pre, ...formDataHolder };
|
|
10162
|
+
});
|
|
10163
|
+
}
|
|
9905
10164
|
} else {
|
|
9906
10165
|
if (handlerResponse) {
|
|
9907
10166
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -10059,6 +10318,7 @@ var service = (funcParams) => {
|
|
|
10059
10318
|
return {
|
|
10060
10319
|
setPage: async function() {
|
|
10061
10320
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10321
|
+
funcParams.store.setAdditionalErrors([]);
|
|
10062
10322
|
funcParams.store.setFormdata({});
|
|
10063
10323
|
funcParams.store.newData = {};
|
|
10064
10324
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
@@ -10207,7 +10467,7 @@ var service = (funcParams) => {
|
|
|
10207
10467
|
service: funcParams.service,
|
|
10208
10468
|
serviceHolder: this,
|
|
10209
10469
|
eventGroups,
|
|
10210
|
-
formDataHolder
|
|
10470
|
+
formDataHolder: {}
|
|
10211
10471
|
});
|
|
10212
10472
|
funcParams.store.setSchema(
|
|
10213
10473
|
(pre) => {
|
|
@@ -10222,11 +10482,11 @@ var service = (funcParams) => {
|
|
|
10222
10482
|
funcParams.store.setUiSchema(uiSchema);
|
|
10223
10483
|
},
|
|
10224
10484
|
onCellRenderer: (cellParams) => {
|
|
10225
|
-
var _a, _b, _c;
|
|
10485
|
+
var _a, _b, _c, _d;
|
|
10226
10486
|
if (eventGroups.onCellRenderer) {
|
|
10227
10487
|
let finalResponse = {};
|
|
10228
10488
|
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]) {
|
|
10489
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10230
10490
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10231
10491
|
finalResponse = executeEvents({
|
|
10232
10492
|
...executeEventsParameters,
|
|
@@ -10830,6 +11090,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10830
11090
|
if (config2.style) {
|
|
10831
11091
|
inputField.config.style = JSON.parse(config2.style);
|
|
10832
11092
|
}
|
|
11093
|
+
if (config2.multiline) {
|
|
11094
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11095
|
+
}
|
|
10833
11096
|
if (config2.InputFormatingAndMasking) {
|
|
10834
11097
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10835
11098
|
}
|
|
@@ -11123,7 +11386,8 @@ function Card(theme) {
|
|
|
11123
11386
|
wrapperStyle: {
|
|
11124
11387
|
position: "relative",
|
|
11125
11388
|
top: "50%",
|
|
11126
|
-
transform: "translateY(-50%)"
|
|
11389
|
+
transform: "translateY(-50%)",
|
|
11390
|
+
marginBottom: 0
|
|
11127
11391
|
},
|
|
11128
11392
|
componentsBoxStyle: {
|
|
11129
11393
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
@@ -11162,7 +11426,8 @@ function Card(theme) {
|
|
|
11162
11426
|
gap: 0
|
|
11163
11427
|
},
|
|
11164
11428
|
wrapperStyle: {
|
|
11165
|
-
background: "transparent"
|
|
11429
|
+
background: "transparent",
|
|
11430
|
+
marginBottom: 0
|
|
11166
11431
|
},
|
|
11167
11432
|
componentsBoxStyle: {
|
|
11168
11433
|
flexDirection: "column",
|
|
@@ -11183,7 +11448,8 @@ function Card(theme) {
|
|
|
11183
11448
|
gap: 0
|
|
11184
11449
|
},
|
|
11185
11450
|
wrapperStyle: {
|
|
11186
|
-
background: "transparent"
|
|
11451
|
+
background: "transparent",
|
|
11452
|
+
marginBottom: 0
|
|
11187
11453
|
},
|
|
11188
11454
|
componentsBoxStyle: {
|
|
11189
11455
|
flexDirection: "row",
|
|
@@ -11216,6 +11482,7 @@ function Card(theme) {
|
|
|
11216
11482
|
justifyContent: "flex-start",
|
|
11217
11483
|
width: "auto",
|
|
11218
11484
|
margin: "-8px",
|
|
11485
|
+
marginLeft: "-24px",
|
|
11219
11486
|
height: 0
|
|
11220
11487
|
}
|
|
11221
11488
|
},
|
|
@@ -11240,7 +11507,7 @@ function Card(theme) {
|
|
|
11240
11507
|
width: "auto",
|
|
11241
11508
|
margin: "-8px",
|
|
11242
11509
|
position: "absolute",
|
|
11243
|
-
left: "
|
|
11510
|
+
left: "24px"
|
|
11244
11511
|
}
|
|
11245
11512
|
},
|
|
11246
11513
|
options: {
|
|
@@ -11264,8 +11531,7 @@ function Card(theme) {
|
|
|
11264
11531
|
background: "inherit",
|
|
11265
11532
|
width: "calc(100%+8px)",
|
|
11266
11533
|
margin: "-8px",
|
|
11267
|
-
marginTop: { xs: "
|
|
11268
|
-
lineHeight: "1"
|
|
11534
|
+
marginTop: { xs: "16px", md: "20px" }
|
|
11269
11535
|
},
|
|
11270
11536
|
layout: 12
|
|
11271
11537
|
},
|
|
@@ -12034,41 +12300,6 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12034
12300
|
}
|
|
12035
12301
|
return thought;
|
|
12036
12302
|
};
|
|
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
12303
|
let schema = {
|
|
12073
12304
|
type: "object",
|
|
12074
12305
|
properties: {},
|
|
@@ -12323,9 +12554,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12323
12554
|
case "Thought":
|
|
12324
12555
|
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12325
12556
|
break;
|
|
12326
|
-
case "PdfViewer":
|
|
12327
|
-
elements = buildPdfViewer(config2);
|
|
12328
|
-
break;
|
|
12329
12557
|
default:
|
|
12330
12558
|
schema = {
|
|
12331
12559
|
type: "object",
|
|
@@ -12355,39 +12583,30 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12355
12583
|
});
|
|
12356
12584
|
} else if (config2.type == "Table") {
|
|
12357
12585
|
const sizeMap = {};
|
|
12358
|
-
const filterMap = {};
|
|
12359
12586
|
if (config2.sizeHolder) {
|
|
12360
12587
|
config2.sizeHolder.map((e, i) => {
|
|
12361
12588
|
sizeMap[e.keyName] = e.value;
|
|
12362
12589
|
});
|
|
12363
12590
|
}
|
|
12364
|
-
if (config2.enableColumnFilter) {
|
|
12365
|
-
config2.enableColumnFilter.map((e) => {
|
|
12366
|
-
filterMap[e.keyName] = true;
|
|
12367
|
-
});
|
|
12368
|
-
}
|
|
12369
12591
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12370
|
-
|
|
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
|
+
};
|
|
12371
12602
|
if (cellElem.type) {
|
|
12372
12603
|
return {
|
|
12373
|
-
accessorKey: cellElem.name,
|
|
12374
|
-
header: cellElem.label || cellElem.name,
|
|
12375
|
-
size: sizeMap[cellElem.name] || 180,
|
|
12376
|
-
type: cellElem.columnFormat,
|
|
12377
12604
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12378
12605
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12379
|
-
|
|
12380
|
-
columnFilterModeOptions: config2.filteringOptions
|
|
12606
|
+
...commonProperties
|
|
12381
12607
|
};
|
|
12382
12608
|
} 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
|
-
};
|
|
12609
|
+
return commonProperties;
|
|
12391
12610
|
}
|
|
12392
12611
|
});
|
|
12393
12612
|
} else if (config2.type == "Array") {
|