impaktapps-ui-builder 0.0.101-alpha.10 → 0.0.101-alpha.101
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 +1141 -807
- 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 +119 -51
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +28 -19
- 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 +5 -4
|
@@ -184,7 +184,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
184
184
|
size: "small",
|
|
185
185
|
icon: "TablePaste",
|
|
186
186
|
iconLabel: "Paste",
|
|
187
|
-
styleDefault: true
|
|
187
|
+
styleDefault: true,
|
|
188
|
+
title: ""
|
|
188
189
|
},
|
|
189
190
|
style: {
|
|
190
191
|
mt: "6px",
|
|
@@ -365,19 +366,19 @@ const PageMasterUiSchema = (theme) => {
|
|
|
365
366
|
elements: [
|
|
366
367
|
{
|
|
367
368
|
accessorKey: "eventType",
|
|
368
|
-
header: "Event Type",
|
|
369
|
+
header: "Event's Type",
|
|
369
370
|
size: 300,
|
|
370
371
|
type: "string"
|
|
371
372
|
},
|
|
372
373
|
{
|
|
373
374
|
accessorKey: "Handler",
|
|
374
375
|
header: "Handler",
|
|
375
|
-
size:
|
|
376
|
+
size: 200,
|
|
376
377
|
type: "string"
|
|
377
378
|
},
|
|
378
379
|
{
|
|
379
380
|
accessorKey: "Edit_Approve_Records",
|
|
380
|
-
header: "Edit
|
|
381
|
+
header: "Edit",
|
|
381
382
|
type: "action",
|
|
382
383
|
size: 150,
|
|
383
384
|
widget: {
|
|
@@ -405,6 +406,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
405
406
|
{
|
|
406
407
|
accessorKey: "Reject_Records",
|
|
407
408
|
header: "Delete",
|
|
409
|
+
type: "action",
|
|
410
|
+
size: 150,
|
|
408
411
|
widget: {
|
|
409
412
|
type: "Control",
|
|
410
413
|
scope: "#/properties/RejectButton",
|
|
@@ -429,7 +432,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
429
432
|
{
|
|
430
433
|
header: "Copy",
|
|
431
434
|
field: "Copy_Event",
|
|
432
|
-
|
|
435
|
+
type: "action",
|
|
436
|
+
size: 150,
|
|
433
437
|
widget: {
|
|
434
438
|
type: "Control",
|
|
435
439
|
scope: "#/properties/Copy_Event",
|
|
@@ -521,15 +525,17 @@ const PageMasterUiSchema = (theme) => {
|
|
|
521
525
|
config: {
|
|
522
526
|
layout: 11,
|
|
523
527
|
main: {
|
|
524
|
-
heading: "Are you sure you want to delete ?"
|
|
528
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
525
529
|
},
|
|
526
530
|
style: {
|
|
527
|
-
marginTop: "-20px",
|
|
528
531
|
fontSize: "20px",
|
|
529
532
|
"&.MuiTypography-root": {
|
|
530
|
-
padding: "
|
|
533
|
+
padding: "0px 20px",
|
|
531
534
|
textAlign: "center",
|
|
532
|
-
lineHeight: "1"
|
|
535
|
+
lineHeight: "1.2",
|
|
536
|
+
fontWeight: "normal",
|
|
537
|
+
fontSize: "18px",
|
|
538
|
+
marginBottom: theme.spacing(5)
|
|
533
539
|
}
|
|
534
540
|
}
|
|
535
541
|
}
|
|
@@ -551,15 +557,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
551
557
|
layout: 6,
|
|
552
558
|
main: {
|
|
553
559
|
name: "No",
|
|
554
|
-
startIcon: "ApproveIcon",
|
|
555
560
|
variant: "contained",
|
|
556
|
-
color: "info",
|
|
557
561
|
type: "text",
|
|
558
562
|
onClick: "deletePopUpComponent",
|
|
559
563
|
size: "large"
|
|
560
564
|
},
|
|
561
565
|
style: {
|
|
562
566
|
position: "absolute",
|
|
567
|
+
padding: "8px 0px",
|
|
568
|
+
fontSize: "16px",
|
|
563
569
|
bottom: 0,
|
|
564
570
|
left: 0,
|
|
565
571
|
width: "50%",
|
|
@@ -587,7 +593,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
587
593
|
layout: 6,
|
|
588
594
|
main: {
|
|
589
595
|
name: "Yes",
|
|
590
|
-
startIcon: "ApproveIcon",
|
|
591
596
|
variant: "contained",
|
|
592
597
|
color: "error",
|
|
593
598
|
type: "text",
|
|
@@ -596,6 +601,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
596
601
|
},
|
|
597
602
|
style: {
|
|
598
603
|
position: "absolute",
|
|
604
|
+
padding: "8px 0px",
|
|
605
|
+
fontSize: "16px",
|
|
599
606
|
bottom: 0,
|
|
600
607
|
right: 0,
|
|
601
608
|
width: "50%",
|
|
@@ -644,15 +651,17 @@ const PageMasterUiSchema = (theme) => {
|
|
|
644
651
|
config: {
|
|
645
652
|
layout: 11,
|
|
646
653
|
main: {
|
|
647
|
-
heading: "Are you sure you want to delete ?"
|
|
654
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
648
655
|
},
|
|
649
656
|
style: {
|
|
650
|
-
marginTop: "-20px",
|
|
651
657
|
fontSize: "20px",
|
|
652
658
|
"&.MuiTypography-root": {
|
|
653
|
-
padding: "
|
|
659
|
+
padding: "0px 20px",
|
|
654
660
|
textAlign: "center",
|
|
655
|
-
lineHeight: "1"
|
|
661
|
+
lineHeight: "1.2",
|
|
662
|
+
fontWeight: "normal",
|
|
663
|
+
fontSize: "18px",
|
|
664
|
+
marginBottom: theme.spacing(5)
|
|
656
665
|
}
|
|
657
666
|
}
|
|
658
667
|
}
|
|
@@ -674,15 +683,15 @@ const PageMasterUiSchema = (theme) => {
|
|
|
674
683
|
layout: 6,
|
|
675
684
|
main: {
|
|
676
685
|
name: "No",
|
|
677
|
-
startIcon: "ApproveIcon",
|
|
678
686
|
variant: "contained",
|
|
679
|
-
color: "info",
|
|
680
687
|
type: "text",
|
|
681
688
|
onClick: "deletePopUpEvent",
|
|
682
689
|
size: "large"
|
|
683
690
|
},
|
|
684
691
|
style: {
|
|
685
692
|
position: "absolute",
|
|
693
|
+
padding: "8px 0px",
|
|
694
|
+
fontSize: "16px",
|
|
686
695
|
bottom: 0,
|
|
687
696
|
left: 0,
|
|
688
697
|
width: "50%",
|
|
@@ -710,7 +719,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
710
719
|
layout: 6,
|
|
711
720
|
main: {
|
|
712
721
|
name: "Yes",
|
|
713
|
-
startIcon: "ApproveIcon",
|
|
714
722
|
variant: "contained",
|
|
715
723
|
color: "error",
|
|
716
724
|
type: "text",
|
|
@@ -719,6 +727,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
719
727
|
},
|
|
720
728
|
style: {
|
|
721
729
|
position: "absolute",
|
|
730
|
+
padding: "8px 0px",
|
|
731
|
+
fontSize: "16px",
|
|
722
732
|
bottom: 0,
|
|
723
733
|
right: 0,
|
|
724
734
|
width: "50%",
|
|
@@ -6240,44 +6250,44 @@ const ComponentSchema = {
|
|
|
6240
6250
|
properties: {
|
|
6241
6251
|
type: {
|
|
6242
6252
|
oneOf: [
|
|
6243
|
-
{ title: "
|
|
6253
|
+
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
6244
6254
|
{ title: "Array", const: "Array" },
|
|
6245
6255
|
{ title: "Button", const: "Button" },
|
|
6246
|
-
{ title: "Card", const: "card" },
|
|
6247
|
-
{ title: "
|
|
6256
|
+
{ title: "Data Card", const: "card" },
|
|
6257
|
+
{ title: "Check Box", const: "CheckBox" },
|
|
6248
6258
|
{ title: "Container", const: "WrapperSection" },
|
|
6249
|
-
{ title: "
|
|
6259
|
+
{ title: "Data Grid", const: "DataGrid" },
|
|
6250
6260
|
{ title: "Date", const: "Date" },
|
|
6251
|
-
{ title: "
|
|
6252
|
-
{ title: "Download
|
|
6261
|
+
{ title: "Time Stamp", const: "DateTime" },
|
|
6262
|
+
{ title: "Download", const: "DownloadFile" },
|
|
6253
6263
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6254
|
-
{ title: "File", const: "FileInput" },
|
|
6264
|
+
{ title: "File Handler", const: "FileInput" },
|
|
6255
6265
|
{ title: "Graph", const: "Graph" },
|
|
6256
6266
|
{ title: "Input Slider", const: "InputSlider" },
|
|
6257
6267
|
{ title: "Label", const: "Box" },
|
|
6258
|
-
{ title: "
|
|
6259
|
-
{ title: "
|
|
6260
|
-
{ title: "
|
|
6261
|
-
{ title: "
|
|
6262
|
-
{ title: "
|
|
6263
|
-
{ title: "
|
|
6264
|
-
{ title: "
|
|
6268
|
+
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6269
|
+
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6270
|
+
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6271
|
+
{ title: "Pop Up", const: "PopUp" },
|
|
6272
|
+
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6273
|
+
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6274
|
+
{ title: "Dropdown", const: "Select" },
|
|
6265
6275
|
{ title: "Slider", const: "Slider" },
|
|
6266
|
-
{ title: "
|
|
6276
|
+
{ title: "Speedometer", const: "SpeedoMeter" },
|
|
6267
6277
|
{ title: "Stepper Container", const: "Stepper" },
|
|
6268
6278
|
{ title: "Radio", const: "Radio" },
|
|
6269
6279
|
{ title: "Rank", const: "Rank" },
|
|
6270
6280
|
{ title: "Rank Card", const: "RankCard" },
|
|
6271
|
-
{ title: "Runner Boy
|
|
6281
|
+
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6272
6282
|
{ title: "Table", const: "Table" },
|
|
6273
6283
|
{ title: "Tabs", const: "TabSection" },
|
|
6274
6284
|
{ title: "Text", const: "Text" },
|
|
6275
6285
|
{ title: "Text Area", const: "TextArea" },
|
|
6276
6286
|
{ title: "Timer", const: "Timer" },
|
|
6277
|
-
{ title: "Upload
|
|
6278
|
-
{ title: "
|
|
6279
|
-
{ title: "
|
|
6280
|
-
{ title: "Thought of the
|
|
6287
|
+
{ title: "Upload", const: "UploadFile" },
|
|
6288
|
+
{ title: "Tree ", const: "TreeMap" },
|
|
6289
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6290
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6281
6291
|
{ title: "Pdf Viewer", const: "PdfViewer" }
|
|
6282
6292
|
]
|
|
6283
6293
|
},
|
|
@@ -6432,23 +6442,20 @@ const ComponentSchema = {
|
|
|
6432
6442
|
}
|
|
6433
6443
|
},
|
|
6434
6444
|
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
|
-
}
|
|
6445
|
+
oneOf: [
|
|
6446
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6447
|
+
{ const: "contains", title: "Contain" },
|
|
6448
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6449
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6450
|
+
{ const: "equals", title: "Equals" },
|
|
6451
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6452
|
+
{ const: "between", title: "Between" },
|
|
6453
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6454
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6455
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6456
|
+
{ const: "lessThan", title: "Less than" },
|
|
6457
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6458
|
+
]
|
|
6452
6459
|
},
|
|
6453
6460
|
legendLabels: {
|
|
6454
6461
|
type: "array",
|
|
@@ -6564,6 +6571,9 @@ const ComponentSchema = {
|
|
|
6564
6571
|
{ title: "Info", const: "info" }
|
|
6565
6572
|
]
|
|
6566
6573
|
},
|
|
6574
|
+
pageName: {
|
|
6575
|
+
path: []
|
|
6576
|
+
},
|
|
6567
6577
|
name: {
|
|
6568
6578
|
type: "string"
|
|
6569
6579
|
},
|
|
@@ -6606,7 +6616,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6606
6616
|
type: "WrapperLayout",
|
|
6607
6617
|
config: {
|
|
6608
6618
|
main: {
|
|
6609
|
-
label: "",
|
|
6619
|
+
label: " ",
|
|
6610
6620
|
gap: "8px"
|
|
6611
6621
|
}
|
|
6612
6622
|
},
|
|
@@ -6644,8 +6654,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6644
6654
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
6645
6655
|
main: {
|
|
6646
6656
|
label: "Component ID",
|
|
6647
|
-
options: [],
|
|
6648
|
-
color: "secondary",
|
|
6649
6657
|
required: true
|
|
6650
6658
|
}
|
|
6651
6659
|
}
|
|
@@ -6746,48 +6754,58 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6746
6754
|
]
|
|
6747
6755
|
},
|
|
6748
6756
|
{
|
|
6749
|
-
type: "
|
|
6750
|
-
scope: "#/properties/btn",
|
|
6751
|
-
options: {
|
|
6752
|
-
widget: "Button"
|
|
6753
|
-
},
|
|
6757
|
+
type: "WrapperLayout",
|
|
6754
6758
|
config: {
|
|
6755
|
-
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6756
6759
|
main: {
|
|
6757
|
-
|
|
6758
|
-
variant: "contained",
|
|
6759
|
-
type: "text",
|
|
6760
|
-
onClick: "okHandler",
|
|
6761
|
-
size: "medium"
|
|
6760
|
+
gap: "8px"
|
|
6762
6761
|
}
|
|
6763
|
-
}
|
|
6764
|
-
},
|
|
6765
|
-
{
|
|
6766
|
-
type: "Control",
|
|
6767
|
-
scope: "#/properties/btnSubmit",
|
|
6768
|
-
options: {
|
|
6769
|
-
widget: "Button"
|
|
6770
6762
|
},
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6763
|
+
elements: [
|
|
6764
|
+
{
|
|
6765
|
+
type: "Control",
|
|
6766
|
+
scope: "#/properties/btn",
|
|
6767
|
+
options: {
|
|
6768
|
+
widget: "Button"
|
|
6769
|
+
},
|
|
6770
|
+
config: {
|
|
6771
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6772
|
+
main: {
|
|
6773
|
+
name: "Ok",
|
|
6774
|
+
variant: "contained",
|
|
6775
|
+
type: "text",
|
|
6776
|
+
onClick: "okHandler",
|
|
6777
|
+
size: "medium"
|
|
6778
|
+
}
|
|
6779
|
+
}
|
|
6780
|
+
},
|
|
6781
|
+
{
|
|
6782
|
+
type: "Control",
|
|
6783
|
+
scope: "#/properties/btnSubmit",
|
|
6784
|
+
options: {
|
|
6785
|
+
widget: "Button"
|
|
6786
|
+
},
|
|
6787
|
+
config: {
|
|
6788
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6789
|
+
main: {
|
|
6790
|
+
name: "Save & Exit",
|
|
6791
|
+
variant: "contained",
|
|
6792
|
+
type: "text",
|
|
6793
|
+
onClick: "saveHandler",
|
|
6794
|
+
size: "medium"
|
|
6795
|
+
}
|
|
6796
|
+
}
|
|
6797
|
+
},
|
|
6798
|
+
{
|
|
6799
|
+
type: "Control",
|
|
6800
|
+
scope: "#/properties/EmptyBox",
|
|
6801
|
+
config: {
|
|
6802
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6803
|
+
},
|
|
6804
|
+
options: {
|
|
6805
|
+
widget: "EmptyBox"
|
|
6806
|
+
}
|
|
6779
6807
|
}
|
|
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
|
-
}
|
|
6808
|
+
]
|
|
6791
6809
|
},
|
|
6792
6810
|
{
|
|
6793
6811
|
type: "Control",
|
|
@@ -6817,15 +6835,16 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6817
6835
|
config: {
|
|
6818
6836
|
layout: 11,
|
|
6819
6837
|
main: {
|
|
6820
|
-
heading: "Are you sure you want to delete ?"
|
|
6838
|
+
heading: "Are you sure you want to delete this Component ?"
|
|
6821
6839
|
},
|
|
6822
6840
|
style: {
|
|
6823
|
-
marginTop: "-20px",
|
|
6824
|
-
fontSize: "20px",
|
|
6825
6841
|
"&.MuiTypography-root": {
|
|
6826
|
-
padding: "
|
|
6842
|
+
padding: "0px 20px",
|
|
6827
6843
|
textAlign: "center",
|
|
6828
|
-
lineHeight: "1"
|
|
6844
|
+
lineHeight: "1.2",
|
|
6845
|
+
fontWeight: "normal",
|
|
6846
|
+
fontSize: "18px",
|
|
6847
|
+
marginBottom: theme.spacing(5)
|
|
6829
6848
|
}
|
|
6830
6849
|
}
|
|
6831
6850
|
}
|
|
@@ -6854,6 +6873,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6854
6873
|
},
|
|
6855
6874
|
style: {
|
|
6856
6875
|
position: "absolute",
|
|
6876
|
+
padding: "8px 0px",
|
|
6877
|
+
fontSize: "16px",
|
|
6857
6878
|
bottom: 0,
|
|
6858
6879
|
left: 0,
|
|
6859
6880
|
width: "50%",
|
|
@@ -6889,6 +6910,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6889
6910
|
},
|
|
6890
6911
|
style: {
|
|
6891
6912
|
position: "absolute",
|
|
6913
|
+
padding: "8px 0px",
|
|
6914
|
+
fontSize: "16px",
|
|
6892
6915
|
bottom: 0,
|
|
6893
6916
|
right: 0,
|
|
6894
6917
|
width: "50%",
|
|
@@ -6937,15 +6960,17 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6937
6960
|
config: {
|
|
6938
6961
|
layout: 11,
|
|
6939
6962
|
main: {
|
|
6940
|
-
heading: "Are you sure you want to delete ?"
|
|
6963
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
6941
6964
|
},
|
|
6942
6965
|
style: {
|
|
6943
|
-
marginTop: "-20px",
|
|
6944
6966
|
fontSize: "20px",
|
|
6945
6967
|
"&.MuiTypography-root": {
|
|
6946
|
-
padding: "
|
|
6968
|
+
padding: "0px 20px",
|
|
6947
6969
|
textAlign: "center",
|
|
6948
|
-
lineHeight: "1"
|
|
6970
|
+
lineHeight: "1.2",
|
|
6971
|
+
fontWeight: "normal",
|
|
6972
|
+
fontSize: "18px",
|
|
6973
|
+
marginBottom: theme.spacing(5)
|
|
6949
6974
|
}
|
|
6950
6975
|
}
|
|
6951
6976
|
}
|
|
@@ -6974,6 +6999,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6974
6999
|
},
|
|
6975
7000
|
style: {
|
|
6976
7001
|
position: "absolute",
|
|
7002
|
+
padding: "8px 0px",
|
|
7003
|
+
fontSize: "16px",
|
|
6977
7004
|
bottom: 0,
|
|
6978
7005
|
left: 0,
|
|
6979
7006
|
width: "50%",
|
|
@@ -7009,6 +7036,8 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7009
7036
|
},
|
|
7010
7037
|
style: {
|
|
7011
7038
|
position: "absolute",
|
|
7039
|
+
padding: "8px 0px",
|
|
7040
|
+
fontSize: "16px",
|
|
7012
7041
|
bottom: 0,
|
|
7013
7042
|
right: 0,
|
|
7014
7043
|
width: "50%",
|
|
@@ -7029,6 +7058,27 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7029
7058
|
}
|
|
7030
7059
|
]
|
|
7031
7060
|
},
|
|
7061
|
+
{
|
|
7062
|
+
type: "Control",
|
|
7063
|
+
scope: "#/properties/pageName",
|
|
7064
|
+
options: {
|
|
7065
|
+
widget: "Breadcrumb"
|
|
7066
|
+
},
|
|
7067
|
+
config: {
|
|
7068
|
+
layout: 12,
|
|
7069
|
+
main: {},
|
|
7070
|
+
style: {
|
|
7071
|
+
paddingLeft: theme.spacing(3),
|
|
7072
|
+
color: theme.palette.grey[600],
|
|
7073
|
+
fontSize: "10px",
|
|
7074
|
+
position: "fixed",
|
|
7075
|
+
bottom: "24px",
|
|
7076
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7077
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
7078
|
+
backgroundColor: theme.palette.background.default
|
|
7079
|
+
}
|
|
7080
|
+
}
|
|
7081
|
+
},
|
|
7032
7082
|
{
|
|
7033
7083
|
type: "Control",
|
|
7034
7084
|
scope: "#/properties/notify",
|
|
@@ -7086,7 +7136,13 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7086
7136
|
return uiSchema;
|
|
7087
7137
|
};
|
|
7088
7138
|
const CoreSection = {
|
|
7089
|
-
type: "
|
|
7139
|
+
type: "WrapperLayout",
|
|
7140
|
+
config: {
|
|
7141
|
+
main: {
|
|
7142
|
+
label: " ",
|
|
7143
|
+
gap: "8px"
|
|
7144
|
+
}
|
|
7145
|
+
},
|
|
7090
7146
|
elements: [
|
|
7091
7147
|
{
|
|
7092
7148
|
type: "Control",
|
|
@@ -7095,7 +7151,7 @@ const CoreSection = {
|
|
|
7095
7151
|
widget: "SelectInputField"
|
|
7096
7152
|
},
|
|
7097
7153
|
config: {
|
|
7098
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7154
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7099
7155
|
main: {
|
|
7100
7156
|
label: "Type",
|
|
7101
7157
|
type: "text"
|
|
@@ -7104,40 +7160,39 @@ const CoreSection = {
|
|
|
7104
7160
|
},
|
|
7105
7161
|
{
|
|
7106
7162
|
type: "Control",
|
|
7107
|
-
scope: "#/properties/
|
|
7108
|
-
options: {
|
|
7109
|
-
widget: "InputField"
|
|
7110
|
-
},
|
|
7163
|
+
scope: "#/properties/proc",
|
|
7111
7164
|
config: {
|
|
7112
|
-
layout: { xs: 6, sm:
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7165
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
7166
|
+
},
|
|
7167
|
+
options: {
|
|
7168
|
+
widget: "EmptyBox"
|
|
7116
7169
|
}
|
|
7117
7170
|
},
|
|
7118
7171
|
{
|
|
7119
7172
|
type: "Control",
|
|
7120
|
-
scope: "#/properties/
|
|
7173
|
+
scope: "#/properties/name",
|
|
7121
7174
|
options: {
|
|
7122
7175
|
widget: "InputField"
|
|
7123
7176
|
},
|
|
7124
7177
|
config: {
|
|
7125
|
-
layout: { xs:
|
|
7178
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7126
7179
|
main: {
|
|
7127
|
-
label: "
|
|
7180
|
+
label: "Component ID",
|
|
7181
|
+
required: true
|
|
7128
7182
|
}
|
|
7129
7183
|
}
|
|
7130
7184
|
},
|
|
7131
7185
|
{
|
|
7132
7186
|
type: "Control",
|
|
7133
|
-
scope: "#/properties/
|
|
7187
|
+
scope: "#/properties/label",
|
|
7134
7188
|
options: {
|
|
7135
|
-
widget: "
|
|
7189
|
+
widget: "InputField"
|
|
7136
7190
|
},
|
|
7137
7191
|
config: {
|
|
7138
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7192
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7139
7193
|
main: {
|
|
7140
|
-
label: "
|
|
7194
|
+
label: "Label",
|
|
7195
|
+
required: true
|
|
7141
7196
|
}
|
|
7142
7197
|
}
|
|
7143
7198
|
},
|
|
@@ -7145,17 +7200,7 @@ const CoreSection = {
|
|
|
7145
7200
|
type: "Control",
|
|
7146
7201
|
scope: "#/properties/proc",
|
|
7147
7202
|
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 }
|
|
7203
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7159
7204
|
},
|
|
7160
7205
|
options: {
|
|
7161
7206
|
widget: "EmptyBox"
|
|
@@ -7164,54 +7209,67 @@ const CoreSection = {
|
|
|
7164
7209
|
{
|
|
7165
7210
|
type: "Control",
|
|
7166
7211
|
scope: "#/properties/layout",
|
|
7167
|
-
layout: 12,
|
|
7168
7212
|
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
|
-
}
|
|
7213
|
+
widget: "Array"
|
|
7214
|
+
},
|
|
7215
|
+
config: {
|
|
7216
|
+
layout: 12,
|
|
7217
|
+
main: {
|
|
7218
|
+
label: "Layout",
|
|
7219
|
+
childElementLabel: "Layout"
|
|
7220
|
+
},
|
|
7221
|
+
style: {
|
|
7222
|
+
marginLeft: "-24px",
|
|
7223
|
+
marginBottom: "24px !important",
|
|
7224
|
+
labelStyle: {
|
|
7225
|
+
marginLeft: "24px"
|
|
7226
|
+
},
|
|
7227
|
+
detailsStyle: {
|
|
7228
|
+
marginLeft: "24px"
|
|
7229
|
+
}
|
|
7230
|
+
}
|
|
7231
|
+
},
|
|
7232
|
+
elements: [
|
|
7233
|
+
{
|
|
7234
|
+
type: "Control",
|
|
7235
|
+
scope: "#/properties/key",
|
|
7236
|
+
options: {
|
|
7237
|
+
widget: "SelectInputField"
|
|
7238
|
+
},
|
|
7239
|
+
config: {
|
|
7240
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7241
|
+
main: {
|
|
7242
|
+
label: "Screen Size"
|
|
7211
7243
|
}
|
|
7212
|
-
|
|
7244
|
+
}
|
|
7245
|
+
},
|
|
7246
|
+
{
|
|
7247
|
+
type: "Control",
|
|
7248
|
+
scope: "#/properties/value",
|
|
7249
|
+
options: {
|
|
7250
|
+
widget: "InputField"
|
|
7251
|
+
},
|
|
7252
|
+
config: {
|
|
7253
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7254
|
+
main: {
|
|
7255
|
+
label: "Value",
|
|
7256
|
+
type: "number",
|
|
7257
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7258
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7259
|
+
}
|
|
7260
|
+
}
|
|
7261
|
+
},
|
|
7262
|
+
{
|
|
7263
|
+
type: "Control",
|
|
7264
|
+
scope: "#/properties/proc",
|
|
7265
|
+
config: {
|
|
7266
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7267
|
+
},
|
|
7268
|
+
options: {
|
|
7269
|
+
widget: "EmptyBox"
|
|
7270
|
+
}
|
|
7213
7271
|
}
|
|
7214
|
-
|
|
7272
|
+
]
|
|
7215
7273
|
}
|
|
7216
7274
|
]
|
|
7217
7275
|
};
|
|
@@ -7238,15 +7296,20 @@ const EventSection = (theme) => {
|
|
|
7238
7296
|
},
|
|
7239
7297
|
config: {
|
|
7240
7298
|
main: {
|
|
7241
|
-
color: "info",
|
|
7242
7299
|
onClick: "eventAddHandler",
|
|
7243
7300
|
size: "small",
|
|
7244
|
-
icon: "
|
|
7245
|
-
iconLabel: "Add
|
|
7301
|
+
icon: "TableAddIcon",
|
|
7302
|
+
iconLabel: "Add",
|
|
7246
7303
|
styleDefault: true
|
|
7247
7304
|
},
|
|
7248
7305
|
style: {
|
|
7249
|
-
mt: "6px"
|
|
7306
|
+
mt: "6px",
|
|
7307
|
+
color: "inherit",
|
|
7308
|
+
fill: "inherit",
|
|
7309
|
+
"&:hover": {
|
|
7310
|
+
color: "inherit",
|
|
7311
|
+
fill: "inherit"
|
|
7312
|
+
}
|
|
7250
7313
|
}
|
|
7251
7314
|
}
|
|
7252
7315
|
}
|
|
@@ -7262,12 +7325,18 @@ const EventSection = (theme) => {
|
|
|
7262
7325
|
main: {
|
|
7263
7326
|
onClick: "copyPasteElement",
|
|
7264
7327
|
size: "small",
|
|
7265
|
-
icon: "
|
|
7328
|
+
icon: "TablePaste",
|
|
7266
7329
|
iconLabel: "Paste",
|
|
7267
7330
|
styleDefault: true
|
|
7268
7331
|
},
|
|
7269
7332
|
style: {
|
|
7270
|
-
mt: "6px"
|
|
7333
|
+
mt: "6px",
|
|
7334
|
+
color: "inherit",
|
|
7335
|
+
fill: "inherit",
|
|
7336
|
+
"&:hover": {
|
|
7337
|
+
color: "inherit",
|
|
7338
|
+
fill: "inherit"
|
|
7339
|
+
}
|
|
7271
7340
|
}
|
|
7272
7341
|
}
|
|
7273
7342
|
}
|
|
@@ -7282,15 +7351,21 @@ const EventSection = (theme) => {
|
|
|
7282
7351
|
elements: [
|
|
7283
7352
|
{
|
|
7284
7353
|
accessorKey: "eventType",
|
|
7285
|
-
header: "Event Type"
|
|
7354
|
+
header: "Event's Type",
|
|
7355
|
+
type: "string",
|
|
7356
|
+
size: 300
|
|
7286
7357
|
},
|
|
7287
7358
|
{
|
|
7288
7359
|
accessorKey: "Handler",
|
|
7289
|
-
header: "Handler"
|
|
7360
|
+
header: "Handler",
|
|
7361
|
+
type: "string",
|
|
7362
|
+
size: 200
|
|
7290
7363
|
},
|
|
7291
7364
|
{
|
|
7292
7365
|
accessorKey: "Edit_Approve_Records",
|
|
7293
|
-
header: "Edit
|
|
7366
|
+
header: "Edit",
|
|
7367
|
+
size: 150,
|
|
7368
|
+
type: "action",
|
|
7294
7369
|
widget: {
|
|
7295
7370
|
type: "Control",
|
|
7296
7371
|
scope: "#/properties/Edit_Records",
|
|
@@ -7299,14 +7374,16 @@ const EventSection = (theme) => {
|
|
|
7299
7374
|
},
|
|
7300
7375
|
config: {
|
|
7301
7376
|
main: {
|
|
7302
|
-
color: "info",
|
|
7303
7377
|
size: "small",
|
|
7304
|
-
icon: "
|
|
7378
|
+
icon: "TableEditIcon",
|
|
7305
7379
|
tooltipMessage: "Edit This Record",
|
|
7306
7380
|
onClick: "eventEditHandler"
|
|
7307
7381
|
},
|
|
7308
7382
|
style: {
|
|
7309
|
-
|
|
7383
|
+
fill: theme.palette.primary.main,
|
|
7384
|
+
"& :hover": {
|
|
7385
|
+
fill: theme.palette.primary.dark
|
|
7386
|
+
}
|
|
7310
7387
|
}
|
|
7311
7388
|
}
|
|
7312
7389
|
}
|
|
@@ -7314,6 +7391,8 @@ const EventSection = (theme) => {
|
|
|
7314
7391
|
{
|
|
7315
7392
|
accessorKey: "Reject_Records",
|
|
7316
7393
|
header: "Delete",
|
|
7394
|
+
size: 150,
|
|
7395
|
+
type: "action",
|
|
7317
7396
|
widget: {
|
|
7318
7397
|
type: "Control",
|
|
7319
7398
|
scope: "#/properties/RejectButton",
|
|
@@ -7323,10 +7402,15 @@ const EventSection = (theme) => {
|
|
|
7323
7402
|
},
|
|
7324
7403
|
config: {
|
|
7325
7404
|
main: {
|
|
7326
|
-
icon: "
|
|
7327
|
-
color: "error",
|
|
7405
|
+
icon: "Bin",
|
|
7328
7406
|
tooltipMessage: "Reject This Record",
|
|
7329
7407
|
onClick: "deletePopUpEvent"
|
|
7408
|
+
},
|
|
7409
|
+
style: {
|
|
7410
|
+
fill: theme.palette.primary.main,
|
|
7411
|
+
"& :hover": {
|
|
7412
|
+
fill: theme.palette.primary.dark
|
|
7413
|
+
}
|
|
7330
7414
|
}
|
|
7331
7415
|
}
|
|
7332
7416
|
}
|
|
@@ -7334,7 +7418,8 @@ const EventSection = (theme) => {
|
|
|
7334
7418
|
{
|
|
7335
7419
|
header: "Copy",
|
|
7336
7420
|
field: "Copy_Event",
|
|
7337
|
-
|
|
7421
|
+
size: 150,
|
|
7422
|
+
type: "action",
|
|
7338
7423
|
widget: {
|
|
7339
7424
|
type: "Control",
|
|
7340
7425
|
scope: "#/properties/Copy_Event",
|
|
@@ -7384,77 +7469,103 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7384
7469
|
const cardLayout = {
|
|
7385
7470
|
type: "Control",
|
|
7386
7471
|
scope: "#/properties/cardLayout",
|
|
7387
|
-
layout: 11.5,
|
|
7388
7472
|
options: {
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7473
|
+
widget: "Array"
|
|
7474
|
+
},
|
|
7475
|
+
config: {
|
|
7476
|
+
layout: 12,
|
|
7477
|
+
main: {
|
|
7478
|
+
label: "Card Layout",
|
|
7479
|
+
childElementLabel: "Card Layout"
|
|
7480
|
+
},
|
|
7481
|
+
style: {
|
|
7482
|
+
marginLeft: "-24px",
|
|
7483
|
+
marginBottom: "24px !important",
|
|
7484
|
+
labelStyle: {
|
|
7485
|
+
marginLeft: "24px"
|
|
7486
|
+
},
|
|
7487
|
+
detailsStyle: {
|
|
7488
|
+
marginLeft: "24px"
|
|
7489
|
+
}
|
|
7490
|
+
}
|
|
7491
|
+
},
|
|
7492
|
+
elements: [
|
|
7493
|
+
{
|
|
7494
|
+
type: "Control",
|
|
7495
|
+
scope: "#/properties/key",
|
|
7496
|
+
options: {
|
|
7497
|
+
widget: "SelectInputField"
|
|
7498
|
+
},
|
|
7499
|
+
config: {
|
|
7500
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7501
|
+
main: {
|
|
7502
|
+
label: "Screen Size"
|
|
7503
|
+
}
|
|
7504
|
+
}
|
|
7505
|
+
},
|
|
7506
|
+
{
|
|
7507
|
+
type: "Control",
|
|
7508
|
+
scope: "#/properties/value",
|
|
7509
|
+
options: {
|
|
7510
|
+
widget: "InputField"
|
|
7511
|
+
},
|
|
7512
|
+
config: {
|
|
7513
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7514
|
+
main: {
|
|
7515
|
+
label: "Value",
|
|
7516
|
+
type: "number",
|
|
7517
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7518
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7519
|
+
}
|
|
7520
|
+
}
|
|
7521
|
+
},
|
|
7522
|
+
emptyBox$1("cardEmpty")
|
|
7523
|
+
]
|
|
7425
7524
|
};
|
|
7426
7525
|
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7427
7526
|
return {
|
|
7428
7527
|
type: "Control",
|
|
7429
7528
|
scope: `#/properties/${parentScope}`,
|
|
7430
|
-
layout: 12,
|
|
7431
7529
|
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
|
-
]
|
|
7530
|
+
widget: "Array"
|
|
7531
|
+
},
|
|
7532
|
+
config: {
|
|
7533
|
+
layout: 12,
|
|
7534
|
+
main: {
|
|
7535
|
+
label: childLabel,
|
|
7536
|
+
childElementLabel: childLabel
|
|
7537
|
+
},
|
|
7538
|
+
style: {
|
|
7539
|
+
marginLeft: "-24px",
|
|
7540
|
+
marginBottom: "24px !important",
|
|
7541
|
+
labelStyle: {
|
|
7542
|
+
marginLeft: "24px"
|
|
7543
|
+
},
|
|
7544
|
+
detailsStyle: {
|
|
7545
|
+
marginLeft: "24px"
|
|
7546
|
+
}
|
|
7452
7547
|
}
|
|
7453
|
-
}
|
|
7548
|
+
},
|
|
7549
|
+
elements: [
|
|
7550
|
+
{
|
|
7551
|
+
type: "Control",
|
|
7552
|
+
scope: `#/properties/${childScope}`,
|
|
7553
|
+
options: {
|
|
7554
|
+
widget: "InputField"
|
|
7555
|
+
},
|
|
7556
|
+
config: {
|
|
7557
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7558
|
+
main: {
|
|
7559
|
+
label: childLabel || "Labels for Tab"
|
|
7560
|
+
}
|
|
7561
|
+
}
|
|
7562
|
+
},
|
|
7563
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7564
|
+
]
|
|
7454
7565
|
};
|
|
7455
7566
|
};
|
|
7456
7567
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7457
|
-
sizeHolder.
|
|
7568
|
+
sizeHolder.elements[1] = {
|
|
7458
7569
|
type: "Control",
|
|
7459
7570
|
scope: `#/properties/value`,
|
|
7460
7571
|
options: {
|
|
@@ -7467,7 +7578,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7467
7578
|
}
|
|
7468
7579
|
}
|
|
7469
7580
|
};
|
|
7470
|
-
sizeHolder.
|
|
7581
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7471
7582
|
const getInputField = (scope, label) => {
|
|
7472
7583
|
return {
|
|
7473
7584
|
type: "Control",
|
|
@@ -7476,7 +7587,7 @@ const getInputField = (scope, label) => {
|
|
|
7476
7587
|
widget: "InputField"
|
|
7477
7588
|
},
|
|
7478
7589
|
config: {
|
|
7479
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7590
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7480
7591
|
main: {
|
|
7481
7592
|
label
|
|
7482
7593
|
}
|
|
@@ -7491,7 +7602,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7491
7602
|
widget: "RadioInputField"
|
|
7492
7603
|
},
|
|
7493
7604
|
config: {
|
|
7494
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
7605
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7495
7606
|
main: {
|
|
7496
7607
|
label,
|
|
7497
7608
|
options
|
|
@@ -7506,17 +7617,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7506
7617
|
main: {
|
|
7507
7618
|
label: label || "Details",
|
|
7508
7619
|
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
|
|
7620
|
+
}
|
|
7520
7621
|
},
|
|
7521
7622
|
elements: elements || []
|
|
7522
7623
|
};
|
|
@@ -7530,18 +7631,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7530
7631
|
},
|
|
7531
7632
|
config: {
|
|
7532
7633
|
layout: layout || 12,
|
|
7533
|
-
style: {
|
|
7534
|
-
containerStyle: {
|
|
7535
|
-
borderRadius: "20px"
|
|
7536
|
-
},
|
|
7537
|
-
headerContainerStyle: {},
|
|
7538
|
-
textAreaStyle: {
|
|
7539
|
-
borderRadius: "20px",
|
|
7540
|
-
padding: "20px"
|
|
7541
|
-
}
|
|
7542
|
-
},
|
|
7543
7634
|
main: {
|
|
7544
|
-
heading,
|
|
7635
|
+
label: heading,
|
|
7545
7636
|
minRows: 8,
|
|
7546
7637
|
hideButton,
|
|
7547
7638
|
enableCodeEditor: true
|
|
@@ -7557,7 +7648,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7557
7648
|
widget: "SelectInputField"
|
|
7558
7649
|
},
|
|
7559
7650
|
config: {
|
|
7560
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7651
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7561
7652
|
main: {
|
|
7562
7653
|
label,
|
|
7563
7654
|
type: "text"
|
|
@@ -7573,7 +7664,7 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7573
7664
|
widget: "MultipleSelect"
|
|
7574
7665
|
},
|
|
7575
7666
|
config: {
|
|
7576
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7667
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7577
7668
|
main: {
|
|
7578
7669
|
multiple: true,
|
|
7579
7670
|
label,
|
|
@@ -7582,12 +7673,18 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7582
7673
|
}
|
|
7583
7674
|
};
|
|
7584
7675
|
};
|
|
7585
|
-
const
|
|
7676
|
+
const BaseSection = {
|
|
7586
7677
|
type: "WrapperLayout",
|
|
7678
|
+
config: {
|
|
7679
|
+
main: {
|
|
7680
|
+
label: " ",
|
|
7681
|
+
gap: "8px"
|
|
7682
|
+
}
|
|
7683
|
+
},
|
|
7587
7684
|
elements: []
|
|
7588
7685
|
};
|
|
7589
7686
|
const buildPropertiesSection = function(type) {
|
|
7590
|
-
let uiSchema = _.cloneDeep(
|
|
7687
|
+
let uiSchema = _.cloneDeep(BaseSection);
|
|
7591
7688
|
switch (type) {
|
|
7592
7689
|
case "TreeMap":
|
|
7593
7690
|
uiSchema.elements = [
|
|
@@ -7642,7 +7739,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7642
7739
|
case "Text":
|
|
7643
7740
|
uiSchema.elements = [
|
|
7644
7741
|
getInputField("placeholder", "Placeholder"),
|
|
7645
|
-
|
|
7742
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7646
7743
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7647
7744
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7648
7745
|
];
|
|
@@ -7651,7 +7748,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7651
7748
|
uiSchema.elements = [
|
|
7652
7749
|
getInputField("placeholder", "Placeholder"),
|
|
7653
7750
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7654
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7751
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7752
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7655
7753
|
];
|
|
7656
7754
|
break;
|
|
7657
7755
|
case "SpeedoMeter":
|
|
@@ -7731,7 +7829,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7731
7829
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7732
7830
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7733
7831
|
getInputField("leftMargin", "Left Margin"),
|
|
7734
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7832
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7735
7833
|
getArrayControl("legendLabels", "label"),
|
|
7736
7834
|
getArrayControl("pieArcColors", "color")
|
|
7737
7835
|
];
|
|
@@ -7812,7 +7910,13 @@ const buildPropertiesSection = function(type) {
|
|
|
7812
7910
|
return uiSchema;
|
|
7813
7911
|
};
|
|
7814
7912
|
const StyleSection = {
|
|
7815
|
-
type: "
|
|
7913
|
+
type: "WrapperLayout",
|
|
7914
|
+
config: {
|
|
7915
|
+
main: {
|
|
7916
|
+
label: " ",
|
|
7917
|
+
gap: "8px"
|
|
7918
|
+
}
|
|
7919
|
+
},
|
|
7816
7920
|
elements: [
|
|
7817
7921
|
{
|
|
7818
7922
|
type: "Control",
|
|
@@ -7828,14 +7932,7 @@ const StyleSection = {
|
|
|
7828
7932
|
lg: 12
|
|
7829
7933
|
},
|
|
7830
7934
|
style: {
|
|
7831
|
-
|
|
7832
|
-
borderRadius: "20px"
|
|
7833
|
-
},
|
|
7834
|
-
headerContainerStyle: {},
|
|
7835
|
-
textAreaStyle: {
|
|
7836
|
-
borderRadius: "20px",
|
|
7837
|
-
padding: "20px"
|
|
7838
|
-
}
|
|
7935
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
7839
7936
|
},
|
|
7840
7937
|
main: {
|
|
7841
7938
|
heading: "JSON Style",
|
|
@@ -7869,15 +7966,20 @@ const TableSection = (theme) => {
|
|
|
7869
7966
|
},
|
|
7870
7967
|
config: {
|
|
7871
7968
|
main: {
|
|
7872
|
-
color: "info",
|
|
7873
7969
|
onClick: "widgetAddClickHandler",
|
|
7874
7970
|
size: "small",
|
|
7875
|
-
icon: "
|
|
7876
|
-
iconLabel: "Add
|
|
7971
|
+
icon: "TableAddIcon",
|
|
7972
|
+
iconLabel: "Add",
|
|
7877
7973
|
styleDefault: true
|
|
7878
7974
|
},
|
|
7879
7975
|
style: {
|
|
7880
|
-
mt: "6px"
|
|
7976
|
+
mt: "6px",
|
|
7977
|
+
color: "inherit",
|
|
7978
|
+
fill: "inherit",
|
|
7979
|
+
"&:hover": {
|
|
7980
|
+
color: "inherit",
|
|
7981
|
+
fill: "inherit"
|
|
7982
|
+
}
|
|
7881
7983
|
}
|
|
7882
7984
|
}
|
|
7883
7985
|
}
|
|
@@ -7893,12 +7995,18 @@ const TableSection = (theme) => {
|
|
|
7893
7995
|
main: {
|
|
7894
7996
|
onClick: "copyPasteElement",
|
|
7895
7997
|
size: "small",
|
|
7896
|
-
icon: "
|
|
7998
|
+
icon: "TablePaste",
|
|
7897
7999
|
iconLabel: "Paste",
|
|
7898
8000
|
styleDefault: true
|
|
7899
8001
|
},
|
|
7900
8002
|
style: {
|
|
7901
|
-
mt: "6px"
|
|
8003
|
+
mt: "6px",
|
|
8004
|
+
color: "inherit",
|
|
8005
|
+
fill: "inherit",
|
|
8006
|
+
"&:hover": {
|
|
8007
|
+
color: "inherit",
|
|
8008
|
+
fill: "inherit"
|
|
8009
|
+
}
|
|
7902
8010
|
}
|
|
7903
8011
|
}
|
|
7904
8012
|
}
|
|
@@ -7913,16 +8021,21 @@ const TableSection = (theme) => {
|
|
|
7913
8021
|
elements: [
|
|
7914
8022
|
{
|
|
7915
8023
|
accessorKey: "name",
|
|
7916
|
-
header: "Name"
|
|
8024
|
+
header: "Name",
|
|
8025
|
+
type: "string",
|
|
8026
|
+
size: 300
|
|
7917
8027
|
},
|
|
7918
8028
|
{
|
|
7919
8029
|
accessorKey: "type",
|
|
7920
|
-
header: "Type"
|
|
8030
|
+
header: "Type",
|
|
8031
|
+
type: "string",
|
|
8032
|
+
size: 200
|
|
7921
8033
|
},
|
|
7922
8034
|
{
|
|
7923
8035
|
header: "Edit Record",
|
|
7924
8036
|
field: "Reject_Records",
|
|
7925
|
-
|
|
8037
|
+
size: 150,
|
|
8038
|
+
type: "action",
|
|
7926
8039
|
widget: {
|
|
7927
8040
|
type: "Control",
|
|
7928
8041
|
scope: "#/properties/RejectButton",
|
|
@@ -7931,13 +8044,16 @@ const TableSection = (theme) => {
|
|
|
7931
8044
|
},
|
|
7932
8045
|
config: {
|
|
7933
8046
|
main: {
|
|
7934
|
-
icon: "
|
|
7935
|
-
|
|
8047
|
+
icon: "TableEditIcon",
|
|
8048
|
+
size: "small",
|
|
7936
8049
|
onClick: "editComponents",
|
|
7937
8050
|
tooltipMessage: "Reject This Record"
|
|
7938
8051
|
},
|
|
7939
8052
|
style: {
|
|
7940
|
-
|
|
8053
|
+
fill: theme.palette.primary.main,
|
|
8054
|
+
"& :hover": {
|
|
8055
|
+
fill: theme.palette.primary.dark
|
|
8056
|
+
}
|
|
7941
8057
|
}
|
|
7942
8058
|
}
|
|
7943
8059
|
}
|
|
@@ -7945,7 +8061,8 @@ const TableSection = (theme) => {
|
|
|
7945
8061
|
{
|
|
7946
8062
|
header: "Delete",
|
|
7947
8063
|
field: "Reject_Records",
|
|
7948
|
-
|
|
8064
|
+
size: 150,
|
|
8065
|
+
type: "action",
|
|
7949
8066
|
widget: {
|
|
7950
8067
|
type: "Control",
|
|
7951
8068
|
scope: "#/properties/RejectButton",
|
|
@@ -7954,10 +8071,15 @@ const TableSection = (theme) => {
|
|
|
7954
8071
|
},
|
|
7955
8072
|
config: {
|
|
7956
8073
|
main: {
|
|
7957
|
-
icon: "
|
|
7958
|
-
color: "error",
|
|
8074
|
+
icon: "Bin",
|
|
7959
8075
|
onClick: "deletePopUpComponent",
|
|
7960
8076
|
tooltipMessage: "Reject This Record"
|
|
8077
|
+
},
|
|
8078
|
+
style: {
|
|
8079
|
+
fill: theme.palette.primary.main,
|
|
8080
|
+
"& :hover": {
|
|
8081
|
+
fill: theme.palette.primary.dark
|
|
8082
|
+
}
|
|
7961
8083
|
}
|
|
7962
8084
|
}
|
|
7963
8085
|
}
|
|
@@ -7965,7 +8087,8 @@ const TableSection = (theme) => {
|
|
|
7965
8087
|
{
|
|
7966
8088
|
header: "Copy",
|
|
7967
8089
|
field: "Copy_Component",
|
|
7968
|
-
|
|
8090
|
+
size: 150,
|
|
8091
|
+
type: "action",
|
|
7969
8092
|
widget: {
|
|
7970
8093
|
type: "Control",
|
|
7971
8094
|
scope: "#/properties/Copy_Component",
|
|
@@ -7989,109 +8112,148 @@ const TableSection = (theme) => {
|
|
|
7989
8112
|
return uiSchema;
|
|
7990
8113
|
};
|
|
7991
8114
|
const ValueTab = {
|
|
7992
|
-
type: "
|
|
8115
|
+
type: "WrapperLayout",
|
|
8116
|
+
config: {
|
|
8117
|
+
main: {
|
|
8118
|
+
label: " ",
|
|
8119
|
+
gap: "8px"
|
|
8120
|
+
}
|
|
8121
|
+
},
|
|
7993
8122
|
elements: [
|
|
7994
8123
|
{
|
|
7995
8124
|
type: "Control",
|
|
7996
8125
|
scope: "#/properties/value",
|
|
7997
|
-
layout: 12,
|
|
7998
8126
|
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
|
-
}
|
|
8127
|
+
widget: "Array"
|
|
8128
|
+
},
|
|
8129
|
+
config: {
|
|
8130
|
+
layout: 12,
|
|
8131
|
+
main: {
|
|
8132
|
+
label: "Value",
|
|
8133
|
+
childElementLabel: "Value"
|
|
8134
|
+
},
|
|
8135
|
+
style: {
|
|
8136
|
+
marginLeft: "-24px",
|
|
8137
|
+
marginBottom: "24px !important",
|
|
8138
|
+
labelStyle: {
|
|
8139
|
+
marginLeft: "24px"
|
|
8140
|
+
},
|
|
8141
|
+
detailsStyle: {
|
|
8142
|
+
marginLeft: "24px"
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8145
|
+
},
|
|
8146
|
+
elements: [
|
|
8147
|
+
{
|
|
8148
|
+
type: "Control",
|
|
8149
|
+
scope: "#/properties/label",
|
|
8150
|
+
options: {
|
|
8151
|
+
widget: "InputField"
|
|
8152
|
+
},
|
|
8153
|
+
config: {
|
|
8154
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8155
|
+
main: {
|
|
8156
|
+
label: "Label"
|
|
8037
8157
|
}
|
|
8038
|
-
|
|
8158
|
+
}
|
|
8159
|
+
},
|
|
8160
|
+
{
|
|
8161
|
+
type: "Control",
|
|
8162
|
+
scope: "#/properties/value",
|
|
8163
|
+
options: {
|
|
8164
|
+
widget: "InputField"
|
|
8165
|
+
},
|
|
8166
|
+
config: {
|
|
8167
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8168
|
+
main: {
|
|
8169
|
+
label: "Value"
|
|
8170
|
+
}
|
|
8171
|
+
}
|
|
8172
|
+
},
|
|
8173
|
+
{
|
|
8174
|
+
type: "Control",
|
|
8175
|
+
scope: "#/properties/emptyBox",
|
|
8176
|
+
options: {
|
|
8177
|
+
widget: "EmptyBox"
|
|
8178
|
+
},
|
|
8179
|
+
config: {
|
|
8180
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8181
|
+
}
|
|
8039
8182
|
}
|
|
8040
|
-
|
|
8183
|
+
]
|
|
8041
8184
|
}
|
|
8042
8185
|
]
|
|
8043
8186
|
};
|
|
8044
8187
|
const ValidationSection = {
|
|
8045
|
-
type: "
|
|
8188
|
+
type: "WrapperLayout",
|
|
8189
|
+
config: {
|
|
8190
|
+
main: {
|
|
8191
|
+
label: " ",
|
|
8192
|
+
gap: "8px"
|
|
8193
|
+
}
|
|
8194
|
+
},
|
|
8046
8195
|
elements: [
|
|
8047
8196
|
{
|
|
8048
8197
|
type: "Control",
|
|
8049
8198
|
scope: "#/properties/validation",
|
|
8050
|
-
layout: 11.5,
|
|
8051
8199
|
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
|
-
}
|
|
8200
|
+
widget: "Array"
|
|
8201
|
+
},
|
|
8202
|
+
config: {
|
|
8203
|
+
layout: 12,
|
|
8204
|
+
main: {
|
|
8205
|
+
label: "Validation",
|
|
8206
|
+
childElementLabel: "Validation"
|
|
8207
|
+
},
|
|
8208
|
+
style: {
|
|
8209
|
+
marginLeft: "-24px",
|
|
8210
|
+
marginBottom: "24px !important",
|
|
8211
|
+
labelStyle: {
|
|
8212
|
+
marginLeft: "24px"
|
|
8213
|
+
},
|
|
8214
|
+
detailsStyle: {
|
|
8215
|
+
marginLeft: "24px"
|
|
8216
|
+
}
|
|
8217
|
+
}
|
|
8218
|
+
},
|
|
8219
|
+
elements: [
|
|
8220
|
+
{
|
|
8221
|
+
type: "Control",
|
|
8222
|
+
scope: "#/properties/validationType",
|
|
8223
|
+
options: {
|
|
8224
|
+
widget: "SelectInputField"
|
|
8225
|
+
},
|
|
8226
|
+
config: {
|
|
8227
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8228
|
+
main: {
|
|
8229
|
+
label: "Validation Type"
|
|
8091
8230
|
}
|
|
8092
|
-
|
|
8231
|
+
}
|
|
8232
|
+
},
|
|
8233
|
+
{
|
|
8234
|
+
type: "Control",
|
|
8235
|
+
scope: "#/properties/validationValue",
|
|
8236
|
+
options: {
|
|
8237
|
+
widget: "InputField"
|
|
8238
|
+
},
|
|
8239
|
+
config: {
|
|
8240
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8241
|
+
main: {
|
|
8242
|
+
label: "Validation Value"
|
|
8243
|
+
}
|
|
8244
|
+
}
|
|
8245
|
+
},
|
|
8246
|
+
{
|
|
8247
|
+
type: "Control",
|
|
8248
|
+
scope: "#/properties/emptyBox",
|
|
8249
|
+
options: {
|
|
8250
|
+
widget: "EmptyBox"
|
|
8251
|
+
},
|
|
8252
|
+
config: {
|
|
8253
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8254
|
+
}
|
|
8093
8255
|
}
|
|
8094
|
-
|
|
8256
|
+
]
|
|
8095
8257
|
}
|
|
8096
8258
|
]
|
|
8097
8259
|
};
|
|
@@ -8247,54 +8409,124 @@ function okHandler(store2) {
|
|
|
8247
8409
|
}
|
|
8248
8410
|
}
|
|
8249
8411
|
const sectionLabels = {
|
|
8250
|
-
Select: ["Core", "Properties", "Value", "
|
|
8251
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8252
|
-
Table: ["Core", "Components", "Properties", "
|
|
8253
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8412
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8413
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8414
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8415
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8254
8416
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8255
8417
|
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", "
|
|
8418
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8419
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8420
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8421
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8422
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8423
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8424
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8425
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8426
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8427
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8428
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8429
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8430
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8269
8431
|
Array: ["Core", "Components", "Validation"],
|
|
8270
|
-
Radio: ["Core", "Properties", "
|
|
8271
|
-
Text: ["Core", "Properties", "
|
|
8272
|
-
TextArea: ["Core", "Properties", "
|
|
8432
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8433
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8434
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8273
8435
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8274
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8275
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8276
|
-
InputSlider: ["Core", "Properties", "
|
|
8277
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8436
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8437
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8438
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8439
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8278
8440
|
ColumnGroup: ["Core", "Components"],
|
|
8279
|
-
Thought: ["Core", "Properties", "
|
|
8441
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8280
8442
|
};
|
|
8281
8443
|
function refreshPage(type, store2) {
|
|
8282
|
-
var _a;
|
|
8444
|
+
var _a, _b;
|
|
8283
8445
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8446
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8284
8447
|
if (type) {
|
|
8285
8448
|
const sectionUiSchema = {
|
|
8286
8449
|
Core: CoreSection,
|
|
8287
8450
|
Value: ValueTab,
|
|
8288
8451
|
Style: StyleSection,
|
|
8289
|
-
|
|
8452
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8290
8453
|
Components: TableSection(store2.theme.myTheme),
|
|
8291
8454
|
Properties: buildPropertiesSection(type),
|
|
8292
8455
|
Validation: ValidationSection
|
|
8293
8456
|
};
|
|
8294
8457
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8295
|
-
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "
|
|
8458
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8296
8459
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8297
8460
|
}
|
|
8461
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8462
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8463
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8464
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8465
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8466
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8467
|
+
type: "Control",
|
|
8468
|
+
scope: "#/properties/columnFormat",
|
|
8469
|
+
options: {
|
|
8470
|
+
widget: "SelectInputField"
|
|
8471
|
+
},
|
|
8472
|
+
config: {
|
|
8473
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8474
|
+
main: {
|
|
8475
|
+
label: "Column Format"
|
|
8476
|
+
}
|
|
8477
|
+
}
|
|
8478
|
+
};
|
|
8479
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8480
|
+
type: "Control",
|
|
8481
|
+
scope: "#/properties/filteringOptions",
|
|
8482
|
+
options: {
|
|
8483
|
+
widget: "SelectInputField"
|
|
8484
|
+
},
|
|
8485
|
+
config: {
|
|
8486
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8487
|
+
main: {
|
|
8488
|
+
label: "Filter Mode",
|
|
8489
|
+
multiple: true
|
|
8490
|
+
}
|
|
8491
|
+
}
|
|
8492
|
+
};
|
|
8493
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8494
|
+
type: "Control",
|
|
8495
|
+
scope: "#/properties/enableFilter",
|
|
8496
|
+
options: {
|
|
8497
|
+
widget: "RadioInputField"
|
|
8498
|
+
},
|
|
8499
|
+
config: {
|
|
8500
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8501
|
+
main: {
|
|
8502
|
+
label: "Enable Filter",
|
|
8503
|
+
options: ["Yes", "No"]
|
|
8504
|
+
}
|
|
8505
|
+
}
|
|
8506
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8507
|
+
type: "Control",
|
|
8508
|
+
scope: "#/properties/enableSorting",
|
|
8509
|
+
options: {
|
|
8510
|
+
widget: "RadioInputField"
|
|
8511
|
+
},
|
|
8512
|
+
config: {
|
|
8513
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8514
|
+
main: {
|
|
8515
|
+
label: "Enable Sorting",
|
|
8516
|
+
options: ["Yes", "No"]
|
|
8517
|
+
}
|
|
8518
|
+
}
|
|
8519
|
+
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8520
|
+
type: "Control",
|
|
8521
|
+
scope: "#/properties/proc",
|
|
8522
|
+
config: {
|
|
8523
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 3 }
|
|
8524
|
+
},
|
|
8525
|
+
options: {
|
|
8526
|
+
widget: "EmptyBox"
|
|
8527
|
+
}
|
|
8528
|
+
};
|
|
8529
|
+
}
|
|
8298
8530
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8299
8531
|
this.ElementPathSetter(UiSchema);
|
|
8300
8532
|
}
|
|
@@ -8316,10 +8548,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8316
8548
|
return getFormdataFromSessionStorage(path);
|
|
8317
8549
|
},
|
|
8318
8550
|
getSchema: function() {
|
|
8551
|
+
var _a, _b, _c;
|
|
8319
8552
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8320
8553
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8321
8554
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8322
8555
|
}
|
|
8556
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8557
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8558
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8559
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8560
|
+
if (path) {
|
|
8561
|
+
const pathArrayAll = path.split(".");
|
|
8562
|
+
const arr = [];
|
|
8563
|
+
pathArrayAll.map((e, i) => {
|
|
8564
|
+
if (i === 0) {
|
|
8565
|
+
arr.push(e);
|
|
8566
|
+
return;
|
|
8567
|
+
}
|
|
8568
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8569
|
+
});
|
|
8570
|
+
arr.map((e) => {
|
|
8571
|
+
const data = _.get(config2, e);
|
|
8572
|
+
pathArray.push({
|
|
8573
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8574
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8575
|
+
});
|
|
8576
|
+
});
|
|
8577
|
+
}
|
|
8578
|
+
schema2.properties.pageName.path = pathArray;
|
|
8323
8579
|
return schema2;
|
|
8324
8580
|
},
|
|
8325
8581
|
okHandler: () => okHandler(store2),
|
|
@@ -8432,6 +8688,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8432
8688
|
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8433
8689
|
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8434
8690
|
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8691
|
+
store2.setNotify({
|
|
8692
|
+
SuccessMessage: `${elementType} Copied successfully`,
|
|
8693
|
+
Success: true
|
|
8694
|
+
});
|
|
8435
8695
|
store2.setSchema(schema2);
|
|
8436
8696
|
store2.setUiSchema(uiSchema);
|
|
8437
8697
|
},
|
|
@@ -8457,15 +8717,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8457
8717
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8458
8718
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8459
8719
|
const notificationMessages = {
|
|
8460
|
-
|
|
8461
|
-
Component: "The component cannot be integrated into the
|
|
8720
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8721
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8462
8722
|
};
|
|
8463
8723
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8464
8724
|
store2.setNotify({
|
|
8465
|
-
FailMessage: notificationMessages.
|
|
8725
|
+
FailMessage: notificationMessages.Events,
|
|
8466
8726
|
Fail: true
|
|
8467
8727
|
});
|
|
8468
|
-
} else if (copiedConfig.name && elementType === "
|
|
8728
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8469
8729
|
store2.setNotify({
|
|
8470
8730
|
FailMessage: notificationMessages.Component,
|
|
8471
8731
|
Fail: true
|
|
@@ -8491,8 +8751,18 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8491
8751
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8492
8752
|
},
|
|
8493
8753
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8754
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
8494
8755
|
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8495
|
-
uiSchema.elements[
|
|
8756
|
+
if ((_f = (_e = (_d = (_c = (_b = (_a = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _a[1]) == null ? void 0 : _b.elements) == null ? void 0 : _c[0]) == null ? void 0 : _d.config) == null ? void 0 : _e.main) == null ? void 0 : _f.headerIcons) {
|
|
8757
|
+
uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8758
|
+
} else if ((_n = (_m = (_l = (_k = (_j = (_i = (_h = (_g = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _g[0]) == null ? void 0 : _h.elements) == null ? void 0 : _i[1]) == null ? void 0 : _j.elements) == null ? void 0 : _k[0]) == null ? void 0 : _l.config) == null ? void 0 : _m.main) == null ? void 0 : _n.headerIcons) {
|
|
8759
|
+
uiSchema.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.name}`;
|
|
8760
|
+
}
|
|
8761
|
+
if ((_t = (_s = (_r = (_q = (_p = (_o = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _o[1]) == null ? void 0 : _p.elements) == null ? void 0 : _q[1]) == null ? void 0 : _r.config) == null ? void 0 : _s.main) == null ? void 0 : _t.headerIcons) {
|
|
8762
|
+
uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Event: ${formData.eventType}`;
|
|
8763
|
+
} else if ((_z = (_y = (_x = (_w = (_v = (_u = uiSchema == null ? void 0 : uiSchema.elements) == null ? void 0 : _u[0]) == null ? void 0 : _v.elements) == null ? void 0 : _w[1]) == null ? void 0 : _x.config) == null ? void 0 : _y.main) == null ? void 0 : _z.headerIcons) {
|
|
8764
|
+
uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
|
|
8765
|
+
}
|
|
8496
8766
|
}
|
|
8497
8767
|
};
|
|
8498
8768
|
};
|
|
@@ -8643,18 +8913,18 @@ const EventSchema = {
|
|
|
8643
8913
|
eventType: {
|
|
8644
8914
|
type: "string",
|
|
8645
8915
|
oneOf: [
|
|
8646
|
-
{ title: "Click
|
|
8647
|
-
{ title: "Load
|
|
8648
|
-
{ title: "Change
|
|
8649
|
-
{ title: "Mount
|
|
8916
|
+
{ title: "Click", const: "onClick" },
|
|
8917
|
+
{ title: "Load", const: "onLoad" },
|
|
8918
|
+
{ title: "Change", const: "onChange" },
|
|
8919
|
+
{ title: "Mount", const: "onMount" },
|
|
8650
8920
|
{ title: "Success", const: "Success" },
|
|
8651
|
-
{ title: "
|
|
8652
|
-
{ title: "Cell
|
|
8653
|
-
{ title: "
|
|
8654
|
-
{ title: "Back
|
|
8655
|
-
{ title: "Next
|
|
8656
|
-
{ title: "
|
|
8657
|
-
{ title: "
|
|
8921
|
+
{ title: "Start", const: "onStart" },
|
|
8922
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8923
|
+
{ title: "Upload", const: "onUpload" },
|
|
8924
|
+
{ title: "Back", const: "onBack" },
|
|
8925
|
+
{ title: "Next", const: "onNext" },
|
|
8926
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8927
|
+
{ title: "Download", const: "onDownload" },
|
|
8658
8928
|
{ title: "Fail", const: "Fail" }
|
|
8659
8929
|
]
|
|
8660
8930
|
},
|
|
@@ -8662,7 +8932,7 @@ const EventSchema = {
|
|
|
8662
8932
|
type: "string",
|
|
8663
8933
|
oneOf: [
|
|
8664
8934
|
{ title: "Custom", const: "custom" },
|
|
8665
|
-
{ title: "
|
|
8935
|
+
{ title: "API", const: "api" },
|
|
8666
8936
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8667
8937
|
{ title: "Refresh", const: "refresh" }
|
|
8668
8938
|
]
|
|
@@ -8691,47 +8961,49 @@ const EventSchema = {
|
|
|
8691
8961
|
},
|
|
8692
8962
|
RemoveItemButton: {
|
|
8693
8963
|
disabled: true
|
|
8964
|
+
},
|
|
8965
|
+
pageName: {
|
|
8966
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8694
8967
|
}
|
|
8695
8968
|
},
|
|
8696
8969
|
required: ["eventType", "Handler"]
|
|
8697
8970
|
};
|
|
8698
8971
|
const EventUiSchema = (theme) => {
|
|
8699
|
-
var _a
|
|
8972
|
+
var _a;
|
|
8700
8973
|
const uiSchema = {
|
|
8701
8974
|
type: "HorizontalLayout",
|
|
8702
|
-
heading: "
|
|
8975
|
+
heading: "Page-Events",
|
|
8703
8976
|
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
8977
|
{
|
|
8724
8978
|
type: "TabLayout",
|
|
8725
8979
|
config: {
|
|
8726
8980
|
main: {
|
|
8727
|
-
tabLabels: ["Core", "Response
|
|
8728
|
-
defaultStyle: true,
|
|
8981
|
+
tabLabels: ["Core", "Response Events"],
|
|
8729
8982
|
id: "event"
|
|
8983
|
+
},
|
|
8984
|
+
style: {
|
|
8985
|
+
TabPanelStyle: {
|
|
8986
|
+
padding: 0
|
|
8987
|
+
}
|
|
8988
|
+
},
|
|
8989
|
+
TabsStyle: {
|
|
8990
|
+
marginBottom: "3px",
|
|
8991
|
+
paddingBottom: "4px",
|
|
8992
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
8993
|
+
"& .MuiTabs-indicator": {
|
|
8994
|
+
bottom: "6px"
|
|
8995
|
+
}
|
|
8730
8996
|
}
|
|
8731
8997
|
},
|
|
8732
8998
|
elements: [
|
|
8733
8999
|
{
|
|
8734
|
-
type: "
|
|
9000
|
+
type: "WrapperLayout",
|
|
9001
|
+
config: {
|
|
9002
|
+
main: {
|
|
9003
|
+
label: " ",
|
|
9004
|
+
gap: "8px"
|
|
9005
|
+
}
|
|
9006
|
+
},
|
|
8735
9007
|
elements: [
|
|
8736
9008
|
{
|
|
8737
9009
|
type: "Control",
|
|
@@ -8740,9 +9012,9 @@ const EventUiSchema = (theme) => {
|
|
|
8740
9012
|
widget: "SelectInputField"
|
|
8741
9013
|
},
|
|
8742
9014
|
config: {
|
|
8743
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9015
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8744
9016
|
main: {
|
|
8745
|
-
label: "Event Type",
|
|
9017
|
+
label: "Event's Type",
|
|
8746
9018
|
type: "text"
|
|
8747
9019
|
}
|
|
8748
9020
|
}
|
|
@@ -8755,7 +9027,7 @@ const EventUiSchema = (theme) => {
|
|
|
8755
9027
|
widget: "EmptyBox"
|
|
8756
9028
|
},
|
|
8757
9029
|
config: {
|
|
8758
|
-
layout: { xs: 0, sm:
|
|
9030
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
8759
9031
|
}
|
|
8760
9032
|
}
|
|
8761
9033
|
]
|
|
@@ -8781,12 +9053,18 @@ const EventUiSchema = (theme) => {
|
|
|
8781
9053
|
main: {
|
|
8782
9054
|
onClick: "addEvent",
|
|
8783
9055
|
size: "small",
|
|
8784
|
-
icon: "
|
|
8785
|
-
iconLabel: "Add
|
|
9056
|
+
icon: "TableAddIcon",
|
|
9057
|
+
iconLabel: "Add",
|
|
8786
9058
|
styleDefault: true
|
|
8787
9059
|
},
|
|
8788
9060
|
style: {
|
|
8789
|
-
mt: "6px"
|
|
9061
|
+
mt: "6px",
|
|
9062
|
+
color: "inherit",
|
|
9063
|
+
fill: "inherit",
|
|
9064
|
+
"&:hover": {
|
|
9065
|
+
color: "inherit",
|
|
9066
|
+
fill: "inherit"
|
|
9067
|
+
}
|
|
8790
9068
|
}
|
|
8791
9069
|
}
|
|
8792
9070
|
}
|
|
@@ -8802,12 +9080,18 @@ const EventUiSchema = (theme) => {
|
|
|
8802
9080
|
main: {
|
|
8803
9081
|
onClick: "copyPasteElement",
|
|
8804
9082
|
size: "small",
|
|
8805
|
-
icon: "
|
|
9083
|
+
icon: "TablePaste",
|
|
8806
9084
|
iconLabel: "Paste",
|
|
8807
9085
|
styleDefault: true
|
|
8808
9086
|
},
|
|
8809
9087
|
style: {
|
|
8810
|
-
mt: "6px"
|
|
9088
|
+
mt: "6px",
|
|
9089
|
+
color: "inherit",
|
|
9090
|
+
fill: "inherit",
|
|
9091
|
+
"&:hover": {
|
|
9092
|
+
color: "inherit",
|
|
9093
|
+
fill: "inherit"
|
|
9094
|
+
}
|
|
8811
9095
|
}
|
|
8812
9096
|
}
|
|
8813
9097
|
}
|
|
@@ -8822,15 +9106,21 @@ const EventUiSchema = (theme) => {
|
|
|
8822
9106
|
elements: [
|
|
8823
9107
|
{
|
|
8824
9108
|
accessorKey: "eventType",
|
|
8825
|
-
header: "Event Type"
|
|
9109
|
+
header: "Event's Type",
|
|
9110
|
+
size: 300,
|
|
9111
|
+
type: "string"
|
|
8826
9112
|
},
|
|
8827
9113
|
{
|
|
8828
9114
|
accessorKey: "Handler",
|
|
8829
|
-
header: "Handler"
|
|
9115
|
+
header: "Handler",
|
|
9116
|
+
size: 200,
|
|
9117
|
+
type: "string"
|
|
8830
9118
|
},
|
|
8831
9119
|
{
|
|
8832
9120
|
accessorKey: "Edit_Approve_Records",
|
|
8833
|
-
header: "Edit
|
|
9121
|
+
header: "Edit",
|
|
9122
|
+
type: "action",
|
|
9123
|
+
size: 150,
|
|
8834
9124
|
widget: {
|
|
8835
9125
|
type: "Control",
|
|
8836
9126
|
scope: "#/properties/Edit_Records",
|
|
@@ -8839,14 +9129,16 @@ const EventUiSchema = (theme) => {
|
|
|
8839
9129
|
},
|
|
8840
9130
|
config: {
|
|
8841
9131
|
main: {
|
|
8842
|
-
color: "info",
|
|
8843
9132
|
size: "small",
|
|
8844
|
-
icon: "
|
|
9133
|
+
icon: "TableEditIcon",
|
|
8845
9134
|
tooltipMessage: "Edit This Record",
|
|
8846
9135
|
onClick: "editEvent"
|
|
8847
9136
|
},
|
|
8848
9137
|
style: {
|
|
8849
|
-
|
|
9138
|
+
fill: theme.palette.primary.main,
|
|
9139
|
+
"& :hover": {
|
|
9140
|
+
fill: theme.palette.primary.dark
|
|
9141
|
+
}
|
|
8850
9142
|
}
|
|
8851
9143
|
}
|
|
8852
9144
|
}
|
|
@@ -8854,6 +9146,8 @@ const EventUiSchema = (theme) => {
|
|
|
8854
9146
|
{
|
|
8855
9147
|
accessorKey: "Reject_Records",
|
|
8856
9148
|
header: "Delete",
|
|
9149
|
+
type: "action",
|
|
9150
|
+
size: 150,
|
|
8857
9151
|
widget: {
|
|
8858
9152
|
type: "Control",
|
|
8859
9153
|
scope: "#/properties/RejectButton",
|
|
@@ -8862,10 +9156,15 @@ const EventUiSchema = (theme) => {
|
|
|
8862
9156
|
},
|
|
8863
9157
|
config: {
|
|
8864
9158
|
main: {
|
|
8865
|
-
icon: "
|
|
8866
|
-
color: "error",
|
|
9159
|
+
icon: "Bin",
|
|
8867
9160
|
tooltipMessage: "Reject This Record",
|
|
8868
9161
|
onClick: "deletePopUpEvent"
|
|
9162
|
+
},
|
|
9163
|
+
style: {
|
|
9164
|
+
fill: theme.palette.primary.main,
|
|
9165
|
+
"& :hover": {
|
|
9166
|
+
fill: theme.palette.primary.dark
|
|
9167
|
+
}
|
|
8869
9168
|
}
|
|
8870
9169
|
}
|
|
8871
9170
|
}
|
|
@@ -8873,7 +9172,8 @@ const EventUiSchema = (theme) => {
|
|
|
8873
9172
|
{
|
|
8874
9173
|
header: "Copy",
|
|
8875
9174
|
field: "Copy_Event",
|
|
8876
|
-
|
|
9175
|
+
type: "action",
|
|
9176
|
+
size: 150,
|
|
8877
9177
|
widget: {
|
|
8878
9178
|
type: "Control",
|
|
8879
9179
|
scope: "#/properties/Copy_Event",
|
|
@@ -8894,103 +9194,59 @@ const EventUiSchema = (theme) => {
|
|
|
8894
9194
|
]
|
|
8895
9195
|
},
|
|
8896
9196
|
{
|
|
8897
|
-
type: "
|
|
9197
|
+
type: "WrapperLayout",
|
|
8898
9198
|
config: {
|
|
8899
|
-
|
|
9199
|
+
main: {
|
|
9200
|
+
gap: "8px"
|
|
9201
|
+
}
|
|
8900
9202
|
},
|
|
8901
9203
|
elements: [
|
|
8902
9204
|
{
|
|
8903
9205
|
type: "Control",
|
|
8904
|
-
scope: "#/properties/
|
|
9206
|
+
scope: "#/properties/btn",
|
|
8905
9207
|
options: {
|
|
8906
|
-
widget: "
|
|
9208
|
+
widget: "Button"
|
|
8907
9209
|
},
|
|
8908
9210
|
config: {
|
|
8909
|
-
layout: { xs:
|
|
9211
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8910
9212
|
main: {
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
style: {
|
|
8917
|
-
marginLeft: "-10px"
|
|
9213
|
+
name: "Ok",
|
|
9214
|
+
variant: "contained",
|
|
9215
|
+
type: "text",
|
|
9216
|
+
onClick: "okHandler",
|
|
9217
|
+
size: "medium"
|
|
8918
9218
|
}
|
|
8919
9219
|
}
|
|
8920
9220
|
},
|
|
8921
9221
|
{
|
|
8922
9222
|
type: "Control",
|
|
8923
|
-
scope: "#/properties/
|
|
9223
|
+
scope: "#/properties/btnSubmit",
|
|
8924
9224
|
options: {
|
|
8925
|
-
widget: "
|
|
9225
|
+
widget: "Button"
|
|
8926
9226
|
},
|
|
8927
9227
|
config: {
|
|
8928
|
-
layout: { xs:
|
|
9228
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8929
9229
|
main: {
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
fontSize: "12px",
|
|
8936
|
-
marginTop: "4px"
|
|
9230
|
+
name: "Save & Exit",
|
|
9231
|
+
variant: "contained",
|
|
9232
|
+
type: "text",
|
|
9233
|
+
onClick: "saveHandler",
|
|
9234
|
+
size: "medium"
|
|
8937
9235
|
}
|
|
8938
9236
|
}
|
|
8939
9237
|
},
|
|
8940
9238
|
{
|
|
8941
9239
|
type: "Control",
|
|
8942
9240
|
scope: "#/properties/EmptyBox",
|
|
9241
|
+
config: {
|
|
9242
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
9243
|
+
},
|
|
8943
9244
|
options: {
|
|
8944
9245
|
widget: "EmptyBox"
|
|
8945
|
-
},
|
|
8946
|
-
config: {
|
|
8947
|
-
layout: { xs: 1, sm: 5 }
|
|
8948
9246
|
}
|
|
8949
9247
|
}
|
|
8950
9248
|
]
|
|
8951
9249
|
},
|
|
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
9250
|
{
|
|
8995
9251
|
type: "Control",
|
|
8996
9252
|
scope: "#/properties/popUpEvent",
|
|
@@ -9019,15 +9275,17 @@ const EventUiSchema = (theme) => {
|
|
|
9019
9275
|
config: {
|
|
9020
9276
|
layout: 11,
|
|
9021
9277
|
main: {
|
|
9022
|
-
heading: "Are you sure you want to delete ?"
|
|
9278
|
+
heading: "Are you sure you want to delete this Event ?"
|
|
9023
9279
|
},
|
|
9024
9280
|
style: {
|
|
9025
|
-
marginTop: "-20px",
|
|
9026
9281
|
fontSize: "20px",
|
|
9027
9282
|
"&.MuiTypography-root": {
|
|
9028
|
-
padding: "
|
|
9283
|
+
padding: "0px 20px",
|
|
9029
9284
|
textAlign: "center",
|
|
9030
|
-
lineHeight: "1"
|
|
9285
|
+
lineHeight: "1.2",
|
|
9286
|
+
fontWeight: "normal",
|
|
9287
|
+
fontSize: "18px",
|
|
9288
|
+
marginBottom: theme.spacing(5)
|
|
9031
9289
|
}
|
|
9032
9290
|
}
|
|
9033
9291
|
}
|
|
@@ -9051,13 +9309,14 @@ const EventUiSchema = (theme) => {
|
|
|
9051
9309
|
name: "No",
|
|
9052
9310
|
startIcon: "ApproveIcon",
|
|
9053
9311
|
variant: "contained",
|
|
9054
|
-
color: "info",
|
|
9055
9312
|
type: "text",
|
|
9056
9313
|
onClick: "deletePopUpEvent",
|
|
9057
9314
|
size: "large"
|
|
9058
9315
|
},
|
|
9059
9316
|
style: {
|
|
9060
9317
|
position: "absolute",
|
|
9318
|
+
padding: "8px 0px",
|
|
9319
|
+
fontSize: "16px",
|
|
9061
9320
|
bottom: 0,
|
|
9062
9321
|
left: 0,
|
|
9063
9322
|
width: "50%",
|
|
@@ -9085,7 +9344,6 @@ const EventUiSchema = (theme) => {
|
|
|
9085
9344
|
layout: 6,
|
|
9086
9345
|
main: {
|
|
9087
9346
|
name: "Yes",
|
|
9088
|
-
startIcon: "ApproveIcon",
|
|
9089
9347
|
variant: "contained",
|
|
9090
9348
|
color: "error",
|
|
9091
9349
|
type: "text",
|
|
@@ -9094,6 +9352,8 @@ const EventUiSchema = (theme) => {
|
|
|
9094
9352
|
},
|
|
9095
9353
|
style: {
|
|
9096
9354
|
position: "absolute",
|
|
9355
|
+
padding: "8px 0px",
|
|
9356
|
+
fontSize: "16px",
|
|
9097
9357
|
bottom: 0,
|
|
9098
9358
|
right: 0,
|
|
9099
9359
|
width: "50%",
|
|
@@ -9114,6 +9374,27 @@ const EventUiSchema = (theme) => {
|
|
|
9114
9374
|
}
|
|
9115
9375
|
]
|
|
9116
9376
|
},
|
|
9377
|
+
{
|
|
9378
|
+
type: "Control",
|
|
9379
|
+
scope: "#/properties/pageName",
|
|
9380
|
+
options: {
|
|
9381
|
+
widget: "Breadcrumb"
|
|
9382
|
+
},
|
|
9383
|
+
config: {
|
|
9384
|
+
layout: 12,
|
|
9385
|
+
main: {},
|
|
9386
|
+
style: {
|
|
9387
|
+
paddingLeft: theme.spacing(3),
|
|
9388
|
+
color: theme.palette.grey[600],
|
|
9389
|
+
fontSize: "10px",
|
|
9390
|
+
position: "fixed",
|
|
9391
|
+
bottom: "24px",
|
|
9392
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9393
|
+
borderTop: `1px solid ${theme.palette.common.black}29`,
|
|
9394
|
+
backgroundColor: theme.palette.background.default
|
|
9395
|
+
}
|
|
9396
|
+
}
|
|
9397
|
+
},
|
|
9117
9398
|
{
|
|
9118
9399
|
type: "Control",
|
|
9119
9400
|
scope: "#/properties/notify",
|
|
@@ -9131,7 +9412,7 @@ const EventUiSchema = (theme) => {
|
|
|
9131
9412
|
style: {
|
|
9132
9413
|
flexDirection: "row",
|
|
9133
9414
|
position: "absolute",
|
|
9134
|
-
bottom:
|
|
9415
|
+
bottom: 10,
|
|
9135
9416
|
height: "fit-content",
|
|
9136
9417
|
overflow: "hidden",
|
|
9137
9418
|
zIndex: 1e3,
|
|
@@ -9150,78 +9431,19 @@ const EventUiSchema = (theme) => {
|
|
|
9150
9431
|
heading: "Copywriter@ACT21.IO"
|
|
9151
9432
|
},
|
|
9152
9433
|
style: {
|
|
9153
|
-
color: ((
|
|
9434
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9154
9435
|
fontSize: "11px",
|
|
9155
9436
|
textAlign: "center",
|
|
9156
|
-
lineHeight:
|
|
9437
|
+
lineHeight: 0,
|
|
9157
9438
|
width: "fit-content",
|
|
9158
9439
|
left: "50%",
|
|
9159
9440
|
position: "relative",
|
|
9160
|
-
margin:
|
|
9441
|
+
margin: "revert",
|
|
9161
9442
|
flexGrow: 1,
|
|
9162
9443
|
height: 0,
|
|
9163
9444
|
transform: "translate(-50%, 0%)"
|
|
9164
9445
|
}
|
|
9165
9446
|
}
|
|
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
9447
|
}
|
|
9226
9448
|
]
|
|
9227
9449
|
}
|
|
@@ -9239,7 +9461,7 @@ const APISection = {
|
|
|
9239
9461
|
widget: "SelectInputField"
|
|
9240
9462
|
},
|
|
9241
9463
|
config: {
|
|
9242
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9464
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9243
9465
|
main: {
|
|
9244
9466
|
label: "Method",
|
|
9245
9467
|
type: "text"
|
|
@@ -9253,23 +9475,13 @@ const APISection = {
|
|
|
9253
9475
|
widget: "InputField"
|
|
9254
9476
|
},
|
|
9255
9477
|
config: {
|
|
9256
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9257
|
-
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 }
|
|
9478
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9479
|
+
main: {
|
|
9480
|
+
label: "Path",
|
|
9481
|
+
type: "text",
|
|
9482
|
+
multiple: false,
|
|
9483
|
+
options: []
|
|
9484
|
+
}
|
|
9273
9485
|
}
|
|
9274
9486
|
},
|
|
9275
9487
|
{
|
|
@@ -9279,106 +9491,132 @@ const APISection = {
|
|
|
9279
9491
|
widget: "EmptyBox"
|
|
9280
9492
|
},
|
|
9281
9493
|
config: {
|
|
9282
|
-
layout: { xs: 0, sm: 0, md: 4, lg:
|
|
9494
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
9283
9495
|
}
|
|
9284
9496
|
},
|
|
9285
9497
|
{
|
|
9286
9498
|
type: "Control",
|
|
9287
9499
|
scope: "#/properties/headers",
|
|
9288
|
-
layout: 11.5,
|
|
9289
9500
|
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
|
-
}
|
|
9501
|
+
widget: "Array"
|
|
9502
|
+
},
|
|
9503
|
+
config: {
|
|
9504
|
+
layout: 12,
|
|
9505
|
+
main: {
|
|
9506
|
+
label: "Headers",
|
|
9507
|
+
childElementLabel: "Headers"
|
|
9508
|
+
},
|
|
9509
|
+
style: {
|
|
9510
|
+
marginLeft: "-24px",
|
|
9511
|
+
marginBottom: "24px !important",
|
|
9512
|
+
labelStyle: {
|
|
9513
|
+
marginLeft: "24px"
|
|
9514
|
+
},
|
|
9515
|
+
detailsStyle: {
|
|
9516
|
+
marginLeft: "24px"
|
|
9517
|
+
}
|
|
9518
|
+
}
|
|
9519
|
+
},
|
|
9520
|
+
elements: [
|
|
9521
|
+
{
|
|
9522
|
+
type: "Control",
|
|
9523
|
+
scope: "#/properties/key",
|
|
9524
|
+
options: {
|
|
9525
|
+
widget: "InputField"
|
|
9526
|
+
},
|
|
9527
|
+
config: {
|
|
9528
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9529
|
+
main: {
|
|
9530
|
+
label: "Key"
|
|
9329
9531
|
}
|
|
9330
|
-
|
|
9532
|
+
}
|
|
9533
|
+
},
|
|
9534
|
+
{
|
|
9535
|
+
type: "Control",
|
|
9536
|
+
scope: "#/properties/value",
|
|
9537
|
+
options: {
|
|
9538
|
+
widget: "InputField"
|
|
9539
|
+
},
|
|
9540
|
+
config: {
|
|
9541
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9542
|
+
main: {
|
|
9543
|
+
label: "Value"
|
|
9544
|
+
}
|
|
9545
|
+
}
|
|
9546
|
+
},
|
|
9547
|
+
{
|
|
9548
|
+
type: "Control",
|
|
9549
|
+
scope: "#/properties/emptyBox",
|
|
9550
|
+
options: {
|
|
9551
|
+
widget: "EmptyBox"
|
|
9552
|
+
},
|
|
9553
|
+
config: {
|
|
9554
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9555
|
+
}
|
|
9331
9556
|
}
|
|
9332
|
-
|
|
9557
|
+
]
|
|
9333
9558
|
},
|
|
9334
9559
|
{
|
|
9335
9560
|
type: "Control",
|
|
9336
9561
|
scope: "#/properties/body",
|
|
9337
|
-
layout: 11.5,
|
|
9338
9562
|
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
|
-
}
|
|
9563
|
+
widget: "Array"
|
|
9564
|
+
},
|
|
9565
|
+
config: {
|
|
9566
|
+
layout: 12,
|
|
9567
|
+
main: {
|
|
9568
|
+
label: "Body",
|
|
9569
|
+
childElementLabel: "Body"
|
|
9570
|
+
},
|
|
9571
|
+
style: {
|
|
9572
|
+
marginLeft: "-24px",
|
|
9573
|
+
marginBottom: "24px !important",
|
|
9574
|
+
labelStyle: {
|
|
9575
|
+
marginLeft: "24px"
|
|
9576
|
+
},
|
|
9577
|
+
detailsStyle: {
|
|
9578
|
+
marginLeft: "24px"
|
|
9579
|
+
}
|
|
9580
|
+
}
|
|
9581
|
+
},
|
|
9582
|
+
elements: [
|
|
9583
|
+
{
|
|
9584
|
+
type: "Control",
|
|
9585
|
+
scope: "#/properties/key",
|
|
9586
|
+
options: {
|
|
9587
|
+
widget: "InputField"
|
|
9588
|
+
},
|
|
9589
|
+
config: {
|
|
9590
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9591
|
+
main: {
|
|
9592
|
+
label: "Key"
|
|
9378
9593
|
}
|
|
9379
|
-
|
|
9594
|
+
}
|
|
9595
|
+
},
|
|
9596
|
+
{
|
|
9597
|
+
type: "Control",
|
|
9598
|
+
scope: "#/properties/value",
|
|
9599
|
+
options: {
|
|
9600
|
+
widget: "InputField"
|
|
9601
|
+
},
|
|
9602
|
+
config: {
|
|
9603
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9604
|
+
main: {
|
|
9605
|
+
label: "Value"
|
|
9606
|
+
}
|
|
9607
|
+
}
|
|
9608
|
+
},
|
|
9609
|
+
{
|
|
9610
|
+
type: "Control",
|
|
9611
|
+
scope: "#/properties/emptyBox",
|
|
9612
|
+
options: {
|
|
9613
|
+
widget: "EmptyBox"
|
|
9614
|
+
},
|
|
9615
|
+
config: {
|
|
9616
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9617
|
+
}
|
|
9380
9618
|
}
|
|
9381
|
-
|
|
9619
|
+
]
|
|
9382
9620
|
},
|
|
9383
9621
|
getTextArea("apiBody", "Transformer", true, 12)
|
|
9384
9622
|
]
|
|
@@ -9389,116 +9627,134 @@ const refreshSectionUiSchema = {
|
|
|
9389
9627
|
{
|
|
9390
9628
|
type: "Control",
|
|
9391
9629
|
scope: "#/properties/refreshElements",
|
|
9392
|
-
layout: 11.5,
|
|
9393
9630
|
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
|
-
}
|
|
9631
|
+
widget: "Array"
|
|
9632
|
+
},
|
|
9633
|
+
config: {
|
|
9634
|
+
layout: 12,
|
|
9635
|
+
main: {
|
|
9636
|
+
label: "Refresh Elements",
|
|
9637
|
+
childElementLabel: "Refresh Elements"
|
|
9638
|
+
},
|
|
9639
|
+
style: {
|
|
9640
|
+
marginLeft: "-24px",
|
|
9641
|
+
marginBottom: "24px !important",
|
|
9642
|
+
labelStyle: {
|
|
9643
|
+
marginLeft: "24px"
|
|
9644
|
+
},
|
|
9645
|
+
detailsStyle: {
|
|
9646
|
+
marginLeft: "24px"
|
|
9647
|
+
}
|
|
9648
|
+
}
|
|
9649
|
+
},
|
|
9650
|
+
elements: [
|
|
9651
|
+
{
|
|
9652
|
+
type: "Control",
|
|
9653
|
+
scope: "#/properties/value",
|
|
9654
|
+
options: {
|
|
9655
|
+
widget: "InputField"
|
|
9656
|
+
},
|
|
9657
|
+
config: {
|
|
9658
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9659
|
+
main: {
|
|
9660
|
+
label: "Value"
|
|
9431
9661
|
}
|
|
9432
|
-
|
|
9662
|
+
}
|
|
9663
|
+
},
|
|
9664
|
+
{
|
|
9665
|
+
type: "Control",
|
|
9666
|
+
scope: "#/properties/emptyBox",
|
|
9667
|
+
options: {
|
|
9668
|
+
widget: "EmptyBox"
|
|
9669
|
+
},
|
|
9670
|
+
config: {
|
|
9671
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 8 },
|
|
9672
|
+
main: {}
|
|
9673
|
+
}
|
|
9433
9674
|
}
|
|
9434
|
-
|
|
9675
|
+
]
|
|
9435
9676
|
}
|
|
9436
9677
|
]
|
|
9437
9678
|
};
|
|
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
9679
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9451
9680
|
return {
|
|
9452
9681
|
setPage: async function() {
|
|
9453
9682
|
const formdata = await this.getFormData();
|
|
9454
9683
|
store2.setFormdata(formdata);
|
|
9455
9684
|
const schema2 = await this.getSchema();
|
|
9685
|
+
console.log("SettingSchema>>", schema2);
|
|
9456
9686
|
store2.setSchema(schema2);
|
|
9457
9687
|
this.refreshPage(formdata.Handler, store2);
|
|
9458
9688
|
},
|
|
9459
9689
|
refreshPage: (handlerType, store22) => {
|
|
9690
|
+
var _a, _b, _c;
|
|
9460
9691
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9461
9692
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9462
9693
|
if (handlerType) {
|
|
9463
9694
|
if (handlerType === "custom") {
|
|
9464
|
-
uiSchema.elements[
|
|
9465
|
-
|
|
9695
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9696
|
+
"isSync",
|
|
9697
|
+
"Run in Sync",
|
|
9698
|
+
["Yes", "No"]
|
|
9699
|
+
);
|
|
9700
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9466
9701
|
type: "Control",
|
|
9467
9702
|
scope: "#/properties/emptyBox",
|
|
9468
9703
|
options: {
|
|
9469
9704
|
widget: "EmptyBox"
|
|
9470
9705
|
},
|
|
9471
9706
|
config: {
|
|
9472
|
-
layout: { xs:
|
|
9707
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9473
9708
|
main: {},
|
|
9474
9709
|
style: {}
|
|
9475
9710
|
}
|
|
9476
9711
|
};
|
|
9477
|
-
uiSchema.elements[
|
|
9712
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9713
|
+
"eventCode",
|
|
9714
|
+
"Write Custom Code",
|
|
9715
|
+
false
|
|
9716
|
+
);
|
|
9478
9717
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9479
9718
|
} else if (handlerType === "api") {
|
|
9480
|
-
uiSchema.elements[
|
|
9481
|
-
|
|
9719
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9720
|
+
xs: 0,
|
|
9721
|
+
sm: 0,
|
|
9722
|
+
md: 4,
|
|
9723
|
+
lg: 6
|
|
9724
|
+
});
|
|
9725
|
+
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9482
9726
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9483
9727
|
} else if (handlerType === "inBuiltFunction") {
|
|
9484
|
-
uiSchema.elements[
|
|
9485
|
-
|
|
9728
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9729
|
+
"inBuiltFunctionType",
|
|
9730
|
+
"Function Name"
|
|
9731
|
+
);
|
|
9732
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9486
9733
|
type: "Control",
|
|
9487
9734
|
scope: "#/properties/emptyBox",
|
|
9488
9735
|
options: {
|
|
9489
9736
|
widget: "EmptyBox"
|
|
9490
9737
|
},
|
|
9491
9738
|
config: {
|
|
9492
|
-
layout: { xs: 6, sm: 6, md: 0, lg:
|
|
9739
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9493
9740
|
main: {},
|
|
9494
9741
|
style: {}
|
|
9495
9742
|
}
|
|
9496
9743
|
};
|
|
9497
|
-
uiSchema.elements[
|
|
9744
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9745
|
+
"funcParametersCode",
|
|
9746
|
+
"Write Custom Code for Functions Parameter",
|
|
9747
|
+
true
|
|
9748
|
+
);
|
|
9498
9749
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9499
9750
|
} else if (handlerType === "refresh") {
|
|
9500
|
-
uiSchema.elements[
|
|
9501
|
-
|
|
9751
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9752
|
+
xs: 0,
|
|
9753
|
+
sm: 0,
|
|
9754
|
+
md: 4,
|
|
9755
|
+
lg: 6
|
|
9756
|
+
});
|
|
9757
|
+
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9502
9758
|
schema2.properties.refreshElements.required = ["value"];
|
|
9503
9759
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
9504
9760
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
@@ -9511,9 +9767,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9511
9767
|
];
|
|
9512
9768
|
}
|
|
9513
9769
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9514
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9770
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9771
|
+
uiSchema
|
|
9772
|
+
);
|
|
9515
9773
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9516
9774
|
}
|
|
9775
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9776
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9777
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9778
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9779
|
+
if (path) {
|
|
9780
|
+
const pathArrayAll = path.split(".");
|
|
9781
|
+
const arr = [];
|
|
9782
|
+
pathArrayAll.map((e, i) => {
|
|
9783
|
+
if (i === 0) {
|
|
9784
|
+
arr.push(e);
|
|
9785
|
+
return;
|
|
9786
|
+
}
|
|
9787
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9788
|
+
});
|
|
9789
|
+
arr.map((e) => {
|
|
9790
|
+
const data = _.get(config2, e);
|
|
9791
|
+
pathArray.push({
|
|
9792
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9793
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9794
|
+
});
|
|
9795
|
+
});
|
|
9796
|
+
}
|
|
9797
|
+
schema2.properties.pageName.path = pathArray;
|
|
9517
9798
|
store22.setSchema(schema2);
|
|
9518
9799
|
store22.setUiSchema(uiSchema);
|
|
9519
9800
|
},
|
|
@@ -9522,10 +9803,34 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9522
9803
|
return EventUiSchema;
|
|
9523
9804
|
},
|
|
9524
9805
|
getSchema: () => {
|
|
9806
|
+
var _a, _b, _c;
|
|
9525
9807
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9526
9808
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9527
9809
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9528
9810
|
}
|
|
9811
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9812
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9813
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9814
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9815
|
+
if (path) {
|
|
9816
|
+
const pathArrayAll = path.split(".");
|
|
9817
|
+
const arr = [];
|
|
9818
|
+
pathArrayAll.map((e, i) => {
|
|
9819
|
+
if (i === 0) {
|
|
9820
|
+
arr.push(e);
|
|
9821
|
+
return;
|
|
9822
|
+
}
|
|
9823
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9824
|
+
});
|
|
9825
|
+
arr.map((e) => {
|
|
9826
|
+
const data = _.get(config2, e);
|
|
9827
|
+
pathArray.push({
|
|
9828
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9829
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9830
|
+
});
|
|
9831
|
+
});
|
|
9832
|
+
}
|
|
9833
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9529
9834
|
return schema2;
|
|
9530
9835
|
},
|
|
9531
9836
|
okHandler: () => okHandler(store2),
|
|
@@ -9533,7 +9838,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9533
9838
|
onChange: function() {
|
|
9534
9839
|
var _a, _b, _c;
|
|
9535
9840
|
if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.Handler) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.Handler) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.Handler) !== void 0) {
|
|
9536
|
-
this.refreshPage(
|
|
9841
|
+
this.refreshPage(
|
|
9842
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9843
|
+
store2
|
|
9844
|
+
);
|
|
9537
9845
|
}
|
|
9538
9846
|
},
|
|
9539
9847
|
addEvent: function() {
|
|
@@ -9559,7 +9867,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9559
9867
|
this.setPage();
|
|
9560
9868
|
},
|
|
9561
9869
|
deleteEvent: async function() {
|
|
9562
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9870
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9871
|
+
false
|
|
9872
|
+
);
|
|
9563
9873
|
store2.updateDialog("popUpEvent");
|
|
9564
9874
|
},
|
|
9565
9875
|
backHandler: function() {
|
|
@@ -9571,10 +9881,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9571
9881
|
store2.updateDialog("popUpEvent");
|
|
9572
9882
|
},
|
|
9573
9883
|
copyPasteElement: function() {
|
|
9574
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9884
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9885
|
+
store2,
|
|
9886
|
+
this.setPage.bind(this)
|
|
9887
|
+
);
|
|
9575
9888
|
},
|
|
9576
9889
|
RemoveItemButton: function() {
|
|
9577
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9890
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9891
|
+
store2
|
|
9892
|
+
);
|
|
9578
9893
|
}
|
|
9579
9894
|
};
|
|
9580
9895
|
};
|
|
@@ -9745,16 +10060,17 @@ function executeCustomHandler(params) {
|
|
|
9745
10060
|
}
|
|
9746
10061
|
}
|
|
9747
10062
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10063
|
+
var _a, _b, _c;
|
|
9748
10064
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9749
10065
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9750
10066
|
store2.setSchema((pre) => {
|
|
9751
|
-
var
|
|
10067
|
+
var _a2;
|
|
9752
10068
|
return {
|
|
9753
10069
|
...pre,
|
|
9754
10070
|
properties: {
|
|
9755
10071
|
...pre.properties,
|
|
9756
10072
|
[componentName]: {
|
|
9757
|
-
...(
|
|
10073
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9758
10074
|
oneOf: handlerResponse.data
|
|
9759
10075
|
}
|
|
9760
10076
|
}
|
|
@@ -9764,13 +10080,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9764
10080
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9765
10081
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9766
10082
|
store2.setSchema((pre) => {
|
|
9767
|
-
var
|
|
10083
|
+
var _a2;
|
|
9768
10084
|
return {
|
|
9769
10085
|
...pre,
|
|
9770
10086
|
properties: {
|
|
9771
10087
|
...pre.properties,
|
|
9772
10088
|
[componentName]: {
|
|
9773
|
-
...(
|
|
10089
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9774
10090
|
type: "array",
|
|
9775
10091
|
items: {
|
|
9776
10092
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -9790,6 +10106,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9790
10106
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9791
10107
|
});
|
|
9792
10108
|
}
|
|
10109
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10110
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10111
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10112
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10113
|
+
store2.setFormdata((pre) => {
|
|
10114
|
+
return { ...pre, ...formDataHolder };
|
|
10115
|
+
});
|
|
10116
|
+
}
|
|
9793
10117
|
} else {
|
|
9794
10118
|
if (handlerResponse) {
|
|
9795
10119
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -10095,7 +10419,7 @@ var service = (funcParams) => {
|
|
|
10095
10419
|
service: funcParams.service,
|
|
10096
10420
|
serviceHolder: this,
|
|
10097
10421
|
eventGroups,
|
|
10098
|
-
formDataHolder
|
|
10422
|
+
formDataHolder: {}
|
|
10099
10423
|
});
|
|
10100
10424
|
funcParams.store.setSchema(
|
|
10101
10425
|
(pre) => {
|
|
@@ -10110,11 +10434,11 @@ var service = (funcParams) => {
|
|
|
10110
10434
|
funcParams.store.setUiSchema(uiSchema);
|
|
10111
10435
|
},
|
|
10112
10436
|
onCellRenderer: (cellParams) => {
|
|
10113
|
-
var _a, _b, _c;
|
|
10437
|
+
var _a, _b, _c, _d;
|
|
10114
10438
|
if (eventGroups.onCellRenderer) {
|
|
10115
10439
|
let finalResponse = {};
|
|
10116
10440
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
|
|
10117
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
10441
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10118
10442
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10119
10443
|
finalResponse = executeEvents({
|
|
10120
10444
|
...executeEventsParameters,
|
|
@@ -10718,6 +11042,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10718
11042
|
if (config2.style) {
|
|
10719
11043
|
inputField.config.style = JSON.parse(config2.style);
|
|
10720
11044
|
}
|
|
11045
|
+
if (config2.multiline) {
|
|
11046
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11047
|
+
}
|
|
10721
11048
|
if (config2.InputFormatingAndMasking) {
|
|
10722
11049
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10723
11050
|
}
|
|
@@ -11554,6 +11881,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11554
11881
|
}
|
|
11555
11882
|
return Radio;
|
|
11556
11883
|
};
|
|
11884
|
+
var emptyBox = {
|
|
11885
|
+
type: "Control",
|
|
11886
|
+
scope: "#/properties/emptyBox",
|
|
11887
|
+
options: {
|
|
11888
|
+
widget: "EmptyBox"
|
|
11889
|
+
},
|
|
11890
|
+
config: {
|
|
11891
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11892
|
+
main: {},
|
|
11893
|
+
style: {}
|
|
11894
|
+
}
|
|
11895
|
+
};
|
|
11557
11896
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11558
11897
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11559
11898
|
if (config2.layout) {
|
|
@@ -12231,19 +12570,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12231
12570
|
});
|
|
12232
12571
|
} else if (config2.type == "Table") {
|
|
12233
12572
|
const sizeMap = {};
|
|
12234
|
-
const filterMap = {};
|
|
12235
12573
|
if (config2.sizeHolder) {
|
|
12236
12574
|
config2.sizeHolder.map((e, i) => {
|
|
12237
12575
|
sizeMap[e.keyName] = e.value;
|
|
12238
12576
|
});
|
|
12239
12577
|
}
|
|
12240
|
-
if (config2.enableColumnFilter) {
|
|
12241
|
-
config2.enableColumnFilter.map((e) => {
|
|
12242
|
-
filterMap[e.keyName] = true;
|
|
12243
|
-
});
|
|
12244
|
-
}
|
|
12245
12578
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12246
|
-
var _a, _b;
|
|
12247
12579
|
if (cellElem.type) {
|
|
12248
12580
|
return {
|
|
12249
12581
|
accessorKey: cellElem.name,
|
|
@@ -12252,8 +12584,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12252
12584
|
type: cellElem.columnFormat,
|
|
12253
12585
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12254
12586
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12255
|
-
|
|
12256
|
-
|
|
12587
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12588
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12589
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12257
12590
|
};
|
|
12258
12591
|
} else {
|
|
12259
12592
|
return {
|
|
@@ -12261,8 +12594,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12261
12594
|
type: cellElem.columnFormat,
|
|
12262
12595
|
header: cellElem.label || cellElem.name,
|
|
12263
12596
|
size: sizeMap[cellElem.name] || 180,
|
|
12264
|
-
|
|
12265
|
-
|
|
12597
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12598
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12599
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12266
12600
|
};
|
|
12267
12601
|
}
|
|
12268
12602
|
});
|