impaktapps-ui-builder 0.0.101-alpha.8 → 0.0.101-alpha.80
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 +1131 -833
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +62 -59
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +17 -21
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +98 -95
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +26 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +52 -38
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +7 -8
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +29 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +56 -37
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +56 -36
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +6 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +14 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +111 -96
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +101 -95
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +189 -110
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +39 -17
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +44 -44
- package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +9 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +40 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +117 -48
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +113 -45
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +23 -23
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +118 -58
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +29 -30
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +187 -299
- package/src/impaktapps-ui-builder/builder/services/component.ts +144 -32
- package/src/impaktapps-ui-builder/builder/services/event.ts +167 -65
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -4
|
@@ -182,7 +182,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
182
182
|
main: {
|
|
183
183
|
onClick: "copyPasteElement",
|
|
184
184
|
size: "small",
|
|
185
|
-
icon: "
|
|
185
|
+
icon: "TablePaste",
|
|
186
186
|
iconLabel: "Paste",
|
|
187
187
|
styleDefault: true
|
|
188
188
|
},
|
|
@@ -339,7 +339,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
339
339
|
main: {
|
|
340
340
|
onClick: "copyPasteElement",
|
|
341
341
|
size: "small",
|
|
342
|
-
icon: "
|
|
342
|
+
icon: "TablePaste",
|
|
343
343
|
iconLabel: "Paste",
|
|
344
344
|
styleDefault: true
|
|
345
345
|
},
|
|
@@ -365,19 +365,19 @@ const PageMasterUiSchema = (theme) => {
|
|
|
365
365
|
elements: [
|
|
366
366
|
{
|
|
367
367
|
accessorKey: "eventType",
|
|
368
|
-
header: "Event Type",
|
|
368
|
+
header: "Event's Type",
|
|
369
369
|
size: 300,
|
|
370
370
|
type: "string"
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
accessorKey: "Handler",
|
|
374
374
|
header: "Handler",
|
|
375
|
-
size:
|
|
375
|
+
size: 200,
|
|
376
376
|
type: "string"
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
accessorKey: "Edit_Approve_Records",
|
|
380
|
-
header: "Edit
|
|
380
|
+
header: "Edit",
|
|
381
381
|
type: "action",
|
|
382
382
|
size: 150,
|
|
383
383
|
widget: {
|
|
@@ -405,6 +405,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
405
405
|
{
|
|
406
406
|
accessorKey: "Reject_Records",
|
|
407
407
|
header: "Delete",
|
|
408
|
+
type: "action",
|
|
409
|
+
size: 150,
|
|
408
410
|
widget: {
|
|
409
411
|
type: "Control",
|
|
410
412
|
scope: "#/properties/RejectButton",
|
|
@@ -429,7 +431,8 @@ const PageMasterUiSchema = (theme) => {
|
|
|
429
431
|
{
|
|
430
432
|
header: "Copy",
|
|
431
433
|
field: "Copy_Event",
|
|
432
|
-
|
|
434
|
+
type: "action",
|
|
435
|
+
size: 150,
|
|
433
436
|
widget: {
|
|
434
437
|
type: "Control",
|
|
435
438
|
scope: "#/properties/Copy_Event",
|
|
@@ -474,7 +477,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
474
477
|
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
475
478
|
main: {
|
|
476
479
|
name: "Save",
|
|
477
|
-
startIcon: "ApproveIcon",
|
|
478
480
|
variant: "contained",
|
|
479
481
|
type: "text",
|
|
480
482
|
onClick: "saveHandler",
|
|
@@ -525,12 +527,12 @@ const PageMasterUiSchema = (theme) => {
|
|
|
525
527
|
heading: "Are you sure you want to delete ?"
|
|
526
528
|
},
|
|
527
529
|
style: {
|
|
528
|
-
marginTop: "-20px",
|
|
529
530
|
fontSize: "20px",
|
|
530
531
|
"&.MuiTypography-root": {
|
|
531
|
-
padding: "
|
|
532
|
+
padding: "0px 20px",
|
|
532
533
|
textAlign: "center",
|
|
533
|
-
lineHeight: "1"
|
|
534
|
+
lineHeight: "1",
|
|
535
|
+
marginBottom: theme.spacing(5)
|
|
534
536
|
}
|
|
535
537
|
}
|
|
536
538
|
}
|
|
@@ -552,27 +554,26 @@ const PageMasterUiSchema = (theme) => {
|
|
|
552
554
|
layout: 6,
|
|
553
555
|
main: {
|
|
554
556
|
name: "No",
|
|
555
|
-
startIcon: "ApproveIcon",
|
|
556
557
|
variant: "contained",
|
|
557
|
-
color: "info",
|
|
558
558
|
type: "text",
|
|
559
559
|
onClick: "deletePopUpComponent",
|
|
560
560
|
size: "large"
|
|
561
561
|
},
|
|
562
562
|
style: {
|
|
563
563
|
position: "absolute",
|
|
564
|
+
padding: "10px 0px",
|
|
564
565
|
bottom: 0,
|
|
565
566
|
left: 0,
|
|
566
567
|
width: "50%",
|
|
567
568
|
borderRadius: 0,
|
|
568
569
|
boxShadow: 0,
|
|
569
570
|
backgroundColor: "transparent",
|
|
570
|
-
color: theme.palette.primary.main,
|
|
571
|
-
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
572
|
-
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
571
|
+
color: theme.myTheme.palette.primary.main,
|
|
572
|
+
borderTop: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
573
|
+
borderRight: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
573
574
|
"&:hover": {
|
|
574
|
-
color: theme.palette.primary.contrastText,
|
|
575
|
-
backgroundColor: theme.palette.primary.main,
|
|
575
|
+
color: theme.myTheme.palette.primary.contrastText,
|
|
576
|
+
backgroundColor: theme.myTheme.palette.primary.main,
|
|
576
577
|
boxShadow: "none"
|
|
577
578
|
}
|
|
578
579
|
}
|
|
@@ -588,7 +589,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
588
589
|
layout: 6,
|
|
589
590
|
main: {
|
|
590
591
|
name: "Yes",
|
|
591
|
-
startIcon: "ApproveIcon",
|
|
592
592
|
variant: "contained",
|
|
593
593
|
color: "error",
|
|
594
594
|
type: "text",
|
|
@@ -597,6 +597,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
597
597
|
},
|
|
598
598
|
style: {
|
|
599
599
|
position: "absolute",
|
|
600
|
+
padding: "10px 0px",
|
|
600
601
|
bottom: 0,
|
|
601
602
|
right: 0,
|
|
602
603
|
width: "50%",
|
|
@@ -648,12 +649,12 @@ const PageMasterUiSchema = (theme) => {
|
|
|
648
649
|
heading: "Are you sure you want to delete ?"
|
|
649
650
|
},
|
|
650
651
|
style: {
|
|
651
|
-
marginTop: "-20px",
|
|
652
652
|
fontSize: "20px",
|
|
653
653
|
"&.MuiTypography-root": {
|
|
654
|
-
padding: "
|
|
654
|
+
padding: "0px 20px",
|
|
655
655
|
textAlign: "center",
|
|
656
|
-
lineHeight: "1"
|
|
656
|
+
lineHeight: "1",
|
|
657
|
+
marginBottom: theme.spacing(5)
|
|
657
658
|
}
|
|
658
659
|
}
|
|
659
660
|
}
|
|
@@ -675,27 +676,26 @@ const PageMasterUiSchema = (theme) => {
|
|
|
675
676
|
layout: 6,
|
|
676
677
|
main: {
|
|
677
678
|
name: "No",
|
|
678
|
-
startIcon: "ApproveIcon",
|
|
679
679
|
variant: "contained",
|
|
680
|
-
color: "info",
|
|
681
680
|
type: "text",
|
|
682
681
|
onClick: "deletePopUpEvent",
|
|
683
682
|
size: "large"
|
|
684
683
|
},
|
|
685
684
|
style: {
|
|
686
685
|
position: "absolute",
|
|
686
|
+
padding: "10px 0px",
|
|
687
687
|
bottom: 0,
|
|
688
688
|
left: 0,
|
|
689
689
|
width: "50%",
|
|
690
690
|
borderRadius: 0,
|
|
691
691
|
boxShadow: 0,
|
|
692
692
|
backgroundColor: "transparent",
|
|
693
|
-
color: theme.palette.primary.main,
|
|
694
|
-
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
695
|
-
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
693
|
+
color: theme.myTheme.palette.primary.main,
|
|
694
|
+
borderTop: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
695
|
+
borderRight: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
696
696
|
"&:hover": {
|
|
697
|
-
color: theme.palette.primary.contrastText,
|
|
698
|
-
backgroundColor: theme.palette.primary.main,
|
|
697
|
+
color: theme.myTheme.palette.primary.contrastText,
|
|
698
|
+
backgroundColor: theme.myTheme.palette.primary.main,
|
|
699
699
|
boxShadow: "none"
|
|
700
700
|
}
|
|
701
701
|
}
|
|
@@ -711,7 +711,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
711
711
|
layout: 6,
|
|
712
712
|
main: {
|
|
713
713
|
name: "Yes",
|
|
714
|
-
startIcon: "ApproveIcon",
|
|
715
714
|
variant: "contained",
|
|
716
715
|
color: "error",
|
|
717
716
|
type: "text",
|
|
@@ -720,6 +719,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
720
719
|
},
|
|
721
720
|
style: {
|
|
722
721
|
position: "absolute",
|
|
722
|
+
padding: "10px 0px",
|
|
723
723
|
bottom: 0,
|
|
724
724
|
right: 0,
|
|
725
725
|
width: "50%",
|
|
@@ -6241,44 +6241,44 @@ const ComponentSchema = {
|
|
|
6241
6241
|
properties: {
|
|
6242
6242
|
type: {
|
|
6243
6243
|
oneOf: [
|
|
6244
|
-
{ title: "
|
|
6244
|
+
{ title: "Masked Aadhaar", const: "AadharcardText" },
|
|
6245
6245
|
{ title: "Array", const: "Array" },
|
|
6246
6246
|
{ title: "Button", const: "Button" },
|
|
6247
|
-
{ title: "Card", const: "card" },
|
|
6248
|
-
{ title: "
|
|
6247
|
+
{ title: "Data Card", const: "card" },
|
|
6248
|
+
{ title: "Check Box", const: "CheckBox" },
|
|
6249
6249
|
{ title: "Container", const: "WrapperSection" },
|
|
6250
|
-
{ title: "
|
|
6250
|
+
{ title: "Data Grid", const: "DataGrid" },
|
|
6251
6251
|
{ title: "Date", const: "Date" },
|
|
6252
|
-
{ title: "
|
|
6253
|
-
{ title: "Download
|
|
6252
|
+
{ title: "Time Stamp", const: "DateTime" },
|
|
6253
|
+
{ title: "Download", const: "DownloadFile" },
|
|
6254
6254
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6255
|
-
{ title: "File", const: "FileInput" },
|
|
6255
|
+
{ title: "File Handler", const: "FileInput" },
|
|
6256
6256
|
{ title: "Graph", const: "Graph" },
|
|
6257
6257
|
{ title: "Input Slider", const: "InputSlider" },
|
|
6258
6258
|
{ title: "Label", const: "Box" },
|
|
6259
|
-
{ title: "
|
|
6260
|
-
{ title: "
|
|
6261
|
-
{ title: "
|
|
6262
|
-
{ title: "
|
|
6263
|
-
{ title: "
|
|
6264
|
-
{ title: "
|
|
6265
|
-
{ title: "
|
|
6259
|
+
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6260
|
+
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6261
|
+
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6262
|
+
{ title: "Pop Up", const: "PopUp" },
|
|
6263
|
+
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6264
|
+
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6265
|
+
{ title: "Dropdown", const: "Select" },
|
|
6266
6266
|
{ title: "Slider", const: "Slider" },
|
|
6267
|
-
{ title: "
|
|
6267
|
+
{ title: "Speedometer", const: "SpeedoMeter" },
|
|
6268
6268
|
{ title: "Stepper Container", const: "Stepper" },
|
|
6269
6269
|
{ title: "Radio", const: "Radio" },
|
|
6270
6270
|
{ title: "Rank", const: "Rank" },
|
|
6271
6271
|
{ title: "Rank Card", const: "RankCard" },
|
|
6272
|
-
{ title: "Runner Boy
|
|
6272
|
+
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6273
6273
|
{ title: "Table", const: "Table" },
|
|
6274
6274
|
{ title: "Tabs", const: "TabSection" },
|
|
6275
6275
|
{ title: "Text", const: "Text" },
|
|
6276
6276
|
{ title: "Text Area", const: "TextArea" },
|
|
6277
6277
|
{ title: "Timer", const: "Timer" },
|
|
6278
|
-
{ title: "Upload
|
|
6279
|
-
{ title: "
|
|
6280
|
-
{ title: "
|
|
6281
|
-
{ title: "Thought of the
|
|
6278
|
+
{ title: "Upload", const: "UploadFile" },
|
|
6279
|
+
{ title: "Tree ", const: "TreeMap" },
|
|
6280
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6281
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6282
6282
|
{ title: "Pdf Viewer", const: "PdfViewer" }
|
|
6283
6283
|
]
|
|
6284
6284
|
},
|
|
@@ -6433,23 +6433,20 @@ const ComponentSchema = {
|
|
|
6433
6433
|
}
|
|
6434
6434
|
},
|
|
6435
6435
|
filteringOptions: {
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6451
|
-
]
|
|
6452
|
-
}
|
|
6436
|
+
oneOf: [
|
|
6437
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6438
|
+
{ const: "contains", title: "Contain" },
|
|
6439
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6440
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6441
|
+
{ const: "equals", title: "Equals" },
|
|
6442
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6443
|
+
{ const: "between", title: "Between" },
|
|
6444
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6445
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6446
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6447
|
+
{ const: "lessThan", title: "Less than" },
|
|
6448
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6449
|
+
]
|
|
6453
6450
|
},
|
|
6454
6451
|
legendLabels: {
|
|
6455
6452
|
type: "array",
|
|
@@ -6565,6 +6562,9 @@ const ComponentSchema = {
|
|
|
6565
6562
|
{ title: "Info", const: "info" }
|
|
6566
6563
|
]
|
|
6567
6564
|
},
|
|
6565
|
+
pageName: {
|
|
6566
|
+
path: []
|
|
6567
|
+
},
|
|
6568
6568
|
name: {
|
|
6569
6569
|
type: "string"
|
|
6570
6570
|
},
|
|
@@ -6607,7 +6607,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6607
6607
|
type: "WrapperLayout",
|
|
6608
6608
|
config: {
|
|
6609
6609
|
main: {
|
|
6610
|
-
label: "",
|
|
6610
|
+
label: " ",
|
|
6611
6611
|
gap: "8px"
|
|
6612
6612
|
}
|
|
6613
6613
|
},
|
|
@@ -6645,8 +6645,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6645
6645
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
6646
6646
|
main: {
|
|
6647
6647
|
label: "Component ID",
|
|
6648
|
-
options: [],
|
|
6649
|
-
color: "secondary",
|
|
6650
6648
|
required: true
|
|
6651
6649
|
}
|
|
6652
6650
|
}
|
|
@@ -6747,48 +6745,58 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6747
6745
|
]
|
|
6748
6746
|
},
|
|
6749
6747
|
{
|
|
6750
|
-
type: "
|
|
6751
|
-
scope: "#/properties/btn",
|
|
6752
|
-
options: {
|
|
6753
|
-
widget: "Button"
|
|
6754
|
-
},
|
|
6748
|
+
type: "WrapperLayout",
|
|
6755
6749
|
config: {
|
|
6756
|
-
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6757
6750
|
main: {
|
|
6758
|
-
|
|
6759
|
-
variant: "contained",
|
|
6760
|
-
type: "text",
|
|
6761
|
-
onClick: "okHandler",
|
|
6762
|
-
size: "medium"
|
|
6751
|
+
gap: "8px"
|
|
6763
6752
|
}
|
|
6764
|
-
}
|
|
6765
|
-
},
|
|
6766
|
-
{
|
|
6767
|
-
type: "Control",
|
|
6768
|
-
scope: "#/properties/btnSubmit",
|
|
6769
|
-
options: {
|
|
6770
|
-
widget: "Button"
|
|
6771
6753
|
},
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6754
|
+
elements: [
|
|
6755
|
+
{
|
|
6756
|
+
type: "Control",
|
|
6757
|
+
scope: "#/properties/btn",
|
|
6758
|
+
options: {
|
|
6759
|
+
widget: "Button"
|
|
6760
|
+
},
|
|
6761
|
+
config: {
|
|
6762
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6763
|
+
main: {
|
|
6764
|
+
name: "Ok",
|
|
6765
|
+
variant: "contained",
|
|
6766
|
+
type: "text",
|
|
6767
|
+
onClick: "okHandler",
|
|
6768
|
+
size: "medium"
|
|
6769
|
+
}
|
|
6770
|
+
}
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
6773
|
+
type: "Control",
|
|
6774
|
+
scope: "#/properties/btnSubmit",
|
|
6775
|
+
options: {
|
|
6776
|
+
widget: "Button"
|
|
6777
|
+
},
|
|
6778
|
+
config: {
|
|
6779
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6780
|
+
main: {
|
|
6781
|
+
name: "Save & Exit",
|
|
6782
|
+
variant: "contained",
|
|
6783
|
+
type: "text",
|
|
6784
|
+
onClick: "saveHandler",
|
|
6785
|
+
size: "medium"
|
|
6786
|
+
}
|
|
6787
|
+
}
|
|
6788
|
+
},
|
|
6789
|
+
{
|
|
6790
|
+
type: "Control",
|
|
6791
|
+
scope: "#/properties/EmptyBox",
|
|
6792
|
+
config: {
|
|
6793
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6794
|
+
},
|
|
6795
|
+
options: {
|
|
6796
|
+
widget: "EmptyBox"
|
|
6797
|
+
}
|
|
6780
6798
|
}
|
|
6781
|
-
|
|
6782
|
-
},
|
|
6783
|
-
{
|
|
6784
|
-
type: "Control",
|
|
6785
|
-
scope: "#/properties/EmptyBox",
|
|
6786
|
-
config: {
|
|
6787
|
-
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6788
|
-
},
|
|
6789
|
-
options: {
|
|
6790
|
-
widget: "EmptyBox"
|
|
6791
|
-
}
|
|
6799
|
+
]
|
|
6792
6800
|
},
|
|
6793
6801
|
{
|
|
6794
6802
|
type: "Control",
|
|
@@ -6821,12 +6829,12 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6821
6829
|
heading: "Are you sure you want to delete ?"
|
|
6822
6830
|
},
|
|
6823
6831
|
style: {
|
|
6824
|
-
marginTop: "-20px",
|
|
6825
6832
|
fontSize: "20px",
|
|
6826
6833
|
"&.MuiTypography-root": {
|
|
6827
|
-
padding: "
|
|
6834
|
+
padding: "0px 20px",
|
|
6828
6835
|
textAlign: "center",
|
|
6829
|
-
lineHeight: "1"
|
|
6836
|
+
lineHeight: "1",
|
|
6837
|
+
marginBottom: theme.spacing(5)
|
|
6830
6838
|
}
|
|
6831
6839
|
}
|
|
6832
6840
|
}
|
|
@@ -6855,18 +6863,19 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6855
6863
|
},
|
|
6856
6864
|
style: {
|
|
6857
6865
|
position: "absolute",
|
|
6866
|
+
padding: "10px 0px",
|
|
6858
6867
|
bottom: 0,
|
|
6859
6868
|
left: 0,
|
|
6860
6869
|
width: "50%",
|
|
6861
6870
|
borderRadius: 0,
|
|
6862
6871
|
boxShadow: 0,
|
|
6863
6872
|
backgroundColor: "transparent",
|
|
6864
|
-
color: theme.palette.primary.main,
|
|
6865
|
-
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
6866
|
-
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
6873
|
+
color: theme.myTheme.palette.primary.main,
|
|
6874
|
+
borderTop: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
6875
|
+
borderRight: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
6867
6876
|
"&:hover": {
|
|
6868
|
-
color: theme.palette.primary.contrastText,
|
|
6869
|
-
backgroundColor: theme.palette.primary.main,
|
|
6877
|
+
color: theme.myTheme.palette.primary.contrastText,
|
|
6878
|
+
backgroundColor: theme.myTheme.palette.primary.main,
|
|
6870
6879
|
boxShadow: "none"
|
|
6871
6880
|
}
|
|
6872
6881
|
}
|
|
@@ -6890,6 +6899,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6890
6899
|
},
|
|
6891
6900
|
style: {
|
|
6892
6901
|
position: "absolute",
|
|
6902
|
+
padding: "10px 0px",
|
|
6893
6903
|
bottom: 0,
|
|
6894
6904
|
right: 0,
|
|
6895
6905
|
width: "50%",
|
|
@@ -6941,12 +6951,12 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6941
6951
|
heading: "Are you sure you want to delete ?"
|
|
6942
6952
|
},
|
|
6943
6953
|
style: {
|
|
6944
|
-
marginTop: "-20px",
|
|
6945
6954
|
fontSize: "20px",
|
|
6946
6955
|
"&.MuiTypography-root": {
|
|
6947
|
-
padding: "
|
|
6956
|
+
padding: "0px 20px",
|
|
6948
6957
|
textAlign: "center",
|
|
6949
|
-
lineHeight: "1"
|
|
6958
|
+
lineHeight: "1",
|
|
6959
|
+
marginBottom: theme.spacing(5)
|
|
6950
6960
|
}
|
|
6951
6961
|
}
|
|
6952
6962
|
}
|
|
@@ -6975,18 +6985,19 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6975
6985
|
},
|
|
6976
6986
|
style: {
|
|
6977
6987
|
position: "absolute",
|
|
6988
|
+
padding: "10px 0px",
|
|
6978
6989
|
bottom: 0,
|
|
6979
6990
|
left: 0,
|
|
6980
6991
|
width: "50%",
|
|
6981
6992
|
borderRadius: 0,
|
|
6982
6993
|
boxShadow: 0,
|
|
6983
6994
|
backgroundColor: "transparent",
|
|
6984
|
-
color: theme.palette.primary.main,
|
|
6985
|
-
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
6986
|
-
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
6995
|
+
color: theme.myTheme.palette.primary.main,
|
|
6996
|
+
borderTop: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
6997
|
+
borderRight: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
6987
6998
|
"&:hover": {
|
|
6988
|
-
color: theme.palette.primary.contrastText,
|
|
6989
|
-
backgroundColor: theme.palette.primary.main,
|
|
6999
|
+
color: theme.myTheme.palette.primary.contrastText,
|
|
7000
|
+
backgroundColor: theme.myTheme.palette.primary.main,
|
|
6990
7001
|
boxShadow: "none"
|
|
6991
7002
|
}
|
|
6992
7003
|
}
|
|
@@ -7010,6 +7021,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7010
7021
|
},
|
|
7011
7022
|
style: {
|
|
7012
7023
|
position: "absolute",
|
|
7024
|
+
padding: "10px 0px",
|
|
7013
7025
|
bottom: 0,
|
|
7014
7026
|
right: 0,
|
|
7015
7027
|
width: "50%",
|
|
@@ -7030,6 +7042,26 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7030
7042
|
}
|
|
7031
7043
|
]
|
|
7032
7044
|
},
|
|
7045
|
+
{
|
|
7046
|
+
type: "Control",
|
|
7047
|
+
scope: "#/properties/pageName",
|
|
7048
|
+
options: {
|
|
7049
|
+
widget: "Breadcrumb"
|
|
7050
|
+
},
|
|
7051
|
+
config: {
|
|
7052
|
+
layout: 12,
|
|
7053
|
+
main: {},
|
|
7054
|
+
style: {
|
|
7055
|
+
paddingLeft: theme.spacing(3),
|
|
7056
|
+
color: theme.palette.grey[600],
|
|
7057
|
+
fontSize: "10px",
|
|
7058
|
+
position: "fixed",
|
|
7059
|
+
bottom: "24px",
|
|
7060
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7061
|
+
borderTop: `1px solid ${theme.palette.common.black}29`
|
|
7062
|
+
}
|
|
7063
|
+
}
|
|
7064
|
+
},
|
|
7033
7065
|
{
|
|
7034
7066
|
type: "Control",
|
|
7035
7067
|
scope: "#/properties/notify",
|
|
@@ -7087,7 +7119,13 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7087
7119
|
return uiSchema;
|
|
7088
7120
|
};
|
|
7089
7121
|
const CoreSection = {
|
|
7090
|
-
type: "
|
|
7122
|
+
type: "WrapperLayout",
|
|
7123
|
+
config: {
|
|
7124
|
+
main: {
|
|
7125
|
+
label: " ",
|
|
7126
|
+
gap: "8px"
|
|
7127
|
+
}
|
|
7128
|
+
},
|
|
7091
7129
|
elements: [
|
|
7092
7130
|
{
|
|
7093
7131
|
type: "Control",
|
|
@@ -7096,7 +7134,7 @@ const CoreSection = {
|
|
|
7096
7134
|
widget: "SelectInputField"
|
|
7097
7135
|
},
|
|
7098
7136
|
config: {
|
|
7099
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7137
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7100
7138
|
main: {
|
|
7101
7139
|
label: "Type",
|
|
7102
7140
|
type: "text"
|
|
@@ -7105,40 +7143,39 @@ const CoreSection = {
|
|
|
7105
7143
|
},
|
|
7106
7144
|
{
|
|
7107
7145
|
type: "Control",
|
|
7108
|
-
scope: "#/properties/
|
|
7109
|
-
options: {
|
|
7110
|
-
widget: "InputField"
|
|
7111
|
-
},
|
|
7146
|
+
scope: "#/properties/proc",
|
|
7112
7147
|
config: {
|
|
7113
|
-
layout: { xs: 6, sm:
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7148
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
7149
|
+
},
|
|
7150
|
+
options: {
|
|
7151
|
+
widget: "EmptyBox"
|
|
7117
7152
|
}
|
|
7118
7153
|
},
|
|
7119
7154
|
{
|
|
7120
7155
|
type: "Control",
|
|
7121
|
-
scope: "#/properties/
|
|
7156
|
+
scope: "#/properties/name",
|
|
7122
7157
|
options: {
|
|
7123
7158
|
widget: "InputField"
|
|
7124
7159
|
},
|
|
7125
7160
|
config: {
|
|
7126
|
-
layout: { xs:
|
|
7161
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7127
7162
|
main: {
|
|
7128
|
-
label: "
|
|
7163
|
+
label: "Component ID",
|
|
7164
|
+
required: true
|
|
7129
7165
|
}
|
|
7130
7166
|
}
|
|
7131
7167
|
},
|
|
7132
7168
|
{
|
|
7133
7169
|
type: "Control",
|
|
7134
|
-
scope: "#/properties/
|
|
7170
|
+
scope: "#/properties/label",
|
|
7135
7171
|
options: {
|
|
7136
|
-
widget: "
|
|
7172
|
+
widget: "InputField"
|
|
7137
7173
|
},
|
|
7138
7174
|
config: {
|
|
7139
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7175
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7140
7176
|
main: {
|
|
7141
|
-
label: "
|
|
7177
|
+
label: "Label",
|
|
7178
|
+
required: true
|
|
7142
7179
|
}
|
|
7143
7180
|
}
|
|
7144
7181
|
},
|
|
@@ -7146,17 +7183,7 @@ const CoreSection = {
|
|
|
7146
7183
|
type: "Control",
|
|
7147
7184
|
scope: "#/properties/proc",
|
|
7148
7185
|
config: {
|
|
7149
|
-
layout: { xs:
|
|
7150
|
-
},
|
|
7151
|
-
options: {
|
|
7152
|
-
widget: "EmptyBox"
|
|
7153
|
-
}
|
|
7154
|
-
},
|
|
7155
|
-
{
|
|
7156
|
-
type: "Control",
|
|
7157
|
-
scope: "#/properties/proc",
|
|
7158
|
-
config: {
|
|
7159
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7186
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7160
7187
|
},
|
|
7161
7188
|
options: {
|
|
7162
7189
|
widget: "EmptyBox"
|
|
@@ -7165,54 +7192,67 @@ const CoreSection = {
|
|
|
7165
7192
|
{
|
|
7166
7193
|
type: "Control",
|
|
7167
7194
|
scope: "#/properties/layout",
|
|
7168
|
-
layout: 12,
|
|
7169
7195
|
options: {
|
|
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
|
-
{
|
|
7204
|
-
type: "Control",
|
|
7205
|
-
scope: "#/properties/proc",
|
|
7206
|
-
config: {
|
|
7207
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7208
|
-
},
|
|
7209
|
-
options: {
|
|
7210
|
-
widget: "EmptyBox"
|
|
7211
|
-
}
|
|
7196
|
+
widget: "Array"
|
|
7197
|
+
},
|
|
7198
|
+
config: {
|
|
7199
|
+
layout: 12,
|
|
7200
|
+
main: {
|
|
7201
|
+
label: "Layout",
|
|
7202
|
+
childElementLabel: "Layout"
|
|
7203
|
+
},
|
|
7204
|
+
style: {
|
|
7205
|
+
marginLeft: "-24px",
|
|
7206
|
+
marginBottom: "24px !important",
|
|
7207
|
+
labelStyle: {
|
|
7208
|
+
marginLeft: "24px"
|
|
7209
|
+
},
|
|
7210
|
+
detailsStyle: {
|
|
7211
|
+
marginLeft: "24px"
|
|
7212
|
+
}
|
|
7213
|
+
}
|
|
7214
|
+
},
|
|
7215
|
+
elements: [
|
|
7216
|
+
{
|
|
7217
|
+
type: "Control",
|
|
7218
|
+
scope: "#/properties/key",
|
|
7219
|
+
options: {
|
|
7220
|
+
widget: "SelectInputField"
|
|
7221
|
+
},
|
|
7222
|
+
config: {
|
|
7223
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7224
|
+
main: {
|
|
7225
|
+
label: "Screen Size"
|
|
7212
7226
|
}
|
|
7213
|
-
|
|
7227
|
+
}
|
|
7228
|
+
},
|
|
7229
|
+
{
|
|
7230
|
+
type: "Control",
|
|
7231
|
+
scope: "#/properties/value",
|
|
7232
|
+
options: {
|
|
7233
|
+
widget: "InputField"
|
|
7234
|
+
},
|
|
7235
|
+
config: {
|
|
7236
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7237
|
+
main: {
|
|
7238
|
+
label: "Value",
|
|
7239
|
+
type: "number",
|
|
7240
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7241
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7242
|
+
}
|
|
7243
|
+
}
|
|
7244
|
+
},
|
|
7245
|
+
{
|
|
7246
|
+
type: "Control",
|
|
7247
|
+
scope: "#/properties/proc",
|
|
7248
|
+
config: {
|
|
7249
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7250
|
+
},
|
|
7251
|
+
options: {
|
|
7252
|
+
widget: "EmptyBox"
|
|
7253
|
+
}
|
|
7214
7254
|
}
|
|
7215
|
-
|
|
7255
|
+
]
|
|
7216
7256
|
}
|
|
7217
7257
|
]
|
|
7218
7258
|
};
|
|
@@ -7239,15 +7279,20 @@ const EventSection = (theme) => {
|
|
|
7239
7279
|
},
|
|
7240
7280
|
config: {
|
|
7241
7281
|
main: {
|
|
7242
|
-
color: "info",
|
|
7243
7282
|
onClick: "eventAddHandler",
|
|
7244
7283
|
size: "small",
|
|
7245
|
-
icon: "
|
|
7246
|
-
iconLabel: "Add
|
|
7284
|
+
icon: "TableAddIcon",
|
|
7285
|
+
iconLabel: "Add",
|
|
7247
7286
|
styleDefault: true
|
|
7248
7287
|
},
|
|
7249
7288
|
style: {
|
|
7250
|
-
mt: "6px"
|
|
7289
|
+
mt: "6px",
|
|
7290
|
+
color: "inherit",
|
|
7291
|
+
fill: "inherit",
|
|
7292
|
+
"&:hover": {
|
|
7293
|
+
color: "inherit",
|
|
7294
|
+
fill: "inherit"
|
|
7295
|
+
}
|
|
7251
7296
|
}
|
|
7252
7297
|
}
|
|
7253
7298
|
}
|
|
@@ -7263,12 +7308,18 @@ const EventSection = (theme) => {
|
|
|
7263
7308
|
main: {
|
|
7264
7309
|
onClick: "copyPasteElement",
|
|
7265
7310
|
size: "small",
|
|
7266
|
-
icon: "
|
|
7311
|
+
icon: "TablePaste",
|
|
7267
7312
|
iconLabel: "Paste",
|
|
7268
7313
|
styleDefault: true
|
|
7269
7314
|
},
|
|
7270
7315
|
style: {
|
|
7271
|
-
mt: "6px"
|
|
7316
|
+
mt: "6px",
|
|
7317
|
+
color: "inherit",
|
|
7318
|
+
fill: "inherit",
|
|
7319
|
+
"&:hover": {
|
|
7320
|
+
color: "inherit",
|
|
7321
|
+
fill: "inherit"
|
|
7322
|
+
}
|
|
7272
7323
|
}
|
|
7273
7324
|
}
|
|
7274
7325
|
}
|
|
@@ -7283,15 +7334,21 @@ const EventSection = (theme) => {
|
|
|
7283
7334
|
elements: [
|
|
7284
7335
|
{
|
|
7285
7336
|
accessorKey: "eventType",
|
|
7286
|
-
header: "Event Type"
|
|
7337
|
+
header: "Event's Type",
|
|
7338
|
+
type: "string",
|
|
7339
|
+
size: 300
|
|
7287
7340
|
},
|
|
7288
7341
|
{
|
|
7289
7342
|
accessorKey: "Handler",
|
|
7290
|
-
header: "Handler"
|
|
7343
|
+
header: "Handler",
|
|
7344
|
+
type: "string",
|
|
7345
|
+
size: 200
|
|
7291
7346
|
},
|
|
7292
7347
|
{
|
|
7293
7348
|
accessorKey: "Edit_Approve_Records",
|
|
7294
|
-
header: "Edit
|
|
7349
|
+
header: "Edit",
|
|
7350
|
+
size: 150,
|
|
7351
|
+
type: "action",
|
|
7295
7352
|
widget: {
|
|
7296
7353
|
type: "Control",
|
|
7297
7354
|
scope: "#/properties/Edit_Records",
|
|
@@ -7300,14 +7357,16 @@ const EventSection = (theme) => {
|
|
|
7300
7357
|
},
|
|
7301
7358
|
config: {
|
|
7302
7359
|
main: {
|
|
7303
|
-
color: "info",
|
|
7304
7360
|
size: "small",
|
|
7305
|
-
icon: "
|
|
7361
|
+
icon: "TableEditIcon",
|
|
7306
7362
|
tooltipMessage: "Edit This Record",
|
|
7307
7363
|
onClick: "eventEditHandler"
|
|
7308
7364
|
},
|
|
7309
7365
|
style: {
|
|
7310
|
-
|
|
7366
|
+
fill: theme.palette.primary.main,
|
|
7367
|
+
"& :hover": {
|
|
7368
|
+
fill: theme.palette.primary.dark
|
|
7369
|
+
}
|
|
7311
7370
|
}
|
|
7312
7371
|
}
|
|
7313
7372
|
}
|
|
@@ -7315,6 +7374,8 @@ const EventSection = (theme) => {
|
|
|
7315
7374
|
{
|
|
7316
7375
|
accessorKey: "Reject_Records",
|
|
7317
7376
|
header: "Delete",
|
|
7377
|
+
size: 150,
|
|
7378
|
+
type: "action",
|
|
7318
7379
|
widget: {
|
|
7319
7380
|
type: "Control",
|
|
7320
7381
|
scope: "#/properties/RejectButton",
|
|
@@ -7324,10 +7385,15 @@ const EventSection = (theme) => {
|
|
|
7324
7385
|
},
|
|
7325
7386
|
config: {
|
|
7326
7387
|
main: {
|
|
7327
|
-
icon: "
|
|
7328
|
-
color: "error",
|
|
7388
|
+
icon: "Bin",
|
|
7329
7389
|
tooltipMessage: "Reject This Record",
|
|
7330
7390
|
onClick: "deletePopUpEvent"
|
|
7391
|
+
},
|
|
7392
|
+
style: {
|
|
7393
|
+
fill: theme.palette.primary.main,
|
|
7394
|
+
"& :hover": {
|
|
7395
|
+
fill: theme.palette.primary.dark
|
|
7396
|
+
}
|
|
7331
7397
|
}
|
|
7332
7398
|
}
|
|
7333
7399
|
}
|
|
@@ -7335,7 +7401,8 @@ const EventSection = (theme) => {
|
|
|
7335
7401
|
{
|
|
7336
7402
|
header: "Copy",
|
|
7337
7403
|
field: "Copy_Event",
|
|
7338
|
-
|
|
7404
|
+
size: 150,
|
|
7405
|
+
type: "action",
|
|
7339
7406
|
widget: {
|
|
7340
7407
|
type: "Control",
|
|
7341
7408
|
scope: "#/properties/Copy_Event",
|
|
@@ -7385,77 +7452,103 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7385
7452
|
const cardLayout = {
|
|
7386
7453
|
type: "Control",
|
|
7387
7454
|
scope: "#/properties/cardLayout",
|
|
7388
|
-
layout: 11.5,
|
|
7389
7455
|
options: {
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
{
|
|
7394
|
-
type: "Control",
|
|
7395
|
-
scope: "#/properties/key",
|
|
7396
|
-
options: {
|
|
7397
|
-
widget: "SelectInputField"
|
|
7398
|
-
},
|
|
7399
|
-
config: {
|
|
7400
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7401
|
-
main: {
|
|
7402
|
-
label: "Screen Size"
|
|
7403
|
-
}
|
|
7404
|
-
}
|
|
7405
|
-
},
|
|
7406
|
-
{
|
|
7407
|
-
type: "Control",
|
|
7408
|
-
scope: "#/properties/value",
|
|
7409
|
-
options: {
|
|
7410
|
-
widget: "InputField"
|
|
7411
|
-
},
|
|
7412
|
-
config: {
|
|
7413
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7414
|
-
main: {
|
|
7415
|
-
label: "Value",
|
|
7416
|
-
type: "number",
|
|
7417
|
-
helperText: "Number should be in range of 0 to 12",
|
|
7418
|
-
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7419
|
-
}
|
|
7420
|
-
}
|
|
7421
|
-
},
|
|
7422
|
-
emptyBox$1("cardEmpty")
|
|
7423
|
-
]
|
|
7424
|
-
}
|
|
7425
|
-
}
|
|
7426
|
-
};
|
|
7427
|
-
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7428
|
-
return {
|
|
7429
|
-
type: "Control",
|
|
7430
|
-
scope: `#/properties/${parentScope}`,
|
|
7456
|
+
widget: "Array"
|
|
7457
|
+
},
|
|
7458
|
+
config: {
|
|
7431
7459
|
layout: 12,
|
|
7432
|
-
|
|
7433
|
-
"
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7445
|
-
main: {
|
|
7446
|
-
label: childLabel || "Labels for Tab"
|
|
7447
|
-
}
|
|
7448
|
-
}
|
|
7449
|
-
},
|
|
7450
|
-
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7451
|
-
emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7452
|
-
]
|
|
7460
|
+
main: {
|
|
7461
|
+
label: "Card Layout",
|
|
7462
|
+
childElementLabel: "Card Layout"
|
|
7463
|
+
},
|
|
7464
|
+
style: {
|
|
7465
|
+
marginLeft: "-24px",
|
|
7466
|
+
marginBottom: "24px !important",
|
|
7467
|
+
labelStyle: {
|
|
7468
|
+
marginLeft: "24px"
|
|
7469
|
+
},
|
|
7470
|
+
detailsStyle: {
|
|
7471
|
+
marginLeft: "24px"
|
|
7453
7472
|
}
|
|
7454
7473
|
}
|
|
7474
|
+
},
|
|
7475
|
+
elements: [
|
|
7476
|
+
{
|
|
7477
|
+
type: "Control",
|
|
7478
|
+
scope: "#/properties/key",
|
|
7479
|
+
options: {
|
|
7480
|
+
widget: "SelectInputField"
|
|
7481
|
+
},
|
|
7482
|
+
config: {
|
|
7483
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7484
|
+
main: {
|
|
7485
|
+
label: "Screen Size"
|
|
7486
|
+
}
|
|
7487
|
+
}
|
|
7488
|
+
},
|
|
7489
|
+
{
|
|
7490
|
+
type: "Control",
|
|
7491
|
+
scope: "#/properties/value",
|
|
7492
|
+
options: {
|
|
7493
|
+
widget: "InputField"
|
|
7494
|
+
},
|
|
7495
|
+
config: {
|
|
7496
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7497
|
+
main: {
|
|
7498
|
+
label: "Value",
|
|
7499
|
+
type: "number",
|
|
7500
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7501
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7502
|
+
}
|
|
7503
|
+
}
|
|
7504
|
+
},
|
|
7505
|
+
emptyBox$1("cardEmpty")
|
|
7506
|
+
]
|
|
7507
|
+
};
|
|
7508
|
+
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7509
|
+
return {
|
|
7510
|
+
type: "Control",
|
|
7511
|
+
scope: `#/properties/${parentScope}`,
|
|
7512
|
+
options: {
|
|
7513
|
+
widget: "Array"
|
|
7514
|
+
},
|
|
7515
|
+
config: {
|
|
7516
|
+
layout: 12,
|
|
7517
|
+
main: {
|
|
7518
|
+
label: childLabel,
|
|
7519
|
+
childElementLabel: childLabel
|
|
7520
|
+
},
|
|
7521
|
+
style: {
|
|
7522
|
+
marginLeft: "-24px",
|
|
7523
|
+
marginBottom: "24px !important",
|
|
7524
|
+
labelStyle: {
|
|
7525
|
+
marginLeft: "24px"
|
|
7526
|
+
},
|
|
7527
|
+
detailsStyle: {
|
|
7528
|
+
marginLeft: "24px"
|
|
7529
|
+
}
|
|
7530
|
+
}
|
|
7531
|
+
},
|
|
7532
|
+
elements: [
|
|
7533
|
+
{
|
|
7534
|
+
type: "Control",
|
|
7535
|
+
scope: `#/properties/${childScope}`,
|
|
7536
|
+
options: {
|
|
7537
|
+
widget: "InputField"
|
|
7538
|
+
},
|
|
7539
|
+
config: {
|
|
7540
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7541
|
+
main: {
|
|
7542
|
+
label: childLabel || "Labels for Tab"
|
|
7543
|
+
}
|
|
7544
|
+
}
|
|
7545
|
+
},
|
|
7546
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7547
|
+
]
|
|
7455
7548
|
};
|
|
7456
7549
|
};
|
|
7457
7550
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7458
|
-
sizeHolder.
|
|
7551
|
+
sizeHolder.elements[1] = {
|
|
7459
7552
|
type: "Control",
|
|
7460
7553
|
scope: `#/properties/value`,
|
|
7461
7554
|
options: {
|
|
@@ -7468,7 +7561,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7468
7561
|
}
|
|
7469
7562
|
}
|
|
7470
7563
|
};
|
|
7471
|
-
sizeHolder.
|
|
7564
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7472
7565
|
const getInputField = (scope, label) => {
|
|
7473
7566
|
return {
|
|
7474
7567
|
type: "Control",
|
|
@@ -7477,7 +7570,7 @@ const getInputField = (scope, label) => {
|
|
|
7477
7570
|
widget: "InputField"
|
|
7478
7571
|
},
|
|
7479
7572
|
config: {
|
|
7480
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7573
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7481
7574
|
main: {
|
|
7482
7575
|
label
|
|
7483
7576
|
}
|
|
@@ -7492,7 +7585,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7492
7585
|
widget: "RadioInputField"
|
|
7493
7586
|
},
|
|
7494
7587
|
config: {
|
|
7495
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
7588
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7496
7589
|
main: {
|
|
7497
7590
|
label,
|
|
7498
7591
|
options
|
|
@@ -7507,17 +7600,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7507
7600
|
main: {
|
|
7508
7601
|
label: label || "Details",
|
|
7509
7602
|
isAccordion: true
|
|
7510
|
-
}
|
|
7511
|
-
wrapperStyle: {
|
|
7512
|
-
marginTop: "-6px",
|
|
7513
|
-
marginBottom: "-8px",
|
|
7514
|
-
marginLeft: "-34px",
|
|
7515
|
-
width: "108%"
|
|
7516
|
-
},
|
|
7517
|
-
componentsBoxStyle: {
|
|
7518
|
-
marginLeft: "12px"
|
|
7519
|
-
},
|
|
7520
|
-
defaultStyle: true
|
|
7603
|
+
}
|
|
7521
7604
|
},
|
|
7522
7605
|
elements: elements || []
|
|
7523
7606
|
};
|
|
@@ -7531,18 +7614,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7531
7614
|
},
|
|
7532
7615
|
config: {
|
|
7533
7616
|
layout: layout || 12,
|
|
7534
|
-
style: {
|
|
7535
|
-
containerStyle: {
|
|
7536
|
-
borderRadius: "20px"
|
|
7537
|
-
},
|
|
7538
|
-
headerContainerStyle: {},
|
|
7539
|
-
textAreaStyle: {
|
|
7540
|
-
borderRadius: "20px",
|
|
7541
|
-
padding: "20px"
|
|
7542
|
-
}
|
|
7543
|
-
},
|
|
7544
7617
|
main: {
|
|
7545
|
-
heading,
|
|
7618
|
+
label: heading,
|
|
7546
7619
|
minRows: 8,
|
|
7547
7620
|
hideButton,
|
|
7548
7621
|
enableCodeEditor: true
|
|
@@ -7558,7 +7631,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7558
7631
|
widget: "SelectInputField"
|
|
7559
7632
|
},
|
|
7560
7633
|
config: {
|
|
7561
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7634
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7562
7635
|
main: {
|
|
7563
7636
|
label,
|
|
7564
7637
|
type: "text"
|
|
@@ -7574,7 +7647,7 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7574
7647
|
widget: "MultipleSelect"
|
|
7575
7648
|
},
|
|
7576
7649
|
config: {
|
|
7577
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7650
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7578
7651
|
main: {
|
|
7579
7652
|
multiple: true,
|
|
7580
7653
|
label,
|
|
@@ -7583,12 +7656,18 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7583
7656
|
}
|
|
7584
7657
|
};
|
|
7585
7658
|
};
|
|
7586
|
-
const
|
|
7659
|
+
const BaseSection = {
|
|
7587
7660
|
type: "WrapperLayout",
|
|
7661
|
+
config: {
|
|
7662
|
+
main: {
|
|
7663
|
+
label: " ",
|
|
7664
|
+
gap: "8px"
|
|
7665
|
+
}
|
|
7666
|
+
},
|
|
7588
7667
|
elements: []
|
|
7589
7668
|
};
|
|
7590
7669
|
const buildPropertiesSection = function(type) {
|
|
7591
|
-
let uiSchema = _.cloneDeep(
|
|
7670
|
+
let uiSchema = _.cloneDeep(BaseSection);
|
|
7592
7671
|
switch (type) {
|
|
7593
7672
|
case "TreeMap":
|
|
7594
7673
|
uiSchema.elements = [
|
|
@@ -7643,7 +7722,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7643
7722
|
case "Text":
|
|
7644
7723
|
uiSchema.elements = [
|
|
7645
7724
|
getInputField("placeholder", "Placeholder"),
|
|
7646
|
-
|
|
7725
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7647
7726
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7648
7727
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7649
7728
|
];
|
|
@@ -7652,7 +7731,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7652
7731
|
uiSchema.elements = [
|
|
7653
7732
|
getInputField("placeholder", "Placeholder"),
|
|
7654
7733
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7655
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7734
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7735
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7656
7736
|
];
|
|
7657
7737
|
break;
|
|
7658
7738
|
case "SpeedoMeter":
|
|
@@ -7732,7 +7812,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7732
7812
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7733
7813
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7734
7814
|
getInputField("leftMargin", "Left Margin"),
|
|
7735
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7815
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7736
7816
|
getArrayControl("legendLabels", "label"),
|
|
7737
7817
|
getArrayControl("pieArcColors", "color")
|
|
7738
7818
|
];
|
|
@@ -7813,7 +7893,13 @@ const buildPropertiesSection = function(type) {
|
|
|
7813
7893
|
return uiSchema;
|
|
7814
7894
|
};
|
|
7815
7895
|
const StyleSection = {
|
|
7816
|
-
type: "
|
|
7896
|
+
type: "WrapperLayout",
|
|
7897
|
+
config: {
|
|
7898
|
+
main: {
|
|
7899
|
+
label: " ",
|
|
7900
|
+
gap: "8px"
|
|
7901
|
+
}
|
|
7902
|
+
},
|
|
7817
7903
|
elements: [
|
|
7818
7904
|
{
|
|
7819
7905
|
type: "Control",
|
|
@@ -7829,14 +7915,7 @@ const StyleSection = {
|
|
|
7829
7915
|
lg: 12
|
|
7830
7916
|
},
|
|
7831
7917
|
style: {
|
|
7832
|
-
|
|
7833
|
-
borderRadius: "20px"
|
|
7834
|
-
},
|
|
7835
|
-
headerContainerStyle: {},
|
|
7836
|
-
textAreaStyle: {
|
|
7837
|
-
borderRadius: "20px",
|
|
7838
|
-
padding: "20px"
|
|
7839
|
-
}
|
|
7918
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
7840
7919
|
},
|
|
7841
7920
|
main: {
|
|
7842
7921
|
heading: "JSON Style",
|
|
@@ -7870,15 +7949,20 @@ const TableSection = (theme) => {
|
|
|
7870
7949
|
},
|
|
7871
7950
|
config: {
|
|
7872
7951
|
main: {
|
|
7873
|
-
color: "info",
|
|
7874
7952
|
onClick: "widgetAddClickHandler",
|
|
7875
7953
|
size: "small",
|
|
7876
|
-
icon: "
|
|
7877
|
-
iconLabel: "Add
|
|
7954
|
+
icon: "TableAddIcon",
|
|
7955
|
+
iconLabel: "Add",
|
|
7878
7956
|
styleDefault: true
|
|
7879
7957
|
},
|
|
7880
7958
|
style: {
|
|
7881
|
-
mt: "6px"
|
|
7959
|
+
mt: "6px",
|
|
7960
|
+
color: "inherit",
|
|
7961
|
+
fill: "inherit",
|
|
7962
|
+
"&:hover": {
|
|
7963
|
+
color: "inherit",
|
|
7964
|
+
fill: "inherit"
|
|
7965
|
+
}
|
|
7882
7966
|
}
|
|
7883
7967
|
}
|
|
7884
7968
|
}
|
|
@@ -7894,12 +7978,18 @@ const TableSection = (theme) => {
|
|
|
7894
7978
|
main: {
|
|
7895
7979
|
onClick: "copyPasteElement",
|
|
7896
7980
|
size: "small",
|
|
7897
|
-
icon: "
|
|
7981
|
+
icon: "TablePaste",
|
|
7898
7982
|
iconLabel: "Paste",
|
|
7899
7983
|
styleDefault: true
|
|
7900
7984
|
},
|
|
7901
7985
|
style: {
|
|
7902
|
-
mt: "6px"
|
|
7986
|
+
mt: "6px",
|
|
7987
|
+
color: "inherit",
|
|
7988
|
+
fill: "inherit",
|
|
7989
|
+
"&:hover": {
|
|
7990
|
+
color: "inherit",
|
|
7991
|
+
fill: "inherit"
|
|
7992
|
+
}
|
|
7903
7993
|
}
|
|
7904
7994
|
}
|
|
7905
7995
|
}
|
|
@@ -7914,16 +8004,21 @@ const TableSection = (theme) => {
|
|
|
7914
8004
|
elements: [
|
|
7915
8005
|
{
|
|
7916
8006
|
accessorKey: "name",
|
|
7917
|
-
header: "Name"
|
|
8007
|
+
header: "Name",
|
|
8008
|
+
type: "string",
|
|
8009
|
+
size: 300
|
|
7918
8010
|
},
|
|
7919
8011
|
{
|
|
7920
8012
|
accessorKey: "type",
|
|
7921
|
-
header: "Type"
|
|
8013
|
+
header: "Type",
|
|
8014
|
+
type: "string",
|
|
8015
|
+
size: 200
|
|
7922
8016
|
},
|
|
7923
8017
|
{
|
|
7924
8018
|
header: "Edit Record",
|
|
7925
8019
|
field: "Reject_Records",
|
|
7926
|
-
|
|
8020
|
+
size: 150,
|
|
8021
|
+
type: "action",
|
|
7927
8022
|
widget: {
|
|
7928
8023
|
type: "Control",
|
|
7929
8024
|
scope: "#/properties/RejectButton",
|
|
@@ -7932,13 +8027,16 @@ const TableSection = (theme) => {
|
|
|
7932
8027
|
},
|
|
7933
8028
|
config: {
|
|
7934
8029
|
main: {
|
|
7935
|
-
icon: "
|
|
7936
|
-
|
|
8030
|
+
icon: "TableEditIcon",
|
|
8031
|
+
size: "small",
|
|
7937
8032
|
onClick: "editComponents",
|
|
7938
8033
|
tooltipMessage: "Reject This Record"
|
|
7939
8034
|
},
|
|
7940
8035
|
style: {
|
|
7941
|
-
|
|
8036
|
+
fill: theme.palette.primary.main,
|
|
8037
|
+
"& :hover": {
|
|
8038
|
+
fill: theme.palette.primary.dark
|
|
8039
|
+
}
|
|
7942
8040
|
}
|
|
7943
8041
|
}
|
|
7944
8042
|
}
|
|
@@ -7946,7 +8044,8 @@ const TableSection = (theme) => {
|
|
|
7946
8044
|
{
|
|
7947
8045
|
header: "Delete",
|
|
7948
8046
|
field: "Reject_Records",
|
|
7949
|
-
|
|
8047
|
+
size: 150,
|
|
8048
|
+
type: "action",
|
|
7950
8049
|
widget: {
|
|
7951
8050
|
type: "Control",
|
|
7952
8051
|
scope: "#/properties/RejectButton",
|
|
@@ -7955,10 +8054,15 @@ const TableSection = (theme) => {
|
|
|
7955
8054
|
},
|
|
7956
8055
|
config: {
|
|
7957
8056
|
main: {
|
|
7958
|
-
icon: "
|
|
7959
|
-
color: "error",
|
|
8057
|
+
icon: "Bin",
|
|
7960
8058
|
onClick: "deletePopUpComponent",
|
|
7961
8059
|
tooltipMessage: "Reject This Record"
|
|
8060
|
+
},
|
|
8061
|
+
style: {
|
|
8062
|
+
fill: theme.palette.primary.main,
|
|
8063
|
+
"& :hover": {
|
|
8064
|
+
fill: theme.palette.primary.dark
|
|
8065
|
+
}
|
|
7962
8066
|
}
|
|
7963
8067
|
}
|
|
7964
8068
|
}
|
|
@@ -7966,7 +8070,8 @@ const TableSection = (theme) => {
|
|
|
7966
8070
|
{
|
|
7967
8071
|
header: "Copy",
|
|
7968
8072
|
field: "Copy_Component",
|
|
7969
|
-
|
|
8073
|
+
size: 150,
|
|
8074
|
+
type: "action",
|
|
7970
8075
|
widget: {
|
|
7971
8076
|
type: "Control",
|
|
7972
8077
|
scope: "#/properties/Copy_Component",
|
|
@@ -7990,109 +8095,148 @@ const TableSection = (theme) => {
|
|
|
7990
8095
|
return uiSchema;
|
|
7991
8096
|
};
|
|
7992
8097
|
const ValueTab = {
|
|
7993
|
-
type: "
|
|
8098
|
+
type: "WrapperLayout",
|
|
8099
|
+
config: {
|
|
8100
|
+
main: {
|
|
8101
|
+
label: " ",
|
|
8102
|
+
gap: "8px"
|
|
8103
|
+
}
|
|
8104
|
+
},
|
|
7994
8105
|
elements: [
|
|
7995
8106
|
{
|
|
7996
8107
|
type: "Control",
|
|
7997
8108
|
scope: "#/properties/value",
|
|
7998
|
-
layout: 12,
|
|
7999
8109
|
options: {
|
|
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
|
-
|
|
8030
|
-
type: "Control",
|
|
8031
|
-
scope: "#/properties/emptyBox",
|
|
8032
|
-
options: {
|
|
8033
|
-
widget: "EmptyBox"
|
|
8034
|
-
},
|
|
8035
|
-
config: {
|
|
8036
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8037
|
-
}
|
|
8110
|
+
widget: "Array"
|
|
8111
|
+
},
|
|
8112
|
+
config: {
|
|
8113
|
+
layout: 12,
|
|
8114
|
+
main: {
|
|
8115
|
+
label: "Value",
|
|
8116
|
+
childElementLabel: "Value"
|
|
8117
|
+
},
|
|
8118
|
+
style: {
|
|
8119
|
+
marginLeft: "-24px",
|
|
8120
|
+
marginBottom: "24px !important",
|
|
8121
|
+
labelStyle: {
|
|
8122
|
+
marginLeft: "24px"
|
|
8123
|
+
},
|
|
8124
|
+
detailsStyle: {
|
|
8125
|
+
marginLeft: "24px"
|
|
8126
|
+
}
|
|
8127
|
+
}
|
|
8128
|
+
},
|
|
8129
|
+
elements: [
|
|
8130
|
+
{
|
|
8131
|
+
type: "Control",
|
|
8132
|
+
scope: "#/properties/label",
|
|
8133
|
+
options: {
|
|
8134
|
+
widget: "InputField"
|
|
8135
|
+
},
|
|
8136
|
+
config: {
|
|
8137
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8138
|
+
main: {
|
|
8139
|
+
label: "Label"
|
|
8038
8140
|
}
|
|
8039
|
-
|
|
8141
|
+
}
|
|
8142
|
+
},
|
|
8143
|
+
{
|
|
8144
|
+
type: "Control",
|
|
8145
|
+
scope: "#/properties/value",
|
|
8146
|
+
options: {
|
|
8147
|
+
widget: "InputField"
|
|
8148
|
+
},
|
|
8149
|
+
config: {
|
|
8150
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8151
|
+
main: {
|
|
8152
|
+
label: "Value"
|
|
8153
|
+
}
|
|
8154
|
+
}
|
|
8155
|
+
},
|
|
8156
|
+
{
|
|
8157
|
+
type: "Control",
|
|
8158
|
+
scope: "#/properties/emptyBox",
|
|
8159
|
+
options: {
|
|
8160
|
+
widget: "EmptyBox"
|
|
8161
|
+
},
|
|
8162
|
+
config: {
|
|
8163
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8164
|
+
}
|
|
8040
8165
|
}
|
|
8041
|
-
|
|
8166
|
+
]
|
|
8042
8167
|
}
|
|
8043
8168
|
]
|
|
8044
8169
|
};
|
|
8045
8170
|
const ValidationSection = {
|
|
8046
|
-
type: "
|
|
8171
|
+
type: "WrapperLayout",
|
|
8172
|
+
config: {
|
|
8173
|
+
main: {
|
|
8174
|
+
label: " ",
|
|
8175
|
+
gap: "8px"
|
|
8176
|
+
}
|
|
8177
|
+
},
|
|
8047
8178
|
elements: [
|
|
8048
8179
|
{
|
|
8049
8180
|
type: "Control",
|
|
8050
8181
|
scope: "#/properties/validation",
|
|
8051
|
-
layout: 11.5,
|
|
8052
8182
|
options: {
|
|
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
|
-
{
|
|
8084
|
-
type: "Control",
|
|
8085
|
-
scope: "#/properties/emptyBox",
|
|
8086
|
-
options: {
|
|
8087
|
-
widget: "EmptyBox"
|
|
8088
|
-
},
|
|
8089
|
-
config: {
|
|
8090
|
-
layout: { xs: 0, sm: 0, md: 4 }
|
|
8091
|
-
}
|
|
8183
|
+
widget: "Array"
|
|
8184
|
+
},
|
|
8185
|
+
config: {
|
|
8186
|
+
layout: 12,
|
|
8187
|
+
main: {
|
|
8188
|
+
label: "Validation",
|
|
8189
|
+
childElementLabel: "Validation"
|
|
8190
|
+
},
|
|
8191
|
+
style: {
|
|
8192
|
+
marginLeft: "-24px",
|
|
8193
|
+
marginBottom: "24px !important",
|
|
8194
|
+
labelStyle: {
|
|
8195
|
+
marginLeft: "24px"
|
|
8196
|
+
},
|
|
8197
|
+
detailsStyle: {
|
|
8198
|
+
marginLeft: "24px"
|
|
8199
|
+
}
|
|
8200
|
+
}
|
|
8201
|
+
},
|
|
8202
|
+
elements: [
|
|
8203
|
+
{
|
|
8204
|
+
type: "Control",
|
|
8205
|
+
scope: "#/properties/validationType",
|
|
8206
|
+
options: {
|
|
8207
|
+
widget: "SelectInputField"
|
|
8208
|
+
},
|
|
8209
|
+
config: {
|
|
8210
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8211
|
+
main: {
|
|
8212
|
+
label: "Validation Type"
|
|
8092
8213
|
}
|
|
8093
|
-
|
|
8214
|
+
}
|
|
8215
|
+
},
|
|
8216
|
+
{
|
|
8217
|
+
type: "Control",
|
|
8218
|
+
scope: "#/properties/validationValue",
|
|
8219
|
+
options: {
|
|
8220
|
+
widget: "InputField"
|
|
8221
|
+
},
|
|
8222
|
+
config: {
|
|
8223
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8224
|
+
main: {
|
|
8225
|
+
label: "Validation Value"
|
|
8226
|
+
}
|
|
8227
|
+
}
|
|
8228
|
+
},
|
|
8229
|
+
{
|
|
8230
|
+
type: "Control",
|
|
8231
|
+
scope: "#/properties/emptyBox",
|
|
8232
|
+
options: {
|
|
8233
|
+
widget: "EmptyBox"
|
|
8234
|
+
},
|
|
8235
|
+
config: {
|
|
8236
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8237
|
+
}
|
|
8094
8238
|
}
|
|
8095
|
-
|
|
8239
|
+
]
|
|
8096
8240
|
}
|
|
8097
8241
|
]
|
|
8098
8242
|
};
|
|
@@ -8248,54 +8392,124 @@ function okHandler(store2) {
|
|
|
8248
8392
|
}
|
|
8249
8393
|
}
|
|
8250
8394
|
const sectionLabels = {
|
|
8251
|
-
Select: ["Core", "Properties", "Value", "
|
|
8252
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8253
|
-
Table: ["Core", "Components", "Properties", "
|
|
8254
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8395
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8396
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8397
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8398
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8255
8399
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8256
8400
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8257
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
8258
|
-
card: ["Core", "Properties", "
|
|
8259
|
-
UploadFile: ["Core", "
|
|
8260
|
-
Graph: ["Core", "Properties", "
|
|
8261
|
-
DownloadFile: ["Core", "
|
|
8262
|
-
Box: ["Core", "
|
|
8263
|
-
Properties: ["Core", "Properties", "
|
|
8264
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
8265
|
-
RankCard: ["Core", "Properties", "
|
|
8266
|
-
Slider: ["Core", "Components", "
|
|
8267
|
-
Timer: ["Core", "
|
|
8268
|
-
Rank: ["Core", "
|
|
8269
|
-
Button: ["Core", "Properties", "
|
|
8401
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8402
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8403
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8404
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8405
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8406
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8407
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8408
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8409
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8410
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8411
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8412
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8413
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8270
8414
|
Array: ["Core", "Components", "Validation"],
|
|
8271
|
-
Radio: ["Core", "Properties", "
|
|
8272
|
-
Text: ["Core", "Properties", "
|
|
8273
|
-
TextArea: ["Core", "Properties", "
|
|
8415
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8416
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8417
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8274
8418
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8275
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8276
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8277
|
-
InputSlider: ["Core", "Properties", "
|
|
8278
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8419
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8420
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8421
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8422
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8279
8423
|
ColumnGroup: ["Core", "Components"],
|
|
8280
|
-
Thought: ["Core", "Properties", "
|
|
8424
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8281
8425
|
};
|
|
8282
8426
|
function refreshPage(type, store2) {
|
|
8283
|
-
var _a;
|
|
8427
|
+
var _a, _b;
|
|
8284
8428
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8429
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8285
8430
|
if (type) {
|
|
8286
8431
|
const sectionUiSchema = {
|
|
8287
8432
|
Core: CoreSection,
|
|
8288
8433
|
Value: ValueTab,
|
|
8289
8434
|
Style: StyleSection,
|
|
8290
|
-
|
|
8435
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8291
8436
|
Components: TableSection(store2.theme.myTheme),
|
|
8292
8437
|
Properties: buildPropertiesSection(type),
|
|
8293
8438
|
Validation: ValidationSection
|
|
8294
8439
|
};
|
|
8295
8440
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8296
|
-
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "
|
|
8441
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8297
8442
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8298
8443
|
}
|
|
8444
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8445
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8446
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8447
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8448
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8449
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8450
|
+
type: "Control",
|
|
8451
|
+
scope: "#/properties/columnFormat",
|
|
8452
|
+
options: {
|
|
8453
|
+
widget: "SelectInputField"
|
|
8454
|
+
},
|
|
8455
|
+
config: {
|
|
8456
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8457
|
+
main: {
|
|
8458
|
+
label: "Column Format"
|
|
8459
|
+
}
|
|
8460
|
+
}
|
|
8461
|
+
};
|
|
8462
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8463
|
+
type: "Control",
|
|
8464
|
+
scope: "#/properties/filteringOptions",
|
|
8465
|
+
options: {
|
|
8466
|
+
widget: "SelectInputField"
|
|
8467
|
+
},
|
|
8468
|
+
config: {
|
|
8469
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8470
|
+
main: {
|
|
8471
|
+
label: "Filter Mode",
|
|
8472
|
+
multiple: true
|
|
8473
|
+
}
|
|
8474
|
+
}
|
|
8475
|
+
};
|
|
8476
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8477
|
+
type: "Control",
|
|
8478
|
+
scope: "#/properties/enableFilter",
|
|
8479
|
+
options: {
|
|
8480
|
+
widget: "RadioInputField"
|
|
8481
|
+
},
|
|
8482
|
+
config: {
|
|
8483
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8484
|
+
main: {
|
|
8485
|
+
label: "Enable Filter",
|
|
8486
|
+
options: ["Yes", "No"]
|
|
8487
|
+
}
|
|
8488
|
+
}
|
|
8489
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8490
|
+
type: "Control",
|
|
8491
|
+
scope: "#/properties/enableSorting",
|
|
8492
|
+
options: {
|
|
8493
|
+
widget: "RadioInputField"
|
|
8494
|
+
},
|
|
8495
|
+
config: {
|
|
8496
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8497
|
+
main: {
|
|
8498
|
+
label: "Enable Sorting",
|
|
8499
|
+
options: ["Yes", "No"]
|
|
8500
|
+
}
|
|
8501
|
+
}
|
|
8502
|
+
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
8503
|
+
type: "Control",
|
|
8504
|
+
scope: "#/properties/proc",
|
|
8505
|
+
config: {
|
|
8506
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 3 }
|
|
8507
|
+
},
|
|
8508
|
+
options: {
|
|
8509
|
+
widget: "EmptyBox"
|
|
8510
|
+
}
|
|
8511
|
+
};
|
|
8512
|
+
}
|
|
8299
8513
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8300
8514
|
this.ElementPathSetter(UiSchema);
|
|
8301
8515
|
}
|
|
@@ -8317,10 +8531,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8317
8531
|
return getFormdataFromSessionStorage(path);
|
|
8318
8532
|
},
|
|
8319
8533
|
getSchema: function() {
|
|
8534
|
+
var _a, _b, _c;
|
|
8320
8535
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8321
8536
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8322
8537
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8323
8538
|
}
|
|
8539
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8540
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8541
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8542
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8543
|
+
if (path) {
|
|
8544
|
+
const pathArrayAll = path.split(".");
|
|
8545
|
+
const arr = [];
|
|
8546
|
+
pathArrayAll.map((e, i) => {
|
|
8547
|
+
if (i === 0) {
|
|
8548
|
+
arr.push(e);
|
|
8549
|
+
return;
|
|
8550
|
+
}
|
|
8551
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8552
|
+
});
|
|
8553
|
+
arr.map((e) => {
|
|
8554
|
+
const data = _.get(config2, e);
|
|
8555
|
+
pathArray.push({
|
|
8556
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8557
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8558
|
+
});
|
|
8559
|
+
});
|
|
8560
|
+
}
|
|
8561
|
+
schema2.properties.pageName.path = pathArray;
|
|
8324
8562
|
return schema2;
|
|
8325
8563
|
},
|
|
8326
8564
|
okHandler: () => okHandler(store2),
|
|
@@ -8458,15 +8696,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8458
8696
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8459
8697
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8460
8698
|
const notificationMessages = {
|
|
8461
|
-
|
|
8462
|
-
Component: "The component cannot be integrated into the
|
|
8699
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8700
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8463
8701
|
};
|
|
8464
8702
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8465
8703
|
store2.setNotify({
|
|
8466
|
-
FailMessage: notificationMessages.
|
|
8704
|
+
FailMessage: notificationMessages.Events,
|
|
8467
8705
|
Fail: true
|
|
8468
8706
|
});
|
|
8469
|
-
} else if (copiedConfig.name && elementType === "
|
|
8707
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8470
8708
|
store2.setNotify({
|
|
8471
8709
|
FailMessage: notificationMessages.Component,
|
|
8472
8710
|
Fail: true
|
|
@@ -8492,8 +8730,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8492
8730
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8493
8731
|
},
|
|
8494
8732
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8495
|
-
|
|
8496
|
-
uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
|
|
8733
|
+
copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8497
8734
|
}
|
|
8498
8735
|
};
|
|
8499
8736
|
};
|
|
@@ -8644,18 +8881,18 @@ const EventSchema = {
|
|
|
8644
8881
|
eventType: {
|
|
8645
8882
|
type: "string",
|
|
8646
8883
|
oneOf: [
|
|
8647
|
-
{ title: "Click
|
|
8648
|
-
{ title: "Load
|
|
8649
|
-
{ title: "Change
|
|
8650
|
-
{ title: "Mount
|
|
8884
|
+
{ title: "Click", const: "onClick" },
|
|
8885
|
+
{ title: "Load", const: "onLoad" },
|
|
8886
|
+
{ title: "Change", const: "onChange" },
|
|
8887
|
+
{ title: "Mount", const: "onMount" },
|
|
8651
8888
|
{ title: "Success", const: "Success" },
|
|
8652
|
-
{ title: "
|
|
8653
|
-
{ title: "Cell
|
|
8654
|
-
{ title: "
|
|
8655
|
-
{ title: "Back
|
|
8656
|
-
{ title: "Next
|
|
8657
|
-
{ title: "
|
|
8658
|
-
{ title: "
|
|
8889
|
+
{ title: "Start", const: "onStart" },
|
|
8890
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8891
|
+
{ title: "Upload", const: "onUpload" },
|
|
8892
|
+
{ title: "Back", const: "onBack" },
|
|
8893
|
+
{ title: "Next", const: "onNext" },
|
|
8894
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8895
|
+
{ title: "Download", const: "onDownload" },
|
|
8659
8896
|
{ title: "Fail", const: "Fail" }
|
|
8660
8897
|
]
|
|
8661
8898
|
},
|
|
@@ -8663,7 +8900,7 @@ const EventSchema = {
|
|
|
8663
8900
|
type: "string",
|
|
8664
8901
|
oneOf: [
|
|
8665
8902
|
{ title: "Custom", const: "custom" },
|
|
8666
|
-
{ title: "
|
|
8903
|
+
{ title: "API", const: "api" },
|
|
8667
8904
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8668
8905
|
{ title: "Refresh", const: "refresh" }
|
|
8669
8906
|
]
|
|
@@ -8692,47 +8929,49 @@ const EventSchema = {
|
|
|
8692
8929
|
},
|
|
8693
8930
|
RemoveItemButton: {
|
|
8694
8931
|
disabled: true
|
|
8932
|
+
},
|
|
8933
|
+
pageName: {
|
|
8934
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8695
8935
|
}
|
|
8696
8936
|
},
|
|
8697
8937
|
required: ["eventType", "Handler"]
|
|
8698
8938
|
};
|
|
8699
8939
|
const EventUiSchema = (theme) => {
|
|
8700
|
-
var _a
|
|
8940
|
+
var _a;
|
|
8701
8941
|
const uiSchema = {
|
|
8702
8942
|
type: "HorizontalLayout",
|
|
8703
|
-
heading: "
|
|
8943
|
+
heading: "Page-Events",
|
|
8704
8944
|
elements: [
|
|
8705
|
-
{
|
|
8706
|
-
type: "Control",
|
|
8707
|
-
scope: "#/properties/pageName",
|
|
8708
|
-
options: {
|
|
8709
|
-
widget: "Box"
|
|
8710
|
-
},
|
|
8711
|
-
config: {
|
|
8712
|
-
layout: 12,
|
|
8713
|
-
main: {
|
|
8714
|
-
heading: " "
|
|
8715
|
-
},
|
|
8716
|
-
style: {
|
|
8717
|
-
marginLeft: theme.spacing(3),
|
|
8718
|
-
width: "auto",
|
|
8719
|
-
fontSize: "12px",
|
|
8720
|
-
color: "gray"
|
|
8721
|
-
}
|
|
8722
|
-
}
|
|
8723
|
-
},
|
|
8724
8945
|
{
|
|
8725
8946
|
type: "TabLayout",
|
|
8726
8947
|
config: {
|
|
8727
8948
|
main: {
|
|
8728
|
-
tabLabels: ["Core", "Response
|
|
8729
|
-
defaultStyle: true,
|
|
8949
|
+
tabLabels: ["Core", "Response Events"],
|
|
8730
8950
|
id: "event"
|
|
8951
|
+
},
|
|
8952
|
+
style: {
|
|
8953
|
+
TabPanelStyle: {
|
|
8954
|
+
padding: 0
|
|
8955
|
+
}
|
|
8956
|
+
},
|
|
8957
|
+
TabsStyle: {
|
|
8958
|
+
marginBottom: "3px",
|
|
8959
|
+
paddingBottom: "4px",
|
|
8960
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
8961
|
+
"& .MuiTabs-indicator": {
|
|
8962
|
+
bottom: "6px"
|
|
8963
|
+
}
|
|
8731
8964
|
}
|
|
8732
8965
|
},
|
|
8733
8966
|
elements: [
|
|
8734
8967
|
{
|
|
8735
|
-
type: "
|
|
8968
|
+
type: "WrapperLayout",
|
|
8969
|
+
config: {
|
|
8970
|
+
main: {
|
|
8971
|
+
label: " ",
|
|
8972
|
+
gap: "8px"
|
|
8973
|
+
}
|
|
8974
|
+
},
|
|
8736
8975
|
elements: [
|
|
8737
8976
|
{
|
|
8738
8977
|
type: "Control",
|
|
@@ -8741,9 +8980,9 @@ const EventUiSchema = (theme) => {
|
|
|
8741
8980
|
widget: "SelectInputField"
|
|
8742
8981
|
},
|
|
8743
8982
|
config: {
|
|
8744
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
8983
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8745
8984
|
main: {
|
|
8746
|
-
label: "Event Type",
|
|
8985
|
+
label: "Event's Type",
|
|
8747
8986
|
type: "text"
|
|
8748
8987
|
}
|
|
8749
8988
|
}
|
|
@@ -8756,7 +8995,7 @@ const EventUiSchema = (theme) => {
|
|
|
8756
8995
|
widget: "EmptyBox"
|
|
8757
8996
|
},
|
|
8758
8997
|
config: {
|
|
8759
|
-
layout: { xs: 0, sm:
|
|
8998
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
8760
8999
|
}
|
|
8761
9000
|
}
|
|
8762
9001
|
]
|
|
@@ -8782,12 +9021,18 @@ const EventUiSchema = (theme) => {
|
|
|
8782
9021
|
main: {
|
|
8783
9022
|
onClick: "addEvent",
|
|
8784
9023
|
size: "small",
|
|
8785
|
-
icon: "
|
|
8786
|
-
iconLabel: "Add
|
|
9024
|
+
icon: "TableAddIcon",
|
|
9025
|
+
iconLabel: "Add",
|
|
8787
9026
|
styleDefault: true
|
|
8788
9027
|
},
|
|
8789
9028
|
style: {
|
|
8790
|
-
mt: "6px"
|
|
9029
|
+
mt: "6px",
|
|
9030
|
+
color: "inherit",
|
|
9031
|
+
fill: "inherit",
|
|
9032
|
+
"&:hover": {
|
|
9033
|
+
color: "inherit",
|
|
9034
|
+
fill: "inherit"
|
|
9035
|
+
}
|
|
8791
9036
|
}
|
|
8792
9037
|
}
|
|
8793
9038
|
}
|
|
@@ -8803,12 +9048,18 @@ const EventUiSchema = (theme) => {
|
|
|
8803
9048
|
main: {
|
|
8804
9049
|
onClick: "copyPasteElement",
|
|
8805
9050
|
size: "small",
|
|
8806
|
-
icon: "
|
|
9051
|
+
icon: "TablePaste",
|
|
8807
9052
|
iconLabel: "Paste",
|
|
8808
9053
|
styleDefault: true
|
|
8809
9054
|
},
|
|
8810
9055
|
style: {
|
|
8811
|
-
mt: "6px"
|
|
9056
|
+
mt: "6px",
|
|
9057
|
+
color: "inherit",
|
|
9058
|
+
fill: "inherit",
|
|
9059
|
+
"&:hover": {
|
|
9060
|
+
color: "inherit",
|
|
9061
|
+
fill: "inherit"
|
|
9062
|
+
}
|
|
8812
9063
|
}
|
|
8813
9064
|
}
|
|
8814
9065
|
}
|
|
@@ -8823,15 +9074,21 @@ const EventUiSchema = (theme) => {
|
|
|
8823
9074
|
elements: [
|
|
8824
9075
|
{
|
|
8825
9076
|
accessorKey: "eventType",
|
|
8826
|
-
header: "Event Type"
|
|
9077
|
+
header: "Event's Type",
|
|
9078
|
+
size: 300,
|
|
9079
|
+
type: "string"
|
|
8827
9080
|
},
|
|
8828
9081
|
{
|
|
8829
9082
|
accessorKey: "Handler",
|
|
8830
|
-
header: "Handler"
|
|
9083
|
+
header: "Handler",
|
|
9084
|
+
size: 200,
|
|
9085
|
+
type: "string"
|
|
8831
9086
|
},
|
|
8832
9087
|
{
|
|
8833
9088
|
accessorKey: "Edit_Approve_Records",
|
|
8834
|
-
header: "Edit
|
|
9089
|
+
header: "Edit",
|
|
9090
|
+
type: "action",
|
|
9091
|
+
size: 150,
|
|
8835
9092
|
widget: {
|
|
8836
9093
|
type: "Control",
|
|
8837
9094
|
scope: "#/properties/Edit_Records",
|
|
@@ -8840,14 +9097,16 @@ const EventUiSchema = (theme) => {
|
|
|
8840
9097
|
},
|
|
8841
9098
|
config: {
|
|
8842
9099
|
main: {
|
|
8843
|
-
color: "info",
|
|
8844
9100
|
size: "small",
|
|
8845
|
-
icon: "
|
|
9101
|
+
icon: "TableEditIcon",
|
|
8846
9102
|
tooltipMessage: "Edit This Record",
|
|
8847
9103
|
onClick: "editEvent"
|
|
8848
9104
|
},
|
|
8849
9105
|
style: {
|
|
8850
|
-
|
|
9106
|
+
fill: theme.palette.primary.main,
|
|
9107
|
+
"& :hover": {
|
|
9108
|
+
fill: theme.palette.primary.dark
|
|
9109
|
+
}
|
|
8851
9110
|
}
|
|
8852
9111
|
}
|
|
8853
9112
|
}
|
|
@@ -8855,6 +9114,8 @@ const EventUiSchema = (theme) => {
|
|
|
8855
9114
|
{
|
|
8856
9115
|
accessorKey: "Reject_Records",
|
|
8857
9116
|
header: "Delete",
|
|
9117
|
+
type: "action",
|
|
9118
|
+
size: 150,
|
|
8858
9119
|
widget: {
|
|
8859
9120
|
type: "Control",
|
|
8860
9121
|
scope: "#/properties/RejectButton",
|
|
@@ -8863,10 +9124,15 @@ const EventUiSchema = (theme) => {
|
|
|
8863
9124
|
},
|
|
8864
9125
|
config: {
|
|
8865
9126
|
main: {
|
|
8866
|
-
icon: "
|
|
8867
|
-
color: "error",
|
|
9127
|
+
icon: "Bin",
|
|
8868
9128
|
tooltipMessage: "Reject This Record",
|
|
8869
9129
|
onClick: "deletePopUpEvent"
|
|
9130
|
+
},
|
|
9131
|
+
style: {
|
|
9132
|
+
fill: theme.palette.primary.main,
|
|
9133
|
+
"& :hover": {
|
|
9134
|
+
fill: theme.palette.primary.dark
|
|
9135
|
+
}
|
|
8870
9136
|
}
|
|
8871
9137
|
}
|
|
8872
9138
|
}
|
|
@@ -8874,7 +9140,8 @@ const EventUiSchema = (theme) => {
|
|
|
8874
9140
|
{
|
|
8875
9141
|
header: "Copy",
|
|
8876
9142
|
field: "Copy_Event",
|
|
8877
|
-
|
|
9143
|
+
type: "action",
|
|
9144
|
+
size: 150,
|
|
8878
9145
|
widget: {
|
|
8879
9146
|
type: "Control",
|
|
8880
9147
|
scope: "#/properties/Copy_Event",
|
|
@@ -8895,103 +9162,59 @@ const EventUiSchema = (theme) => {
|
|
|
8895
9162
|
]
|
|
8896
9163
|
},
|
|
8897
9164
|
{
|
|
8898
|
-
type: "
|
|
9165
|
+
type: "WrapperLayout",
|
|
8899
9166
|
config: {
|
|
8900
|
-
|
|
9167
|
+
main: {
|
|
9168
|
+
gap: "8px"
|
|
9169
|
+
}
|
|
8901
9170
|
},
|
|
8902
9171
|
elements: [
|
|
8903
9172
|
{
|
|
8904
9173
|
type: "Control",
|
|
8905
|
-
scope: "#/properties/
|
|
9174
|
+
scope: "#/properties/btn",
|
|
8906
9175
|
options: {
|
|
8907
|
-
widget: "
|
|
9176
|
+
widget: "Button"
|
|
8908
9177
|
},
|
|
8909
9178
|
config: {
|
|
8910
|
-
layout: { xs:
|
|
9179
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8911
9180
|
main: {
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
style: {
|
|
8918
|
-
marginLeft: "-10px"
|
|
9181
|
+
name: "Ok",
|
|
9182
|
+
variant: "contained",
|
|
9183
|
+
type: "text",
|
|
9184
|
+
onClick: "okHandler",
|
|
9185
|
+
size: "medium"
|
|
8919
9186
|
}
|
|
8920
9187
|
}
|
|
8921
9188
|
},
|
|
8922
9189
|
{
|
|
8923
9190
|
type: "Control",
|
|
8924
|
-
scope: "#/properties/
|
|
9191
|
+
scope: "#/properties/btnSubmit",
|
|
8925
9192
|
options: {
|
|
8926
|
-
widget: "
|
|
9193
|
+
widget: "Button"
|
|
8927
9194
|
},
|
|
8928
9195
|
config: {
|
|
8929
|
-
layout: { xs:
|
|
9196
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8930
9197
|
main: {
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
fontSize: "12px",
|
|
8937
|
-
marginTop: "4px"
|
|
9198
|
+
name: "Save & Exit",
|
|
9199
|
+
variant: "contained",
|
|
9200
|
+
type: "text",
|
|
9201
|
+
onClick: "saveHandler",
|
|
9202
|
+
size: "medium"
|
|
8938
9203
|
}
|
|
8939
9204
|
}
|
|
8940
9205
|
},
|
|
8941
9206
|
{
|
|
8942
9207
|
type: "Control",
|
|
8943
9208
|
scope: "#/properties/EmptyBox",
|
|
9209
|
+
config: {
|
|
9210
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
9211
|
+
},
|
|
8944
9212
|
options: {
|
|
8945
9213
|
widget: "EmptyBox"
|
|
8946
|
-
},
|
|
8947
|
-
config: {
|
|
8948
|
-
layout: { xs: 1, sm: 5 }
|
|
8949
9214
|
}
|
|
8950
9215
|
}
|
|
8951
9216
|
]
|
|
8952
9217
|
},
|
|
8953
|
-
{
|
|
8954
|
-
type: "Control",
|
|
8955
|
-
scope: "#/properties/btn",
|
|
8956
|
-
options: {
|
|
8957
|
-
widget: "Button"
|
|
8958
|
-
},
|
|
8959
|
-
config: {
|
|
8960
|
-
layout: { xs: 4, sm: 2 },
|
|
8961
|
-
main: {
|
|
8962
|
-
name: "Ok",
|
|
8963
|
-
startIcon: "ApproveIcon",
|
|
8964
|
-
variant: "contained",
|
|
8965
|
-
type: "text",
|
|
8966
|
-
onClick: "okHandler",
|
|
8967
|
-
size: "medium"
|
|
8968
|
-
},
|
|
8969
|
-
style: {
|
|
8970
|
-
float: "right"
|
|
8971
|
-
}
|
|
8972
|
-
}
|
|
8973
|
-
},
|
|
8974
|
-
{
|
|
8975
|
-
type: "Control",
|
|
8976
|
-
scope: "#/properties/btnSubmit",
|
|
8977
|
-
options: {
|
|
8978
|
-
widget: "Button"
|
|
8979
|
-
},
|
|
8980
|
-
config: {
|
|
8981
|
-
layout: { xs: 4, sm: 2 },
|
|
8982
|
-
main: {
|
|
8983
|
-
name: "Save & Exit",
|
|
8984
|
-
startIcon: "ApproveIcon",
|
|
8985
|
-
variant: "contained",
|
|
8986
|
-
type: "text",
|
|
8987
|
-
onClick: "saveHandler",
|
|
8988
|
-
size: "medium"
|
|
8989
|
-
},
|
|
8990
|
-
style: {
|
|
8991
|
-
float: "right"
|
|
8992
|
-
}
|
|
8993
|
-
}
|
|
8994
|
-
},
|
|
8995
9218
|
{
|
|
8996
9219
|
type: "Control",
|
|
8997
9220
|
scope: "#/properties/popUpEvent",
|
|
@@ -9023,12 +9246,12 @@ const EventUiSchema = (theme) => {
|
|
|
9023
9246
|
heading: "Are you sure you want to delete ?"
|
|
9024
9247
|
},
|
|
9025
9248
|
style: {
|
|
9026
|
-
marginTop: "-20px",
|
|
9027
9249
|
fontSize: "20px",
|
|
9028
9250
|
"&.MuiTypography-root": {
|
|
9029
|
-
padding: "
|
|
9251
|
+
padding: "0px 20px",
|
|
9030
9252
|
textAlign: "center",
|
|
9031
|
-
lineHeight: "1"
|
|
9253
|
+
lineHeight: "1",
|
|
9254
|
+
marginBottom: theme.spacing(5)
|
|
9032
9255
|
}
|
|
9033
9256
|
}
|
|
9034
9257
|
}
|
|
@@ -9052,25 +9275,25 @@ const EventUiSchema = (theme) => {
|
|
|
9052
9275
|
name: "No",
|
|
9053
9276
|
startIcon: "ApproveIcon",
|
|
9054
9277
|
variant: "contained",
|
|
9055
|
-
color: "info",
|
|
9056
9278
|
type: "text",
|
|
9057
9279
|
onClick: "deletePopUpEvent",
|
|
9058
9280
|
size: "large"
|
|
9059
9281
|
},
|
|
9060
9282
|
style: {
|
|
9061
9283
|
position: "absolute",
|
|
9284
|
+
padding: "10px 0px",
|
|
9062
9285
|
bottom: 0,
|
|
9063
9286
|
left: 0,
|
|
9064
9287
|
width: "50%",
|
|
9065
9288
|
borderRadius: 0,
|
|
9066
9289
|
boxShadow: 0,
|
|
9067
9290
|
backgroundColor: "transparent",
|
|
9068
|
-
color: theme.palette.primary.main,
|
|
9069
|
-
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
9070
|
-
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
9291
|
+
color: theme.myTheme.palette.primary.main,
|
|
9292
|
+
borderTop: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
9293
|
+
borderRight: `0.5px solid ${theme.myTheme.palette.grey[600]}`,
|
|
9071
9294
|
"&:hover": {
|
|
9072
|
-
color: theme.palette.primary.contrastText,
|
|
9073
|
-
backgroundColor: theme.palette.primary.main,
|
|
9295
|
+
color: theme.myTheme.palette.primary.contrastText,
|
|
9296
|
+
backgroundColor: theme.myTheme.palette.primary.main,
|
|
9074
9297
|
boxShadow: "none"
|
|
9075
9298
|
}
|
|
9076
9299
|
}
|
|
@@ -9086,7 +9309,6 @@ const EventUiSchema = (theme) => {
|
|
|
9086
9309
|
layout: 6,
|
|
9087
9310
|
main: {
|
|
9088
9311
|
name: "Yes",
|
|
9089
|
-
startIcon: "ApproveIcon",
|
|
9090
9312
|
variant: "contained",
|
|
9091
9313
|
color: "error",
|
|
9092
9314
|
type: "text",
|
|
@@ -9095,6 +9317,7 @@ const EventUiSchema = (theme) => {
|
|
|
9095
9317
|
},
|
|
9096
9318
|
style: {
|
|
9097
9319
|
position: "absolute",
|
|
9320
|
+
padding: "10px 0px",
|
|
9098
9321
|
bottom: 0,
|
|
9099
9322
|
right: 0,
|
|
9100
9323
|
width: "50%",
|
|
@@ -9115,6 +9338,26 @@ const EventUiSchema = (theme) => {
|
|
|
9115
9338
|
}
|
|
9116
9339
|
]
|
|
9117
9340
|
},
|
|
9341
|
+
{
|
|
9342
|
+
type: "Control",
|
|
9343
|
+
scope: "#/properties/pageName",
|
|
9344
|
+
options: {
|
|
9345
|
+
widget: "Breadcrumb"
|
|
9346
|
+
},
|
|
9347
|
+
config: {
|
|
9348
|
+
layout: 12,
|
|
9349
|
+
main: {},
|
|
9350
|
+
style: {
|
|
9351
|
+
paddingLeft: theme.spacing(3),
|
|
9352
|
+
color: theme.palette.grey[600],
|
|
9353
|
+
fontSize: "10px",
|
|
9354
|
+
position: "fixed",
|
|
9355
|
+
bottom: "24px",
|
|
9356
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9357
|
+
borderTop: `1px solid ${theme.palette.common.black}29`
|
|
9358
|
+
}
|
|
9359
|
+
}
|
|
9360
|
+
},
|
|
9118
9361
|
{
|
|
9119
9362
|
type: "Control",
|
|
9120
9363
|
scope: "#/properties/notify",
|
|
@@ -9132,7 +9375,7 @@ const EventUiSchema = (theme) => {
|
|
|
9132
9375
|
style: {
|
|
9133
9376
|
flexDirection: "row",
|
|
9134
9377
|
position: "absolute",
|
|
9135
|
-
bottom:
|
|
9378
|
+
bottom: 10,
|
|
9136
9379
|
height: "fit-content",
|
|
9137
9380
|
overflow: "hidden",
|
|
9138
9381
|
zIndex: 1e3,
|
|
@@ -9151,78 +9394,19 @@ const EventUiSchema = (theme) => {
|
|
|
9151
9394
|
heading: "Copywriter@ACT21.IO"
|
|
9152
9395
|
},
|
|
9153
9396
|
style: {
|
|
9154
|
-
color: ((
|
|
9397
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9155
9398
|
fontSize: "11px",
|
|
9156
9399
|
textAlign: "center",
|
|
9157
|
-
lineHeight:
|
|
9400
|
+
lineHeight: 0,
|
|
9158
9401
|
width: "fit-content",
|
|
9159
9402
|
left: "50%",
|
|
9160
9403
|
position: "relative",
|
|
9161
|
-
margin:
|
|
9404
|
+
margin: "revert",
|
|
9162
9405
|
flexGrow: 1,
|
|
9163
9406
|
height: 0,
|
|
9164
9407
|
transform: "translate(-50%, 0%)"
|
|
9165
9408
|
}
|
|
9166
9409
|
}
|
|
9167
|
-
},
|
|
9168
|
-
{
|
|
9169
|
-
type: "Control",
|
|
9170
|
-
scope: "#/properties/FooterBackIcon",
|
|
9171
|
-
options: {
|
|
9172
|
-
widget: "Box"
|
|
9173
|
-
},
|
|
9174
|
-
config: {
|
|
9175
|
-
main: {
|
|
9176
|
-
iconName: "PrevIcon",
|
|
9177
|
-
onClick: "backHandler",
|
|
9178
|
-
width: "fit-content"
|
|
9179
|
-
},
|
|
9180
|
-
style: {
|
|
9181
|
-
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
9182
|
-
width: 20,
|
|
9183
|
-
height: 0,
|
|
9184
|
-
top: 0,
|
|
9185
|
-
right: { xs: "12px", sm: "84px" },
|
|
9186
|
-
position: "absolute",
|
|
9187
|
-
fontSize: "12px",
|
|
9188
|
-
cursor: "pointer",
|
|
9189
|
-
":hover": {
|
|
9190
|
-
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
9191
|
-
},
|
|
9192
|
-
marginRight: "20px"
|
|
9193
|
-
}
|
|
9194
|
-
}
|
|
9195
|
-
},
|
|
9196
|
-
{
|
|
9197
|
-
type: "Control",
|
|
9198
|
-
scope: "#/properties/FooterBackHandlerText",
|
|
9199
|
-
options: {
|
|
9200
|
-
widget: "Box"
|
|
9201
|
-
},
|
|
9202
|
-
config: {
|
|
9203
|
-
main: {
|
|
9204
|
-
heading: "Previous Page",
|
|
9205
|
-
onClick: "backHandler"
|
|
9206
|
-
},
|
|
9207
|
-
style: {
|
|
9208
|
-
display: { xs: "none", sm: "flex" },
|
|
9209
|
-
textAlign: "left",
|
|
9210
|
-
lineHeight: 1,
|
|
9211
|
-
height: 0,
|
|
9212
|
-
width: "fit-content",
|
|
9213
|
-
color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
|
|
9214
|
-
fontSize: "12px",
|
|
9215
|
-
cursor: "pointer",
|
|
9216
|
-
marginLeft: "2px",
|
|
9217
|
-
top: 3,
|
|
9218
|
-
right: "12px",
|
|
9219
|
-
position: "absolute",
|
|
9220
|
-
":hover": {
|
|
9221
|
-
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
9222
|
-
},
|
|
9223
|
-
marginRight: "4px"
|
|
9224
|
-
}
|
|
9225
|
-
}
|
|
9226
9410
|
}
|
|
9227
9411
|
]
|
|
9228
9412
|
}
|
|
@@ -9240,7 +9424,7 @@ const APISection = {
|
|
|
9240
9424
|
widget: "SelectInputField"
|
|
9241
9425
|
},
|
|
9242
9426
|
config: {
|
|
9243
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9427
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9244
9428
|
main: {
|
|
9245
9429
|
label: "Method",
|
|
9246
9430
|
type: "text"
|
|
@@ -9254,23 +9438,13 @@ const APISection = {
|
|
|
9254
9438
|
widget: "InputField"
|
|
9255
9439
|
},
|
|
9256
9440
|
config: {
|
|
9257
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9258
|
-
main: {
|
|
9259
|
-
label: "Path",
|
|
9260
|
-
type: "text",
|
|
9261
|
-
multiple: false,
|
|
9262
|
-
options: []
|
|
9263
|
-
}
|
|
9264
|
-
}
|
|
9265
|
-
},
|
|
9266
|
-
{
|
|
9267
|
-
type: "Control",
|
|
9268
|
-
scope: "#/properties/emptyBox",
|
|
9269
|
-
options: {
|
|
9270
|
-
widget: "EmptyBox"
|
|
9271
|
-
},
|
|
9272
|
-
config: {
|
|
9273
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9441
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9442
|
+
main: {
|
|
9443
|
+
label: "Path",
|
|
9444
|
+
type: "text",
|
|
9445
|
+
multiple: false,
|
|
9446
|
+
options: []
|
|
9447
|
+
}
|
|
9274
9448
|
}
|
|
9275
9449
|
},
|
|
9276
9450
|
{
|
|
@@ -9280,106 +9454,132 @@ const APISection = {
|
|
|
9280
9454
|
widget: "EmptyBox"
|
|
9281
9455
|
},
|
|
9282
9456
|
config: {
|
|
9283
|
-
layout: { xs: 0, sm: 0, md: 4, lg:
|
|
9457
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
9284
9458
|
}
|
|
9285
9459
|
},
|
|
9286
9460
|
{
|
|
9287
9461
|
type: "Control",
|
|
9288
9462
|
scope: "#/properties/headers",
|
|
9289
|
-
layout: 11.5,
|
|
9290
9463
|
options: {
|
|
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
|
-
{
|
|
9322
|
-
type: "Control",
|
|
9323
|
-
scope: "#/properties/emptyBox",
|
|
9324
|
-
options: {
|
|
9325
|
-
widget: "EmptyBox"
|
|
9326
|
-
},
|
|
9327
|
-
config: {
|
|
9328
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9329
|
-
}
|
|
9464
|
+
widget: "Array"
|
|
9465
|
+
},
|
|
9466
|
+
config: {
|
|
9467
|
+
layout: 12,
|
|
9468
|
+
main: {
|
|
9469
|
+
label: "Headers",
|
|
9470
|
+
childElementLabel: "Headers"
|
|
9471
|
+
},
|
|
9472
|
+
style: {
|
|
9473
|
+
marginLeft: "-24px",
|
|
9474
|
+
marginBottom: "24px !important",
|
|
9475
|
+
labelStyle: {
|
|
9476
|
+
marginLeft: "24px"
|
|
9477
|
+
},
|
|
9478
|
+
detailsStyle: {
|
|
9479
|
+
marginLeft: "24px"
|
|
9480
|
+
}
|
|
9481
|
+
}
|
|
9482
|
+
},
|
|
9483
|
+
elements: [
|
|
9484
|
+
{
|
|
9485
|
+
type: "Control",
|
|
9486
|
+
scope: "#/properties/key",
|
|
9487
|
+
options: {
|
|
9488
|
+
widget: "InputField"
|
|
9489
|
+
},
|
|
9490
|
+
config: {
|
|
9491
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9492
|
+
main: {
|
|
9493
|
+
label: "Key"
|
|
9330
9494
|
}
|
|
9331
|
-
|
|
9495
|
+
}
|
|
9496
|
+
},
|
|
9497
|
+
{
|
|
9498
|
+
type: "Control",
|
|
9499
|
+
scope: "#/properties/value",
|
|
9500
|
+
options: {
|
|
9501
|
+
widget: "InputField"
|
|
9502
|
+
},
|
|
9503
|
+
config: {
|
|
9504
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9505
|
+
main: {
|
|
9506
|
+
label: "Value"
|
|
9507
|
+
}
|
|
9508
|
+
}
|
|
9509
|
+
},
|
|
9510
|
+
{
|
|
9511
|
+
type: "Control",
|
|
9512
|
+
scope: "#/properties/emptyBox",
|
|
9513
|
+
options: {
|
|
9514
|
+
widget: "EmptyBox"
|
|
9515
|
+
},
|
|
9516
|
+
config: {
|
|
9517
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9518
|
+
}
|
|
9332
9519
|
}
|
|
9333
|
-
|
|
9520
|
+
]
|
|
9334
9521
|
},
|
|
9335
9522
|
{
|
|
9336
9523
|
type: "Control",
|
|
9337
9524
|
scope: "#/properties/body",
|
|
9338
|
-
layout: 11.5,
|
|
9339
9525
|
options: {
|
|
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
|
-
{
|
|
9371
|
-
type: "Control",
|
|
9372
|
-
scope: "#/properties/emptyBox",
|
|
9373
|
-
options: {
|
|
9374
|
-
widget: "EmptyBox"
|
|
9375
|
-
},
|
|
9376
|
-
config: {
|
|
9377
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9378
|
-
}
|
|
9526
|
+
widget: "Array"
|
|
9527
|
+
},
|
|
9528
|
+
config: {
|
|
9529
|
+
layout: 12,
|
|
9530
|
+
main: {
|
|
9531
|
+
label: "Body",
|
|
9532
|
+
childElementLabel: "Body"
|
|
9533
|
+
},
|
|
9534
|
+
style: {
|
|
9535
|
+
marginLeft: "-24px",
|
|
9536
|
+
marginBottom: "24px !important",
|
|
9537
|
+
labelStyle: {
|
|
9538
|
+
marginLeft: "24px"
|
|
9539
|
+
},
|
|
9540
|
+
detailsStyle: {
|
|
9541
|
+
marginLeft: "24px"
|
|
9542
|
+
}
|
|
9543
|
+
}
|
|
9544
|
+
},
|
|
9545
|
+
elements: [
|
|
9546
|
+
{
|
|
9547
|
+
type: "Control",
|
|
9548
|
+
scope: "#/properties/key",
|
|
9549
|
+
options: {
|
|
9550
|
+
widget: "InputField"
|
|
9551
|
+
},
|
|
9552
|
+
config: {
|
|
9553
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9554
|
+
main: {
|
|
9555
|
+
label: "Key"
|
|
9379
9556
|
}
|
|
9380
|
-
|
|
9557
|
+
}
|
|
9558
|
+
},
|
|
9559
|
+
{
|
|
9560
|
+
type: "Control",
|
|
9561
|
+
scope: "#/properties/value",
|
|
9562
|
+
options: {
|
|
9563
|
+
widget: "InputField"
|
|
9564
|
+
},
|
|
9565
|
+
config: {
|
|
9566
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9567
|
+
main: {
|
|
9568
|
+
label: "Value"
|
|
9569
|
+
}
|
|
9570
|
+
}
|
|
9571
|
+
},
|
|
9572
|
+
{
|
|
9573
|
+
type: "Control",
|
|
9574
|
+
scope: "#/properties/emptyBox",
|
|
9575
|
+
options: {
|
|
9576
|
+
widget: "EmptyBox"
|
|
9577
|
+
},
|
|
9578
|
+
config: {
|
|
9579
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9580
|
+
}
|
|
9381
9581
|
}
|
|
9382
|
-
|
|
9582
|
+
]
|
|
9383
9583
|
},
|
|
9384
9584
|
getTextArea("apiBody", "Transformer", true, 12)
|
|
9385
9585
|
]
|
|
@@ -9390,116 +9590,134 @@ const refreshSectionUiSchema = {
|
|
|
9390
9590
|
{
|
|
9391
9591
|
type: "Control",
|
|
9392
9592
|
scope: "#/properties/refreshElements",
|
|
9393
|
-
layout: 11.5,
|
|
9394
9593
|
options: {
|
|
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
|
-
|
|
9425
|
-
options: {
|
|
9426
|
-
widget: "EmptyBox"
|
|
9427
|
-
},
|
|
9428
|
-
config: {
|
|
9429
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
9430
|
-
main: {}
|
|
9431
|
-
}
|
|
9594
|
+
widget: "Array"
|
|
9595
|
+
},
|
|
9596
|
+
config: {
|
|
9597
|
+
layout: 12,
|
|
9598
|
+
main: {
|
|
9599
|
+
label: "Refresh Elements",
|
|
9600
|
+
childElementLabel: "Refresh Elements"
|
|
9601
|
+
},
|
|
9602
|
+
style: {
|
|
9603
|
+
marginLeft: "-24px",
|
|
9604
|
+
marginBottom: "24px !important",
|
|
9605
|
+
labelStyle: {
|
|
9606
|
+
marginLeft: "24px"
|
|
9607
|
+
},
|
|
9608
|
+
detailsStyle: {
|
|
9609
|
+
marginLeft: "24px"
|
|
9610
|
+
}
|
|
9611
|
+
}
|
|
9612
|
+
},
|
|
9613
|
+
elements: [
|
|
9614
|
+
{
|
|
9615
|
+
type: "Control",
|
|
9616
|
+
scope: "#/properties/value",
|
|
9617
|
+
options: {
|
|
9618
|
+
widget: "InputField"
|
|
9619
|
+
},
|
|
9620
|
+
config: {
|
|
9621
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9622
|
+
main: {
|
|
9623
|
+
label: "Value"
|
|
9432
9624
|
}
|
|
9433
|
-
|
|
9625
|
+
}
|
|
9626
|
+
},
|
|
9627
|
+
{
|
|
9628
|
+
type: "Control",
|
|
9629
|
+
scope: "#/properties/emptyBox",
|
|
9630
|
+
options: {
|
|
9631
|
+
widget: "EmptyBox"
|
|
9632
|
+
},
|
|
9633
|
+
config: {
|
|
9634
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 8 },
|
|
9635
|
+
main: {}
|
|
9636
|
+
}
|
|
9434
9637
|
}
|
|
9435
|
-
|
|
9638
|
+
]
|
|
9436
9639
|
}
|
|
9437
9640
|
]
|
|
9438
9641
|
};
|
|
9439
|
-
var emptyBox = {
|
|
9440
|
-
type: "Control",
|
|
9441
|
-
scope: "#/properties/emptyBox",
|
|
9442
|
-
options: {
|
|
9443
|
-
widget: "EmptyBox"
|
|
9444
|
-
},
|
|
9445
|
-
config: {
|
|
9446
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
9447
|
-
main: {},
|
|
9448
|
-
style: {}
|
|
9449
|
-
}
|
|
9450
|
-
};
|
|
9451
9642
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9452
9643
|
return {
|
|
9453
9644
|
setPage: async function() {
|
|
9454
9645
|
const formdata = await this.getFormData();
|
|
9455
9646
|
store2.setFormdata(formdata);
|
|
9456
9647
|
const schema2 = await this.getSchema();
|
|
9648
|
+
console.log("SettingSchema>>", schema2);
|
|
9457
9649
|
store2.setSchema(schema2);
|
|
9458
9650
|
this.refreshPage(formdata.Handler, store2);
|
|
9459
9651
|
},
|
|
9460
9652
|
refreshPage: (handlerType, store22) => {
|
|
9653
|
+
var _a, _b, _c;
|
|
9461
9654
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9462
9655
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9463
9656
|
if (handlerType) {
|
|
9464
9657
|
if (handlerType === "custom") {
|
|
9465
|
-
uiSchema.elements[
|
|
9466
|
-
|
|
9658
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9659
|
+
"isSync",
|
|
9660
|
+
"Run in Sync",
|
|
9661
|
+
["Yes", "No"]
|
|
9662
|
+
);
|
|
9663
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9467
9664
|
type: "Control",
|
|
9468
9665
|
scope: "#/properties/emptyBox",
|
|
9469
9666
|
options: {
|
|
9470
9667
|
widget: "EmptyBox"
|
|
9471
9668
|
},
|
|
9472
9669
|
config: {
|
|
9473
|
-
layout: { xs:
|
|
9670
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9474
9671
|
main: {},
|
|
9475
9672
|
style: {}
|
|
9476
9673
|
}
|
|
9477
9674
|
};
|
|
9478
|
-
uiSchema.elements[
|
|
9675
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9676
|
+
"eventCode",
|
|
9677
|
+
"Write Custom Code",
|
|
9678
|
+
false
|
|
9679
|
+
);
|
|
9479
9680
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9480
9681
|
} else if (handlerType === "api") {
|
|
9481
|
-
uiSchema.elements[
|
|
9482
|
-
|
|
9682
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9683
|
+
xs: 0,
|
|
9684
|
+
sm: 0,
|
|
9685
|
+
md: 4,
|
|
9686
|
+
lg: 6
|
|
9687
|
+
});
|
|
9688
|
+
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9483
9689
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9484
9690
|
} else if (handlerType === "inBuiltFunction") {
|
|
9485
|
-
uiSchema.elements[
|
|
9486
|
-
|
|
9691
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9692
|
+
"inBuiltFunctionType",
|
|
9693
|
+
"Function Name"
|
|
9694
|
+
);
|
|
9695
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9487
9696
|
type: "Control",
|
|
9488
9697
|
scope: "#/properties/emptyBox",
|
|
9489
9698
|
options: {
|
|
9490
9699
|
widget: "EmptyBox"
|
|
9491
9700
|
},
|
|
9492
9701
|
config: {
|
|
9493
|
-
layout: { xs: 6, sm: 6, md: 0, lg:
|
|
9702
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9494
9703
|
main: {},
|
|
9495
9704
|
style: {}
|
|
9496
9705
|
}
|
|
9497
9706
|
};
|
|
9498
|
-
uiSchema.elements[
|
|
9707
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9708
|
+
"funcParametersCode",
|
|
9709
|
+
"Write Custom Code for Functions Parameter",
|
|
9710
|
+
true
|
|
9711
|
+
);
|
|
9499
9712
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9500
9713
|
} else if (handlerType === "refresh") {
|
|
9501
|
-
uiSchema.elements[
|
|
9502
|
-
|
|
9714
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9715
|
+
xs: 0,
|
|
9716
|
+
sm: 0,
|
|
9717
|
+
md: 4,
|
|
9718
|
+
lg: 6
|
|
9719
|
+
});
|
|
9720
|
+
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9503
9721
|
schema2.properties.refreshElements.required = ["value"];
|
|
9504
9722
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
9505
9723
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
@@ -9512,9 +9730,35 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9512
9730
|
];
|
|
9513
9731
|
}
|
|
9514
9732
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9515
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9733
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9734
|
+
uiSchema
|
|
9735
|
+
);
|
|
9516
9736
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9517
9737
|
}
|
|
9738
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9739
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9740
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9741
|
+
let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9742
|
+
if (path) {
|
|
9743
|
+
const pathArrayAll = path.split(".");
|
|
9744
|
+
const arr = [];
|
|
9745
|
+
pathArrayAll.map((e, i) => {
|
|
9746
|
+
if (i === 0) {
|
|
9747
|
+
arr.push(e);
|
|
9748
|
+
return;
|
|
9749
|
+
}
|
|
9750
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9751
|
+
});
|
|
9752
|
+
arr.map((e) => {
|
|
9753
|
+
const data = _.get(config2, e);
|
|
9754
|
+
pathArray.push({
|
|
9755
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9756
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9757
|
+
});
|
|
9758
|
+
});
|
|
9759
|
+
}
|
|
9760
|
+
console.log("pathArray>>", pathArray);
|
|
9761
|
+
schema2.properties.pageName.path = pathArray;
|
|
9518
9762
|
store22.setSchema(schema2);
|
|
9519
9763
|
store22.setUiSchema(uiSchema);
|
|
9520
9764
|
},
|
|
@@ -9523,10 +9767,35 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9523
9767
|
return EventUiSchema;
|
|
9524
9768
|
},
|
|
9525
9769
|
getSchema: () => {
|
|
9770
|
+
var _a, _b, _c;
|
|
9526
9771
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9527
9772
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9528
9773
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9529
9774
|
}
|
|
9775
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9776
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9777
|
+
const id = (_b = store2.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
|
+
console.log("pathArray>>", pathArray);
|
|
9798
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9530
9799
|
return schema2;
|
|
9531
9800
|
},
|
|
9532
9801
|
okHandler: () => okHandler(store2),
|
|
@@ -9534,7 +9803,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9534
9803
|
onChange: function() {
|
|
9535
9804
|
var _a, _b, _c;
|
|
9536
9805
|
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) {
|
|
9537
|
-
this.refreshPage(
|
|
9806
|
+
this.refreshPage(
|
|
9807
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9808
|
+
store2
|
|
9809
|
+
);
|
|
9538
9810
|
}
|
|
9539
9811
|
},
|
|
9540
9812
|
addEvent: function() {
|
|
@@ -9560,7 +9832,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9560
9832
|
this.setPage();
|
|
9561
9833
|
},
|
|
9562
9834
|
deleteEvent: async function() {
|
|
9563
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9835
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9836
|
+
false
|
|
9837
|
+
);
|
|
9564
9838
|
store2.updateDialog("popUpEvent");
|
|
9565
9839
|
},
|
|
9566
9840
|
backHandler: function() {
|
|
@@ -9572,10 +9846,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9572
9846
|
store2.updateDialog("popUpEvent");
|
|
9573
9847
|
},
|
|
9574
9848
|
copyPasteElement: function() {
|
|
9575
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9849
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9850
|
+
store2,
|
|
9851
|
+
this.setPage.bind(this)
|
|
9852
|
+
);
|
|
9576
9853
|
},
|
|
9577
9854
|
RemoveItemButton: function() {
|
|
9578
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9855
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9856
|
+
store2
|
|
9857
|
+
);
|
|
9579
9858
|
}
|
|
9580
9859
|
};
|
|
9581
9860
|
};
|
|
@@ -9746,16 +10025,17 @@ function executeCustomHandler(params) {
|
|
|
9746
10025
|
}
|
|
9747
10026
|
}
|
|
9748
10027
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10028
|
+
var _a, _b, _c;
|
|
9749
10029
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9750
10030
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9751
10031
|
store2.setSchema((pre) => {
|
|
9752
|
-
var
|
|
10032
|
+
var _a2;
|
|
9753
10033
|
return {
|
|
9754
10034
|
...pre,
|
|
9755
10035
|
properties: {
|
|
9756
10036
|
...pre.properties,
|
|
9757
10037
|
[componentName]: {
|
|
9758
|
-
...(
|
|
10038
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9759
10039
|
oneOf: handlerResponse.data
|
|
9760
10040
|
}
|
|
9761
10041
|
}
|
|
@@ -9765,13 +10045,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9765
10045
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9766
10046
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9767
10047
|
store2.setSchema((pre) => {
|
|
9768
|
-
var
|
|
10048
|
+
var _a2;
|
|
9769
10049
|
return {
|
|
9770
10050
|
...pre,
|
|
9771
10051
|
properties: {
|
|
9772
10052
|
...pre.properties,
|
|
9773
10053
|
[componentName]: {
|
|
9774
|
-
...(
|
|
10054
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9775
10055
|
type: "array",
|
|
9776
10056
|
items: {
|
|
9777
10057
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -9791,6 +10071,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9791
10071
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9792
10072
|
});
|
|
9793
10073
|
}
|
|
10074
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10075
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10076
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10077
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10078
|
+
store2.setFormdata((pre) => {
|
|
10079
|
+
return { ...pre, ...formDataHolder };
|
|
10080
|
+
});
|
|
10081
|
+
}
|
|
9794
10082
|
} else {
|
|
9795
10083
|
if (handlerResponse) {
|
|
9796
10084
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -10096,7 +10384,7 @@ var service = (funcParams) => {
|
|
|
10096
10384
|
service: funcParams.service,
|
|
10097
10385
|
serviceHolder: this,
|
|
10098
10386
|
eventGroups,
|
|
10099
|
-
formDataHolder
|
|
10387
|
+
formDataHolder: {}
|
|
10100
10388
|
});
|
|
10101
10389
|
funcParams.store.setSchema(
|
|
10102
10390
|
(pre) => {
|
|
@@ -10111,11 +10399,11 @@ var service = (funcParams) => {
|
|
|
10111
10399
|
funcParams.store.setUiSchema(uiSchema);
|
|
10112
10400
|
},
|
|
10113
10401
|
onCellRenderer: (cellParams) => {
|
|
10114
|
-
var _a, _b, _c;
|
|
10402
|
+
var _a, _b, _c, _d;
|
|
10115
10403
|
if (eventGroups.onCellRenderer) {
|
|
10116
10404
|
let finalResponse = {};
|
|
10117
10405
|
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]);
|
|
10118
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
10406
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10119
10407
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10120
10408
|
finalResponse = executeEvents({
|
|
10121
10409
|
...executeEventsParameters,
|
|
@@ -10719,6 +11007,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10719
11007
|
if (config2.style) {
|
|
10720
11008
|
inputField.config.style = JSON.parse(config2.style);
|
|
10721
11009
|
}
|
|
11010
|
+
if (config2.multiline) {
|
|
11011
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11012
|
+
}
|
|
10722
11013
|
if (config2.InputFormatingAndMasking) {
|
|
10723
11014
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10724
11015
|
}
|
|
@@ -11555,6 +11846,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11555
11846
|
}
|
|
11556
11847
|
return Radio;
|
|
11557
11848
|
};
|
|
11849
|
+
var emptyBox = {
|
|
11850
|
+
type: "Control",
|
|
11851
|
+
scope: "#/properties/emptyBox",
|
|
11852
|
+
options: {
|
|
11853
|
+
widget: "EmptyBox"
|
|
11854
|
+
},
|
|
11855
|
+
config: {
|
|
11856
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11857
|
+
main: {},
|
|
11858
|
+
style: {}
|
|
11859
|
+
}
|
|
11860
|
+
};
|
|
11558
11861
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11559
11862
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11560
11863
|
if (config2.layout) {
|
|
@@ -12232,19 +12535,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12232
12535
|
});
|
|
12233
12536
|
} else if (config2.type == "Table") {
|
|
12234
12537
|
const sizeMap = {};
|
|
12235
|
-
const filterMap = {};
|
|
12236
12538
|
if (config2.sizeHolder) {
|
|
12237
12539
|
config2.sizeHolder.map((e, i) => {
|
|
12238
12540
|
sizeMap[e.keyName] = e.value;
|
|
12239
12541
|
});
|
|
12240
12542
|
}
|
|
12241
|
-
if (config2.enableColumnFilter) {
|
|
12242
|
-
config2.enableColumnFilter.map((e) => {
|
|
12243
|
-
filterMap[e.keyName] = true;
|
|
12244
|
-
});
|
|
12245
|
-
}
|
|
12246
12543
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12247
|
-
var _a, _b;
|
|
12248
12544
|
if (cellElem.type) {
|
|
12249
12545
|
return {
|
|
12250
12546
|
accessorKey: cellElem.name,
|
|
@@ -12253,8 +12549,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12253
12549
|
type: cellElem.columnFormat,
|
|
12254
12550
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12255
12551
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12256
|
-
|
|
12257
|
-
|
|
12552
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12553
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12554
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12258
12555
|
};
|
|
12259
12556
|
} else {
|
|
12260
12557
|
return {
|
|
@@ -12262,8 +12559,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12262
12559
|
type: cellElem.columnFormat,
|
|
12263
12560
|
header: cellElem.label || cellElem.name,
|
|
12264
12561
|
size: sizeMap[cellElem.name] || 180,
|
|
12265
|
-
|
|
12266
|
-
|
|
12562
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12563
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false,
|
|
12564
|
+
enableSorting: cellElem.enableSorting === "Yes" ? true : false
|
|
12267
12565
|
};
|
|
12268
12566
|
}
|
|
12269
12567
|
});
|