impaktapps-ui-builder 0.0.101-alpha.12 → 0.0.101-alpha.120
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 +1129 -778
- 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 +62 -59
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +17 -21
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +98 -95
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +26 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +52 -38
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +7 -8
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +29 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +56 -37
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +56 -36
- 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/apiSection.ts +111 -96
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +101 -95
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +189 -110
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +39 -17
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +44 -44
- package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +9 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +40 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +117 -48
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +113 -45
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +23 -23
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +68 -11
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +46 -20
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +188 -295
- package/src/impaktapps-ui-builder/builder/services/component.ts +161 -32
- package/src/impaktapps-ui-builder/builder/services/event.ts +165 -65
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +24 -4
|
@@ -96,11 +96,25 @@ const PageMasterUiSchema = (theme) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
type: "Control",
|
|
101
|
+
scope: "#/properties/programIdRequired",
|
|
102
|
+
options: {
|
|
103
|
+
widget: "RadioInputField"
|
|
104
|
+
},
|
|
105
|
+
config: {
|
|
106
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
107
|
+
main: {
|
|
108
|
+
label: "Program ID Required",
|
|
109
|
+
options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
99
113
|
{
|
|
100
114
|
type: "Control",
|
|
101
115
|
scope: "#/properties/EmptyBox",
|
|
102
116
|
config: {
|
|
103
|
-
layout: { xs: 0, sm:
|
|
117
|
+
layout: { xs: 0, sm: 6, md: 0, lg: 3 }
|
|
104
118
|
},
|
|
105
119
|
options: {
|
|
106
120
|
widget: "EmptyBox"
|
|
@@ -184,7 +198,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
184
198
|
size: "small",
|
|
185
199
|
icon: "TablePaste",
|
|
186
200
|
iconLabel: "Paste",
|
|
187
|
-
styleDefault: true
|
|
201
|
+
styleDefault: true,
|
|
202
|
+
title: ""
|
|
188
203
|
},
|
|
189
204
|
style: {
|
|
190
205
|
mt: "6px",
|
|
@@ -365,19 +380,19 @@ const PageMasterUiSchema = (theme) => {
|
|
|
365
380
|
elements: [
|
|
366
381
|
{
|
|
367
382
|
accessorKey: "eventType",
|
|
368
|
-
header: "Event Type",
|
|
383
|
+
header: "Event's Type",
|
|
369
384
|
size: 300,
|
|
370
385
|
type: "string"
|
|
371
386
|
},
|
|
372
387
|
{
|
|
373
388
|
accessorKey: "Handler",
|
|
374
389
|
header: "Handler",
|
|
375
|
-
size:
|
|
390
|
+
size: 200,
|
|
376
391
|
type: "string"
|
|
377
392
|
},
|
|
378
393
|
{
|
|
379
394
|
accessorKey: "Edit_Approve_Records",
|
|
380
|
-
header: "Edit
|
|
395
|
+
header: "Edit",
|
|
381
396
|
type: "action",
|
|
382
397
|
size: 150,
|
|
383
398
|
widget: {
|
|
@@ -405,6 +420,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
405
420
|
{
|
|
406
421
|
accessorKey: "Reject_Records",
|
|
407
422
|
header: "Delete",
|
|
423
|
+
type: "action",
|
|
424
|
+
size: 150,
|
|
408
425
|
widget: {
|
|
409
426
|
type: "Control",
|
|
410
427
|
scope: "#/properties/RejectButton",
|
|
@@ -429,7 +446,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
429
446
|
{
|
|
430
447
|
header: "Copy",
|
|
431
448
|
field: "Copy_Event",
|
|
432
|
-
|
|
449
|
+
type: "action",
|
|
450
|
+
size: 150,
|
|
433
451
|
widget: {
|
|
434
452
|
type: "Control",
|
|
435
453
|
scope: "#/properties/Copy_Event",
|
|
@@ -521,15 +539,17 @@ const PageMasterUiSchema = (theme) => {
|
|
|
521
539
|
config: {
|
|
522
540
|
layout: 11,
|
|
523
541
|
main: {
|
|
524
|
-
heading: "Are you sure you want to delete ?"
|
|
542
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
525
543
|
},
|
|
526
544
|
style: {
|
|
527
|
-
marginTop: "-20px",
|
|
528
545
|
fontSize: "20px",
|
|
529
546
|
"&.MuiTypography-root": {
|
|
530
|
-
padding: "
|
|
547
|
+
padding: "0px 20px",
|
|
531
548
|
textAlign: "center",
|
|
532
|
-
lineHeight: "1"
|
|
549
|
+
lineHeight: "1.2",
|
|
550
|
+
fontWeight: "normal",
|
|
551
|
+
fontSize: "18px",
|
|
552
|
+
marginBottom: theme.spacing(5)
|
|
533
553
|
}
|
|
534
554
|
}
|
|
535
555
|
}
|
|
@@ -551,15 +571,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
551
571
|
layout: 6,
|
|
552
572
|
main: {
|
|
553
573
|
name: "No",
|
|
554
|
-
startIcon: "ApproveIcon",
|
|
555
574
|
variant: "contained",
|
|
556
|
-
color: "info",
|
|
557
575
|
type: "text",
|
|
558
576
|
onClick: "deletePopUpComponent",
|
|
559
577
|
size: "large"
|
|
560
578
|
},
|
|
561
579
|
style: {
|
|
562
580
|
position: "absolute",
|
|
581
|
+
padding: "8px 0px",
|
|
582
|
+
fontSize: "16px",
|
|
563
583
|
bottom: 0,
|
|
564
584
|
left: 0,
|
|
565
585
|
width: "50%",
|
|
@@ -587,7 +607,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
587
607
|
layout: 6,
|
|
588
608
|
main: {
|
|
589
609
|
name: "Yes",
|
|
590
|
-
startIcon: "ApproveIcon",
|
|
591
610
|
variant: "contained",
|
|
592
611
|
color: "error",
|
|
593
612
|
type: "text",
|
|
@@ -596,6 +615,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
596
615
|
},
|
|
597
616
|
style: {
|
|
598
617
|
position: "absolute",
|
|
618
|
+
padding: "8px 0px",
|
|
619
|
+
fontSize: "16px",
|
|
599
620
|
bottom: 0,
|
|
600
621
|
right: 0,
|
|
601
622
|
width: "50%",
|
|
@@ -644,15 +665,17 @@ const PageMasterUiSchema = (theme) => {
|
|
|
644
665
|
config: {
|
|
645
666
|
layout: 11,
|
|
646
667
|
main: {
|
|
647
|
-
heading: "Are you sure you want to delete ?"
|
|
668
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
648
669
|
},
|
|
649
670
|
style: {
|
|
650
|
-
marginTop: "-20px",
|
|
651
671
|
fontSize: "20px",
|
|
652
672
|
"&.MuiTypography-root": {
|
|
653
|
-
padding: "
|
|
673
|
+
padding: "0px 20px",
|
|
654
674
|
textAlign: "center",
|
|
655
|
-
lineHeight: "1"
|
|
675
|
+
lineHeight: "1.2",
|
|
676
|
+
fontWeight: "normal",
|
|
677
|
+
fontSize: "18px",
|
|
678
|
+
marginBottom: theme.spacing(5)
|
|
656
679
|
}
|
|
657
680
|
}
|
|
658
681
|
}
|
|
@@ -674,15 +697,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
674
697
|
layout: 6,
|
|
675
698
|
main: {
|
|
676
699
|
name: "No",
|
|
677
|
-
startIcon: "ApproveIcon",
|
|
678
700
|
variant: "contained",
|
|
679
|
-
color: "info",
|
|
680
701
|
type: "text",
|
|
681
702
|
onClick: "deletePopUpEvent",
|
|
682
703
|
size: "large"
|
|
683
704
|
},
|
|
684
705
|
style: {
|
|
685
706
|
position: "absolute",
|
|
707
|
+
padding: "8px 0px",
|
|
708
|
+
fontSize: "16px",
|
|
686
709
|
bottom: 0,
|
|
687
710
|
left: 0,
|
|
688
711
|
width: "50%",
|
|
@@ -710,7 +733,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
710
733
|
layout: 6,
|
|
711
734
|
main: {
|
|
712
735
|
name: "Yes",
|
|
713
|
-
startIcon: "ApproveIcon",
|
|
714
736
|
variant: "contained",
|
|
715
737
|
color: "error",
|
|
716
738
|
type: "text",
|
|
@@ -719,6 +741,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
719
741
|
},
|
|
720
742
|
style: {
|
|
721
743
|
position: "absolute",
|
|
744
|
+
padding: "8px 0px",
|
|
745
|
+
fontSize: "16px",
|
|
722
746
|
bottom: 0,
|
|
723
747
|
right: 0,
|
|
724
748
|
width: "50%",
|
|
@@ -6240,44 +6264,44 @@ const ComponentSchema = {
|
|
|
6240
6264
|
properties: {
|
|
6241
6265
|
type: {
|
|
6242
6266
|
oneOf: [
|
|
6243
|
-
{ title: "
|
|
6267
|
+
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
6244
6268
|
{ title: "Array", const: "Array" },
|
|
6245
6269
|
{ title: "Button", const: "Button" },
|
|
6246
|
-
{ title: "Card", const: "card" },
|
|
6247
|
-
{ title: "
|
|
6270
|
+
{ title: "Data Card", const: "card" },
|
|
6271
|
+
{ title: "Check Box", const: "CheckBox" },
|
|
6248
6272
|
{ title: "Container", const: "WrapperSection" },
|
|
6249
|
-
{ title: "
|
|
6273
|
+
{ title: "Data Grid", const: "DataGrid" },
|
|
6250
6274
|
{ title: "Date", const: "Date" },
|
|
6251
|
-
{ title: "
|
|
6252
|
-
{ title: "Download
|
|
6275
|
+
{ title: "Time Stamp", const: "DateTime" },
|
|
6276
|
+
{ title: "Download", const: "DownloadFile" },
|
|
6253
6277
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6254
|
-
{ title: "File", const: "FileInput" },
|
|
6278
|
+
{ title: "File Handler", const: "FileInput" },
|
|
6255
6279
|
{ title: "Graph", const: "Graph" },
|
|
6256
6280
|
{ title: "Input Slider", const: "InputSlider" },
|
|
6257
6281
|
{ title: "Label", const: "Box" },
|
|
6258
|
-
{ title: "
|
|
6259
|
-
{ title: "
|
|
6260
|
-
{ title: "
|
|
6261
|
-
{ title: "
|
|
6262
|
-
{ title: "
|
|
6263
|
-
{ title: "
|
|
6264
|
-
{ title: "
|
|
6282
|
+
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6283
|
+
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6284
|
+
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6285
|
+
{ title: "Pop Up", const: "PopUp" },
|
|
6286
|
+
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6287
|
+
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6288
|
+
{ title: "Dropdown", const: "Select" },
|
|
6265
6289
|
{ title: "Slider", const: "Slider" },
|
|
6266
|
-
{ title: "
|
|
6290
|
+
{ title: "Speedometer", const: "SpeedoMeter" },
|
|
6267
6291
|
{ title: "Stepper Container", const: "Stepper" },
|
|
6268
6292
|
{ title: "Radio", const: "Radio" },
|
|
6269
6293
|
{ title: "Rank", const: "Rank" },
|
|
6270
6294
|
{ title: "Rank Card", const: "RankCard" },
|
|
6271
|
-
{ title: "Runner Boy
|
|
6295
|
+
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6272
6296
|
{ title: "Table", const: "Table" },
|
|
6273
6297
|
{ title: "Tabs", const: "TabSection" },
|
|
6274
6298
|
{ title: "Text", const: "Text" },
|
|
6275
6299
|
{ title: "Text Area", const: "TextArea" },
|
|
6276
6300
|
{ title: "Timer", const: "Timer" },
|
|
6277
|
-
{ title: "Upload
|
|
6278
|
-
{ title: "
|
|
6279
|
-
{ title: "
|
|
6280
|
-
{ title: "Thought of the
|
|
6301
|
+
{ title: "Upload", const: "UploadFile" },
|
|
6302
|
+
{ title: "Tree ", const: "TreeMap" },
|
|
6303
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6304
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6281
6305
|
{ title: "Pdf Viewer", const: "PdfViewer" }
|
|
6282
6306
|
]
|
|
6283
6307
|
},
|
|
@@ -6432,23 +6456,20 @@ const ComponentSchema = {
|
|
|
6432
6456
|
}
|
|
6433
6457
|
},
|
|
6434
6458
|
filteringOptions: {
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6450
|
-
]
|
|
6451
|
-
}
|
|
6459
|
+
oneOf: [
|
|
6460
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6461
|
+
{ const: "contains", title: "Contain" },
|
|
6462
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6463
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6464
|
+
{ const: "equals", title: "Equals" },
|
|
6465
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6466
|
+
{ const: "between", title: "Between" },
|
|
6467
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6468
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6469
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6470
|
+
{ const: "lessThan", title: "Less than" },
|
|
6471
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6472
|
+
]
|
|
6452
6473
|
},
|
|
6453
6474
|
legendLabels: {
|
|
6454
6475
|
type: "array",
|
|
@@ -6564,6 +6585,9 @@ const ComponentSchema = {
|
|
|
6564
6585
|
{ title: "Info", const: "info" }
|
|
6565
6586
|
]
|
|
6566
6587
|
},
|
|
6588
|
+
pageName: {
|
|
6589
|
+
path: []
|
|
6590
|
+
},
|
|
6567
6591
|
name: {
|
|
6568
6592
|
type: "string"
|
|
6569
6593
|
},
|
|
@@ -6644,8 +6668,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6644
6668
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
6645
6669
|
main: {
|
|
6646
6670
|
label: "Component ID",
|
|
6647
|
-
options: [],
|
|
6648
|
-
color: "secondary",
|
|
6649
6671
|
required: true
|
|
6650
6672
|
}
|
|
6651
6673
|
}
|
|
@@ -6827,15 +6849,16 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6827
6849
|
config: {
|
|
6828
6850
|
layout: 11,
|
|
6829
6851
|
main: {
|
|
6830
|
-
heading: "Are you sure you want to delete ?"
|
|
6852
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
6831
6853
|
},
|
|
6832
6854
|
style: {
|
|
6833
|
-
marginTop: "-20px",
|
|
6834
|
-
fontSize: "20px",
|
|
6835
6855
|
"&.MuiTypography-root": {
|
|
6836
|
-
padding: "
|
|
6856
|
+
padding: "0px 20px",
|
|
6837
6857
|
textAlign: "center",
|
|
6838
|
-
lineHeight: "1"
|
|
6858
|
+
lineHeight: "1.2",
|
|
6859
|
+
fontWeight: "normal",
|
|
6860
|
+
fontSize: "18px",
|
|
6861
|
+
marginBottom: theme.spacing(5)
|
|
6839
6862
|
}
|
|
6840
6863
|
}
|
|
6841
6864
|
}
|
|
@@ -6864,6 +6887,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6864
6887
|
},
|
|
6865
6888
|
style: {
|
|
6866
6889
|
position: "absolute",
|
|
6890
|
+
padding: "8px 0px",
|
|
6891
|
+
fontSize: "16px",
|
|
6867
6892
|
bottom: 0,
|
|
6868
6893
|
left: 0,
|
|
6869
6894
|
width: "50%",
|
|
@@ -6899,6 +6924,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6899
6924
|
},
|
|
6900
6925
|
style: {
|
|
6901
6926
|
position: "absolute",
|
|
6927
|
+
padding: "8px 0px",
|
|
6928
|
+
fontSize: "16px",
|
|
6902
6929
|
bottom: 0,
|
|
6903
6930
|
right: 0,
|
|
6904
6931
|
width: "50%",
|
|
@@ -6947,15 +6974,17 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6947
6974
|
config: {
|
|
6948
6975
|
layout: 11,
|
|
6949
6976
|
main: {
|
|
6950
|
-
heading: "Are you sure you want to delete ?"
|
|
6977
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
6951
6978
|
},
|
|
6952
6979
|
style: {
|
|
6953
|
-
marginTop: "-20px",
|
|
6954
6980
|
fontSize: "20px",
|
|
6955
6981
|
"&.MuiTypography-root": {
|
|
6956
|
-
padding: "
|
|
6982
|
+
padding: "0px 20px",
|
|
6957
6983
|
textAlign: "center",
|
|
6958
|
-
lineHeight: "1"
|
|
6984
|
+
lineHeight: "1.2",
|
|
6985
|
+
fontWeight: "normal",
|
|
6986
|
+
fontSize: "18px",
|
|
6987
|
+
marginBottom: theme.spacing(5)
|
|
6959
6988
|
}
|
|
6960
6989
|
}
|
|
6961
6990
|
}
|
|
@@ -6984,6 +7013,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6984
7013
|
},
|
|
6985
7014
|
style: {
|
|
6986
7015
|
position: "absolute",
|
|
7016
|
+
padding: "8px 0px",
|
|
7017
|
+
fontSize: "16px",
|
|
6987
7018
|
bottom: 0,
|
|
6988
7019
|
left: 0,
|
|
6989
7020
|
width: "50%",
|
|
@@ -7019,6 +7050,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7019
7050
|
},
|
|
7020
7051
|
style: {
|
|
7021
7052
|
position: "absolute",
|
|
7053
|
+
padding: "8px 0px",
|
|
7054
|
+
fontSize: "16px",
|
|
7022
7055
|
bottom: 0,
|
|
7023
7056
|
right: 0,
|
|
7024
7057
|
width: "50%",
|
|
@@ -7039,6 +7072,27 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7039
7072
|
}
|
|
7040
7073
|
]
|
|
7041
7074
|
},
|
|
7075
|
+
{
|
|
7076
|
+
type: "Control",
|
|
7077
|
+
scope: "#/properties/pageName",
|
|
7078
|
+
options: {
|
|
7079
|
+
widget: "Breadcrumb"
|
|
7080
|
+
},
|
|
7081
|
+
config: {
|
|
7082
|
+
layout: 12,
|
|
7083
|
+
main: {},
|
|
7084
|
+
style: {
|
|
7085
|
+
paddingLeft: theme.spacing(3),
|
|
7086
|
+
color: theme.palette.grey[600],
|
|
7087
|
+
fontSize: "10px",
|
|
7088
|
+
position: "fixed",
|
|
7089
|
+
bottom: "24px",
|
|
7090
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7091
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
7092
|
+
backgroundColor: theme.palette.background.default
|
|
7093
|
+
}
|
|
7094
|
+
}
|
|
7095
|
+
},
|
|
7042
7096
|
{
|
|
7043
7097
|
type: "Control",
|
|
7044
7098
|
scope: "#/properties/notify",
|
|
@@ -7096,7 +7150,13 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7096
7150
|
return uiSchema;
|
|
7097
7151
|
};
|
|
7098
7152
|
const CoreSection = {
|
|
7099
|
-
type: "
|
|
7153
|
+
type: "WrapperLayout",
|
|
7154
|
+
config: {
|
|
7155
|
+
main: {
|
|
7156
|
+
label: " ",
|
|
7157
|
+
gap: "8px"
|
|
7158
|
+
}
|
|
7159
|
+
},
|
|
7100
7160
|
elements: [
|
|
7101
7161
|
{
|
|
7102
7162
|
type: "Control",
|
|
@@ -7105,7 +7165,7 @@ const CoreSection = {
|
|
|
7105
7165
|
widget: "SelectInputField"
|
|
7106
7166
|
},
|
|
7107
7167
|
config: {
|
|
7108
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7168
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7109
7169
|
main: {
|
|
7110
7170
|
label: "Type",
|
|
7111
7171
|
type: "text"
|
|
@@ -7114,40 +7174,39 @@ const CoreSection = {
|
|
|
7114
7174
|
},
|
|
7115
7175
|
{
|
|
7116
7176
|
type: "Control",
|
|
7117
|
-
scope: "#/properties/
|
|
7118
|
-
options: {
|
|
7119
|
-
widget: "InputField"
|
|
7120
|
-
},
|
|
7177
|
+
scope: "#/properties/proc",
|
|
7121
7178
|
config: {
|
|
7122
|
-
layout: { xs: 6, sm:
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7179
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
7180
|
+
},
|
|
7181
|
+
options: {
|
|
7182
|
+
widget: "EmptyBox"
|
|
7126
7183
|
}
|
|
7127
7184
|
},
|
|
7128
7185
|
{
|
|
7129
7186
|
type: "Control",
|
|
7130
|
-
scope: "#/properties/
|
|
7187
|
+
scope: "#/properties/name",
|
|
7131
7188
|
options: {
|
|
7132
7189
|
widget: "InputField"
|
|
7133
7190
|
},
|
|
7134
7191
|
config: {
|
|
7135
|
-
layout: { xs:
|
|
7192
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7136
7193
|
main: {
|
|
7137
|
-
label: "
|
|
7194
|
+
label: "Component ID",
|
|
7195
|
+
required: true
|
|
7138
7196
|
}
|
|
7139
7197
|
}
|
|
7140
7198
|
},
|
|
7141
7199
|
{
|
|
7142
7200
|
type: "Control",
|
|
7143
|
-
scope: "#/properties/
|
|
7201
|
+
scope: "#/properties/label",
|
|
7144
7202
|
options: {
|
|
7145
|
-
widget: "
|
|
7203
|
+
widget: "InputField"
|
|
7146
7204
|
},
|
|
7147
7205
|
config: {
|
|
7148
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7206
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7149
7207
|
main: {
|
|
7150
|
-
label: "
|
|
7208
|
+
label: "Label",
|
|
7209
|
+
required: true
|
|
7151
7210
|
}
|
|
7152
7211
|
}
|
|
7153
7212
|
},
|
|
@@ -7155,17 +7214,7 @@ const CoreSection = {
|
|
|
7155
7214
|
type: "Control",
|
|
7156
7215
|
scope: "#/properties/proc",
|
|
7157
7216
|
config: {
|
|
7158
|
-
layout: { xs:
|
|
7159
|
-
},
|
|
7160
|
-
options: {
|
|
7161
|
-
widget: "EmptyBox"
|
|
7162
|
-
}
|
|
7163
|
-
},
|
|
7164
|
-
{
|
|
7165
|
-
type: "Control",
|
|
7166
|
-
scope: "#/properties/proc",
|
|
7167
|
-
config: {
|
|
7168
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7217
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7169
7218
|
},
|
|
7170
7219
|
options: {
|
|
7171
7220
|
widget: "EmptyBox"
|
|
@@ -7174,54 +7223,67 @@ const CoreSection = {
|
|
|
7174
7223
|
{
|
|
7175
7224
|
type: "Control",
|
|
7176
7225
|
scope: "#/properties/layout",
|
|
7177
|
-
layout: 12,
|
|
7178
7226
|
options: {
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
}
|
|
7210
|
-
}
|
|
7211
|
-
},
|
|
7212
|
-
{
|
|
7213
|
-
type: "Control",
|
|
7214
|
-
scope: "#/properties/proc",
|
|
7215
|
-
config: {
|
|
7216
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7217
|
-
},
|
|
7218
|
-
options: {
|
|
7219
|
-
widget: "EmptyBox"
|
|
7220
|
-
}
|
|
7227
|
+
widget: "Array"
|
|
7228
|
+
},
|
|
7229
|
+
config: {
|
|
7230
|
+
layout: 12,
|
|
7231
|
+
main: {
|
|
7232
|
+
label: "Layout",
|
|
7233
|
+
childElementLabel: "Layout"
|
|
7234
|
+
},
|
|
7235
|
+
style: {
|
|
7236
|
+
marginLeft: "-24px",
|
|
7237
|
+
marginBottom: "24px !important",
|
|
7238
|
+
labelStyle: {
|
|
7239
|
+
marginLeft: "24px"
|
|
7240
|
+
},
|
|
7241
|
+
detailsStyle: {
|
|
7242
|
+
marginLeft: "24px"
|
|
7243
|
+
}
|
|
7244
|
+
}
|
|
7245
|
+
},
|
|
7246
|
+
elements: [
|
|
7247
|
+
{
|
|
7248
|
+
type: "Control",
|
|
7249
|
+
scope: "#/properties/key",
|
|
7250
|
+
options: {
|
|
7251
|
+
widget: "SelectInputField"
|
|
7252
|
+
},
|
|
7253
|
+
config: {
|
|
7254
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7255
|
+
main: {
|
|
7256
|
+
label: "Screen Size"
|
|
7221
7257
|
}
|
|
7222
|
-
|
|
7258
|
+
}
|
|
7259
|
+
},
|
|
7260
|
+
{
|
|
7261
|
+
type: "Control",
|
|
7262
|
+
scope: "#/properties/value",
|
|
7263
|
+
options: {
|
|
7264
|
+
widget: "InputField"
|
|
7265
|
+
},
|
|
7266
|
+
config: {
|
|
7267
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7268
|
+
main: {
|
|
7269
|
+
label: "Value",
|
|
7270
|
+
type: "number",
|
|
7271
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7272
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7273
|
+
}
|
|
7274
|
+
}
|
|
7275
|
+
},
|
|
7276
|
+
{
|
|
7277
|
+
type: "Control",
|
|
7278
|
+
scope: "#/properties/proc",
|
|
7279
|
+
config: {
|
|
7280
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7281
|
+
},
|
|
7282
|
+
options: {
|
|
7283
|
+
widget: "EmptyBox"
|
|
7284
|
+
}
|
|
7223
7285
|
}
|
|
7224
|
-
|
|
7286
|
+
]
|
|
7225
7287
|
}
|
|
7226
7288
|
]
|
|
7227
7289
|
};
|
|
@@ -7248,15 +7310,20 @@ const EventSection = (theme) => {
|
|
|
7248
7310
|
},
|
|
7249
7311
|
config: {
|
|
7250
7312
|
main: {
|
|
7251
|
-
color: "info",
|
|
7252
7313
|
onClick: "eventAddHandler",
|
|
7253
7314
|
size: "small",
|
|
7254
|
-
icon: "
|
|
7255
|
-
iconLabel: "Add
|
|
7315
|
+
icon: "TableAddIcon",
|
|
7316
|
+
iconLabel: "Add",
|
|
7256
7317
|
styleDefault: true
|
|
7257
7318
|
},
|
|
7258
7319
|
style: {
|
|
7259
|
-
mt: "6px"
|
|
7320
|
+
mt: "6px",
|
|
7321
|
+
color: "inherit",
|
|
7322
|
+
fill: "inherit",
|
|
7323
|
+
"&:hover": {
|
|
7324
|
+
color: "inherit",
|
|
7325
|
+
fill: "inherit"
|
|
7326
|
+
}
|
|
7260
7327
|
}
|
|
7261
7328
|
}
|
|
7262
7329
|
}
|
|
@@ -7272,12 +7339,18 @@ const EventSection = (theme) => {
|
|
|
7272
7339
|
main: {
|
|
7273
7340
|
onClick: "copyPasteElement",
|
|
7274
7341
|
size: "small",
|
|
7275
|
-
icon: "
|
|
7342
|
+
icon: "TablePaste",
|
|
7276
7343
|
iconLabel: "Paste",
|
|
7277
7344
|
styleDefault: true
|
|
7278
7345
|
},
|
|
7279
7346
|
style: {
|
|
7280
|
-
mt: "6px"
|
|
7347
|
+
mt: "6px",
|
|
7348
|
+
color: "inherit",
|
|
7349
|
+
fill: "inherit",
|
|
7350
|
+
"&:hover": {
|
|
7351
|
+
color: "inherit",
|
|
7352
|
+
fill: "inherit"
|
|
7353
|
+
}
|
|
7281
7354
|
}
|
|
7282
7355
|
}
|
|
7283
7356
|
}
|
|
@@ -7292,15 +7365,21 @@ const EventSection = (theme) => {
|
|
|
7292
7365
|
elements: [
|
|
7293
7366
|
{
|
|
7294
7367
|
accessorKey: "eventType",
|
|
7295
|
-
header: "Event Type"
|
|
7368
|
+
header: "Event's Type",
|
|
7369
|
+
type: "string",
|
|
7370
|
+
size: 300
|
|
7296
7371
|
},
|
|
7297
7372
|
{
|
|
7298
7373
|
accessorKey: "Handler",
|
|
7299
|
-
header: "Handler"
|
|
7374
|
+
header: "Handler",
|
|
7375
|
+
type: "string",
|
|
7376
|
+
size: 200
|
|
7300
7377
|
},
|
|
7301
7378
|
{
|
|
7302
7379
|
accessorKey: "Edit_Approve_Records",
|
|
7303
|
-
header: "Edit
|
|
7380
|
+
header: "Edit",
|
|
7381
|
+
size: 150,
|
|
7382
|
+
type: "action",
|
|
7304
7383
|
widget: {
|
|
7305
7384
|
type: "Control",
|
|
7306
7385
|
scope: "#/properties/Edit_Records",
|
|
@@ -7309,14 +7388,16 @@ const EventSection = (theme) => {
|
|
|
7309
7388
|
},
|
|
7310
7389
|
config: {
|
|
7311
7390
|
main: {
|
|
7312
|
-
color: "info",
|
|
7313
7391
|
size: "small",
|
|
7314
|
-
icon: "
|
|
7392
|
+
icon: "TableEditIcon",
|
|
7315
7393
|
tooltipMessage: "Edit This Record",
|
|
7316
7394
|
onClick: "eventEditHandler"
|
|
7317
7395
|
},
|
|
7318
7396
|
style: {
|
|
7319
|
-
|
|
7397
|
+
fill: theme.palette.primary.main,
|
|
7398
|
+
"& :hover": {
|
|
7399
|
+
fill: theme.palette.primary.dark
|
|
7400
|
+
}
|
|
7320
7401
|
}
|
|
7321
7402
|
}
|
|
7322
7403
|
}
|
|
@@ -7324,6 +7405,8 @@ const EventSection = (theme) => {
|
|
|
7324
7405
|
{
|
|
7325
7406
|
accessorKey: "Reject_Records",
|
|
7326
7407
|
header: "Delete",
|
|
7408
|
+
size: 150,
|
|
7409
|
+
type: "action",
|
|
7327
7410
|
widget: {
|
|
7328
7411
|
type: "Control",
|
|
7329
7412
|
scope: "#/properties/RejectButton",
|
|
@@ -7333,10 +7416,15 @@ const EventSection = (theme) => {
|
|
|
7333
7416
|
},
|
|
7334
7417
|
config: {
|
|
7335
7418
|
main: {
|
|
7336
|
-
icon: "
|
|
7337
|
-
color: "error",
|
|
7419
|
+
icon: "Bin",
|
|
7338
7420
|
tooltipMessage: "Reject This Record",
|
|
7339
7421
|
onClick: "deletePopUpEvent"
|
|
7422
|
+
},
|
|
7423
|
+
style: {
|
|
7424
|
+
fill: theme.palette.primary.main,
|
|
7425
|
+
"& :hover": {
|
|
7426
|
+
fill: theme.palette.primary.dark
|
|
7427
|
+
}
|
|
7340
7428
|
}
|
|
7341
7429
|
}
|
|
7342
7430
|
}
|
|
@@ -7344,7 +7432,8 @@ const EventSection = (theme) => {
|
|
|
7344
7432
|
{
|
|
7345
7433
|
header: "Copy",
|
|
7346
7434
|
field: "Copy_Event",
|
|
7347
|
-
|
|
7435
|
+
size: 150,
|
|
7436
|
+
type: "action",
|
|
7348
7437
|
widget: {
|
|
7349
7438
|
type: "Control",
|
|
7350
7439
|
scope: "#/properties/Copy_Event",
|
|
@@ -7394,77 +7483,103 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7394
7483
|
const cardLayout = {
|
|
7395
7484
|
type: "Control",
|
|
7396
7485
|
scope: "#/properties/cardLayout",
|
|
7397
|
-
layout: 11.5,
|
|
7398
7486
|
options: {
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
type: "Control",
|
|
7417
|
-
scope: "#/properties/value",
|
|
7418
|
-
options: {
|
|
7419
|
-
widget: "InputField"
|
|
7420
|
-
},
|
|
7421
|
-
config: {
|
|
7422
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7423
|
-
main: {
|
|
7424
|
-
label: "Value",
|
|
7425
|
-
type: "number",
|
|
7426
|
-
helperText: "Number should be in range of 0 to 12",
|
|
7427
|
-
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7428
|
-
}
|
|
7429
|
-
}
|
|
7430
|
-
},
|
|
7431
|
-
emptyBox$1("cardEmpty")
|
|
7432
|
-
]
|
|
7487
|
+
widget: "Array"
|
|
7488
|
+
},
|
|
7489
|
+
config: {
|
|
7490
|
+
layout: 12,
|
|
7491
|
+
main: {
|
|
7492
|
+
label: "Card Layout",
|
|
7493
|
+
childElementLabel: "Card Layout"
|
|
7494
|
+
},
|
|
7495
|
+
style: {
|
|
7496
|
+
marginLeft: "-24px",
|
|
7497
|
+
marginBottom: "24px !important",
|
|
7498
|
+
labelStyle: {
|
|
7499
|
+
marginLeft: "24px"
|
|
7500
|
+
},
|
|
7501
|
+
detailsStyle: {
|
|
7502
|
+
marginLeft: "24px"
|
|
7503
|
+
}
|
|
7433
7504
|
}
|
|
7434
|
-
}
|
|
7505
|
+
},
|
|
7506
|
+
elements: [
|
|
7507
|
+
{
|
|
7508
|
+
type: "Control",
|
|
7509
|
+
scope: "#/properties/key",
|
|
7510
|
+
options: {
|
|
7511
|
+
widget: "SelectInputField"
|
|
7512
|
+
},
|
|
7513
|
+
config: {
|
|
7514
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7515
|
+
main: {
|
|
7516
|
+
label: "Screen Size"
|
|
7517
|
+
}
|
|
7518
|
+
}
|
|
7519
|
+
},
|
|
7520
|
+
{
|
|
7521
|
+
type: "Control",
|
|
7522
|
+
scope: "#/properties/value",
|
|
7523
|
+
options: {
|
|
7524
|
+
widget: "InputField"
|
|
7525
|
+
},
|
|
7526
|
+
config: {
|
|
7527
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7528
|
+
main: {
|
|
7529
|
+
label: "Value",
|
|
7530
|
+
type: "number",
|
|
7531
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7532
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
},
|
|
7536
|
+
emptyBox$1("cardEmpty")
|
|
7537
|
+
]
|
|
7435
7538
|
};
|
|
7436
7539
|
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7437
7540
|
return {
|
|
7438
7541
|
type: "Control",
|
|
7439
7542
|
scope: `#/properties/${parentScope}`,
|
|
7440
|
-
layout: 12,
|
|
7441
7543
|
options: {
|
|
7442
|
-
"
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7544
|
+
widget: "Array"
|
|
7545
|
+
},
|
|
7546
|
+
config: {
|
|
7547
|
+
layout: 12,
|
|
7548
|
+
main: {
|
|
7549
|
+
label: childLabel,
|
|
7550
|
+
childElementLabel: childLabel
|
|
7551
|
+
},
|
|
7552
|
+
style: {
|
|
7553
|
+
marginLeft: "-24px",
|
|
7554
|
+
marginBottom: "24px !important",
|
|
7555
|
+
labelStyle: {
|
|
7556
|
+
marginLeft: "24px"
|
|
7557
|
+
},
|
|
7558
|
+
detailsStyle: {
|
|
7559
|
+
marginLeft: "24px"
|
|
7560
|
+
}
|
|
7561
|
+
}
|
|
7562
|
+
},
|
|
7563
|
+
elements: [
|
|
7564
|
+
{
|
|
7565
|
+
type: "Control",
|
|
7566
|
+
scope: `#/properties/${childScope}`,
|
|
7567
|
+
options: {
|
|
7568
|
+
widget: "InputField"
|
|
7569
|
+
},
|
|
7570
|
+
config: {
|
|
7571
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7572
|
+
main: {
|
|
7573
|
+
label: childLabel || "Labels for Tab"
|
|
7574
|
+
}
|
|
7575
|
+
}
|
|
7576
|
+
},
|
|
7577
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7578
|
+
]
|
|
7579
|
+
};
|
|
7580
|
+
};
|
|
7466
7581
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7467
|
-
sizeHolder.
|
|
7582
|
+
sizeHolder.elements[1] = {
|
|
7468
7583
|
type: "Control",
|
|
7469
7584
|
scope: `#/properties/value`,
|
|
7470
7585
|
options: {
|
|
@@ -7477,7 +7592,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7477
7592
|
}
|
|
7478
7593
|
}
|
|
7479
7594
|
};
|
|
7480
|
-
sizeHolder.
|
|
7595
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7481
7596
|
const getInputField = (scope, label) => {
|
|
7482
7597
|
return {
|
|
7483
7598
|
type: "Control",
|
|
@@ -7486,7 +7601,7 @@ const getInputField = (scope, label) => {
|
|
|
7486
7601
|
widget: "InputField"
|
|
7487
7602
|
},
|
|
7488
7603
|
config: {
|
|
7489
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7604
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7490
7605
|
main: {
|
|
7491
7606
|
label
|
|
7492
7607
|
}
|
|
@@ -7501,7 +7616,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7501
7616
|
widget: "RadioInputField"
|
|
7502
7617
|
},
|
|
7503
7618
|
config: {
|
|
7504
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
7619
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7505
7620
|
main: {
|
|
7506
7621
|
label,
|
|
7507
7622
|
options
|
|
@@ -7516,17 +7631,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7516
7631
|
main: {
|
|
7517
7632
|
label: label || "Details",
|
|
7518
7633
|
isAccordion: true
|
|
7519
|
-
}
|
|
7520
|
-
wrapperStyle: {
|
|
7521
|
-
marginTop: "-6px",
|
|
7522
|
-
marginBottom: "-8px",
|
|
7523
|
-
marginLeft: "-34px",
|
|
7524
|
-
width: "108%"
|
|
7525
|
-
},
|
|
7526
|
-
componentsBoxStyle: {
|
|
7527
|
-
marginLeft: "12px"
|
|
7528
|
-
},
|
|
7529
|
-
defaultStyle: true
|
|
7634
|
+
}
|
|
7530
7635
|
},
|
|
7531
7636
|
elements: elements || []
|
|
7532
7637
|
};
|
|
@@ -7540,18 +7645,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7540
7645
|
},
|
|
7541
7646
|
config: {
|
|
7542
7647
|
layout: layout || 12,
|
|
7543
|
-
style: {
|
|
7544
|
-
containerStyle: {
|
|
7545
|
-
borderRadius: "20px"
|
|
7546
|
-
},
|
|
7547
|
-
headerContainerStyle: {},
|
|
7548
|
-
textAreaStyle: {
|
|
7549
|
-
borderRadius: "20px",
|
|
7550
|
-
padding: "20px"
|
|
7551
|
-
}
|
|
7552
|
-
},
|
|
7553
7648
|
main: {
|
|
7554
|
-
heading,
|
|
7649
|
+
label: heading,
|
|
7555
7650
|
minRows: 8,
|
|
7556
7651
|
hideButton,
|
|
7557
7652
|
enableCodeEditor: true
|
|
@@ -7567,7 +7662,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7567
7662
|
widget: "SelectInputField"
|
|
7568
7663
|
},
|
|
7569
7664
|
config: {
|
|
7570
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7665
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7571
7666
|
main: {
|
|
7572
7667
|
label,
|
|
7573
7668
|
type: "text"
|
|
@@ -7583,7 +7678,7 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7583
7678
|
widget: "MultipleSelect"
|
|
7584
7679
|
},
|
|
7585
7680
|
config: {
|
|
7586
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7681
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7587
7682
|
main: {
|
|
7588
7683
|
multiple: true,
|
|
7589
7684
|
label,
|
|
@@ -7592,12 +7687,18 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7592
7687
|
}
|
|
7593
7688
|
};
|
|
7594
7689
|
};
|
|
7595
|
-
const
|
|
7690
|
+
const BaseSection = {
|
|
7596
7691
|
type: "WrapperLayout",
|
|
7692
|
+
config: {
|
|
7693
|
+
main: {
|
|
7694
|
+
label: " ",
|
|
7695
|
+
gap: "8px"
|
|
7696
|
+
}
|
|
7697
|
+
},
|
|
7597
7698
|
elements: []
|
|
7598
7699
|
};
|
|
7599
7700
|
const buildPropertiesSection = function(type) {
|
|
7600
|
-
let uiSchema = _.cloneDeep(
|
|
7701
|
+
let uiSchema = _.cloneDeep(BaseSection);
|
|
7601
7702
|
switch (type) {
|
|
7602
7703
|
case "TreeMap":
|
|
7603
7704
|
uiSchema.elements = [
|
|
@@ -7652,7 +7753,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7652
7753
|
case "Text":
|
|
7653
7754
|
uiSchema.elements = [
|
|
7654
7755
|
getInputField("placeholder", "Placeholder"),
|
|
7655
|
-
|
|
7756
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7656
7757
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7657
7758
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7658
7759
|
];
|
|
@@ -7661,7 +7762,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7661
7762
|
uiSchema.elements = [
|
|
7662
7763
|
getInputField("placeholder", "Placeholder"),
|
|
7663
7764
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7664
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7765
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7766
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7665
7767
|
];
|
|
7666
7768
|
break;
|
|
7667
7769
|
case "SpeedoMeter":
|
|
@@ -7741,7 +7843,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7741
7843
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7742
7844
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7743
7845
|
getInputField("leftMargin", "Left Margin"),
|
|
7744
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7846
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7745
7847
|
getArrayControl("legendLabels", "label"),
|
|
7746
7848
|
getArrayControl("pieArcColors", "color")
|
|
7747
7849
|
];
|
|
@@ -7822,7 +7924,13 @@ const buildPropertiesSection = function(type) {
|
|
|
7822
7924
|
return uiSchema;
|
|
7823
7925
|
};
|
|
7824
7926
|
const StyleSection = {
|
|
7825
|
-
type: "
|
|
7927
|
+
type: "WrapperLayout",
|
|
7928
|
+
config: {
|
|
7929
|
+
main: {
|
|
7930
|
+
label: " ",
|
|
7931
|
+
gap: "8px"
|
|
7932
|
+
}
|
|
7933
|
+
},
|
|
7826
7934
|
elements: [
|
|
7827
7935
|
{
|
|
7828
7936
|
type: "Control",
|
|
@@ -7838,14 +7946,7 @@ const StyleSection = {
|
|
|
7838
7946
|
lg: 12
|
|
7839
7947
|
},
|
|
7840
7948
|
style: {
|
|
7841
|
-
|
|
7842
|
-
borderRadius: "20px"
|
|
7843
|
-
},
|
|
7844
|
-
headerContainerStyle: {},
|
|
7845
|
-
textAreaStyle: {
|
|
7846
|
-
borderRadius: "20px",
|
|
7847
|
-
padding: "20px"
|
|
7848
|
-
}
|
|
7949
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
7849
7950
|
},
|
|
7850
7951
|
main: {
|
|
7851
7952
|
heading: "JSON Style",
|
|
@@ -7879,15 +7980,20 @@ const TableSection = (theme) => {
|
|
|
7879
7980
|
},
|
|
7880
7981
|
config: {
|
|
7881
7982
|
main: {
|
|
7882
|
-
color: "info",
|
|
7883
7983
|
onClick: "widgetAddClickHandler",
|
|
7884
7984
|
size: "small",
|
|
7885
|
-
icon: "
|
|
7886
|
-
iconLabel: "Add
|
|
7985
|
+
icon: "TableAddIcon",
|
|
7986
|
+
iconLabel: "Add",
|
|
7887
7987
|
styleDefault: true
|
|
7888
7988
|
},
|
|
7889
7989
|
style: {
|
|
7890
|
-
mt: "6px"
|
|
7990
|
+
mt: "6px",
|
|
7991
|
+
color: "inherit",
|
|
7992
|
+
fill: "inherit",
|
|
7993
|
+
"&:hover": {
|
|
7994
|
+
color: "inherit",
|
|
7995
|
+
fill: "inherit"
|
|
7996
|
+
}
|
|
7891
7997
|
}
|
|
7892
7998
|
}
|
|
7893
7999
|
}
|
|
@@ -7903,12 +8009,18 @@ const TableSection = (theme) => {
|
|
|
7903
8009
|
main: {
|
|
7904
8010
|
onClick: "copyPasteElement",
|
|
7905
8011
|
size: "small",
|
|
7906
|
-
icon: "
|
|
8012
|
+
icon: "TablePaste",
|
|
7907
8013
|
iconLabel: "Paste",
|
|
7908
8014
|
styleDefault: true
|
|
7909
8015
|
},
|
|
7910
8016
|
style: {
|
|
7911
|
-
mt: "6px"
|
|
8017
|
+
mt: "6px",
|
|
8018
|
+
color: "inherit",
|
|
8019
|
+
fill: "inherit",
|
|
8020
|
+
"&:hover": {
|
|
8021
|
+
color: "inherit",
|
|
8022
|
+
fill: "inherit"
|
|
8023
|
+
}
|
|
7912
8024
|
}
|
|
7913
8025
|
}
|
|
7914
8026
|
}
|
|
@@ -7923,16 +8035,21 @@ const TableSection = (theme) => {
|
|
|
7923
8035
|
elements: [
|
|
7924
8036
|
{
|
|
7925
8037
|
accessorKey: "name",
|
|
7926
|
-
header: "Name"
|
|
8038
|
+
header: "Name",
|
|
8039
|
+
type: "string",
|
|
8040
|
+
size: 300
|
|
7927
8041
|
},
|
|
7928
8042
|
{
|
|
7929
8043
|
accessorKey: "type",
|
|
7930
|
-
header: "Type"
|
|
8044
|
+
header: "Type",
|
|
8045
|
+
type: "string",
|
|
8046
|
+
size: 200
|
|
7931
8047
|
},
|
|
7932
8048
|
{
|
|
7933
8049
|
header: "Edit Record",
|
|
7934
8050
|
field: "Reject_Records",
|
|
7935
|
-
|
|
8051
|
+
size: 150,
|
|
8052
|
+
type: "action",
|
|
7936
8053
|
widget: {
|
|
7937
8054
|
type: "Control",
|
|
7938
8055
|
scope: "#/properties/RejectButton",
|
|
@@ -7941,13 +8058,16 @@ const TableSection = (theme) => {
|
|
|
7941
8058
|
},
|
|
7942
8059
|
config: {
|
|
7943
8060
|
main: {
|
|
7944
|
-
icon: "
|
|
7945
|
-
|
|
8061
|
+
icon: "TableEditIcon",
|
|
8062
|
+
size: "small",
|
|
7946
8063
|
onClick: "editComponents",
|
|
7947
8064
|
tooltipMessage: "Reject This Record"
|
|
7948
8065
|
},
|
|
7949
8066
|
style: {
|
|
7950
|
-
|
|
8067
|
+
fill: theme.palette.primary.main,
|
|
8068
|
+
"& :hover": {
|
|
8069
|
+
fill: theme.palette.primary.dark
|
|
8070
|
+
}
|
|
7951
8071
|
}
|
|
7952
8072
|
}
|
|
7953
8073
|
}
|
|
@@ -7955,7 +8075,8 @@ const TableSection = (theme) => {
|
|
|
7955
8075
|
{
|
|
7956
8076
|
header: "Delete",
|
|
7957
8077
|
field: "Reject_Records",
|
|
7958
|
-
|
|
8078
|
+
size: 150,
|
|
8079
|
+
type: "action",
|
|
7959
8080
|
widget: {
|
|
7960
8081
|
type: "Control",
|
|
7961
8082
|
scope: "#/properties/RejectButton",
|
|
@@ -7964,10 +8085,15 @@ const TableSection = (theme) => {
|
|
|
7964
8085
|
},
|
|
7965
8086
|
config: {
|
|
7966
8087
|
main: {
|
|
7967
|
-
icon: "
|
|
7968
|
-
color: "error",
|
|
8088
|
+
icon: "Bin",
|
|
7969
8089
|
onClick: "deletePopUpComponent",
|
|
7970
8090
|
tooltipMessage: "Reject This Record"
|
|
8091
|
+
},
|
|
8092
|
+
style: {
|
|
8093
|
+
fill: theme.palette.primary.main,
|
|
8094
|
+
"& :hover": {
|
|
8095
|
+
fill: theme.palette.primary.dark
|
|
8096
|
+
}
|
|
7971
8097
|
}
|
|
7972
8098
|
}
|
|
7973
8099
|
}
|
|
@@ -7975,7 +8101,8 @@ const TableSection = (theme) => {
|
|
|
7975
8101
|
{
|
|
7976
8102
|
header: "Copy",
|
|
7977
8103
|
field: "Copy_Component",
|
|
7978
|
-
|
|
8104
|
+
size: 150,
|
|
8105
|
+
type: "action",
|
|
7979
8106
|
widget: {
|
|
7980
8107
|
type: "Control",
|
|
7981
8108
|
scope: "#/properties/Copy_Component",
|
|
@@ -7999,109 +8126,148 @@ const TableSection = (theme) => {
|
|
|
7999
8126
|
return uiSchema;
|
|
8000
8127
|
};
|
|
8001
8128
|
const ValueTab = {
|
|
8002
|
-
type: "
|
|
8129
|
+
type: "WrapperLayout",
|
|
8130
|
+
config: {
|
|
8131
|
+
main: {
|
|
8132
|
+
label: " ",
|
|
8133
|
+
gap: "8px"
|
|
8134
|
+
}
|
|
8135
|
+
},
|
|
8003
8136
|
elements: [
|
|
8004
8137
|
{
|
|
8005
8138
|
type: "Control",
|
|
8006
8139
|
scope: "#/properties/value",
|
|
8007
|
-
layout: 12,
|
|
8008
8140
|
options: {
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
type: "Control",
|
|
8040
|
-
scope: "#/properties/emptyBox",
|
|
8041
|
-
options: {
|
|
8042
|
-
widget: "EmptyBox"
|
|
8043
|
-
},
|
|
8044
|
-
config: {
|
|
8045
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8046
|
-
}
|
|
8141
|
+
widget: "Array"
|
|
8142
|
+
},
|
|
8143
|
+
config: {
|
|
8144
|
+
layout: 12,
|
|
8145
|
+
main: {
|
|
8146
|
+
label: "Value",
|
|
8147
|
+
childElementLabel: "Value"
|
|
8148
|
+
},
|
|
8149
|
+
style: {
|
|
8150
|
+
marginLeft: "-24px",
|
|
8151
|
+
marginBottom: "24px !important",
|
|
8152
|
+
labelStyle: {
|
|
8153
|
+
marginLeft: "24px"
|
|
8154
|
+
},
|
|
8155
|
+
detailsStyle: {
|
|
8156
|
+
marginLeft: "24px"
|
|
8157
|
+
}
|
|
8158
|
+
}
|
|
8159
|
+
},
|
|
8160
|
+
elements: [
|
|
8161
|
+
{
|
|
8162
|
+
type: "Control",
|
|
8163
|
+
scope: "#/properties/label",
|
|
8164
|
+
options: {
|
|
8165
|
+
widget: "InputField"
|
|
8166
|
+
},
|
|
8167
|
+
config: {
|
|
8168
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8169
|
+
main: {
|
|
8170
|
+
label: "Label"
|
|
8047
8171
|
}
|
|
8048
|
-
|
|
8172
|
+
}
|
|
8173
|
+
},
|
|
8174
|
+
{
|
|
8175
|
+
type: "Control",
|
|
8176
|
+
scope: "#/properties/value",
|
|
8177
|
+
options: {
|
|
8178
|
+
widget: "InputField"
|
|
8179
|
+
},
|
|
8180
|
+
config: {
|
|
8181
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8182
|
+
main: {
|
|
8183
|
+
label: "Value"
|
|
8184
|
+
}
|
|
8185
|
+
}
|
|
8186
|
+
},
|
|
8187
|
+
{
|
|
8188
|
+
type: "Control",
|
|
8189
|
+
scope: "#/properties/emptyBox",
|
|
8190
|
+
options: {
|
|
8191
|
+
widget: "EmptyBox"
|
|
8192
|
+
},
|
|
8193
|
+
config: {
|
|
8194
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8195
|
+
}
|
|
8049
8196
|
}
|
|
8050
|
-
|
|
8197
|
+
]
|
|
8051
8198
|
}
|
|
8052
8199
|
]
|
|
8053
8200
|
};
|
|
8054
8201
|
const ValidationSection = {
|
|
8055
|
-
type: "
|
|
8202
|
+
type: "WrapperLayout",
|
|
8203
|
+
config: {
|
|
8204
|
+
main: {
|
|
8205
|
+
label: " ",
|
|
8206
|
+
gap: "8px"
|
|
8207
|
+
}
|
|
8208
|
+
},
|
|
8056
8209
|
elements: [
|
|
8057
8210
|
{
|
|
8058
8211
|
type: "Control",
|
|
8059
8212
|
scope: "#/properties/validation",
|
|
8060
|
-
layout: 11.5,
|
|
8061
8213
|
options: {
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
{
|
|
8093
|
-
type: "Control",
|
|
8094
|
-
scope: "#/properties/emptyBox",
|
|
8095
|
-
options: {
|
|
8096
|
-
widget: "EmptyBox"
|
|
8097
|
-
},
|
|
8098
|
-
config: {
|
|
8099
|
-
layout: { xs: 0, sm: 0, md: 4 }
|
|
8100
|
-
}
|
|
8214
|
+
widget: "Array"
|
|
8215
|
+
},
|
|
8216
|
+
config: {
|
|
8217
|
+
layout: 12,
|
|
8218
|
+
main: {
|
|
8219
|
+
label: "Validation",
|
|
8220
|
+
childElementLabel: "Validation"
|
|
8221
|
+
},
|
|
8222
|
+
style: {
|
|
8223
|
+
marginLeft: "-24px",
|
|
8224
|
+
marginBottom: "24px !important",
|
|
8225
|
+
labelStyle: {
|
|
8226
|
+
marginLeft: "24px"
|
|
8227
|
+
},
|
|
8228
|
+
detailsStyle: {
|
|
8229
|
+
marginLeft: "24px"
|
|
8230
|
+
}
|
|
8231
|
+
}
|
|
8232
|
+
},
|
|
8233
|
+
elements: [
|
|
8234
|
+
{
|
|
8235
|
+
type: "Control",
|
|
8236
|
+
scope: "#/properties/validationType",
|
|
8237
|
+
options: {
|
|
8238
|
+
widget: "SelectInputField"
|
|
8239
|
+
},
|
|
8240
|
+
config: {
|
|
8241
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8242
|
+
main: {
|
|
8243
|
+
label: "Validation Type"
|
|
8101
8244
|
}
|
|
8102
|
-
|
|
8245
|
+
}
|
|
8246
|
+
},
|
|
8247
|
+
{
|
|
8248
|
+
type: "Control",
|
|
8249
|
+
scope: "#/properties/validationValue",
|
|
8250
|
+
options: {
|
|
8251
|
+
widget: "InputField"
|
|
8252
|
+
},
|
|
8253
|
+
config: {
|
|
8254
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8255
|
+
main: {
|
|
8256
|
+
label: "Validation Value"
|
|
8257
|
+
}
|
|
8258
|
+
}
|
|
8259
|
+
},
|
|
8260
|
+
{
|
|
8261
|
+
type: "Control",
|
|
8262
|
+
scope: "#/properties/emptyBox",
|
|
8263
|
+
options: {
|
|
8264
|
+
widget: "EmptyBox"
|
|
8265
|
+
},
|
|
8266
|
+
config: {
|
|
8267
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8268
|
+
}
|
|
8103
8269
|
}
|
|
8104
|
-
|
|
8270
|
+
]
|
|
8105
8271
|
}
|
|
8106
8272
|
]
|
|
8107
8273
|
};
|
|
@@ -8257,54 +8423,124 @@ function okHandler(store2) {
|
|
|
8257
8423
|
}
|
|
8258
8424
|
}
|
|
8259
8425
|
const sectionLabels = {
|
|
8260
|
-
Select: ["Core", "Properties", "Value", "
|
|
8261
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8262
|
-
Table: ["Core", "Components", "Properties", "
|
|
8263
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8426
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8427
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8428
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8429
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8264
8430
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8265
8431
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8266
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
8267
|
-
card: ["Core", "Properties", "
|
|
8268
|
-
UploadFile: ["Core", "
|
|
8269
|
-
Graph: ["Core", "Properties", "
|
|
8270
|
-
DownloadFile: ["Core", "
|
|
8271
|
-
Box: ["Core", "
|
|
8272
|
-
Properties: ["Core", "Properties", "
|
|
8273
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
8274
|
-
RankCard: ["Core", "Properties", "
|
|
8275
|
-
Slider: ["Core", "Components", "
|
|
8276
|
-
Timer: ["Core", "
|
|
8277
|
-
Rank: ["Core", "
|
|
8278
|
-
Button: ["Core", "Properties", "
|
|
8432
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8433
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8434
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8435
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8436
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8437
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8438
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8439
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8440
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8441
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8442
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8443
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8444
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8279
8445
|
Array: ["Core", "Components", "Validation"],
|
|
8280
|
-
Radio: ["Core", "Properties", "
|
|
8281
|
-
Text: ["Core", "Properties", "
|
|
8282
|
-
TextArea: ["Core", "Properties", "
|
|
8446
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8447
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8448
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8283
8449
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8284
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8285
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8286
|
-
InputSlider: ["Core", "Properties", "
|
|
8287
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8450
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8451
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8452
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8453
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8288
8454
|
ColumnGroup: ["Core", "Components"],
|
|
8289
|
-
Thought: ["Core", "Properties", "
|
|
8455
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8290
8456
|
};
|
|
8291
8457
|
function refreshPage(type, store2) {
|
|
8292
|
-
var _a;
|
|
8458
|
+
var _a, _b;
|
|
8293
8459
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8460
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8294
8461
|
if (type) {
|
|
8295
8462
|
const sectionUiSchema = {
|
|
8296
8463
|
Core: CoreSection,
|
|
8297
8464
|
Value: ValueTab,
|
|
8298
8465
|
Style: StyleSection,
|
|
8299
|
-
|
|
8466
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8300
8467
|
Components: TableSection(store2.theme.myTheme),
|
|
8301
8468
|
Properties: buildPropertiesSection(type),
|
|
8302
8469
|
Validation: ValidationSection
|
|
8303
8470
|
};
|
|
8304
8471
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8305
|
-
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "
|
|
8472
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8306
8473
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8307
8474
|
}
|
|
8475
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8476
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8477
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8478
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8479
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8480
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8481
|
+
type: "Control",
|
|
8482
|
+
scope: "#/properties/columnFormat",
|
|
8483
|
+
options: {
|
|
8484
|
+
widget: "SelectInputField"
|
|
8485
|
+
},
|
|
8486
|
+
config: {
|
|
8487
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8488
|
+
main: {
|
|
8489
|
+
label: "Column Format"
|
|
8490
|
+
}
|
|
8491
|
+
}
|
|
8492
|
+
};
|
|
8493
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8494
|
+
type: "Control",
|
|
8495
|
+
scope: "#/properties/filteringOptions",
|
|
8496
|
+
options: {
|
|
8497
|
+
widget: "SelectInputField"
|
|
8498
|
+
},
|
|
8499
|
+
config: {
|
|
8500
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8501
|
+
main: {
|
|
8502
|
+
label: "Filter Mode",
|
|
8503
|
+
multiple: true
|
|
8504
|
+
}
|
|
8505
|
+
}
|
|
8506
|
+
};
|
|
8507
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8508
|
+
type: "Control",
|
|
8509
|
+
scope: "#/properties/enableFilter",
|
|
8510
|
+
options: {
|
|
8511
|
+
widget: "RadioInputField"
|
|
8512
|
+
},
|
|
8513
|
+
config: {
|
|
8514
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8515
|
+
main: {
|
|
8516
|
+
label: "Enable Filter",
|
|
8517
|
+
options: ["Yes", "No"]
|
|
8518
|
+
}
|
|
8519
|
+
}
|
|
8520
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8521
|
+
type: "Control",
|
|
8522
|
+
scope: "#/properties/enableSorting",
|
|
8523
|
+
options: {
|
|
8524
|
+
widget: "RadioInputField"
|
|
8525
|
+
},
|
|
8526
|
+
config: {
|
|
8527
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8528
|
+
main: {
|
|
8529
|
+
label: "Enable Sorting",
|
|
8530
|
+
options: ["Yes", "No"]
|
|
8531
|
+
}
|
|
8532
|
+
}
|
|
8533
|
+
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8534
|
+
type: "Control",
|
|
8535
|
+
scope: "#/properties/proc",
|
|
8536
|
+
config: {
|
|
8537
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 3 }
|
|
8538
|
+
},
|
|
8539
|
+
options: {
|
|
8540
|
+
widget: "EmptyBox"
|
|
8541
|
+
}
|
|
8542
|
+
};
|
|
8543
|
+
}
|
|
8308
8544
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8309
8545
|
this.ElementPathSetter(UiSchema);
|
|
8310
8546
|
}
|
|
@@ -8326,10 +8562,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8326
8562
|
return getFormdataFromSessionStorage(path);
|
|
8327
8563
|
},
|
|
8328
8564
|
getSchema: function() {
|
|
8565
|
+
var _a, _b, _c;
|
|
8329
8566
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8330
8567
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8331
8568
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8332
8569
|
}
|
|
8570
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8571
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8572
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8573
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8574
|
+
if (path) {
|
|
8575
|
+
const pathArrayAll = path.split(".");
|
|
8576
|
+
const arr = [];
|
|
8577
|
+
pathArrayAll.map((e, i) => {
|
|
8578
|
+
if (i === 0) {
|
|
8579
|
+
arr.push(e);
|
|
8580
|
+
return;
|
|
8581
|
+
}
|
|
8582
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8583
|
+
});
|
|
8584
|
+
arr.map((e) => {
|
|
8585
|
+
const data = _.get(config2, e);
|
|
8586
|
+
pathArray.push({
|
|
8587
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8588
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8589
|
+
});
|
|
8590
|
+
});
|
|
8591
|
+
}
|
|
8592
|
+
schema2.properties.pageName.path = pathArray;
|
|
8333
8593
|
return schema2;
|
|
8334
8594
|
},
|
|
8335
8595
|
okHandler: () => okHandler(store2),
|
|
@@ -8442,6 +8702,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8442
8702
|
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8443
8703
|
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8444
8704
|
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8705
|
+
store2.setNotify({
|
|
8706
|
+
SuccessMessage: `${elementType} Copied Successfully`,
|
|
8707
|
+
Success: true
|
|
8708
|
+
});
|
|
8445
8709
|
store2.setSchema(schema2);
|
|
8446
8710
|
store2.setUiSchema(uiSchema);
|
|
8447
8711
|
},
|
|
@@ -8467,15 +8731,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8467
8731
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8468
8732
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8469
8733
|
const notificationMessages = {
|
|
8470
|
-
|
|
8471
|
-
Component: "The component cannot be integrated into the
|
|
8734
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8735
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8472
8736
|
};
|
|
8473
8737
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8474
8738
|
store2.setNotify({
|
|
8475
|
-
FailMessage: notificationMessages.
|
|
8739
|
+
FailMessage: notificationMessages.Events,
|
|
8476
8740
|
Fail: true
|
|
8477
8741
|
});
|
|
8478
|
-
} else if (copiedConfig.name && elementType === "
|
|
8742
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8479
8743
|
store2.setNotify({
|
|
8480
8744
|
FailMessage: notificationMessages.Component,
|
|
8481
8745
|
Fail: true
|
|
@@ -8501,8 +8765,18 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8501
8765
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8502
8766
|
},
|
|
8503
8767
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8768
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
8504
8769
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8505
|
-
uiSchema.elements[
|
|
8770
|
+
if ((_f = (_e = (_d = (_c = (_b = (_a = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _a[1]) == null ? void 0 : _b.elements) == null ? void 0 : _c[0]) == null ? void 0 : _d.config) == null ? void 0 : _e.main) == null ? void 0 : _f.headerIcons) {
|
|
8771
|
+
uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8772
|
+
} else if ((_n = (_m = (_l = (_k = (_j = (_i = (_h = (_g = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _g[0]) == null ? void 0 : _h.elements) == null ? void 0 : _i[1]) == null ? void 0 : _j.elements) == null ? void 0 : _k[0]) == null ? void 0 : _l.config) == null ? void 0 : _m.main) == null ? void 0 : _n.headerIcons) {
|
|
8773
|
+
uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8774
|
+
}
|
|
8775
|
+
if ((_t = (_s = (_r = (_q = (_p = (_o = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _o[1]) == null ? void 0 : _p.elements) == null ? void 0 : _q[1]) == null ? void 0 : _r.config) == null ? void 0 : _s.main) == null ? void 0 : _t.headerIcons) {
|
|
8776
|
+
uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
|
|
8777
|
+
} else if ((_z = (_y = (_x = (_w = (_v = (_u = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _u[0]) == null ? void 0 : _v.elements) == null ? void 0 : _w[1]) == null ? void 0 : _x.config) == null ? void 0 : _y.main) == null ? void 0 : _z.headerIcons) {
|
|
8778
|
+
uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
|
|
8779
|
+
}
|
|
8506
8780
|
}
|
|
8507
8781
|
};
|
|
8508
8782
|
};
|
|
@@ -8653,18 +8927,18 @@ const EventSchema = {
|
|
|
8653
8927
|
eventType: {
|
|
8654
8928
|
type: "string",
|
|
8655
8929
|
oneOf: [
|
|
8656
|
-
{ title: "Click
|
|
8657
|
-
{ title: "Load
|
|
8658
|
-
{ title: "Change
|
|
8659
|
-
{ title: "Mount
|
|
8930
|
+
{ title: "Click", const: "onClick" },
|
|
8931
|
+
{ title: "Load", const: "onLoad" },
|
|
8932
|
+
{ title: "Change", const: "onChange" },
|
|
8933
|
+
{ title: "Mount", const: "onMount" },
|
|
8660
8934
|
{ title: "Success", const: "Success" },
|
|
8661
|
-
{ title: "
|
|
8662
|
-
{ title: "Cell
|
|
8663
|
-
{ title: "
|
|
8664
|
-
{ title: "Back
|
|
8665
|
-
{ title: "Next
|
|
8666
|
-
{ title: "
|
|
8667
|
-
{ title: "
|
|
8935
|
+
{ title: "Start", const: "onStart" },
|
|
8936
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8937
|
+
{ title: "Upload", const: "onUpload" },
|
|
8938
|
+
{ title: "Back", const: "onBack" },
|
|
8939
|
+
{ title: "Next", const: "onNext" },
|
|
8940
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8941
|
+
{ title: "Download", const: "onDownload" },
|
|
8668
8942
|
{ title: "Fail", const: "Fail" }
|
|
8669
8943
|
]
|
|
8670
8944
|
},
|
|
@@ -8672,7 +8946,7 @@ const EventSchema = {
|
|
|
8672
8946
|
type: "string",
|
|
8673
8947
|
oneOf: [
|
|
8674
8948
|
{ title: "Custom", const: "custom" },
|
|
8675
|
-
{ title: "
|
|
8949
|
+
{ title: "API", const: "api" },
|
|
8676
8950
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8677
8951
|
{ title: "Refresh", const: "refresh" }
|
|
8678
8952
|
]
|
|
@@ -8701,47 +8975,49 @@ const EventSchema = {
|
|
|
8701
8975
|
},
|
|
8702
8976
|
RemoveItemButton: {
|
|
8703
8977
|
disabled: true
|
|
8978
|
+
},
|
|
8979
|
+
pageName: {
|
|
8980
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8704
8981
|
}
|
|
8705
8982
|
},
|
|
8706
8983
|
required: ["eventType", "Handler"]
|
|
8707
8984
|
};
|
|
8708
8985
|
const EventUiSchema = (theme) => {
|
|
8709
|
-
var _a
|
|
8986
|
+
var _a;
|
|
8710
8987
|
const uiSchema = {
|
|
8711
8988
|
type: "HorizontalLayout",
|
|
8712
|
-
heading: "
|
|
8989
|
+
heading: "Page-Events",
|
|
8713
8990
|
elements: [
|
|
8714
|
-
{
|
|
8715
|
-
type: "Control",
|
|
8716
|
-
scope: "#/properties/pageName",
|
|
8717
|
-
options: {
|
|
8718
|
-
widget: "Box"
|
|
8719
|
-
},
|
|
8720
|
-
config: {
|
|
8721
|
-
layout: 12,
|
|
8722
|
-
main: {
|
|
8723
|
-
heading: " "
|
|
8724
|
-
},
|
|
8725
|
-
style: {
|
|
8726
|
-
marginLeft: theme.spacing(3),
|
|
8727
|
-
width: "auto",
|
|
8728
|
-
fontSize: "12px",
|
|
8729
|
-
color: "gray"
|
|
8730
|
-
}
|
|
8731
|
-
}
|
|
8732
|
-
},
|
|
8733
8991
|
{
|
|
8734
8992
|
type: "TabLayout",
|
|
8735
8993
|
config: {
|
|
8736
8994
|
main: {
|
|
8737
|
-
tabLabels: ["Core", "Response
|
|
8738
|
-
defaultStyle: true,
|
|
8995
|
+
tabLabels: ["Core", "Response Events"],
|
|
8739
8996
|
id: "event"
|
|
8997
|
+
},
|
|
8998
|
+
style: {
|
|
8999
|
+
TabPanelStyle: {
|
|
9000
|
+
padding: 0
|
|
9001
|
+
}
|
|
9002
|
+
},
|
|
9003
|
+
TabsStyle: {
|
|
9004
|
+
marginBottom: "3px",
|
|
9005
|
+
paddingBottom: "4px",
|
|
9006
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
9007
|
+
"& .MuiTabs-indicator": {
|
|
9008
|
+
bottom: "6px"
|
|
9009
|
+
}
|
|
8740
9010
|
}
|
|
8741
9011
|
},
|
|
8742
9012
|
elements: [
|
|
8743
9013
|
{
|
|
8744
|
-
type: "
|
|
9014
|
+
type: "WrapperLayout",
|
|
9015
|
+
config: {
|
|
9016
|
+
main: {
|
|
9017
|
+
label: " ",
|
|
9018
|
+
gap: "8px"
|
|
9019
|
+
}
|
|
9020
|
+
},
|
|
8745
9021
|
elements: [
|
|
8746
9022
|
{
|
|
8747
9023
|
type: "Control",
|
|
@@ -8750,9 +9026,9 @@ const EventUiSchema = (theme) => {
|
|
|
8750
9026
|
widget: "SelectInputField"
|
|
8751
9027
|
},
|
|
8752
9028
|
config: {
|
|
8753
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9029
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8754
9030
|
main: {
|
|
8755
|
-
label: "Event Type",
|
|
9031
|
+
label: "Event's Type",
|
|
8756
9032
|
type: "text"
|
|
8757
9033
|
}
|
|
8758
9034
|
}
|
|
@@ -8765,7 +9041,7 @@ const EventUiSchema = (theme) => {
|
|
|
8765
9041
|
widget: "EmptyBox"
|
|
8766
9042
|
},
|
|
8767
9043
|
config: {
|
|
8768
|
-
layout: { xs: 0, sm:
|
|
9044
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
8769
9045
|
}
|
|
8770
9046
|
}
|
|
8771
9047
|
]
|
|
@@ -8791,12 +9067,18 @@ const EventUiSchema = (theme) => {
|
|
|
8791
9067
|
main: {
|
|
8792
9068
|
onClick: "addEvent",
|
|
8793
9069
|
size: "small",
|
|
8794
|
-
icon: "
|
|
8795
|
-
iconLabel: "Add
|
|
9070
|
+
icon: "TableAddIcon",
|
|
9071
|
+
iconLabel: "Add",
|
|
8796
9072
|
styleDefault: true
|
|
8797
9073
|
},
|
|
8798
9074
|
style: {
|
|
8799
|
-
mt: "6px"
|
|
9075
|
+
mt: "6px",
|
|
9076
|
+
color: "inherit",
|
|
9077
|
+
fill: "inherit",
|
|
9078
|
+
"&:hover": {
|
|
9079
|
+
color: "inherit",
|
|
9080
|
+
fill: "inherit"
|
|
9081
|
+
}
|
|
8800
9082
|
}
|
|
8801
9083
|
}
|
|
8802
9084
|
}
|
|
@@ -8812,12 +9094,18 @@ const EventUiSchema = (theme) => {
|
|
|
8812
9094
|
main: {
|
|
8813
9095
|
onClick: "copyPasteElement",
|
|
8814
9096
|
size: "small",
|
|
8815
|
-
icon: "
|
|
9097
|
+
icon: "TablePaste",
|
|
8816
9098
|
iconLabel: "Paste",
|
|
8817
9099
|
styleDefault: true
|
|
8818
9100
|
},
|
|
8819
9101
|
style: {
|
|
8820
|
-
mt: "6px"
|
|
9102
|
+
mt: "6px",
|
|
9103
|
+
color: "inherit",
|
|
9104
|
+
fill: "inherit",
|
|
9105
|
+
"&:hover": {
|
|
9106
|
+
color: "inherit",
|
|
9107
|
+
fill: "inherit"
|
|
9108
|
+
}
|
|
8821
9109
|
}
|
|
8822
9110
|
}
|
|
8823
9111
|
}
|
|
@@ -8832,15 +9120,21 @@ const EventUiSchema = (theme) => {
|
|
|
8832
9120
|
elements: [
|
|
8833
9121
|
{
|
|
8834
9122
|
accessorKey: "eventType",
|
|
8835
|
-
header: "Event Type"
|
|
9123
|
+
header: "Event's Type",
|
|
9124
|
+
size: 300,
|
|
9125
|
+
type: "string"
|
|
8836
9126
|
},
|
|
8837
9127
|
{
|
|
8838
9128
|
accessorKey: "Handler",
|
|
8839
|
-
header: "Handler"
|
|
9129
|
+
header: "Handler",
|
|
9130
|
+
size: 200,
|
|
9131
|
+
type: "string"
|
|
8840
9132
|
},
|
|
8841
9133
|
{
|
|
8842
9134
|
accessorKey: "Edit_Approve_Records",
|
|
8843
|
-
header: "Edit
|
|
9135
|
+
header: "Edit",
|
|
9136
|
+
type: "action",
|
|
9137
|
+
size: 150,
|
|
8844
9138
|
widget: {
|
|
8845
9139
|
type: "Control",
|
|
8846
9140
|
scope: "#/properties/Edit_Records",
|
|
@@ -8849,14 +9143,16 @@ const EventUiSchema = (theme) => {
|
|
|
8849
9143
|
},
|
|
8850
9144
|
config: {
|
|
8851
9145
|
main: {
|
|
8852
|
-
color: "info",
|
|
8853
9146
|
size: "small",
|
|
8854
|
-
icon: "
|
|
9147
|
+
icon: "TableEditIcon",
|
|
8855
9148
|
tooltipMessage: "Edit This Record",
|
|
8856
9149
|
onClick: "editEvent"
|
|
8857
9150
|
},
|
|
8858
9151
|
style: {
|
|
8859
|
-
|
|
9152
|
+
fill: theme.palette.primary.main,
|
|
9153
|
+
"& :hover": {
|
|
9154
|
+
fill: theme.palette.primary.dark
|
|
9155
|
+
}
|
|
8860
9156
|
}
|
|
8861
9157
|
}
|
|
8862
9158
|
}
|
|
@@ -8864,6 +9160,8 @@ const EventUiSchema = (theme) => {
|
|
|
8864
9160
|
{
|
|
8865
9161
|
accessorKey: "Reject_Records",
|
|
8866
9162
|
header: "Delete",
|
|
9163
|
+
type: "action",
|
|
9164
|
+
size: 150,
|
|
8867
9165
|
widget: {
|
|
8868
9166
|
type: "Control",
|
|
8869
9167
|
scope: "#/properties/RejectButton",
|
|
@@ -8872,10 +9170,15 @@ const EventUiSchema = (theme) => {
|
|
|
8872
9170
|
},
|
|
8873
9171
|
config: {
|
|
8874
9172
|
main: {
|
|
8875
|
-
icon: "
|
|
8876
|
-
color: "error",
|
|
9173
|
+
icon: "Bin",
|
|
8877
9174
|
tooltipMessage: "Reject This Record",
|
|
8878
9175
|
onClick: "deletePopUpEvent"
|
|
9176
|
+
},
|
|
9177
|
+
style: {
|
|
9178
|
+
fill: theme.palette.primary.main,
|
|
9179
|
+
"& :hover": {
|
|
9180
|
+
fill: theme.palette.primary.dark
|
|
9181
|
+
}
|
|
8879
9182
|
}
|
|
8880
9183
|
}
|
|
8881
9184
|
}
|
|
@@ -8883,7 +9186,8 @@ const EventUiSchema = (theme) => {
|
|
|
8883
9186
|
{
|
|
8884
9187
|
header: "Copy",
|
|
8885
9188
|
field: "Copy_Event",
|
|
8886
|
-
|
|
9189
|
+
type: "action",
|
|
9190
|
+
size: 150,
|
|
8887
9191
|
widget: {
|
|
8888
9192
|
type: "Control",
|
|
8889
9193
|
scope: "#/properties/Copy_Event",
|
|
@@ -8904,103 +9208,59 @@ const EventUiSchema = (theme) => {
|
|
|
8904
9208
|
]
|
|
8905
9209
|
},
|
|
8906
9210
|
{
|
|
8907
|
-
type: "
|
|
9211
|
+
type: "WrapperLayout",
|
|
8908
9212
|
config: {
|
|
8909
|
-
|
|
9213
|
+
main: {
|
|
9214
|
+
gap: "8px"
|
|
9215
|
+
}
|
|
8910
9216
|
},
|
|
8911
9217
|
elements: [
|
|
8912
9218
|
{
|
|
8913
9219
|
type: "Control",
|
|
8914
|
-
scope: "#/properties/
|
|
9220
|
+
scope: "#/properties/btn",
|
|
8915
9221
|
options: {
|
|
8916
|
-
widget: "
|
|
9222
|
+
widget: "Button"
|
|
8917
9223
|
},
|
|
8918
9224
|
config: {
|
|
8919
|
-
layout: { xs:
|
|
9225
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8920
9226
|
main: {
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
style: {
|
|
8927
|
-
marginLeft: "-10px"
|
|
9227
|
+
name: "Ok",
|
|
9228
|
+
variant: "contained",
|
|
9229
|
+
type: "text",
|
|
9230
|
+
onClick: "okHandler",
|
|
9231
|
+
size: "medium"
|
|
8928
9232
|
}
|
|
8929
9233
|
}
|
|
8930
9234
|
},
|
|
8931
9235
|
{
|
|
8932
9236
|
type: "Control",
|
|
8933
|
-
scope: "#/properties/
|
|
9237
|
+
scope: "#/properties/btnSubmit",
|
|
8934
9238
|
options: {
|
|
8935
|
-
widget: "
|
|
9239
|
+
widget: "Button"
|
|
8936
9240
|
},
|
|
8937
9241
|
config: {
|
|
8938
|
-
layout: { xs:
|
|
9242
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8939
9243
|
main: {
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
fontSize: "12px",
|
|
8946
|
-
marginTop: "4px"
|
|
9244
|
+
name: "Save & Exit",
|
|
9245
|
+
variant: "contained",
|
|
9246
|
+
type: "text",
|
|
9247
|
+
onClick: "saveHandler",
|
|
9248
|
+
size: "medium"
|
|
8947
9249
|
}
|
|
8948
9250
|
}
|
|
8949
9251
|
},
|
|
8950
9252
|
{
|
|
8951
9253
|
type: "Control",
|
|
8952
9254
|
scope: "#/properties/EmptyBox",
|
|
9255
|
+
config: {
|
|
9256
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
9257
|
+
},
|
|
8953
9258
|
options: {
|
|
8954
9259
|
widget: "EmptyBox"
|
|
8955
|
-
},
|
|
8956
|
-
config: {
|
|
8957
|
-
layout: { xs: 1, sm: 5 }
|
|
8958
9260
|
}
|
|
8959
9261
|
}
|
|
8960
9262
|
]
|
|
8961
9263
|
},
|
|
8962
|
-
{
|
|
8963
|
-
type: "Control",
|
|
8964
|
-
scope: "#/properties/btn",
|
|
8965
|
-
options: {
|
|
8966
|
-
widget: "Button"
|
|
8967
|
-
},
|
|
8968
|
-
config: {
|
|
8969
|
-
layout: { xs: 4, sm: 2 },
|
|
8970
|
-
main: {
|
|
8971
|
-
name: "Ok",
|
|
8972
|
-
startIcon: "ApproveIcon",
|
|
8973
|
-
variant: "contained",
|
|
8974
|
-
type: "text",
|
|
8975
|
-
onClick: "okHandler",
|
|
8976
|
-
size: "medium"
|
|
8977
|
-
},
|
|
8978
|
-
style: {
|
|
8979
|
-
float: "right"
|
|
8980
|
-
}
|
|
8981
|
-
}
|
|
8982
|
-
},
|
|
8983
|
-
{
|
|
8984
|
-
type: "Control",
|
|
8985
|
-
scope: "#/properties/btnSubmit",
|
|
8986
|
-
options: {
|
|
8987
|
-
widget: "Button"
|
|
8988
|
-
},
|
|
8989
|
-
config: {
|
|
8990
|
-
layout: { xs: 4, sm: 2 },
|
|
8991
|
-
main: {
|
|
8992
|
-
name: "Save & Exit",
|
|
8993
|
-
startIcon: "ApproveIcon",
|
|
8994
|
-
variant: "contained",
|
|
8995
|
-
type: "text",
|
|
8996
|
-
onClick: "saveHandler",
|
|
8997
|
-
size: "medium"
|
|
8998
|
-
},
|
|
8999
|
-
style: {
|
|
9000
|
-
float: "right"
|
|
9001
|
-
}
|
|
9002
|
-
}
|
|
9003
|
-
},
|
|
9004
9264
|
{
|
|
9005
9265
|
type: "Control",
|
|
9006
9266
|
scope: "#/properties/popUpEvent",
|
|
@@ -9029,15 +9289,17 @@ const EventUiSchema = (theme) => {
|
|
|
9029
9289
|
config: {
|
|
9030
9290
|
layout: 11,
|
|
9031
9291
|
main: {
|
|
9032
|
-
heading: "Are you sure you want to delete ?"
|
|
9292
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
9033
9293
|
},
|
|
9034
9294
|
style: {
|
|
9035
|
-
marginTop: "-20px",
|
|
9036
9295
|
fontSize: "20px",
|
|
9037
9296
|
"&.MuiTypography-root": {
|
|
9038
|
-
padding: "
|
|
9297
|
+
padding: "0px 20px",
|
|
9039
9298
|
textAlign: "center",
|
|
9040
|
-
lineHeight: "1"
|
|
9299
|
+
lineHeight: "1.2",
|
|
9300
|
+
fontWeight: "normal",
|
|
9301
|
+
fontSize: "18px",
|
|
9302
|
+
marginBottom: theme.spacing(5)
|
|
9041
9303
|
}
|
|
9042
9304
|
}
|
|
9043
9305
|
}
|
|
@@ -9061,13 +9323,14 @@ const EventUiSchema = (theme) => {
|
|
|
9061
9323
|
name: "No",
|
|
9062
9324
|
startIcon: "ApproveIcon",
|
|
9063
9325
|
variant: "contained",
|
|
9064
|
-
color: "info",
|
|
9065
9326
|
type: "text",
|
|
9066
9327
|
onClick: "deletePopUpEvent",
|
|
9067
9328
|
size: "large"
|
|
9068
9329
|
},
|
|
9069
9330
|
style: {
|
|
9070
9331
|
position: "absolute",
|
|
9332
|
+
padding: "8px 0px",
|
|
9333
|
+
fontSize: "16px",
|
|
9071
9334
|
bottom: 0,
|
|
9072
9335
|
left: 0,
|
|
9073
9336
|
width: "50%",
|
|
@@ -9095,7 +9358,6 @@ const EventUiSchema = (theme) => {
|
|
|
9095
9358
|
layout: 6,
|
|
9096
9359
|
main: {
|
|
9097
9360
|
name: "Yes",
|
|
9098
|
-
startIcon: "ApproveIcon",
|
|
9099
9361
|
variant: "contained",
|
|
9100
9362
|
color: "error",
|
|
9101
9363
|
type: "text",
|
|
@@ -9104,6 +9366,8 @@ const EventUiSchema = (theme) => {
|
|
|
9104
9366
|
},
|
|
9105
9367
|
style: {
|
|
9106
9368
|
position: "absolute",
|
|
9369
|
+
padding: "8px 0px",
|
|
9370
|
+
fontSize: "16px",
|
|
9107
9371
|
bottom: 0,
|
|
9108
9372
|
right: 0,
|
|
9109
9373
|
width: "50%",
|
|
@@ -9124,6 +9388,27 @@ const EventUiSchema = (theme) => {
|
|
|
9124
9388
|
}
|
|
9125
9389
|
]
|
|
9126
9390
|
},
|
|
9391
|
+
{
|
|
9392
|
+
type: "Control",
|
|
9393
|
+
scope: "#/properties/pageName",
|
|
9394
|
+
options: {
|
|
9395
|
+
widget: "Breadcrumb"
|
|
9396
|
+
},
|
|
9397
|
+
config: {
|
|
9398
|
+
layout: 12,
|
|
9399
|
+
main: {},
|
|
9400
|
+
style: {
|
|
9401
|
+
paddingLeft: theme.spacing(3),
|
|
9402
|
+
color: theme.palette.grey[600],
|
|
9403
|
+
fontSize: "10px",
|
|
9404
|
+
position: "fixed",
|
|
9405
|
+
bottom: "24px",
|
|
9406
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9407
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
9408
|
+
backgroundColor: theme.palette.background.default
|
|
9409
|
+
}
|
|
9410
|
+
}
|
|
9411
|
+
},
|
|
9127
9412
|
{
|
|
9128
9413
|
type: "Control",
|
|
9129
9414
|
scope: "#/properties/notify",
|
|
@@ -9141,7 +9426,7 @@ const EventUiSchema = (theme) => {
|
|
|
9141
9426
|
style: {
|
|
9142
9427
|
flexDirection: "row",
|
|
9143
9428
|
position: "absolute",
|
|
9144
|
-
bottom:
|
|
9429
|
+
bottom: 10,
|
|
9145
9430
|
height: "fit-content",
|
|
9146
9431
|
overflow: "hidden",
|
|
9147
9432
|
zIndex: 1e3,
|
|
@@ -9160,78 +9445,19 @@ const EventUiSchema = (theme) => {
|
|
|
9160
9445
|
heading: "Copywriter@ACT21.IO"
|
|
9161
9446
|
},
|
|
9162
9447
|
style: {
|
|
9163
|
-
color: ((
|
|
9448
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9164
9449
|
fontSize: "11px",
|
|
9165
9450
|
textAlign: "center",
|
|
9166
|
-
lineHeight:
|
|
9451
|
+
lineHeight: 0,
|
|
9167
9452
|
width: "fit-content",
|
|
9168
9453
|
left: "50%",
|
|
9169
9454
|
position: "relative",
|
|
9170
|
-
margin:
|
|
9455
|
+
margin: "revert",
|
|
9171
9456
|
flexGrow: 1,
|
|
9172
9457
|
height: 0,
|
|
9173
9458
|
transform: "translate(-50%, 0%)"
|
|
9174
9459
|
}
|
|
9175
9460
|
}
|
|
9176
|
-
},
|
|
9177
|
-
{
|
|
9178
|
-
type: "Control",
|
|
9179
|
-
scope: "#/properties/FooterBackIcon",
|
|
9180
|
-
options: {
|
|
9181
|
-
widget: "Box"
|
|
9182
|
-
},
|
|
9183
|
-
config: {
|
|
9184
|
-
main: {
|
|
9185
|
-
iconName: "PrevIcon",
|
|
9186
|
-
onClick: "backHandler",
|
|
9187
|
-
width: "fit-content"
|
|
9188
|
-
},
|
|
9189
|
-
style: {
|
|
9190
|
-
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
9191
|
-
width: 20,
|
|
9192
|
-
height: 0,
|
|
9193
|
-
top: 0,
|
|
9194
|
-
right: { xs: "12px", sm: "84px" },
|
|
9195
|
-
position: "absolute",
|
|
9196
|
-
fontSize: "12px",
|
|
9197
|
-
cursor: "pointer",
|
|
9198
|
-
":hover": {
|
|
9199
|
-
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
9200
|
-
},
|
|
9201
|
-
marginRight: "20px"
|
|
9202
|
-
}
|
|
9203
|
-
}
|
|
9204
|
-
},
|
|
9205
|
-
{
|
|
9206
|
-
type: "Control",
|
|
9207
|
-
scope: "#/properties/FooterBackHandlerText",
|
|
9208
|
-
options: {
|
|
9209
|
-
widget: "Box"
|
|
9210
|
-
},
|
|
9211
|
-
config: {
|
|
9212
|
-
main: {
|
|
9213
|
-
heading: "Previous Page",
|
|
9214
|
-
onClick: "backHandler"
|
|
9215
|
-
},
|
|
9216
|
-
style: {
|
|
9217
|
-
display: { xs: "none", sm: "flex" },
|
|
9218
|
-
textAlign: "left",
|
|
9219
|
-
lineHeight: 1,
|
|
9220
|
-
height: 0,
|
|
9221
|
-
width: "fit-content",
|
|
9222
|
-
color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
|
|
9223
|
-
fontSize: "12px",
|
|
9224
|
-
cursor: "pointer",
|
|
9225
|
-
marginLeft: "2px",
|
|
9226
|
-
top: 3,
|
|
9227
|
-
right: "12px",
|
|
9228
|
-
position: "absolute",
|
|
9229
|
-
":hover": {
|
|
9230
|
-
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
9231
|
-
},
|
|
9232
|
-
marginRight: "4px"
|
|
9233
|
-
}
|
|
9234
|
-
}
|
|
9235
9461
|
}
|
|
9236
9462
|
]
|
|
9237
9463
|
}
|
|
@@ -9249,7 +9475,7 @@ const APISection = {
|
|
|
9249
9475
|
widget: "SelectInputField"
|
|
9250
9476
|
},
|
|
9251
9477
|
config: {
|
|
9252
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9478
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9253
9479
|
main: {
|
|
9254
9480
|
label: "Method",
|
|
9255
9481
|
type: "text"
|
|
@@ -9263,23 +9489,13 @@ const APISection = {
|
|
|
9263
9489
|
widget: "InputField"
|
|
9264
9490
|
},
|
|
9265
9491
|
config: {
|
|
9266
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9492
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9267
9493
|
main: {
|
|
9268
9494
|
label: "Path",
|
|
9269
|
-
type: "text",
|
|
9270
|
-
multiple: false,
|
|
9271
|
-
options: []
|
|
9272
|
-
}
|
|
9273
|
-
}
|
|
9274
|
-
},
|
|
9275
|
-
{
|
|
9276
|
-
type: "Control",
|
|
9277
|
-
scope: "#/properties/emptyBox",
|
|
9278
|
-
options: {
|
|
9279
|
-
widget: "EmptyBox"
|
|
9280
|
-
},
|
|
9281
|
-
config: {
|
|
9282
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9495
|
+
type: "text",
|
|
9496
|
+
multiple: false,
|
|
9497
|
+
options: []
|
|
9498
|
+
}
|
|
9283
9499
|
}
|
|
9284
9500
|
},
|
|
9285
9501
|
{
|
|
@@ -9289,106 +9505,132 @@ const APISection = {
|
|
|
9289
9505
|
widget: "EmptyBox"
|
|
9290
9506
|
},
|
|
9291
9507
|
config: {
|
|
9292
|
-
layout: { xs: 0, sm: 0, md: 4, lg:
|
|
9508
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
9293
9509
|
}
|
|
9294
9510
|
},
|
|
9295
9511
|
{
|
|
9296
9512
|
type: "Control",
|
|
9297
9513
|
scope: "#/properties/headers",
|
|
9298
|
-
layout: 11.5,
|
|
9299
9514
|
options: {
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
{
|
|
9331
|
-
type: "Control",
|
|
9332
|
-
scope: "#/properties/emptyBox",
|
|
9333
|
-
options: {
|
|
9334
|
-
widget: "EmptyBox"
|
|
9335
|
-
},
|
|
9336
|
-
config: {
|
|
9337
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9338
|
-
}
|
|
9515
|
+
widget: "Array"
|
|
9516
|
+
},
|
|
9517
|
+
config: {
|
|
9518
|
+
layout: 12,
|
|
9519
|
+
main: {
|
|
9520
|
+
label: "Headers",
|
|
9521
|
+
childElementLabel: "Headers"
|
|
9522
|
+
},
|
|
9523
|
+
style: {
|
|
9524
|
+
marginLeft: "-24px",
|
|
9525
|
+
marginBottom: "24px !important",
|
|
9526
|
+
labelStyle: {
|
|
9527
|
+
marginLeft: "24px"
|
|
9528
|
+
},
|
|
9529
|
+
detailsStyle: {
|
|
9530
|
+
marginLeft: "24px"
|
|
9531
|
+
}
|
|
9532
|
+
}
|
|
9533
|
+
},
|
|
9534
|
+
elements: [
|
|
9535
|
+
{
|
|
9536
|
+
type: "Control",
|
|
9537
|
+
scope: "#/properties/key",
|
|
9538
|
+
options: {
|
|
9539
|
+
widget: "InputField"
|
|
9540
|
+
},
|
|
9541
|
+
config: {
|
|
9542
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9543
|
+
main: {
|
|
9544
|
+
label: "Key"
|
|
9339
9545
|
}
|
|
9340
|
-
|
|
9546
|
+
}
|
|
9547
|
+
},
|
|
9548
|
+
{
|
|
9549
|
+
type: "Control",
|
|
9550
|
+
scope: "#/properties/value",
|
|
9551
|
+
options: {
|
|
9552
|
+
widget: "InputField"
|
|
9553
|
+
},
|
|
9554
|
+
config: {
|
|
9555
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9556
|
+
main: {
|
|
9557
|
+
label: "Value"
|
|
9558
|
+
}
|
|
9559
|
+
}
|
|
9560
|
+
},
|
|
9561
|
+
{
|
|
9562
|
+
type: "Control",
|
|
9563
|
+
scope: "#/properties/emptyBox",
|
|
9564
|
+
options: {
|
|
9565
|
+
widget: "EmptyBox"
|
|
9566
|
+
},
|
|
9567
|
+
config: {
|
|
9568
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9569
|
+
}
|
|
9341
9570
|
}
|
|
9342
|
-
|
|
9571
|
+
]
|
|
9343
9572
|
},
|
|
9344
9573
|
{
|
|
9345
9574
|
type: "Control",
|
|
9346
9575
|
scope: "#/properties/body",
|
|
9347
|
-
layout: 11.5,
|
|
9348
9576
|
options: {
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
{
|
|
9380
|
-
type: "Control",
|
|
9381
|
-
scope: "#/properties/emptyBox",
|
|
9382
|
-
options: {
|
|
9383
|
-
widget: "EmptyBox"
|
|
9384
|
-
},
|
|
9385
|
-
config: {
|
|
9386
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9387
|
-
}
|
|
9577
|
+
widget: "Array"
|
|
9578
|
+
},
|
|
9579
|
+
config: {
|
|
9580
|
+
layout: 12,
|
|
9581
|
+
main: {
|
|
9582
|
+
label: "Body",
|
|
9583
|
+
childElementLabel: "Body"
|
|
9584
|
+
},
|
|
9585
|
+
style: {
|
|
9586
|
+
marginLeft: "-24px",
|
|
9587
|
+
marginBottom: "24px !important",
|
|
9588
|
+
labelStyle: {
|
|
9589
|
+
marginLeft: "24px"
|
|
9590
|
+
},
|
|
9591
|
+
detailsStyle: {
|
|
9592
|
+
marginLeft: "24px"
|
|
9593
|
+
}
|
|
9594
|
+
}
|
|
9595
|
+
},
|
|
9596
|
+
elements: [
|
|
9597
|
+
{
|
|
9598
|
+
type: "Control",
|
|
9599
|
+
scope: "#/properties/key",
|
|
9600
|
+
options: {
|
|
9601
|
+
widget: "InputField"
|
|
9602
|
+
},
|
|
9603
|
+
config: {
|
|
9604
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9605
|
+
main: {
|
|
9606
|
+
label: "Key"
|
|
9388
9607
|
}
|
|
9389
|
-
|
|
9608
|
+
}
|
|
9609
|
+
},
|
|
9610
|
+
{
|
|
9611
|
+
type: "Control",
|
|
9612
|
+
scope: "#/properties/value",
|
|
9613
|
+
options: {
|
|
9614
|
+
widget: "InputField"
|
|
9615
|
+
},
|
|
9616
|
+
config: {
|
|
9617
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9618
|
+
main: {
|
|
9619
|
+
label: "Value"
|
|
9620
|
+
}
|
|
9621
|
+
}
|
|
9622
|
+
},
|
|
9623
|
+
{
|
|
9624
|
+
type: "Control",
|
|
9625
|
+
scope: "#/properties/emptyBox",
|
|
9626
|
+
options: {
|
|
9627
|
+
widget: "EmptyBox"
|
|
9628
|
+
},
|
|
9629
|
+
config: {
|
|
9630
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9631
|
+
}
|
|
9390
9632
|
}
|
|
9391
|
-
|
|
9633
|
+
]
|
|
9392
9634
|
},
|
|
9393
9635
|
getTextArea("apiBody", "Transformer", true, 12)
|
|
9394
9636
|
]
|
|
@@ -9399,116 +9641,134 @@ const refreshSectionUiSchema = {
|
|
|
9399
9641
|
{
|
|
9400
9642
|
type: "Control",
|
|
9401
9643
|
scope: "#/properties/refreshElements",
|
|
9402
|
-
layout: 11.5,
|
|
9403
9644
|
options: {
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
{
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
options: {
|
|
9435
|
-
widget: "EmptyBox"
|
|
9436
|
-
},
|
|
9437
|
-
config: {
|
|
9438
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
9439
|
-
main: {}
|
|
9440
|
-
}
|
|
9645
|
+
widget: "Array"
|
|
9646
|
+
},
|
|
9647
|
+
config: {
|
|
9648
|
+
layout: 12,
|
|
9649
|
+
main: {
|
|
9650
|
+
label: "Refresh Elements",
|
|
9651
|
+
childElementLabel: "Refresh Elements"
|
|
9652
|
+
},
|
|
9653
|
+
style: {
|
|
9654
|
+
marginLeft: "-24px",
|
|
9655
|
+
marginBottom: "24px !important",
|
|
9656
|
+
labelStyle: {
|
|
9657
|
+
marginLeft: "24px"
|
|
9658
|
+
},
|
|
9659
|
+
detailsStyle: {
|
|
9660
|
+
marginLeft: "24px"
|
|
9661
|
+
}
|
|
9662
|
+
}
|
|
9663
|
+
},
|
|
9664
|
+
elements: [
|
|
9665
|
+
{
|
|
9666
|
+
type: "Control",
|
|
9667
|
+
scope: "#/properties/value",
|
|
9668
|
+
options: {
|
|
9669
|
+
widget: "InputField"
|
|
9670
|
+
},
|
|
9671
|
+
config: {
|
|
9672
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9673
|
+
main: {
|
|
9674
|
+
label: "Value"
|
|
9441
9675
|
}
|
|
9442
|
-
|
|
9676
|
+
}
|
|
9677
|
+
},
|
|
9678
|
+
{
|
|
9679
|
+
type: "Control",
|
|
9680
|
+
scope: "#/properties/emptyBox",
|
|
9681
|
+
options: {
|
|
9682
|
+
widget: "EmptyBox"
|
|
9683
|
+
},
|
|
9684
|
+
config: {
|
|
9685
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 8 },
|
|
9686
|
+
main: {}
|
|
9687
|
+
}
|
|
9443
9688
|
}
|
|
9444
|
-
|
|
9689
|
+
]
|
|
9445
9690
|
}
|
|
9446
9691
|
]
|
|
9447
9692
|
};
|
|
9448
|
-
var emptyBox = {
|
|
9449
|
-
type: "Control",
|
|
9450
|
-
scope: "#/properties/emptyBox",
|
|
9451
|
-
options: {
|
|
9452
|
-
widget: "EmptyBox"
|
|
9453
|
-
},
|
|
9454
|
-
config: {
|
|
9455
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
9456
|
-
main: {},
|
|
9457
|
-
style: {}
|
|
9458
|
-
}
|
|
9459
|
-
};
|
|
9460
9693
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9461
9694
|
return {
|
|
9462
9695
|
setPage: async function() {
|
|
9463
9696
|
const formdata = await this.getFormData();
|
|
9464
9697
|
store2.setFormdata(formdata);
|
|
9465
9698
|
const schema2 = await this.getSchema();
|
|
9699
|
+
console.log("SettingSchema>>", schema2);
|
|
9466
9700
|
store2.setSchema(schema2);
|
|
9467
9701
|
this.refreshPage(formdata.Handler, store2);
|
|
9468
9702
|
},
|
|
9469
9703
|
refreshPage: (handlerType, store22) => {
|
|
9704
|
+
var _a, _b, _c;
|
|
9470
9705
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9471
9706
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9472
9707
|
if (handlerType) {
|
|
9473
9708
|
if (handlerType === "custom") {
|
|
9474
|
-
uiSchema.elements[
|
|
9475
|
-
|
|
9709
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9710
|
+
"isSync",
|
|
9711
|
+
"Run in Sync",
|
|
9712
|
+
["Yes", "No"]
|
|
9713
|
+
);
|
|
9714
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9476
9715
|
type: "Control",
|
|
9477
9716
|
scope: "#/properties/emptyBox",
|
|
9478
9717
|
options: {
|
|
9479
9718
|
widget: "EmptyBox"
|
|
9480
9719
|
},
|
|
9481
9720
|
config: {
|
|
9482
|
-
layout: { xs:
|
|
9721
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9483
9722
|
main: {},
|
|
9484
9723
|
style: {}
|
|
9485
9724
|
}
|
|
9486
9725
|
};
|
|
9487
|
-
uiSchema.elements[
|
|
9726
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9727
|
+
"eventCode",
|
|
9728
|
+
"Write Custom Code",
|
|
9729
|
+
false
|
|
9730
|
+
);
|
|
9488
9731
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9489
9732
|
} else if (handlerType === "api") {
|
|
9490
|
-
uiSchema.elements[
|
|
9491
|
-
|
|
9733
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9734
|
+
xs: 0,
|
|
9735
|
+
sm: 0,
|
|
9736
|
+
md: 4,
|
|
9737
|
+
lg: 6
|
|
9738
|
+
});
|
|
9739
|
+
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9492
9740
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9493
9741
|
} else if (handlerType === "inBuiltFunction") {
|
|
9494
|
-
uiSchema.elements[
|
|
9495
|
-
|
|
9742
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9743
|
+
"inBuiltFunctionType",
|
|
9744
|
+
"Function Name"
|
|
9745
|
+
);
|
|
9746
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9496
9747
|
type: "Control",
|
|
9497
9748
|
scope: "#/properties/emptyBox",
|
|
9498
9749
|
options: {
|
|
9499
9750
|
widget: "EmptyBox"
|
|
9500
9751
|
},
|
|
9501
9752
|
config: {
|
|
9502
|
-
layout: { xs: 6, sm: 6, md: 0, lg:
|
|
9753
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9503
9754
|
main: {},
|
|
9504
9755
|
style: {}
|
|
9505
9756
|
}
|
|
9506
9757
|
};
|
|
9507
|
-
uiSchema.elements[
|
|
9758
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9759
|
+
"funcParametersCode",
|
|
9760
|
+
"Write Custom Code for Functions Parameter",
|
|
9761
|
+
true
|
|
9762
|
+
);
|
|
9508
9763
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9509
9764
|
} else if (handlerType === "refresh") {
|
|
9510
|
-
uiSchema.elements[
|
|
9511
|
-
|
|
9765
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9766
|
+
xs: 0,
|
|
9767
|
+
sm: 0,
|
|
9768
|
+
md: 4,
|
|
9769
|
+
lg: 6
|
|
9770
|
+
});
|
|
9771
|
+
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9512
9772
|
schema2.properties.refreshElements.required = ["value"];
|
|
9513
9773
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
9514
9774
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
@@ -9521,9 +9781,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9521
9781
|
];
|
|
9522
9782
|
}
|
|
9523
9783
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9524
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9784
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9785
|
+
uiSchema
|
|
9786
|
+
);
|
|
9525
9787
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9526
9788
|
}
|
|
9789
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9790
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9791
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9792
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9793
|
+
if (path) {
|
|
9794
|
+
const pathArrayAll = path.split(".");
|
|
9795
|
+
const arr = [];
|
|
9796
|
+
pathArrayAll.map((e, i) => {
|
|
9797
|
+
if (i === 0) {
|
|
9798
|
+
arr.push(e);
|
|
9799
|
+
return;
|
|
9800
|
+
}
|
|
9801
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9802
|
+
});
|
|
9803
|
+
arr.map((e) => {
|
|
9804
|
+
const data = _.get(config2, e);
|
|
9805
|
+
pathArray.push({
|
|
9806
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9807
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9808
|
+
});
|
|
9809
|
+
});
|
|
9810
|
+
}
|
|
9811
|
+
schema2.properties.pageName.path = pathArray;
|
|
9527
9812
|
store22.setSchema(schema2);
|
|
9528
9813
|
store22.setUiSchema(uiSchema);
|
|
9529
9814
|
},
|
|
@@ -9532,10 +9817,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9532
9817
|
return EventUiSchema;
|
|
9533
9818
|
},
|
|
9534
9819
|
getSchema: () => {
|
|
9820
|
+
var _a, _b, _c;
|
|
9535
9821
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9536
9822
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9537
9823
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9538
9824
|
}
|
|
9825
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9826
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9827
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9828
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9829
|
+
if (path) {
|
|
9830
|
+
const pathArrayAll = path.split(".");
|
|
9831
|
+
const arr = [];
|
|
9832
|
+
pathArrayAll.map((e, i) => {
|
|
9833
|
+
if (i === 0) {
|
|
9834
|
+
arr.push(e);
|
|
9835
|
+
return;
|
|
9836
|
+
}
|
|
9837
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9838
|
+
});
|
|
9839
|
+
arr.map((e) => {
|
|
9840
|
+
const data = _.get(config2, e);
|
|
9841
|
+
pathArray.push({
|
|
9842
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9843
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9844
|
+
});
|
|
9845
|
+
});
|
|
9846
|
+
}
|
|
9847
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9539
9848
|
return schema2;
|
|
9540
9849
|
},
|
|
9541
9850
|
okHandler: () => okHandler(store2),
|
|
@@ -9543,7 +9852,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9543
9852
|
onChange: function() {
|
|
9544
9853
|
var _a, _b, _c;
|
|
9545
9854
|
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) {
|
|
9546
|
-
this.refreshPage(
|
|
9855
|
+
this.refreshPage(
|
|
9856
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9857
|
+
store2
|
|
9858
|
+
);
|
|
9547
9859
|
}
|
|
9548
9860
|
},
|
|
9549
9861
|
addEvent: function() {
|
|
@@ -9569,7 +9881,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9569
9881
|
this.setPage();
|
|
9570
9882
|
},
|
|
9571
9883
|
deleteEvent: async function() {
|
|
9572
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9884
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9885
|
+
false
|
|
9886
|
+
);
|
|
9573
9887
|
store2.updateDialog("popUpEvent");
|
|
9574
9888
|
},
|
|
9575
9889
|
backHandler: function() {
|
|
@@ -9581,10 +9895,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9581
9895
|
store2.updateDialog("popUpEvent");
|
|
9582
9896
|
},
|
|
9583
9897
|
copyPasteElement: function() {
|
|
9584
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9898
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9899
|
+
store2,
|
|
9900
|
+
this.setPage.bind(this)
|
|
9901
|
+
);
|
|
9585
9902
|
},
|
|
9586
9903
|
RemoveItemButton: function() {
|
|
9587
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9904
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9905
|
+
store2
|
|
9906
|
+
);
|
|
9588
9907
|
}
|
|
9589
9908
|
};
|
|
9590
9909
|
};
|
|
@@ -9755,16 +10074,17 @@ function executeCustomHandler(params) {
|
|
|
9755
10074
|
}
|
|
9756
10075
|
}
|
|
9757
10076
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10077
|
+
var _a, _b, _c;
|
|
9758
10078
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9759
10079
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9760
10080
|
store2.setSchema((pre) => {
|
|
9761
|
-
var
|
|
10081
|
+
var _a2;
|
|
9762
10082
|
return {
|
|
9763
10083
|
...pre,
|
|
9764
10084
|
properties: {
|
|
9765
10085
|
...pre.properties,
|
|
9766
10086
|
[componentName]: {
|
|
9767
|
-
...(
|
|
10087
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9768
10088
|
oneOf: handlerResponse.data
|
|
9769
10089
|
}
|
|
9770
10090
|
}
|
|
@@ -9774,13 +10094,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9774
10094
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9775
10095
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9776
10096
|
store2.setSchema((pre) => {
|
|
9777
|
-
var
|
|
10097
|
+
var _a2;
|
|
9778
10098
|
return {
|
|
9779
10099
|
...pre,
|
|
9780
10100
|
properties: {
|
|
9781
10101
|
...pre.properties,
|
|
9782
10102
|
[componentName]: {
|
|
9783
|
-
...(
|
|
10103
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9784
10104
|
type: "array",
|
|
9785
10105
|
items: {
|
|
9786
10106
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -9800,6 +10120,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9800
10120
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9801
10121
|
});
|
|
9802
10122
|
}
|
|
10123
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10124
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10125
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10126
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10127
|
+
store2.setFormdata((pre) => {
|
|
10128
|
+
return { ...pre, ...formDataHolder };
|
|
10129
|
+
});
|
|
10130
|
+
}
|
|
9803
10131
|
} else {
|
|
9804
10132
|
if (handlerResponse) {
|
|
9805
10133
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -9956,7 +10284,7 @@ var service = (funcParams) => {
|
|
|
9956
10284
|
};
|
|
9957
10285
|
return {
|
|
9958
10286
|
setPage: async function() {
|
|
9959
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10287
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
9960
10288
|
funcParams.store.setFormdata({});
|
|
9961
10289
|
funcParams.store.newData = {};
|
|
9962
10290
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
@@ -9971,12 +10299,25 @@ var service = (funcParams) => {
|
|
|
9971
10299
|
}));
|
|
9972
10300
|
}
|
|
9973
10301
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10302
|
+
const pathParts = funcParams.store.location.pathname.split("/");
|
|
10303
|
+
const programId = (_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "null")) == null ? void 0 : _a.value;
|
|
10304
|
+
if ((config2 == null ? void 0 : config2.programIdRequired) && programId) {
|
|
10305
|
+
if (pathParts.length < 2) {
|
|
10306
|
+
funcParams.store.navigate(
|
|
10307
|
+
`${funcParams.store.location.pathname}/${programId}`
|
|
10308
|
+
);
|
|
10309
|
+
} else if (pathParts[2] !== programId) {
|
|
10310
|
+
pathParts[2] = programId;
|
|
10311
|
+
const newPath = pathParts.slice(0, 3).join("/") + "/";
|
|
10312
|
+
funcParams.store.navigate(newPath);
|
|
10313
|
+
}
|
|
10314
|
+
}
|
|
9974
10315
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
9975
10316
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
9976
10317
|
detail: { pageName: config2.label }
|
|
9977
10318
|
});
|
|
9978
10319
|
window.dispatchEvent(event2);
|
|
9979
|
-
const theme = (
|
|
10320
|
+
const theme = (_c = (_b = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _b.theme) == null ? void 0 : _c.myTheme;
|
|
9980
10321
|
uiSchema.elements.push(
|
|
9981
10322
|
{
|
|
9982
10323
|
type: "HorizontalLayout",
|
|
@@ -10006,7 +10347,7 @@ var service = (funcParams) => {
|
|
|
10006
10347
|
heading: "Copywriter@ACT21.IO"
|
|
10007
10348
|
},
|
|
10008
10349
|
style: {
|
|
10009
|
-
color: ((
|
|
10350
|
+
color: ((_e = (_d = theme == null ? void 0 : theme.palette) == null ? void 0 : _d.text) == null ? void 0 : _e.disabled) || "#AFAFAF",
|
|
10010
10351
|
fontSize: "11px",
|
|
10011
10352
|
textAlign: "center",
|
|
10012
10353
|
lineHeight: 2,
|
|
@@ -10033,7 +10374,7 @@ var service = (funcParams) => {
|
|
|
10033
10374
|
width: "fit-content"
|
|
10034
10375
|
},
|
|
10035
10376
|
style: {
|
|
10036
|
-
fill: (
|
|
10377
|
+
fill: (_g = (_f = theme == null ? void 0 : theme.palette) == null ? void 0 : _f.primary) == null ? void 0 : _g.main,
|
|
10037
10378
|
width: 20,
|
|
10038
10379
|
height: 0,
|
|
10039
10380
|
top: 0,
|
|
@@ -10042,7 +10383,7 @@ var service = (funcParams) => {
|
|
|
10042
10383
|
fontSize: "12px",
|
|
10043
10384
|
cursor: "pointer",
|
|
10044
10385
|
":hover": {
|
|
10045
|
-
fill: (
|
|
10386
|
+
fill: (_i = (_h = theme == null ? void 0 : theme.palette) == null ? void 0 : _h.primary) == null ? void 0 : _i.dark
|
|
10046
10387
|
},
|
|
10047
10388
|
marginRight: "20px"
|
|
10048
10389
|
}
|
|
@@ -10065,7 +10406,7 @@ var service = (funcParams) => {
|
|
|
10065
10406
|
lineHeight: 1,
|
|
10066
10407
|
height: 0,
|
|
10067
10408
|
width: "fit-content",
|
|
10068
|
-
color: (
|
|
10409
|
+
color: (_k = (_j = theme == null ? void 0 : theme.palette) == null ? void 0 : _j.primary) == null ? void 0 : _k.main,
|
|
10069
10410
|
fontSize: "12px",
|
|
10070
10411
|
cursor: "pointer",
|
|
10071
10412
|
marginLeft: "2px",
|
|
@@ -10073,7 +10414,7 @@ var service = (funcParams) => {
|
|
|
10073
10414
|
right: "12px",
|
|
10074
10415
|
position: "absolute",
|
|
10075
10416
|
":hover": {
|
|
10076
|
-
color: (
|
|
10417
|
+
color: (_m = (_l = theme == null ? void 0 : theme.palette) == null ? void 0 : _l.primary) == null ? void 0 : _m.dark
|
|
10077
10418
|
},
|
|
10078
10419
|
marginRight: "4px"
|
|
10079
10420
|
}
|
|
@@ -10082,7 +10423,7 @@ var service = (funcParams) => {
|
|
|
10082
10423
|
]
|
|
10083
10424
|
}
|
|
10084
10425
|
);
|
|
10085
|
-
const schema2 = (
|
|
10426
|
+
const schema2 = (_n = pageData == null ? void 0 : pageData.schema) != null ? _n : { type: "object", properties: {} };
|
|
10086
10427
|
eventGroups = extractEvents(config2);
|
|
10087
10428
|
executeEventsParameters = {
|
|
10088
10429
|
config: {},
|
|
@@ -10105,7 +10446,7 @@ var service = (funcParams) => {
|
|
|
10105
10446
|
service: funcParams.service,
|
|
10106
10447
|
serviceHolder: this,
|
|
10107
10448
|
eventGroups,
|
|
10108
|
-
formDataHolder
|
|
10449
|
+
formDataHolder: {}
|
|
10109
10450
|
});
|
|
10110
10451
|
funcParams.store.setSchema(
|
|
10111
10452
|
(pre) => {
|
|
@@ -10120,11 +10461,11 @@ var service = (funcParams) => {
|
|
|
10120
10461
|
funcParams.store.setUiSchema(uiSchema);
|
|
10121
10462
|
},
|
|
10122
10463
|
onCellRenderer: (cellParams) => {
|
|
10123
|
-
var _a, _b, _c;
|
|
10464
|
+
var _a, _b, _c, _d;
|
|
10124
10465
|
if (eventGroups.onCellRenderer) {
|
|
10125
10466
|
let finalResponse = {};
|
|
10126
10467
|
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]);
|
|
10127
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
10468
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10128
10469
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10129
10470
|
finalResponse = executeEvents({
|
|
10130
10471
|
...executeEventsParameters,
|
|
@@ -10728,6 +11069,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10728
11069
|
if (config2.style) {
|
|
10729
11070
|
inputField.config.style = JSON.parse(config2.style);
|
|
10730
11071
|
}
|
|
11072
|
+
if (config2.multiline) {
|
|
11073
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11074
|
+
}
|
|
10731
11075
|
if (config2.InputFormatingAndMasking) {
|
|
10732
11076
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10733
11077
|
}
|
|
@@ -11564,6 +11908,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11564
11908
|
}
|
|
11565
11909
|
return Radio;
|
|
11566
11910
|
};
|
|
11911
|
+
var emptyBox = {
|
|
11912
|
+
type: "Control",
|
|
11913
|
+
scope: "#/properties/emptyBox",
|
|
11914
|
+
options: {
|
|
11915
|
+
widget: "EmptyBox"
|
|
11916
|
+
},
|
|
11917
|
+
config: {
|
|
11918
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11919
|
+
main: {},
|
|
11920
|
+
style: {}
|
|
11921
|
+
}
|
|
11922
|
+
};
|
|
11567
11923
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11568
11924
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11569
11925
|
if (config2.layout) {
|
|
@@ -12241,19 +12597,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12241
12597
|
});
|
|
12242
12598
|
} else if (config2.type == "Table") {
|
|
12243
12599
|
const sizeMap = {};
|
|
12244
|
-
const filterMap = {};
|
|
12245
12600
|
if (config2.sizeHolder) {
|
|
12246
12601
|
config2.sizeHolder.map((e, i) => {
|
|
12247
12602
|
sizeMap[e.keyName] = e.value;
|
|
12248
12603
|
});
|
|
12249
12604
|
}
|
|
12250
|
-
if (config2.enableColumnFilter) {
|
|
12251
|
-
config2.enableColumnFilter.map((e) => {
|
|
12252
|
-
filterMap[e.keyName] = true;
|
|
12253
|
-
});
|
|
12254
|
-
}
|
|
12255
12605
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12256
|
-
var _a, _b;
|
|
12257
12606
|
if (cellElem.type) {
|
|
12258
12607
|
return {
|
|
12259
12608
|
accessorKey: cellElem.name,
|
|
@@ -12262,8 +12611,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12262
12611
|
type: cellElem.columnFormat,
|
|
12263
12612
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12264
12613
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12265
|
-
|
|
12266
|
-
|
|
12614
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12615
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12616
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12267
12617
|
};
|
|
12268
12618
|
} else {
|
|
12269
12619
|
return {
|
|
@@ -12271,8 +12621,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12271
12621
|
type: cellElem.columnFormat,
|
|
12272
12622
|
header: cellElem.label || cellElem.name,
|
|
12273
12623
|
size: sizeMap[cellElem.name] || 180,
|
|
12274
|
-
|
|
12275
|
-
|
|
12624
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12625
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12626
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12276
12627
|
};
|
|
12277
12628
|
}
|
|
12278
12629
|
});
|