impaktapps-ui-builder 0.0.101-alpha.6 → 0.0.101-alpha.61
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 +972 -787
- 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/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 -41
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +9 -8
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +12 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +200 -289
- package/src/impaktapps-ui-builder/builder/services/component.ts +134 -33
- package/src/impaktapps-ui-builder/builder/services/event.ts +13 -14
|
@@ -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,6 +6609,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6607
6609
|
type: "WrapperLayout",
|
|
6608
6610
|
config: {
|
|
6609
6611
|
main: {
|
|
6612
|
+
label: " ",
|
|
6610
6613
|
gap: "8px"
|
|
6611
6614
|
}
|
|
6612
6615
|
},
|
|
@@ -6644,8 +6647,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6644
6647
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
6645
6648
|
main: {
|
|
6646
6649
|
label: "Component ID",
|
|
6647
|
-
options: [],
|
|
6648
|
-
color: "secondary",
|
|
6649
6650
|
required: true
|
|
6650
6651
|
}
|
|
6651
6652
|
}
|
|
@@ -6746,48 +6747,58 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6746
6747
|
]
|
|
6747
6748
|
},
|
|
6748
6749
|
{
|
|
6749
|
-
type: "
|
|
6750
|
-
scope: "#/properties/btn",
|
|
6751
|
-
options: {
|
|
6752
|
-
widget: "Button"
|
|
6753
|
-
},
|
|
6750
|
+
type: "WrapperLayout",
|
|
6754
6751
|
config: {
|
|
6755
|
-
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
6756
6752
|
main: {
|
|
6757
|
-
|
|
6758
|
-
variant: "contained",
|
|
6759
|
-
type: "text",
|
|
6760
|
-
onClick: "okHandler",
|
|
6761
|
-
size: "medium"
|
|
6753
|
+
gap: "8px"
|
|
6762
6754
|
}
|
|
6763
|
-
}
|
|
6764
|
-
},
|
|
6765
|
-
{
|
|
6766
|
-
type: "Control",
|
|
6767
|
-
scope: "#/properties/btnSubmit",
|
|
6768
|
-
options: {
|
|
6769
|
-
widget: "Button"
|
|
6770
6755
|
},
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
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
|
+
}
|
|
6779
6800
|
}
|
|
6780
|
-
|
|
6781
|
-
},
|
|
6782
|
-
{
|
|
6783
|
-
type: "Control",
|
|
6784
|
-
scope: "#/properties/EmptyBox",
|
|
6785
|
-
config: {
|
|
6786
|
-
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
6787
|
-
},
|
|
6788
|
-
options: {
|
|
6789
|
-
widget: "EmptyBox"
|
|
6790
|
-
}
|
|
6801
|
+
]
|
|
6791
6802
|
},
|
|
6792
6803
|
{
|
|
6793
6804
|
type: "Control",
|
|
@@ -7029,6 +7040,26 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7029
7040
|
}
|
|
7030
7041
|
]
|
|
7031
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
|
+
},
|
|
7032
7063
|
{
|
|
7033
7064
|
type: "Control",
|
|
7034
7065
|
scope: "#/properties/notify",
|
|
@@ -7086,7 +7117,13 @@ const componentBasicUiSchema = (theme) => {
|
|
|
7086
7117
|
return uiSchema;
|
|
7087
7118
|
};
|
|
7088
7119
|
const CoreSection = {
|
|
7089
|
-
type: "
|
|
7120
|
+
type: "WrapperLayout",
|
|
7121
|
+
config: {
|
|
7122
|
+
main: {
|
|
7123
|
+
label: " ",
|
|
7124
|
+
gap: "8px"
|
|
7125
|
+
}
|
|
7126
|
+
},
|
|
7090
7127
|
elements: [
|
|
7091
7128
|
{
|
|
7092
7129
|
type: "Control",
|
|
@@ -7095,7 +7132,7 @@ const CoreSection = {
|
|
|
7095
7132
|
widget: "SelectInputField"
|
|
7096
7133
|
},
|
|
7097
7134
|
config: {
|
|
7098
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7135
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7099
7136
|
main: {
|
|
7100
7137
|
label: "Type",
|
|
7101
7138
|
type: "text"
|
|
@@ -7104,40 +7141,39 @@ const CoreSection = {
|
|
|
7104
7141
|
},
|
|
7105
7142
|
{
|
|
7106
7143
|
type: "Control",
|
|
7107
|
-
scope: "#/properties/
|
|
7108
|
-
options: {
|
|
7109
|
-
widget: "InputField"
|
|
7110
|
-
},
|
|
7144
|
+
scope: "#/properties/proc",
|
|
7111
7145
|
config: {
|
|
7112
|
-
layout: { xs: 6, sm:
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7146
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 }
|
|
7147
|
+
},
|
|
7148
|
+
options: {
|
|
7149
|
+
widget: "EmptyBox"
|
|
7116
7150
|
}
|
|
7117
7151
|
},
|
|
7118
7152
|
{
|
|
7119
7153
|
type: "Control",
|
|
7120
|
-
scope: "#/properties/
|
|
7154
|
+
scope: "#/properties/name",
|
|
7121
7155
|
options: {
|
|
7122
7156
|
widget: "InputField"
|
|
7123
7157
|
},
|
|
7124
7158
|
config: {
|
|
7125
|
-
layout: { xs:
|
|
7159
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7126
7160
|
main: {
|
|
7127
|
-
label: "
|
|
7161
|
+
label: "Component ID",
|
|
7162
|
+
required: true
|
|
7128
7163
|
}
|
|
7129
7164
|
}
|
|
7130
7165
|
},
|
|
7131
7166
|
{
|
|
7132
7167
|
type: "Control",
|
|
7133
|
-
scope: "#/properties/
|
|
7168
|
+
scope: "#/properties/label",
|
|
7134
7169
|
options: {
|
|
7135
|
-
widget: "
|
|
7170
|
+
widget: "InputField"
|
|
7136
7171
|
},
|
|
7137
7172
|
config: {
|
|
7138
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7173
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7139
7174
|
main: {
|
|
7140
|
-
label: "
|
|
7175
|
+
label: "Label",
|
|
7176
|
+
required: true
|
|
7141
7177
|
}
|
|
7142
7178
|
}
|
|
7143
7179
|
},
|
|
@@ -7145,17 +7181,7 @@ const CoreSection = {
|
|
|
7145
7181
|
type: "Control",
|
|
7146
7182
|
scope: "#/properties/proc",
|
|
7147
7183
|
config: {
|
|
7148
|
-
layout: { xs:
|
|
7149
|
-
},
|
|
7150
|
-
options: {
|
|
7151
|
-
widget: "EmptyBox"
|
|
7152
|
-
}
|
|
7153
|
-
},
|
|
7154
|
-
{
|
|
7155
|
-
type: "Control",
|
|
7156
|
-
scope: "#/properties/proc",
|
|
7157
|
-
config: {
|
|
7158
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7184
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7159
7185
|
},
|
|
7160
7186
|
options: {
|
|
7161
7187
|
widget: "EmptyBox"
|
|
@@ -7164,54 +7190,67 @@ const CoreSection = {
|
|
|
7164
7190
|
{
|
|
7165
7191
|
type: "Control",
|
|
7166
7192
|
scope: "#/properties/layout",
|
|
7167
|
-
layout: 12,
|
|
7168
7193
|
options: {
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
}
|
|
7200
|
-
}
|
|
7201
|
-
},
|
|
7202
|
-
{
|
|
7203
|
-
type: "Control",
|
|
7204
|
-
scope: "#/properties/proc",
|
|
7205
|
-
config: {
|
|
7206
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7207
|
-
},
|
|
7208
|
-
options: {
|
|
7209
|
-
widget: "EmptyBox"
|
|
7210
|
-
}
|
|
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"
|
|
7211
7224
|
}
|
|
7212
|
-
|
|
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
|
+
}
|
|
7213
7252
|
}
|
|
7214
|
-
|
|
7253
|
+
]
|
|
7215
7254
|
}
|
|
7216
7255
|
]
|
|
7217
7256
|
};
|
|
@@ -7238,15 +7277,20 @@ const EventSection = (theme) => {
|
|
|
7238
7277
|
},
|
|
7239
7278
|
config: {
|
|
7240
7279
|
main: {
|
|
7241
|
-
color: "info",
|
|
7242
7280
|
onClick: "eventAddHandler",
|
|
7243
7281
|
size: "small",
|
|
7244
|
-
icon: "
|
|
7245
|
-
iconLabel: "Add
|
|
7282
|
+
icon: "TableAddIcon",
|
|
7283
|
+
iconLabel: "Add",
|
|
7246
7284
|
styleDefault: true
|
|
7247
7285
|
},
|
|
7248
7286
|
style: {
|
|
7249
|
-
mt: "6px"
|
|
7287
|
+
mt: "6px",
|
|
7288
|
+
color: "inherit",
|
|
7289
|
+
fill: "inherit",
|
|
7290
|
+
"&:hover": {
|
|
7291
|
+
color: "inherit",
|
|
7292
|
+
fill: "inherit"
|
|
7293
|
+
}
|
|
7250
7294
|
}
|
|
7251
7295
|
}
|
|
7252
7296
|
}
|
|
@@ -7262,12 +7306,18 @@ const EventSection = (theme) => {
|
|
|
7262
7306
|
main: {
|
|
7263
7307
|
onClick: "copyPasteElement",
|
|
7264
7308
|
size: "small",
|
|
7265
|
-
icon: "
|
|
7309
|
+
icon: "TablePaste",
|
|
7266
7310
|
iconLabel: "Paste",
|
|
7267
7311
|
styleDefault: true
|
|
7268
7312
|
},
|
|
7269
7313
|
style: {
|
|
7270
|
-
mt: "6px"
|
|
7314
|
+
mt: "6px",
|
|
7315
|
+
color: "inherit",
|
|
7316
|
+
fill: "inherit",
|
|
7317
|
+
"&:hover": {
|
|
7318
|
+
color: "inherit",
|
|
7319
|
+
fill: "inherit"
|
|
7320
|
+
}
|
|
7271
7321
|
}
|
|
7272
7322
|
}
|
|
7273
7323
|
}
|
|
@@ -7282,15 +7332,21 @@ const EventSection = (theme) => {
|
|
|
7282
7332
|
elements: [
|
|
7283
7333
|
{
|
|
7284
7334
|
accessorKey: "eventType",
|
|
7285
|
-
header: "Event Type"
|
|
7335
|
+
header: "Event's Type",
|
|
7336
|
+
type: "string",
|
|
7337
|
+
size: 300
|
|
7286
7338
|
},
|
|
7287
7339
|
{
|
|
7288
7340
|
accessorKey: "Handler",
|
|
7289
|
-
header: "Handler"
|
|
7341
|
+
header: "Handler",
|
|
7342
|
+
type: "string",
|
|
7343
|
+
size: 200
|
|
7290
7344
|
},
|
|
7291
7345
|
{
|
|
7292
7346
|
accessorKey: "Edit_Approve_Records",
|
|
7293
|
-
header: "Edit
|
|
7347
|
+
header: "Edit",
|
|
7348
|
+
size: 150,
|
|
7349
|
+
type: "action",
|
|
7294
7350
|
widget: {
|
|
7295
7351
|
type: "Control",
|
|
7296
7352
|
scope: "#/properties/Edit_Records",
|
|
@@ -7299,14 +7355,16 @@ const EventSection = (theme) => {
|
|
|
7299
7355
|
},
|
|
7300
7356
|
config: {
|
|
7301
7357
|
main: {
|
|
7302
|
-
color: "info",
|
|
7303
7358
|
size: "small",
|
|
7304
|
-
icon: "
|
|
7359
|
+
icon: "TableEditIcon",
|
|
7305
7360
|
tooltipMessage: "Edit This Record",
|
|
7306
7361
|
onClick: "eventEditHandler"
|
|
7307
7362
|
},
|
|
7308
7363
|
style: {
|
|
7309
|
-
|
|
7364
|
+
fill: theme.palette.primary.main,
|
|
7365
|
+
"& :hover": {
|
|
7366
|
+
fill: theme.palette.primary.dark
|
|
7367
|
+
}
|
|
7310
7368
|
}
|
|
7311
7369
|
}
|
|
7312
7370
|
}
|
|
@@ -7314,6 +7372,8 @@ const EventSection = (theme) => {
|
|
|
7314
7372
|
{
|
|
7315
7373
|
accessorKey: "Reject_Records",
|
|
7316
7374
|
header: "Delete",
|
|
7375
|
+
size: 150,
|
|
7376
|
+
type: "action",
|
|
7317
7377
|
widget: {
|
|
7318
7378
|
type: "Control",
|
|
7319
7379
|
scope: "#/properties/RejectButton",
|
|
@@ -7323,10 +7383,15 @@ const EventSection = (theme) => {
|
|
|
7323
7383
|
},
|
|
7324
7384
|
config: {
|
|
7325
7385
|
main: {
|
|
7326
|
-
icon: "
|
|
7327
|
-
color: "error",
|
|
7386
|
+
icon: "Bin",
|
|
7328
7387
|
tooltipMessage: "Reject This Record",
|
|
7329
7388
|
onClick: "deletePopUpEvent"
|
|
7389
|
+
},
|
|
7390
|
+
style: {
|
|
7391
|
+
fill: theme.palette.primary.main,
|
|
7392
|
+
"& :hover": {
|
|
7393
|
+
fill: theme.palette.primary.dark
|
|
7394
|
+
}
|
|
7330
7395
|
}
|
|
7331
7396
|
}
|
|
7332
7397
|
}
|
|
@@ -7334,7 +7399,8 @@ const EventSection = (theme) => {
|
|
|
7334
7399
|
{
|
|
7335
7400
|
header: "Copy",
|
|
7336
7401
|
field: "Copy_Event",
|
|
7337
|
-
|
|
7402
|
+
size: 150,
|
|
7403
|
+
type: "action",
|
|
7338
7404
|
widget: {
|
|
7339
7405
|
type: "Control",
|
|
7340
7406
|
scope: "#/properties/Copy_Event",
|
|
@@ -7384,77 +7450,103 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7384
7450
|
const cardLayout = {
|
|
7385
7451
|
type: "Control",
|
|
7386
7452
|
scope: "#/properties/cardLayout",
|
|
7387
|
-
layout: 11.5,
|
|
7388
7453
|
options: {
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
{
|
|
7393
|
-
type: "Control",
|
|
7394
|
-
scope: "#/properties/key",
|
|
7395
|
-
options: {
|
|
7396
|
-
widget: "SelectInputField"
|
|
7397
|
-
},
|
|
7398
|
-
config: {
|
|
7399
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7400
|
-
main: {
|
|
7401
|
-
label: "Screen Size"
|
|
7402
|
-
}
|
|
7403
|
-
}
|
|
7404
|
-
},
|
|
7405
|
-
{
|
|
7406
|
-
type: "Control",
|
|
7407
|
-
scope: "#/properties/value",
|
|
7408
|
-
options: {
|
|
7409
|
-
widget: "InputField"
|
|
7410
|
-
},
|
|
7411
|
-
config: {
|
|
7412
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7413
|
-
main: {
|
|
7414
|
-
label: "Value",
|
|
7415
|
-
type: "number",
|
|
7416
|
-
helperText: "Number should be in range of 0 to 12",
|
|
7417
|
-
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7418
|
-
}
|
|
7419
|
-
}
|
|
7420
|
-
},
|
|
7421
|
-
emptyBox$1("cardEmpty")
|
|
7422
|
-
]
|
|
7423
|
-
}
|
|
7424
|
-
}
|
|
7425
|
-
};
|
|
7426
|
-
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7427
|
-
return {
|
|
7428
|
-
type: "Control",
|
|
7429
|
-
scope: `#/properties/${parentScope}`,
|
|
7454
|
+
widget: "Array"
|
|
7455
|
+
},
|
|
7456
|
+
config: {
|
|
7430
7457
|
layout: 12,
|
|
7431
|
-
|
|
7432
|
-
"
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7444
|
-
main: {
|
|
7445
|
-
label: childLabel || "Labels for Tab"
|
|
7446
|
-
}
|
|
7447
|
-
}
|
|
7448
|
-
},
|
|
7449
|
-
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7450
|
-
emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7451
|
-
]
|
|
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"
|
|
7452
7470
|
}
|
|
7453
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
|
+
]
|
|
7454
7546
|
};
|
|
7455
7547
|
};
|
|
7456
7548
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7457
|
-
sizeHolder.
|
|
7549
|
+
sizeHolder.elements[1] = {
|
|
7458
7550
|
type: "Control",
|
|
7459
7551
|
scope: `#/properties/value`,
|
|
7460
7552
|
options: {
|
|
@@ -7467,7 +7559,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7467
7559
|
}
|
|
7468
7560
|
}
|
|
7469
7561
|
};
|
|
7470
|
-
sizeHolder.
|
|
7562
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7471
7563
|
const getInputField = (scope, label) => {
|
|
7472
7564
|
return {
|
|
7473
7565
|
type: "Control",
|
|
@@ -7476,7 +7568,7 @@ const getInputField = (scope, label) => {
|
|
|
7476
7568
|
widget: "InputField"
|
|
7477
7569
|
},
|
|
7478
7570
|
config: {
|
|
7479
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7571
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7480
7572
|
main: {
|
|
7481
7573
|
label
|
|
7482
7574
|
}
|
|
@@ -7491,7 +7583,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7491
7583
|
widget: "RadioInputField"
|
|
7492
7584
|
},
|
|
7493
7585
|
config: {
|
|
7494
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
7586
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
7495
7587
|
main: {
|
|
7496
7588
|
label,
|
|
7497
7589
|
options
|
|
@@ -7506,17 +7598,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7506
7598
|
main: {
|
|
7507
7599
|
label: label || "Details",
|
|
7508
7600
|
isAccordion: true
|
|
7509
|
-
}
|
|
7510
|
-
wrapperStyle: {
|
|
7511
|
-
marginTop: "-6px",
|
|
7512
|
-
marginBottom: "-8px",
|
|
7513
|
-
marginLeft: "-34px",
|
|
7514
|
-
width: "108%"
|
|
7515
|
-
},
|
|
7516
|
-
componentsBoxStyle: {
|
|
7517
|
-
marginLeft: "12px"
|
|
7518
|
-
},
|
|
7519
|
-
defaultStyle: true
|
|
7601
|
+
}
|
|
7520
7602
|
},
|
|
7521
7603
|
elements: elements || []
|
|
7522
7604
|
};
|
|
@@ -7530,18 +7612,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7530
7612
|
},
|
|
7531
7613
|
config: {
|
|
7532
7614
|
layout: layout || 12,
|
|
7533
|
-
style: {
|
|
7534
|
-
containerStyle: {
|
|
7535
|
-
borderRadius: "20px"
|
|
7536
|
-
},
|
|
7537
|
-
headerContainerStyle: {},
|
|
7538
|
-
textAreaStyle: {
|
|
7539
|
-
borderRadius: "20px",
|
|
7540
|
-
padding: "20px"
|
|
7541
|
-
}
|
|
7542
|
-
},
|
|
7543
7615
|
main: {
|
|
7544
|
-
heading,
|
|
7616
|
+
label: heading,
|
|
7545
7617
|
minRows: 8,
|
|
7546
7618
|
hideButton,
|
|
7547
7619
|
enableCodeEditor: true
|
|
@@ -7557,7 +7629,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7557
7629
|
widget: "SelectInputField"
|
|
7558
7630
|
},
|
|
7559
7631
|
config: {
|
|
7560
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7632
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7561
7633
|
main: {
|
|
7562
7634
|
label,
|
|
7563
7635
|
type: "text"
|
|
@@ -7573,7 +7645,7 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7573
7645
|
widget: "MultipleSelect"
|
|
7574
7646
|
},
|
|
7575
7647
|
config: {
|
|
7576
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
7648
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7577
7649
|
main: {
|
|
7578
7650
|
multiple: true,
|
|
7579
7651
|
label,
|
|
@@ -7582,12 +7654,18 @@ const getMultiSelectField = (scope, label) => {
|
|
|
7582
7654
|
}
|
|
7583
7655
|
};
|
|
7584
7656
|
};
|
|
7585
|
-
const
|
|
7657
|
+
const BaseSection = {
|
|
7586
7658
|
type: "WrapperLayout",
|
|
7659
|
+
config: {
|
|
7660
|
+
main: {
|
|
7661
|
+
label: " ",
|
|
7662
|
+
gap: "8px"
|
|
7663
|
+
}
|
|
7664
|
+
},
|
|
7587
7665
|
elements: []
|
|
7588
7666
|
};
|
|
7589
7667
|
const buildPropertiesSection = function(type) {
|
|
7590
|
-
let uiSchema = _.cloneDeep(
|
|
7668
|
+
let uiSchema = _.cloneDeep(BaseSection);
|
|
7591
7669
|
switch (type) {
|
|
7592
7670
|
case "TreeMap":
|
|
7593
7671
|
uiSchema.elements = [
|
|
@@ -7651,7 +7729,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7651
7729
|
uiSchema.elements = [
|
|
7652
7730
|
getInputField("placeholder", "Placeholder"),
|
|
7653
7731
|
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7654
|
-
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7732
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
7733
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 })
|
|
7655
7734
|
];
|
|
7656
7735
|
break;
|
|
7657
7736
|
case "SpeedoMeter":
|
|
@@ -7731,7 +7810,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7731
7810
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7732
7811
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7733
7812
|
getInputField("leftMargin", "Left Margin"),
|
|
7734
|
-
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg:
|
|
7813
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
7735
7814
|
getArrayControl("legendLabels", "label"),
|
|
7736
7815
|
getArrayControl("pieArcColors", "color")
|
|
7737
7816
|
];
|
|
@@ -7812,7 +7891,13 @@ const buildPropertiesSection = function(type) {
|
|
|
7812
7891
|
return uiSchema;
|
|
7813
7892
|
};
|
|
7814
7893
|
const StyleSection = {
|
|
7815
|
-
type: "
|
|
7894
|
+
type: "WrapperLayout",
|
|
7895
|
+
config: {
|
|
7896
|
+
main: {
|
|
7897
|
+
label: " ",
|
|
7898
|
+
gap: "8px"
|
|
7899
|
+
}
|
|
7900
|
+
},
|
|
7816
7901
|
elements: [
|
|
7817
7902
|
{
|
|
7818
7903
|
type: "Control",
|
|
@@ -7828,14 +7913,7 @@ const StyleSection = {
|
|
|
7828
7913
|
lg: 12
|
|
7829
7914
|
},
|
|
7830
7915
|
style: {
|
|
7831
|
-
|
|
7832
|
-
borderRadius: "20px"
|
|
7833
|
-
},
|
|
7834
|
-
headerContainerStyle: {},
|
|
7835
|
-
textAreaStyle: {
|
|
7836
|
-
borderRadius: "20px",
|
|
7837
|
-
padding: "20px"
|
|
7838
|
-
}
|
|
7916
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
|
|
7839
7917
|
},
|
|
7840
7918
|
main: {
|
|
7841
7919
|
heading: "JSON Style",
|
|
@@ -7869,15 +7947,20 @@ const TableSection = (theme) => {
|
|
|
7869
7947
|
},
|
|
7870
7948
|
config: {
|
|
7871
7949
|
main: {
|
|
7872
|
-
color: "info",
|
|
7873
7950
|
onClick: "widgetAddClickHandler",
|
|
7874
7951
|
size: "small",
|
|
7875
|
-
icon: "
|
|
7876
|
-
iconLabel: "Add
|
|
7952
|
+
icon: "TableAddIcon",
|
|
7953
|
+
iconLabel: "Add",
|
|
7877
7954
|
styleDefault: true
|
|
7878
7955
|
},
|
|
7879
7956
|
style: {
|
|
7880
|
-
mt: "6px"
|
|
7957
|
+
mt: "6px",
|
|
7958
|
+
color: "inherit",
|
|
7959
|
+
fill: "inherit",
|
|
7960
|
+
"&:hover": {
|
|
7961
|
+
color: "inherit",
|
|
7962
|
+
fill: "inherit"
|
|
7963
|
+
}
|
|
7881
7964
|
}
|
|
7882
7965
|
}
|
|
7883
7966
|
}
|
|
@@ -7893,12 +7976,18 @@ const TableSection = (theme) => {
|
|
|
7893
7976
|
main: {
|
|
7894
7977
|
onClick: "copyPasteElement",
|
|
7895
7978
|
size: "small",
|
|
7896
|
-
icon: "
|
|
7979
|
+
icon: "TablePaste",
|
|
7897
7980
|
iconLabel: "Paste",
|
|
7898
7981
|
styleDefault: true
|
|
7899
7982
|
},
|
|
7900
7983
|
style: {
|
|
7901
|
-
mt: "6px"
|
|
7984
|
+
mt: "6px",
|
|
7985
|
+
color: "inherit",
|
|
7986
|
+
fill: "inherit",
|
|
7987
|
+
"&:hover": {
|
|
7988
|
+
color: "inherit",
|
|
7989
|
+
fill: "inherit"
|
|
7990
|
+
}
|
|
7902
7991
|
}
|
|
7903
7992
|
}
|
|
7904
7993
|
}
|
|
@@ -7913,16 +8002,21 @@ const TableSection = (theme) => {
|
|
|
7913
8002
|
elements: [
|
|
7914
8003
|
{
|
|
7915
8004
|
accessorKey: "name",
|
|
7916
|
-
header: "Name"
|
|
8005
|
+
header: "Name",
|
|
8006
|
+
type: "string",
|
|
8007
|
+
size: 300
|
|
7917
8008
|
},
|
|
7918
8009
|
{
|
|
7919
8010
|
accessorKey: "type",
|
|
7920
|
-
header: "Type"
|
|
8011
|
+
header: "Type",
|
|
8012
|
+
type: "string",
|
|
8013
|
+
size: 200
|
|
7921
8014
|
},
|
|
7922
8015
|
{
|
|
7923
8016
|
header: "Edit Record",
|
|
7924
8017
|
field: "Reject_Records",
|
|
7925
|
-
|
|
8018
|
+
size: 150,
|
|
8019
|
+
type: "action",
|
|
7926
8020
|
widget: {
|
|
7927
8021
|
type: "Control",
|
|
7928
8022
|
scope: "#/properties/RejectButton",
|
|
@@ -7931,13 +8025,16 @@ const TableSection = (theme) => {
|
|
|
7931
8025
|
},
|
|
7932
8026
|
config: {
|
|
7933
8027
|
main: {
|
|
7934
|
-
icon: "
|
|
7935
|
-
|
|
8028
|
+
icon: "TableEditIcon",
|
|
8029
|
+
size: "small",
|
|
7936
8030
|
onClick: "editComponents",
|
|
7937
8031
|
tooltipMessage: "Reject This Record"
|
|
7938
8032
|
},
|
|
7939
8033
|
style: {
|
|
7940
|
-
|
|
8034
|
+
fill: theme.palette.primary.main,
|
|
8035
|
+
"& :hover": {
|
|
8036
|
+
fill: theme.palette.primary.dark
|
|
8037
|
+
}
|
|
7941
8038
|
}
|
|
7942
8039
|
}
|
|
7943
8040
|
}
|
|
@@ -7945,7 +8042,8 @@ const TableSection = (theme) => {
|
|
|
7945
8042
|
{
|
|
7946
8043
|
header: "Delete",
|
|
7947
8044
|
field: "Reject_Records",
|
|
7948
|
-
|
|
8045
|
+
size: 150,
|
|
8046
|
+
type: "action",
|
|
7949
8047
|
widget: {
|
|
7950
8048
|
type: "Control",
|
|
7951
8049
|
scope: "#/properties/RejectButton",
|
|
@@ -7954,10 +8052,15 @@ const TableSection = (theme) => {
|
|
|
7954
8052
|
},
|
|
7955
8053
|
config: {
|
|
7956
8054
|
main: {
|
|
7957
|
-
icon: "
|
|
7958
|
-
color: "error",
|
|
8055
|
+
icon: "Bin",
|
|
7959
8056
|
onClick: "deletePopUpComponent",
|
|
7960
8057
|
tooltipMessage: "Reject This Record"
|
|
8058
|
+
},
|
|
8059
|
+
style: {
|
|
8060
|
+
fill: theme.palette.primary.main,
|
|
8061
|
+
"& :hover": {
|
|
8062
|
+
fill: theme.palette.primary.dark
|
|
8063
|
+
}
|
|
7961
8064
|
}
|
|
7962
8065
|
}
|
|
7963
8066
|
}
|
|
@@ -7965,7 +8068,8 @@ const TableSection = (theme) => {
|
|
|
7965
8068
|
{
|
|
7966
8069
|
header: "Copy",
|
|
7967
8070
|
field: "Copy_Component",
|
|
7968
|
-
|
|
8071
|
+
size: 150,
|
|
8072
|
+
type: "action",
|
|
7969
8073
|
widget: {
|
|
7970
8074
|
type: "Control",
|
|
7971
8075
|
scope: "#/properties/Copy_Component",
|
|
@@ -7989,109 +8093,148 @@ const TableSection = (theme) => {
|
|
|
7989
8093
|
return uiSchema;
|
|
7990
8094
|
};
|
|
7991
8095
|
const ValueTab = {
|
|
7992
|
-
type: "
|
|
8096
|
+
type: "WrapperLayout",
|
|
8097
|
+
config: {
|
|
8098
|
+
main: {
|
|
8099
|
+
label: " ",
|
|
8100
|
+
gap: "8px"
|
|
8101
|
+
}
|
|
8102
|
+
},
|
|
7993
8103
|
elements: [
|
|
7994
8104
|
{
|
|
7995
8105
|
type: "Control",
|
|
7996
8106
|
scope: "#/properties/value",
|
|
7997
|
-
layout: 12,
|
|
7998
8107
|
options: {
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
type: "Control",
|
|
8030
|
-
scope: "#/properties/emptyBox",
|
|
8031
|
-
options: {
|
|
8032
|
-
widget: "EmptyBox"
|
|
8033
|
-
},
|
|
8034
|
-
config: {
|
|
8035
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8036
|
-
}
|
|
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"
|
|
8037
8138
|
}
|
|
8038
|
-
|
|
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
|
+
}
|
|
8039
8163
|
}
|
|
8040
|
-
|
|
8164
|
+
]
|
|
8041
8165
|
}
|
|
8042
8166
|
]
|
|
8043
8167
|
};
|
|
8044
8168
|
const ValidationSection = {
|
|
8045
|
-
type: "
|
|
8169
|
+
type: "WrapperLayout",
|
|
8170
|
+
config: {
|
|
8171
|
+
main: {
|
|
8172
|
+
label: " ",
|
|
8173
|
+
gap: "8px"
|
|
8174
|
+
}
|
|
8175
|
+
},
|
|
8046
8176
|
elements: [
|
|
8047
8177
|
{
|
|
8048
8178
|
type: "Control",
|
|
8049
8179
|
scope: "#/properties/validation",
|
|
8050
|
-
layout: 11.5,
|
|
8051
8180
|
options: {
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
{
|
|
8083
|
-
type: "Control",
|
|
8084
|
-
scope: "#/properties/emptyBox",
|
|
8085
|
-
options: {
|
|
8086
|
-
widget: "EmptyBox"
|
|
8087
|
-
},
|
|
8088
|
-
config: {
|
|
8089
|
-
layout: { xs: 0, sm: 0, md: 4 }
|
|
8090
|
-
}
|
|
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"
|
|
8091
8211
|
}
|
|
8092
|
-
|
|
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
|
+
}
|
|
8093
8236
|
}
|
|
8094
|
-
|
|
8237
|
+
]
|
|
8095
8238
|
}
|
|
8096
8239
|
]
|
|
8097
8240
|
};
|
|
@@ -8247,53 +8390,111 @@ function okHandler(store2) {
|
|
|
8247
8390
|
}
|
|
8248
8391
|
}
|
|
8249
8392
|
const sectionLabels = {
|
|
8250
|
-
Select: ["Core", "Properties", "Value", "
|
|
8251
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
8252
|
-
Table: ["Core", "Components", "Properties", "
|
|
8253
|
-
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"],
|
|
8254
8397
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8255
8398
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8256
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
8257
|
-
card: ["Core", "Properties", "
|
|
8258
|
-
UploadFile: ["Core", "
|
|
8259
|
-
Graph: ["Core", "Properties", "
|
|
8260
|
-
DownloadFile: ["Core", "
|
|
8261
|
-
Box: ["Core", "
|
|
8262
|
-
Properties: ["Core", "Properties", "
|
|
8263
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
8264
|
-
RankCard: ["Core", "Properties", "
|
|
8265
|
-
Slider: ["Core", "Components", "
|
|
8266
|
-
Timer: ["Core", "
|
|
8267
|
-
Rank: ["Core", "
|
|
8268
|
-
Button: ["Core", "Properties", "
|
|
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"],
|
|
8269
8412
|
Array: ["Core", "Components", "Validation"],
|
|
8270
|
-
Radio: ["Core", "Properties", "
|
|
8271
|
-
Text: ["Core", "Properties", "
|
|
8272
|
-
TextArea: ["Core", "Properties", "
|
|
8413
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8414
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8415
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8273
8416
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8274
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
8275
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
8276
|
-
InputSlider: ["Core", "Properties", "
|
|
8277
|
-
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"],
|
|
8278
8421
|
ColumnGroup: ["Core", "Components"],
|
|
8279
|
-
Thought: ["Core", "Properties", "
|
|
8422
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8280
8423
|
};
|
|
8281
8424
|
function refreshPage(type, store2) {
|
|
8282
|
-
var _a;
|
|
8425
|
+
var _a, _b;
|
|
8283
8426
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8427
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8284
8428
|
if (type) {
|
|
8285
8429
|
const sectionUiSchema = {
|
|
8286
8430
|
Core: CoreSection,
|
|
8287
8431
|
Value: ValueTab,
|
|
8288
8432
|
Style: StyleSection,
|
|
8289
|
-
|
|
8433
|
+
Events: EventSection(store2.theme.myTheme),
|
|
8290
8434
|
Components: TableSection(store2.theme.myTheme),
|
|
8291
8435
|
Properties: buildPropertiesSection(type),
|
|
8292
8436
|
Validation: ValidationSection
|
|
8293
8437
|
};
|
|
8294
8438
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8295
|
-
UiSchema.elements[
|
|
8296
|
-
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
|
+
};
|
|
8297
8498
|
}
|
|
8298
8499
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8299
8500
|
this.ElementPathSetter(UiSchema);
|
|
@@ -8316,10 +8517,35 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8316
8517
|
return getFormdataFromSessionStorage(path);
|
|
8317
8518
|
},
|
|
8318
8519
|
getSchema: function() {
|
|
8520
|
+
var _a, _b;
|
|
8319
8521
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8320
8522
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8321
8523
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8322
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 = [];
|
|
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
|
+
console.log("pathArray>>", pathArray);
|
|
8548
|
+
schema2.properties.pageName.path = pathArray;
|
|
8323
8549
|
return schema2;
|
|
8324
8550
|
},
|
|
8325
8551
|
okHandler: () => okHandler(store2),
|
|
@@ -8457,15 +8683,15 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8457
8683
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8458
8684
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8459
8685
|
const notificationMessages = {
|
|
8460
|
-
|
|
8461
|
-
Component: "The component cannot be integrated into the
|
|
8686
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
8687
|
+
Component: "The component cannot be integrated into the Events section."
|
|
8462
8688
|
};
|
|
8463
8689
|
if (copiedConfig.Handler && elementType === "Component") {
|
|
8464
8690
|
store2.setNotify({
|
|
8465
|
-
FailMessage: notificationMessages.
|
|
8691
|
+
FailMessage: notificationMessages.Events,
|
|
8466
8692
|
Fail: true
|
|
8467
8693
|
});
|
|
8468
|
-
} else if (copiedConfig.name && elementType === "
|
|
8694
|
+
} else if (copiedConfig.name && elementType === "Events") {
|
|
8469
8695
|
store2.setNotify({
|
|
8470
8696
|
FailMessage: notificationMessages.Component,
|
|
8471
8697
|
Fail: true
|
|
@@ -8491,8 +8717,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8491
8717
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8492
8718
|
},
|
|
8493
8719
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8494
|
-
|
|
8495
|
-
uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
|
|
8720
|
+
copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8496
8721
|
}
|
|
8497
8722
|
};
|
|
8498
8723
|
};
|
|
@@ -8643,18 +8868,18 @@ const EventSchema = {
|
|
|
8643
8868
|
eventType: {
|
|
8644
8869
|
type: "string",
|
|
8645
8870
|
oneOf: [
|
|
8646
|
-
{ title: "Click
|
|
8647
|
-
{ title: "Load
|
|
8648
|
-
{ title: "Change
|
|
8649
|
-
{ title: "Mount
|
|
8871
|
+
{ title: "Click", const: "onClick" },
|
|
8872
|
+
{ title: "Load", const: "onLoad" },
|
|
8873
|
+
{ title: "Change", const: "onChange" },
|
|
8874
|
+
{ title: "Mount", const: "onMount" },
|
|
8650
8875
|
{ title: "Success", const: "Success" },
|
|
8651
|
-
{ title: "
|
|
8652
|
-
{ title: "Cell
|
|
8653
|
-
{ title: "
|
|
8654
|
-
{ title: "Back
|
|
8655
|
-
{ title: "Next
|
|
8656
|
-
{ title: "
|
|
8657
|
-
{ title: "
|
|
8876
|
+
{ title: "Start", const: "onStart" },
|
|
8877
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8878
|
+
{ title: "Upload", const: "onUpload" },
|
|
8879
|
+
{ title: "Back", const: "onBack" },
|
|
8880
|
+
{ title: "Next", const: "onNext" },
|
|
8881
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
8882
|
+
{ title: "Download", const: "onDownload" },
|
|
8658
8883
|
{ title: "Fail", const: "Fail" }
|
|
8659
8884
|
]
|
|
8660
8885
|
},
|
|
@@ -8662,7 +8887,7 @@ const EventSchema = {
|
|
|
8662
8887
|
type: "string",
|
|
8663
8888
|
oneOf: [
|
|
8664
8889
|
{ title: "Custom", const: "custom" },
|
|
8665
|
-
{ title: "
|
|
8890
|
+
{ title: "API", const: "api" },
|
|
8666
8891
|
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
8667
8892
|
{ title: "Refresh", const: "refresh" }
|
|
8668
8893
|
]
|
|
@@ -8696,42 +8921,41 @@ const EventSchema = {
|
|
|
8696
8921
|
required: ["eventType", "Handler"]
|
|
8697
8922
|
};
|
|
8698
8923
|
const EventUiSchema = (theme) => {
|
|
8699
|
-
var _a
|
|
8924
|
+
var _a;
|
|
8700
8925
|
const uiSchema = {
|
|
8701
8926
|
type: "HorizontalLayout",
|
|
8702
|
-
heading: "
|
|
8927
|
+
heading: "Page-Events",
|
|
8703
8928
|
elements: [
|
|
8704
|
-
{
|
|
8705
|
-
type: "Control",
|
|
8706
|
-
scope: "#/properties/pageName",
|
|
8707
|
-
options: {
|
|
8708
|
-
widget: "Box"
|
|
8709
|
-
},
|
|
8710
|
-
config: {
|
|
8711
|
-
layout: 12,
|
|
8712
|
-
main: {
|
|
8713
|
-
heading: " "
|
|
8714
|
-
},
|
|
8715
|
-
style: {
|
|
8716
|
-
marginLeft: theme.spacing(3),
|
|
8717
|
-
width: "auto",
|
|
8718
|
-
fontSize: "12px",
|
|
8719
|
-
color: "gray"
|
|
8720
|
-
}
|
|
8721
|
-
}
|
|
8722
|
-
},
|
|
8723
8929
|
{
|
|
8724
8930
|
type: "TabLayout",
|
|
8725
8931
|
config: {
|
|
8726
8932
|
main: {
|
|
8727
|
-
tabLabels: ["Core", "Response
|
|
8728
|
-
defaultStyle: true,
|
|
8933
|
+
tabLabels: ["Core", "Response Events"],
|
|
8729
8934
|
id: "event"
|
|
8935
|
+
},
|
|
8936
|
+
style: {
|
|
8937
|
+
TabPanelStyle: {
|
|
8938
|
+
padding: 0
|
|
8939
|
+
}
|
|
8940
|
+
},
|
|
8941
|
+
TabsStyle: {
|
|
8942
|
+
marginBottom: "3px",
|
|
8943
|
+
paddingBottom: "4px",
|
|
8944
|
+
boxShadow: "0px 3px 4px #afafaf80",
|
|
8945
|
+
"& .MuiTabs-indicator": {
|
|
8946
|
+
bottom: "6px"
|
|
8947
|
+
}
|
|
8730
8948
|
}
|
|
8731
8949
|
},
|
|
8732
8950
|
elements: [
|
|
8733
8951
|
{
|
|
8734
|
-
type: "
|
|
8952
|
+
type: "WrapperLayout",
|
|
8953
|
+
config: {
|
|
8954
|
+
main: {
|
|
8955
|
+
label: " ",
|
|
8956
|
+
gap: "8px"
|
|
8957
|
+
}
|
|
8958
|
+
},
|
|
8735
8959
|
elements: [
|
|
8736
8960
|
{
|
|
8737
8961
|
type: "Control",
|
|
@@ -8740,9 +8964,9 @@ const EventUiSchema = (theme) => {
|
|
|
8740
8964
|
widget: "SelectInputField"
|
|
8741
8965
|
},
|
|
8742
8966
|
config: {
|
|
8743
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
8967
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8744
8968
|
main: {
|
|
8745
|
-
label: "Event Type",
|
|
8969
|
+
label: "Event's Type",
|
|
8746
8970
|
type: "text"
|
|
8747
8971
|
}
|
|
8748
8972
|
}
|
|
@@ -8755,7 +8979,7 @@ const EventUiSchema = (theme) => {
|
|
|
8755
8979
|
widget: "EmptyBox"
|
|
8756
8980
|
},
|
|
8757
8981
|
config: {
|
|
8758
|
-
layout: { xs: 0, sm:
|
|
8982
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
8759
8983
|
}
|
|
8760
8984
|
}
|
|
8761
8985
|
]
|
|
@@ -8781,12 +9005,18 @@ const EventUiSchema = (theme) => {
|
|
|
8781
9005
|
main: {
|
|
8782
9006
|
onClick: "addEvent",
|
|
8783
9007
|
size: "small",
|
|
8784
|
-
icon: "
|
|
8785
|
-
iconLabel: "Add
|
|
9008
|
+
icon: "TableAddIcon",
|
|
9009
|
+
iconLabel: "Add",
|
|
8786
9010
|
styleDefault: true
|
|
8787
9011
|
},
|
|
8788
9012
|
style: {
|
|
8789
|
-
mt: "6px"
|
|
9013
|
+
mt: "6px",
|
|
9014
|
+
color: "inherit",
|
|
9015
|
+
fill: "inherit",
|
|
9016
|
+
"&:hover": {
|
|
9017
|
+
color: "inherit",
|
|
9018
|
+
fill: "inherit"
|
|
9019
|
+
}
|
|
8790
9020
|
}
|
|
8791
9021
|
}
|
|
8792
9022
|
}
|
|
@@ -8802,12 +9032,18 @@ const EventUiSchema = (theme) => {
|
|
|
8802
9032
|
main: {
|
|
8803
9033
|
onClick: "copyPasteElement",
|
|
8804
9034
|
size: "small",
|
|
8805
|
-
icon: "
|
|
9035
|
+
icon: "TablePaste",
|
|
8806
9036
|
iconLabel: "Paste",
|
|
8807
9037
|
styleDefault: true
|
|
8808
9038
|
},
|
|
8809
9039
|
style: {
|
|
8810
|
-
mt: "6px"
|
|
9040
|
+
mt: "6px",
|
|
9041
|
+
color: "inherit",
|
|
9042
|
+
fill: "inherit",
|
|
9043
|
+
"&:hover": {
|
|
9044
|
+
color: "inherit",
|
|
9045
|
+
fill: "inherit"
|
|
9046
|
+
}
|
|
8811
9047
|
}
|
|
8812
9048
|
}
|
|
8813
9049
|
}
|
|
@@ -8822,15 +9058,21 @@ const EventUiSchema = (theme) => {
|
|
|
8822
9058
|
elements: [
|
|
8823
9059
|
{
|
|
8824
9060
|
accessorKey: "eventType",
|
|
8825
|
-
header: "Event Type"
|
|
9061
|
+
header: "Event's Type",
|
|
9062
|
+
size: 300,
|
|
9063
|
+
type: "string"
|
|
8826
9064
|
},
|
|
8827
9065
|
{
|
|
8828
9066
|
accessorKey: "Handler",
|
|
8829
|
-
header: "Handler"
|
|
9067
|
+
header: "Handler",
|
|
9068
|
+
size: 200,
|
|
9069
|
+
type: "string"
|
|
8830
9070
|
},
|
|
8831
9071
|
{
|
|
8832
9072
|
accessorKey: "Edit_Approve_Records",
|
|
8833
|
-
header: "Edit
|
|
9073
|
+
header: "Edit",
|
|
9074
|
+
type: "action",
|
|
9075
|
+
size: 150,
|
|
8834
9076
|
widget: {
|
|
8835
9077
|
type: "Control",
|
|
8836
9078
|
scope: "#/properties/Edit_Records",
|
|
@@ -8839,14 +9081,16 @@ const EventUiSchema = (theme) => {
|
|
|
8839
9081
|
},
|
|
8840
9082
|
config: {
|
|
8841
9083
|
main: {
|
|
8842
|
-
color: "info",
|
|
8843
9084
|
size: "small",
|
|
8844
|
-
icon: "
|
|
9085
|
+
icon: "TableEditIcon",
|
|
8845
9086
|
tooltipMessage: "Edit This Record",
|
|
8846
9087
|
onClick: "editEvent"
|
|
8847
9088
|
},
|
|
8848
9089
|
style: {
|
|
8849
|
-
|
|
9090
|
+
fill: theme.palette.primary.main,
|
|
9091
|
+
"& :hover": {
|
|
9092
|
+
fill: theme.palette.primary.dark
|
|
9093
|
+
}
|
|
8850
9094
|
}
|
|
8851
9095
|
}
|
|
8852
9096
|
}
|
|
@@ -8854,6 +9098,8 @@ const EventUiSchema = (theme) => {
|
|
|
8854
9098
|
{
|
|
8855
9099
|
accessorKey: "Reject_Records",
|
|
8856
9100
|
header: "Delete",
|
|
9101
|
+
type: "action",
|
|
9102
|
+
size: 150,
|
|
8857
9103
|
widget: {
|
|
8858
9104
|
type: "Control",
|
|
8859
9105
|
scope: "#/properties/RejectButton",
|
|
@@ -8862,10 +9108,15 @@ const EventUiSchema = (theme) => {
|
|
|
8862
9108
|
},
|
|
8863
9109
|
config: {
|
|
8864
9110
|
main: {
|
|
8865
|
-
icon: "
|
|
8866
|
-
color: "error",
|
|
9111
|
+
icon: "Bin",
|
|
8867
9112
|
tooltipMessage: "Reject This Record",
|
|
8868
9113
|
onClick: "deletePopUpEvent"
|
|
9114
|
+
},
|
|
9115
|
+
style: {
|
|
9116
|
+
fill: theme.palette.primary.main,
|
|
9117
|
+
"& :hover": {
|
|
9118
|
+
fill: theme.palette.primary.dark
|
|
9119
|
+
}
|
|
8869
9120
|
}
|
|
8870
9121
|
}
|
|
8871
9122
|
}
|
|
@@ -8873,7 +9124,8 @@ const EventUiSchema = (theme) => {
|
|
|
8873
9124
|
{
|
|
8874
9125
|
header: "Copy",
|
|
8875
9126
|
field: "Copy_Event",
|
|
8876
|
-
|
|
9127
|
+
type: "action",
|
|
9128
|
+
size: 150,
|
|
8877
9129
|
widget: {
|
|
8878
9130
|
type: "Control",
|
|
8879
9131
|
scope: "#/properties/Copy_Event",
|
|
@@ -8894,103 +9146,59 @@ const EventUiSchema = (theme) => {
|
|
|
8894
9146
|
]
|
|
8895
9147
|
},
|
|
8896
9148
|
{
|
|
8897
|
-
type: "
|
|
9149
|
+
type: "WrapperLayout",
|
|
8898
9150
|
config: {
|
|
8899
|
-
|
|
9151
|
+
main: {
|
|
9152
|
+
gap: "8px"
|
|
9153
|
+
}
|
|
8900
9154
|
},
|
|
8901
9155
|
elements: [
|
|
8902
9156
|
{
|
|
8903
9157
|
type: "Control",
|
|
8904
|
-
scope: "#/properties/
|
|
9158
|
+
scope: "#/properties/btn",
|
|
8905
9159
|
options: {
|
|
8906
|
-
widget: "
|
|
9160
|
+
widget: "Button"
|
|
8907
9161
|
},
|
|
8908
9162
|
config: {
|
|
8909
|
-
layout: { xs:
|
|
9163
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8910
9164
|
main: {
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
style: {
|
|
8917
|
-
marginLeft: "-10px"
|
|
9165
|
+
name: "Ok",
|
|
9166
|
+
variant: "contained",
|
|
9167
|
+
type: "text",
|
|
9168
|
+
onClick: "okHandler",
|
|
9169
|
+
size: "medium"
|
|
8918
9170
|
}
|
|
8919
9171
|
}
|
|
8920
9172
|
},
|
|
8921
9173
|
{
|
|
8922
9174
|
type: "Control",
|
|
8923
|
-
scope: "#/properties/
|
|
9175
|
+
scope: "#/properties/btnSubmit",
|
|
8924
9176
|
options: {
|
|
8925
|
-
widget: "
|
|
9177
|
+
widget: "Button"
|
|
8926
9178
|
},
|
|
8927
9179
|
config: {
|
|
8928
|
-
layout: { xs:
|
|
9180
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
8929
9181
|
main: {
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
fontSize: "12px",
|
|
8936
|
-
marginTop: "4px"
|
|
9182
|
+
name: "Save & Exit",
|
|
9183
|
+
variant: "contained",
|
|
9184
|
+
type: "text",
|
|
9185
|
+
onClick: "saveHandler",
|
|
9186
|
+
size: "medium"
|
|
8937
9187
|
}
|
|
8938
9188
|
}
|
|
8939
9189
|
},
|
|
8940
9190
|
{
|
|
8941
9191
|
type: "Control",
|
|
8942
9192
|
scope: "#/properties/EmptyBox",
|
|
9193
|
+
config: {
|
|
9194
|
+
layout: { xs: 4, sm: 7, md: 8, lg: 9 }
|
|
9195
|
+
},
|
|
8943
9196
|
options: {
|
|
8944
9197
|
widget: "EmptyBox"
|
|
8945
|
-
},
|
|
8946
|
-
config: {
|
|
8947
|
-
layout: { xs: 1, sm: 5 }
|
|
8948
9198
|
}
|
|
8949
9199
|
}
|
|
8950
9200
|
]
|
|
8951
9201
|
},
|
|
8952
|
-
{
|
|
8953
|
-
type: "Control",
|
|
8954
|
-
scope: "#/properties/btn",
|
|
8955
|
-
options: {
|
|
8956
|
-
widget: "Button"
|
|
8957
|
-
},
|
|
8958
|
-
config: {
|
|
8959
|
-
layout: { xs: 4, sm: 2 },
|
|
8960
|
-
main: {
|
|
8961
|
-
name: "Ok",
|
|
8962
|
-
startIcon: "ApproveIcon",
|
|
8963
|
-
variant: "contained",
|
|
8964
|
-
type: "text",
|
|
8965
|
-
onClick: "okHandler",
|
|
8966
|
-
size: "medium"
|
|
8967
|
-
},
|
|
8968
|
-
style: {
|
|
8969
|
-
float: "right"
|
|
8970
|
-
}
|
|
8971
|
-
}
|
|
8972
|
-
},
|
|
8973
|
-
{
|
|
8974
|
-
type: "Control",
|
|
8975
|
-
scope: "#/properties/btnSubmit",
|
|
8976
|
-
options: {
|
|
8977
|
-
widget: "Button"
|
|
8978
|
-
},
|
|
8979
|
-
config: {
|
|
8980
|
-
layout: { xs: 4, sm: 2 },
|
|
8981
|
-
main: {
|
|
8982
|
-
name: "Save & Exit",
|
|
8983
|
-
startIcon: "ApproveIcon",
|
|
8984
|
-
variant: "contained",
|
|
8985
|
-
type: "text",
|
|
8986
|
-
onClick: "saveHandler",
|
|
8987
|
-
size: "medium"
|
|
8988
|
-
},
|
|
8989
|
-
style: {
|
|
8990
|
-
float: "right"
|
|
8991
|
-
}
|
|
8992
|
-
}
|
|
8993
|
-
},
|
|
8994
9202
|
{
|
|
8995
9203
|
type: "Control",
|
|
8996
9204
|
scope: "#/properties/popUpEvent",
|
|
@@ -9116,110 +9324,75 @@ const EventUiSchema = (theme) => {
|
|
|
9116
9324
|
},
|
|
9117
9325
|
{
|
|
9118
9326
|
type: "Control",
|
|
9119
|
-
scope: "#/properties/
|
|
9327
|
+
scope: "#/properties/pageName",
|
|
9120
9328
|
options: {
|
|
9121
|
-
widget: "
|
|
9329
|
+
widget: "Box"
|
|
9122
9330
|
},
|
|
9123
|
-
layout: 6
|
|
9124
|
-
},
|
|
9125
|
-
{
|
|
9126
|
-
type: "HorizontalLayout",
|
|
9127
9331
|
config: {
|
|
9332
|
+
layout: 12,
|
|
9128
9333
|
main: {
|
|
9129
|
-
|
|
9334
|
+
heading: ""
|
|
9130
9335
|
},
|
|
9131
9336
|
style: {
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9337
|
+
paddingLeft: theme.spacing(3),
|
|
9338
|
+
width: "100%",
|
|
9339
|
+
fontSize: "10px",
|
|
9340
|
+
color: theme.palette.grey[600],
|
|
9341
|
+
position: "fixed",
|
|
9342
|
+
bottom: "24px",
|
|
9343
|
+
backgroundColor: theme.palette.background.default,
|
|
9344
|
+
borderBottom: `1px solid ${theme.palette.common.black}29`,
|
|
9345
|
+
borderTop: `1px solid ${theme.palette.common.black}29`
|
|
9139
9346
|
}
|
|
9347
|
+
}
|
|
9348
|
+
},
|
|
9349
|
+
{
|
|
9350
|
+
type: "Control",
|
|
9351
|
+
scope: "#/properties/notify",
|
|
9352
|
+
options: {
|
|
9353
|
+
widget: "Notify"
|
|
9140
9354
|
},
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
config: {
|
|
9149
|
-
main: {
|
|
9150
|
-
heading: "Copywriter@ACT21.IO"
|
|
9151
|
-
},
|
|
9152
|
-
style: {
|
|
9153
|
-
color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
|
|
9154
|
-
fontSize: "11px",
|
|
9155
|
-
textAlign: "center",
|
|
9156
|
-
lineHeight: 2,
|
|
9157
|
-
width: "fit-content",
|
|
9158
|
-
left: "50%",
|
|
9159
|
-
position: "relative",
|
|
9160
|
-
margin: 0,
|
|
9161
|
-
flexGrow: 1,
|
|
9162
|
-
height: 0,
|
|
9163
|
-
transform: "translate(-50%, 0%)"
|
|
9164
|
-
}
|
|
9165
|
-
}
|
|
9166
|
-
},
|
|
9167
|
-
{
|
|
9168
|
-
type: "Control",
|
|
9169
|
-
scope: "#/properties/FooterBackIcon",
|
|
9170
|
-
options: {
|
|
9171
|
-
widget: "Box"
|
|
9172
|
-
},
|
|
9173
|
-
config: {
|
|
9174
|
-
main: {
|
|
9175
|
-
iconName: "PrevIcon",
|
|
9176
|
-
onClick: "backHandler",
|
|
9177
|
-
width: "fit-content"
|
|
9178
|
-
},
|
|
9179
|
-
style: {
|
|
9180
|
-
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
9181
|
-
width: 20,
|
|
9182
|
-
height: 0,
|
|
9183
|
-
top: 0,
|
|
9184
|
-
right: { xs: "12px", sm: "84px" },
|
|
9185
|
-
position: "absolute",
|
|
9186
|
-
fontSize: "12px",
|
|
9187
|
-
cursor: "pointer",
|
|
9188
|
-
":hover": {
|
|
9189
|
-
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
9190
|
-
},
|
|
9191
|
-
marginRight: "20px"
|
|
9192
|
-
}
|
|
9193
|
-
}
|
|
9355
|
+
layout: 6
|
|
9356
|
+
},
|
|
9357
|
+
{
|
|
9358
|
+
type: "HorizontalLayout",
|
|
9359
|
+
config: {
|
|
9360
|
+
main: {
|
|
9361
|
+
direction: "row"
|
|
9194
9362
|
},
|
|
9363
|
+
style: {
|
|
9364
|
+
flexDirection: "row",
|
|
9365
|
+
position: "absolute",
|
|
9366
|
+
bottom: 10,
|
|
9367
|
+
height: "fit-content",
|
|
9368
|
+
overflow: "hidden",
|
|
9369
|
+
zIndex: 1e3,
|
|
9370
|
+
width: "inherit"
|
|
9371
|
+
}
|
|
9372
|
+
},
|
|
9373
|
+
elements: [
|
|
9195
9374
|
{
|
|
9196
9375
|
type: "Control",
|
|
9197
|
-
scope: "#/properties/
|
|
9376
|
+
scope: "#/properties/FooterText",
|
|
9198
9377
|
options: {
|
|
9199
9378
|
widget: "Box"
|
|
9200
9379
|
},
|
|
9201
9380
|
config: {
|
|
9202
9381
|
main: {
|
|
9203
|
-
heading: "
|
|
9204
|
-
onClick: "backHandler"
|
|
9382
|
+
heading: "Copywriter@ACT21.IO"
|
|
9205
9383
|
},
|
|
9206
9384
|
style: {
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9385
|
+
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
9386
|
+
fontSize: "11px",
|
|
9387
|
+
textAlign: "center",
|
|
9388
|
+
lineHeight: 0,
|
|
9211
9389
|
width: "fit-content",
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
position: "absolute",
|
|
9219
|
-
":hover": {
|
|
9220
|
-
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
9221
|
-
},
|
|
9222
|
-
marginRight: "4px"
|
|
9390
|
+
left: "50%",
|
|
9391
|
+
position: "relative",
|
|
9392
|
+
margin: "revert",
|
|
9393
|
+
flexGrow: 1,
|
|
9394
|
+
height: 0,
|
|
9395
|
+
transform: "translate(-50%, 0%)"
|
|
9223
9396
|
}
|
|
9224
9397
|
}
|
|
9225
9398
|
}
|
|
@@ -9239,7 +9412,7 @@ const APISection = {
|
|
|
9239
9412
|
widget: "SelectInputField"
|
|
9240
9413
|
},
|
|
9241
9414
|
config: {
|
|
9242
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9415
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9243
9416
|
main: {
|
|
9244
9417
|
label: "Method",
|
|
9245
9418
|
type: "text"
|
|
@@ -9253,7 +9426,7 @@ const APISection = {
|
|
|
9253
9426
|
widget: "InputField"
|
|
9254
9427
|
},
|
|
9255
9428
|
config: {
|
|
9256
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
9429
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9257
9430
|
main: {
|
|
9258
9431
|
label: "Path",
|
|
9259
9432
|
type: "text",
|
|
@@ -9269,116 +9442,132 @@ const APISection = {
|
|
|
9269
9442
|
widget: "EmptyBox"
|
|
9270
9443
|
},
|
|
9271
9444
|
config: {
|
|
9272
|
-
layout: { xs: 0, sm: 0, md: 4, lg:
|
|
9445
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
9273
9446
|
}
|
|
9274
9447
|
},
|
|
9275
9448
|
{
|
|
9276
9449
|
type: "Control",
|
|
9277
|
-
scope: "#/properties/
|
|
9450
|
+
scope: "#/properties/headers",
|
|
9278
9451
|
options: {
|
|
9279
|
-
widget: "
|
|
9452
|
+
widget: "Array"
|
|
9280
9453
|
},
|
|
9281
9454
|
config: {
|
|
9282
|
-
layout:
|
|
9283
|
-
|
|
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
|
-
scope: "#/properties/value",
|
|
9310
|
-
options: {
|
|
9311
|
-
widget: "InputField"
|
|
9312
|
-
},
|
|
9313
|
-
config: {
|
|
9314
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9315
|
-
main: {
|
|
9316
|
-
label: "Value"
|
|
9317
|
-
}
|
|
9318
|
-
}
|
|
9319
|
-
},
|
|
9320
|
-
{
|
|
9321
|
-
type: "Control",
|
|
9322
|
-
scope: "#/properties/emptyBox",
|
|
9323
|
-
options: {
|
|
9324
|
-
widget: "EmptyBox"
|
|
9325
|
-
},
|
|
9326
|
-
config: {
|
|
9327
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9328
|
-
}
|
|
9455
|
+
layout: 12,
|
|
9456
|
+
main: {
|
|
9457
|
+
label: "Headers",
|
|
9458
|
+
childElementLabel: "Headers"
|
|
9459
|
+
},
|
|
9460
|
+
style: {
|
|
9461
|
+
marginLeft: "-24px",
|
|
9462
|
+
marginBottom: "24px !important",
|
|
9463
|
+
labelStyle: {
|
|
9464
|
+
marginLeft: "24px"
|
|
9465
|
+
},
|
|
9466
|
+
detailsStyle: {
|
|
9467
|
+
marginLeft: "24px"
|
|
9468
|
+
}
|
|
9469
|
+
}
|
|
9470
|
+
},
|
|
9471
|
+
elements: [
|
|
9472
|
+
{
|
|
9473
|
+
type: "Control",
|
|
9474
|
+
scope: "#/properties/key",
|
|
9475
|
+
options: {
|
|
9476
|
+
widget: "InputField"
|
|
9477
|
+
},
|
|
9478
|
+
config: {
|
|
9479
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9480
|
+
main: {
|
|
9481
|
+
label: "Key"
|
|
9329
9482
|
}
|
|
9330
|
-
|
|
9483
|
+
}
|
|
9484
|
+
},
|
|
9485
|
+
{
|
|
9486
|
+
type: "Control",
|
|
9487
|
+
scope: "#/properties/value",
|
|
9488
|
+
options: {
|
|
9489
|
+
widget: "InputField"
|
|
9490
|
+
},
|
|
9491
|
+
config: {
|
|
9492
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9493
|
+
main: {
|
|
9494
|
+
label: "Value"
|
|
9495
|
+
}
|
|
9496
|
+
}
|
|
9497
|
+
},
|
|
9498
|
+
{
|
|
9499
|
+
type: "Control",
|
|
9500
|
+
scope: "#/properties/emptyBox",
|
|
9501
|
+
options: {
|
|
9502
|
+
widget: "EmptyBox"
|
|
9503
|
+
},
|
|
9504
|
+
config: {
|
|
9505
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9506
|
+
}
|
|
9331
9507
|
}
|
|
9332
|
-
|
|
9508
|
+
]
|
|
9333
9509
|
},
|
|
9334
9510
|
{
|
|
9335
9511
|
type: "Control",
|
|
9336
9512
|
scope: "#/properties/body",
|
|
9337
|
-
layout: 11.5,
|
|
9338
9513
|
options: {
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
{
|
|
9370
|
-
type: "Control",
|
|
9371
|
-
scope: "#/properties/emptyBox",
|
|
9372
|
-
options: {
|
|
9373
|
-
widget: "EmptyBox"
|
|
9374
|
-
},
|
|
9375
|
-
config: {
|
|
9376
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9377
|
-
}
|
|
9514
|
+
widget: "Array"
|
|
9515
|
+
},
|
|
9516
|
+
config: {
|
|
9517
|
+
layout: 12,
|
|
9518
|
+
main: {
|
|
9519
|
+
label: "Body",
|
|
9520
|
+
childElementLabel: "Body"
|
|
9521
|
+
},
|
|
9522
|
+
style: {
|
|
9523
|
+
marginLeft: "-24px",
|
|
9524
|
+
marginBottom: "24px !important",
|
|
9525
|
+
labelStyle: {
|
|
9526
|
+
marginLeft: "24px"
|
|
9527
|
+
},
|
|
9528
|
+
detailsStyle: {
|
|
9529
|
+
marginLeft: "24px"
|
|
9530
|
+
}
|
|
9531
|
+
}
|
|
9532
|
+
},
|
|
9533
|
+
elements: [
|
|
9534
|
+
{
|
|
9535
|
+
type: "Control",
|
|
9536
|
+
scope: "#/properties/key",
|
|
9537
|
+
options: {
|
|
9538
|
+
widget: "InputField"
|
|
9539
|
+
},
|
|
9540
|
+
config: {
|
|
9541
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9542
|
+
main: {
|
|
9543
|
+
label: "Key"
|
|
9378
9544
|
}
|
|
9379
|
-
|
|
9545
|
+
}
|
|
9546
|
+
},
|
|
9547
|
+
{
|
|
9548
|
+
type: "Control",
|
|
9549
|
+
scope: "#/properties/value",
|
|
9550
|
+
options: {
|
|
9551
|
+
widget: "InputField"
|
|
9552
|
+
},
|
|
9553
|
+
config: {
|
|
9554
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9555
|
+
main: {
|
|
9556
|
+
label: "Value"
|
|
9557
|
+
}
|
|
9558
|
+
}
|
|
9559
|
+
},
|
|
9560
|
+
{
|
|
9561
|
+
type: "Control",
|
|
9562
|
+
scope: "#/properties/emptyBox",
|
|
9563
|
+
options: {
|
|
9564
|
+
widget: "EmptyBox"
|
|
9565
|
+
},
|
|
9566
|
+
config: {
|
|
9567
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
9568
|
+
}
|
|
9380
9569
|
}
|
|
9381
|
-
|
|
9570
|
+
]
|
|
9382
9571
|
},
|
|
9383
9572
|
getTextArea("apiBody", "Transformer", true, 12)
|
|
9384
9573
|
]
|
|
@@ -9389,64 +9578,55 @@ const refreshSectionUiSchema = {
|
|
|
9389
9578
|
{
|
|
9390
9579
|
type: "Control",
|
|
9391
9580
|
scope: "#/properties/refreshElements",
|
|
9392
|
-
layout: 11.5,
|
|
9393
9581
|
options: {
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
{
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
options: {
|
|
9425
|
-
widget: "EmptyBox"
|
|
9426
|
-
},
|
|
9427
|
-
config: {
|
|
9428
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
9429
|
-
main: {}
|
|
9430
|
-
}
|
|
9582
|
+
widget: "Array"
|
|
9583
|
+
},
|
|
9584
|
+
config: {
|
|
9585
|
+
layout: 12,
|
|
9586
|
+
main: {
|
|
9587
|
+
label: "Refresh Elements",
|
|
9588
|
+
childElementLabel: "Refresh Elements"
|
|
9589
|
+
},
|
|
9590
|
+
style: {
|
|
9591
|
+
marginLeft: "-24px",
|
|
9592
|
+
marginBottom: "24px !important",
|
|
9593
|
+
labelStyle: {
|
|
9594
|
+
marginLeft: "24px"
|
|
9595
|
+
},
|
|
9596
|
+
detailsStyle: {
|
|
9597
|
+
marginLeft: "24px"
|
|
9598
|
+
}
|
|
9599
|
+
}
|
|
9600
|
+
},
|
|
9601
|
+
elements: [
|
|
9602
|
+
{
|
|
9603
|
+
type: "Control",
|
|
9604
|
+
scope: "#/properties/value",
|
|
9605
|
+
options: {
|
|
9606
|
+
widget: "InputField"
|
|
9607
|
+
},
|
|
9608
|
+
config: {
|
|
9609
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
9610
|
+
main: {
|
|
9611
|
+
label: "Value"
|
|
9431
9612
|
}
|
|
9432
|
-
|
|
9613
|
+
}
|
|
9614
|
+
},
|
|
9615
|
+
{
|
|
9616
|
+
type: "Control",
|
|
9617
|
+
scope: "#/properties/emptyBox",
|
|
9618
|
+
options: {
|
|
9619
|
+
widget: "EmptyBox"
|
|
9620
|
+
},
|
|
9621
|
+
config: {
|
|
9622
|
+
layout: { xs: 6, sm: 6, md: 8, lg: 8 },
|
|
9623
|
+
main: {}
|
|
9624
|
+
}
|
|
9433
9625
|
}
|
|
9434
|
-
|
|
9626
|
+
]
|
|
9435
9627
|
}
|
|
9436
9628
|
]
|
|
9437
9629
|
};
|
|
9438
|
-
var emptyBox = {
|
|
9439
|
-
type: "Control",
|
|
9440
|
-
scope: "#/properties/emptyBox",
|
|
9441
|
-
options: {
|
|
9442
|
-
widget: "EmptyBox"
|
|
9443
|
-
},
|
|
9444
|
-
config: {
|
|
9445
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
9446
|
-
main: {},
|
|
9447
|
-
style: {}
|
|
9448
|
-
}
|
|
9449
|
-
};
|
|
9450
9630
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
9451
9631
|
return {
|
|
9452
9632
|
setPage: async function() {
|
|
@@ -9461,44 +9641,44 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9461
9641
|
const schema2 = _.cloneDeep(EventSchema);
|
|
9462
9642
|
if (handlerType) {
|
|
9463
9643
|
if (handlerType === "custom") {
|
|
9464
|
-
uiSchema.elements[
|
|
9465
|
-
uiSchema.elements[
|
|
9644
|
+
uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
|
|
9645
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9466
9646
|
type: "Control",
|
|
9467
9647
|
scope: "#/properties/emptyBox",
|
|
9468
9648
|
options: {
|
|
9469
9649
|
widget: "EmptyBox"
|
|
9470
9650
|
},
|
|
9471
9651
|
config: {
|
|
9472
|
-
layout: { xs:
|
|
9652
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9473
9653
|
main: {},
|
|
9474
9654
|
style: {}
|
|
9475
9655
|
}
|
|
9476
9656
|
};
|
|
9477
|
-
uiSchema.elements[
|
|
9657
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
|
|
9478
9658
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9479
9659
|
} else if (handlerType === "api") {
|
|
9480
|
-
uiSchema.elements[
|
|
9481
|
-
uiSchema.elements[
|
|
9660
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs: 0, sm: 0, md: 4, lg: 6 });
|
|
9661
|
+
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9482
9662
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9483
9663
|
} else if (handlerType === "inBuiltFunction") {
|
|
9484
|
-
uiSchema.elements[
|
|
9485
|
-
uiSchema.elements[
|
|
9664
|
+
uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
|
|
9665
|
+
uiSchema.elements[0].elements[0].elements[3] = {
|
|
9486
9666
|
type: "Control",
|
|
9487
9667
|
scope: "#/properties/emptyBox",
|
|
9488
9668
|
options: {
|
|
9489
9669
|
widget: "EmptyBox"
|
|
9490
9670
|
},
|
|
9491
9671
|
config: {
|
|
9492
|
-
layout: { xs: 6, sm: 6, md: 0, lg:
|
|
9672
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
9493
9673
|
main: {},
|
|
9494
9674
|
style: {}
|
|
9495
9675
|
}
|
|
9496
9676
|
};
|
|
9497
|
-
uiSchema.elements[
|
|
9677
|
+
uiSchema.elements[0].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
|
|
9498
9678
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9499
9679
|
} else if (handlerType === "refresh") {
|
|
9500
|
-
uiSchema.elements[
|
|
9501
|
-
uiSchema.elements[
|
|
9680
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs: 0, sm: 0, md: 4, lg: 6 });
|
|
9681
|
+
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9502
9682
|
schema2.properties.refreshElements.required = ["value"];
|
|
9503
9683
|
schema2.properties.refreshElements.items.required = ["value"];
|
|
9504
9684
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
@@ -11554,6 +11734,18 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
11554
11734
|
}
|
|
11555
11735
|
return Radio;
|
|
11556
11736
|
};
|
|
11737
|
+
var emptyBox = {
|
|
11738
|
+
type: "Control",
|
|
11739
|
+
scope: "#/properties/emptyBox",
|
|
11740
|
+
options: {
|
|
11741
|
+
widget: "EmptyBox"
|
|
11742
|
+
},
|
|
11743
|
+
config: {
|
|
11744
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
11745
|
+
main: {},
|
|
11746
|
+
style: {}
|
|
11747
|
+
}
|
|
11748
|
+
};
|
|
11557
11749
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
11558
11750
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11559
11751
|
if (config2.layout) {
|
|
@@ -12231,19 +12423,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12231
12423
|
});
|
|
12232
12424
|
} else if (config2.type == "Table") {
|
|
12233
12425
|
const sizeMap = {};
|
|
12234
|
-
const filterMap = {};
|
|
12235
12426
|
if (config2.sizeHolder) {
|
|
12236
12427
|
config2.sizeHolder.map((e, i) => {
|
|
12237
12428
|
sizeMap[e.keyName] = e.value;
|
|
12238
12429
|
});
|
|
12239
12430
|
}
|
|
12240
|
-
if (config2.enableColumnFilter) {
|
|
12241
|
-
config2.enableColumnFilter.map((e) => {
|
|
12242
|
-
filterMap[e.keyName] = true;
|
|
12243
|
-
});
|
|
12244
|
-
}
|
|
12245
12431
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12246
|
-
var _a, _b;
|
|
12247
12432
|
if (cellElem.type) {
|
|
12248
12433
|
return {
|
|
12249
12434
|
accessorKey: cellElem.name,
|
|
@@ -12252,8 +12437,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12252
12437
|
type: cellElem.columnFormat,
|
|
12253
12438
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12254
12439
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12255
|
-
|
|
12256
|
-
|
|
12440
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12441
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false
|
|
12257
12442
|
};
|
|
12258
12443
|
} else {
|
|
12259
12444
|
return {
|
|
@@ -12261,8 +12446,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12261
12446
|
type: cellElem.columnFormat,
|
|
12262
12447
|
header: cellElem.label || cellElem.name,
|
|
12263
12448
|
size: sizeMap[cellElem.name] || 180,
|
|
12264
|
-
|
|
12265
|
-
|
|
12449
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12450
|
+
enableColumnFilter: cellElem.enableFilter === "Yes" ? true : false
|
|
12266
12451
|
};
|
|
12267
12452
|
}
|
|
12268
12453
|
});
|