impaktapps-ui-builder 0.0.101-alpha.11 → 0.0.101-alpha.111
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 +1157 -805
- 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 +118 -50
- 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 +9 -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
|
}
|
|
@@ -6746,48 +6768,58 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6746
6768
|
]
|
|
6747
6769
|
},
|
|
6748
6770
|
{
|
|
6749
|
-
type: "
|
|
6750
|
-
scope: "#/properties/btn",
|
|
6751
|
-
options: {
|
|
6752
|
-
widget: "Button"
|
|
6753
|
-
},
|
|
6771
|
+
type: "WrapperLayout",
|
|
6754
6772
|
config: {
|
|
6755
|
-
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6756
6773
|
main: {
|
|
6757
|
-
|
|
6758
|
-
variant: "contained",
|
|
6759
|
-
type: "text",
|
|
6760
|
-
onClick: "okHandler",
|
|
6761
|
-
size: "medium"
|
|
6774
|
+
gap: "8px"
|
|
6762
6775
|
}
|
|
6763
|
-
}
|
|
6764
|
-
},
|
|
6765
|
-
{
|
|
6766
|
-
type: "Control",
|
|
6767
|
-
scope: "#/properties/btnSubmit",
|
|
6768
|
-
options: {
|
|
6769
|
-
widget: "Button"
|
|
6770
6776
|
},
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6777
|
+
elements: [
|
|
6778
|
+
{
|
|
6779
|
+
type: "Control",
|
|
6780
|
+
scope: "#/properties/btn",
|
|
6781
|
+
options: {
|
|
6782
|
+
widget: "Button"
|
|
6783
|
+
},
|
|
6784
|
+
config: {
|
|
6785
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6786
|
+
main: {
|
|
6787
|
+
name: "Ok",
|
|
6788
|
+
variant: "contained",
|
|
6789
|
+
type: "text",
|
|
6790
|
+
onClick: "okHandler",
|
|
6791
|
+
size: "medium"
|
|
6792
|
+
}
|
|
6793
|
+
}
|
|
6794
|
+
},
|
|
6795
|
+
{
|
|
6796
|
+
type: "Control",
|
|
6797
|
+
scope: "#/properties/btnSubmit",
|
|
6798
|
+
options: {
|
|
6799
|
+
widget: "Button"
|
|
6800
|
+
},
|
|
6801
|
+
config: {
|
|
6802
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6803
|
+
main: {
|
|
6804
|
+
name: "Save & Exit",
|
|
6805
|
+
variant: "contained",
|
|
6806
|
+
type: "text",
|
|
6807
|
+
onClick: "saveHandler",
|
|
6808
|
+
size: "medium"
|
|
6809
|
+
}
|
|
6810
|
+
}
|
|
6811
|
+
},
|
|
6812
|
+
{
|
|
6813
|
+
type: "Control",
|
|
6814
|
+
scope: "#/properties/EmptyBox",
|
|
6815
|
+
config: {
|
|
6816
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6817
|
+
},
|
|
6818
|
+
options: {
|
|
6819
|
+
widget: "EmptyBox"
|
|
6820
|
+
}
|
|
6779
6821
|
}
|
|
6780
|
-
|
|
6781
|
-
},
|
|
6782
|
-
{
|
|
6783
|
-
type: "Control",
|
|
6784
|
-
scope: "#/properties/EmptyBox",
|
|
6785
|
-
config: {
|
|
6786
|
-
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6787
|
-
},
|
|
6788
|
-
options: {
|
|
6789
|
-
widget: "EmptyBox"
|
|
6790
|
-
}
|
|
6822
|
+
]
|
|
6791
6823
|
},
|
|
6792
6824
|
{
|
|
6793
6825
|
type: "Control",
|
|
@@ -6817,15 +6849,16 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6817
6849
|
config: {
|
|
6818
6850
|
layout: 11,
|
|
6819
6851
|
main: {
|
|
6820
|
-
heading: "Are you sure you want to delete ?"
|
|
6852
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
6821
6853
|
},
|
|
6822
6854
|
style: {
|
|
6823
|
-
marginTop: "-20px",
|
|
6824
|
-
fontSize: "20px",
|
|
6825
6855
|
"&.MuiTypography-root": {
|
|
6826
|
-
padding: "
|
|
6856
|
+
padding: "0px 20px",
|
|
6827
6857
|
textAlign: "center",
|
|
6828
|
-
lineHeight: "1"
|
|
6858
|
+
lineHeight: "1.2",
|
|
6859
|
+
fontWeight: "normal",
|
|
6860
|
+
fontSize: "18px",
|
|
6861
|
+
marginBottom: theme.spacing(5)
|
|
6829
6862
|
}
|
|
6830
6863
|
}
|
|
6831
6864
|
}
|
|
@@ -6854,6 +6887,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6854
6887
|
},
|
|
6855
6888
|
style: {
|
|
6856
6889
|
position: "absolute",
|
|
6890
|
+
padding: "8px 0px",
|
|
6891
|
+
fontSize: "16px",
|
|
6857
6892
|
bottom: 0,
|
|
6858
6893
|
left: 0,
|
|
6859
6894
|
width: "50%",
|
|
@@ -6889,6 +6924,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6889
6924
|
},
|
|
6890
6925
|
style: {
|
|
6891
6926
|
position: "absolute",
|
|
6927
|
+
padding: "8px 0px",
|
|
6928
|
+
fontSize: "16px",
|
|
6892
6929
|
bottom: 0,
|
|
6893
6930
|
right: 0,
|
|
6894
6931
|
width: "50%",
|
|
@@ -6937,15 +6974,17 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6937
6974
|
config: {
|
|
6938
6975
|
layout: 11,
|
|
6939
6976
|
main: {
|
|
6940
|
-
heading: "Are you sure you want to delete ?"
|
|
6977
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
6941
6978
|
},
|
|
6942
6979
|
style: {
|
|
6943
|
-
marginTop: "-20px",
|
|
6944
6980
|
fontSize: "20px",
|
|
6945
6981
|
"&.MuiTypography-root": {
|
|
6946
|
-
padding: "
|
|
6982
|
+
padding: "0px 20px",
|
|
6947
6983
|
textAlign: "center",
|
|
6948
|
-
lineHeight: "1"
|
|
6984
|
+
lineHeight: "1.2",
|
|
6985
|
+
fontWeight: "normal",
|
|
6986
|
+
fontSize: "18px",
|
|
6987
|
+
marginBottom: theme.spacing(5)
|
|
6949
6988
|
}
|
|
6950
6989
|
}
|
|
6951
6990
|
}
|
|
@@ -6974,6 +7013,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6974
7013
|
},
|
|
6975
7014
|
style: {
|
|
6976
7015
|
position: "absolute",
|
|
7016
|
+
padding: "8px 0px",
|
|
7017
|
+
fontSize: "16px",
|
|
6977
7018
|
bottom: 0,
|
|
6978
7019
|
left: 0,
|
|
6979
7020
|
width: "50%",
|
|
@@ -7009,6 +7050,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7009
7050
|
},
|
|
7010
7051
|
style: {
|
|
7011
7052
|
position: "absolute",
|
|
7053
|
+
padding: "8px 0px",
|
|
7054
|
+
fontSize: "16px",
|
|
7012
7055
|
bottom: 0,
|
|
7013
7056
|
right: 0,
|
|
7014
7057
|
width: "50%",
|
|
@@ -7029,6 +7072,27 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7029
7072
|
}
|
|
7030
7073
|
]
|
|
7031
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
|
+
},
|
|
7032
7096
|
{
|
|
7033
7097
|
type: "Control",
|
|
7034
7098
|
scope: "#/properties/notify",
|
|
@@ -7086,7 +7150,13 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7086
7150
|
return uiSchema;
|
|
7087
7151
|
};
|
|
7088
7152
|
const CoreSection = {
|
|
7089
|
-
type: "
|
|
7153
|
+
type: "WrapperLayout",
|
|
7154
|
+
config: {
|
|
7155
|
+
main: {
|
|
7156
|
+
label: " ",
|
|
7157
|
+
gap: "8px"
|
|
7158
|
+
}
|
|
7159
|
+
},
|
|
7090
7160
|
elements: [
|
|
7091
7161
|
{
|
|
7092
7162
|
type: "Control",
|
|
@@ -7095,7 +7165,7 @@ const CoreSection = {
|
|
|
7095
7165
|
widget: "SelectInputField"
|
|
7096
7166
|
},
|
|
7097
7167
|
config: {
|
|
7098
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7168
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7099
7169
|
main: {
|
|
7100
7170
|
label: "Type",
|
|
7101
7171
|
type: "text"
|
|
@@ -7104,40 +7174,39 @@ const CoreSection = {
|
|
|
7104
7174
|
},
|
|
7105
7175
|
{
|
|
7106
7176
|
type: "Control",
|
|
7107
|
-
scope: "#/properties/
|
|
7108
|
-
options: {
|
|
7109
|
-
widget: "InputField"
|
|
7110
|
-
},
|
|
7177
|
+
scope: "#/properties/proc",
|
|
7111
7178
|
config: {
|
|
7112
|
-
layout: { xs: 6, sm:
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7179
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
7180
|
+
},
|
|
7181
|
+
options: {
|
|
7182
|
+
widget: "EmptyBox"
|
|
7116
7183
|
}
|
|
7117
7184
|
},
|
|
7118
7185
|
{
|
|
7119
7186
|
type: "Control",
|
|
7120
|
-
scope: "#/properties/
|
|
7187
|
+
scope: "#/properties/name",
|
|
7121
7188
|
options: {
|
|
7122
7189
|
widget: "InputField"
|
|
7123
7190
|
},
|
|
7124
7191
|
config: {
|
|
7125
|
-
layout: { xs:
|
|
7192
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7126
7193
|
main: {
|
|
7127
|
-
label: "
|
|
7194
|
+
label: "Component ID",
|
|
7195
|
+
required: true
|
|
7128
7196
|
}
|
|
7129
7197
|
}
|
|
7130
7198
|
},
|
|
7131
7199
|
{
|
|
7132
7200
|
type: "Control",
|
|
7133
|
-
scope: "#/properties/
|
|
7201
|
+
scope: "#/properties/label",
|
|
7134
7202
|
options: {
|
|
7135
|
-
widget: "
|
|
7203
|
+
widget: "InputField"
|
|
7136
7204
|
},
|
|
7137
7205
|
config: {
|
|
7138
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7206
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7139
7207
|
main: {
|
|
7140
|
-
label: "
|
|
7208
|
+
label: "Label",
|
|
7209
|
+
required: true
|
|
7141
7210
|
}
|
|
7142
7211
|
}
|
|
7143
7212
|
},
|
|
@@ -7145,17 +7214,7 @@ const CoreSection = {
|
|
|
7145
7214
|
type: "Control",
|
|
7146
7215
|
scope: "#/properties/proc",
|
|
7147
7216
|
config: {
|
|
7148
|
-
layout: { xs:
|
|
7149
|
-
},
|
|
7150
|
-
options: {
|
|
7151
|
-
widget: "EmptyBox"
|
|
7152
|
-
}
|
|
7153
|
-
},
|
|
7154
|
-
{
|
|
7155
|
-
type: "Control",
|
|
7156
|
-
scope: "#/properties/proc",
|
|
7157
|
-
config: {
|
|
7158
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7217
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7159
7218
|
},
|
|
7160
7219
|
options: {
|
|
7161
7220
|
widget: "EmptyBox"
|
|
@@ -7164,54 +7223,67 @@ const CoreSection = {
|
|
|
7164
7223
|
{
|
|
7165
7224
|
type: "Control",
|
|
7166
7225
|
scope: "#/properties/layout",
|
|
7167
|
-
layout: 12,
|
|
7168
7226
|
options: {
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
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
|
-
type: "Control",
|
|
7204
|
-
scope: "#/properties/proc",
|
|
7205
|
-
config: {
|
|
7206
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7207
|
-
},
|
|
7208
|
-
options: {
|
|
7209
|
-
widget: "EmptyBox"
|
|
7210
|
-
}
|
|
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"
|
|
7211
7257
|
}
|
|
7212
|
-
|
|
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
|
+
}
|
|
7213
7285
|
}
|
|
7214
|
-
|
|
7286
|
+
]
|
|
7215
7287
|
}
|
|
7216
7288
|
]
|
|
7217
7289
|
};
|
|
@@ -7238,15 +7310,20 @@ const EventSection = (theme) => {
|
|
|
7238
7310
|
},
|
|
7239
7311
|
config: {
|
|
7240
7312
|
main: {
|
|
7241
|
-
color: "info",
|
|
7242
7313
|
onClick: "eventAddHandler",
|
|
7243
7314
|
size: "small",
|
|
7244
|
-
icon: "
|
|
7245
|
-
iconLabel: "Add
|
|
7315
|
+
icon: "TableAddIcon",
|
|
7316
|
+
iconLabel: "Add",
|
|
7246
7317
|
styleDefault: true
|
|
7247
7318
|
},
|
|
7248
7319
|
style: {
|
|
7249
|
-
mt: "6px"
|
|
7320
|
+
mt: "6px",
|
|
7321
|
+
color: "inherit",
|
|
7322
|
+
fill: "inherit",
|
|
7323
|
+
"&:hover": {
|
|
7324
|
+
color: "inherit",
|
|
7325
|
+
fill: "inherit"
|
|
7326
|
+
}
|
|
7250
7327
|
}
|
|
7251
7328
|
}
|
|
7252
7329
|
}
|
|
@@ -7262,12 +7339,18 @@ const EventSection = (theme) => {
|
|
|
7262
7339
|
main: {
|
|
7263
7340
|
onClick: "copyPasteElement",
|
|
7264
7341
|
size: "small",
|
|
7265
|
-
icon: "
|
|
7342
|
+
icon: "TablePaste",
|
|
7266
7343
|
iconLabel: "Paste",
|
|
7267
7344
|
styleDefault: true
|
|
7268
7345
|
},
|
|
7269
7346
|
style: {
|
|
7270
|
-
mt: "6px"
|
|
7347
|
+
mt: "6px",
|
|
7348
|
+
color: "inherit",
|
|
7349
|
+
fill: "inherit",
|
|
7350
|
+
"&:hover": {
|
|
7351
|
+
color: "inherit",
|
|
7352
|
+
fill: "inherit"
|
|
7353
|
+
}
|
|
7271
7354
|
}
|
|
7272
7355
|
}
|
|
7273
7356
|
}
|
|
@@ -7282,15 +7365,21 @@ const EventSection = (theme) => {
|
|
|
7282
7365
|
elements: [
|
|
7283
7366
|
{
|
|
7284
7367
|
accessorKey: "eventType",
|
|
7285
|
-
header: "Event Type"
|
|
7368
|
+
header: "Event's Type",
|
|
7369
|
+
type: "string",
|
|
7370
|
+
size: 300
|
|
7286
7371
|
},
|
|
7287
7372
|
{
|
|
7288
7373
|
accessorKey: "Handler",
|
|
7289
|
-
header: "Handler"
|
|
7374
|
+
header: "Handler",
|
|
7375
|
+
type: "string",
|
|
7376
|
+
size: 200
|
|
7290
7377
|
},
|
|
7291
7378
|
{
|
|
7292
7379
|
accessorKey: "Edit_Approve_Records",
|
|
7293
|
-
header: "Edit
|
|
7380
|
+
header: "Edit",
|
|
7381
|
+
size: 150,
|
|
7382
|
+
type: "action",
|
|
7294
7383
|
widget: {
|
|
7295
7384
|
type: "Control",
|
|
7296
7385
|
scope: "#/properties/Edit_Records",
|
|
@@ -7299,14 +7388,16 @@ const EventSection = (theme) => {
|
|
|
7299
7388
|
},
|
|
7300
7389
|
config: {
|
|
7301
7390
|
main: {
|
|
7302
|
-
color: "info",
|
|
7303
7391
|
size: "small",
|
|
7304
|
-
icon: "
|
|
7392
|
+
icon: "TableEditIcon",
|
|
7305
7393
|
tooltipMessage: "Edit This Record",
|
|
7306
7394
|
onClick: "eventEditHandler"
|
|
7307
7395
|
},
|
|
7308
7396
|
style: {
|
|
7309
|
-
|
|
7397
|
+
fill: theme.palette.primary.main,
|
|
7398
|
+
"& :hover": {
|
|
7399
|
+
fill: theme.palette.primary.dark
|
|
7400
|
+
}
|
|
7310
7401
|
}
|
|
7311
7402
|
}
|
|
7312
7403
|
}
|
|
@@ -7314,6 +7405,8 @@ const EventSection = (theme) => {
|
|
|
7314
7405
|
{
|
|
7315
7406
|
accessorKey: "Reject_Records",
|
|
7316
7407
|
header: "Delete",
|
|
7408
|
+
size: 150,
|
|
7409
|
+
type: "action",
|
|
7317
7410
|
widget: {
|
|
7318
7411
|
type: "Control",
|
|
7319
7412
|
scope: "#/properties/RejectButton",
|
|
@@ -7323,10 +7416,15 @@ const EventSection = (theme) => {
|
|
|
7323
7416
|
},
|
|
7324
7417
|
config: {
|
|
7325
7418
|
main: {
|
|
7326
|
-
icon: "
|
|
7327
|
-
color: "error",
|
|
7419
|
+
icon: "Bin",
|
|
7328
7420
|
tooltipMessage: "Reject This Record",
|
|
7329
7421
|
onClick: "deletePopUpEvent"
|
|
7422
|
+
},
|
|
7423
|
+
style: {
|
|
7424
|
+
fill: theme.palette.primary.main,
|
|
7425
|
+
"& :hover": {
|
|
7426
|
+
fill: theme.palette.primary.dark
|
|
7427
|
+
}
|
|
7330
7428
|
}
|
|
7331
7429
|
}
|
|
7332
7430
|
}
|
|
@@ -7334,7 +7432,8 @@ const EventSection = (theme) => {
|
|
|
7334
7432
|
{
|
|
7335
7433
|
header: "Copy",
|
|
7336
7434
|
field: "Copy_Event",
|
|
7337
|
-
|
|
7435
|
+
size: 150,
|
|
7436
|
+
type: "action",
|
|
7338
7437
|
widget: {
|
|
7339
7438
|
type: "Control",
|
|
7340
7439
|
scope: "#/properties/Copy_Event",
|
|
@@ -7384,77 +7483,103 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7384
7483
|
const cardLayout = {
|
|
7385
7484
|
type: "Control",
|
|
7386
7485
|
scope: "#/properties/cardLayout",
|
|
7387
|
-
layout: 11.5,
|
|
7388
7486
|
options: {
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
type: "Control",
|
|
7407
|
-
scope: "#/properties/value",
|
|
7408
|
-
options: {
|
|
7409
|
-
widget: "InputField"
|
|
7410
|
-
},
|
|
7411
|
-
config: {
|
|
7412
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7413
|
-
main: {
|
|
7414
|
-
label: "Value",
|
|
7415
|
-
type: "number",
|
|
7416
|
-
helperText: "Number should be in range of 0 to 12",
|
|
7417
|
-
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7418
|
-
}
|
|
7419
|
-
}
|
|
7420
|
-
},
|
|
7421
|
-
emptyBox$1("cardEmpty")
|
|
7422
|
-
]
|
|
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
|
+
}
|
|
7423
7504
|
}
|
|
7424
|
-
}
|
|
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
|
+
]
|
|
7425
7538
|
};
|
|
7426
7539
|
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7427
7540
|
return {
|
|
7428
7541
|
type: "Control",
|
|
7429
7542
|
scope: `#/properties/${parentScope}`,
|
|
7430
|
-
layout: 12,
|
|
7431
7543
|
options: {
|
|
7432
|
-
"
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7450
|
-
emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7451
|
-
]
|
|
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
|
+
}
|
|
7452
7561
|
}
|
|
7453
|
-
}
|
|
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
|
+
]
|
|
7454
7579
|
};
|
|
7455
7580
|
};
|
|
7456
7581
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7457
|
-
sizeHolder.
|
|
7582
|
+
sizeHolder.elements[1] = {
|
|
7458
7583
|
type: "Control",
|
|
7459
7584
|
scope: `#/properties/value`,
|
|
7460
7585
|
options: {
|
|
@@ -7467,7 +7592,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7467
7592
|
}
|
|
7468
7593
|
}
|
|
7469
7594
|
};
|
|
7470
|
-
sizeHolder.
|
|
7595
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7471
7596
|
const getInputField = (scope, label) => {
|
|
7472
7597
|
return {
|
|
7473
7598
|
type: "Control",
|
|
@@ -7476,7 +7601,7 @@ const getInputField = (scope, label) => {
|
|
|
7476
7601
|
widget: "InputField"
|
|
7477
7602
|
},
|
|
7478
7603
|
config: {
|
|
7479
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7604
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7480
7605
|
main: {
|
|
7481
7606
|
label
|
|
7482
7607
|
}
|
|
@@ -7491,7 +7616,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7491
7616
|
widget: "RadioInputField"
|
|
7492
7617
|
},
|
|
7493
7618
|
config: {
|
|
7494
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
7619
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7495
7620
|
main: {
|
|
7496
7621
|
label,
|
|
7497
7622
|
options
|
|
@@ -7506,17 +7631,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7506
7631
|
main: {
|
|
7507
7632
|
label: label || "Details",
|
|
7508
7633
|
isAccordion: true
|
|
7509
|
-
}
|
|
7510
|
-
wrapperStyle: {
|
|
7511
|
-
marginTop: "-6px",
|
|
7512
|
-
marginBottom: "-8px",
|
|
7513
|
-
marginLeft: "-34px",
|
|
7514
|
-
width: "108%"
|
|
7515
|
-
},
|
|
7516
|
-
componentsBoxStyle: {
|
|
7517
|
-
marginLeft: "12px"
|
|
7518
|
-
},
|
|
7519
|
-
defaultStyle: true
|
|
7634
|
+
}
|
|
7520
7635
|
},
|
|
7521
7636
|
elements: elements || []
|
|
7522
7637
|
};
|
|
@@ -7530,18 +7645,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7530
7645
|
},
|
|
7531
7646
|
config: {
|
|
7532
7647
|
layout: layout || 12,
|
|
7533
|
-
style: {
|
|
7534
|
-
containerStyle: {
|
|
7535
|
-
borderRadius: "20px"
|
|
7536
|
-
},
|
|
7537
|
-
headerContainerStyle: {},
|
|
7538
|
-
textAreaStyle: {
|
|
7539
|
-
borderRadius: "20px",
|
|
7540
|
-
padding: "20px"
|
|
7541
|
-
}
|
|
7542
|
-
},
|
|
7543
7648
|
main: {
|
|
7544
|
-
heading,
|
|
7649
|
+
label: heading,
|
|
7545
7650
|
minRows: 8,
|
|
7546
7651
|
hideButton,
|
|
7547
7652
|
enableCodeEditor: true
|
|
@@ -7557,7 +7662,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7557
7662
|
widget: "SelectInputField"
|
|
7558
7663
|
},
|
|
7559
7664
|
config: {
|
|
7560
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7665
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7561
7666
|
main: {
|
|
7562
7667
|
label,
|
|
7563
7668
|
type: "text"
|
|
@@ -7573,7 +7678,7 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7573
7678
|
widget: "MultipleSelect"
|
|
7574
7679
|
},
|
|
7575
7680
|
config: {
|
|
7576
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7681
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7577
7682
|
main: {
|
|
7578
7683
|
multiple: true,
|
|
7579
7684
|
label,
|
|
@@ -7582,12 +7687,18 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7582
7687
|
}
|
|
7583
7688
|
};
|
|
7584
7689
|
};
|
|
7585
|
-
const
|
|
7690
|
+
const BaseSection = {
|
|
7586
7691
|
type: "WrapperLayout",
|
|
7692
|
+
config: {
|
|
7693
|
+
main: {
|
|
7694
|
+
label: " ",
|
|
7695
|
+
gap: "8px"
|
|
7696
|
+
}
|
|
7697
|
+
},
|
|
7587
7698
|
elements: []
|
|
7588
7699
|
};
|
|
7589
7700
|
const buildPropertiesSection = function(type) {
|
|
7590
|
-
let uiSchema = _.cloneDeep(
|
|
7701
|
+
let uiSchema = _.cloneDeep(BaseSection);
|
|
7591
7702
|
switch (type) {
|
|
7592
7703
|
case "TreeMap":
|
|
7593
7704
|
uiSchema.elements = [
|
|
@@ -7642,7 +7753,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7642
7753
|
case "Text":
|
|
7643
7754
|
uiSchema.elements = [
|
|
7644
7755
|
getInputField("placeholder", "Placeholder"),
|
|
7645
|
-
|
|
7756
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7646
7757
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7647
7758
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7648
7759
|
];
|
|
@@ -7651,7 +7762,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7651
7762
|
uiSchema.elements = [
|
|
7652
7763
|
getInputField("placeholder", "Placeholder"),
|
|
7653
7764
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7654
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7765
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7766
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7655
7767
|
];
|
|
7656
7768
|
break;
|
|
7657
7769
|
case "SpeedoMeter":
|
|
@@ -7731,7 +7843,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7731
7843
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7732
7844
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7733
7845
|
getInputField("leftMargin", "Left Margin"),
|
|
7734
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7846
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7735
7847
|
getArrayControl("legendLabels", "label"),
|
|
7736
7848
|
getArrayControl("pieArcColors", "color")
|
|
7737
7849
|
];
|
|
@@ -7812,7 +7924,13 @@ const buildPropertiesSection = function(type) {
|
|
|
7812
7924
|
return uiSchema;
|
|
7813
7925
|
};
|
|
7814
7926
|
const StyleSection = {
|
|
7815
|
-
type: "
|
|
7927
|
+
type: "WrapperLayout",
|
|
7928
|
+
config: {
|
|
7929
|
+
main: {
|
|
7930
|
+
label: " ",
|
|
7931
|
+
gap: "8px"
|
|
7932
|
+
}
|
|
7933
|
+
},
|
|
7816
7934
|
elements: [
|
|
7817
7935
|
{
|
|
7818
7936
|
type: "Control",
|
|
@@ -7828,14 +7946,7 @@ const StyleSection = {
|
|
|
7828
7946
|
lg: 12
|
|
7829
7947
|
},
|
|
7830
7948
|
style: {
|
|
7831
|
-
|
|
7832
|
-
borderRadius: "20px"
|
|
7833
|
-
},
|
|
7834
|
-
headerContainerStyle: {},
|
|
7835
|
-
textAreaStyle: {
|
|
7836
|
-
borderRadius: "20px",
|
|
7837
|
-
padding: "20px"
|
|
7838
|
-
}
|
|
7949
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
7839
7950
|
},
|
|
7840
7951
|
main: {
|
|
7841
7952
|
heading: "JSON Style",
|
|
@@ -7869,15 +7980,20 @@ const TableSection = (theme) => {
|
|
|
7869
7980
|
},
|
|
7870
7981
|
config: {
|
|
7871
7982
|
main: {
|
|
7872
|
-
color: "info",
|
|
7873
7983
|
onClick: "widgetAddClickHandler",
|
|
7874
7984
|
size: "small",
|
|
7875
|
-
icon: "
|
|
7876
|
-
iconLabel: "Add
|
|
7985
|
+
icon: "TableAddIcon",
|
|
7986
|
+
iconLabel: "Add",
|
|
7877
7987
|
styleDefault: true
|
|
7878
7988
|
},
|
|
7879
7989
|
style: {
|
|
7880
|
-
mt: "6px"
|
|
7990
|
+
mt: "6px",
|
|
7991
|
+
color: "inherit",
|
|
7992
|
+
fill: "inherit",
|
|
7993
|
+
"&:hover": {
|
|
7994
|
+
color: "inherit",
|
|
7995
|
+
fill: "inherit"
|
|
7996
|
+
}
|
|
7881
7997
|
}
|
|
7882
7998
|
}
|
|
7883
7999
|
}
|
|
@@ -7893,12 +8009,18 @@ const TableSection = (theme) => {
|
|
|
7893
8009
|
main: {
|
|
7894
8010
|
onClick: "copyPasteElement",
|
|
7895
8011
|
size: "small",
|
|
7896
|
-
icon: "
|
|
8012
|
+
icon: "TablePaste",
|
|
7897
8013
|
iconLabel: "Paste",
|
|
7898
8014
|
styleDefault: true
|
|
7899
8015
|
},
|
|
7900
8016
|
style: {
|
|
7901
|
-
mt: "6px"
|
|
8017
|
+
mt: "6px",
|
|
8018
|
+
color: "inherit",
|
|
8019
|
+
fill: "inherit",
|
|
8020
|
+
"&:hover": {
|
|
8021
|
+
color: "inherit",
|
|
8022
|
+
fill: "inherit"
|
|
8023
|
+
}
|
|
7902
8024
|
}
|
|
7903
8025
|
}
|
|
7904
8026
|
}
|
|
@@ -7913,16 +8035,21 @@ const TableSection = (theme) => {
|
|
|
7913
8035
|
elements: [
|
|
7914
8036
|
{
|
|
7915
8037
|
accessorKey: "name",
|
|
7916
|
-
header: "Name"
|
|
8038
|
+
header: "Name",
|
|
8039
|
+
type: "string",
|
|
8040
|
+
size: 300
|
|
7917
8041
|
},
|
|
7918
8042
|
{
|
|
7919
8043
|
accessorKey: "type",
|
|
7920
|
-
header: "Type"
|
|
8044
|
+
header: "Type",
|
|
8045
|
+
type: "string",
|
|
8046
|
+
size: 200
|
|
7921
8047
|
},
|
|
7922
8048
|
{
|
|
7923
8049
|
header: "Edit Record",
|
|
7924
8050
|
field: "Reject_Records",
|
|
7925
|
-
|
|
8051
|
+
size: 150,
|
|
8052
|
+
type: "action",
|
|
7926
8053
|
widget: {
|
|
7927
8054
|
type: "Control",
|
|
7928
8055
|
scope: "#/properties/RejectButton",
|
|
@@ -7931,13 +8058,16 @@ const TableSection = (theme) => {
|
|
|
7931
8058
|
},
|
|
7932
8059
|
config: {
|
|
7933
8060
|
main: {
|
|
7934
|
-
icon: "
|
|
7935
|
-
|
|
8061
|
+
icon: "TableEditIcon",
|
|
8062
|
+
size: "small",
|
|
7936
8063
|
onClick: "editComponents",
|
|
7937
8064
|
tooltipMessage: "Reject This Record"
|
|
7938
8065
|
},
|
|
7939
8066
|
style: {
|
|
7940
|
-
|
|
8067
|
+
fill: theme.palette.primary.main,
|
|
8068
|
+
"& :hover": {
|
|
8069
|
+
fill: theme.palette.primary.dark
|
|
8070
|
+
}
|
|
7941
8071
|
}
|
|
7942
8072
|
}
|
|
7943
8073
|
}
|
|
@@ -7945,7 +8075,8 @@ const TableSection = (theme) => {
|
|
|
7945
8075
|
{
|
|
7946
8076
|
header: "Delete",
|
|
7947
8077
|
field: "Reject_Records",
|
|
7948
|
-
|
|
8078
|
+
size: 150,
|
|
8079
|
+
type: "action",
|
|
7949
8080
|
widget: {
|
|
7950
8081
|
type: "Control",
|
|
7951
8082
|
scope: "#/properties/RejectButton",
|
|
@@ -7954,10 +8085,15 @@ const TableSection = (theme) => {
|
|
|
7954
8085
|
},
|
|
7955
8086
|
config: {
|
|
7956
8087
|
main: {
|
|
7957
|
-
icon: "
|
|
7958
|
-
color: "error",
|
|
8088
|
+
icon: "Bin",
|
|
7959
8089
|
onClick: "deletePopUpComponent",
|
|
7960
8090
|
tooltipMessage: "Reject This Record"
|
|
8091
|
+
},
|
|
8092
|
+
style: {
|
|
8093
|
+
fill: theme.palette.primary.main,
|
|
8094
|
+
"& :hover": {
|
|
8095
|
+
fill: theme.palette.primary.dark
|
|
8096
|
+
}
|
|
7961
8097
|
}
|
|
7962
8098
|
}
|
|
7963
8099
|
}
|
|
@@ -7965,7 +8101,8 @@ const TableSection = (theme) => {
|
|
|
7965
8101
|
{
|
|
7966
8102
|
header: "Copy",
|
|
7967
8103
|
field: "Copy_Component",
|
|
7968
|
-
|
|
8104
|
+
size: 150,
|
|
8105
|
+
type: "action",
|
|
7969
8106
|
widget: {
|
|
7970
8107
|
type: "Control",
|
|
7971
8108
|
scope: "#/properties/Copy_Component",
|
|
@@ -7989,109 +8126,148 @@ const TableSection = (theme) => {
|
|
|
7989
8126
|
return uiSchema;
|
|
7990
8127
|
};
|
|
7991
8128
|
const ValueTab = {
|
|
7992
|
-
type: "
|
|
8129
|
+
type: "WrapperLayout",
|
|
8130
|
+
config: {
|
|
8131
|
+
main: {
|
|
8132
|
+
label: " ",
|
|
8133
|
+
gap: "8px"
|
|
8134
|
+
}
|
|
8135
|
+
},
|
|
7993
8136
|
elements: [
|
|
7994
8137
|
{
|
|
7995
8138
|
type: "Control",
|
|
7996
8139
|
scope: "#/properties/value",
|
|
7997
|
-
layout: 12,
|
|
7998
8140
|
options: {
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
type: "Control",
|
|
8030
|
-
scope: "#/properties/emptyBox",
|
|
8031
|
-
options: {
|
|
8032
|
-
widget: "EmptyBox"
|
|
8033
|
-
},
|
|
8034
|
-
config: {
|
|
8035
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8036
|
-
}
|
|
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"
|
|
8037
8171
|
}
|
|
8038
|
-
|
|
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
|
+
}
|
|
8039
8196
|
}
|
|
8040
|
-
|
|
8197
|
+
]
|
|
8041
8198
|
}
|
|
8042
8199
|
]
|
|
8043
8200
|
};
|
|
8044
8201
|
const ValidationSection = {
|
|
8045
|
-
type: "
|
|
8202
|
+
type: "WrapperLayout",
|
|
8203
|
+
config: {
|
|
8204
|
+
main: {
|
|
8205
|
+
label: " ",
|
|
8206
|
+
gap: "8px"
|
|
8207
|
+
}
|
|
8208
|
+
},
|
|
8046
8209
|
elements: [
|
|
8047
8210
|
{
|
|
8048
8211
|
type: "Control",
|
|
8049
8212
|
scope: "#/properties/validation",
|
|
8050
|
-
layout: 11.5,
|
|
8051
8213
|
options: {
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
{
|
|
8083
|
-
type: "Control",
|
|
8084
|
-
scope: "#/properties/emptyBox",
|
|
8085
|
-
options: {
|
|
8086
|
-
widget: "EmptyBox"
|
|
8087
|
-
},
|
|
8088
|
-
config: {
|
|
8089
|
-
layout: { xs: 0, sm: 0, md: 4 }
|
|
8090
|
-
}
|
|
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"
|
|
8091
8244
|
}
|
|
8092
|
-
|
|
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
|
+
}
|
|
8093
8269
|
}
|
|
8094
|
-
|
|
8270
|
+
]
|
|
8095
8271
|
}
|
|
8096
8272
|
]
|
|
8097
8273
|
};
|
|
@@ -8247,54 +8423,124 @@ function okHandler(store2) {
|
|
|
8247
8423
|
}
|
|
8248
8424
|
}
|
|
8249
8425
|
const sectionLabels = {
|
|
8250
|
-
Select: ["Core", "Properties", "Value", "
|
|
8251
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8252
|
-
Table: ["Core", "Components", "Properties", "
|
|
8253
|
-
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"],
|
|
8254
8430
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8255
8431
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8256
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
8257
|
-
card: ["Core", "Properties", "
|
|
8258
|
-
UploadFile: ["Core", "
|
|
8259
|
-
Graph: ["Core", "Properties", "
|
|
8260
|
-
DownloadFile: ["Core", "
|
|
8261
|
-
Box: ["Core", "
|
|
8262
|
-
Properties: ["Core", "Properties", "
|
|
8263
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
8264
|
-
RankCard: ["Core", "Properties", "
|
|
8265
|
-
Slider: ["Core", "Components", "
|
|
8266
|
-
Timer: ["Core", "
|
|
8267
|
-
Rank: ["Core", "
|
|
8268
|
-
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"],
|
|
8269
8445
|
Array: ["Core", "Components", "Validation"],
|
|
8270
|
-
Radio: ["Core", "Properties", "
|
|
8271
|
-
Text: ["Core", "Properties", "
|
|
8272
|
-
TextArea: ["Core", "Properties", "
|
|
8446
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8447
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8448
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8273
8449
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8274
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8275
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8276
|
-
InputSlider: ["Core", "Properties", "
|
|
8277
|
-
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"],
|
|
8278
8454
|
ColumnGroup: ["Core", "Components"],
|
|
8279
|
-
Thought: ["Core", "Properties", "
|
|
8455
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8280
8456
|
};
|
|
8281
8457
|
function refreshPage(type, store2) {
|
|
8282
|
-
var _a;
|
|
8458
|
+
var _a, _b;
|
|
8283
8459
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8460
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8284
8461
|
if (type) {
|
|
8285
8462
|
const sectionUiSchema = {
|
|
8286
8463
|
Core: CoreSection,
|
|
8287
8464
|
Value: ValueTab,
|
|
8288
8465
|
Style: StyleSection,
|
|
8289
|
-
|
|
8466
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8290
8467
|
Components: TableSection(store2.theme.myTheme),
|
|
8291
8468
|
Properties: buildPropertiesSection(type),
|
|
8292
8469
|
Validation: ValidationSection
|
|
8293
8470
|
};
|
|
8294
8471
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8295
|
-
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "
|
|
8472
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8296
8473
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8297
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
|
+
}
|
|
8298
8544
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8299
8545
|
this.ElementPathSetter(UiSchema);
|
|
8300
8546
|
}
|
|
@@ -8316,10 +8562,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8316
8562
|
return getFormdataFromSessionStorage(path);
|
|
8317
8563
|
},
|
|
8318
8564
|
getSchema: function() {
|
|
8565
|
+
var _a, _b, _c;
|
|
8319
8566
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8320
8567
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8321
8568
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8322
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;
|
|
8323
8593
|
return schema2;
|
|
8324
8594
|
},
|
|
8325
8595
|
okHandler: () => okHandler(store2),
|
|
@@ -8432,6 +8702,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8432
8702
|
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8433
8703
|
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8434
8704
|
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8705
|
+
store2.setNotify({
|
|
8706
|
+
SuccessMessage: `${elementType} Copied Successfully`,
|
|
8707
|
+
Success: true
|
|
8708
|
+
});
|
|
8435
8709
|
store2.setSchema(schema2);
|
|
8436
8710
|
store2.setUiSchema(uiSchema);
|
|
8437
8711
|
},
|
|
@@ -8457,15 +8731,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8457
8731
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8458
8732
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8459
8733
|
const notificationMessages = {
|
|
8460
|
-
|
|
8461
|
-
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."
|
|
8462
8736
|
};
|
|
8463
8737
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8464
8738
|
store2.setNotify({
|
|
8465
|
-
FailMessage: notificationMessages.
|
|
8739
|
+
FailMessage: notificationMessages.Events,
|
|
8466
8740
|
Fail: true
|
|
8467
8741
|
});
|
|
8468
|
-
} else if (copiedConfig.name && elementType === "
|
|
8742
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8469
8743
|
store2.setNotify({
|
|
8470
8744
|
FailMessage: notificationMessages.Component,
|
|
8471
8745
|
Fail: true
|
|
@@ -8491,8 +8765,18 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8491
8765
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8492
8766
|
},
|
|
8493
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;
|
|
8494
8769
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8495
|
-
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
|
+
}
|
|
8496
8780
|
}
|
|
8497
8781
|
};
|
|
8498
8782
|
};
|
|
@@ -8643,18 +8927,18 @@ const EventSchema = {
|
|
|
8643
8927
|
eventType: {
|
|
8644
8928
|
type: "string",
|
|
8645
8929
|
oneOf: [
|
|
8646
|
-
{ title: "Click
|
|
8647
|
-
{ title: "Load
|
|
8648
|
-
{ title: "Change
|
|
8649
|
-
{ title: "Mount
|
|
8930
|
+
{ title: "Click", const: "onClick" },
|
|
8931
|
+
{ title: "Load", const: "onLoad" },
|
|
8932
|
+
{ title: "Change", const: "onChange" },
|
|
8933
|
+
{ title: "Mount", const: "onMount" },
|
|
8650
8934
|
{ title: "Success", const: "Success" },
|
|
8651
|
-
{ title: "
|
|
8652
|
-
{ title: "Cell
|
|
8653
|
-
{ title: "
|
|
8654
|
-
{ title: "Back
|
|
8655
|
-
{ title: "Next
|
|
8656
|
-
{ title: "
|
|
8657
|
-
{ 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" },
|
|
8658
8942
|
{ title: "Fail", const: "Fail" }
|
|
8659
8943
|
]
|
|
8660
8944
|
},
|
|
@@ -8662,7 +8946,7 @@ const EventSchema = {
|
|
|
8662
8946
|
type: "string",
|
|
8663
8947
|
oneOf: [
|
|
8664
8948
|
{ title: "Custom", const: "custom" },
|
|
8665
|
-
{ title: "
|
|
8949
|
+
{ title: "API", const: "api" },
|
|
8666
8950
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8667
8951
|
{ title: "Refresh", const: "refresh" }
|
|
8668
8952
|
]
|
|
@@ -8691,47 +8975,49 @@ const EventSchema = {
|
|
|
8691
8975
|
},
|
|
8692
8976
|
RemoveItemButton: {
|
|
8693
8977
|
disabled: true
|
|
8978
|
+
},
|
|
8979
|
+
pageName: {
|
|
8980
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8694
8981
|
}
|
|
8695
8982
|
},
|
|
8696
8983
|
required: ["eventType", "Handler"]
|
|
8697
8984
|
};
|
|
8698
8985
|
const EventUiSchema = (theme) => {
|
|
8699
|
-
var _a
|
|
8986
|
+
var _a;
|
|
8700
8987
|
const uiSchema = {
|
|
8701
8988
|
type: "HorizontalLayout",
|
|
8702
|
-
heading: "
|
|
8989
|
+
heading: "Page-Events",
|
|
8703
8990
|
elements: [
|
|
8704
|
-
{
|
|
8705
|
-
type: "Control",
|
|
8706
|
-
scope: "#/properties/pageName",
|
|
8707
|
-
options: {
|
|
8708
|
-
widget: "Box"
|
|
8709
|
-
},
|
|
8710
|
-
config: {
|
|
8711
|
-
layout: 12,
|
|
8712
|
-
main: {
|
|
8713
|
-
heading: " "
|
|
8714
|
-
},
|
|
8715
|
-
style: {
|
|
8716
|
-
marginLeft: theme.spacing(3),
|
|
8717
|
-
width: "auto",
|
|
8718
|
-
fontSize: "12px",
|
|
8719
|
-
color: "gray"
|
|
8720
|
-
}
|
|
8721
|
-
}
|
|
8722
|
-
},
|
|
8723
8991
|
{
|
|
8724
8992
|
type: "TabLayout",
|
|
8725
8993
|
config: {
|
|
8726
8994
|
main: {
|
|
8727
|
-
tabLabels: ["Core", "Response
|
|
8728
|
-
defaultStyle: true,
|
|
8995
|
+
tabLabels: ["Core", "Response Events"],
|
|
8729
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
|
+
}
|
|
8730
9010
|
}
|
|
8731
9011
|
},
|
|
8732
9012
|
elements: [
|
|
8733
9013
|
{
|
|
8734
|
-
type: "
|
|
9014
|
+
type: "WrapperLayout",
|
|
9015
|
+
config: {
|
|
9016
|
+
main: {
|
|
9017
|
+
label: " ",
|
|
9018
|
+
gap: "8px"
|
|
9019
|
+
}
|
|
9020
|
+
},
|
|
8735
9021
|
elements: [
|
|
8736
9022
|
{
|
|
8737
9023
|
type: "Control",
|
|
@@ -8740,9 +9026,9 @@ const EventUiSchema = (theme) => {
|
|
|
8740
9026
|
widget: "SelectInputField"
|
|
8741
9027
|
},
|
|
8742
9028
|
config: {
|
|
8743
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9029
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8744
9030
|
main: {
|
|
8745
|
-
label: "Event Type",
|
|
9031
|
+
label: "Event's Type",
|
|
8746
9032
|
type: "text"
|
|
8747
9033
|
}
|
|
8748
9034
|
}
|
|
@@ -8755,7 +9041,7 @@ const EventUiSchema = (theme) => {
|
|
|
8755
9041
|
widget: "EmptyBox"
|
|
8756
9042
|
},
|
|
8757
9043
|
config: {
|
|
8758
|
-
layout: { xs: 0, sm:
|
|
9044
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
8759
9045
|
}
|
|
8760
9046
|
}
|
|
8761
9047
|
]
|
|
@@ -8781,12 +9067,18 @@ const EventUiSchema = (theme) => {
|
|
|
8781
9067
|
main: {
|
|
8782
9068
|
onClick: "addEvent",
|
|
8783
9069
|
size: "small",
|
|
8784
|
-
icon: "
|
|
8785
|
-
iconLabel: "Add
|
|
9070
|
+
icon: "TableAddIcon",
|
|
9071
|
+
iconLabel: "Add",
|
|
8786
9072
|
styleDefault: true
|
|
8787
9073
|
},
|
|
8788
9074
|
style: {
|
|
8789
|
-
mt: "6px"
|
|
9075
|
+
mt: "6px",
|
|
9076
|
+
color: "inherit",
|
|
9077
|
+
fill: "inherit",
|
|
9078
|
+
"&:hover": {
|
|
9079
|
+
color: "inherit",
|
|
9080
|
+
fill: "inherit"
|
|
9081
|
+
}
|
|
8790
9082
|
}
|
|
8791
9083
|
}
|
|
8792
9084
|
}
|
|
@@ -8802,12 +9094,18 @@ const EventUiSchema = (theme) => {
|
|
|
8802
9094
|
main: {
|
|
8803
9095
|
onClick: "copyPasteElement",
|
|
8804
9096
|
size: "small",
|
|
8805
|
-
icon: "
|
|
9097
|
+
icon: "TablePaste",
|
|
8806
9098
|
iconLabel: "Paste",
|
|
8807
9099
|
styleDefault: true
|
|
8808
9100
|
},
|
|
8809
9101
|
style: {
|
|
8810
|
-
mt: "6px"
|
|
9102
|
+
mt: "6px",
|
|
9103
|
+
color: "inherit",
|
|
9104
|
+
fill: "inherit",
|
|
9105
|
+
"&:hover": {
|
|
9106
|
+
color: "inherit",
|
|
9107
|
+
fill: "inherit"
|
|
9108
|
+
}
|
|
8811
9109
|
}
|
|
8812
9110
|
}
|
|
8813
9111
|
}
|
|
@@ -8822,15 +9120,21 @@ const EventUiSchema = (theme) => {
|
|
|
8822
9120
|
elements: [
|
|
8823
9121
|
{
|
|
8824
9122
|
accessorKey: "eventType",
|
|
8825
|
-
header: "Event Type"
|
|
9123
|
+
header: "Event's Type",
|
|
9124
|
+
size: 300,
|
|
9125
|
+
type: "string"
|
|
8826
9126
|
},
|
|
8827
9127
|
{
|
|
8828
9128
|
accessorKey: "Handler",
|
|
8829
|
-
header: "Handler"
|
|
9129
|
+
header: "Handler",
|
|
9130
|
+
size: 200,
|
|
9131
|
+
type: "string"
|
|
8830
9132
|
},
|
|
8831
9133
|
{
|
|
8832
9134
|
accessorKey: "Edit_Approve_Records",
|
|
8833
|
-
header: "Edit
|
|
9135
|
+
header: "Edit",
|
|
9136
|
+
type: "action",
|
|
9137
|
+
size: 150,
|
|
8834
9138
|
widget: {
|
|
8835
9139
|
type: "Control",
|
|
8836
9140
|
scope: "#/properties/Edit_Records",
|
|
@@ -8839,14 +9143,16 @@ const EventUiSchema = (theme) => {
|
|
|
8839
9143
|
},
|
|
8840
9144
|
config: {
|
|
8841
9145
|
main: {
|
|
8842
|
-
color: "info",
|
|
8843
9146
|
size: "small",
|
|
8844
|
-
icon: "
|
|
9147
|
+
icon: "TableEditIcon",
|
|
8845
9148
|
tooltipMessage: "Edit This Record",
|
|
8846
9149
|
onClick: "editEvent"
|
|
8847
9150
|
},
|
|
8848
9151
|
style: {
|
|
8849
|
-
|
|
9152
|
+
fill: theme.palette.primary.main,
|
|
9153
|
+
"& :hover": {
|
|
9154
|
+
fill: theme.palette.primary.dark
|
|
9155
|
+
}
|
|
8850
9156
|
}
|
|
8851
9157
|
}
|
|
8852
9158
|
}
|
|
@@ -8854,6 +9160,8 @@ const EventUiSchema = (theme) => {
|
|
|
8854
9160
|
{
|
|
8855
9161
|
accessorKey: "Reject_Records",
|
|
8856
9162
|
header: "Delete",
|
|
9163
|
+
type: "action",
|
|
9164
|
+
size: 150,
|
|
8857
9165
|
widget: {
|
|
8858
9166
|
type: "Control",
|
|
8859
9167
|
scope: "#/properties/RejectButton",
|
|
@@ -8862,10 +9170,15 @@ const EventUiSchema = (theme) => {
|
|
|
8862
9170
|
},
|
|
8863
9171
|
config: {
|
|
8864
9172
|
main: {
|
|
8865
|
-
icon: "
|
|
8866
|
-
color: "error",
|
|
9173
|
+
icon: "Bin",
|
|
8867
9174
|
tooltipMessage: "Reject This Record",
|
|
8868
9175
|
onClick: "deletePopUpEvent"
|
|
9176
|
+
},
|
|
9177
|
+
style: {
|
|
9178
|
+
fill: theme.palette.primary.main,
|
|
9179
|
+
"& :hover": {
|
|
9180
|
+
fill: theme.palette.primary.dark
|
|
9181
|
+
}
|
|
8869
9182
|
}
|
|
8870
9183
|
}
|
|
8871
9184
|
}
|
|
@@ -8873,7 +9186,8 @@ const EventUiSchema = (theme) => {
|
|
|
8873
9186
|
{
|
|
8874
9187
|
header: "Copy",
|
|
8875
9188
|
field: "Copy_Event",
|
|
8876
|
-
|
|
9189
|
+
type: "action",
|
|
9190
|
+
size: 150,
|
|
8877
9191
|
widget: {
|
|
8878
9192
|
type: "Control",
|
|
8879
9193
|
scope: "#/properties/Copy_Event",
|
|
@@ -8894,103 +9208,59 @@ const EventUiSchema = (theme) => {
|
|
|
8894
9208
|
]
|
|
8895
9209
|
},
|
|
8896
9210
|
{
|
|
8897
|
-
type: "
|
|
9211
|
+
type: "WrapperLayout",
|
|
8898
9212
|
config: {
|
|
8899
|
-
|
|
9213
|
+
main: {
|
|
9214
|
+
gap: "8px"
|
|
9215
|
+
}
|
|
8900
9216
|
},
|
|
8901
9217
|
elements: [
|
|
8902
9218
|
{
|
|
8903
9219
|
type: "Control",
|
|
8904
|
-
scope: "#/properties/
|
|
9220
|
+
scope: "#/properties/btn",
|
|
8905
9221
|
options: {
|
|
8906
|
-
widget: "
|
|
9222
|
+
widget: "Button"
|
|
8907
9223
|
},
|
|
8908
9224
|
config: {
|
|
8909
|
-
layout: { xs:
|
|
9225
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8910
9226
|
main: {
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
style: {
|
|
8917
|
-
marginLeft: "-10px"
|
|
9227
|
+
name: "Ok",
|
|
9228
|
+
variant: "contained",
|
|
9229
|
+
type: "text",
|
|
9230
|
+
onClick: "okHandler",
|
|
9231
|
+
size: "medium"
|
|
8918
9232
|
}
|
|
8919
9233
|
}
|
|
8920
9234
|
},
|
|
8921
9235
|
{
|
|
8922
9236
|
type: "Control",
|
|
8923
|
-
scope: "#/properties/
|
|
9237
|
+
scope: "#/properties/btnSubmit",
|
|
8924
9238
|
options: {
|
|
8925
|
-
widget: "
|
|
9239
|
+
widget: "Button"
|
|
8926
9240
|
},
|
|
8927
9241
|
config: {
|
|
8928
|
-
layout: { xs:
|
|
9242
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8929
9243
|
main: {
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
fontSize: "12px",
|
|
8936
|
-
marginTop: "4px"
|
|
9244
|
+
name: "Save & Exit",
|
|
9245
|
+
variant: "contained",
|
|
9246
|
+
type: "text",
|
|
9247
|
+
onClick: "saveHandler",
|
|
9248
|
+
size: "medium"
|
|
8937
9249
|
}
|
|
8938
9250
|
}
|
|
8939
9251
|
},
|
|
8940
9252
|
{
|
|
8941
9253
|
type: "Control",
|
|
8942
9254
|
scope: "#/properties/EmptyBox",
|
|
9255
|
+
config: {
|
|
9256
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
9257
|
+
},
|
|
8943
9258
|
options: {
|
|
8944
9259
|
widget: "EmptyBox"
|
|
8945
|
-
},
|
|
8946
|
-
config: {
|
|
8947
|
-
layout: { xs: 1, sm: 5 }
|
|
8948
9260
|
}
|
|
8949
9261
|
}
|
|
8950
9262
|
]
|
|
8951
9263
|
},
|
|
8952
|
-
{
|
|
8953
|
-
type: "Control",
|
|
8954
|
-
scope: "#/properties/btn",
|
|
8955
|
-
options: {
|
|
8956
|
-
widget: "Button"
|
|
8957
|
-
},
|
|
8958
|
-
config: {
|
|
8959
|
-
layout: { xs: 4, sm: 2 },
|
|
8960
|
-
main: {
|
|
8961
|
-
name: "Ok",
|
|
8962
|
-
startIcon: "ApproveIcon",
|
|
8963
|
-
variant: "contained",
|
|
8964
|
-
type: "text",
|
|
8965
|
-
onClick: "okHandler",
|
|
8966
|
-
size: "medium"
|
|
8967
|
-
},
|
|
8968
|
-
style: {
|
|
8969
|
-
float: "right"
|
|
8970
|
-
}
|
|
8971
|
-
}
|
|
8972
|
-
},
|
|
8973
|
-
{
|
|
8974
|
-
type: "Control",
|
|
8975
|
-
scope: "#/properties/btnSubmit",
|
|
8976
|
-
options: {
|
|
8977
|
-
widget: "Button"
|
|
8978
|
-
},
|
|
8979
|
-
config: {
|
|
8980
|
-
layout: { xs: 4, sm: 2 },
|
|
8981
|
-
main: {
|
|
8982
|
-
name: "Save & Exit",
|
|
8983
|
-
startIcon: "ApproveIcon",
|
|
8984
|
-
variant: "contained",
|
|
8985
|
-
type: "text",
|
|
8986
|
-
onClick: "saveHandler",
|
|
8987
|
-
size: "medium"
|
|
8988
|
-
},
|
|
8989
|
-
style: {
|
|
8990
|
-
float: "right"
|
|
8991
|
-
}
|
|
8992
|
-
}
|
|
8993
|
-
},
|
|
8994
9264
|
{
|
|
8995
9265
|
type: "Control",
|
|
8996
9266
|
scope: "#/properties/popUpEvent",
|
|
@@ -9019,15 +9289,17 @@ const EventUiSchema = (theme) => {
|
|
|
9019
9289
|
config: {
|
|
9020
9290
|
layout: 11,
|
|
9021
9291
|
main: {
|
|
9022
|
-
heading: "Are you sure you want to delete ?"
|
|
9292
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
9023
9293
|
},
|
|
9024
9294
|
style: {
|
|
9025
|
-
marginTop: "-20px",
|
|
9026
9295
|
fontSize: "20px",
|
|
9027
9296
|
"&.MuiTypography-root": {
|
|
9028
|
-
padding: "
|
|
9297
|
+
padding: "0px 20px",
|
|
9029
9298
|
textAlign: "center",
|
|
9030
|
-
lineHeight: "1"
|
|
9299
|
+
lineHeight: "1.2",
|
|
9300
|
+
fontWeight: "normal",
|
|
9301
|
+
fontSize: "18px",
|
|
9302
|
+
marginBottom: theme.spacing(5)
|
|
9031
9303
|
}
|
|
9032
9304
|
}
|
|
9033
9305
|
}
|
|
@@ -9051,13 +9323,14 @@ const EventUiSchema = (theme) => {
|
|
|
9051
9323
|
name: "No",
|
|
9052
9324
|
startIcon: "ApproveIcon",
|
|
9053
9325
|
variant: "contained",
|
|
9054
|
-
color: "info",
|
|
9055
9326
|
type: "text",
|
|
9056
9327
|
onClick: "deletePopUpEvent",
|
|
9057
9328
|
size: "large"
|
|
9058
9329
|
},
|
|
9059
9330
|
style: {
|
|
9060
9331
|
position: "absolute",
|
|
9332
|
+
padding: "8px 0px",
|
|
9333
|
+
fontSize: "16px",
|
|
9061
9334
|
bottom: 0,
|
|
9062
9335
|
left: 0,
|
|
9063
9336
|
width: "50%",
|
|
@@ -9085,7 +9358,6 @@ const EventUiSchema = (theme) => {
|
|
|
9085
9358
|
layout: 6,
|
|
9086
9359
|
main: {
|
|
9087
9360
|
name: "Yes",
|
|
9088
|
-
startIcon: "ApproveIcon",
|
|
9089
9361
|
variant: "contained",
|
|
9090
9362
|
color: "error",
|
|
9091
9363
|
type: "text",
|
|
@@ -9094,6 +9366,8 @@ const EventUiSchema = (theme) => {
|
|
|
9094
9366
|
},
|
|
9095
9367
|
style: {
|
|
9096
9368
|
position: "absolute",
|
|
9369
|
+
padding: "8px 0px",
|
|
9370
|
+
fontSize: "16px",
|
|
9097
9371
|
bottom: 0,
|
|
9098
9372
|
right: 0,
|
|
9099
9373
|
width: "50%",
|
|
@@ -9114,6 +9388,27 @@ const EventUiSchema = (theme) => {
|
|
|
9114
9388
|
}
|
|
9115
9389
|
]
|
|
9116
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
|
+
},
|
|
9117
9412
|
{
|
|
9118
9413
|
type: "Control",
|
|
9119
9414
|
scope: "#/properties/notify",
|
|
@@ -9131,7 +9426,7 @@ const EventUiSchema = (theme) => {
|
|
|
9131
9426
|
style: {
|
|
9132
9427
|
flexDirection: "row",
|
|
9133
9428
|
position: "absolute",
|
|
9134
|
-
bottom:
|
|
9429
|
+
bottom: 10,
|
|
9135
9430
|
height: "fit-content",
|
|
9136
9431
|
overflow: "hidden",
|
|
9137
9432
|
zIndex: 1e3,
|
|
@@ -9150,78 +9445,19 @@ const EventUiSchema = (theme) => {
|
|
|
9150
9445
|
heading: "Copywriter@ACT21.IO"
|
|
9151
9446
|
},
|
|
9152
9447
|
style: {
|
|
9153
|
-
color: ((
|
|
9448
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9154
9449
|
fontSize: "11px",
|
|
9155
9450
|
textAlign: "center",
|
|
9156
|
-
lineHeight:
|
|
9451
|
+
lineHeight: 0,
|
|
9157
9452
|
width: "fit-content",
|
|
9158
9453
|
left: "50%",
|
|
9159
9454
|
position: "relative",
|
|
9160
|
-
margin:
|
|
9455
|
+
margin: "revert",
|
|
9161
9456
|
flexGrow: 1,
|
|
9162
9457
|
height: 0,
|
|
9163
9458
|
transform: "translate(-50%, 0%)"
|
|
9164
9459
|
}
|
|
9165
9460
|
}
|
|
9166
|
-
},
|
|
9167
|
-
{
|
|
9168
|
-
type: "Control",
|
|
9169
|
-
scope: "#/properties/FooterBackIcon",
|
|
9170
|
-
options: {
|
|
9171
|
-
widget: "Box"
|
|
9172
|
-
},
|
|
9173
|
-
config: {
|
|
9174
|
-
main: {
|
|
9175
|
-
iconName: "PrevIcon",
|
|
9176
|
-
onClick: "backHandler",
|
|
9177
|
-
width: "fit-content"
|
|
9178
|
-
},
|
|
9179
|
-
style: {
|
|
9180
|
-
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
9181
|
-
width: 20,
|
|
9182
|
-
height: 0,
|
|
9183
|
-
top: 0,
|
|
9184
|
-
right: { xs: "12px", sm: "84px" },
|
|
9185
|
-
position: "absolute",
|
|
9186
|
-
fontSize: "12px",
|
|
9187
|
-
cursor: "pointer",
|
|
9188
|
-
":hover": {
|
|
9189
|
-
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
9190
|
-
},
|
|
9191
|
-
marginRight: "20px"
|
|
9192
|
-
}
|
|
9193
|
-
}
|
|
9194
|
-
},
|
|
9195
|
-
{
|
|
9196
|
-
type: "Control",
|
|
9197
|
-
scope: "#/properties/FooterBackHandlerText",
|
|
9198
|
-
options: {
|
|
9199
|
-
widget: "Box"
|
|
9200
|
-
},
|
|
9201
|
-
config: {
|
|
9202
|
-
main: {
|
|
9203
|
-
heading: "Previous Page",
|
|
9204
|
-
onClick: "backHandler"
|
|
9205
|
-
},
|
|
9206
|
-
style: {
|
|
9207
|
-
display: { xs: "none", sm: "flex" },
|
|
9208
|
-
textAlign: "left",
|
|
9209
|
-
lineHeight: 1,
|
|
9210
|
-
height: 0,
|
|
9211
|
-
width: "fit-content",
|
|
9212
|
-
color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
|
|
9213
|
-
fontSize: "12px",
|
|
9214
|
-
cursor: "pointer",
|
|
9215
|
-
marginLeft: "2px",
|
|
9216
|
-
top: 3,
|
|
9217
|
-
right: "12px",
|
|
9218
|
-
position: "absolute",
|
|
9219
|
-
":hover": {
|
|
9220
|
-
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
9221
|
-
},
|
|
9222
|
-
marginRight: "4px"
|
|
9223
|
-
}
|
|
9224
|
-
}
|
|
9225
9461
|
}
|
|
9226
9462
|
]
|
|
9227
9463
|
}
|
|
@@ -9239,7 +9475,7 @@ const APISection = {
|
|
|
9239
9475
|
widget: "SelectInputField"
|
|
9240
9476
|
},
|
|
9241
9477
|
config: {
|
|
9242
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9478
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9243
9479
|
main: {
|
|
9244
9480
|
label: "Method",
|
|
9245
9481
|
type: "text"
|
|
@@ -9253,23 +9489,13 @@ const APISection = {
|
|
|
9253
9489
|
widget: "InputField"
|
|
9254
9490
|
},
|
|
9255
9491
|
config: {
|
|
9256
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9492
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9257
9493
|
main: {
|
|
9258
|
-
label: "Path",
|
|
9259
|
-
type: "text",
|
|
9260
|
-
multiple: false,
|
|
9261
|
-
options: []
|
|
9262
|
-
}
|
|
9263
|
-
}
|
|
9264
|
-
},
|
|
9265
|
-
{
|
|
9266
|
-
type: "Control",
|
|
9267
|
-
scope: "#/properties/emptyBox",
|
|
9268
|
-
options: {
|
|
9269
|
-
widget: "EmptyBox"
|
|
9270
|
-
},
|
|
9271
|
-
config: {
|
|
9272
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9494
|
+
label: "Path",
|
|
9495
|
+
type: "text",
|
|
9496
|
+
multiple: false,
|
|
9497
|
+
options: []
|
|
9498
|
+
}
|
|
9273
9499
|
}
|
|
9274
9500
|
},
|
|
9275
9501
|
{
|
|
@@ -9279,106 +9505,132 @@ const APISection = {
|
|
|
9279
9505
|
widget: "EmptyBox"
|
|
9280
9506
|
},
|
|
9281
9507
|
config: {
|
|
9282
|
-
layout: { xs: 0, sm: 0, md: 4, lg:
|
|
9508
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
9283
9509
|
}
|
|
9284
9510
|
},
|
|
9285
9511
|
{
|
|
9286
9512
|
type: "Control",
|
|
9287
9513
|
scope: "#/properties/headers",
|
|
9288
|
-
layout: 11.5,
|
|
9289
9514
|
options: {
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
{
|
|
9321
|
-
type: "Control",
|
|
9322
|
-
scope: "#/properties/emptyBox",
|
|
9323
|
-
options: {
|
|
9324
|
-
widget: "EmptyBox"
|
|
9325
|
-
},
|
|
9326
|
-
config: {
|
|
9327
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9328
|
-
}
|
|
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"
|
|
9329
9545
|
}
|
|
9330
|
-
|
|
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
|
+
}
|
|
9331
9570
|
}
|
|
9332
|
-
|
|
9571
|
+
]
|
|
9333
9572
|
},
|
|
9334
9573
|
{
|
|
9335
9574
|
type: "Control",
|
|
9336
9575
|
scope: "#/properties/body",
|
|
9337
|
-
layout: 11.5,
|
|
9338
9576
|
options: {
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
{
|
|
9370
|
-
type: "Control",
|
|
9371
|
-
scope: "#/properties/emptyBox",
|
|
9372
|
-
options: {
|
|
9373
|
-
widget: "EmptyBox"
|
|
9374
|
-
},
|
|
9375
|
-
config: {
|
|
9376
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9377
|
-
}
|
|
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"
|
|
9378
9607
|
}
|
|
9379
|
-
|
|
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
|
+
}
|
|
9380
9632
|
}
|
|
9381
|
-
|
|
9633
|
+
]
|
|
9382
9634
|
},
|
|
9383
9635
|
getTextArea("apiBody", "Transformer", true, 12)
|
|
9384
9636
|
]
|
|
@@ -9389,116 +9641,134 @@ const refreshSectionUiSchema = {
|
|
|
9389
9641
|
{
|
|
9390
9642
|
type: "Control",
|
|
9391
9643
|
scope: "#/properties/refreshElements",
|
|
9392
|
-
layout: 11.5,
|
|
9393
9644
|
options: {
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
{
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
options: {
|
|
9425
|
-
widget: "EmptyBox"
|
|
9426
|
-
},
|
|
9427
|
-
config: {
|
|
9428
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
9429
|
-
main: {}
|
|
9430
|
-
}
|
|
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"
|
|
9431
9675
|
}
|
|
9432
|
-
|
|
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
|
+
}
|
|
9433
9688
|
}
|
|
9434
|
-
|
|
9689
|
+
]
|
|
9435
9690
|
}
|
|
9436
9691
|
]
|
|
9437
9692
|
};
|
|
9438
|
-
var emptyBox = {
|
|
9439
|
-
type: "Control",
|
|
9440
|
-
scope: "#/properties/emptyBox",
|
|
9441
|
-
options: {
|
|
9442
|
-
widget: "EmptyBox"
|
|
9443
|
-
},
|
|
9444
|
-
config: {
|
|
9445
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
9446
|
-
main: {},
|
|
9447
|
-
style: {}
|
|
9448
|
-
}
|
|
9449
|
-
};
|
|
9450
9693
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9451
9694
|
return {
|
|
9452
9695
|
setPage: async function() {
|
|
9453
9696
|
const formdata = await this.getFormData();
|
|
9454
9697
|
store2.setFormdata(formdata);
|
|
9455
9698
|
const schema2 = await this.getSchema();
|
|
9699
|
+
console.log("SettingSchema>>", schema2);
|
|
9456
9700
|
store2.setSchema(schema2);
|
|
9457
9701
|
this.refreshPage(formdata.Handler, store2);
|
|
9458
9702
|
},
|
|
9459
9703
|
refreshPage: (handlerType, store22) => {
|
|
9704
|
+
var _a, _b, _c;
|
|
9460
9705
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9461
9706
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9462
9707
|
if (handlerType) {
|
|
9463
9708
|
if (handlerType === "custom") {
|
|
9464
|
-
uiSchema.elements[
|
|
9465
|
-
|
|
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] = {
|
|
9466
9715
|
type: "Control",
|
|
9467
9716
|
scope: "#/properties/emptyBox",
|
|
9468
9717
|
options: {
|
|
9469
9718
|
widget: "EmptyBox"
|
|
9470
9719
|
},
|
|
9471
9720
|
config: {
|
|
9472
|
-
layout: { xs:
|
|
9721
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9473
9722
|
main: {},
|
|
9474
9723
|
style: {}
|
|
9475
9724
|
}
|
|
9476
9725
|
};
|
|
9477
|
-
uiSchema.elements[
|
|
9726
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9727
|
+
"eventCode",
|
|
9728
|
+
"Write Custom Code",
|
|
9729
|
+
false
|
|
9730
|
+
);
|
|
9478
9731
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9479
9732
|
} else if (handlerType === "api") {
|
|
9480
|
-
uiSchema.elements[
|
|
9481
|
-
|
|
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;
|
|
9482
9740
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9483
9741
|
} else if (handlerType === "inBuiltFunction") {
|
|
9484
|
-
uiSchema.elements[
|
|
9485
|
-
|
|
9742
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9743
|
+
"inBuiltFunctionType",
|
|
9744
|
+
"Function Name"
|
|
9745
|
+
);
|
|
9746
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9486
9747
|
type: "Control",
|
|
9487
9748
|
scope: "#/properties/emptyBox",
|
|
9488
9749
|
options: {
|
|
9489
9750
|
widget: "EmptyBox"
|
|
9490
9751
|
},
|
|
9491
9752
|
config: {
|
|
9492
|
-
layout: { xs: 6, sm: 6, md: 0, lg:
|
|
9753
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9493
9754
|
main: {},
|
|
9494
9755
|
style: {}
|
|
9495
9756
|
}
|
|
9496
9757
|
};
|
|
9497
|
-
uiSchema.elements[
|
|
9758
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9759
|
+
"funcParametersCode",
|
|
9760
|
+
"Write Custom Code for Functions Parameter",
|
|
9761
|
+
true
|
|
9762
|
+
);
|
|
9498
9763
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9499
9764
|
} else if (handlerType === "refresh") {
|
|
9500
|
-
uiSchema.elements[
|
|
9501
|
-
|
|
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;
|
|
9502
9772
|
schema2.properties.refreshElements.required = ["value"];
|
|
9503
9773
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
9504
9774
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
@@ -9511,9 +9781,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9511
9781
|
];
|
|
9512
9782
|
}
|
|
9513
9783
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9514
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9784
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9785
|
+
uiSchema
|
|
9786
|
+
);
|
|
9515
9787
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9516
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;
|
|
9517
9812
|
store22.setSchema(schema2);
|
|
9518
9813
|
store22.setUiSchema(uiSchema);
|
|
9519
9814
|
},
|
|
@@ -9522,10 +9817,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9522
9817
|
return EventUiSchema;
|
|
9523
9818
|
},
|
|
9524
9819
|
getSchema: () => {
|
|
9820
|
+
var _a, _b, _c;
|
|
9525
9821
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9526
9822
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9527
9823
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9528
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);
|
|
9529
9848
|
return schema2;
|
|
9530
9849
|
},
|
|
9531
9850
|
okHandler: () => okHandler(store2),
|
|
@@ -9533,7 +9852,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9533
9852
|
onChange: function() {
|
|
9534
9853
|
var _a, _b, _c;
|
|
9535
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) {
|
|
9536
|
-
this.refreshPage(
|
|
9855
|
+
this.refreshPage(
|
|
9856
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9857
|
+
store2
|
|
9858
|
+
);
|
|
9537
9859
|
}
|
|
9538
9860
|
},
|
|
9539
9861
|
addEvent: function() {
|
|
@@ -9559,7 +9881,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9559
9881
|
this.setPage();
|
|
9560
9882
|
},
|
|
9561
9883
|
deleteEvent: async function() {
|
|
9562
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9884
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9885
|
+
false
|
|
9886
|
+
);
|
|
9563
9887
|
store2.updateDialog("popUpEvent");
|
|
9564
9888
|
},
|
|
9565
9889
|
backHandler: function() {
|
|
@@ -9571,10 +9895,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9571
9895
|
store2.updateDialog("popUpEvent");
|
|
9572
9896
|
},
|
|
9573
9897
|
copyPasteElement: function() {
|
|
9574
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9898
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9899
|
+
store2,
|
|
9900
|
+
this.setPage.bind(this)
|
|
9901
|
+
);
|
|
9575
9902
|
},
|
|
9576
9903
|
RemoveItemButton: function() {
|
|
9577
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9904
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9905
|
+
store2
|
|
9906
|
+
);
|
|
9578
9907
|
}
|
|
9579
9908
|
};
|
|
9580
9909
|
};
|
|
@@ -9745,16 +10074,17 @@ function executeCustomHandler(params) {
|
|
|
9745
10074
|
}
|
|
9746
10075
|
}
|
|
9747
10076
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10077
|
+
var _a, _b, _c;
|
|
9748
10078
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9749
10079
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9750
10080
|
store2.setSchema((pre) => {
|
|
9751
|
-
var
|
|
10081
|
+
var _a2;
|
|
9752
10082
|
return {
|
|
9753
10083
|
...pre,
|
|
9754
10084
|
properties: {
|
|
9755
10085
|
...pre.properties,
|
|
9756
10086
|
[componentName]: {
|
|
9757
|
-
...(
|
|
10087
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9758
10088
|
oneOf: handlerResponse.data
|
|
9759
10089
|
}
|
|
9760
10090
|
}
|
|
@@ -9764,13 +10094,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9764
10094
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9765
10095
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9766
10096
|
store2.setSchema((pre) => {
|
|
9767
|
-
var
|
|
10097
|
+
var _a2;
|
|
9768
10098
|
return {
|
|
9769
10099
|
...pre,
|
|
9770
10100
|
properties: {
|
|
9771
10101
|
...pre.properties,
|
|
9772
10102
|
[componentName]: {
|
|
9773
|
-
...(
|
|
10103
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9774
10104
|
type: "array",
|
|
9775
10105
|
items: {
|
|
9776
10106
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -9790,6 +10120,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9790
10120
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9791
10121
|
});
|
|
9792
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
|
+
}
|
|
9793
10131
|
} else {
|
|
9794
10132
|
if (handlerResponse) {
|
|
9795
10133
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -9961,6 +10299,10 @@ var service = (funcParams) => {
|
|
|
9961
10299
|
}));
|
|
9962
10300
|
}
|
|
9963
10301
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10302
|
+
if (config2 == null ? void 0 : config2.programIdRequired) {
|
|
10303
|
+
console.log(funcParams.store);
|
|
10304
|
+
funcParams.store.navigate(funcParams.store.location.pathname + `/:programId}`);
|
|
10305
|
+
}
|
|
9964
10306
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
9965
10307
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
9966
10308
|
detail: { pageName: config2.label }
|
|
@@ -10095,7 +10437,7 @@ var service = (funcParams) => {
|
|
|
10095
10437
|
service: funcParams.service,
|
|
10096
10438
|
serviceHolder: this,
|
|
10097
10439
|
eventGroups,
|
|
10098
|
-
formDataHolder
|
|
10440
|
+
formDataHolder: {}
|
|
10099
10441
|
});
|
|
10100
10442
|
funcParams.store.setSchema(
|
|
10101
10443
|
(pre) => {
|
|
@@ -10110,11 +10452,11 @@ var service = (funcParams) => {
|
|
|
10110
10452
|
funcParams.store.setUiSchema(uiSchema);
|
|
10111
10453
|
},
|
|
10112
10454
|
onCellRenderer: (cellParams) => {
|
|
10113
|
-
var _a, _b, _c;
|
|
10455
|
+
var _a, _b, _c, _d;
|
|
10114
10456
|
if (eventGroups.onCellRenderer) {
|
|
10115
10457
|
let finalResponse = {};
|
|
10116
10458
|
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]);
|
|
10117
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
10459
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10118
10460
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10119
10461
|
finalResponse = executeEvents({
|
|
10120
10462
|
...executeEventsParameters,
|
|
@@ -10718,6 +11060,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10718
11060
|
if (config2.style) {
|
|
10719
11061
|
inputField.config.style = JSON.parse(config2.style);
|
|
10720
11062
|
}
|
|
11063
|
+
if (config2.multiline) {
|
|
11064
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11065
|
+
}
|
|
10721
11066
|
if (config2.InputFormatingAndMasking) {
|
|
10722
11067
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10723
11068
|
}
|
|
@@ -11554,6 +11899,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11554
11899
|
}
|
|
11555
11900
|
return Radio;
|
|
11556
11901
|
};
|
|
11902
|
+
var emptyBox = {
|
|
11903
|
+
type: "Control",
|
|
11904
|
+
scope: "#/properties/emptyBox",
|
|
11905
|
+
options: {
|
|
11906
|
+
widget: "EmptyBox"
|
|
11907
|
+
},
|
|
11908
|
+
config: {
|
|
11909
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11910
|
+
main: {},
|
|
11911
|
+
style: {}
|
|
11912
|
+
}
|
|
11913
|
+
};
|
|
11557
11914
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11558
11915
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11559
11916
|
if (config2.layout) {
|
|
@@ -12231,19 +12588,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12231
12588
|
});
|
|
12232
12589
|
} else if (config2.type == "Table") {
|
|
12233
12590
|
const sizeMap = {};
|
|
12234
|
-
const filterMap = {};
|
|
12235
12591
|
if (config2.sizeHolder) {
|
|
12236
12592
|
config2.sizeHolder.map((e, i) => {
|
|
12237
12593
|
sizeMap[e.keyName] = e.value;
|
|
12238
12594
|
});
|
|
12239
12595
|
}
|
|
12240
|
-
if (config2.enableColumnFilter) {
|
|
12241
|
-
config2.enableColumnFilter.map((e) => {
|
|
12242
|
-
filterMap[e.keyName] = true;
|
|
12243
|
-
});
|
|
12244
|
-
}
|
|
12245
12596
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12246
|
-
var _a, _b;
|
|
12247
12597
|
if (cellElem.type) {
|
|
12248
12598
|
return {
|
|
12249
12599
|
accessorKey: cellElem.name,
|
|
@@ -12252,8 +12602,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12252
12602
|
type: cellElem.columnFormat,
|
|
12253
12603
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12254
12604
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12255
|
-
|
|
12256
|
-
|
|
12605
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12606
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12607
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12257
12608
|
};
|
|
12258
12609
|
} else {
|
|
12259
12610
|
return {
|
|
@@ -12261,8 +12612,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12261
12612
|
type: cellElem.columnFormat,
|
|
12262
12613
|
header: cellElem.label || cellElem.name,
|
|
12263
12614
|
size: sizeMap[cellElem.name] || 180,
|
|
12264
|
-
|
|
12265
|
-
|
|
12615
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12616
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12617
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12266
12618
|
};
|
|
12267
12619
|
}
|
|
12268
12620
|
});
|