impaktapps-ui-builder 0.0.101-alpha.20 → 0.0.101-alpha.212
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 +509 -286
- 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/apiSection.d.ts +1 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +11 -14
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +6 -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 +14 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +89 -77
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -6
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +68 -9
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -16
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +41 -201
- package/src/impaktapps-ui-builder/builder/services/component.ts +161 -32
- package/src/impaktapps-ui-builder/builder/services/event.ts +160 -60
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -4
|
@@ -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,27 @@ 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
|
+
style: {
|
|
7071
|
+
paddingLeft: theme.spacing(3),
|
|
7072
|
+
color: theme.palette.grey[600],
|
|
7073
|
+
fontSize: "10px",
|
|
7074
|
+
position: "fixed",
|
|
7075
|
+
bottom: "24px",
|
|
7076
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7077
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
7078
|
+
backgroundColor: theme.palette.background.default
|
|
7079
|
+
}
|
|
7080
|
+
}
|
|
7081
|
+
},
|
|
7043
7082
|
{
|
|
7044
7083
|
type: "Control",
|
|
7045
7084
|
scope: "#/properties/notify",
|
|
@@ -7312,7 +7351,7 @@ const EventSection = (theme) => {
|
|
|
7312
7351
|
elements: [
|
|
7313
7352
|
{
|
|
7314
7353
|
accessorKey: "eventType",
|
|
7315
|
-
header: "Event Type",
|
|
7354
|
+
header: "Event's Type",
|
|
7316
7355
|
type: "string",
|
|
7317
7356
|
size: 300
|
|
7318
7357
|
},
|
|
@@ -7324,7 +7363,7 @@ const EventSection = (theme) => {
|
|
|
7324
7363
|
},
|
|
7325
7364
|
{
|
|
7326
7365
|
accessorKey: "Edit_Approve_Records",
|
|
7327
|
-
header: "Edit
|
|
7366
|
+
header: "Edit",
|
|
7328
7367
|
size: 150,
|
|
7329
7368
|
type: "action",
|
|
7330
7369
|
widget: {
|
|
@@ -7430,77 +7469,103 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7430
7469
|
const cardLayout = {
|
|
7431
7470
|
type: "Control",
|
|
7432
7471
|
scope: "#/properties/cardLayout",
|
|
7433
|
-
layout: 11.5,
|
|
7434
7472
|
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
|
-
]
|
|
7473
|
+
widget: "Array"
|
|
7474
|
+
},
|
|
7475
|
+
config: {
|
|
7476
|
+
layout: 12,
|
|
7477
|
+
main: {
|
|
7478
|
+
label: "Card Layout",
|
|
7479
|
+
childElementLabel: "Card Layout"
|
|
7480
|
+
},
|
|
7481
|
+
style: {
|
|
7482
|
+
marginLeft: "-24px",
|
|
7483
|
+
marginBottom: "24px !important",
|
|
7484
|
+
labelStyle: {
|
|
7485
|
+
marginLeft: "24px"
|
|
7486
|
+
},
|
|
7487
|
+
detailsStyle: {
|
|
7488
|
+
marginLeft: "24px"
|
|
7489
|
+
}
|
|
7469
7490
|
}
|
|
7470
|
-
}
|
|
7491
|
+
},
|
|
7492
|
+
elements: [
|
|
7493
|
+
{
|
|
7494
|
+
type: "Control",
|
|
7495
|
+
scope: "#/properties/key",
|
|
7496
|
+
options: {
|
|
7497
|
+
widget: "SelectInputField"
|
|
7498
|
+
},
|
|
7499
|
+
config: {
|
|
7500
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7501
|
+
main: {
|
|
7502
|
+
label: "Screen Size"
|
|
7503
|
+
}
|
|
7504
|
+
}
|
|
7505
|
+
},
|
|
7506
|
+
{
|
|
7507
|
+
type: "Control",
|
|
7508
|
+
scope: "#/properties/value",
|
|
7509
|
+
options: {
|
|
7510
|
+
widget: "InputField"
|
|
7511
|
+
},
|
|
7512
|
+
config: {
|
|
7513
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7514
|
+
main: {
|
|
7515
|
+
label: "Value",
|
|
7516
|
+
type: "number",
|
|
7517
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7518
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7519
|
+
}
|
|
7520
|
+
}
|
|
7521
|
+
},
|
|
7522
|
+
emptyBox$1("cardEmpty")
|
|
7523
|
+
]
|
|
7471
7524
|
};
|
|
7472
7525
|
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7473
7526
|
return {
|
|
7474
7527
|
type: "Control",
|
|
7475
7528
|
scope: `#/properties/${parentScope}`,
|
|
7476
|
-
layout: 12,
|
|
7477
7529
|
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
|
-
]
|
|
7530
|
+
widget: "Array"
|
|
7531
|
+
},
|
|
7532
|
+
config: {
|
|
7533
|
+
layout: 12,
|
|
7534
|
+
main: {
|
|
7535
|
+
label: childLabel,
|
|
7536
|
+
childElementLabel: childLabel
|
|
7537
|
+
},
|
|
7538
|
+
style: {
|
|
7539
|
+
marginLeft: "-24px",
|
|
7540
|
+
marginBottom: "24px !important",
|
|
7541
|
+
labelStyle: {
|
|
7542
|
+
marginLeft: "24px"
|
|
7543
|
+
},
|
|
7544
|
+
detailsStyle: {
|
|
7545
|
+
marginLeft: "24px"
|
|
7546
|
+
}
|
|
7498
7547
|
}
|
|
7499
|
-
}
|
|
7548
|
+
},
|
|
7549
|
+
elements: [
|
|
7550
|
+
{
|
|
7551
|
+
type: "Control",
|
|
7552
|
+
scope: `#/properties/${childScope}`,
|
|
7553
|
+
options: {
|
|
7554
|
+
widget: "InputField"
|
|
7555
|
+
},
|
|
7556
|
+
config: {
|
|
7557
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7558
|
+
main: {
|
|
7559
|
+
label: childLabel || "Labels for Tab"
|
|
7560
|
+
}
|
|
7561
|
+
}
|
|
7562
|
+
},
|
|
7563
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7564
|
+
]
|
|
7500
7565
|
};
|
|
7501
7566
|
};
|
|
7502
7567
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7503
|
-
sizeHolder.
|
|
7568
|
+
sizeHolder.elements[1] = {
|
|
7504
7569
|
type: "Control",
|
|
7505
7570
|
scope: `#/properties/value`,
|
|
7506
7571
|
options: {
|
|
@@ -7513,7 +7578,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7513
7578
|
}
|
|
7514
7579
|
}
|
|
7515
7580
|
};
|
|
7516
|
-
sizeHolder.
|
|
7581
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7517
7582
|
const getInputField = (scope, label) => {
|
|
7518
7583
|
return {
|
|
7519
7584
|
type: "Control",
|
|
@@ -7552,17 +7617,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7552
7617
|
main: {
|
|
7553
7618
|
label: label || "Details",
|
|
7554
7619
|
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
|
|
7620
|
+
}
|
|
7566
7621
|
},
|
|
7567
7622
|
elements: elements || []
|
|
7568
7623
|
};
|
|
@@ -7576,11 +7631,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7576
7631
|
},
|
|
7577
7632
|
config: {
|
|
7578
7633
|
layout: layout || 12,
|
|
7579
|
-
style: {
|
|
7580
|
-
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
7581
|
-
},
|
|
7582
7634
|
main: {
|
|
7583
|
-
heading,
|
|
7635
|
+
label: heading,
|
|
7584
7636
|
minRows: 8,
|
|
7585
7637
|
hideButton,
|
|
7586
7638
|
enableCodeEditor: true
|
|
@@ -7687,7 +7739,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7687
7739
|
case "Text":
|
|
7688
7740
|
uiSchema.elements = [
|
|
7689
7741
|
getInputField("placeholder", "Placeholder"),
|
|
7690
|
-
|
|
7742
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7691
7743
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7692
7744
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7693
7745
|
];
|
|
@@ -7696,7 +7748,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7696
7748
|
uiSchema.elements = [
|
|
7697
7749
|
getInputField("placeholder", "Placeholder"),
|
|
7698
7750
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7699
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7751
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7752
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7700
7753
|
];
|
|
7701
7754
|
break;
|
|
7702
7755
|
case "SpeedoMeter":
|
|
@@ -7776,7 +7829,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7776
7829
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7777
7830
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7778
7831
|
getInputField("leftMargin", "Left Margin"),
|
|
7779
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7832
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7780
7833
|
getArrayControl("legendLabels", "label"),
|
|
7781
7834
|
getArrayControl("pieArcColors", "color")
|
|
7782
7835
|
];
|
|
@@ -8356,54 +8409,124 @@ function okHandler(store2) {
|
|
|
8356
8409
|
}
|
|
8357
8410
|
}
|
|
8358
8411
|
const sectionLabels = {
|
|
8359
|
-
Select: ["Core", "Properties", "Value", "
|
|
8360
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8361
|
-
Table: ["Core", "Components", "Properties", "
|
|
8362
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8412
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8413
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8414
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8415
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8363
8416
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8364
8417
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8365
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
8366
|
-
card: ["Core", "Properties", "
|
|
8367
|
-
UploadFile: ["Core", "
|
|
8368
|
-
Graph: ["Core", "Properties", "
|
|
8369
|
-
DownloadFile: ["Core", "
|
|
8370
|
-
Box: ["Core", "
|
|
8371
|
-
Properties: ["Core", "Properties", "
|
|
8372
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
8373
|
-
RankCard: ["Core", "Properties", "
|
|
8374
|
-
Slider: ["Core", "Components", "
|
|
8375
|
-
Timer: ["Core", "
|
|
8376
|
-
Rank: ["Core", "
|
|
8377
|
-
Button: ["Core", "Properties", "
|
|
8418
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8419
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8420
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8421
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8422
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8423
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8424
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8425
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8426
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8427
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8428
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8429
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8430
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8378
8431
|
Array: ["Core", "Components", "Validation"],
|
|
8379
|
-
Radio: ["Core", "Properties", "
|
|
8380
|
-
Text: ["Core", "Properties", "
|
|
8381
|
-
TextArea: ["Core", "Properties", "
|
|
8432
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8433
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8434
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8382
8435
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8383
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8384
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8385
|
-
InputSlider: ["Core", "Properties", "
|
|
8386
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8436
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8437
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8438
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8439
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8387
8440
|
ColumnGroup: ["Core", "Components"],
|
|
8388
|
-
Thought: ["Core", "Properties", "
|
|
8441
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8389
8442
|
};
|
|
8390
8443
|
function refreshPage(type, store2) {
|
|
8391
|
-
var _a;
|
|
8444
|
+
var _a, _b;
|
|
8392
8445
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8446
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8393
8447
|
if (type) {
|
|
8394
8448
|
const sectionUiSchema = {
|
|
8395
8449
|
Core: CoreSection,
|
|
8396
8450
|
Value: ValueTab,
|
|
8397
8451
|
Style: StyleSection,
|
|
8398
|
-
|
|
8452
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8399
8453
|
Components: TableSection(store2.theme.myTheme),
|
|
8400
8454
|
Properties: buildPropertiesSection(type),
|
|
8401
8455
|
Validation: ValidationSection
|
|
8402
8456
|
};
|
|
8403
8457
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8404
|
-
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "
|
|
8458
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8405
8459
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8406
8460
|
}
|
|
8461
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8462
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8463
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8464
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8465
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8466
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8467
|
+
type: "Control",
|
|
8468
|
+
scope: "#/properties/columnFormat",
|
|
8469
|
+
options: {
|
|
8470
|
+
widget: "SelectInputField"
|
|
8471
|
+
},
|
|
8472
|
+
config: {
|
|
8473
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8474
|
+
main: {
|
|
8475
|
+
label: "Column Format"
|
|
8476
|
+
}
|
|
8477
|
+
}
|
|
8478
|
+
};
|
|
8479
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8480
|
+
type: "Control",
|
|
8481
|
+
scope: "#/properties/filteringOptions",
|
|
8482
|
+
options: {
|
|
8483
|
+
widget: "SelectInputField"
|
|
8484
|
+
},
|
|
8485
|
+
config: {
|
|
8486
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8487
|
+
main: {
|
|
8488
|
+
label: "Filter Mode",
|
|
8489
|
+
multiple: true
|
|
8490
|
+
}
|
|
8491
|
+
}
|
|
8492
|
+
};
|
|
8493
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8494
|
+
type: "Control",
|
|
8495
|
+
scope: "#/properties/enableFilter",
|
|
8496
|
+
options: {
|
|
8497
|
+
widget: "RadioInputField"
|
|
8498
|
+
},
|
|
8499
|
+
config: {
|
|
8500
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8501
|
+
main: {
|
|
8502
|
+
label: "Enable Filter",
|
|
8503
|
+
options: ["Yes", "No"]
|
|
8504
|
+
}
|
|
8505
|
+
}
|
|
8506
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8507
|
+
type: "Control",
|
|
8508
|
+
scope: "#/properties/enableSorting",
|
|
8509
|
+
options: {
|
|
8510
|
+
widget: "RadioInputField"
|
|
8511
|
+
},
|
|
8512
|
+
config: {
|
|
8513
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8514
|
+
main: {
|
|
8515
|
+
label: "Enable Sorting",
|
|
8516
|
+
options: ["Yes", "No"]
|
|
8517
|
+
}
|
|
8518
|
+
}
|
|
8519
|
+
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8520
|
+
type: "Control",
|
|
8521
|
+
scope: "#/properties/proc",
|
|
8522
|
+
config: {
|
|
8523
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 3 }
|
|
8524
|
+
},
|
|
8525
|
+
options: {
|
|
8526
|
+
widget: "EmptyBox"
|
|
8527
|
+
}
|
|
8528
|
+
};
|
|
8529
|
+
}
|
|
8407
8530
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8408
8531
|
this.ElementPathSetter(UiSchema);
|
|
8409
8532
|
}
|
|
@@ -8425,10 +8548,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8425
8548
|
return getFormdataFromSessionStorage(path);
|
|
8426
8549
|
},
|
|
8427
8550
|
getSchema: function() {
|
|
8551
|
+
var _a, _b, _c;
|
|
8428
8552
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8429
8553
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8430
8554
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8431
8555
|
}
|
|
8556
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8557
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8558
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8559
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8560
|
+
if (path) {
|
|
8561
|
+
const pathArrayAll = path.split(".");
|
|
8562
|
+
const arr = [];
|
|
8563
|
+
pathArrayAll.map((e, i) => {
|
|
8564
|
+
if (i === 0) {
|
|
8565
|
+
arr.push(e);
|
|
8566
|
+
return;
|
|
8567
|
+
}
|
|
8568
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8569
|
+
});
|
|
8570
|
+
arr.map((e) => {
|
|
8571
|
+
const data = _.get(config2, e);
|
|
8572
|
+
pathArray.push({
|
|
8573
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8574
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8575
|
+
});
|
|
8576
|
+
});
|
|
8577
|
+
}
|
|
8578
|
+
schema2.properties.pageName.path = pathArray;
|
|
8432
8579
|
return schema2;
|
|
8433
8580
|
},
|
|
8434
8581
|
okHandler: () => okHandler(store2),
|
|
@@ -8541,6 +8688,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8541
8688
|
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8542
8689
|
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8543
8690
|
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8691
|
+
store2.setNotify({
|
|
8692
|
+
SuccessMessage: `${elementType} Copied Successfully`,
|
|
8693
|
+
Success: true
|
|
8694
|
+
});
|
|
8544
8695
|
store2.setSchema(schema2);
|
|
8545
8696
|
store2.setUiSchema(uiSchema);
|
|
8546
8697
|
},
|
|
@@ -8566,15 +8717,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8566
8717
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8567
8718
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8568
8719
|
const notificationMessages = {
|
|
8569
|
-
|
|
8570
|
-
Component: "The component cannot be integrated into the
|
|
8720
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8721
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8571
8722
|
};
|
|
8572
8723
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8573
8724
|
store2.setNotify({
|
|
8574
|
-
FailMessage: notificationMessages.
|
|
8725
|
+
FailMessage: notificationMessages.Events,
|
|
8575
8726
|
Fail: true
|
|
8576
8727
|
});
|
|
8577
|
-
} else if (copiedConfig.name && elementType === "
|
|
8728
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8578
8729
|
store2.setNotify({
|
|
8579
8730
|
FailMessage: notificationMessages.Component,
|
|
8580
8731
|
Fail: true
|
|
@@ -8600,8 +8751,18 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8600
8751
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8601
8752
|
},
|
|
8602
8753
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8754
|
+
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;
|
|
8603
8755
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8604
|
-
uiSchema.elements[
|
|
8756
|
+
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) {
|
|
8757
|
+
uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8758
|
+
} 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) {
|
|
8759
|
+
uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8760
|
+
}
|
|
8761
|
+
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) {
|
|
8762
|
+
uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
|
|
8763
|
+
} 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) {
|
|
8764
|
+
uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
|
|
8765
|
+
}
|
|
8605
8766
|
}
|
|
8606
8767
|
};
|
|
8607
8768
|
};
|
|
@@ -8752,18 +8913,18 @@ const EventSchema = {
|
|
|
8752
8913
|
eventType: {
|
|
8753
8914
|
type: "string",
|
|
8754
8915
|
oneOf: [
|
|
8755
|
-
{ title: "Click
|
|
8756
|
-
{ title: "Load
|
|
8757
|
-
{ title: "Change
|
|
8758
|
-
{ title: "Mount
|
|
8916
|
+
{ title: "Click", const: "onClick" },
|
|
8917
|
+
{ title: "Load", const: "onLoad" },
|
|
8918
|
+
{ title: "Change", const: "onChange" },
|
|
8919
|
+
{ title: "Mount", const: "onMount" },
|
|
8759
8920
|
{ title: "Success", const: "Success" },
|
|
8760
|
-
{ title: "
|
|
8761
|
-
{ title: "Cell
|
|
8762
|
-
{ title: "
|
|
8763
|
-
{ title: "Back
|
|
8764
|
-
{ title: "Next
|
|
8765
|
-
{ title: "
|
|
8766
|
-
{ title: "
|
|
8921
|
+
{ title: "Start", const: "onStart" },
|
|
8922
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8923
|
+
{ title: "Upload", const: "onUpload" },
|
|
8924
|
+
{ title: "Back", const: "onBack" },
|
|
8925
|
+
{ title: "Next", const: "onNext" },
|
|
8926
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8927
|
+
{ title: "Download", const: "onDownload" },
|
|
8767
8928
|
{ title: "Fail", const: "Fail" }
|
|
8768
8929
|
]
|
|
8769
8930
|
},
|
|
@@ -8771,7 +8932,7 @@ const EventSchema = {
|
|
|
8771
8932
|
type: "string",
|
|
8772
8933
|
oneOf: [
|
|
8773
8934
|
{ title: "Custom", const: "custom" },
|
|
8774
|
-
{ title: "
|
|
8935
|
+
{ title: "API", const: "api" },
|
|
8775
8936
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8776
8937
|
{ title: "Refresh", const: "refresh" }
|
|
8777
8938
|
]
|
|
@@ -8800,15 +8961,18 @@ const EventSchema = {
|
|
|
8800
8961
|
},
|
|
8801
8962
|
RemoveItemButton: {
|
|
8802
8963
|
disabled: true
|
|
8964
|
+
},
|
|
8965
|
+
pageName: {
|
|
8966
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8803
8967
|
}
|
|
8804
8968
|
},
|
|
8805
8969
|
required: ["eventType", "Handler"]
|
|
8806
8970
|
};
|
|
8807
8971
|
const EventUiSchema = (theme) => {
|
|
8808
|
-
var _a
|
|
8972
|
+
var _a;
|
|
8809
8973
|
const uiSchema = {
|
|
8810
8974
|
type: "HorizontalLayout",
|
|
8811
|
-
heading: "Page-
|
|
8975
|
+
heading: "Page-Events",
|
|
8812
8976
|
elements: [
|
|
8813
8977
|
{
|
|
8814
8978
|
type: "TabLayout",
|
|
@@ -8942,7 +9106,7 @@ const EventUiSchema = (theme) => {
|
|
|
8942
9106
|
elements: [
|
|
8943
9107
|
{
|
|
8944
9108
|
accessorKey: "eventType",
|
|
8945
|
-
header: "Event Type",
|
|
9109
|
+
header: "Event's Type",
|
|
8946
9110
|
size: 300,
|
|
8947
9111
|
type: "string"
|
|
8948
9112
|
},
|
|
@@ -8954,7 +9118,7 @@ const EventUiSchema = (theme) => {
|
|
|
8954
9118
|
},
|
|
8955
9119
|
{
|
|
8956
9120
|
accessorKey: "Edit_Approve_Records",
|
|
8957
|
-
header: "Edit
|
|
9121
|
+
header: "Edit",
|
|
8958
9122
|
type: "action",
|
|
8959
9123
|
size: 150,
|
|
8960
9124
|
widget: {
|
|
@@ -9111,15 +9275,17 @@ const EventUiSchema = (theme) => {
|
|
|
9111
9275
|
config: {
|
|
9112
9276
|
layout: 11,
|
|
9113
9277
|
main: {
|
|
9114
|
-
heading: "Are you sure you want to delete ?"
|
|
9278
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
9115
9279
|
},
|
|
9116
9280
|
style: {
|
|
9117
|
-
marginTop: "-20px",
|
|
9118
9281
|
fontSize: "20px",
|
|
9119
9282
|
"&.MuiTypography-root": {
|
|
9120
|
-
padding: "
|
|
9283
|
+
padding: "0px 20px",
|
|
9121
9284
|
textAlign: "center",
|
|
9122
|
-
lineHeight: "1"
|
|
9285
|
+
lineHeight: "1.2",
|
|
9286
|
+
fontWeight: "normal",
|
|
9287
|
+
fontSize: "18px",
|
|
9288
|
+
marginBottom: theme.spacing(5)
|
|
9123
9289
|
}
|
|
9124
9290
|
}
|
|
9125
9291
|
}
|
|
@@ -9143,13 +9309,14 @@ const EventUiSchema = (theme) => {
|
|
|
9143
9309
|
name: "No",
|
|
9144
9310
|
startIcon: "ApproveIcon",
|
|
9145
9311
|
variant: "contained",
|
|
9146
|
-
color: "info",
|
|
9147
9312
|
type: "text",
|
|
9148
9313
|
onClick: "deletePopUpEvent",
|
|
9149
9314
|
size: "large"
|
|
9150
9315
|
},
|
|
9151
9316
|
style: {
|
|
9152
9317
|
position: "absolute",
|
|
9318
|
+
padding: "8px 0px",
|
|
9319
|
+
fontSize: "16px",
|
|
9153
9320
|
bottom: 0,
|
|
9154
9321
|
left: 0,
|
|
9155
9322
|
width: "50%",
|
|
@@ -9177,7 +9344,6 @@ const EventUiSchema = (theme) => {
|
|
|
9177
9344
|
layout: 6,
|
|
9178
9345
|
main: {
|
|
9179
9346
|
name: "Yes",
|
|
9180
|
-
startIcon: "ApproveIcon",
|
|
9181
9347
|
variant: "contained",
|
|
9182
9348
|
color: "error",
|
|
9183
9349
|
type: "text",
|
|
@@ -9186,6 +9352,8 @@ const EventUiSchema = (theme) => {
|
|
|
9186
9352
|
},
|
|
9187
9353
|
style: {
|
|
9188
9354
|
position: "absolute",
|
|
9355
|
+
padding: "8px 0px",
|
|
9356
|
+
fontSize: "16px",
|
|
9189
9357
|
bottom: 0,
|
|
9190
9358
|
right: 0,
|
|
9191
9359
|
width: "50%",
|
|
@@ -9206,6 +9374,27 @@ const EventUiSchema = (theme) => {
|
|
|
9206
9374
|
}
|
|
9207
9375
|
]
|
|
9208
9376
|
},
|
|
9377
|
+
{
|
|
9378
|
+
type: "Control",
|
|
9379
|
+
scope: "#/properties/pageName",
|
|
9380
|
+
options: {
|
|
9381
|
+
widget: "Breadcrumb"
|
|
9382
|
+
},
|
|
9383
|
+
config: {
|
|
9384
|
+
layout: 12,
|
|
9385
|
+
main: {},
|
|
9386
|
+
style: {
|
|
9387
|
+
paddingLeft: theme.spacing(3),
|
|
9388
|
+
color: theme.palette.grey[600],
|
|
9389
|
+
fontSize: "10px",
|
|
9390
|
+
position: "fixed",
|
|
9391
|
+
bottom: "24px",
|
|
9392
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9393
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
9394
|
+
backgroundColor: theme.palette.background.default
|
|
9395
|
+
}
|
|
9396
|
+
}
|
|
9397
|
+
},
|
|
9209
9398
|
{
|
|
9210
9399
|
type: "Control",
|
|
9211
9400
|
scope: "#/properties/notify",
|
|
@@ -9223,7 +9412,7 @@ const EventUiSchema = (theme) => {
|
|
|
9223
9412
|
style: {
|
|
9224
9413
|
flexDirection: "row",
|
|
9225
9414
|
position: "absolute",
|
|
9226
|
-
bottom:
|
|
9415
|
+
bottom: 10,
|
|
9227
9416
|
height: "fit-content",
|
|
9228
9417
|
overflow: "hidden",
|
|
9229
9418
|
zIndex: 1e3,
|
|
@@ -9242,78 +9431,19 @@ const EventUiSchema = (theme) => {
|
|
|
9242
9431
|
heading: "Copywriter@ACT21.IO"
|
|
9243
9432
|
},
|
|
9244
9433
|
style: {
|
|
9245
|
-
color: ((
|
|
9434
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9246
9435
|
fontSize: "11px",
|
|
9247
9436
|
textAlign: "center",
|
|
9248
|
-
lineHeight:
|
|
9437
|
+
lineHeight: 0,
|
|
9249
9438
|
width: "fit-content",
|
|
9250
9439
|
left: "50%",
|
|
9251
9440
|
position: "relative",
|
|
9252
|
-
margin:
|
|
9441
|
+
margin: "revert",
|
|
9253
9442
|
flexGrow: 1,
|
|
9254
9443
|
height: 0,
|
|
9255
9444
|
transform: "translate(-50%, 0%)"
|
|
9256
9445
|
}
|
|
9257
9446
|
}
|
|
9258
|
-
},
|
|
9259
|
-
{
|
|
9260
|
-
type: "Control",
|
|
9261
|
-
scope: "#/properties/FooterBackIcon",
|
|
9262
|
-
options: {
|
|
9263
|
-
widget: "Box"
|
|
9264
|
-
},
|
|
9265
|
-
config: {
|
|
9266
|
-
main: {
|
|
9267
|
-
iconName: "PrevIcon",
|
|
9268
|
-
onClick: "backHandler",
|
|
9269
|
-
width: "fit-content"
|
|
9270
|
-
},
|
|
9271
|
-
style: {
|
|
9272
|
-
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
9273
|
-
width: 20,
|
|
9274
|
-
height: 0,
|
|
9275
|
-
top: 0,
|
|
9276
|
-
right: { xs: "12px", sm: "84px" },
|
|
9277
|
-
position: "absolute",
|
|
9278
|
-
fontSize: "12px",
|
|
9279
|
-
cursor: "pointer",
|
|
9280
|
-
":hover": {
|
|
9281
|
-
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
9282
|
-
},
|
|
9283
|
-
marginRight: "20px"
|
|
9284
|
-
}
|
|
9285
|
-
}
|
|
9286
|
-
},
|
|
9287
|
-
{
|
|
9288
|
-
type: "Control",
|
|
9289
|
-
scope: "#/properties/FooterBackHandlerText",
|
|
9290
|
-
options: {
|
|
9291
|
-
widget: "Box"
|
|
9292
|
-
},
|
|
9293
|
-
config: {
|
|
9294
|
-
main: {
|
|
9295
|
-
heading: "Previous Page",
|
|
9296
|
-
onClick: "backHandler"
|
|
9297
|
-
},
|
|
9298
|
-
style: {
|
|
9299
|
-
display: { xs: "none", sm: "flex" },
|
|
9300
|
-
textAlign: "left",
|
|
9301
|
-
lineHeight: 1,
|
|
9302
|
-
height: 0,
|
|
9303
|
-
width: "fit-content",
|
|
9304
|
-
color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
|
|
9305
|
-
fontSize: "12px",
|
|
9306
|
-
cursor: "pointer",
|
|
9307
|
-
marginLeft: "2px",
|
|
9308
|
-
top: 3,
|
|
9309
|
-
right: "12px",
|
|
9310
|
-
position: "absolute",
|
|
9311
|
-
":hover": {
|
|
9312
|
-
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
9313
|
-
},
|
|
9314
|
-
marginRight: "4px"
|
|
9315
|
-
}
|
|
9316
|
-
}
|
|
9317
9447
|
}
|
|
9318
9448
|
]
|
|
9319
9449
|
}
|
|
@@ -9546,33 +9676,27 @@ const refreshSectionUiSchema = {
|
|
|
9546
9676
|
}
|
|
9547
9677
|
]
|
|
9548
9678
|
};
|
|
9549
|
-
var emptyBox = {
|
|
9550
|
-
type: "Control",
|
|
9551
|
-
scope: "#/properties/emptyBox",
|
|
9552
|
-
options: {
|
|
9553
|
-
widget: "EmptyBox"
|
|
9554
|
-
},
|
|
9555
|
-
config: {
|
|
9556
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
9557
|
-
main: {},
|
|
9558
|
-
style: {}
|
|
9559
|
-
}
|
|
9560
|
-
};
|
|
9561
9679
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9562
9680
|
return {
|
|
9563
9681
|
setPage: async function() {
|
|
9564
9682
|
const formdata = await this.getFormData();
|
|
9565
9683
|
store2.setFormdata(formdata);
|
|
9566
9684
|
const schema2 = await this.getSchema();
|
|
9685
|
+
console.log("SettingSchema>>", schema2);
|
|
9567
9686
|
store2.setSchema(schema2);
|
|
9568
9687
|
this.refreshPage(formdata.Handler, store2);
|
|
9569
9688
|
},
|
|
9570
9689
|
refreshPage: (handlerType, store22) => {
|
|
9690
|
+
var _a, _b, _c;
|
|
9571
9691
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9572
9692
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9573
9693
|
if (handlerType) {
|
|
9574
9694
|
if (handlerType === "custom") {
|
|
9575
|
-
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9695
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9696
|
+
"isSync",
|
|
9697
|
+
"Run in Sync",
|
|
9698
|
+
["Yes", "No"]
|
|
9699
|
+
);
|
|
9576
9700
|
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9577
9701
|
type: "Control",
|
|
9578
9702
|
scope: "#/properties/emptyBox",
|
|
@@ -9580,19 +9704,31 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9580
9704
|
widget: "EmptyBox"
|
|
9581
9705
|
},
|
|
9582
9706
|
config: {
|
|
9583
|
-
layout: { xs:
|
|
9707
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9584
9708
|
main: {},
|
|
9585
9709
|
style: {}
|
|
9586
9710
|
}
|
|
9587
9711
|
};
|
|
9588
|
-
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9712
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9713
|
+
"eventCode",
|
|
9714
|
+
"Write Custom Code",
|
|
9715
|
+
false
|
|
9716
|
+
);
|
|
9589
9717
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9590
9718
|
} else if (handlerType === "api") {
|
|
9591
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox
|
|
9719
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9720
|
+
xs: 0,
|
|
9721
|
+
sm: 0,
|
|
9722
|
+
md: 4,
|
|
9723
|
+
lg: 6
|
|
9724
|
+
});
|
|
9592
9725
|
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9593
9726
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9594
9727
|
} else if (handlerType === "inBuiltFunction") {
|
|
9595
|
-
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9728
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9729
|
+
"inBuiltFunctionType",
|
|
9730
|
+
"Function Name"
|
|
9731
|
+
);
|
|
9596
9732
|
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9597
9733
|
type: "Control",
|
|
9598
9734
|
scope: "#/properties/emptyBox",
|
|
@@ -9605,10 +9741,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9605
9741
|
style: {}
|
|
9606
9742
|
}
|
|
9607
9743
|
};
|
|
9608
|
-
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9744
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9745
|
+
"funcParametersCode",
|
|
9746
|
+
"Write Custom Code for Functions Parameter",
|
|
9747
|
+
true
|
|
9748
|
+
);
|
|
9609
9749
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9610
9750
|
} else if (handlerType === "refresh") {
|
|
9611
|
-
uiSchema.elements[0].elements[0].elements[2] = 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
|
+
});
|
|
9612
9757
|
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9613
9758
|
schema2.properties.refreshElements.required = ["value"];
|
|
9614
9759
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
@@ -9622,9 +9767,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9622
9767
|
];
|
|
9623
9768
|
}
|
|
9624
9769
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9625
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9770
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9771
|
+
uiSchema
|
|
9772
|
+
);
|
|
9626
9773
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9627
9774
|
}
|
|
9775
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9776
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9777
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9778
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9779
|
+
if (path) {
|
|
9780
|
+
const pathArrayAll = path.split(".");
|
|
9781
|
+
const arr = [];
|
|
9782
|
+
pathArrayAll.map((e, i) => {
|
|
9783
|
+
if (i === 0) {
|
|
9784
|
+
arr.push(e);
|
|
9785
|
+
return;
|
|
9786
|
+
}
|
|
9787
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9788
|
+
});
|
|
9789
|
+
arr.map((e) => {
|
|
9790
|
+
const data = _.get(config2, e);
|
|
9791
|
+
pathArray.push({
|
|
9792
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9793
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9794
|
+
});
|
|
9795
|
+
});
|
|
9796
|
+
}
|
|
9797
|
+
schema2.properties.pageName.path = pathArray;
|
|
9628
9798
|
store22.setSchema(schema2);
|
|
9629
9799
|
store22.setUiSchema(uiSchema);
|
|
9630
9800
|
},
|
|
@@ -9633,10 +9803,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9633
9803
|
return EventUiSchema;
|
|
9634
9804
|
},
|
|
9635
9805
|
getSchema: () => {
|
|
9806
|
+
var _a, _b, _c;
|
|
9636
9807
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9637
9808
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9638
9809
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9639
9810
|
}
|
|
9811
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9812
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9813
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9814
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9815
|
+
if (path) {
|
|
9816
|
+
const pathArrayAll = path.split(".");
|
|
9817
|
+
const arr = [];
|
|
9818
|
+
pathArrayAll.map((e, i) => {
|
|
9819
|
+
if (i === 0) {
|
|
9820
|
+
arr.push(e);
|
|
9821
|
+
return;
|
|
9822
|
+
}
|
|
9823
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9824
|
+
});
|
|
9825
|
+
arr.map((e) => {
|
|
9826
|
+
const data = _.get(config2, e);
|
|
9827
|
+
pathArray.push({
|
|
9828
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9829
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9830
|
+
});
|
|
9831
|
+
});
|
|
9832
|
+
}
|
|
9833
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9640
9834
|
return schema2;
|
|
9641
9835
|
},
|
|
9642
9836
|
okHandler: () => okHandler(store2),
|
|
@@ -9644,7 +9838,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9644
9838
|
onChange: function() {
|
|
9645
9839
|
var _a, _b, _c;
|
|
9646
9840
|
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) {
|
|
9647
|
-
this.refreshPage(
|
|
9841
|
+
this.refreshPage(
|
|
9842
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9843
|
+
store2
|
|
9844
|
+
);
|
|
9648
9845
|
}
|
|
9649
9846
|
},
|
|
9650
9847
|
addEvent: function() {
|
|
@@ -9670,7 +9867,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9670
9867
|
this.setPage();
|
|
9671
9868
|
},
|
|
9672
9869
|
deleteEvent: async function() {
|
|
9673
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9870
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9871
|
+
false
|
|
9872
|
+
);
|
|
9674
9873
|
store2.updateDialog("popUpEvent");
|
|
9675
9874
|
},
|
|
9676
9875
|
backHandler: function() {
|
|
@@ -9682,10 +9881,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9682
9881
|
store2.updateDialog("popUpEvent");
|
|
9683
9882
|
},
|
|
9684
9883
|
copyPasteElement: function() {
|
|
9685
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9884
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9885
|
+
store2,
|
|
9886
|
+
this.setPage.bind(this)
|
|
9887
|
+
);
|
|
9686
9888
|
},
|
|
9687
9889
|
RemoveItemButton: function() {
|
|
9688
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9890
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9891
|
+
store2
|
|
9892
|
+
);
|
|
9689
9893
|
}
|
|
9690
9894
|
};
|
|
9691
9895
|
};
|
|
@@ -9856,16 +10060,17 @@ function executeCustomHandler(params) {
|
|
|
9856
10060
|
}
|
|
9857
10061
|
}
|
|
9858
10062
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10063
|
+
var _a, _b, _c;
|
|
9859
10064
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9860
10065
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9861
10066
|
store2.setSchema((pre) => {
|
|
9862
|
-
var
|
|
10067
|
+
var _a2;
|
|
9863
10068
|
return {
|
|
9864
10069
|
...pre,
|
|
9865
10070
|
properties: {
|
|
9866
10071
|
...pre.properties,
|
|
9867
10072
|
[componentName]: {
|
|
9868
|
-
...(
|
|
10073
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9869
10074
|
oneOf: handlerResponse.data
|
|
9870
10075
|
}
|
|
9871
10076
|
}
|
|
@@ -9875,13 +10080,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9875
10080
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9876
10081
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9877
10082
|
store2.setSchema((pre) => {
|
|
9878
|
-
var
|
|
10083
|
+
var _a2;
|
|
9879
10084
|
return {
|
|
9880
10085
|
...pre,
|
|
9881
10086
|
properties: {
|
|
9882
10087
|
...pre.properties,
|
|
9883
10088
|
[componentName]: {
|
|
9884
|
-
...(
|
|
10089
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9885
10090
|
type: "array",
|
|
9886
10091
|
items: {
|
|
9887
10092
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -9901,6 +10106,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9901
10106
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9902
10107
|
});
|
|
9903
10108
|
}
|
|
10109
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10110
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10111
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10112
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10113
|
+
store2.setFormdata((pre) => {
|
|
10114
|
+
return { ...pre, ...formDataHolder };
|
|
10115
|
+
});
|
|
10116
|
+
}
|
|
9904
10117
|
} else {
|
|
9905
10118
|
if (handlerResponse) {
|
|
9906
10119
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -10206,7 +10419,7 @@ var service = (funcParams) => {
|
|
|
10206
10419
|
service: funcParams.service,
|
|
10207
10420
|
serviceHolder: this,
|
|
10208
10421
|
eventGroups,
|
|
10209
|
-
formDataHolder
|
|
10422
|
+
formDataHolder: {}
|
|
10210
10423
|
});
|
|
10211
10424
|
funcParams.store.setSchema(
|
|
10212
10425
|
(pre) => {
|
|
@@ -10221,11 +10434,11 @@ var service = (funcParams) => {
|
|
|
10221
10434
|
funcParams.store.setUiSchema(uiSchema);
|
|
10222
10435
|
},
|
|
10223
10436
|
onCellRenderer: (cellParams) => {
|
|
10224
|
-
var _a, _b, _c;
|
|
10437
|
+
var _a, _b, _c, _d;
|
|
10225
10438
|
if (eventGroups.onCellRenderer) {
|
|
10226
10439
|
let finalResponse = {};
|
|
10227
10440
|
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]);
|
|
10228
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
10441
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10229
10442
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10230
10443
|
finalResponse = executeEvents({
|
|
10231
10444
|
...executeEventsParameters,
|
|
@@ -10829,6 +11042,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10829
11042
|
if (config2.style) {
|
|
10830
11043
|
inputField.config.style = JSON.parse(config2.style);
|
|
10831
11044
|
}
|
|
11045
|
+
if (config2.multiline) {
|
|
11046
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11047
|
+
}
|
|
10832
11048
|
if (config2.InputFormatingAndMasking) {
|
|
10833
11049
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10834
11050
|
}
|
|
@@ -11665,6 +11881,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11665
11881
|
}
|
|
11666
11882
|
return Radio;
|
|
11667
11883
|
};
|
|
11884
|
+
var emptyBox = {
|
|
11885
|
+
type: "Control",
|
|
11886
|
+
scope: "#/properties/emptyBox",
|
|
11887
|
+
options: {
|
|
11888
|
+
widget: "EmptyBox"
|
|
11889
|
+
},
|
|
11890
|
+
config: {
|
|
11891
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11892
|
+
main: {},
|
|
11893
|
+
style: {}
|
|
11894
|
+
}
|
|
11895
|
+
};
|
|
11668
11896
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11669
11897
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11670
11898
|
if (config2.layout) {
|
|
@@ -12342,19 +12570,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12342
12570
|
});
|
|
12343
12571
|
} else if (config2.type == "Table") {
|
|
12344
12572
|
const sizeMap = {};
|
|
12345
|
-
const filterMap = {};
|
|
12346
12573
|
if (config2.sizeHolder) {
|
|
12347
12574
|
config2.sizeHolder.map((e, i) => {
|
|
12348
12575
|
sizeMap[e.keyName] = e.value;
|
|
12349
12576
|
});
|
|
12350
12577
|
}
|
|
12351
|
-
if (config2.enableColumnFilter) {
|
|
12352
|
-
config2.enableColumnFilter.map((e) => {
|
|
12353
|
-
filterMap[e.keyName] = true;
|
|
12354
|
-
});
|
|
12355
|
-
}
|
|
12356
12578
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12357
|
-
var _a, _b;
|
|
12358
12579
|
if (cellElem.type) {
|
|
12359
12580
|
return {
|
|
12360
12581
|
accessorKey: cellElem.name,
|
|
@@ -12363,8 +12584,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12363
12584
|
type: cellElem.columnFormat,
|
|
12364
12585
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12365
12586
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12366
|
-
|
|
12367
|
-
|
|
12587
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12588
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12589
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12368
12590
|
};
|
|
12369
12591
|
} else {
|
|
12370
12592
|
return {
|
|
@@ -12372,8 +12594,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12372
12594
|
type: cellElem.columnFormat,
|
|
12373
12595
|
header: cellElem.label || cellElem.name,
|
|
12374
12596
|
size: sizeMap[cellElem.name] || 180,
|
|
12375
|
-
|
|
12376
|
-
|
|
12597
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12598
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12599
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12377
12600
|
};
|
|
12378
12601
|
}
|
|
12379
12602
|
});
|