impaktapps-ui-builder 0.0.101-alpha.7 → 0.0.101-alpha.71
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 +1046 -776
- 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/buildUiSchema.ts +12 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +111 -96
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +100 -94
- 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 +98 -42
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +9 -8
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +177 -289
- package/src/impaktapps-ui-builder/builder/services/component.ts +131 -33
- package/src/impaktapps-ui-builder/builder/services/event.ts +167 -65
|
@@ -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",
|
|
@@ -6241,44 +6243,44 @@ const ComponentSchema = {
|
|
|
6241
6243
|
properties: {
|
|
6242
6244
|
type: {
|
|
6243
6245
|
oneOf: [
|
|
6244
|
-
{ title: "
|
|
6246
|
+
{ title: "Masked Aadhaar", const: "AadharcardText" },
|
|
6245
6247
|
{ title: "Array", const: "Array" },
|
|
6246
6248
|
{ title: "Button", const: "Button" },
|
|
6247
|
-
{ title: "Card", const: "card" },
|
|
6248
|
-
{ title: "
|
|
6249
|
+
{ title: "Data Card", const: "card" },
|
|
6250
|
+
{ title: "Check Box", const: "CheckBox" },
|
|
6249
6251
|
{ title: "Container", const: "WrapperSection" },
|
|
6250
|
-
{ title: "
|
|
6252
|
+
{ title: "Data Grid", const: "DataGrid" },
|
|
6251
6253
|
{ title: "Date", const: "Date" },
|
|
6252
|
-
{ title: "
|
|
6253
|
-
{ title: "Download
|
|
6254
|
+
{ title: "Time Stamp", const: "DateTime" },
|
|
6255
|
+
{ title: "Download", const: "DownloadFile" },
|
|
6254
6256
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6255
|
-
{ title: "File", const: "FileInput" },
|
|
6257
|
+
{ title: "File Handler", const: "FileInput" },
|
|
6256
6258
|
{ title: "Graph", const: "Graph" },
|
|
6257
6259
|
{ title: "Input Slider", const: "InputSlider" },
|
|
6258
6260
|
{ title: "Label", const: "Box" },
|
|
6259
|
-
{ title: "
|
|
6260
|
-
{ title: "
|
|
6261
|
-
{ title: "
|
|
6262
|
-
{ title: "
|
|
6263
|
-
{ title: "
|
|
6264
|
-
{ title: "
|
|
6265
|
-
{ title: "
|
|
6261
|
+
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6262
|
+
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6263
|
+
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6264
|
+
{ title: "Pop Up", const: "PopUp" },
|
|
6265
|
+
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6266
|
+
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6267
|
+
{ title: "Dropdown", const: "Select" },
|
|
6266
6268
|
{ title: "Slider", const: "Slider" },
|
|
6267
|
-
{ title: "
|
|
6269
|
+
{ title: "Speedometer", const: "SpeedoMeter" },
|
|
6268
6270
|
{ title: "Stepper Container", const: "Stepper" },
|
|
6269
6271
|
{ title: "Radio", const: "Radio" },
|
|
6270
6272
|
{ title: "Rank", const: "Rank" },
|
|
6271
6273
|
{ title: "Rank Card", const: "RankCard" },
|
|
6272
|
-
{ title: "Runner Boy
|
|
6274
|
+
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6273
6275
|
{ title: "Table", const: "Table" },
|
|
6274
6276
|
{ title: "Tabs", const: "TabSection" },
|
|
6275
6277
|
{ title: "Text", const: "Text" },
|
|
6276
6278
|
{ title: "Text Area", const: "TextArea" },
|
|
6277
6279
|
{ title: "Timer", const: "Timer" },
|
|
6278
|
-
{ title: "Upload
|
|
6279
|
-
{ title: "
|
|
6280
|
-
{ title: "
|
|
6281
|
-
{ title: "Thought of the
|
|
6280
|
+
{ title: "Upload", const: "UploadFile" },
|
|
6281
|
+
{ title: "Tree ", const: "TreeMap" },
|
|
6282
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6283
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6282
6284
|
{ title: "Pdf Viewer", const: "PdfViewer" }
|
|
6283
6285
|
]
|
|
6284
6286
|
},
|
|
@@ -6433,23 +6435,20 @@ const ComponentSchema = {
|
|
|
6433
6435
|
}
|
|
6434
6436
|
},
|
|
6435
6437
|
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
|
-
}
|
|
6438
|
+
oneOf: [
|
|
6439
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6440
|
+
{ const: "contains", title: "Contain" },
|
|
6441
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6442
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6443
|
+
{ const: "equals", title: "Equals" },
|
|
6444
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6445
|
+
{ const: "between", title: "Between" },
|
|
6446
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6447
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6448
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6449
|
+
{ const: "lessThan", title: "Less than" },
|
|
6450
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6451
|
+
]
|
|
6453
6452
|
},
|
|
6454
6453
|
legendLabels: {
|
|
6455
6454
|
type: "array",
|
|
@@ -6565,6 +6564,9 @@ const ComponentSchema = {
|
|
|
6565
6564
|
{ title: "Info", const: "info" }
|
|
6566
6565
|
]
|
|
6567
6566
|
},
|
|
6567
|
+
pageName: {
|
|
6568
|
+
path: []
|
|
6569
|
+
},
|
|
6568
6570
|
name: {
|
|
6569
6571
|
type: "string"
|
|
6570
6572
|
},
|
|
@@ -6607,7 +6609,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6607
6609
|
type: "WrapperLayout",
|
|
6608
6610
|
config: {
|
|
6609
6611
|
main: {
|
|
6610
|
-
label: "",
|
|
6612
|
+
label: " ",
|
|
6611
6613
|
gap: "8px"
|
|
6612
6614
|
}
|
|
6613
6615
|
},
|
|
@@ -6645,8 +6647,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6645
6647
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
6646
6648
|
main: {
|
|
6647
6649
|
label: "Component ID",
|
|
6648
|
-
options: [],
|
|
6649
|
-
color: "secondary",
|
|
6650
6650
|
required: true
|
|
6651
6651
|
}
|
|
6652
6652
|
}
|
|
@@ -6747,48 +6747,58 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6747
6747
|
]
|
|
6748
6748
|
},
|
|
6749
6749
|
{
|
|
6750
|
-
type: "
|
|
6751
|
-
scope: "#/properties/btn",
|
|
6752
|
-
options: {
|
|
6753
|
-
widget: "Button"
|
|
6754
|
-
},
|
|
6750
|
+
type: "WrapperLayout",
|
|
6755
6751
|
config: {
|
|
6756
|
-
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6757
6752
|
main: {
|
|
6758
|
-
|
|
6759
|
-
variant: "contained",
|
|
6760
|
-
type: "text",
|
|
6761
|
-
onClick: "okHandler",
|
|
6762
|
-
size: "medium"
|
|
6753
|
+
gap: "8px"
|
|
6763
6754
|
}
|
|
6764
|
-
}
|
|
6765
|
-
},
|
|
6766
|
-
{
|
|
6767
|
-
type: "Control",
|
|
6768
|
-
scope: "#/properties/btnSubmit",
|
|
6769
|
-
options: {
|
|
6770
|
-
widget: "Button"
|
|
6771
6755
|
},
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6756
|
+
elements: [
|
|
6757
|
+
{
|
|
6758
|
+
type: "Control",
|
|
6759
|
+
scope: "#/properties/btn",
|
|
6760
|
+
options: {
|
|
6761
|
+
widget: "Button"
|
|
6762
|
+
},
|
|
6763
|
+
config: {
|
|
6764
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6765
|
+
main: {
|
|
6766
|
+
name: "Ok",
|
|
6767
|
+
variant: "contained",
|
|
6768
|
+
type: "text",
|
|
6769
|
+
onClick: "okHandler",
|
|
6770
|
+
size: "medium"
|
|
6771
|
+
}
|
|
6772
|
+
}
|
|
6773
|
+
},
|
|
6774
|
+
{
|
|
6775
|
+
type: "Control",
|
|
6776
|
+
scope: "#/properties/btnSubmit",
|
|
6777
|
+
options: {
|
|
6778
|
+
widget: "Button"
|
|
6779
|
+
},
|
|
6780
|
+
config: {
|
|
6781
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6782
|
+
main: {
|
|
6783
|
+
name: "Save & Exit",
|
|
6784
|
+
variant: "contained",
|
|
6785
|
+
type: "text",
|
|
6786
|
+
onClick: "saveHandler",
|
|
6787
|
+
size: "medium"
|
|
6788
|
+
}
|
|
6789
|
+
}
|
|
6790
|
+
},
|
|
6791
|
+
{
|
|
6792
|
+
type: "Control",
|
|
6793
|
+
scope: "#/properties/EmptyBox",
|
|
6794
|
+
config: {
|
|
6795
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6796
|
+
},
|
|
6797
|
+
options: {
|
|
6798
|
+
widget: "EmptyBox"
|
|
6799
|
+
}
|
|
6780
6800
|
}
|
|
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
|
-
}
|
|
6801
|
+
]
|
|
6792
6802
|
},
|
|
6793
6803
|
{
|
|
6794
6804
|
type: "Control",
|
|
@@ -7030,6 +7040,26 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7030
7040
|
}
|
|
7031
7041
|
]
|
|
7032
7042
|
},
|
|
7043
|
+
{
|
|
7044
|
+
type: "Control",
|
|
7045
|
+
scope: "#/properties/pageName",
|
|
7046
|
+
options: {
|
|
7047
|
+
widget: "Breadcrumb"
|
|
7048
|
+
},
|
|
7049
|
+
config: {
|
|
7050
|
+
layout: 12,
|
|
7051
|
+
main: {},
|
|
7052
|
+
style: {
|
|
7053
|
+
paddingLeft: theme.spacing(3),
|
|
7054
|
+
color: theme.palette.grey[600],
|
|
7055
|
+
fontSize: "10px",
|
|
7056
|
+
position: "fixed",
|
|
7057
|
+
bottom: "24px",
|
|
7058
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
7059
|
+
borderTop: `1px solid ${theme.palette.common.black}29`
|
|
7060
|
+
}
|
|
7061
|
+
}
|
|
7062
|
+
},
|
|
7033
7063
|
{
|
|
7034
7064
|
type: "Control",
|
|
7035
7065
|
scope: "#/properties/notify",
|
|
@@ -7087,7 +7117,13 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7087
7117
|
return uiSchema;
|
|
7088
7118
|
};
|
|
7089
7119
|
const CoreSection = {
|
|
7090
|
-
type: "
|
|
7120
|
+
type: "WrapperLayout",
|
|
7121
|
+
config: {
|
|
7122
|
+
main: {
|
|
7123
|
+
label: " ",
|
|
7124
|
+
gap: "8px"
|
|
7125
|
+
}
|
|
7126
|
+
},
|
|
7091
7127
|
elements: [
|
|
7092
7128
|
{
|
|
7093
7129
|
type: "Control",
|
|
@@ -7096,7 +7132,7 @@ const CoreSection = {
|
|
|
7096
7132
|
widget: "SelectInputField"
|
|
7097
7133
|
},
|
|
7098
7134
|
config: {
|
|
7099
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7135
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7100
7136
|
main: {
|
|
7101
7137
|
label: "Type",
|
|
7102
7138
|
type: "text"
|
|
@@ -7105,40 +7141,39 @@ const CoreSection = {
|
|
|
7105
7141
|
},
|
|
7106
7142
|
{
|
|
7107
7143
|
type: "Control",
|
|
7108
|
-
scope: "#/properties/
|
|
7109
|
-
options: {
|
|
7110
|
-
widget: "InputField"
|
|
7111
|
-
},
|
|
7144
|
+
scope: "#/properties/proc",
|
|
7112
7145
|
config: {
|
|
7113
|
-
layout: { xs: 6, sm:
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7146
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
7147
|
+
},
|
|
7148
|
+
options: {
|
|
7149
|
+
widget: "EmptyBox"
|
|
7117
7150
|
}
|
|
7118
7151
|
},
|
|
7119
7152
|
{
|
|
7120
7153
|
type: "Control",
|
|
7121
|
-
scope: "#/properties/
|
|
7154
|
+
scope: "#/properties/name",
|
|
7122
7155
|
options: {
|
|
7123
7156
|
widget: "InputField"
|
|
7124
7157
|
},
|
|
7125
7158
|
config: {
|
|
7126
|
-
layout: { xs:
|
|
7159
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7127
7160
|
main: {
|
|
7128
|
-
label: "
|
|
7161
|
+
label: "Component ID",
|
|
7162
|
+
required: true
|
|
7129
7163
|
}
|
|
7130
7164
|
}
|
|
7131
7165
|
},
|
|
7132
7166
|
{
|
|
7133
7167
|
type: "Control",
|
|
7134
|
-
scope: "#/properties/
|
|
7168
|
+
scope: "#/properties/label",
|
|
7135
7169
|
options: {
|
|
7136
|
-
widget: "
|
|
7170
|
+
widget: "InputField"
|
|
7137
7171
|
},
|
|
7138
7172
|
config: {
|
|
7139
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7173
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7140
7174
|
main: {
|
|
7141
|
-
label: "
|
|
7175
|
+
label: "Label",
|
|
7176
|
+
required: true
|
|
7142
7177
|
}
|
|
7143
7178
|
}
|
|
7144
7179
|
},
|
|
@@ -7146,17 +7181,7 @@ const CoreSection = {
|
|
|
7146
7181
|
type: "Control",
|
|
7147
7182
|
scope: "#/properties/proc",
|
|
7148
7183
|
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 }
|
|
7184
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7160
7185
|
},
|
|
7161
7186
|
options: {
|
|
7162
7187
|
widget: "EmptyBox"
|
|
@@ -7165,54 +7190,67 @@ const CoreSection = {
|
|
|
7165
7190
|
{
|
|
7166
7191
|
type: "Control",
|
|
7167
7192
|
scope: "#/properties/layout",
|
|
7168
|
-
layout: 12,
|
|
7169
7193
|
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
|
-
}
|
|
7194
|
+
widget: "Array"
|
|
7195
|
+
},
|
|
7196
|
+
config: {
|
|
7197
|
+
layout: 12,
|
|
7198
|
+
main: {
|
|
7199
|
+
label: "Layout",
|
|
7200
|
+
childElementLabel: "Layout"
|
|
7201
|
+
},
|
|
7202
|
+
style: {
|
|
7203
|
+
marginLeft: "-24px",
|
|
7204
|
+
marginBottom: "24px !important",
|
|
7205
|
+
labelStyle: {
|
|
7206
|
+
marginLeft: "24px"
|
|
7207
|
+
},
|
|
7208
|
+
detailsStyle: {
|
|
7209
|
+
marginLeft: "24px"
|
|
7210
|
+
}
|
|
7211
|
+
}
|
|
7212
|
+
},
|
|
7213
|
+
elements: [
|
|
7214
|
+
{
|
|
7215
|
+
type: "Control",
|
|
7216
|
+
scope: "#/properties/key",
|
|
7217
|
+
options: {
|
|
7218
|
+
widget: "SelectInputField"
|
|
7219
|
+
},
|
|
7220
|
+
config: {
|
|
7221
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7222
|
+
main: {
|
|
7223
|
+
label: "Screen Size"
|
|
7212
7224
|
}
|
|
7213
|
-
|
|
7225
|
+
}
|
|
7226
|
+
},
|
|
7227
|
+
{
|
|
7228
|
+
type: "Control",
|
|
7229
|
+
scope: "#/properties/value",
|
|
7230
|
+
options: {
|
|
7231
|
+
widget: "InputField"
|
|
7232
|
+
},
|
|
7233
|
+
config: {
|
|
7234
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7235
|
+
main: {
|
|
7236
|
+
label: "Value",
|
|
7237
|
+
type: "number",
|
|
7238
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7239
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7240
|
+
}
|
|
7241
|
+
}
|
|
7242
|
+
},
|
|
7243
|
+
{
|
|
7244
|
+
type: "Control",
|
|
7245
|
+
scope: "#/properties/proc",
|
|
7246
|
+
config: {
|
|
7247
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7248
|
+
},
|
|
7249
|
+
options: {
|
|
7250
|
+
widget: "EmptyBox"
|
|
7251
|
+
}
|
|
7214
7252
|
}
|
|
7215
|
-
|
|
7253
|
+
]
|
|
7216
7254
|
}
|
|
7217
7255
|
]
|
|
7218
7256
|
};
|
|
@@ -7239,15 +7277,20 @@ const EventSection = (theme) => {
|
|
|
7239
7277
|
},
|
|
7240
7278
|
config: {
|
|
7241
7279
|
main: {
|
|
7242
|
-
color: "info",
|
|
7243
7280
|
onClick: "eventAddHandler",
|
|
7244
7281
|
size: "small",
|
|
7245
|
-
icon: "
|
|
7246
|
-
iconLabel: "Add
|
|
7282
|
+
icon: "TableAddIcon",
|
|
7283
|
+
iconLabel: "Add",
|
|
7247
7284
|
styleDefault: true
|
|
7248
7285
|
},
|
|
7249
7286
|
style: {
|
|
7250
|
-
mt: "6px"
|
|
7287
|
+
mt: "6px",
|
|
7288
|
+
color: "inherit",
|
|
7289
|
+
fill: "inherit",
|
|
7290
|
+
"&:hover": {
|
|
7291
|
+
color: "inherit",
|
|
7292
|
+
fill: "inherit"
|
|
7293
|
+
}
|
|
7251
7294
|
}
|
|
7252
7295
|
}
|
|
7253
7296
|
}
|
|
@@ -7263,12 +7306,18 @@ const EventSection = (theme) => {
|
|
|
7263
7306
|
main: {
|
|
7264
7307
|
onClick: "copyPasteElement",
|
|
7265
7308
|
size: "small",
|
|
7266
|
-
icon: "
|
|
7309
|
+
icon: "TablePaste",
|
|
7267
7310
|
iconLabel: "Paste",
|
|
7268
7311
|
styleDefault: true
|
|
7269
7312
|
},
|
|
7270
7313
|
style: {
|
|
7271
|
-
mt: "6px"
|
|
7314
|
+
mt: "6px",
|
|
7315
|
+
color: "inherit",
|
|
7316
|
+
fill: "inherit",
|
|
7317
|
+
"&:hover": {
|
|
7318
|
+
color: "inherit",
|
|
7319
|
+
fill: "inherit"
|
|
7320
|
+
}
|
|
7272
7321
|
}
|
|
7273
7322
|
}
|
|
7274
7323
|
}
|
|
@@ -7283,15 +7332,21 @@ const EventSection = (theme) => {
|
|
|
7283
7332
|
elements: [
|
|
7284
7333
|
{
|
|
7285
7334
|
accessorKey: "eventType",
|
|
7286
|
-
header: "Event Type"
|
|
7335
|
+
header: "Event's Type",
|
|
7336
|
+
type: "string",
|
|
7337
|
+
size: 300
|
|
7287
7338
|
},
|
|
7288
7339
|
{
|
|
7289
7340
|
accessorKey: "Handler",
|
|
7290
|
-
header: "Handler"
|
|
7341
|
+
header: "Handler",
|
|
7342
|
+
type: "string",
|
|
7343
|
+
size: 200
|
|
7291
7344
|
},
|
|
7292
7345
|
{
|
|
7293
7346
|
accessorKey: "Edit_Approve_Records",
|
|
7294
|
-
header: "Edit
|
|
7347
|
+
header: "Edit",
|
|
7348
|
+
size: 150,
|
|
7349
|
+
type: "action",
|
|
7295
7350
|
widget: {
|
|
7296
7351
|
type: "Control",
|
|
7297
7352
|
scope: "#/properties/Edit_Records",
|
|
@@ -7300,14 +7355,16 @@ const EventSection = (theme) => {
|
|
|
7300
7355
|
},
|
|
7301
7356
|
config: {
|
|
7302
7357
|
main: {
|
|
7303
|
-
color: "info",
|
|
7304
7358
|
size: "small",
|
|
7305
|
-
icon: "
|
|
7359
|
+
icon: "TableEditIcon",
|
|
7306
7360
|
tooltipMessage: "Edit This Record",
|
|
7307
7361
|
onClick: "eventEditHandler"
|
|
7308
7362
|
},
|
|
7309
7363
|
style: {
|
|
7310
|
-
|
|
7364
|
+
fill: theme.palette.primary.main,
|
|
7365
|
+
"& :hover": {
|
|
7366
|
+
fill: theme.palette.primary.dark
|
|
7367
|
+
}
|
|
7311
7368
|
}
|
|
7312
7369
|
}
|
|
7313
7370
|
}
|
|
@@ -7315,6 +7372,8 @@ const EventSection = (theme) => {
|
|
|
7315
7372
|
{
|
|
7316
7373
|
accessorKey: "Reject_Records",
|
|
7317
7374
|
header: "Delete",
|
|
7375
|
+
size: 150,
|
|
7376
|
+
type: "action",
|
|
7318
7377
|
widget: {
|
|
7319
7378
|
type: "Control",
|
|
7320
7379
|
scope: "#/properties/RejectButton",
|
|
@@ -7324,10 +7383,15 @@ const EventSection = (theme) => {
|
|
|
7324
7383
|
},
|
|
7325
7384
|
config: {
|
|
7326
7385
|
main: {
|
|
7327
|
-
icon: "
|
|
7328
|
-
color: "error",
|
|
7386
|
+
icon: "Bin",
|
|
7329
7387
|
tooltipMessage: "Reject This Record",
|
|
7330
7388
|
onClick: "deletePopUpEvent"
|
|
7389
|
+
},
|
|
7390
|
+
style: {
|
|
7391
|
+
fill: theme.palette.primary.main,
|
|
7392
|
+
"& :hover": {
|
|
7393
|
+
fill: theme.palette.primary.dark
|
|
7394
|
+
}
|
|
7331
7395
|
}
|
|
7332
7396
|
}
|
|
7333
7397
|
}
|
|
@@ -7335,7 +7399,8 @@ const EventSection = (theme) => {
|
|
|
7335
7399
|
{
|
|
7336
7400
|
header: "Copy",
|
|
7337
7401
|
field: "Copy_Event",
|
|
7338
|
-
|
|
7402
|
+
size: 150,
|
|
7403
|
+
type: "action",
|
|
7339
7404
|
widget: {
|
|
7340
7405
|
type: "Control",
|
|
7341
7406
|
scope: "#/properties/Copy_Event",
|
|
@@ -7385,77 +7450,103 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7385
7450
|
const cardLayout = {
|
|
7386
7451
|
type: "Control",
|
|
7387
7452
|
scope: "#/properties/cardLayout",
|
|
7388
|
-
layout: 11.5,
|
|
7389
7453
|
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}`,
|
|
7454
|
+
widget: "Array"
|
|
7455
|
+
},
|
|
7456
|
+
config: {
|
|
7431
7457
|
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
|
-
]
|
|
7458
|
+
main: {
|
|
7459
|
+
label: "Card Layout",
|
|
7460
|
+
childElementLabel: "Card Layout"
|
|
7461
|
+
},
|
|
7462
|
+
style: {
|
|
7463
|
+
marginLeft: "-24px",
|
|
7464
|
+
marginBottom: "24px !important",
|
|
7465
|
+
labelStyle: {
|
|
7466
|
+
marginLeft: "24px"
|
|
7467
|
+
},
|
|
7468
|
+
detailsStyle: {
|
|
7469
|
+
marginLeft: "24px"
|
|
7453
7470
|
}
|
|
7454
7471
|
}
|
|
7472
|
+
},
|
|
7473
|
+
elements: [
|
|
7474
|
+
{
|
|
7475
|
+
type: "Control",
|
|
7476
|
+
scope: "#/properties/key",
|
|
7477
|
+
options: {
|
|
7478
|
+
widget: "SelectInputField"
|
|
7479
|
+
},
|
|
7480
|
+
config: {
|
|
7481
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7482
|
+
main: {
|
|
7483
|
+
label: "Screen Size"
|
|
7484
|
+
}
|
|
7485
|
+
}
|
|
7486
|
+
},
|
|
7487
|
+
{
|
|
7488
|
+
type: "Control",
|
|
7489
|
+
scope: "#/properties/value",
|
|
7490
|
+
options: {
|
|
7491
|
+
widget: "InputField"
|
|
7492
|
+
},
|
|
7493
|
+
config: {
|
|
7494
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7495
|
+
main: {
|
|
7496
|
+
label: "Value",
|
|
7497
|
+
type: "number",
|
|
7498
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7499
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7500
|
+
}
|
|
7501
|
+
}
|
|
7502
|
+
},
|
|
7503
|
+
emptyBox$1("cardEmpty")
|
|
7504
|
+
]
|
|
7505
|
+
};
|
|
7506
|
+
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7507
|
+
return {
|
|
7508
|
+
type: "Control",
|
|
7509
|
+
scope: `#/properties/${parentScope}`,
|
|
7510
|
+
options: {
|
|
7511
|
+
widget: "Array"
|
|
7512
|
+
},
|
|
7513
|
+
config: {
|
|
7514
|
+
layout: 12,
|
|
7515
|
+
main: {
|
|
7516
|
+
label: childLabel,
|
|
7517
|
+
childElementLabel: childLabel
|
|
7518
|
+
},
|
|
7519
|
+
style: {
|
|
7520
|
+
marginLeft: "-24px",
|
|
7521
|
+
marginBottom: "24px !important",
|
|
7522
|
+
labelStyle: {
|
|
7523
|
+
marginLeft: "24px"
|
|
7524
|
+
},
|
|
7525
|
+
detailsStyle: {
|
|
7526
|
+
marginLeft: "24px"
|
|
7527
|
+
}
|
|
7528
|
+
}
|
|
7529
|
+
},
|
|
7530
|
+
elements: [
|
|
7531
|
+
{
|
|
7532
|
+
type: "Control",
|
|
7533
|
+
scope: `#/properties/${childScope}`,
|
|
7534
|
+
options: {
|
|
7535
|
+
widget: "InputField"
|
|
7536
|
+
},
|
|
7537
|
+
config: {
|
|
7538
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7539
|
+
main: {
|
|
7540
|
+
label: childLabel || "Labels for Tab"
|
|
7541
|
+
}
|
|
7542
|
+
}
|
|
7543
|
+
},
|
|
7544
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7545
|
+
]
|
|
7455
7546
|
};
|
|
7456
7547
|
};
|
|
7457
7548
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7458
|
-
sizeHolder.
|
|
7549
|
+
sizeHolder.elements[1] = {
|
|
7459
7550
|
type: "Control",
|
|
7460
7551
|
scope: `#/properties/value`,
|
|
7461
7552
|
options: {
|
|
@@ -7468,7 +7559,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7468
7559
|
}
|
|
7469
7560
|
}
|
|
7470
7561
|
};
|
|
7471
|
-
sizeHolder.
|
|
7562
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7472
7563
|
const getInputField = (scope, label) => {
|
|
7473
7564
|
return {
|
|
7474
7565
|
type: "Control",
|
|
@@ -7477,7 +7568,7 @@ const getInputField = (scope, label) => {
|
|
|
7477
7568
|
widget: "InputField"
|
|
7478
7569
|
},
|
|
7479
7570
|
config: {
|
|
7480
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7571
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7481
7572
|
main: {
|
|
7482
7573
|
label
|
|
7483
7574
|
}
|
|
@@ -7492,7 +7583,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7492
7583
|
widget: "RadioInputField"
|
|
7493
7584
|
},
|
|
7494
7585
|
config: {
|
|
7495
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
7586
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7496
7587
|
main: {
|
|
7497
7588
|
label,
|
|
7498
7589
|
options
|
|
@@ -7507,17 +7598,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7507
7598
|
main: {
|
|
7508
7599
|
label: label || "Details",
|
|
7509
7600
|
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
|
|
7601
|
+
}
|
|
7521
7602
|
},
|
|
7522
7603
|
elements: elements || []
|
|
7523
7604
|
};
|
|
@@ -7531,18 +7612,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7531
7612
|
},
|
|
7532
7613
|
config: {
|
|
7533
7614
|
layout: layout || 12,
|
|
7534
|
-
style: {
|
|
7535
|
-
containerStyle: {
|
|
7536
|
-
borderRadius: "20px"
|
|
7537
|
-
},
|
|
7538
|
-
headerContainerStyle: {},
|
|
7539
|
-
textAreaStyle: {
|
|
7540
|
-
borderRadius: "20px",
|
|
7541
|
-
padding: "20px"
|
|
7542
|
-
}
|
|
7543
|
-
},
|
|
7544
7615
|
main: {
|
|
7545
|
-
heading,
|
|
7616
|
+
label: heading,
|
|
7546
7617
|
minRows: 8,
|
|
7547
7618
|
hideButton,
|
|
7548
7619
|
enableCodeEditor: true
|
|
@@ -7558,7 +7629,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7558
7629
|
widget: "SelectInputField"
|
|
7559
7630
|
},
|
|
7560
7631
|
config: {
|
|
7561
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7632
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7562
7633
|
main: {
|
|
7563
7634
|
label,
|
|
7564
7635
|
type: "text"
|
|
@@ -7574,7 +7645,7 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7574
7645
|
widget: "MultipleSelect"
|
|
7575
7646
|
},
|
|
7576
7647
|
config: {
|
|
7577
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7648
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7578
7649
|
main: {
|
|
7579
7650
|
multiple: true,
|
|
7580
7651
|
label,
|
|
@@ -7583,12 +7654,18 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7583
7654
|
}
|
|
7584
7655
|
};
|
|
7585
7656
|
};
|
|
7586
|
-
const
|
|
7657
|
+
const BaseSection = {
|
|
7587
7658
|
type: "WrapperLayout",
|
|
7659
|
+
config: {
|
|
7660
|
+
main: {
|
|
7661
|
+
label: " ",
|
|
7662
|
+
gap: "8px"
|
|
7663
|
+
}
|
|
7664
|
+
},
|
|
7588
7665
|
elements: []
|
|
7589
7666
|
};
|
|
7590
7667
|
const buildPropertiesSection = function(type) {
|
|
7591
|
-
let uiSchema = _.cloneDeep(
|
|
7668
|
+
let uiSchema = _.cloneDeep(BaseSection);
|
|
7592
7669
|
switch (type) {
|
|
7593
7670
|
case "TreeMap":
|
|
7594
7671
|
uiSchema.elements = [
|
|
@@ -7652,7 +7729,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7652
7729
|
uiSchema.elements = [
|
|
7653
7730
|
getInputField("placeholder", "Placeholder"),
|
|
7654
7731
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7655
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7732
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7733
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7656
7734
|
];
|
|
7657
7735
|
break;
|
|
7658
7736
|
case "SpeedoMeter":
|
|
@@ -7732,7 +7810,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7732
7810
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7733
7811
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7734
7812
|
getInputField("leftMargin", "Left Margin"),
|
|
7735
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7813
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7736
7814
|
getArrayControl("legendLabels", "label"),
|
|
7737
7815
|
getArrayControl("pieArcColors", "color")
|
|
7738
7816
|
];
|
|
@@ -7813,7 +7891,13 @@ const buildPropertiesSection = function(type) {
|
|
|
7813
7891
|
return uiSchema;
|
|
7814
7892
|
};
|
|
7815
7893
|
const StyleSection = {
|
|
7816
|
-
type: "
|
|
7894
|
+
type: "WrapperLayout",
|
|
7895
|
+
config: {
|
|
7896
|
+
main: {
|
|
7897
|
+
label: " ",
|
|
7898
|
+
gap: "8px"
|
|
7899
|
+
}
|
|
7900
|
+
},
|
|
7817
7901
|
elements: [
|
|
7818
7902
|
{
|
|
7819
7903
|
type: "Control",
|
|
@@ -7829,14 +7913,7 @@ const StyleSection = {
|
|
|
7829
7913
|
lg: 12
|
|
7830
7914
|
},
|
|
7831
7915
|
style: {
|
|
7832
|
-
|
|
7833
|
-
borderRadius: "20px"
|
|
7834
|
-
},
|
|
7835
|
-
headerContainerStyle: {},
|
|
7836
|
-
textAreaStyle: {
|
|
7837
|
-
borderRadius: "20px",
|
|
7838
|
-
padding: "20px"
|
|
7839
|
-
}
|
|
7916
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
7840
7917
|
},
|
|
7841
7918
|
main: {
|
|
7842
7919
|
heading: "JSON Style",
|
|
@@ -7870,15 +7947,20 @@ const TableSection = (theme) => {
|
|
|
7870
7947
|
},
|
|
7871
7948
|
config: {
|
|
7872
7949
|
main: {
|
|
7873
|
-
color: "info",
|
|
7874
7950
|
onClick: "widgetAddClickHandler",
|
|
7875
7951
|
size: "small",
|
|
7876
|
-
icon: "
|
|
7877
|
-
iconLabel: "Add
|
|
7952
|
+
icon: "TableAddIcon",
|
|
7953
|
+
iconLabel: "Add",
|
|
7878
7954
|
styleDefault: true
|
|
7879
7955
|
},
|
|
7880
7956
|
style: {
|
|
7881
|
-
mt: "6px"
|
|
7957
|
+
mt: "6px",
|
|
7958
|
+
color: "inherit",
|
|
7959
|
+
fill: "inherit",
|
|
7960
|
+
"&:hover": {
|
|
7961
|
+
color: "inherit",
|
|
7962
|
+
fill: "inherit"
|
|
7963
|
+
}
|
|
7882
7964
|
}
|
|
7883
7965
|
}
|
|
7884
7966
|
}
|
|
@@ -7894,12 +7976,18 @@ const TableSection = (theme) => {
|
|
|
7894
7976
|
main: {
|
|
7895
7977
|
onClick: "copyPasteElement",
|
|
7896
7978
|
size: "small",
|
|
7897
|
-
icon: "
|
|
7979
|
+
icon: "TablePaste",
|
|
7898
7980
|
iconLabel: "Paste",
|
|
7899
7981
|
styleDefault: true
|
|
7900
7982
|
},
|
|
7901
7983
|
style: {
|
|
7902
|
-
mt: "6px"
|
|
7984
|
+
mt: "6px",
|
|
7985
|
+
color: "inherit",
|
|
7986
|
+
fill: "inherit",
|
|
7987
|
+
"&:hover": {
|
|
7988
|
+
color: "inherit",
|
|
7989
|
+
fill: "inherit"
|
|
7990
|
+
}
|
|
7903
7991
|
}
|
|
7904
7992
|
}
|
|
7905
7993
|
}
|
|
@@ -7914,16 +8002,21 @@ const TableSection = (theme) => {
|
|
|
7914
8002
|
elements: [
|
|
7915
8003
|
{
|
|
7916
8004
|
accessorKey: "name",
|
|
7917
|
-
header: "Name"
|
|
8005
|
+
header: "Name",
|
|
8006
|
+
type: "string",
|
|
8007
|
+
size: 300
|
|
7918
8008
|
},
|
|
7919
8009
|
{
|
|
7920
8010
|
accessorKey: "type",
|
|
7921
|
-
header: "Type"
|
|
8011
|
+
header: "Type",
|
|
8012
|
+
type: "string",
|
|
8013
|
+
size: 200
|
|
7922
8014
|
},
|
|
7923
8015
|
{
|
|
7924
8016
|
header: "Edit Record",
|
|
7925
8017
|
field: "Reject_Records",
|
|
7926
|
-
|
|
8018
|
+
size: 150,
|
|
8019
|
+
type: "action",
|
|
7927
8020
|
widget: {
|
|
7928
8021
|
type: "Control",
|
|
7929
8022
|
scope: "#/properties/RejectButton",
|
|
@@ -7932,13 +8025,16 @@ const TableSection = (theme) => {
|
|
|
7932
8025
|
},
|
|
7933
8026
|
config: {
|
|
7934
8027
|
main: {
|
|
7935
|
-
icon: "
|
|
7936
|
-
|
|
8028
|
+
icon: "TableEditIcon",
|
|
8029
|
+
size: "small",
|
|
7937
8030
|
onClick: "editComponents",
|
|
7938
8031
|
tooltipMessage: "Reject This Record"
|
|
7939
8032
|
},
|
|
7940
8033
|
style: {
|
|
7941
|
-
|
|
8034
|
+
fill: theme.palette.primary.main,
|
|
8035
|
+
"& :hover": {
|
|
8036
|
+
fill: theme.palette.primary.dark
|
|
8037
|
+
}
|
|
7942
8038
|
}
|
|
7943
8039
|
}
|
|
7944
8040
|
}
|
|
@@ -7946,7 +8042,8 @@ const TableSection = (theme) => {
|
|
|
7946
8042
|
{
|
|
7947
8043
|
header: "Delete",
|
|
7948
8044
|
field: "Reject_Records",
|
|
7949
|
-
|
|
8045
|
+
size: 150,
|
|
8046
|
+
type: "action",
|
|
7950
8047
|
widget: {
|
|
7951
8048
|
type: "Control",
|
|
7952
8049
|
scope: "#/properties/RejectButton",
|
|
@@ -7955,10 +8052,15 @@ const TableSection = (theme) => {
|
|
|
7955
8052
|
},
|
|
7956
8053
|
config: {
|
|
7957
8054
|
main: {
|
|
7958
|
-
icon: "
|
|
7959
|
-
color: "error",
|
|
8055
|
+
icon: "Bin",
|
|
7960
8056
|
onClick: "deletePopUpComponent",
|
|
7961
8057
|
tooltipMessage: "Reject This Record"
|
|
8058
|
+
},
|
|
8059
|
+
style: {
|
|
8060
|
+
fill: theme.palette.primary.main,
|
|
8061
|
+
"& :hover": {
|
|
8062
|
+
fill: theme.palette.primary.dark
|
|
8063
|
+
}
|
|
7962
8064
|
}
|
|
7963
8065
|
}
|
|
7964
8066
|
}
|
|
@@ -7966,7 +8068,8 @@ const TableSection = (theme) => {
|
|
|
7966
8068
|
{
|
|
7967
8069
|
header: "Copy",
|
|
7968
8070
|
field: "Copy_Component",
|
|
7969
|
-
|
|
8071
|
+
size: 150,
|
|
8072
|
+
type: "action",
|
|
7970
8073
|
widget: {
|
|
7971
8074
|
type: "Control",
|
|
7972
8075
|
scope: "#/properties/Copy_Component",
|
|
@@ -7990,109 +8093,148 @@ const TableSection = (theme) => {
|
|
|
7990
8093
|
return uiSchema;
|
|
7991
8094
|
};
|
|
7992
8095
|
const ValueTab = {
|
|
7993
|
-
type: "
|
|
8096
|
+
type: "WrapperLayout",
|
|
8097
|
+
config: {
|
|
8098
|
+
main: {
|
|
8099
|
+
label: " ",
|
|
8100
|
+
gap: "8px"
|
|
8101
|
+
}
|
|
8102
|
+
},
|
|
7994
8103
|
elements: [
|
|
7995
8104
|
{
|
|
7996
8105
|
type: "Control",
|
|
7997
8106
|
scope: "#/properties/value",
|
|
7998
|
-
layout: 12,
|
|
7999
8107
|
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
|
-
}
|
|
8108
|
+
widget: "Array"
|
|
8109
|
+
},
|
|
8110
|
+
config: {
|
|
8111
|
+
layout: 12,
|
|
8112
|
+
main: {
|
|
8113
|
+
label: "Value",
|
|
8114
|
+
childElementLabel: "Value"
|
|
8115
|
+
},
|
|
8116
|
+
style: {
|
|
8117
|
+
marginLeft: "-24px",
|
|
8118
|
+
marginBottom: "24px !important",
|
|
8119
|
+
labelStyle: {
|
|
8120
|
+
marginLeft: "24px"
|
|
8121
|
+
},
|
|
8122
|
+
detailsStyle: {
|
|
8123
|
+
marginLeft: "24px"
|
|
8124
|
+
}
|
|
8125
|
+
}
|
|
8126
|
+
},
|
|
8127
|
+
elements: [
|
|
8128
|
+
{
|
|
8129
|
+
type: "Control",
|
|
8130
|
+
scope: "#/properties/label",
|
|
8131
|
+
options: {
|
|
8132
|
+
widget: "InputField"
|
|
8133
|
+
},
|
|
8134
|
+
config: {
|
|
8135
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8136
|
+
main: {
|
|
8137
|
+
label: "Label"
|
|
8038
8138
|
}
|
|
8039
|
-
|
|
8139
|
+
}
|
|
8140
|
+
},
|
|
8141
|
+
{
|
|
8142
|
+
type: "Control",
|
|
8143
|
+
scope: "#/properties/value",
|
|
8144
|
+
options: {
|
|
8145
|
+
widget: "InputField"
|
|
8146
|
+
},
|
|
8147
|
+
config: {
|
|
8148
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8149
|
+
main: {
|
|
8150
|
+
label: "Value"
|
|
8151
|
+
}
|
|
8152
|
+
}
|
|
8153
|
+
},
|
|
8154
|
+
{
|
|
8155
|
+
type: "Control",
|
|
8156
|
+
scope: "#/properties/emptyBox",
|
|
8157
|
+
options: {
|
|
8158
|
+
widget: "EmptyBox"
|
|
8159
|
+
},
|
|
8160
|
+
config: {
|
|
8161
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8162
|
+
}
|
|
8040
8163
|
}
|
|
8041
|
-
|
|
8164
|
+
]
|
|
8042
8165
|
}
|
|
8043
8166
|
]
|
|
8044
8167
|
};
|
|
8045
8168
|
const ValidationSection = {
|
|
8046
|
-
type: "
|
|
8169
|
+
type: "WrapperLayout",
|
|
8170
|
+
config: {
|
|
8171
|
+
main: {
|
|
8172
|
+
label: " ",
|
|
8173
|
+
gap: "8px"
|
|
8174
|
+
}
|
|
8175
|
+
},
|
|
8047
8176
|
elements: [
|
|
8048
8177
|
{
|
|
8049
8178
|
type: "Control",
|
|
8050
8179
|
scope: "#/properties/validation",
|
|
8051
|
-
layout: 11.5,
|
|
8052
8180
|
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
|
-
}
|
|
8181
|
+
widget: "Array"
|
|
8182
|
+
},
|
|
8183
|
+
config: {
|
|
8184
|
+
layout: 12,
|
|
8185
|
+
main: {
|
|
8186
|
+
label: "Validation",
|
|
8187
|
+
childElementLabel: "Validation"
|
|
8188
|
+
},
|
|
8189
|
+
style: {
|
|
8190
|
+
marginLeft: "-24px",
|
|
8191
|
+
marginBottom: "24px !important",
|
|
8192
|
+
labelStyle: {
|
|
8193
|
+
marginLeft: "24px"
|
|
8194
|
+
},
|
|
8195
|
+
detailsStyle: {
|
|
8196
|
+
marginLeft: "24px"
|
|
8197
|
+
}
|
|
8198
|
+
}
|
|
8199
|
+
},
|
|
8200
|
+
elements: [
|
|
8201
|
+
{
|
|
8202
|
+
type: "Control",
|
|
8203
|
+
scope: "#/properties/validationType",
|
|
8204
|
+
options: {
|
|
8205
|
+
widget: "SelectInputField"
|
|
8206
|
+
},
|
|
8207
|
+
config: {
|
|
8208
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8209
|
+
main: {
|
|
8210
|
+
label: "Validation Type"
|
|
8092
8211
|
}
|
|
8093
|
-
|
|
8212
|
+
}
|
|
8213
|
+
},
|
|
8214
|
+
{
|
|
8215
|
+
type: "Control",
|
|
8216
|
+
scope: "#/properties/validationValue",
|
|
8217
|
+
options: {
|
|
8218
|
+
widget: "InputField"
|
|
8219
|
+
},
|
|
8220
|
+
config: {
|
|
8221
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8222
|
+
main: {
|
|
8223
|
+
label: "Validation Value"
|
|
8224
|
+
}
|
|
8225
|
+
}
|
|
8226
|
+
},
|
|
8227
|
+
{
|
|
8228
|
+
type: "Control",
|
|
8229
|
+
scope: "#/properties/emptyBox",
|
|
8230
|
+
options: {
|
|
8231
|
+
widget: "EmptyBox"
|
|
8232
|
+
},
|
|
8233
|
+
config: {
|
|
8234
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8235
|
+
}
|
|
8094
8236
|
}
|
|
8095
|
-
|
|
8237
|
+
]
|
|
8096
8238
|
}
|
|
8097
8239
|
]
|
|
8098
8240
|
};
|
|
@@ -8248,53 +8390,111 @@ function okHandler(store2) {
|
|
|
8248
8390
|
}
|
|
8249
8391
|
}
|
|
8250
8392
|
const sectionLabels = {
|
|
8251
|
-
Select: ["Core", "Properties", "Value", "
|
|
8252
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8253
|
-
Table: ["Core", "Components", "Properties", "
|
|
8254
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
8393
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8394
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8395
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8396
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8255
8397
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8256
8398
|
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", "
|
|
8399
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8400
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8401
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8402
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8403
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8404
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
8405
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8406
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8407
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8408
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8409
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8410
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8411
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8270
8412
|
Array: ["Core", "Components", "Validation"],
|
|
8271
|
-
Radio: ["Core", "Properties", "
|
|
8272
|
-
Text: ["Core", "Properties", "
|
|
8273
|
-
TextArea: ["Core", "Properties", "
|
|
8413
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8414
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8415
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8274
8416
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8275
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8276
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8277
|
-
InputSlider: ["Core", "Properties", "
|
|
8278
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
8417
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8418
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8419
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8420
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8279
8421
|
ColumnGroup: ["Core", "Components"],
|
|
8280
|
-
Thought: ["Core", "Properties", "
|
|
8422
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8281
8423
|
};
|
|
8282
8424
|
function refreshPage(type, store2) {
|
|
8283
|
-
var _a;
|
|
8425
|
+
var _a, _b;
|
|
8284
8426
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8427
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8285
8428
|
if (type) {
|
|
8286
8429
|
const sectionUiSchema = {
|
|
8287
8430
|
Core: CoreSection,
|
|
8288
8431
|
Value: ValueTab,
|
|
8289
8432
|
Style: StyleSection,
|
|
8290
|
-
|
|
8433
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8291
8434
|
Components: TableSection(store2.theme.myTheme),
|
|
8292
8435
|
Properties: buildPropertiesSection(type),
|
|
8293
8436
|
Validation: ValidationSection
|
|
8294
8437
|
};
|
|
8295
8438
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8296
|
-
UiSchema.elements[
|
|
8297
|
-
UiSchema.elements[
|
|
8439
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8440
|
+
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8441
|
+
}
|
|
8442
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8443
|
+
const lastDotIndex = path.lastIndexOf(".");
|
|
8444
|
+
const parentPath = path.slice(0, lastDotIndex);
|
|
8445
|
+
const parentObj = _.get(currentConfig, parentPath);
|
|
8446
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8447
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8448
|
+
type: "Control",
|
|
8449
|
+
scope: "#/properties/columnFormat",
|
|
8450
|
+
options: {
|
|
8451
|
+
widget: "SelectInputField"
|
|
8452
|
+
},
|
|
8453
|
+
config: {
|
|
8454
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8455
|
+
main: {
|
|
8456
|
+
label: "Column Format"
|
|
8457
|
+
}
|
|
8458
|
+
}
|
|
8459
|
+
};
|
|
8460
|
+
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8461
|
+
type: "Control",
|
|
8462
|
+
scope: "#/properties/filteringOptions",
|
|
8463
|
+
options: {
|
|
8464
|
+
widget: "SelectInputField"
|
|
8465
|
+
},
|
|
8466
|
+
config: {
|
|
8467
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8468
|
+
main: {
|
|
8469
|
+
label: "Filter Mode",
|
|
8470
|
+
multiple: true
|
|
8471
|
+
}
|
|
8472
|
+
}
|
|
8473
|
+
};
|
|
8474
|
+
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8475
|
+
type: "Control",
|
|
8476
|
+
scope: "#/properties/enableFilter",
|
|
8477
|
+
options: {
|
|
8478
|
+
widget: "RadioInputField"
|
|
8479
|
+
},
|
|
8480
|
+
config: {
|
|
8481
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8482
|
+
main: {
|
|
8483
|
+
label: "Enable Filter",
|
|
8484
|
+
options: ["Yes", "No"],
|
|
8485
|
+
errorMessage: "Active is not marked YES or NO"
|
|
8486
|
+
}
|
|
8487
|
+
}
|
|
8488
|
+
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8489
|
+
type: "Control",
|
|
8490
|
+
scope: "#/properties/proc",
|
|
8491
|
+
config: {
|
|
8492
|
+
layout: { xs: 0, sm: 0, md: 0, lg: 6 }
|
|
8493
|
+
},
|
|
8494
|
+
options: {
|
|
8495
|
+
widget: "EmptyBox"
|
|
8496
|
+
}
|
|
8497
|
+
};
|
|
8298
8498
|
}
|
|
8299
8499
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8300
8500
|
this.ElementPathSetter(UiSchema);
|
|
@@ -8317,10 +8517,34 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8317
8517
|
return getFormdataFromSessionStorage(path);
|
|
8318
8518
|
},
|
|
8319
8519
|
getSchema: function() {
|
|
8520
|
+
var _a, _b;
|
|
8320
8521
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8321
8522
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8322
8523
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8323
8524
|
}
|
|
8525
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8526
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8527
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8528
|
+
let pathArray = [{ label: config2.name, path: `/PageMaster?id=${id}` }];
|
|
8529
|
+
if (path) {
|
|
8530
|
+
const pathArrayAll = path.split(".");
|
|
8531
|
+
const arr = [];
|
|
8532
|
+
pathArrayAll.map((e, i) => {
|
|
8533
|
+
if (i === 0) {
|
|
8534
|
+
arr.push(e);
|
|
8535
|
+
return;
|
|
8536
|
+
}
|
|
8537
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8538
|
+
});
|
|
8539
|
+
arr.map((e) => {
|
|
8540
|
+
const data = _.get(config2, e);
|
|
8541
|
+
pathArray.push({
|
|
8542
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8543
|
+
path: `/Component?path=${e}&id=${id}`
|
|
8544
|
+
});
|
|
8545
|
+
});
|
|
8546
|
+
}
|
|
8547
|
+
schema2.properties.pageName.path = pathArray;
|
|
8324
8548
|
return schema2;
|
|
8325
8549
|
},
|
|
8326
8550
|
okHandler: () => okHandler(store2),
|
|
@@ -8458,15 +8682,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8458
8682
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8459
8683
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8460
8684
|
const notificationMessages = {
|
|
8461
|
-
|
|
8462
|
-
Component: "The component cannot be integrated into the
|
|
8685
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8686
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8463
8687
|
};
|
|
8464
8688
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8465
8689
|
store2.setNotify({
|
|
8466
|
-
FailMessage: notificationMessages.
|
|
8690
|
+
FailMessage: notificationMessages.Events,
|
|
8467
8691
|
Fail: true
|
|
8468
8692
|
});
|
|
8469
|
-
} else if (copiedConfig.name && elementType === "
|
|
8693
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8470
8694
|
store2.setNotify({
|
|
8471
8695
|
FailMessage: notificationMessages.Component,
|
|
8472
8696
|
Fail: true
|
|
@@ -8492,8 +8716,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8492
8716
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8493
8717
|
},
|
|
8494
8718
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8495
|
-
|
|
8496
|
-
uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
|
|
8719
|
+
copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8497
8720
|
}
|
|
8498
8721
|
};
|
|
8499
8722
|
};
|
|
@@ -8644,18 +8867,18 @@ const EventSchema = {
|
|
|
8644
8867
|
eventType: {
|
|
8645
8868
|
type: "string",
|
|
8646
8869
|
oneOf: [
|
|
8647
|
-
{ title: "Click
|
|
8648
|
-
{ title: "Load
|
|
8649
|
-
{ title: "Change
|
|
8650
|
-
{ title: "Mount
|
|
8870
|
+
{ title: "Click", const: "onClick" },
|
|
8871
|
+
{ title: "Load", const: "onLoad" },
|
|
8872
|
+
{ title: "Change", const: "onChange" },
|
|
8873
|
+
{ title: "Mount", const: "onMount" },
|
|
8651
8874
|
{ title: "Success", const: "Success" },
|
|
8652
|
-
{ title: "
|
|
8653
|
-
{ title: "Cell
|
|
8654
|
-
{ title: "
|
|
8655
|
-
{ title: "Back
|
|
8656
|
-
{ title: "Next
|
|
8657
|
-
{ title: "
|
|
8658
|
-
{ title: "
|
|
8875
|
+
{ title: "Start", const: "onStart" },
|
|
8876
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8877
|
+
{ title: "Upload", const: "onUpload" },
|
|
8878
|
+
{ title: "Back", const: "onBack" },
|
|
8879
|
+
{ title: "Next", const: "onNext" },
|
|
8880
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8881
|
+
{ title: "Download", const: "onDownload" },
|
|
8659
8882
|
{ title: "Fail", const: "Fail" }
|
|
8660
8883
|
]
|
|
8661
8884
|
},
|
|
@@ -8663,7 +8886,7 @@ const EventSchema = {
|
|
|
8663
8886
|
type: "string",
|
|
8664
8887
|
oneOf: [
|
|
8665
8888
|
{ title: "Custom", const: "custom" },
|
|
8666
|
-
{ title: "
|
|
8889
|
+
{ title: "API", const: "api" },
|
|
8667
8890
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8668
8891
|
{ title: "Refresh", const: "refresh" }
|
|
8669
8892
|
]
|
|
@@ -8692,47 +8915,49 @@ const EventSchema = {
|
|
|
8692
8915
|
},
|
|
8693
8916
|
RemoveItemButton: {
|
|
8694
8917
|
disabled: true
|
|
8918
|
+
},
|
|
8919
|
+
pageName: {
|
|
8920
|
+
path: [{ label: "defaultLabel", path: "defaultPath" }]
|
|
8695
8921
|
}
|
|
8696
8922
|
},
|
|
8697
8923
|
required: ["eventType", "Handler"]
|
|
8698
8924
|
};
|
|
8699
8925
|
const EventUiSchema = (theme) => {
|
|
8700
|
-
var _a
|
|
8926
|
+
var _a;
|
|
8701
8927
|
const uiSchema = {
|
|
8702
8928
|
type: "HorizontalLayout",
|
|
8703
|
-
heading: "
|
|
8929
|
+
heading: "Page-Events",
|
|
8704
8930
|
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
8931
|
{
|
|
8725
8932
|
type: "TabLayout",
|
|
8726
8933
|
config: {
|
|
8727
8934
|
main: {
|
|
8728
|
-
tabLabels: ["Core", "Response
|
|
8729
|
-
defaultStyle: true,
|
|
8935
|
+
tabLabels: ["Core", "Response Events"],
|
|
8730
8936
|
id: "event"
|
|
8937
|
+
},
|
|
8938
|
+
style: {
|
|
8939
|
+
TabPanelStyle: {
|
|
8940
|
+
padding: 0
|
|
8941
|
+
}
|
|
8942
|
+
},
|
|
8943
|
+
TabsStyle: {
|
|
8944
|
+
marginBottom: "3px",
|
|
8945
|
+
paddingBottom: "4px",
|
|
8946
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
8947
|
+
"& .MuiTabs-indicator": {
|
|
8948
|
+
bottom: "6px"
|
|
8949
|
+
}
|
|
8731
8950
|
}
|
|
8732
8951
|
},
|
|
8733
8952
|
elements: [
|
|
8734
8953
|
{
|
|
8735
|
-
type: "
|
|
8954
|
+
type: "WrapperLayout",
|
|
8955
|
+
config: {
|
|
8956
|
+
main: {
|
|
8957
|
+
label: " ",
|
|
8958
|
+
gap: "8px"
|
|
8959
|
+
}
|
|
8960
|
+
},
|
|
8736
8961
|
elements: [
|
|
8737
8962
|
{
|
|
8738
8963
|
type: "Control",
|
|
@@ -8741,9 +8966,9 @@ const EventUiSchema = (theme) => {
|
|
|
8741
8966
|
widget: "SelectInputField"
|
|
8742
8967
|
},
|
|
8743
8968
|
config: {
|
|
8744
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
8969
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8745
8970
|
main: {
|
|
8746
|
-
label: "Event Type",
|
|
8971
|
+
label: "Event's Type",
|
|
8747
8972
|
type: "text"
|
|
8748
8973
|
}
|
|
8749
8974
|
}
|
|
@@ -8756,7 +8981,7 @@ const EventUiSchema = (theme) => {
|
|
|
8756
8981
|
widget: "EmptyBox"
|
|
8757
8982
|
},
|
|
8758
8983
|
config: {
|
|
8759
|
-
layout: { xs: 0, sm:
|
|
8984
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
8760
8985
|
}
|
|
8761
8986
|
}
|
|
8762
8987
|
]
|
|
@@ -8782,12 +9007,18 @@ const EventUiSchema = (theme) => {
|
|
|
8782
9007
|
main: {
|
|
8783
9008
|
onClick: "addEvent",
|
|
8784
9009
|
size: "small",
|
|
8785
|
-
icon: "
|
|
8786
|
-
iconLabel: "Add
|
|
9010
|
+
icon: "TableAddIcon",
|
|
9011
|
+
iconLabel: "Add",
|
|
8787
9012
|
styleDefault: true
|
|
8788
9013
|
},
|
|
8789
9014
|
style: {
|
|
8790
|
-
mt: "6px"
|
|
9015
|
+
mt: "6px",
|
|
9016
|
+
color: "inherit",
|
|
9017
|
+
fill: "inherit",
|
|
9018
|
+
"&:hover": {
|
|
9019
|
+
color: "inherit",
|
|
9020
|
+
fill: "inherit"
|
|
9021
|
+
}
|
|
8791
9022
|
}
|
|
8792
9023
|
}
|
|
8793
9024
|
}
|
|
@@ -8803,12 +9034,18 @@ const EventUiSchema = (theme) => {
|
|
|
8803
9034
|
main: {
|
|
8804
9035
|
onClick: "copyPasteElement",
|
|
8805
9036
|
size: "small",
|
|
8806
|
-
icon: "
|
|
9037
|
+
icon: "TablePaste",
|
|
8807
9038
|
iconLabel: "Paste",
|
|
8808
9039
|
styleDefault: true
|
|
8809
9040
|
},
|
|
8810
9041
|
style: {
|
|
8811
|
-
mt: "6px"
|
|
9042
|
+
mt: "6px",
|
|
9043
|
+
color: "inherit",
|
|
9044
|
+
fill: "inherit",
|
|
9045
|
+
"&:hover": {
|
|
9046
|
+
color: "inherit",
|
|
9047
|
+
fill: "inherit"
|
|
9048
|
+
}
|
|
8812
9049
|
}
|
|
8813
9050
|
}
|
|
8814
9051
|
}
|
|
@@ -8823,15 +9060,21 @@ const EventUiSchema = (theme) => {
|
|
|
8823
9060
|
elements: [
|
|
8824
9061
|
{
|
|
8825
9062
|
accessorKey: "eventType",
|
|
8826
|
-
header: "Event Type"
|
|
9063
|
+
header: "Event's Type",
|
|
9064
|
+
size: 300,
|
|
9065
|
+
type: "string"
|
|
8827
9066
|
},
|
|
8828
9067
|
{
|
|
8829
9068
|
accessorKey: "Handler",
|
|
8830
|
-
header: "Handler"
|
|
9069
|
+
header: "Handler",
|
|
9070
|
+
size: 200,
|
|
9071
|
+
type: "string"
|
|
8831
9072
|
},
|
|
8832
9073
|
{
|
|
8833
9074
|
accessorKey: "Edit_Approve_Records",
|
|
8834
|
-
header: "Edit
|
|
9075
|
+
header: "Edit",
|
|
9076
|
+
type: "action",
|
|
9077
|
+
size: 150,
|
|
8835
9078
|
widget: {
|
|
8836
9079
|
type: "Control",
|
|
8837
9080
|
scope: "#/properties/Edit_Records",
|
|
@@ -8840,14 +9083,16 @@ const EventUiSchema = (theme) => {
|
|
|
8840
9083
|
},
|
|
8841
9084
|
config: {
|
|
8842
9085
|
main: {
|
|
8843
|
-
color: "info",
|
|
8844
9086
|
size: "small",
|
|
8845
|
-
icon: "
|
|
9087
|
+
icon: "TableEditIcon",
|
|
8846
9088
|
tooltipMessage: "Edit This Record",
|
|
8847
9089
|
onClick: "editEvent"
|
|
8848
9090
|
},
|
|
8849
9091
|
style: {
|
|
8850
|
-
|
|
9092
|
+
fill: theme.palette.primary.main,
|
|
9093
|
+
"& :hover": {
|
|
9094
|
+
fill: theme.palette.primary.dark
|
|
9095
|
+
}
|
|
8851
9096
|
}
|
|
8852
9097
|
}
|
|
8853
9098
|
}
|
|
@@ -8855,6 +9100,8 @@ const EventUiSchema = (theme) => {
|
|
|
8855
9100
|
{
|
|
8856
9101
|
accessorKey: "Reject_Records",
|
|
8857
9102
|
header: "Delete",
|
|
9103
|
+
type: "action",
|
|
9104
|
+
size: 150,
|
|
8858
9105
|
widget: {
|
|
8859
9106
|
type: "Control",
|
|
8860
9107
|
scope: "#/properties/RejectButton",
|
|
@@ -8863,10 +9110,15 @@ const EventUiSchema = (theme) => {
|
|
|
8863
9110
|
},
|
|
8864
9111
|
config: {
|
|
8865
9112
|
main: {
|
|
8866
|
-
icon: "
|
|
8867
|
-
color: "error",
|
|
9113
|
+
icon: "Bin",
|
|
8868
9114
|
tooltipMessage: "Reject This Record",
|
|
8869
9115
|
onClick: "deletePopUpEvent"
|
|
9116
|
+
},
|
|
9117
|
+
style: {
|
|
9118
|
+
fill: theme.palette.primary.main,
|
|
9119
|
+
"& :hover": {
|
|
9120
|
+
fill: theme.palette.primary.dark
|
|
9121
|
+
}
|
|
8870
9122
|
}
|
|
8871
9123
|
}
|
|
8872
9124
|
}
|
|
@@ -8874,7 +9126,8 @@ const EventUiSchema = (theme) => {
|
|
|
8874
9126
|
{
|
|
8875
9127
|
header: "Copy",
|
|
8876
9128
|
field: "Copy_Event",
|
|
8877
|
-
|
|
9129
|
+
type: "action",
|
|
9130
|
+
size: 150,
|
|
8878
9131
|
widget: {
|
|
8879
9132
|
type: "Control",
|
|
8880
9133
|
scope: "#/properties/Copy_Event",
|
|
@@ -8895,103 +9148,59 @@ const EventUiSchema = (theme) => {
|
|
|
8895
9148
|
]
|
|
8896
9149
|
},
|
|
8897
9150
|
{
|
|
8898
|
-
type: "
|
|
9151
|
+
type: "WrapperLayout",
|
|
8899
9152
|
config: {
|
|
8900
|
-
|
|
9153
|
+
main: {
|
|
9154
|
+
gap: "8px"
|
|
9155
|
+
}
|
|
8901
9156
|
},
|
|
8902
9157
|
elements: [
|
|
8903
9158
|
{
|
|
8904
9159
|
type: "Control",
|
|
8905
|
-
scope: "#/properties/
|
|
9160
|
+
scope: "#/properties/btn",
|
|
8906
9161
|
options: {
|
|
8907
|
-
widget: "
|
|
9162
|
+
widget: "Button"
|
|
8908
9163
|
},
|
|
8909
9164
|
config: {
|
|
8910
|
-
layout: { xs:
|
|
9165
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8911
9166
|
main: {
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
style: {
|
|
8918
|
-
marginLeft: "-10px"
|
|
9167
|
+
name: "Ok",
|
|
9168
|
+
variant: "contained",
|
|
9169
|
+
type: "text",
|
|
9170
|
+
onClick: "okHandler",
|
|
9171
|
+
size: "medium"
|
|
8919
9172
|
}
|
|
8920
9173
|
}
|
|
8921
9174
|
},
|
|
8922
9175
|
{
|
|
8923
9176
|
type: "Control",
|
|
8924
|
-
scope: "#/properties/
|
|
9177
|
+
scope: "#/properties/btnSubmit",
|
|
8925
9178
|
options: {
|
|
8926
|
-
widget: "
|
|
9179
|
+
widget: "Button"
|
|
8927
9180
|
},
|
|
8928
9181
|
config: {
|
|
8929
|
-
layout: { xs:
|
|
9182
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8930
9183
|
main: {
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
fontSize: "12px",
|
|
8937
|
-
marginTop: "4px"
|
|
9184
|
+
name: "Save & Exit",
|
|
9185
|
+
variant: "contained",
|
|
9186
|
+
type: "text",
|
|
9187
|
+
onClick: "saveHandler",
|
|
9188
|
+
size: "medium"
|
|
8938
9189
|
}
|
|
8939
9190
|
}
|
|
8940
9191
|
},
|
|
8941
9192
|
{
|
|
8942
9193
|
type: "Control",
|
|
8943
9194
|
scope: "#/properties/EmptyBox",
|
|
9195
|
+
config: {
|
|
9196
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
9197
|
+
},
|
|
8944
9198
|
options: {
|
|
8945
9199
|
widget: "EmptyBox"
|
|
8946
|
-
},
|
|
8947
|
-
config: {
|
|
8948
|
-
layout: { xs: 1, sm: 5 }
|
|
8949
9200
|
}
|
|
8950
9201
|
}
|
|
8951
9202
|
]
|
|
8952
9203
|
},
|
|
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
9204
|
{
|
|
8996
9205
|
type: "Control",
|
|
8997
9206
|
scope: "#/properties/popUpEvent",
|
|
@@ -9115,6 +9324,26 @@ const EventUiSchema = (theme) => {
|
|
|
9115
9324
|
}
|
|
9116
9325
|
]
|
|
9117
9326
|
},
|
|
9327
|
+
{
|
|
9328
|
+
type: "Control",
|
|
9329
|
+
scope: "#/properties/pageName",
|
|
9330
|
+
options: {
|
|
9331
|
+
widget: "Breadcrumb"
|
|
9332
|
+
},
|
|
9333
|
+
config: {
|
|
9334
|
+
layout: 12,
|
|
9335
|
+
main: {},
|
|
9336
|
+
style: {
|
|
9337
|
+
paddingLeft: theme.spacing(3),
|
|
9338
|
+
color: theme.palette.grey[600],
|
|
9339
|
+
fontSize: "10px",
|
|
9340
|
+
position: "fixed",
|
|
9341
|
+
bottom: "24px",
|
|
9342
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9343
|
+
borderTop: `1px solid ${theme.palette.common.black}29`
|
|
9344
|
+
}
|
|
9345
|
+
}
|
|
9346
|
+
},
|
|
9118
9347
|
{
|
|
9119
9348
|
type: "Control",
|
|
9120
9349
|
scope: "#/properties/notify",
|
|
@@ -9132,7 +9361,7 @@ const EventUiSchema = (theme) => {
|
|
|
9132
9361
|
style: {
|
|
9133
9362
|
flexDirection: "row",
|
|
9134
9363
|
position: "absolute",
|
|
9135
|
-
bottom:
|
|
9364
|
+
bottom: 10,
|
|
9136
9365
|
height: "fit-content",
|
|
9137
9366
|
overflow: "hidden",
|
|
9138
9367
|
zIndex: 1e3,
|
|
@@ -9151,76 +9380,17 @@ const EventUiSchema = (theme) => {
|
|
|
9151
9380
|
heading: "Copywriter@ACT21.IO"
|
|
9152
9381
|
},
|
|
9153
9382
|
style: {
|
|
9154
|
-
color: ((
|
|
9383
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9155
9384
|
fontSize: "11px",
|
|
9156
9385
|
textAlign: "center",
|
|
9157
|
-
lineHeight:
|
|
9158
|
-
width: "fit-content",
|
|
9159
|
-
left: "50%",
|
|
9160
|
-
position: "relative",
|
|
9161
|
-
margin: 0,
|
|
9162
|
-
flexGrow: 1,
|
|
9163
|
-
height: 0,
|
|
9164
|
-
transform: "translate(-50%, 0%)"
|
|
9165
|
-
}
|
|
9166
|
-
}
|
|
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,
|
|
9386
|
+
lineHeight: 0,
|
|
9212
9387
|
width: "fit-content",
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
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"
|
|
9388
|
+
left: "50%",
|
|
9389
|
+
position: "relative",
|
|
9390
|
+
margin: "revert",
|
|
9391
|
+
flexGrow: 1,
|
|
9392
|
+
height: 0,
|
|
9393
|
+
transform: "translate(-50%, 0%)"
|
|
9224
9394
|
}
|
|
9225
9395
|
}
|
|
9226
9396
|
}
|
|
@@ -9240,7 +9410,7 @@ const APISection = {
|
|
|
9240
9410
|
widget: "SelectInputField"
|
|
9241
9411
|
},
|
|
9242
9412
|
config: {
|
|
9243
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9413
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9244
9414
|
main: {
|
|
9245
9415
|
label: "Method",
|
|
9246
9416
|
type: "text"
|
|
@@ -9254,7 +9424,7 @@ const APISection = {
|
|
|
9254
9424
|
widget: "InputField"
|
|
9255
9425
|
},
|
|
9256
9426
|
config: {
|
|
9257
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9427
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9258
9428
|
main: {
|
|
9259
9429
|
label: "Path",
|
|
9260
9430
|
type: "text",
|
|
@@ -9270,116 +9440,132 @@ const APISection = {
|
|
|
9270
9440
|
widget: "EmptyBox"
|
|
9271
9441
|
},
|
|
9272
9442
|
config: {
|
|
9273
|
-
layout: { xs: 0, sm: 0, md: 4, lg:
|
|
9443
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
9274
9444
|
}
|
|
9275
9445
|
},
|
|
9276
9446
|
{
|
|
9277
9447
|
type: "Control",
|
|
9278
|
-
scope: "#/properties/
|
|
9448
|
+
scope: "#/properties/headers",
|
|
9279
9449
|
options: {
|
|
9280
|
-
widget: "
|
|
9450
|
+
widget: "Array"
|
|
9281
9451
|
},
|
|
9282
9452
|
config: {
|
|
9283
|
-
layout:
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
},
|
|
9308
|
-
{
|
|
9309
|
-
|
|
9310
|
-
scope: "#/properties/value",
|
|
9311
|
-
options: {
|
|
9312
|
-
widget: "InputField"
|
|
9313
|
-
},
|
|
9314
|
-
config: {
|
|
9315
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9316
|
-
main: {
|
|
9317
|
-
label: "Value"
|
|
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
|
-
}
|
|
9453
|
+
layout: 12,
|
|
9454
|
+
main: {
|
|
9455
|
+
label: "Headers",
|
|
9456
|
+
childElementLabel: "Headers"
|
|
9457
|
+
},
|
|
9458
|
+
style: {
|
|
9459
|
+
marginLeft: "-24px",
|
|
9460
|
+
marginBottom: "24px !important",
|
|
9461
|
+
labelStyle: {
|
|
9462
|
+
marginLeft: "24px"
|
|
9463
|
+
},
|
|
9464
|
+
detailsStyle: {
|
|
9465
|
+
marginLeft: "24px"
|
|
9466
|
+
}
|
|
9467
|
+
}
|
|
9468
|
+
},
|
|
9469
|
+
elements: [
|
|
9470
|
+
{
|
|
9471
|
+
type: "Control",
|
|
9472
|
+
scope: "#/properties/key",
|
|
9473
|
+
options: {
|
|
9474
|
+
widget: "InputField"
|
|
9475
|
+
},
|
|
9476
|
+
config: {
|
|
9477
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9478
|
+
main: {
|
|
9479
|
+
label: "Key"
|
|
9330
9480
|
}
|
|
9331
|
-
|
|
9481
|
+
}
|
|
9482
|
+
},
|
|
9483
|
+
{
|
|
9484
|
+
type: "Control",
|
|
9485
|
+
scope: "#/properties/value",
|
|
9486
|
+
options: {
|
|
9487
|
+
widget: "InputField"
|
|
9488
|
+
},
|
|
9489
|
+
config: {
|
|
9490
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9491
|
+
main: {
|
|
9492
|
+
label: "Value"
|
|
9493
|
+
}
|
|
9494
|
+
}
|
|
9495
|
+
},
|
|
9496
|
+
{
|
|
9497
|
+
type: "Control",
|
|
9498
|
+
scope: "#/properties/emptyBox",
|
|
9499
|
+
options: {
|
|
9500
|
+
widget: "EmptyBox"
|
|
9501
|
+
},
|
|
9502
|
+
config: {
|
|
9503
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9504
|
+
}
|
|
9332
9505
|
}
|
|
9333
|
-
|
|
9506
|
+
]
|
|
9334
9507
|
},
|
|
9335
9508
|
{
|
|
9336
9509
|
type: "Control",
|
|
9337
9510
|
scope: "#/properties/body",
|
|
9338
|
-
layout: 11.5,
|
|
9339
9511
|
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
|
-
}
|
|
9512
|
+
widget: "Array"
|
|
9513
|
+
},
|
|
9514
|
+
config: {
|
|
9515
|
+
layout: 12,
|
|
9516
|
+
main: {
|
|
9517
|
+
label: "Body",
|
|
9518
|
+
childElementLabel: "Body"
|
|
9519
|
+
},
|
|
9520
|
+
style: {
|
|
9521
|
+
marginLeft: "-24px",
|
|
9522
|
+
marginBottom: "24px !important",
|
|
9523
|
+
labelStyle: {
|
|
9524
|
+
marginLeft: "24px"
|
|
9525
|
+
},
|
|
9526
|
+
detailsStyle: {
|
|
9527
|
+
marginLeft: "24px"
|
|
9528
|
+
}
|
|
9529
|
+
}
|
|
9530
|
+
},
|
|
9531
|
+
elements: [
|
|
9532
|
+
{
|
|
9533
|
+
type: "Control",
|
|
9534
|
+
scope: "#/properties/key",
|
|
9535
|
+
options: {
|
|
9536
|
+
widget: "InputField"
|
|
9537
|
+
},
|
|
9538
|
+
config: {
|
|
9539
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9540
|
+
main: {
|
|
9541
|
+
label: "Key"
|
|
9379
9542
|
}
|
|
9380
|
-
|
|
9543
|
+
}
|
|
9544
|
+
},
|
|
9545
|
+
{
|
|
9546
|
+
type: "Control",
|
|
9547
|
+
scope: "#/properties/value",
|
|
9548
|
+
options: {
|
|
9549
|
+
widget: "InputField"
|
|
9550
|
+
},
|
|
9551
|
+
config: {
|
|
9552
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9553
|
+
main: {
|
|
9554
|
+
label: "Value"
|
|
9555
|
+
}
|
|
9556
|
+
}
|
|
9557
|
+
},
|
|
9558
|
+
{
|
|
9559
|
+
type: "Control",
|
|
9560
|
+
scope: "#/properties/emptyBox",
|
|
9561
|
+
options: {
|
|
9562
|
+
widget: "EmptyBox"
|
|
9563
|
+
},
|
|
9564
|
+
config: {
|
|
9565
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9566
|
+
}
|
|
9381
9567
|
}
|
|
9382
|
-
|
|
9568
|
+
]
|
|
9383
9569
|
},
|
|
9384
9570
|
getTextArea("apiBody", "Transformer", true, 12)
|
|
9385
9571
|
]
|
|
@@ -9390,116 +9576,134 @@ const refreshSectionUiSchema = {
|
|
|
9390
9576
|
{
|
|
9391
9577
|
type: "Control",
|
|
9392
9578
|
scope: "#/properties/refreshElements",
|
|
9393
|
-
layout: 11.5,
|
|
9394
9579
|
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
|
-
}
|
|
9580
|
+
widget: "Array"
|
|
9581
|
+
},
|
|
9582
|
+
config: {
|
|
9583
|
+
layout: 12,
|
|
9584
|
+
main: {
|
|
9585
|
+
label: "Refresh Elements",
|
|
9586
|
+
childElementLabel: "Refresh Elements"
|
|
9587
|
+
},
|
|
9588
|
+
style: {
|
|
9589
|
+
marginLeft: "-24px",
|
|
9590
|
+
marginBottom: "24px !important",
|
|
9591
|
+
labelStyle: {
|
|
9592
|
+
marginLeft: "24px"
|
|
9593
|
+
},
|
|
9594
|
+
detailsStyle: {
|
|
9595
|
+
marginLeft: "24px"
|
|
9596
|
+
}
|
|
9597
|
+
}
|
|
9598
|
+
},
|
|
9599
|
+
elements: [
|
|
9600
|
+
{
|
|
9601
|
+
type: "Control",
|
|
9602
|
+
scope: "#/properties/value",
|
|
9603
|
+
options: {
|
|
9604
|
+
widget: "InputField"
|
|
9605
|
+
},
|
|
9606
|
+
config: {
|
|
9607
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9608
|
+
main: {
|
|
9609
|
+
label: "Value"
|
|
9432
9610
|
}
|
|
9433
|
-
|
|
9611
|
+
}
|
|
9612
|
+
},
|
|
9613
|
+
{
|
|
9614
|
+
type: "Control",
|
|
9615
|
+
scope: "#/properties/emptyBox",
|
|
9616
|
+
options: {
|
|
9617
|
+
widget: "EmptyBox"
|
|
9618
|
+
},
|
|
9619
|
+
config: {
|
|
9620
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 8 },
|
|
9621
|
+
main: {}
|
|
9622
|
+
}
|
|
9434
9623
|
}
|
|
9435
|
-
|
|
9624
|
+
]
|
|
9436
9625
|
}
|
|
9437
9626
|
]
|
|
9438
9627
|
};
|
|
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
9628
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9452
9629
|
return {
|
|
9453
9630
|
setPage: async function() {
|
|
9454
9631
|
const formdata = await this.getFormData();
|
|
9455
9632
|
store2.setFormdata(formdata);
|
|
9456
9633
|
const schema2 = await this.getSchema();
|
|
9634
|
+
console.log("SettingSchema>>", schema2);
|
|
9457
9635
|
store2.setSchema(schema2);
|
|
9458
9636
|
this.refreshPage(formdata.Handler, store2);
|
|
9459
9637
|
},
|
|
9460
9638
|
refreshPage: (handlerType, store22) => {
|
|
9639
|
+
var _a, _b;
|
|
9461
9640
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
9462
9641
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9463
9642
|
if (handlerType) {
|
|
9464
9643
|
if (handlerType === "custom") {
|
|
9465
|
-
uiSchema.elements[
|
|
9466
|
-
|
|
9644
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField(
|
|
9645
|
+
"isSync",
|
|
9646
|
+
"Run in Sync",
|
|
9647
|
+
["Yes", "No"]
|
|
9648
|
+
);
|
|
9649
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9467
9650
|
type: "Control",
|
|
9468
9651
|
scope: "#/properties/emptyBox",
|
|
9469
9652
|
options: {
|
|
9470
9653
|
widget: "EmptyBox"
|
|
9471
9654
|
},
|
|
9472
9655
|
config: {
|
|
9473
|
-
layout: { xs:
|
|
9656
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9474
9657
|
main: {},
|
|
9475
9658
|
style: {}
|
|
9476
9659
|
}
|
|
9477
9660
|
};
|
|
9478
|
-
uiSchema.elements[
|
|
9661
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9662
|
+
"eventCode",
|
|
9663
|
+
"Write Custom Code",
|
|
9664
|
+
false
|
|
9665
|
+
);
|
|
9479
9666
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9480
9667
|
} else if (handlerType === "api") {
|
|
9481
|
-
uiSchema.elements[
|
|
9482
|
-
|
|
9668
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9669
|
+
xs: 0,
|
|
9670
|
+
sm: 0,
|
|
9671
|
+
md: 4,
|
|
9672
|
+
lg: 6
|
|
9673
|
+
});
|
|
9674
|
+
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9483
9675
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9484
9676
|
} else if (handlerType === "inBuiltFunction") {
|
|
9485
|
-
uiSchema.elements[
|
|
9486
|
-
|
|
9677
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
9678
|
+
"inBuiltFunctionType",
|
|
9679
|
+
"Function Name"
|
|
9680
|
+
);
|
|
9681
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9487
9682
|
type: "Control",
|
|
9488
9683
|
scope: "#/properties/emptyBox",
|
|
9489
9684
|
options: {
|
|
9490
9685
|
widget: "EmptyBox"
|
|
9491
9686
|
},
|
|
9492
9687
|
config: {
|
|
9493
|
-
layout: { xs: 6, sm: 6, md: 0, lg:
|
|
9688
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9494
9689
|
main: {},
|
|
9495
9690
|
style: {}
|
|
9496
9691
|
}
|
|
9497
9692
|
};
|
|
9498
|
-
uiSchema.elements[
|
|
9693
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea(
|
|
9694
|
+
"funcParametersCode",
|
|
9695
|
+
"Write Custom Code for Functions Parameter",
|
|
9696
|
+
true
|
|
9697
|
+
);
|
|
9499
9698
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9500
9699
|
} else if (handlerType === "refresh") {
|
|
9501
|
-
uiSchema.elements[
|
|
9502
|
-
|
|
9700
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
9701
|
+
xs: 0,
|
|
9702
|
+
sm: 0,
|
|
9703
|
+
md: 4,
|
|
9704
|
+
lg: 6
|
|
9705
|
+
});
|
|
9706
|
+
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9503
9707
|
schema2.properties.refreshElements.required = ["value"];
|
|
9504
9708
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
9505
9709
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
@@ -9512,9 +9716,35 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9512
9716
|
];
|
|
9513
9717
|
}
|
|
9514
9718
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9515
|
-
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9719
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(
|
|
9720
|
+
uiSchema
|
|
9721
|
+
);
|
|
9516
9722
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9517
9723
|
}
|
|
9724
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9725
|
+
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9726
|
+
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9727
|
+
let pathArray = [{ label: config2.name, path: `/PageMaster?id=${id}` }];
|
|
9728
|
+
if (path) {
|
|
9729
|
+
const pathArrayAll = path.split(".");
|
|
9730
|
+
const arr = [];
|
|
9731
|
+
pathArrayAll.map((e, i) => {
|
|
9732
|
+
if (i === 0) {
|
|
9733
|
+
arr.push(e);
|
|
9734
|
+
return;
|
|
9735
|
+
}
|
|
9736
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9737
|
+
});
|
|
9738
|
+
arr.map((e) => {
|
|
9739
|
+
const data = _.get(config2, e);
|
|
9740
|
+
pathArray.push({
|
|
9741
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9742
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}&id=${id}` : `/Component?path=${e}&id=${id}`
|
|
9743
|
+
});
|
|
9744
|
+
});
|
|
9745
|
+
}
|
|
9746
|
+
console.log("pathArray>>", pathArray);
|
|
9747
|
+
schema2.properties.pageName.path = pathArray;
|
|
9518
9748
|
store22.setSchema(schema2);
|
|
9519
9749
|
store22.setUiSchema(uiSchema);
|
|
9520
9750
|
},
|
|
@@ -9523,10 +9753,35 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9523
9753
|
return EventUiSchema;
|
|
9524
9754
|
},
|
|
9525
9755
|
getSchema: () => {
|
|
9756
|
+
var _a, _b;
|
|
9526
9757
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9527
9758
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
9528
9759
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
9529
9760
|
}
|
|
9761
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9762
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9763
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9764
|
+
let pathArray = [{ label: config2.name, path: `/PageMaster?id=${id}` }];
|
|
9765
|
+
if (path) {
|
|
9766
|
+
const pathArrayAll = path.split(".");
|
|
9767
|
+
const arr = [];
|
|
9768
|
+
pathArrayAll.map((e, i) => {
|
|
9769
|
+
if (i === 0) {
|
|
9770
|
+
arr.push(e);
|
|
9771
|
+
return;
|
|
9772
|
+
}
|
|
9773
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
9774
|
+
});
|
|
9775
|
+
arr.map((e) => {
|
|
9776
|
+
const data = _.get(config2, e);
|
|
9777
|
+
pathArray.push({
|
|
9778
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9779
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}&id=${id}` : `/Component?path=${e}&id=${id}`
|
|
9780
|
+
});
|
|
9781
|
+
});
|
|
9782
|
+
}
|
|
9783
|
+
console.log("pathArray>>", pathArray);
|
|
9784
|
+
schema2.properties.pageName.path = _.cloneDeep(pathArray);
|
|
9530
9785
|
return schema2;
|
|
9531
9786
|
},
|
|
9532
9787
|
okHandler: () => okHandler(store2),
|
|
@@ -9534,7 +9789,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9534
9789
|
onChange: function() {
|
|
9535
9790
|
var _a, _b, _c;
|
|
9536
9791
|
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(
|
|
9792
|
+
this.refreshPage(
|
|
9793
|
+
store2.newData.Handler || store2.formdata.Handler,
|
|
9794
|
+
store2
|
|
9795
|
+
);
|
|
9538
9796
|
}
|
|
9539
9797
|
},
|
|
9540
9798
|
addEvent: function() {
|
|
@@ -9560,7 +9818,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9560
9818
|
this.setPage();
|
|
9561
9819
|
},
|
|
9562
9820
|
deleteEvent: async function() {
|
|
9563
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9821
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(
|
|
9822
|
+
false
|
|
9823
|
+
);
|
|
9564
9824
|
store2.updateDialog("popUpEvent");
|
|
9565
9825
|
},
|
|
9566
9826
|
backHandler: function() {
|
|
@@ -9572,10 +9832,15 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9572
9832
|
store2.updateDialog("popUpEvent");
|
|
9573
9833
|
},
|
|
9574
9834
|
copyPasteElement: function() {
|
|
9575
|
-
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9835
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(
|
|
9836
|
+
store2,
|
|
9837
|
+
this.setPage.bind(this)
|
|
9838
|
+
);
|
|
9576
9839
|
},
|
|
9577
9840
|
RemoveItemButton: function() {
|
|
9578
|
-
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9841
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(
|
|
9842
|
+
store2
|
|
9843
|
+
);
|
|
9579
9844
|
}
|
|
9580
9845
|
};
|
|
9581
9846
|
};
|
|
@@ -11555,6 +11820,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11555
11820
|
}
|
|
11556
11821
|
return Radio;
|
|
11557
11822
|
};
|
|
11823
|
+
var emptyBox = {
|
|
11824
|
+
type: "Control",
|
|
11825
|
+
scope: "#/properties/emptyBox",
|
|
11826
|
+
options: {
|
|
11827
|
+
widget: "EmptyBox"
|
|
11828
|
+
},
|
|
11829
|
+
config: {
|
|
11830
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11831
|
+
main: {},
|
|
11832
|
+
style: {}
|
|
11833
|
+
}
|
|
11834
|
+
};
|
|
11558
11835
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11559
11836
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11560
11837
|
if (config2.layout) {
|
|
@@ -12232,19 +12509,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12232
12509
|
});
|
|
12233
12510
|
} else if (config2.type == "Table") {
|
|
12234
12511
|
const sizeMap = {};
|
|
12235
|
-
const filterMap = {};
|
|
12236
12512
|
if (config2.sizeHolder) {
|
|
12237
12513
|
config2.sizeHolder.map((e, i) => {
|
|
12238
12514
|
sizeMap[e.keyName] = e.value;
|
|
12239
12515
|
});
|
|
12240
12516
|
}
|
|
12241
|
-
if (config2.enableColumnFilter) {
|
|
12242
|
-
config2.enableColumnFilter.map((e) => {
|
|
12243
|
-
filterMap[e.keyName] = true;
|
|
12244
|
-
});
|
|
12245
|
-
}
|
|
12246
12517
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12247
|
-
var _a, _b;
|
|
12248
12518
|
if (cellElem.type) {
|
|
12249
12519
|
return {
|
|
12250
12520
|
accessorKey: cellElem.name,
|
|
@@ -12253,8 +12523,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12253
12523
|
type: cellElem.columnFormat,
|
|
12254
12524
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12255
12525
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12256
|
-
|
|
12257
|
-
|
|
12526
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12527
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false
|
|
12258
12528
|
};
|
|
12259
12529
|
} else {
|
|
12260
12530
|
return {
|
|
@@ -12262,8 +12532,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12262
12532
|
type: cellElem.columnFormat,
|
|
12263
12533
|
header: cellElem.label || cellElem.name,
|
|
12264
12534
|
size: sizeMap[cellElem.name] || 180,
|
|
12265
|
-
|
|
12266
|
-
|
|
12535
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12536
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false
|
|
12267
12537
|
};
|
|
12268
12538
|
}
|
|
12269
12539
|
});
|