impaktapps-ui-builder 0.0.101-alpha.22 → 0.0.101-alpha.220
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 +562 -285
- 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/buildPropertiesSection.d.ts +10 -10
- 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 +18 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +88 -73
- 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 -27
- 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 -59
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -111
|
@@ -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" },
|
|
@@ -6281,7 +6288,7 @@ const ComponentSchema = {
|
|
|
6281
6288
|
{ title: "Tree ", const: "TreeMap" },
|
|
6282
6289
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
6283
6290
|
{ title: "Thought of the day", const: "Thought" },
|
|
6284
|
-
{ title: "
|
|
6291
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6285
6292
|
]
|
|
6286
6293
|
},
|
|
6287
6294
|
columnFormat: {
|
|
@@ -6435,23 +6442,20 @@ const ComponentSchema = {
|
|
|
6435
6442
|
}
|
|
6436
6443
|
},
|
|
6437
6444
|
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
|
-
}
|
|
6445
|
+
oneOf: [
|
|
6446
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6447
|
+
{ const: "contains", title: "Contain" },
|
|
6448
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6449
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6450
|
+
{ const: "equals", title: "Equals" },
|
|
6451
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6452
|
+
{ const: "between", title: "Between" },
|
|
6453
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6454
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6455
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6456
|
+
{ const: "lessThan", title: "Less than" },
|
|
6457
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6458
|
+
]
|
|
6455
6459
|
},
|
|
6456
6460
|
legendLabels: {
|
|
6457
6461
|
type: "array",
|
|
@@ -6567,6 +6571,9 @@ const ComponentSchema = {
|
|
|
6567
6571
|
{ title: "Info", const: "info" }
|
|
6568
6572
|
]
|
|
6569
6573
|
},
|
|
6574
|
+
pageName: {
|
|
6575
|
+
path: []
|
|
6576
|
+
},
|
|
6570
6577
|
name: {
|
|
6571
6578
|
type: "string"
|
|
6572
6579
|
},
|
|
@@ -6828,15 +6835,16 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6828
6835
|
config: {
|
|
6829
6836
|
layout: 11,
|
|
6830
6837
|
main: {
|
|
6831
|
-
heading: "Are you sure you want to delete ?"
|
|
6838
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
6832
6839
|
},
|
|
6833
6840
|
style: {
|
|
6834
|
-
marginTop: "-20px",
|
|
6835
|
-
fontSize: "20px",
|
|
6836
6841
|
"&.MuiTypography-root": {
|
|
6837
|
-
padding: "
|
|
6842
|
+
padding: "0px 20px",
|
|
6838
6843
|
textAlign: "center",
|
|
6839
|
-
lineHeight: "1"
|
|
6844
|
+
lineHeight: "1.2",
|
|
6845
|
+
fontWeight: "normal",
|
|
6846
|
+
fontSize: "18px",
|
|
6847
|
+
marginBottom: theme.spacing(5)
|
|
6840
6848
|
}
|
|
6841
6849
|
}
|
|
6842
6850
|
}
|
|
@@ -6865,6 +6873,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6865
6873
|
},
|
|
6866
6874
|
style: {
|
|
6867
6875
|
position: "absolute",
|
|
6876
|
+
padding: "8px 0px",
|
|
6877
|
+
fontSize: "16px",
|
|
6868
6878
|
bottom: 0,
|
|
6869
6879
|
left: 0,
|
|
6870
6880
|
width: "50%",
|
|
@@ -6900,6 +6910,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6900
6910
|
},
|
|
6901
6911
|
style: {
|
|
6902
6912
|
position: "absolute",
|
|
6913
|
+
padding: "8px 0px",
|
|
6914
|
+
fontSize: "16px",
|
|
6903
6915
|
bottom: 0,
|
|
6904
6916
|
right: 0,
|
|
6905
6917
|
width: "50%",
|
|
@@ -6948,15 +6960,17 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6948
6960
|
config: {
|
|
6949
6961
|
layout: 11,
|
|
6950
6962
|
main: {
|
|
6951
|
-
heading: "Are you sure you want to delete ?"
|
|
6963
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
6952
6964
|
},
|
|
6953
6965
|
style: {
|
|
6954
|
-
marginTop: "-20px",
|
|
6955
6966
|
fontSize: "20px",
|
|
6956
6967
|
"&.MuiTypography-root": {
|
|
6957
|
-
padding: "
|
|
6968
|
+
padding: "0px 20px",
|
|
6958
6969
|
textAlign: "center",
|
|
6959
|
-
lineHeight: "1"
|
|
6970
|
+
lineHeight: "1.2",
|
|
6971
|
+
fontWeight: "normal",
|
|
6972
|
+
fontSize: "18px",
|
|
6973
|
+
marginBottom: theme.spacing(5)
|
|
6960
6974
|
}
|
|
6961
6975
|
}
|
|
6962
6976
|
}
|
|
@@ -6985,6 +6999,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6985
6999
|
},
|
|
6986
7000
|
style: {
|
|
6987
7001
|
position: "absolute",
|
|
7002
|
+
padding: "8px 0px",
|
|
7003
|
+
fontSize: "16px",
|
|
6988
7004
|
bottom: 0,
|
|
6989
7005
|
left: 0,
|
|
6990
7006
|
width: "50%",
|
|
@@ -7020,6 +7036,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7020
7036
|
},
|
|
7021
7037
|
style: {
|
|
7022
7038
|
position: "absolute",
|
|
7039
|
+
padding: "8px 0px",
|
|
7040
|
+
fontSize: "16px",
|
|
7023
7041
|
bottom: 0,
|
|
7024
7042
|
right: 0,
|
|
7025
7043
|
width: "50%",
|
|
@@ -7040,6 +7058,30 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7040
7058
|
}
|
|
7041
7059
|
]
|
|
7042
7060
|
},
|
|
7061
|
+
{
|
|
7062
|
+
type: "Control",
|
|
7063
|
+
scope: "#/properties/pageName",
|
|
7064
|
+
options: {
|
|
7065
|
+
widget: "Breadcrumb"
|
|
7066
|
+
},
|
|
7067
|
+
config: {
|
|
7068
|
+
layout: 12,
|
|
7069
|
+
main: {
|
|
7070
|
+
onNavigatePopupNo: "onNavigatePopupNo",
|
|
7071
|
+
onNavigatePopupYes: "onNavigatePopupYes"
|
|
7072
|
+
},
|
|
7073
|
+
style: {
|
|
7074
|
+
paddingLeft: theme.spacing(3),
|
|
7075
|
+
color: theme.palette.grey[600],
|
|
7076
|
+
fontSize: "10px",
|
|
7077
|
+
position: "fixed",
|
|
7078
|
+
bottom: "24px",
|
|
7079
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7080
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
7081
|
+
backgroundColor: theme.palette.background.default
|
|
7082
|
+
}
|
|
7083
|
+
}
|
|
7084
|
+
},
|
|
7043
7085
|
{
|
|
7044
7086
|
type: "Control",
|
|
7045
7087
|
scope: "#/properties/notify",
|
|
@@ -7312,7 +7354,7 @@ const EventSection = (theme) => {
|
|
|
7312
7354
|
elements: [
|
|
7313
7355
|
{
|
|
7314
7356
|
accessorKey: "eventType",
|
|
7315
|
-
header: "Event Type",
|
|
7357
|
+
header: "Event's Type",
|
|
7316
7358
|
type: "string",
|
|
7317
7359
|
size: 300
|
|
7318
7360
|
},
|
|
@@ -7324,7 +7366,7 @@ const EventSection = (theme) => {
|
|
|
7324
7366
|
},
|
|
7325
7367
|
{
|
|
7326
7368
|
accessorKey: "Edit_Approve_Records",
|
|
7327
|
-
header: "Edit
|
|
7369
|
+
header: "Edit",
|
|
7328
7370
|
size: 150,
|
|
7329
7371
|
type: "action",
|
|
7330
7372
|
widget: {
|
|
@@ -7430,77 +7472,103 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7430
7472
|
const cardLayout = {
|
|
7431
7473
|
type: "Control",
|
|
7432
7474
|
scope: "#/properties/cardLayout",
|
|
7433
|
-
layout: 11.5,
|
|
7434
7475
|
options: {
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
type: "Control",
|
|
7453
|
-
scope: "#/properties/value",
|
|
7454
|
-
options: {
|
|
7455
|
-
widget: "InputField"
|
|
7456
|
-
},
|
|
7457
|
-
config: {
|
|
7458
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7459
|
-
main: {
|
|
7460
|
-
label: "Value",
|
|
7461
|
-
type: "number",
|
|
7462
|
-
helperText: "Number should be in range of 0 to 12",
|
|
7463
|
-
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7464
|
-
}
|
|
7465
|
-
}
|
|
7466
|
-
},
|
|
7467
|
-
emptyBox$1("cardEmpty")
|
|
7468
|
-
]
|
|
7476
|
+
widget: "Array"
|
|
7477
|
+
},
|
|
7478
|
+
config: {
|
|
7479
|
+
layout: 12,
|
|
7480
|
+
main: {
|
|
7481
|
+
label: "Card Layout",
|
|
7482
|
+
childElementLabel: "Card Layout"
|
|
7483
|
+
},
|
|
7484
|
+
style: {
|
|
7485
|
+
marginLeft: "-24px",
|
|
7486
|
+
marginBottom: "24px !important",
|
|
7487
|
+
labelStyle: {
|
|
7488
|
+
marginLeft: "24px"
|
|
7489
|
+
},
|
|
7490
|
+
detailsStyle: {
|
|
7491
|
+
marginLeft: "24px"
|
|
7492
|
+
}
|
|
7469
7493
|
}
|
|
7470
|
-
}
|
|
7494
|
+
},
|
|
7495
|
+
elements: [
|
|
7496
|
+
{
|
|
7497
|
+
type: "Control",
|
|
7498
|
+
scope: "#/properties/key",
|
|
7499
|
+
options: {
|
|
7500
|
+
widget: "SelectInputField"
|
|
7501
|
+
},
|
|
7502
|
+
config: {
|
|
7503
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7504
|
+
main: {
|
|
7505
|
+
label: "Screen Size"
|
|
7506
|
+
}
|
|
7507
|
+
}
|
|
7508
|
+
},
|
|
7509
|
+
{
|
|
7510
|
+
type: "Control",
|
|
7511
|
+
scope: "#/properties/value",
|
|
7512
|
+
options: {
|
|
7513
|
+
widget: "InputField"
|
|
7514
|
+
},
|
|
7515
|
+
config: {
|
|
7516
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7517
|
+
main: {
|
|
7518
|
+
label: "Value",
|
|
7519
|
+
type: "number",
|
|
7520
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7521
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7522
|
+
}
|
|
7523
|
+
}
|
|
7524
|
+
},
|
|
7525
|
+
emptyBox$1("cardEmpty")
|
|
7526
|
+
]
|
|
7471
7527
|
};
|
|
7472
7528
|
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7473
7529
|
return {
|
|
7474
7530
|
type: "Control",
|
|
7475
7531
|
scope: `#/properties/${parentScope}`,
|
|
7476
|
-
layout: 12,
|
|
7477
7532
|
options: {
|
|
7478
|
-
"
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7496
|
-
emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7497
|
-
]
|
|
7533
|
+
widget: "Array"
|
|
7534
|
+
},
|
|
7535
|
+
config: {
|
|
7536
|
+
layout: 12,
|
|
7537
|
+
main: {
|
|
7538
|
+
label: childLabel,
|
|
7539
|
+
childElementLabel: childLabel
|
|
7540
|
+
},
|
|
7541
|
+
style: {
|
|
7542
|
+
marginLeft: "-24px",
|
|
7543
|
+
marginBottom: "24px !important",
|
|
7544
|
+
labelStyle: {
|
|
7545
|
+
marginLeft: "24px"
|
|
7546
|
+
},
|
|
7547
|
+
detailsStyle: {
|
|
7548
|
+
marginLeft: "24px"
|
|
7549
|
+
}
|
|
7498
7550
|
}
|
|
7499
|
-
}
|
|
7551
|
+
},
|
|
7552
|
+
elements: [
|
|
7553
|
+
{
|
|
7554
|
+
type: "Control",
|
|
7555
|
+
scope: `#/properties/${childScope}`,
|
|
7556
|
+
options: {
|
|
7557
|
+
widget: "InputField"
|
|
7558
|
+
},
|
|
7559
|
+
config: {
|
|
7560
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7561
|
+
main: {
|
|
7562
|
+
label: childLabel || "Labels for Tab"
|
|
7563
|
+
}
|
|
7564
|
+
}
|
|
7565
|
+
},
|
|
7566
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7567
|
+
]
|
|
7500
7568
|
};
|
|
7501
7569
|
};
|
|
7502
7570
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7503
|
-
sizeHolder.
|
|
7571
|
+
sizeHolder.elements[1] = {
|
|
7504
7572
|
type: "Control",
|
|
7505
7573
|
scope: `#/properties/value`,
|
|
7506
7574
|
options: {
|
|
@@ -7513,7 +7581,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7513
7581
|
}
|
|
7514
7582
|
}
|
|
7515
7583
|
};
|
|
7516
|
-
sizeHolder.
|
|
7584
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7517
7585
|
const getInputField = (scope, label) => {
|
|
7518
7586
|
return {
|
|
7519
7587
|
type: "Control",
|
|
@@ -7552,17 +7620,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7552
7620
|
main: {
|
|
7553
7621
|
label: label || "Details",
|
|
7554
7622
|
isAccordion: true
|
|
7555
|
-
}
|
|
7556
|
-
wrapperStyle: {
|
|
7557
|
-
marginTop: "-6px",
|
|
7558
|
-
marginBottom: "-8px",
|
|
7559
|
-
marginLeft: "-34px",
|
|
7560
|
-
width: "108%"
|
|
7561
|
-
},
|
|
7562
|
-
componentsBoxStyle: {
|
|
7563
|
-
marginLeft: "12px"
|
|
7564
|
-
},
|
|
7565
|
-
defaultStyle: true
|
|
7623
|
+
}
|
|
7566
7624
|
},
|
|
7567
7625
|
elements: elements || []
|
|
7568
7626
|
};
|
|
@@ -7684,7 +7742,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7684
7742
|
case "Text":
|
|
7685
7743
|
uiSchema.elements = [
|
|
7686
7744
|
getInputField("placeholder", "Placeholder"),
|
|
7687
|
-
|
|
7745
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7688
7746
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7689
7747
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7690
7748
|
];
|
|
@@ -7693,7 +7751,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7693
7751
|
uiSchema.elements = [
|
|
7694
7752
|
getInputField("placeholder", "Placeholder"),
|
|
7695
7753
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7696
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7754
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7755
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7697
7756
|
];
|
|
7698
7757
|
break;
|
|
7699
7758
|
case "SpeedoMeter":
|
|
@@ -7773,7 +7832,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7773
7832
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7774
7833
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7775
7834
|
getInputField("leftMargin", "Left Margin"),
|
|
7776
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7835
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7777
7836
|
getArrayControl("legendLabels", "label"),
|
|
7778
7837
|
getArrayControl("pieArcColors", "color")
|
|
7779
7838
|
];
|
|
@@ -8353,54 +8412,136 @@ function okHandler(store2) {
|
|
|
8353
8412
|
}
|
|
8354
8413
|
}
|
|
8355
8414
|
const sectionLabels = {
|
|
8356
|
-
Select: ["Core", "Properties", "Value", "
|
|
8357
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8358
|
-
Table: ["Core", "Components", "Properties", "
|
|
8359
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8415
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8416
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8417
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8418
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8360
8419
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8361
8420
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8362
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
8363
|
-
card: ["Core", "Properties", "
|
|
8364
|
-
UploadFile: ["Core", "
|
|
8365
|
-
Graph: ["Core", "Properties", "
|
|
8366
|
-
DownloadFile: ["Core", "
|
|
8367
|
-
Box: ["Core", "
|
|
8368
|
-
Properties: ["Core", "Properties", "
|
|
8369
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
8370
|
-
RankCard: ["Core", "Properties", "
|
|
8371
|
-
Slider: ["Core", "Components", "
|
|
8372
|
-
Timer: ["Core", "
|
|
8373
|
-
Rank: ["Core", "
|
|
8374
|
-
Button: ["Core", "Properties", "
|
|
8421
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8422
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8423
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8424
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8425
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8426
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8427
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8428
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8429
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8430
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8431
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8432
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8433
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8375
8434
|
Array: ["Core", "Components", "Validation"],
|
|
8376
|
-
Radio: ["Core", "Properties", "
|
|
8377
|
-
Text: ["Core", "Properties", "
|
|
8378
|
-
TextArea: ["Core", "Properties", "
|
|
8435
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8436
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8437
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8379
8438
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8380
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8381
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8382
|
-
InputSlider: ["Core", "Properties", "
|
|
8383
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8439
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8440
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8441
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8442
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8384
8443
|
ColumnGroup: ["Core", "Components"],
|
|
8385
|
-
Thought: ["Core", "Properties", "
|
|
8444
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8386
8445
|
};
|
|
8387
8446
|
function refreshPage(type, store2) {
|
|
8388
|
-
var _a;
|
|
8447
|
+
var _a, _b;
|
|
8389
8448
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8449
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8390
8450
|
if (type) {
|
|
8391
8451
|
const sectionUiSchema = {
|
|
8392
8452
|
Core: CoreSection,
|
|
8393
8453
|
Value: ValueTab,
|
|
8394
8454
|
Style: StyleSection,
|
|
8395
|
-
|
|
8455
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8396
8456
|
Components: TableSection(store2.theme.myTheme),
|
|
8397
8457
|
Properties: buildPropertiesSection(type),
|
|
8398
8458
|
Validation: ValidationSection
|
|
8399
8459
|
};
|
|
8400
8460
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8401
|
-
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "
|
|
8461
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8402
8462
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8403
8463
|
}
|
|
8464
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8465
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8466
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8467
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8468
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8469
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8470
|
+
type: "Control",
|
|
8471
|
+
scope: "#/properties/columnFormat",
|
|
8472
|
+
options: {
|
|
8473
|
+
widget: "SelectInputField"
|
|
8474
|
+
},
|
|
8475
|
+
config: {
|
|
8476
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8477
|
+
main: {
|
|
8478
|
+
label: "Column Format"
|
|
8479
|
+
}
|
|
8480
|
+
}
|
|
8481
|
+
};
|
|
8482
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8483
|
+
type: "Control",
|
|
8484
|
+
scope: "#/properties/filteringOptions",
|
|
8485
|
+
options: {
|
|
8486
|
+
widget: "SelectInputField"
|
|
8487
|
+
},
|
|
8488
|
+
config: {
|
|
8489
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8490
|
+
main: {
|
|
8491
|
+
label: "Filter Mode",
|
|
8492
|
+
multiple: true
|
|
8493
|
+
}
|
|
8494
|
+
}
|
|
8495
|
+
};
|
|
8496
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8497
|
+
type: "Control",
|
|
8498
|
+
scope: "#/properties/enableFilter",
|
|
8499
|
+
options: {
|
|
8500
|
+
widget: "RadioInputField"
|
|
8501
|
+
},
|
|
8502
|
+
config: {
|
|
8503
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8504
|
+
main: {
|
|
8505
|
+
label: "Enable Filter",
|
|
8506
|
+
options: ["Yes", "No"]
|
|
8507
|
+
}
|
|
8508
|
+
}
|
|
8509
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8510
|
+
type: "Control",
|
|
8511
|
+
scope: "#/properties/enableSorting",
|
|
8512
|
+
options: {
|
|
8513
|
+
widget: "RadioInputField"
|
|
8514
|
+
},
|
|
8515
|
+
config: {
|
|
8516
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8517
|
+
main: {
|
|
8518
|
+
label: "Enable Sorting",
|
|
8519
|
+
options: ["Yes", "No"]
|
|
8520
|
+
}
|
|
8521
|
+
}
|
|
8522
|
+
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8523
|
+
type: "Control",
|
|
8524
|
+
scope: "#/properties/columnKey",
|
|
8525
|
+
config: {
|
|
8526
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8527
|
+
main: {
|
|
8528
|
+
label: "Column Key"
|
|
8529
|
+
}
|
|
8530
|
+
},
|
|
8531
|
+
options: {
|
|
8532
|
+
widget: "Input"
|
|
8533
|
+
}
|
|
8534
|
+
}, UiSchema.elements[0].elements[0].elements[9] = {
|
|
8535
|
+
type: "Control",
|
|
8536
|
+
scope: "#/properties/proc",
|
|
8537
|
+
config: {
|
|
8538
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 0 }
|
|
8539
|
+
},
|
|
8540
|
+
options: {
|
|
8541
|
+
widget: "EmptyBox"
|
|
8542
|
+
}
|
|
8543
|
+
};
|
|
8544
|
+
}
|
|
8404
8545
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8405
8546
|
this.ElementPathSetter(UiSchema);
|
|
8406
8547
|
}
|
|
@@ -8422,10 +8563,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8422
8563
|
return getFormdataFromSessionStorage(path);
|
|
8423
8564
|
},
|
|
8424
8565
|
getSchema: function() {
|
|
8566
|
+
var _a, _b, _c;
|
|
8425
8567
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8426
8568
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8427
8569
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8428
8570
|
}
|
|
8571
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8572
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8573
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8574
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8575
|
+
if (path) {
|
|
8576
|
+
const pathArrayAll = path.split(".");
|
|
8577
|
+
const arr = [];
|
|
8578
|
+
pathArrayAll.map((e, i) => {
|
|
8579
|
+
if (i === 0) {
|
|
8580
|
+
arr.push(e);
|
|
8581
|
+
return;
|
|
8582
|
+
}
|
|
8583
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8584
|
+
});
|
|
8585
|
+
arr.map((e) => {
|
|
8586
|
+
const data = _.get(config2, e);
|
|
8587
|
+
pathArray.push({
|
|
8588
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8589
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8590
|
+
});
|
|
8591
|
+
});
|
|
8592
|
+
}
|
|
8593
|
+
schema2.properties.pageName.path = pathArray;
|
|
8429
8594
|
return schema2;
|
|
8430
8595
|
},
|
|
8431
8596
|
okHandler: () => okHandler(store2),
|
|
@@ -8538,6 +8703,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8538
8703
|
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8539
8704
|
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8540
8705
|
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8706
|
+
store2.setNotify({
|
|
8707
|
+
SuccessMessage: `${elementType} Copied Successfully`,
|
|
8708
|
+
Success: true
|
|
8709
|
+
});
|
|
8541
8710
|
store2.setSchema(schema2);
|
|
8542
8711
|
store2.setUiSchema(uiSchema);
|
|
8543
8712
|
},
|
|
@@ -8563,15 +8732,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8563
8732
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8564
8733
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8565
8734
|
const notificationMessages = {
|
|
8566
|
-
|
|
8567
|
-
Component: "The component cannot be integrated into the
|
|
8735
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8736
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8568
8737
|
};
|
|
8569
8738
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8570
8739
|
store2.setNotify({
|
|
8571
|
-
FailMessage: notificationMessages.
|
|
8740
|
+
FailMessage: notificationMessages.Events,
|
|
8572
8741
|
Fail: true
|
|
8573
8742
|
});
|
|
8574
|
-
} else if (copiedConfig.name && elementType === "
|
|
8743
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8575
8744
|
store2.setNotify({
|
|
8576
8745
|
FailMessage: notificationMessages.Component,
|
|
8577
8746
|
Fail: true
|
|
@@ -8597,8 +8766,33 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8597
8766
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8598
8767
|
},
|
|
8599
8768
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8769
|
+
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;
|
|
8600
8770
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8601
|
-
uiSchema.elements[
|
|
8771
|
+
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) {
|
|
8772
|
+
uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8773
|
+
} 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) {
|
|
8774
|
+
uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8775
|
+
}
|
|
8776
|
+
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) {
|
|
8777
|
+
uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
|
|
8778
|
+
} 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) {
|
|
8779
|
+
uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
|
|
8780
|
+
}
|
|
8781
|
+
},
|
|
8782
|
+
onNavigatePopupYes: function() {
|
|
8783
|
+
try {
|
|
8784
|
+
store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
|
|
8785
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8786
|
+
} catch (e) {
|
|
8787
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8788
|
+
store2.setNotify({
|
|
8789
|
+
FailMessage: "Couldn't navigate page",
|
|
8790
|
+
Fail: true
|
|
8791
|
+
});
|
|
8792
|
+
}
|
|
8793
|
+
},
|
|
8794
|
+
onNavigatePopupNo: function() {
|
|
8795
|
+
store2.updateDialog(`pageNamepopup`);
|
|
8602
8796
|
}
|
|
8603
8797
|
};
|
|
8604
8798
|
};
|
|
@@ -8749,18 +8943,18 @@ const EventSchema = {
|
|
|
8749
8943
|
eventType: {
|
|
8750
8944
|
type: "string",
|
|
8751
8945
|
oneOf: [
|
|
8752
|
-
{ title: "Click
|
|
8753
|
-
{ title: "Load
|
|
8754
|
-
{ title: "Change
|
|
8755
|
-
{ title: "Mount
|
|
8946
|
+
{ title: "Click", const: "onClick" },
|
|
8947
|
+
{ title: "Load", const: "onLoad" },
|
|
8948
|
+
{ title: "Change", const: "onChange" },
|
|
8949
|
+
{ title: "Mount", const: "onMount" },
|
|
8756
8950
|
{ title: "Success", const: "Success" },
|
|
8757
|
-
{ title: "
|
|
8758
|
-
{ title: "Cell
|
|
8759
|
-
{ title: "
|
|
8760
|
-
{ title: "Back
|
|
8761
|
-
{ title: "Next
|
|
8762
|
-
{ title: "
|
|
8763
|
-
{ title: "
|
|
8951
|
+
{ title: "Start", const: "onStart" },
|
|
8952
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8953
|
+
{ title: "Upload", const: "onUpload" },
|
|
8954
|
+
{ title: "Back", const: "onBack" },
|
|
8955
|
+
{ title: "Next", const: "onNext" },
|
|
8956
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8957
|
+
{ title: "Download", const: "onDownload" },
|
|
8764
8958
|
{ title: "Fail", const: "Fail" }
|
|
8765
8959
|
]
|
|
8766
8960
|
},
|
|
@@ -8768,7 +8962,7 @@ const EventSchema = {
|
|
|
8768
8962
|
type: "string",
|
|
8769
8963
|
oneOf: [
|
|
8770
8964
|
{ title: "Custom", const: "custom" },
|
|
8771
|
-
{ title: "
|
|
8965
|
+
{ title: "API", const: "api" },
|
|
8772
8966
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8773
8967
|
{ title: "Refresh", const: "refresh" }
|
|
8774
8968
|
]
|
|
@@ -8797,15 +8991,18 @@ const EventSchema = {
|
|
|
8797
8991
|
},
|
|
8798
8992
|
RemoveItemButton: {
|
|
8799
8993
|
disabled: true
|
|
8994
|
+
},
|
|
8995
|
+
pageName: {
|
|
8996
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8800
8997
|
}
|
|
8801
8998
|
},
|
|
8802
8999
|
required: ["eventType", "Handler"]
|
|
8803
9000
|
};
|
|
8804
9001
|
const EventUiSchema = (theme) => {
|
|
8805
|
-
var _a
|
|
9002
|
+
var _a;
|
|
8806
9003
|
const uiSchema = {
|
|
8807
9004
|
type: "HorizontalLayout",
|
|
8808
|
-
heading: "Page-
|
|
9005
|
+
heading: "Page-Events",
|
|
8809
9006
|
elements: [
|
|
8810
9007
|
{
|
|
8811
9008
|
type: "TabLayout",
|
|
@@ -8939,7 +9136,7 @@ const EventUiSchema = (theme) => {
|
|
|
8939
9136
|
elements: [
|
|
8940
9137
|
{
|
|
8941
9138
|
accessorKey: "eventType",
|
|
8942
|
-
header: "Event Type",
|
|
9139
|
+
header: "Event's Type",
|
|
8943
9140
|
size: 300,
|
|
8944
9141
|
type: "string"
|
|
8945
9142
|
},
|
|
@@ -8951,7 +9148,7 @@ const EventUiSchema = (theme) => {
|
|
|
8951
9148
|
},
|
|
8952
9149
|
{
|
|
8953
9150
|
accessorKey: "Edit_Approve_Records",
|
|
8954
|
-
header: "Edit
|
|
9151
|
+
header: "Edit",
|
|
8955
9152
|
type: "action",
|
|
8956
9153
|
size: 150,
|
|
8957
9154
|
widget: {
|
|
@@ -9108,15 +9305,17 @@ const EventUiSchema = (theme) => {
|
|
|
9108
9305
|
config: {
|
|
9109
9306
|
layout: 11,
|
|
9110
9307
|
main: {
|
|
9111
|
-
heading: "Are you sure you want to delete ?"
|
|
9308
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
9112
9309
|
},
|
|
9113
9310
|
style: {
|
|
9114
|
-
marginTop: "-20px",
|
|
9115
9311
|
fontSize: "20px",
|
|
9116
9312
|
"&.MuiTypography-root": {
|
|
9117
|
-
padding: "
|
|
9313
|
+
padding: "0px 20px",
|
|
9118
9314
|
textAlign: "center",
|
|
9119
|
-
lineHeight: "1"
|
|
9315
|
+
lineHeight: "1.2",
|
|
9316
|
+
fontWeight: "normal",
|
|
9317
|
+
fontSize: "18px",
|
|
9318
|
+
marginBottom: theme.spacing(5)
|
|
9120
9319
|
}
|
|
9121
9320
|
}
|
|
9122
9321
|
}
|
|
@@ -9140,13 +9339,14 @@ const EventUiSchema = (theme) => {
|
|
|
9140
9339
|
name: "No",
|
|
9141
9340
|
startIcon: "ApproveIcon",
|
|
9142
9341
|
variant: "contained",
|
|
9143
|
-
color: "info",
|
|
9144
9342
|
type: "text",
|
|
9145
9343
|
onClick: "deletePopUpEvent",
|
|
9146
9344
|
size: "large"
|
|
9147
9345
|
},
|
|
9148
9346
|
style: {
|
|
9149
9347
|
position: "absolute",
|
|
9348
|
+
padding: "8px 0px",
|
|
9349
|
+
fontSize: "16px",
|
|
9150
9350
|
bottom: 0,
|
|
9151
9351
|
left: 0,
|
|
9152
9352
|
width: "50%",
|
|
@@ -9174,7 +9374,6 @@ const EventUiSchema = (theme) => {
|
|
|
9174
9374
|
layout: 6,
|
|
9175
9375
|
main: {
|
|
9176
9376
|
name: "Yes",
|
|
9177
|
-
startIcon: "ApproveIcon",
|
|
9178
9377
|
variant: "contained",
|
|
9179
9378
|
color: "error",
|
|
9180
9379
|
type: "text",
|
|
@@ -9183,6 +9382,8 @@ const EventUiSchema = (theme) => {
|
|
|
9183
9382
|
},
|
|
9184
9383
|
style: {
|
|
9185
9384
|
position: "absolute",
|
|
9385
|
+
padding: "8px 0px",
|
|
9386
|
+
fontSize: "16px",
|
|
9186
9387
|
bottom: 0,
|
|
9187
9388
|
right: 0,
|
|
9188
9389
|
width: "50%",
|
|
@@ -9203,6 +9404,30 @@ const EventUiSchema = (theme) => {
|
|
|
9203
9404
|
}
|
|
9204
9405
|
]
|
|
9205
9406
|
},
|
|
9407
|
+
{
|
|
9408
|
+
type: "Control",
|
|
9409
|
+
scope: "#/properties/pageName",
|
|
9410
|
+
options: {
|
|
9411
|
+
widget: "Breadcrumb"
|
|
9412
|
+
},
|
|
9413
|
+
config: {
|
|
9414
|
+
layout: 12,
|
|
9415
|
+
main: {
|
|
9416
|
+
onNavigatePopupNo: "onNavigatePopupNo",
|
|
9417
|
+
onNavigatePopupYes: "onNavigatePopupYes"
|
|
9418
|
+
},
|
|
9419
|
+
style: {
|
|
9420
|
+
paddingLeft: theme.spacing(3),
|
|
9421
|
+
color: theme.palette.grey[600],
|
|
9422
|
+
fontSize: "10px",
|
|
9423
|
+
position: "fixed",
|
|
9424
|
+
bottom: "24px",
|
|
9425
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9426
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
9427
|
+
backgroundColor: theme.palette.background.default
|
|
9428
|
+
}
|
|
9429
|
+
}
|
|
9430
|
+
},
|
|
9206
9431
|
{
|
|
9207
9432
|
type: "Control",
|
|
9208
9433
|
scope: "#/properties/notify",
|
|
@@ -9220,7 +9445,7 @@ const EventUiSchema = (theme) => {
|
|
|
9220
9445
|
style: {
|
|
9221
9446
|
flexDirection: "row",
|
|
9222
9447
|
position: "absolute",
|
|
9223
|
-
bottom:
|
|
9448
|
+
bottom: 10,
|
|
9224
9449
|
height: "fit-content",
|
|
9225
9450
|
overflow: "hidden",
|
|
9226
9451
|
zIndex: 1e3,
|
|
@@ -9239,78 +9464,19 @@ const EventUiSchema = (theme) => {
|
|
|
9239
9464
|
heading: "Copywriter@ACT21.IO"
|
|
9240
9465
|
},
|
|
9241
9466
|
style: {
|
|
9242
|
-
color: ((
|
|
9467
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9243
9468
|
fontSize: "11px",
|
|
9244
9469
|
textAlign: "center",
|
|
9245
|
-
lineHeight:
|
|
9470
|
+
lineHeight: 0,
|
|
9246
9471
|
width: "fit-content",
|
|
9247
9472
|
left: "50%",
|
|
9248
9473
|
position: "relative",
|
|
9249
|
-
margin:
|
|
9474
|
+
margin: "revert",
|
|
9250
9475
|
flexGrow: 1,
|
|
9251
9476
|
height: 0,
|
|
9252
9477
|
transform: "translate(-50%, 0%)"
|
|
9253
9478
|
}
|
|
9254
9479
|
}
|
|
9255
|
-
},
|
|
9256
|
-
{
|
|
9257
|
-
type: "Control",
|
|
9258
|
-
scope: "#/properties/FooterBackIcon",
|
|
9259
|
-
options: {
|
|
9260
|
-
widget: "Box"
|
|
9261
|
-
},
|
|
9262
|
-
config: {
|
|
9263
|
-
main: {
|
|
9264
|
-
iconName: "PrevIcon",
|
|
9265
|
-
onClick: "backHandler",
|
|
9266
|
-
width: "fit-content"
|
|
9267
|
-
},
|
|
9268
|
-
style: {
|
|
9269
|
-
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
9270
|
-
width: 20,
|
|
9271
|
-
height: 0,
|
|
9272
|
-
top: 0,
|
|
9273
|
-
right: { xs: "12px", sm: "84px" },
|
|
9274
|
-
position: "absolute",
|
|
9275
|
-
fontSize: "12px",
|
|
9276
|
-
cursor: "pointer",
|
|
9277
|
-
":hover": {
|
|
9278
|
-
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
9279
|
-
},
|
|
9280
|
-
marginRight: "20px"
|
|
9281
|
-
}
|
|
9282
|
-
}
|
|
9283
|
-
},
|
|
9284
|
-
{
|
|
9285
|
-
type: "Control",
|
|
9286
|
-
scope: "#/properties/FooterBackHandlerText",
|
|
9287
|
-
options: {
|
|
9288
|
-
widget: "Box"
|
|
9289
|
-
},
|
|
9290
|
-
config: {
|
|
9291
|
-
main: {
|
|
9292
|
-
heading: "Previous Page",
|
|
9293
|
-
onClick: "backHandler"
|
|
9294
|
-
},
|
|
9295
|
-
style: {
|
|
9296
|
-
display: { xs: "none", sm: "flex" },
|
|
9297
|
-
textAlign: "left",
|
|
9298
|
-
lineHeight: 1,
|
|
9299
|
-
height: 0,
|
|
9300
|
-
width: "fit-content",
|
|
9301
|
-
color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
|
|
9302
|
-
fontSize: "12px",
|
|
9303
|
-
cursor: "pointer",
|
|
9304
|
-
marginLeft: "2px",
|
|
9305
|
-
top: 3,
|
|
9306
|
-
right: "12px",
|
|
9307
|
-
position: "absolute",
|
|
9308
|
-
":hover": {
|
|
9309
|
-
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
9310
|
-
},
|
|
9311
|
-
marginRight: "4px"
|
|
9312
|
-
}
|
|
9313
|
-
}
|
|
9314
9480
|
}
|
|
9315
9481
|
]
|
|
9316
9482
|
}
|
|
@@ -9543,33 +9709,27 @@ const refreshSectionUiSchema = {
|
|
|
9543
9709
|
}
|
|
9544
9710
|
]
|
|
9545
9711
|
};
|
|
9546
|
-
var emptyBox = {
|
|
9547
|
-
type: "Control",
|
|
9548
|
-
scope: "#/properties/emptyBox",
|
|
9549
|
-
options: {
|
|
9550
|
-
widget: "EmptyBox"
|
|
9551
|
-
},
|
|
9552
|
-
config: {
|
|
9553
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
9554
|
-
main: {},
|
|
9555
|
-
style: {}
|
|
9556
|
-
}
|
|
9557
|
-
};
|
|
9558
9712
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9559
9713
|
return {
|
|
9560
9714
|
setPage: async function() {
|
|
9561
9715
|
const formdata = await this.getFormData();
|
|
9562
9716
|
store2.setFormdata(formdata);
|
|
9563
9717
|
const schema2 = await this.getSchema();
|
|
9718
|
+
console.log("SettingSchema>>", schema2);
|
|
9564
9719
|
store2.setSchema(schema2);
|
|
9565
9720
|
this.refreshPage(formdata.Handler, store2);
|
|
9566
9721
|
},
|
|
9567
9722
|
refreshPage: (handlerType, store22) => {
|
|
9723
|
+
var _a, _b, _c;
|
|
9568
9724
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9569
9725
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9570
9726
|
if (handlerType) {
|
|
9571
9727
|
if (handlerType === "custom") {
|
|
9572
|
-
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9728
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9729
|
+
"isSync",
|
|
9730
|
+
"Run in Sync",
|
|
9731
|
+
["Yes", "No"]
|
|
9732
|
+
);
|
|
9573
9733
|
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9574
9734
|
type: "Control",
|
|
9575
9735
|
scope: "#/properties/emptyBox",
|
|
@@ -9582,14 +9742,26 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9582
9742
|
style: {}
|
|
9583
9743
|
}
|
|
9584
9744
|
};
|
|
9585
|
-
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9745
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9746
|
+
"eventCode",
|
|
9747
|
+
"Write Custom Code",
|
|
9748
|
+
false
|
|
9749
|
+
);
|
|
9586
9750
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9587
9751
|
} else if (handlerType === "api") {
|
|
9588
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox
|
|
9752
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9753
|
+
xs: 0,
|
|
9754
|
+
sm: 0,
|
|
9755
|
+
md: 4,
|
|
9756
|
+
lg: 6
|
|
9757
|
+
});
|
|
9589
9758
|
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9590
9759
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9591
9760
|
} else if (handlerType === "inBuiltFunction") {
|
|
9592
|
-
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9761
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9762
|
+
"inBuiltFunctionType",
|
|
9763
|
+
"Function Name"
|
|
9764
|
+
);
|
|
9593
9765
|
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9594
9766
|
type: "Control",
|
|
9595
9767
|
scope: "#/properties/emptyBox",
|
|
@@ -9602,10 +9774,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9602
9774
|
style: {}
|
|
9603
9775
|
}
|
|
9604
9776
|
};
|
|
9605
|
-
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9777
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9778
|
+
"funcParametersCode",
|
|
9779
|
+
"Write Custom Code for Functions Parameter",
|
|
9780
|
+
true
|
|
9781
|
+
);
|
|
9606
9782
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9607
9783
|
} else if (handlerType === "refresh") {
|
|
9608
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox
|
|
9784
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9785
|
+
xs: 0,
|
|
9786
|
+
sm: 0,
|
|
9787
|
+
md: 4,
|
|
9788
|
+
lg: 6
|
|
9789
|
+
});
|
|
9609
9790
|
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9610
9791
|
schema2.properties.refreshElements.required = ["value"];
|
|
9611
9792
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
@@ -9619,9 +9800,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9619
9800
|
];
|
|
9620
9801
|
}
|
|
9621
9802
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9622
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9803
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9804
|
+
uiSchema
|
|
9805
|
+
);
|
|
9623
9806
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9624
9807
|
}
|
|
9808
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9809
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9810
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9811
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9812
|
+
if (path) {
|
|
9813
|
+
const pathArrayAll = path.split(".");
|
|
9814
|
+
const arr = [];
|
|
9815
|
+
pathArrayAll.map((e, i) => {
|
|
9816
|
+
if (i === 0) {
|
|
9817
|
+
arr.push(e);
|
|
9818
|
+
return;
|
|
9819
|
+
}
|
|
9820
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9821
|
+
});
|
|
9822
|
+
arr.map((e) => {
|
|
9823
|
+
const data = _.get(config2, e);
|
|
9824
|
+
pathArray.push({
|
|
9825
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9826
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9827
|
+
});
|
|
9828
|
+
});
|
|
9829
|
+
}
|
|
9830
|
+
schema2.properties.pageName.path = pathArray;
|
|
9625
9831
|
store22.setSchema(schema2);
|
|
9626
9832
|
store22.setUiSchema(uiSchema);
|
|
9627
9833
|
},
|
|
@@ -9630,10 +9836,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9630
9836
|
return EventUiSchema;
|
|
9631
9837
|
},
|
|
9632
9838
|
getSchema: () => {
|
|
9839
|
+
var _a, _b, _c;
|
|
9633
9840
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9634
9841
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9635
9842
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9636
9843
|
}
|
|
9844
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9845
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9846
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9847
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9848
|
+
if (path) {
|
|
9849
|
+
const pathArrayAll = path.split(".");
|
|
9850
|
+
const arr = [];
|
|
9851
|
+
pathArrayAll.map((e, i) => {
|
|
9852
|
+
if (i === 0) {
|
|
9853
|
+
arr.push(e);
|
|
9854
|
+
return;
|
|
9855
|
+
}
|
|
9856
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9857
|
+
});
|
|
9858
|
+
arr.map((e) => {
|
|
9859
|
+
const data = _.get(config2, e);
|
|
9860
|
+
pathArray.push({
|
|
9861
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9862
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9863
|
+
});
|
|
9864
|
+
});
|
|
9865
|
+
}
|
|
9866
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9637
9867
|
return schema2;
|
|
9638
9868
|
},
|
|
9639
9869
|
okHandler: () => okHandler(store2),
|
|
@@ -9641,7 +9871,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9641
9871
|
onChange: function() {
|
|
9642
9872
|
var _a, _b, _c;
|
|
9643
9873
|
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) {
|
|
9644
|
-
this.refreshPage(
|
|
9874
|
+
this.refreshPage(
|
|
9875
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9876
|
+
store2
|
|
9877
|
+
);
|
|
9645
9878
|
}
|
|
9646
9879
|
},
|
|
9647
9880
|
addEvent: function() {
|
|
@@ -9667,7 +9900,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9667
9900
|
this.setPage();
|
|
9668
9901
|
},
|
|
9669
9902
|
deleteEvent: async function() {
|
|
9670
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9903
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9904
|
+
false
|
|
9905
|
+
);
|
|
9671
9906
|
store2.updateDialog("popUpEvent");
|
|
9672
9907
|
},
|
|
9673
9908
|
backHandler: function() {
|
|
@@ -9679,10 +9914,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9679
9914
|
store2.updateDialog("popUpEvent");
|
|
9680
9915
|
},
|
|
9681
9916
|
copyPasteElement: function() {
|
|
9682
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9917
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9918
|
+
store2,
|
|
9919
|
+
this.setPage.bind(this)
|
|
9920
|
+
);
|
|
9683
9921
|
},
|
|
9684
9922
|
RemoveItemButton: function() {
|
|
9685
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9923
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9924
|
+
store2
|
|
9925
|
+
);
|
|
9926
|
+
},
|
|
9927
|
+
onNavigatePopupYes: function() {
|
|
9928
|
+
try {
|
|
9929
|
+
store2.navigate(sessionStorage.getItem("pendingNavigatePath"));
|
|
9930
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9931
|
+
} catch (e) {
|
|
9932
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9933
|
+
store2.setNotify({
|
|
9934
|
+
FailMessage: "Couldn't navigate page",
|
|
9935
|
+
Fail: true
|
|
9936
|
+
});
|
|
9937
|
+
}
|
|
9938
|
+
},
|
|
9939
|
+
onNavigatePopupNo: function() {
|
|
9940
|
+
store2.updateDialog(`pageNamepopup`);
|
|
9686
9941
|
}
|
|
9687
9942
|
};
|
|
9688
9943
|
};
|
|
@@ -9853,16 +10108,17 @@ function executeCustomHandler(params) {
|
|
|
9853
10108
|
}
|
|
9854
10109
|
}
|
|
9855
10110
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10111
|
+
var _a, _b, _c;
|
|
9856
10112
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9857
10113
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9858
10114
|
store2.setSchema((pre) => {
|
|
9859
|
-
var
|
|
10115
|
+
var _a2;
|
|
9860
10116
|
return {
|
|
9861
10117
|
...pre,
|
|
9862
10118
|
properties: {
|
|
9863
10119
|
...pre.properties,
|
|
9864
10120
|
[componentName]: {
|
|
9865
|
-
...(
|
|
10121
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9866
10122
|
oneOf: handlerResponse.data
|
|
9867
10123
|
}
|
|
9868
10124
|
}
|
|
@@ -9872,13 +10128,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9872
10128
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9873
10129
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9874
10130
|
store2.setSchema((pre) => {
|
|
9875
|
-
var
|
|
10131
|
+
var _a2;
|
|
9876
10132
|
return {
|
|
9877
10133
|
...pre,
|
|
9878
10134
|
properties: {
|
|
9879
10135
|
...pre.properties,
|
|
9880
10136
|
[componentName]: {
|
|
9881
|
-
...(
|
|
10137
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9882
10138
|
type: "array",
|
|
9883
10139
|
items: {
|
|
9884
10140
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -9898,6 +10154,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9898
10154
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9899
10155
|
});
|
|
9900
10156
|
}
|
|
10157
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10158
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10159
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10160
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10161
|
+
store2.setFormdata((pre) => {
|
|
10162
|
+
return { ...pre, ...formDataHolder };
|
|
10163
|
+
});
|
|
10164
|
+
}
|
|
9901
10165
|
} else {
|
|
9902
10166
|
if (handlerResponse) {
|
|
9903
10167
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -10203,7 +10467,7 @@ var service = (funcParams) => {
|
|
|
10203
10467
|
service: funcParams.service,
|
|
10204
10468
|
serviceHolder: this,
|
|
10205
10469
|
eventGroups,
|
|
10206
|
-
formDataHolder
|
|
10470
|
+
formDataHolder: {}
|
|
10207
10471
|
});
|
|
10208
10472
|
funcParams.store.setSchema(
|
|
10209
10473
|
(pre) => {
|
|
@@ -10218,11 +10482,11 @@ var service = (funcParams) => {
|
|
|
10218
10482
|
funcParams.store.setUiSchema(uiSchema);
|
|
10219
10483
|
},
|
|
10220
10484
|
onCellRenderer: (cellParams) => {
|
|
10221
|
-
var _a, _b, _c;
|
|
10485
|
+
var _a, _b, _c, _d;
|
|
10222
10486
|
if (eventGroups.onCellRenderer) {
|
|
10223
10487
|
let finalResponse = {};
|
|
10224
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]);
|
|
10225
|
-
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]) {
|
|
10226
10490
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10227
10491
|
finalResponse = executeEvents({
|
|
10228
10492
|
...executeEventsParameters,
|
|
@@ -10826,6 +11090,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10826
11090
|
if (config2.style) {
|
|
10827
11091
|
inputField.config.style = JSON.parse(config2.style);
|
|
10828
11092
|
}
|
|
11093
|
+
if (config2.multiline) {
|
|
11094
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11095
|
+
}
|
|
10829
11096
|
if (config2.InputFormatingAndMasking) {
|
|
10830
11097
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10831
11098
|
}
|
|
@@ -11662,6 +11929,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11662
11929
|
}
|
|
11663
11930
|
return Radio;
|
|
11664
11931
|
};
|
|
11932
|
+
var emptyBox = {
|
|
11933
|
+
type: "Control",
|
|
11934
|
+
scope: "#/properties/emptyBox",
|
|
11935
|
+
options: {
|
|
11936
|
+
widget: "EmptyBox"
|
|
11937
|
+
},
|
|
11938
|
+
config: {
|
|
11939
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11940
|
+
main: {},
|
|
11941
|
+
style: {}
|
|
11942
|
+
}
|
|
11943
|
+
};
|
|
11665
11944
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11666
11945
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11667
11946
|
if (config2.layout) {
|
|
@@ -12351,27 +12630,25 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12351
12630
|
});
|
|
12352
12631
|
}
|
|
12353
12632
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12354
|
-
var _a
|
|
12633
|
+
var _a;
|
|
12634
|
+
const commonProperties = {
|
|
12635
|
+
accessorKey: cellElem.name,
|
|
12636
|
+
type: cellElem.columnFormat,
|
|
12637
|
+
header: cellElem.label || cellElem.name,
|
|
12638
|
+
size: sizeMap[cellElem.name] || 180,
|
|
12639
|
+
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
|
|
12640
|
+
columnFilterModeOptions: config2.filteringOptions,
|
|
12641
|
+
enableSorting: config2.enableSorting === "No" ? false : true,
|
|
12642
|
+
columnKey: config2.columnKey
|
|
12643
|
+
};
|
|
12355
12644
|
if (cellElem.type) {
|
|
12356
12645
|
return {
|
|
12357
|
-
accessorKey: cellElem.name,
|
|
12358
|
-
header: cellElem.label || cellElem.name,
|
|
12359
|
-
size: sizeMap[cellElem.name] || 180,
|
|
12360
|
-
type: cellElem.columnFormat,
|
|
12361
12646
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12362
12647
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12363
|
-
|
|
12364
|
-
columnFilterModeOptions: config2.filteringOptions
|
|
12648
|
+
...commonProperties
|
|
12365
12649
|
};
|
|
12366
12650
|
} else {
|
|
12367
|
-
return
|
|
12368
|
-
accessorKey: cellElem.name,
|
|
12369
|
-
type: cellElem.columnFormat,
|
|
12370
|
-
header: cellElem.label || cellElem.name,
|
|
12371
|
-
size: sizeMap[cellElem.name] || 180,
|
|
12372
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
|
|
12373
|
-
columnFilterModeOptions: config2.filteringOptions
|
|
12374
|
-
};
|
|
12651
|
+
return commonProperties;
|
|
12375
12652
|
}
|
|
12376
12653
|
});
|
|
12377
12654
|
} else if (config2.type == "Array") {
|