impaktapps-ui-builder 1.0.200 → 1.0.202
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 +1125 -525
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +13 -13
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -197
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -5
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +3 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +22 -14
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +32 -16
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -43
- package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
- package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +4 -3
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +41 -3
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +242 -25
- package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -188
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +22 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +96 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +3 -4
- package/src/impaktapps-ui-builder/builder/services/component.ts +150 -107
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -1
- package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +6 -7
- package/src/impaktapps-ui-builder/runtime/services/service.ts +34 -5
- package/dist/src/impaktapps-ui-builder/builder/build/buildDataCard.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dataCard.d.ts +0 -320
- package/src/impaktapps-ui-builder/builder/build/buildDataCard.tsx +0 -44
- package/src/impaktapps-ui-builder/builder/build/uischema/dataCard.ts +0 -207
|
@@ -96,6 +96,22 @@ const PageMasterUiSchema = (theme) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
type: "Control",
|
|
101
|
+
scope: "#/properties/pageIconUrl",
|
|
102
|
+
options: {
|
|
103
|
+
widget: "InputField"
|
|
104
|
+
},
|
|
105
|
+
config: {
|
|
106
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
107
|
+
main: {
|
|
108
|
+
label: "Page Icon URL",
|
|
109
|
+
options: [],
|
|
110
|
+
color: "secondary",
|
|
111
|
+
required: true
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
99
115
|
{
|
|
100
116
|
type: "Control",
|
|
101
117
|
scope: "#/properties/hasBackIcon",
|
|
@@ -6223,8 +6239,11 @@ const ComponentSchema = {
|
|
|
6223
6239
|
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
6224
6240
|
{ title: "Array", const: "Array" },
|
|
6225
6241
|
{ title: "Button", const: "Button" },
|
|
6242
|
+
{ title: "ButtonGroup", const: "ButtonGroup" },
|
|
6226
6243
|
{ title: "Data Card", const: "card" },
|
|
6227
6244
|
{ title: "Check Box", const: "CheckBox" },
|
|
6245
|
+
{ title: "Camera", const: "Camera" },
|
|
6246
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6228
6247
|
{ title: "Container", const: "WrapperSection" },
|
|
6229
6248
|
{ title: "Tab Container", const: "HorizontalLayout" },
|
|
6230
6249
|
{ title: "Data Grid", const: "DataGrid" },
|
|
@@ -6239,8 +6258,10 @@ const ComponentSchema = {
|
|
|
6239
6258
|
{ title: "Label", const: "Box" },
|
|
6240
6259
|
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6241
6260
|
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6261
|
+
{ title: "OTP_Input", const: "OTP_Input" },
|
|
6242
6262
|
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6243
6263
|
{ title: "Pop Up", const: "PopUp" },
|
|
6264
|
+
{ title: "Pop Over", const: "PopOver" },
|
|
6244
6265
|
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6245
6266
|
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6246
6267
|
{ title: "Dropdown", const: "Select" },
|
|
@@ -6250,6 +6271,8 @@ const ComponentSchema = {
|
|
|
6250
6271
|
{ title: "Radio", const: "Radio" },
|
|
6251
6272
|
{ title: "Rank", const: "Rank" },
|
|
6252
6273
|
{ title: "Rank Card", const: "RankCard" },
|
|
6274
|
+
{ title: "Metric Card", const: "MetricCard" },
|
|
6275
|
+
{ title: "Hierarchy Chart", const: "HierarchyChart" },
|
|
6253
6276
|
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6254
6277
|
{ title: "Table", const: "Table" },
|
|
6255
6278
|
{ title: "Tabs", const: "TabSection" },
|
|
@@ -6258,8 +6281,8 @@ const ComponentSchema = {
|
|
|
6258
6281
|
{ title: "Timer", const: "Timer" },
|
|
6259
6282
|
{ title: "Upload", const: "UploadFile" },
|
|
6260
6283
|
{ title: "Tree ", const: "TreeMap" },
|
|
6261
|
-
{ title: "
|
|
6262
|
-
{ title: "
|
|
6284
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6285
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6263
6286
|
]
|
|
6264
6287
|
},
|
|
6265
6288
|
elementType: {
|
|
@@ -6313,6 +6336,55 @@ const ComponentSchema = {
|
|
|
6313
6336
|
{ title: "Standard", const: "standard" }
|
|
6314
6337
|
]
|
|
6315
6338
|
},
|
|
6339
|
+
linkType: {
|
|
6340
|
+
oneOf: [
|
|
6341
|
+
{ title: "Step", const: "step" },
|
|
6342
|
+
{ title: "Diagonal", const: "diagonal" },
|
|
6343
|
+
{ title: "Line", const: "line" }
|
|
6344
|
+
]
|
|
6345
|
+
},
|
|
6346
|
+
positionVertical: {
|
|
6347
|
+
oneOf: [
|
|
6348
|
+
{ title: "Top", const: "top" },
|
|
6349
|
+
{ title: "Center", const: "center" },
|
|
6350
|
+
{ title: "Bottom", const: "bottom" }
|
|
6351
|
+
]
|
|
6352
|
+
},
|
|
6353
|
+
positionHorizontal: {
|
|
6354
|
+
oneOf: [
|
|
6355
|
+
{ title: "Left", const: "left" },
|
|
6356
|
+
{ title: "Center", const: "center" },
|
|
6357
|
+
{ title: "Right", const: "right" }
|
|
6358
|
+
]
|
|
6359
|
+
},
|
|
6360
|
+
contentVertical: {
|
|
6361
|
+
oneOf: [
|
|
6362
|
+
{ title: "Top", const: "top" },
|
|
6363
|
+
{ title: "Center", const: "center" },
|
|
6364
|
+
{ title: "Bottom", const: "bottom" }
|
|
6365
|
+
]
|
|
6366
|
+
},
|
|
6367
|
+
contentHorizontal: {
|
|
6368
|
+
oneOf: [
|
|
6369
|
+
{ title: "Left", const: "left" },
|
|
6370
|
+
{ title: "Center", const: "center" },
|
|
6371
|
+
{ title: "Right", const: "right" }
|
|
6372
|
+
]
|
|
6373
|
+
},
|
|
6374
|
+
toolTipPosition: {
|
|
6375
|
+
oneOf: [
|
|
6376
|
+
{ title: "Top", const: "top" },
|
|
6377
|
+
{ title: "Left", const: "left" },
|
|
6378
|
+
{ title: "Right", const: "right" },
|
|
6379
|
+
{ title: "Bottom", const: "bottom" }
|
|
6380
|
+
]
|
|
6381
|
+
},
|
|
6382
|
+
growthRate: {
|
|
6383
|
+
oneOf: [
|
|
6384
|
+
{ title: "Positive", const: "positive" },
|
|
6385
|
+
{ title: "Negative", const: "negative" }
|
|
6386
|
+
]
|
|
6387
|
+
},
|
|
6316
6388
|
orientation: {
|
|
6317
6389
|
oneOf: [
|
|
6318
6390
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -6347,6 +6419,21 @@ const ComponentSchema = {
|
|
|
6347
6419
|
{ title: "Spacious", const: "spacious" }
|
|
6348
6420
|
]
|
|
6349
6421
|
},
|
|
6422
|
+
xAxisFormatType: {
|
|
6423
|
+
type: "string",
|
|
6424
|
+
oneOf: [
|
|
6425
|
+
{ title: "Date and Month", const: "Date and Month" },
|
|
6426
|
+
{ title: "Month and Year", const: "Month and Year" }
|
|
6427
|
+
]
|
|
6428
|
+
},
|
|
6429
|
+
xAxisType: {
|
|
6430
|
+
type: "string",
|
|
6431
|
+
oneOf: [
|
|
6432
|
+
{ title: "Date", const: "date" },
|
|
6433
|
+
{ title: "String", const: "string" },
|
|
6434
|
+
{ title: "Number", const: "number" }
|
|
6435
|
+
]
|
|
6436
|
+
},
|
|
6350
6437
|
layout: {
|
|
6351
6438
|
type: "array",
|
|
6352
6439
|
items: {
|
|
@@ -6482,6 +6569,9 @@ const ComponentSchema = {
|
|
|
6482
6569
|
items: {
|
|
6483
6570
|
type: "object",
|
|
6484
6571
|
properties: {
|
|
6572
|
+
key: {
|
|
6573
|
+
type: "string"
|
|
6574
|
+
},
|
|
6485
6575
|
label: {
|
|
6486
6576
|
type: "string"
|
|
6487
6577
|
}
|
|
@@ -6493,12 +6583,26 @@ const ComponentSchema = {
|
|
|
6493
6583
|
items: {
|
|
6494
6584
|
type: "object",
|
|
6495
6585
|
properties: {
|
|
6586
|
+
key: {
|
|
6587
|
+
type: "string"
|
|
6588
|
+
},
|
|
6496
6589
|
label: {
|
|
6497
6590
|
type: "string"
|
|
6498
6591
|
}
|
|
6499
6592
|
}
|
|
6500
6593
|
}
|
|
6501
6594
|
},
|
|
6595
|
+
tabIcons: {
|
|
6596
|
+
type: "array",
|
|
6597
|
+
items: {
|
|
6598
|
+
type: "object",
|
|
6599
|
+
properties: {
|
|
6600
|
+
url: {
|
|
6601
|
+
type: "string"
|
|
6602
|
+
}
|
|
6603
|
+
}
|
|
6604
|
+
}
|
|
6605
|
+
},
|
|
6502
6606
|
InputFormatingAndMasking: {
|
|
6503
6607
|
type: "array",
|
|
6504
6608
|
items: {
|
|
@@ -6561,7 +6665,8 @@ const ComponentSchema = {
|
|
|
6561
6665
|
title: "Stack Horizontal Bar Graph",
|
|
6562
6666
|
const: "HorizontalStackBarGraph"
|
|
6563
6667
|
},
|
|
6564
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6668
|
+
{ title: "Area Graph", const: "AreaGraph" },
|
|
6669
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6565
6670
|
]
|
|
6566
6671
|
},
|
|
6567
6672
|
iconName: {
|
|
@@ -6597,6 +6702,7 @@ const ComponentSchema = {
|
|
|
6597
6702
|
{ title: "Drafts Icon", const: "DraftsIcon" },
|
|
6598
6703
|
{ title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
|
|
6599
6704
|
{ title: "Paste Icon", const: "PasteIcon" },
|
|
6705
|
+
{ title: "Calendar", const: "Calendar" },
|
|
6600
6706
|
{ title: "Prev Icon", const: "PrevIcon" },
|
|
6601
6707
|
{ title: "Verified Icon", const: "VerifiedIcon" },
|
|
6602
6708
|
{ title: "Table Add Icon", const: "TableAddIcon" },
|
|
@@ -6613,7 +6719,12 @@ const ComponentSchema = {
|
|
|
6613
6719
|
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6614
6720
|
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6615
6721
|
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
6616
|
-
{ title: "Payout", const: "Payout" }
|
|
6722
|
+
{ title: "Payout", const: "Payout" },
|
|
6723
|
+
{ title: "Info Outlined", const: "InfoOutlinedIcon" },
|
|
6724
|
+
{ title: "Territory Add", const: "TerritoryAdd" },
|
|
6725
|
+
{ title: "Territory Edit", const: "TerritoryEdit" },
|
|
6726
|
+
{ title: "Territory Delete", const: "TerritoryDelete" },
|
|
6727
|
+
{ title: "Git Compare", const: "GitCompare" }
|
|
6617
6728
|
]
|
|
6618
6729
|
},
|
|
6619
6730
|
color: {
|
|
@@ -7719,6 +7830,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7719
7830
|
]
|
|
7720
7831
|
};
|
|
7721
7832
|
};
|
|
7833
|
+
const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
|
|
7834
|
+
return {
|
|
7835
|
+
type: "Control",
|
|
7836
|
+
scope: `#/properties/${parentScope}`,
|
|
7837
|
+
options: {
|
|
7838
|
+
widget: "Array"
|
|
7839
|
+
},
|
|
7840
|
+
config: {
|
|
7841
|
+
layout: 12,
|
|
7842
|
+
main: {
|
|
7843
|
+
label: arrayLabel
|
|
7844
|
+
},
|
|
7845
|
+
style: {
|
|
7846
|
+
marginLeft: "-24px",
|
|
7847
|
+
marginBottom: "24px !important",
|
|
7848
|
+
labelStyle: {
|
|
7849
|
+
marginLeft: "24px"
|
|
7850
|
+
},
|
|
7851
|
+
detailsStyle: {
|
|
7852
|
+
marginLeft: "24px"
|
|
7853
|
+
}
|
|
7854
|
+
}
|
|
7855
|
+
},
|
|
7856
|
+
elements: [
|
|
7857
|
+
{
|
|
7858
|
+
type: "Control",
|
|
7859
|
+
scope: `#/properties/${firstFieldScope}`,
|
|
7860
|
+
options: {
|
|
7861
|
+
widget: "InputField"
|
|
7862
|
+
},
|
|
7863
|
+
config: {
|
|
7864
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7865
|
+
main: {
|
|
7866
|
+
label: firstFieldLabel || "Labels for Tab"
|
|
7867
|
+
}
|
|
7868
|
+
}
|
|
7869
|
+
},
|
|
7870
|
+
{
|
|
7871
|
+
type: "Control",
|
|
7872
|
+
scope: `#/properties/${secondFieldScope}`,
|
|
7873
|
+
options: {
|
|
7874
|
+
widget: "InputField"
|
|
7875
|
+
},
|
|
7876
|
+
config: {
|
|
7877
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7878
|
+
main: {
|
|
7879
|
+
label: secondFieldLabel || "Labels for Tab"
|
|
7880
|
+
}
|
|
7881
|
+
}
|
|
7882
|
+
},
|
|
7883
|
+
emptyBox$1("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7884
|
+
]
|
|
7885
|
+
};
|
|
7886
|
+
};
|
|
7722
7887
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7723
7888
|
sizeHolder.elements[1] = {
|
|
7724
7889
|
type: "Control",
|
|
@@ -7841,6 +8006,14 @@ const BaseSection = {
|
|
|
7841
8006
|
const buildPropertiesSection = function(type) {
|
|
7842
8007
|
let uiSchema = _.cloneDeep(BaseSection);
|
|
7843
8008
|
switch (type) {
|
|
8009
|
+
case "OTP_Input":
|
|
8010
|
+
uiSchema.elements = [
|
|
8011
|
+
getInputField("seperator", "Seperator"),
|
|
8012
|
+
getInputField("length", "OTP Length"),
|
|
8013
|
+
getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
|
|
8014
|
+
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
8015
|
+
];
|
|
8016
|
+
break;
|
|
7844
8017
|
case "Array":
|
|
7845
8018
|
uiSchema.elements = [
|
|
7846
8019
|
getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
|
|
@@ -7848,6 +8021,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7848
8021
|
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
7849
8022
|
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7850
8023
|
getInputField("childElementLabel", "Child Element Label"),
|
|
8024
|
+
getInputField("showKeyAsLabel", "ShowKey As Label"),
|
|
8025
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8026
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8027
|
+
getInputField("spacing", "Spacing"),
|
|
7851
8028
|
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7852
8029
|
];
|
|
7853
8030
|
break;
|
|
@@ -7901,12 +8078,26 @@ const buildPropertiesSection = function(type) {
|
|
|
7901
8078
|
emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7902
8079
|
];
|
|
7903
8080
|
break;
|
|
8081
|
+
case "PopOver":
|
|
8082
|
+
uiSchema.elements = [
|
|
8083
|
+
getSelectField("positionVertical", "Attach To (Vertical)"),
|
|
8084
|
+
getSelectField("positionHorizontal", "Attach To (Horizontal)"),
|
|
8085
|
+
getSelectField("contentVertical", "Popover Start (Vertical)"),
|
|
8086
|
+
getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
|
|
8087
|
+
getInputField("width", "Width"),
|
|
8088
|
+
getInputField("gap", "Gap"),
|
|
8089
|
+
emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
|
|
8090
|
+
];
|
|
8091
|
+
break;
|
|
7904
8092
|
case "Text":
|
|
7905
8093
|
uiSchema.elements = [
|
|
7906
8094
|
getInputField("placeholder", "Placeholder"),
|
|
7907
8095
|
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7908
8096
|
getSelectField("variant", "Variant"),
|
|
7909
|
-
|
|
8097
|
+
getInputField("toolTip", "Tooltip"),
|
|
8098
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8099
|
+
getSelectField("iconName", "Start Icon"),
|
|
8100
|
+
emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
|
|
7910
8101
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
7911
8102
|
getInputField("keyName", "Event Key Name")
|
|
7912
8103
|
];
|
|
@@ -7961,8 +8152,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7961
8152
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
7962
8153
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
7963
8154
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
7964
|
-
|
|
7965
|
-
|
|
8155
|
+
getInputField("size", "Size"),
|
|
8156
|
+
getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
|
|
8157
|
+
getArrayControl("pieArcColors", "color", "Color")
|
|
7966
8158
|
];
|
|
7967
8159
|
break;
|
|
7968
8160
|
case "card":
|
|
@@ -7974,14 +8166,26 @@ const buildPropertiesSection = function(type) {
|
|
|
7974
8166
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7975
8167
|
];
|
|
7976
8168
|
break;
|
|
7977
|
-
case "
|
|
8169
|
+
case "HierarchyChart":
|
|
8170
|
+
uiSchema.elements = [
|
|
8171
|
+
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8172
|
+
getSelectField("linkType", "Link Type"),
|
|
8173
|
+
getInputField("nodeWidth", "Node Width"),
|
|
8174
|
+
getInputField("nodeHeight", "Node Height"),
|
|
8175
|
+
getInputField("chartHeight", "Chart Height"),
|
|
8176
|
+
getInputField("stepPercent", "Link Bend Position"),
|
|
8177
|
+
emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8178
|
+
];
|
|
8179
|
+
break;
|
|
8180
|
+
case "MetricCard":
|
|
7978
8181
|
uiSchema.elements = [
|
|
7979
8182
|
getInputField("url", "Image Url"),
|
|
7980
8183
|
getInputField("label", "Label"),
|
|
8184
|
+
getInputField("cardValue", "Value"),
|
|
7981
8185
|
getInputField("description", "Description"),
|
|
7982
|
-
|
|
7983
|
-
getInputField("
|
|
7984
|
-
emptyBox$1("
|
|
8186
|
+
getSelectField("growthRate", "Growth Rate"),
|
|
8187
|
+
getInputField("color", "Card Color"),
|
|
8188
|
+
emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
7985
8189
|
];
|
|
7986
8190
|
break;
|
|
7987
8191
|
case "Button":
|
|
@@ -7994,6 +8198,14 @@ const buildPropertiesSection = function(type) {
|
|
|
7994
8198
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7995
8199
|
];
|
|
7996
8200
|
break;
|
|
8201
|
+
case "ButtonGroup":
|
|
8202
|
+
uiSchema.elements = [
|
|
8203
|
+
getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
|
|
8204
|
+
getInputField("size", "Size"),
|
|
8205
|
+
getSelectField("color", "Color"),
|
|
8206
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8207
|
+
];
|
|
8208
|
+
break;
|
|
7997
8209
|
case "Box":
|
|
7998
8210
|
uiSchema.elements = [
|
|
7999
8211
|
getSelectField("iconName", "Icon Name"),
|
|
@@ -8007,19 +8219,24 @@ const buildPropertiesSection = function(type) {
|
|
|
8007
8219
|
getInputField("subHeader", "Sub Header"),
|
|
8008
8220
|
getSelectField("graphType", "Graph Type"),
|
|
8009
8221
|
getInputField("leftLabel", "Left Label"),
|
|
8222
|
+
getInputField("rightLabel", "Right Label"),
|
|
8010
8223
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8011
8224
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8012
8225
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
8013
8226
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
8014
8227
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
8015
|
-
getInputField("yAxisValue", "Y-
|
|
8016
|
-
getInputField("xAxisValue", "X-
|
|
8228
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
8229
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
8230
|
+
getSelectField("xAxisType", "X-AxisType"),
|
|
8017
8231
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8018
8232
|
getInputField("leftMargin", "Left Margin"),
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8233
|
+
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8234
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8235
|
+
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8236
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
8237
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
8238
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
8239
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
|
|
8023
8240
|
];
|
|
8024
8241
|
break;
|
|
8025
8242
|
case "WrapperSection":
|
|
@@ -8027,8 +8244,12 @@ const buildPropertiesSection = function(type) {
|
|
|
8027
8244
|
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
8028
8245
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8029
8246
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8247
|
+
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8030
8248
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8031
|
-
|
|
8249
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8250
|
+
getInputField("spacing", "Spacing"),
|
|
8251
|
+
getInputField("iconUrl", "Icon Url"),
|
|
8252
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8032
8253
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8033
8254
|
];
|
|
8034
8255
|
break;
|
|
@@ -8037,7 +8258,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8037
8258
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
8038
8259
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
8039
8260
|
emptyBox$1("TabEmpty"),
|
|
8040
|
-
|
|
8261
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
8041
8262
|
];
|
|
8042
8263
|
break;
|
|
8043
8264
|
case "Table":
|
|
@@ -8063,7 +8284,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8063
8284
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8064
8285
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
8065
8286
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
8066
|
-
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
8067
8287
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
8068
8288
|
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8069
8289
|
,
|
|
@@ -8077,7 +8297,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8077
8297
|
case "Radio":
|
|
8078
8298
|
uiSchema.elements = [
|
|
8079
8299
|
getInputField("errorMessage", "Error Message"),
|
|
8080
|
-
|
|
8300
|
+
getInputField("toolTip", "Tooltip"),
|
|
8301
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8302
|
+
emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8081
8303
|
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
8082
8304
|
];
|
|
8083
8305
|
break;
|
|
@@ -8086,27 +8308,39 @@ const buildPropertiesSection = function(type) {
|
|
|
8086
8308
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8087
8309
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
8088
8310
|
getSelectField("variant", "Variant"),
|
|
8089
|
-
|
|
8311
|
+
getInputField("toolTip", "Tooltip"),
|
|
8312
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8313
|
+
emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8090
8314
|
];
|
|
8091
8315
|
break;
|
|
8092
8316
|
case "MultipleSelect":
|
|
8093
8317
|
uiSchema.elements = [
|
|
8094
8318
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8095
8319
|
getSelectField("variant", "Variant"),
|
|
8096
|
-
|
|
8097
|
-
|
|
8320
|
+
getInputField("toolTip", "Tooltip"),
|
|
8321
|
+
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8322
|
+
];
|
|
8323
|
+
break;
|
|
8324
|
+
case "PdfViewer":
|
|
8325
|
+
uiSchema.elements = [
|
|
8326
|
+
getInputField("scale", "Zoom"),
|
|
8327
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8098
8328
|
];
|
|
8099
8329
|
break;
|
|
8100
8330
|
case "Date":
|
|
8101
8331
|
uiSchema.elements = [
|
|
8102
8332
|
getSelectField("variant", "Variant"),
|
|
8103
|
-
|
|
8333
|
+
getInputField("toolTip", "Tooltip"),
|
|
8334
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8335
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8104
8336
|
];
|
|
8105
8337
|
break;
|
|
8106
8338
|
case "DateTime":
|
|
8107
8339
|
uiSchema.elements = [
|
|
8108
8340
|
getSelectField("variant", "Variant"),
|
|
8109
|
-
|
|
8341
|
+
getInputField("toolTip", "Tooltip"),
|
|
8342
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8343
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8110
8344
|
];
|
|
8111
8345
|
break;
|
|
8112
8346
|
case "Thought":
|
|
@@ -8118,6 +8352,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8118
8352
|
uiSchema.elements = [
|
|
8119
8353
|
getInputField("imageUrl", "Image URL"),
|
|
8120
8354
|
getInputField("height", "Image Height"),
|
|
8355
|
+
getInputField("toolTip", "Tooltip"),
|
|
8356
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8121
8357
|
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8122
8358
|
];
|
|
8123
8359
|
break;
|
|
@@ -8128,9 +8364,24 @@ const buildPropertiesSection = function(type) {
|
|
|
8128
8364
|
getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
|
|
8129
8365
|
getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
|
|
8130
8366
|
getInputField("description", "Enter description"),
|
|
8131
|
-
|
|
8367
|
+
getInputField("toolTip", "Tooltip"),
|
|
8368
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8369
|
+
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
8370
|
+
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8371
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8372
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8373
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8132
8374
|
];
|
|
8133
8375
|
break;
|
|
8376
|
+
case "Camera":
|
|
8377
|
+
uiSchema.elements = [
|
|
8378
|
+
getSelectField("iconName", "Icon Name"),
|
|
8379
|
+
getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
|
|
8380
|
+
getSelectField("color", "Color"),
|
|
8381
|
+
getInputField("tooltipMessage", "Tooltip Message"),
|
|
8382
|
+
getSelectField("variant", "Variant"),
|
|
8383
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
8384
|
+
];
|
|
8134
8385
|
}
|
|
8135
8386
|
return uiSchema;
|
|
8136
8387
|
};
|
|
@@ -8168,13 +8419,13 @@ const StyleSection = {
|
|
|
8168
8419
|
}
|
|
8169
8420
|
]
|
|
8170
8421
|
};
|
|
8171
|
-
const TableSection = (theme) => {
|
|
8422
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
8172
8423
|
const uiSchema = {
|
|
8173
8424
|
type: "HorizontalLayout",
|
|
8174
8425
|
elements: [
|
|
8175
8426
|
{
|
|
8176
8427
|
type: "Control",
|
|
8177
|
-
scope:
|
|
8428
|
+
scope: `#/properties/${scopeName}`,
|
|
8178
8429
|
options: {
|
|
8179
8430
|
widget: "Table"
|
|
8180
8431
|
},
|
|
@@ -8185,7 +8436,7 @@ const TableSection = (theme) => {
|
|
|
8185
8436
|
{
|
|
8186
8437
|
widget: {
|
|
8187
8438
|
type: "Control",
|
|
8188
|
-
scope:
|
|
8439
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
8189
8440
|
options: {
|
|
8190
8441
|
widget: "IconButton"
|
|
8191
8442
|
},
|
|
@@ -8212,7 +8463,7 @@ const TableSection = (theme) => {
|
|
|
8212
8463
|
{
|
|
8213
8464
|
widget: {
|
|
8214
8465
|
type: "Control",
|
|
8215
|
-
scope: "
|
|
8466
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8216
8467
|
options: {
|
|
8217
8468
|
widget: "IconButton"
|
|
8218
8469
|
},
|
|
@@ -8277,7 +8528,7 @@ const TableSection = (theme) => {
|
|
|
8277
8528
|
},
|
|
8278
8529
|
{
|
|
8279
8530
|
type: "Control",
|
|
8280
|
-
scope: "
|
|
8531
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8281
8532
|
options: {
|
|
8282
8533
|
widget: "Button"
|
|
8283
8534
|
},
|
|
@@ -8470,12 +8721,16 @@ var buildConfig = (FormData) => {
|
|
|
8470
8721
|
if (formData.events) {
|
|
8471
8722
|
delete formData.events;
|
|
8472
8723
|
}
|
|
8724
|
+
if (formData.tabLabelElements) {
|
|
8725
|
+
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8726
|
+
delete formData.tabLabelElements;
|
|
8727
|
+
}
|
|
8473
8728
|
component = { ...formData, ...component };
|
|
8474
8729
|
return component;
|
|
8475
8730
|
};
|
|
8476
8731
|
const createLayoutFormat = (layout, type) => {
|
|
8477
8732
|
if (_.isEmpty(layout)) {
|
|
8478
|
-
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout"];
|
|
8733
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
|
|
8479
8734
|
if (fullLayoutComponents.includes(type)) {
|
|
8480
8735
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8481
8736
|
} else if (type === "Graph") {
|
|
@@ -8502,9 +8757,27 @@ const flatObjectValueInArray = (config2 = []) => {
|
|
|
8502
8757
|
});
|
|
8503
8758
|
return data;
|
|
8504
8759
|
};
|
|
8760
|
+
const createKeyValueMap = (config2 = []) => {
|
|
8761
|
+
return config2.reduce((acc, item) => {
|
|
8762
|
+
if (!item.key)
|
|
8763
|
+
return acc;
|
|
8764
|
+
acc[item.key] = item.value;
|
|
8765
|
+
return acc;
|
|
8766
|
+
}, {});
|
|
8767
|
+
};
|
|
8505
8768
|
const clearFromSessionStorage = () => {
|
|
8506
8769
|
sessionStorage.removeItem("pageFormdata");
|
|
8507
8770
|
};
|
|
8771
|
+
const validateAndShowErrors = (store2) => {
|
|
8772
|
+
if (_.isEmpty(store2.ctx.core.errors))
|
|
8773
|
+
return false;
|
|
8774
|
+
store2.setValidation("ValidateAndShow");
|
|
8775
|
+
store2.setNotify({
|
|
8776
|
+
Fail: true,
|
|
8777
|
+
FailMessage: "Error on Page"
|
|
8778
|
+
});
|
|
8779
|
+
return true;
|
|
8780
|
+
};
|
|
8508
8781
|
const getNavigationHistory = (config2, path) => {
|
|
8509
8782
|
if (path) {
|
|
8510
8783
|
let urlRoutes = config2.name;
|
|
@@ -8563,11 +8836,13 @@ async function saveHandler(store2, service2, submitHandler) {
|
|
|
8563
8836
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8564
8837
|
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8565
8838
|
} catch (err) {
|
|
8566
|
-
navigateHandler(store2, false);
|
|
8839
|
+
navigateHandler(store2, false, void 0, err.message);
|
|
8567
8840
|
}
|
|
8841
|
+
} else {
|
|
8842
|
+
navigateHandler(store2, false);
|
|
8568
8843
|
}
|
|
8569
8844
|
}
|
|
8570
|
-
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
8845
|
+
const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
|
|
8571
8846
|
if (isSubmitted) {
|
|
8572
8847
|
sessionStorage.removeItem("pageFormdata");
|
|
8573
8848
|
store2.navigate(pageName || -1);
|
|
@@ -8579,7 +8854,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
|
8579
8854
|
store2.setValidation("ValidateAndShow");
|
|
8580
8855
|
store2.setNotify({
|
|
8581
8856
|
Fail: true,
|
|
8582
|
-
FailMessage: "Errors on Page"
|
|
8857
|
+
FailMessage: errorMessage || "Errors on Page"
|
|
8583
8858
|
});
|
|
8584
8859
|
}
|
|
8585
8860
|
};
|
|
@@ -8604,39 +8879,47 @@ function okHandler(store2) {
|
|
|
8604
8879
|
const sectionLabels = {
|
|
8605
8880
|
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8606
8881
|
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8607
|
-
Table: ["Core", "Components", "Properties", "Events", "Style"
|
|
8608
|
-
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"
|
|
8609
|
-
WrapperSection: ["Core", "Components", "Properties", "Style"
|
|
8610
|
-
HorizontalLayout: ["Core", "Components", "Properties", "Style"
|
|
8611
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8612
|
-
SpeedoMeter: ["Core", "Properties", "Events", "Style"
|
|
8882
|
+
Table: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8883
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8884
|
+
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8885
|
+
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8886
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8887
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8613
8888
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8614
8889
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8615
8890
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8616
8891
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8617
8892
|
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8618
8893
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8619
|
-
ProgressBarCard: ["Core", "Properties", "Events", "Style"
|
|
8620
|
-
|
|
8894
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8895
|
+
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8896
|
+
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8897
|
+
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8898
|
+
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8621
8899
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8622
|
-
Timer: ["Core", "Events", "Style"
|
|
8623
|
-
Rank: ["Core", "Events", "Style"
|
|
8900
|
+
Timer: ["Core", "Events", "Style"],
|
|
8901
|
+
Rank: ["Core", "Events", "Style"],
|
|
8624
8902
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8625
|
-
|
|
8903
|
+
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8904
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8626
8905
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8627
8906
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8628
8907
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8629
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8908
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8909
|
+
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8910
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8630
8911
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8631
8912
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8632
8913
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8633
8914
|
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8634
8915
|
ColumnGroup: ["Core", "Components"],
|
|
8635
|
-
Thought: ["Core", "Properties", "Events", "Style"
|
|
8916
|
+
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8636
8917
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8637
8918
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8638
|
-
Image: ["Core", "Properties", "Style"],
|
|
8639
|
-
FileInput: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8919
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8920
|
+
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8921
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8922
|
+
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8640
8923
|
};
|
|
8641
8924
|
function refreshPage(type, store2) {
|
|
8642
8925
|
var _a, _b;
|
|
@@ -8649,6 +8932,7 @@ function refreshPage(type, store2) {
|
|
|
8649
8932
|
Style: StyleSection,
|
|
8650
8933
|
Events: EventSection(store2.theme.myTheme),
|
|
8651
8934
|
Components: TableSection(store2.theme.myTheme),
|
|
8935
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8652
8936
|
Properties: buildPropertiesSection(type),
|
|
8653
8937
|
Validation: ValidationSection
|
|
8654
8938
|
};
|
|
@@ -8839,13 +9123,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8839
9123
|
},
|
|
8840
9124
|
editComponents: function() {
|
|
8841
9125
|
var _a, _b, _c;
|
|
9126
|
+
if (validateAndShowErrors(store2))
|
|
9127
|
+
return;
|
|
8842
9128
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8843
9129
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8844
9130
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8845
9131
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8846
9132
|
if (path) {
|
|
8847
|
-
|
|
8848
|
-
|
|
9133
|
+
let finalPath = `${path}`;
|
|
9134
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
|
|
9135
|
+
finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
|
|
9136
|
+
} else {
|
|
9137
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9138
|
+
}
|
|
8849
9139
|
store2.searchParams.set("path", finalPath);
|
|
8850
9140
|
store2.setSearchParams(store2.searchParams);
|
|
8851
9141
|
this.setPage();
|
|
@@ -8857,7 +9147,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8857
9147
|
var _a;
|
|
8858
9148
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8859
9149
|
const rowId = sessionStorage.getItem("rowId");
|
|
8860
|
-
|
|
9150
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9151
|
+
if (isTabLabelElements) {
|
|
9152
|
+
store2.formData.tabLabelElements.splice(rowId, 1);
|
|
9153
|
+
} else {
|
|
9154
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9155
|
+
}
|
|
8861
9156
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8862
9157
|
const data = path ? _.get(response, path) : response;
|
|
8863
9158
|
store2.setFormdata(data);
|
|
@@ -8865,6 +9160,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8865
9160
|
store2.updateDialog("popUpComponentSection");
|
|
8866
9161
|
}
|
|
8867
9162
|
sessionStorage.removeItem("rowId");
|
|
9163
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
8868
9164
|
},
|
|
8869
9165
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8870
9166
|
var _a;
|
|
@@ -8880,18 +9176,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8880
9176
|
},
|
|
8881
9177
|
widgetAddClickHandler: function() {
|
|
8882
9178
|
var _a;
|
|
9179
|
+
if (validateAndShowErrors(store2))
|
|
9180
|
+
return;
|
|
8883
9181
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8884
9182
|
store2.formData.elements = [];
|
|
8885
9183
|
}
|
|
9184
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9185
|
+
store2.formData.tabLabelElements = [];
|
|
9186
|
+
}
|
|
8886
9187
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8887
9188
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8888
|
-
|
|
9189
|
+
let finalPath = `${path}`;
|
|
9190
|
+
if (dynamicData2.path.startsWith("tabLabel")) {
|
|
9191
|
+
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9192
|
+
} else {
|
|
9193
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9194
|
+
}
|
|
8889
9195
|
store2.searchParams.set("path", finalPath);
|
|
8890
9196
|
store2.setSearchParams(store2.searchParams);
|
|
8891
9197
|
this.setPage();
|
|
8892
9198
|
},
|
|
8893
9199
|
eventEditHandler: function() {
|
|
8894
9200
|
var _a, _b;
|
|
9201
|
+
if (validateAndShowErrors(store2))
|
|
9202
|
+
return;
|
|
8895
9203
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8896
9204
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8897
9205
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8901,6 +9209,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8901
9209
|
},
|
|
8902
9210
|
eventAddHandler: function() {
|
|
8903
9211
|
var _a, _b;
|
|
9212
|
+
if (validateAndShowErrors(store2))
|
|
9213
|
+
return;
|
|
8904
9214
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8905
9215
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8906
9216
|
if (!Array.isArray(store2.formData.events)) {
|
|
@@ -8916,6 +9226,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8916
9226
|
deletePopUpComponent: function() {
|
|
8917
9227
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8918
9228
|
sessionStorage.setItem("rowId", rowId);
|
|
9229
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
8919
9230
|
store2.updateDialog("popUpComponentSection");
|
|
8920
9231
|
},
|
|
8921
9232
|
deletePopUpEvent: function() {
|
|
@@ -8962,9 +9273,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8962
9273
|
if (!Array.isArray(store2.formData.events)) {
|
|
8963
9274
|
store2.formData.events = [];
|
|
8964
9275
|
}
|
|
9276
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9277
|
+
store2.formData.tabLabelElements = [];
|
|
9278
|
+
}
|
|
8965
9279
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8966
9280
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8967
|
-
const
|
|
9281
|
+
const currentLength = {
|
|
9282
|
+
"TabsComponent": formData.tabLabelElements.length,
|
|
9283
|
+
"Component": formData.elements.length,
|
|
9284
|
+
"Events": formData.events.length
|
|
9285
|
+
};
|
|
9286
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
8968
9287
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8969
9288
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8970
9289
|
const notificationMessages = {
|
|
@@ -8999,6 +9318,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8999
9318
|
if (elementType === "Component") {
|
|
9000
9319
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9001
9320
|
}
|
|
9321
|
+
if (elementType === "TabsComponent") {
|
|
9322
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9323
|
+
}
|
|
9002
9324
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9003
9325
|
},
|
|
9004
9326
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -9074,6 +9396,8 @@ var pageMaster = (funcParams) => {
|
|
|
9074
9396
|
},
|
|
9075
9397
|
onAddClickHandler: function() {
|
|
9076
9398
|
var _a;
|
|
9399
|
+
if (validateAndShowErrors(store2))
|
|
9400
|
+
return;
|
|
9077
9401
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9078
9402
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9079
9403
|
store2.formData.elements = [];
|
|
@@ -9097,6 +9421,8 @@ var pageMaster = (funcParams) => {
|
|
|
9097
9421
|
},
|
|
9098
9422
|
eventAddHandler: function() {
|
|
9099
9423
|
var _a;
|
|
9424
|
+
if (validateAndShowErrors(store2))
|
|
9425
|
+
return;
|
|
9100
9426
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9101
9427
|
if (!Array.isArray(store2.formData.events)) {
|
|
9102
9428
|
store2.formData.events = [];
|
|
@@ -9107,6 +9433,8 @@ var pageMaster = (funcParams) => {
|
|
|
9107
9433
|
},
|
|
9108
9434
|
editEvent: function() {
|
|
9109
9435
|
var _a;
|
|
9436
|
+
if (validateAndShowErrors(store2))
|
|
9437
|
+
return;
|
|
9110
9438
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9111
9439
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9112
9440
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
@@ -9194,7 +9522,10 @@ const EventSchema = {
|
|
|
9194
9522
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9195
9523
|
{ title: "Download", const: "onDownload" },
|
|
9196
9524
|
{ title: "Fail", const: "Fail" },
|
|
9197
|
-
{ title: "
|
|
9525
|
+
{ title: "onClose", const: "onClose" },
|
|
9526
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9527
|
+
{ title: "Set Style", const: "setStyle" },
|
|
9528
|
+
{ title: "Expand Node", const: "onNodeExpandChange" }
|
|
9198
9529
|
]
|
|
9199
9530
|
},
|
|
9200
9531
|
Handler: {
|
|
@@ -10086,6 +10417,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10086
10417
|
},
|
|
10087
10418
|
addEvent: function() {
|
|
10088
10419
|
var _a, _b, _c;
|
|
10420
|
+
if (validateAndShowErrors(store2))
|
|
10421
|
+
return;
|
|
10089
10422
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10090
10423
|
if (!Array.isArray(store2.formData.events)) {
|
|
10091
10424
|
store2.formData.events = [];
|
|
@@ -10098,6 +10431,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10098
10431
|
},
|
|
10099
10432
|
editEvent: function() {
|
|
10100
10433
|
var _a;
|
|
10434
|
+
if (validateAndShowErrors(store2))
|
|
10435
|
+
return;
|
|
10101
10436
|
const rowId = dynamicData2.path.split(".")[1];
|
|
10102
10437
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10103
10438
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
@@ -10175,15 +10510,14 @@ function downloadFile$1({ data, name }) {
|
|
|
10175
10510
|
URL.revokeObjectURL(url);
|
|
10176
10511
|
}
|
|
10177
10512
|
const downloadFileFromUrl = (response, service2) => {
|
|
10178
|
-
let url =
|
|
10513
|
+
let url = new URL(response.path, service2.defaults.baseURL);
|
|
10179
10514
|
if (response == null ? void 0 : response.params) {
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
url = url + `${i === 0 ? "?" : "&"}${e}=${response == null ? void 0 : response.params[e]}`;
|
|
10515
|
+
Object.keys(response.params).forEach((key) => {
|
|
10516
|
+
url.searchParams.append(key, response.params[key]);
|
|
10183
10517
|
});
|
|
10184
10518
|
}
|
|
10185
10519
|
const link = document.createElement("a");
|
|
10186
|
-
link.href = url;
|
|
10520
|
+
link.href = url.toString();
|
|
10187
10521
|
document.body.appendChild(link);
|
|
10188
10522
|
link.click();
|
|
10189
10523
|
link.parentNode.removeChild(link);
|
|
@@ -10516,7 +10850,7 @@ var service = (funcParams) => {
|
|
|
10516
10850
|
dynamicData: funcParams.dynamicData,
|
|
10517
10851
|
userValue: funcParams.userValue,
|
|
10518
10852
|
service: funcParams.service,
|
|
10519
|
-
serviceHolder: { downloadFile: downloadFile$1,
|
|
10853
|
+
serviceHolder: { downloadFile: downloadFile$1, downloadFileFromUrl, ...funcParams.functionsProvider },
|
|
10520
10854
|
eventGroups,
|
|
10521
10855
|
functionsProvider: funcParams.functionsProvider,
|
|
10522
10856
|
formDataHolder
|
|
@@ -10533,7 +10867,7 @@ var service = (funcParams) => {
|
|
|
10533
10867
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10534
10868
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10535
10869
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10536
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10870
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10537
10871
|
});
|
|
10538
10872
|
window.dispatchEvent(event2);
|
|
10539
10873
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10576,6 +10910,25 @@ var service = (funcParams) => {
|
|
|
10576
10910
|
funcParams.store.setUiSchema(uiSchema);
|
|
10577
10911
|
});
|
|
10578
10912
|
},
|
|
10913
|
+
getStyle: () => {
|
|
10914
|
+
var _a, _b, _c, _d;
|
|
10915
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10916
|
+
if (cloneEventGroup.setStyle) {
|
|
10917
|
+
let finalResponse = {};
|
|
10918
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10919
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10920
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10921
|
+
finalResponse = executeEvents({
|
|
10922
|
+
...executeEventsParameters,
|
|
10923
|
+
config: eventConfig,
|
|
10924
|
+
componentName: path
|
|
10925
|
+
});
|
|
10926
|
+
}
|
|
10927
|
+
return finalResponse;
|
|
10928
|
+
}
|
|
10929
|
+
}
|
|
10930
|
+
return {};
|
|
10931
|
+
},
|
|
10579
10932
|
onCellRenderer: (cellParams) => {
|
|
10580
10933
|
var _a, _b, _c, _d, _e;
|
|
10581
10934
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10605,6 +10958,9 @@ var service = (funcParams) => {
|
|
|
10605
10958
|
onFileDelete: async function() {
|
|
10606
10959
|
this.callHandler("onFileDelete");
|
|
10607
10960
|
},
|
|
10961
|
+
onClose: function() {
|
|
10962
|
+
this.callHandler("onClose");
|
|
10963
|
+
},
|
|
10608
10964
|
onMount: function() {
|
|
10609
10965
|
this.callHandler("onMount");
|
|
10610
10966
|
},
|
|
@@ -10628,18 +10984,26 @@ var service = (funcParams) => {
|
|
|
10628
10984
|
return response == null ? void 0 : response.data;
|
|
10629
10985
|
},
|
|
10630
10986
|
onPaginationChange: async function(paginationValues) {
|
|
10631
|
-
var _a
|
|
10987
|
+
var _a;
|
|
10632
10988
|
const apiBody = [
|
|
10633
10989
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10634
10990
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10635
10991
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10636
10992
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10637
10993
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10638
|
-
{ key: "
|
|
10994
|
+
{ key: "parentIds", value: paginationValues.parentIds },
|
|
10995
|
+
{ key: "isExpandAll", value: paginationValues.isExpandAll }
|
|
10639
10996
|
];
|
|
10640
10997
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10641
10998
|
return response == null ? void 0 : response.data;
|
|
10642
10999
|
},
|
|
11000
|
+
onNodeExpandChange: async function(param) {
|
|
11001
|
+
const apiBody = [
|
|
11002
|
+
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
11003
|
+
];
|
|
11004
|
+
const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
|
|
11005
|
+
return response == null ? void 0 : response.data;
|
|
11006
|
+
},
|
|
10643
11007
|
getSelectOptions: async function(param) {
|
|
10644
11008
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10645
11009
|
const apiBody = [
|
|
@@ -10655,8 +11019,8 @@ var service = (funcParams) => {
|
|
|
10655
11019
|
return;
|
|
10656
11020
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10657
11021
|
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10658
|
-
var _a
|
|
10659
|
-
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]
|
|
11022
|
+
var _a;
|
|
11023
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
10660
11024
|
return [];
|
|
10661
11025
|
}
|
|
10662
11026
|
return eventGroups.onChange[componentName].map(
|
|
@@ -10856,6 +11220,15 @@ const buildProgressBar = (config2, componentScope2) => {
|
|
|
10856
11220
|
ProgressBar.config.layout = config2.layout;
|
|
10857
11221
|
}
|
|
10858
11222
|
ProgressBar.config.main.heading = config2.label;
|
|
11223
|
+
if (config2.variant) {
|
|
11224
|
+
ProgressBar.config.main.variant = config2.variant;
|
|
11225
|
+
}
|
|
11226
|
+
if (config2.pieArcColors) {
|
|
11227
|
+
ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
11228
|
+
}
|
|
11229
|
+
if (config2.size) {
|
|
11230
|
+
ProgressBar.config.main.size = Number(config2.size);
|
|
11231
|
+
}
|
|
10859
11232
|
if (config2.bottomLabel_3) {
|
|
10860
11233
|
ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10861
11234
|
}
|
|
@@ -10882,7 +11255,7 @@ const BarGraph = {
|
|
|
10882
11255
|
type: "BarGraph",
|
|
10883
11256
|
legendLabels: null
|
|
10884
11257
|
},
|
|
10885
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11258
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10886
11259
|
}
|
|
10887
11260
|
};
|
|
10888
11261
|
const PieGraph = {
|
|
@@ -10897,7 +11270,7 @@ const PieGraph = {
|
|
|
10897
11270
|
type: "PieGraph",
|
|
10898
11271
|
legendLabels: null
|
|
10899
11272
|
},
|
|
10900
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11273
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10901
11274
|
}
|
|
10902
11275
|
};
|
|
10903
11276
|
const LineGraph = {
|
|
@@ -10912,7 +11285,7 @@ const LineGraph = {
|
|
|
10912
11285
|
type: "LineGraph",
|
|
10913
11286
|
legendLabels: null
|
|
10914
11287
|
},
|
|
10915
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11288
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10916
11289
|
}
|
|
10917
11290
|
};
|
|
10918
11291
|
const HorizontalBarGraph = {
|
|
@@ -10927,7 +11300,37 @@ const HorizontalBarGraph = {
|
|
|
10927
11300
|
type: "HorizontalBarGraph",
|
|
10928
11301
|
legendLabels: null
|
|
10929
11302
|
},
|
|
10930
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11303
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11304
|
+
}
|
|
11305
|
+
};
|
|
11306
|
+
const AreaBarGraph = {
|
|
11307
|
+
type: "Control",
|
|
11308
|
+
scope: "#/properties/graph",
|
|
11309
|
+
options: {
|
|
11310
|
+
widget: "Graph"
|
|
11311
|
+
},
|
|
11312
|
+
config: {
|
|
11313
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11314
|
+
main: {
|
|
11315
|
+
type: "AreaGraph",
|
|
11316
|
+
legendLabels: null
|
|
11317
|
+
},
|
|
11318
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11319
|
+
}
|
|
11320
|
+
};
|
|
11321
|
+
const StackBarLineG = {
|
|
11322
|
+
type: "Control",
|
|
11323
|
+
scope: "#/properties/graph",
|
|
11324
|
+
options: {
|
|
11325
|
+
widget: "Graph"
|
|
11326
|
+
},
|
|
11327
|
+
config: {
|
|
11328
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11329
|
+
main: {
|
|
11330
|
+
type: "StackBarLineGraph",
|
|
11331
|
+
legendLabels: null
|
|
11332
|
+
},
|
|
11333
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10931
11334
|
}
|
|
10932
11335
|
};
|
|
10933
11336
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
@@ -10946,13 +11349,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10946
11349
|
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10947
11350
|
}
|
|
10948
11351
|
if (config2.legendLabels) {
|
|
10949
|
-
horizontalBarGraph.config.main.legendLabels =
|
|
11352
|
+
horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
10950
11353
|
}
|
|
10951
11354
|
if (config2.legendDirection) {
|
|
10952
11355
|
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
10953
11356
|
}
|
|
10954
11357
|
if (config2.pieArcColors) {
|
|
10955
|
-
horizontalBarGraph.config.style.
|
|
11358
|
+
horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10956
11359
|
}
|
|
10957
11360
|
if (config2.xAxisValue) {
|
|
10958
11361
|
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11086,13 +11489,13 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
11086
11489
|
pieGraph.scope = componentScope2;
|
|
11087
11490
|
pieGraph.config.main.header = config2.heading;
|
|
11088
11491
|
if (config2.legendLabels) {
|
|
11089
|
-
pieGraph.config.main.legendLabels =
|
|
11492
|
+
pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11090
11493
|
}
|
|
11091
11494
|
if (config2.xAxisValue) {
|
|
11092
11495
|
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11093
11496
|
}
|
|
11094
11497
|
if (config2.pieArcColors) {
|
|
11095
|
-
pieGraph.config.style.
|
|
11498
|
+
pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11096
11499
|
}
|
|
11097
11500
|
return pieGraph;
|
|
11098
11501
|
};
|
|
@@ -11115,10 +11518,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11115
11518
|
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
11116
11519
|
barGraph.config.main.header = config2.heading;
|
|
11117
11520
|
if (config2.legendLabels) {
|
|
11118
|
-
barGraph.config.main.legendLabels =
|
|
11521
|
+
barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11119
11522
|
}
|
|
11120
11523
|
if (config2.pieArcColors) {
|
|
11121
|
-
barGraph.config.style.
|
|
11524
|
+
barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11122
11525
|
}
|
|
11123
11526
|
if (config2.xAxisValue) {
|
|
11124
11527
|
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11184,6 +11587,7 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11184
11587
|
}
|
|
11185
11588
|
if (config2.sectionLabels) {
|
|
11186
11589
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11590
|
+
tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
|
|
11187
11591
|
}
|
|
11188
11592
|
if (config2.style) {
|
|
11189
11593
|
tab.config.style = JSON.parse(config2.style);
|
|
@@ -11196,9 +11600,11 @@ var WrapperSection = {
|
|
|
11196
11600
|
config: {
|
|
11197
11601
|
layout: 12,
|
|
11198
11602
|
main: {
|
|
11199
|
-
rowSpacing: 3,
|
|
11200
11603
|
divider: true,
|
|
11201
|
-
label: "Default Label"
|
|
11604
|
+
label: "Default Label",
|
|
11605
|
+
rowSpacing: 2,
|
|
11606
|
+
columnSpacing: 2,
|
|
11607
|
+
spacing: 2
|
|
11202
11608
|
},
|
|
11203
11609
|
defaultStyle: true
|
|
11204
11610
|
},
|
|
@@ -11210,6 +11616,11 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11210
11616
|
wrapper.config.main.label = config2.label;
|
|
11211
11617
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11212
11618
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11619
|
+
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11620
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11621
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11622
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11623
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11213
11624
|
if (config2.defaultStyle) {
|
|
11214
11625
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11215
11626
|
}
|
|
@@ -11259,6 +11670,15 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11259
11670
|
if (config2.layout) {
|
|
11260
11671
|
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11261
11672
|
}
|
|
11673
|
+
if (config2.toolTip) {
|
|
11674
|
+
inputField.config.main.toolTip = config2.toolTip;
|
|
11675
|
+
}
|
|
11676
|
+
if (config2.toolTipPosition) {
|
|
11677
|
+
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11678
|
+
}
|
|
11679
|
+
if (config2.iconName) {
|
|
11680
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11681
|
+
}
|
|
11262
11682
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11263
11683
|
inputField.scope = componentScope2;
|
|
11264
11684
|
return inputField;
|
|
@@ -11275,7 +11695,8 @@ var SelectInputField = {
|
|
|
11275
11695
|
label: "",
|
|
11276
11696
|
type: "text",
|
|
11277
11697
|
freeSole: false
|
|
11278
|
-
}
|
|
11698
|
+
},
|
|
11699
|
+
style: {}
|
|
11279
11700
|
}
|
|
11280
11701
|
};
|
|
11281
11702
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11296,6 +11717,15 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11296
11717
|
if (config2.layout) {
|
|
11297
11718
|
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11298
11719
|
}
|
|
11720
|
+
if (config2.toolTip) {
|
|
11721
|
+
selectInputField.config.main.toolTip = config2.toolTip;
|
|
11722
|
+
}
|
|
11723
|
+
if (config2.toolTipPosition) {
|
|
11724
|
+
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11725
|
+
}
|
|
11726
|
+
if (config2.style) {
|
|
11727
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11728
|
+
}
|
|
11299
11729
|
selectInputField.scope = componentScope2;
|
|
11300
11730
|
return selectInputField;
|
|
11301
11731
|
};
|
|
@@ -11403,9 +11833,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11403
11833
|
if (config2.paginateExpandedRows) {
|
|
11404
11834
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11405
11835
|
}
|
|
11406
|
-
if (config2.treeStructure) {
|
|
11407
|
-
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11408
|
-
}
|
|
11409
11836
|
if (config2.SelectionAvailable) {
|
|
11410
11837
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11411
11838
|
}
|
|
@@ -11454,6 +11881,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11454
11881
|
if (config2.initialDensity) {
|
|
11455
11882
|
table.config.main.initialDensity = config2.initialDensity;
|
|
11456
11883
|
}
|
|
11884
|
+
if (config2.layout) {
|
|
11885
|
+
table.config.layout = createLayoutFormat(config2.layout);
|
|
11886
|
+
}
|
|
11457
11887
|
return table;
|
|
11458
11888
|
};
|
|
11459
11889
|
const Box = {
|
|
@@ -11465,7 +11895,8 @@ const Box = {
|
|
|
11465
11895
|
config: {
|
|
11466
11896
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11467
11897
|
main: {
|
|
11468
|
-
iconName: ""
|
|
11898
|
+
iconName: "",
|
|
11899
|
+
onClick: "onClick"
|
|
11469
11900
|
},
|
|
11470
11901
|
style: {}
|
|
11471
11902
|
}
|
|
@@ -11534,6 +11965,12 @@ const buildUploadFile = (config2, componentScope2) => {
|
|
|
11534
11965
|
if (config2.required) {
|
|
11535
11966
|
UploadFile.config.main.required = true;
|
|
11536
11967
|
}
|
|
11968
|
+
if (config2.toolTip) {
|
|
11969
|
+
UploadFile.config.main.toolTip = config2.toolTip;
|
|
11970
|
+
}
|
|
11971
|
+
if (config2.toolTipPosition) {
|
|
11972
|
+
UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11973
|
+
}
|
|
11537
11974
|
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
11538
11975
|
return UploadFile;
|
|
11539
11976
|
};
|
|
@@ -11556,6 +11993,12 @@ const buildDownloadFile = (config2, componentScope2) => {
|
|
|
11556
11993
|
if (config2.errorMessage) {
|
|
11557
11994
|
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
11558
11995
|
}
|
|
11996
|
+
if (config2.toolTip) {
|
|
11997
|
+
DownloadFile.config.main.toolTip = config2.toolTip;
|
|
11998
|
+
}
|
|
11999
|
+
if (config2.toolTipPosition) {
|
|
12000
|
+
DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12001
|
+
}
|
|
11559
12002
|
return DownloadFile;
|
|
11560
12003
|
};
|
|
11561
12004
|
function Card(theme) {
|
|
@@ -11563,492 +12006,228 @@ function Card(theme) {
|
|
|
11563
12006
|
type: "WrapperLayout",
|
|
11564
12007
|
config: {
|
|
11565
12008
|
main: {},
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
12009
|
+
style: {
|
|
12010
|
+
wrapperStyle: {
|
|
12011
|
+
position: "relative",
|
|
12012
|
+
top: "50%",
|
|
12013
|
+
transform: "translateY(-50%)",
|
|
12014
|
+
marginBottom: 0,
|
|
12015
|
+
borderRadius: "12px",
|
|
12016
|
+
fontFamily: "poppins"
|
|
12017
|
+
},
|
|
12018
|
+
componentsBoxStyle: {
|
|
12019
|
+
boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
|
|
12020
|
+
flexDirection: "column",
|
|
12021
|
+
overflow: "hidden",
|
|
12022
|
+
flexWrap: "nowrap",
|
|
12023
|
+
width: "100% !important",
|
|
12024
|
+
background: "transparent",
|
|
12025
|
+
borderRadius: "12px",
|
|
12026
|
+
padding: "20px 20px 20px 14px",
|
|
12027
|
+
height: "100%",
|
|
12028
|
+
minHeight: "100px",
|
|
12029
|
+
position: "relative",
|
|
12030
|
+
marginLeft: "0px",
|
|
12031
|
+
"&: hover": {
|
|
12032
|
+
background: `${theme.palette.primary.main}`,
|
|
12033
|
+
color: `${theme.palette.primary.contrastText}`
|
|
11589
12034
|
}
|
|
11590
12035
|
}
|
|
11591
12036
|
},
|
|
11592
|
-
layout: { xs: 12, sm: 12, md:
|
|
12037
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 }
|
|
11593
12038
|
},
|
|
11594
12039
|
elements: [
|
|
11595
12040
|
{
|
|
11596
|
-
type: "
|
|
11597
|
-
|
|
11598
|
-
layout: 9
|
|
11599
|
-
},
|
|
11600
|
-
elements: [
|
|
11601
|
-
{
|
|
11602
|
-
type: "WrapperLayout",
|
|
11603
|
-
config: {
|
|
11604
|
-
main: {
|
|
11605
|
-
columnSpacing: 0,
|
|
11606
|
-
gap: 0
|
|
11607
|
-
},
|
|
11608
|
-
wrapperStyle: {
|
|
11609
|
-
background: "transparent",
|
|
11610
|
-
marginBottom: 0
|
|
11611
|
-
},
|
|
11612
|
-
componentsBoxStyle: {
|
|
11613
|
-
flexDirection: "column",
|
|
11614
|
-
flexWrap: "nowrap",
|
|
11615
|
-
width: "100%",
|
|
11616
|
-
height: "inherit",
|
|
11617
|
-
background: "transparent",
|
|
11618
|
-
borderRadius: "0px",
|
|
11619
|
-
paddingRight: 0
|
|
11620
|
-
},
|
|
11621
|
-
layout: 12
|
|
11622
|
-
},
|
|
11623
|
-
elements: [
|
|
11624
|
-
{
|
|
11625
|
-
type: "WrapperLayout",
|
|
11626
|
-
config: {
|
|
11627
|
-
main: {
|
|
11628
|
-
columnSpacing: 0,
|
|
11629
|
-
gap: 0
|
|
11630
|
-
},
|
|
11631
|
-
wrapperStyle: {
|
|
11632
|
-
background: "transparent",
|
|
11633
|
-
marginBottom: 0
|
|
11634
|
-
},
|
|
11635
|
-
componentsBoxStyle: {
|
|
11636
|
-
flexDirection: "row",
|
|
11637
|
-
flexWrap: "nowrap",
|
|
11638
|
-
width: "100%",
|
|
11639
|
-
height: "0",
|
|
11640
|
-
background: "transparent",
|
|
11641
|
-
borderRadius: "0px",
|
|
11642
|
-
marginLeft: "-10px",
|
|
11643
|
-
marginTop: "-8px",
|
|
11644
|
-
justifyContent: "start",
|
|
11645
|
-
position: "relative"
|
|
11646
|
-
},
|
|
11647
|
-
layout: 12
|
|
11648
|
-
},
|
|
11649
|
-
elements: [
|
|
11650
|
-
{
|
|
11651
|
-
type: "Control",
|
|
11652
|
-
scope: "#/properties/programType",
|
|
11653
|
-
config: {
|
|
11654
|
-
main: {
|
|
11655
|
-
heading: ""
|
|
11656
|
-
},
|
|
11657
|
-
style: {
|
|
11658
|
-
color: "black",
|
|
11659
|
-
display: "flex",
|
|
11660
|
-
fontSize: { xs: "24px", md: "28px" },
|
|
11661
|
-
fontWeight: "bold",
|
|
11662
|
-
background: "inherit",
|
|
11663
|
-
justifyContent: "flex-start",
|
|
11664
|
-
width: "auto",
|
|
11665
|
-
margin: "-8px",
|
|
11666
|
-
marginLeft: "-24px",
|
|
11667
|
-
height: 0
|
|
11668
|
-
}
|
|
11669
|
-
},
|
|
11670
|
-
options: {
|
|
11671
|
-
widget: "Box"
|
|
11672
|
-
}
|
|
11673
|
-
},
|
|
11674
|
-
{
|
|
11675
|
-
type: "Control",
|
|
11676
|
-
scope: "#/properties/programType",
|
|
11677
|
-
config: {
|
|
11678
|
-
main: {
|
|
11679
|
-
heading: "5000.00"
|
|
11680
|
-
},
|
|
11681
|
-
style: {
|
|
11682
|
-
color: "black",
|
|
11683
|
-
display: "flex",
|
|
11684
|
-
fontSize: { xs: "24px", md: "25px" },
|
|
11685
|
-
fontWeight: "bold",
|
|
11686
|
-
background: "inherit",
|
|
11687
|
-
justifyContent: "flex-start",
|
|
11688
|
-
width: "auto",
|
|
11689
|
-
margin: "-8px",
|
|
11690
|
-
marginTop: "-6px",
|
|
11691
|
-
position: "absolute",
|
|
11692
|
-
left: "7px",
|
|
11693
|
-
whiteSpace: "nowrap",
|
|
11694
|
-
overflowX: "auto",
|
|
11695
|
-
overflowY: "hidden",
|
|
11696
|
-
scrollbarWidth: "none",
|
|
11697
|
-
msOverflowStyle: "none",
|
|
11698
|
-
maxWidth: "calc(100% + 20px)",
|
|
11699
|
-
"&::-webkit-scrollbar": {
|
|
11700
|
-
display: "none"
|
|
11701
|
-
}
|
|
11702
|
-
}
|
|
11703
|
-
},
|
|
11704
|
-
options: {
|
|
11705
|
-
widget: "Box"
|
|
11706
|
-
}
|
|
11707
|
-
}
|
|
11708
|
-
]
|
|
11709
|
-
},
|
|
11710
|
-
{
|
|
11711
|
-
type: "Control",
|
|
11712
|
-
scope: "#/properties/programType",
|
|
11713
|
-
config: {
|
|
11714
|
-
main: {
|
|
11715
|
-
heading: "Total Earnings"
|
|
11716
|
-
},
|
|
11717
|
-
style: {
|
|
11718
|
-
color: "black",
|
|
11719
|
-
fontSize: "16px",
|
|
11720
|
-
justifyContent: "center",
|
|
11721
|
-
whiteSpace: "nowrap",
|
|
11722
|
-
overflowX: "auto",
|
|
11723
|
-
overflowY: "hidden",
|
|
11724
|
-
scrollbarWidth: "none",
|
|
11725
|
-
msOverflowStyle: "none",
|
|
11726
|
-
background: "inherit",
|
|
11727
|
-
width: "calc(100% + 8px)",
|
|
11728
|
-
margin: "-8px",
|
|
11729
|
-
marginTop: { xs: "16px", md: "20px" },
|
|
11730
|
-
"&::-webkit-scrollbar": {
|
|
11731
|
-
display: "none"
|
|
11732
|
-
}
|
|
11733
|
-
},
|
|
11734
|
-
layout: 12
|
|
11735
|
-
},
|
|
11736
|
-
options: {
|
|
11737
|
-
widget: "Box"
|
|
11738
|
-
}
|
|
11739
|
-
}
|
|
11740
|
-
]
|
|
11741
|
-
}
|
|
11742
|
-
]
|
|
11743
|
-
},
|
|
11744
|
-
{
|
|
11745
|
-
type: "Control",
|
|
11746
|
-
scope: "#/properties/programType",
|
|
12041
|
+
type: "Control",
|
|
12042
|
+
scope: "#/properties/initilCardScope",
|
|
11747
12043
|
config: {
|
|
11748
12044
|
main: {
|
|
11749
12045
|
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
11750
12046
|
},
|
|
11751
12047
|
style: {
|
|
11752
12048
|
containerStyle: {
|
|
11753
|
-
|
|
12049
|
+
position: "absolute",
|
|
12050
|
+
color: "inherit",
|
|
12051
|
+
top: "4px",
|
|
12052
|
+
right: "4px",
|
|
11754
12053
|
display: "flex",
|
|
11755
|
-
justifyContent: "end"
|
|
12054
|
+
justifyContent: "flex-end",
|
|
12055
|
+
alignItems: "flex-start"
|
|
11756
12056
|
},
|
|
11757
12057
|
imageStyle: {
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
12058
|
+
color: "inherit",
|
|
12059
|
+
width: "32px",
|
|
12060
|
+
height: "32px",
|
|
12061
|
+
padding: "0px",
|
|
12062
|
+
margin: "0px"
|
|
11763
12063
|
}
|
|
11764
|
-
}
|
|
11765
|
-
layout: 3
|
|
12064
|
+
}
|
|
11766
12065
|
},
|
|
11767
12066
|
options: {
|
|
11768
12067
|
widget: "Image"
|
|
11769
12068
|
}
|
|
11770
|
-
}
|
|
11771
|
-
]
|
|
11772
|
-
};
|
|
11773
|
-
return uiSchema;
|
|
11774
|
-
}
|
|
11775
|
-
const buildCard = (config, componentScope, store) => {
|
|
11776
|
-
const card = _.cloneDeep(Card(store.theme.myTheme));
|
|
11777
|
-
if (config.style) {
|
|
11778
|
-
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11779
|
-
}
|
|
11780
|
-
card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
|
|
11781
|
-
card.elements[1].scope = `#/properties/${config.name}/properties/url`;
|
|
11782
|
-
card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
|
|
11783
|
-
if (config.layout) {
|
|
11784
|
-
card.config.layout = createLayoutFormat(config.layout);
|
|
11785
|
-
}
|
|
11786
|
-
if (config == null ? void 0 : config.titleIcon) {
|
|
11787
|
-
card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
|
|
11788
|
-
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11789
|
-
}
|
|
11790
|
-
if (config.label) {
|
|
11791
|
-
card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
|
|
11792
|
-
}
|
|
11793
|
-
if (config.url) {
|
|
11794
|
-
card.elements[1].config.main.url = config.url;
|
|
11795
|
-
}
|
|
11796
|
-
if (config.description) {
|
|
11797
|
-
card.elements[0].elements[0].elements[1].config.main.heading = config.description;
|
|
11798
|
-
}
|
|
11799
|
-
return card;
|
|
11800
|
-
};
|
|
11801
|
-
function DataCard(theme) {
|
|
11802
|
-
const uiSchema = {
|
|
11803
|
-
type: "WrapperLayout",
|
|
11804
|
-
config: {
|
|
11805
|
-
main: {},
|
|
11806
|
-
style: {
|
|
11807
|
-
wrapperStyle: {
|
|
11808
|
-
position: "relative",
|
|
11809
|
-
top: "50%",
|
|
11810
|
-
transform: "translateY(-50%)",
|
|
11811
|
-
marginBottom: 0,
|
|
11812
|
-
borderRadius: "8px"
|
|
11813
|
-
},
|
|
11814
|
-
componentsBoxStyle: {
|
|
11815
|
-
boxShadow: "0px 2px 6px rgba(0, 0, 0, 0.06)",
|
|
11816
|
-
flexDirection: "column",
|
|
11817
|
-
overflow: "hidden",
|
|
11818
|
-
flexWrap: "nowrap",
|
|
11819
|
-
width: "90% !important",
|
|
11820
|
-
background: "#F9FAFB",
|
|
11821
|
-
border: "2px solid #E5E7EB",
|
|
11822
|
-
borderRadius: "16px",
|
|
11823
|
-
padding: "24px 20px 20px 24px",
|
|
11824
|
-
height: "100%",
|
|
11825
|
-
minHeight: "140px",
|
|
11826
|
-
position: "relative",
|
|
11827
|
-
marginLeft: "0px",
|
|
11828
|
-
transition: "all 0.3s ease",
|
|
11829
|
-
"&:hover": {
|
|
11830
|
-
transform: "translateY(-6px)",
|
|
11831
|
-
boxShadow: "0px 8px 16px rgba(0, 0, 0, 0.08)"
|
|
11832
|
-
}
|
|
11833
|
-
}
|
|
11834
12069
|
},
|
|
11835
|
-
layout: { xs: 12, sm: 12, md: 6, lg: 3 }
|
|
11836
|
-
},
|
|
11837
|
-
elements: [
|
|
11838
12070
|
{
|
|
11839
12071
|
type: "Control",
|
|
11840
|
-
scope: "#/properties/
|
|
12072
|
+
scope: "#/properties/initilCardScope",
|
|
11841
12073
|
config: {
|
|
11842
12074
|
main: {
|
|
11843
|
-
|
|
12075
|
+
heading: "Total Earnings"
|
|
11844
12076
|
},
|
|
11845
12077
|
style: {
|
|
11846
|
-
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
padding: "0px",
|
|
11863
|
-
margin: "0px",
|
|
11864
|
-
opacity: 0.7
|
|
12078
|
+
color: "inherit",
|
|
12079
|
+
fontSize: "16px",
|
|
12080
|
+
fontWeight: 300,
|
|
12081
|
+
fontFamily: "Poppins",
|
|
12082
|
+
justifyContent: "flex-start",
|
|
12083
|
+
background: "inherit",
|
|
12084
|
+
position: "absolute",
|
|
12085
|
+
top: "8px",
|
|
12086
|
+
left: "12px",
|
|
12087
|
+
display: "flex",
|
|
12088
|
+
maxWidth: "200px",
|
|
12089
|
+
whiteSpace: "nowrap",
|
|
12090
|
+
overflowX: "auto",
|
|
12091
|
+
scrollbarWidth: "none",
|
|
12092
|
+
"&::-webkit-scrollbar": {
|
|
12093
|
+
display: "none"
|
|
11865
12094
|
}
|
|
11866
12095
|
}
|
|
11867
12096
|
},
|
|
11868
|
-
options: {
|
|
12097
|
+
options: {
|
|
12098
|
+
widget: "Box"
|
|
12099
|
+
}
|
|
11869
12100
|
},
|
|
11870
12101
|
{
|
|
11871
12102
|
type: "Control",
|
|
11872
|
-
scope: "#/properties/
|
|
12103
|
+
scope: "#/properties/initilCardScope",
|
|
11873
12104
|
config: {
|
|
11874
12105
|
main: {
|
|
11875
|
-
heading: "
|
|
12106
|
+
heading: "5000.00"
|
|
11876
12107
|
},
|
|
11877
12108
|
style: {
|
|
11878
|
-
color: "
|
|
11879
|
-
|
|
12109
|
+
color: "inherit",
|
|
12110
|
+
display: "flex",
|
|
12111
|
+
fontSize: { xs: "22px", md: "40px" },
|
|
12112
|
+
fontWeight: 600,
|
|
11880
12113
|
background: "inherit",
|
|
12114
|
+
justifyContent: "flex-start",
|
|
12115
|
+
width: "100%",
|
|
11881
12116
|
margin: "0px",
|
|
11882
|
-
marginBottom: "
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
maxWidth: "24%",
|
|
11894
|
-
lineHeight: "1.2",
|
|
11895
|
-
height: "20px"
|
|
12117
|
+
marginBottom: "4px",
|
|
12118
|
+
marginTop: "8px",
|
|
12119
|
+
lineHeight: "1",
|
|
12120
|
+
maxWidth: "300px",
|
|
12121
|
+
whiteSpace: "nowrap",
|
|
12122
|
+
overflowX: "auto",
|
|
12123
|
+
overflowY: "hidden",
|
|
12124
|
+
scrollbarWidth: "none",
|
|
12125
|
+
"&::-webkit-scrollbar": {
|
|
12126
|
+
display: "none"
|
|
12127
|
+
}
|
|
11896
12128
|
}
|
|
11897
12129
|
},
|
|
11898
|
-
options: {
|
|
12130
|
+
options: {
|
|
12131
|
+
widget: "Box"
|
|
12132
|
+
}
|
|
11899
12133
|
},
|
|
11900
12134
|
{
|
|
11901
12135
|
type: "Control",
|
|
11902
|
-
scope: "#/properties/
|
|
12136
|
+
scope: "#/properties/initilCardScope",
|
|
11903
12137
|
config: {
|
|
11904
12138
|
main: {
|
|
11905
|
-
heading: "
|
|
12139
|
+
heading: "Increased from last month"
|
|
11906
12140
|
},
|
|
11907
12141
|
style: {
|
|
11908
|
-
color: "
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
fontWeight: "700",
|
|
11912
|
-
background: "inherit",
|
|
12142
|
+
color: "inherit",
|
|
12143
|
+
fontSize: "12px",
|
|
12144
|
+
fontWeight: "400",
|
|
11913
12145
|
justifyContent: "flex-start",
|
|
11914
|
-
|
|
12146
|
+
background: "inherit",
|
|
11915
12147
|
margin: "0px",
|
|
11916
|
-
|
|
11917
|
-
|
|
12148
|
+
paddingLeft: "2px",
|
|
12149
|
+
marginBottom: "8px",
|
|
11918
12150
|
maxWidth: "200px",
|
|
11919
12151
|
whiteSpace: "nowrap",
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
},
|
|
11925
|
-
{
|
|
11926
|
-
type: "WrapperLayout",
|
|
11927
|
-
config: {
|
|
11928
|
-
main: { spacing: 0, rowSpacing: 0, columnSpacing: 0, gap: 0 },
|
|
11929
|
-
style: {
|
|
11930
|
-
componentsBoxStyle: {
|
|
11931
|
-
display: "flex",
|
|
11932
|
-
flexDirection: "row",
|
|
11933
|
-
alignItems: "center",
|
|
11934
|
-
justifyContent: "flex-start",
|
|
11935
|
-
background: "#E5E7EB",
|
|
11936
|
-
borderRadius: "999px",
|
|
11937
|
-
padding: "6px 14px",
|
|
11938
|
-
width: "fit-content",
|
|
11939
|
-
whiteSpace: "nowrap",
|
|
11940
|
-
gap: "6px",
|
|
11941
|
-
margin: "0px",
|
|
11942
|
-
paddingLeft: "20px",
|
|
11943
|
-
paddingRight: "20px"
|
|
12152
|
+
overflowX: "auto",
|
|
12153
|
+
scrollbarWidth: "none",
|
|
12154
|
+
"&::-webkit-scrollbar": {
|
|
12155
|
+
display: "none"
|
|
11944
12156
|
}
|
|
11945
|
-
},
|
|
11946
|
-
layout: { xs: "auto" }
|
|
11947
|
-
},
|
|
11948
|
-
elements: [
|
|
11949
|
-
{
|
|
11950
|
-
type: "Control",
|
|
11951
|
-
scope: "#/properties/programType",
|
|
11952
|
-
config: {
|
|
11953
|
-
main: {
|
|
11954
|
-
url: "https://unpkg.com/heroicons@2.0.18/24/outline/arrow-right.svg"
|
|
11955
|
-
},
|
|
11956
|
-
style: {
|
|
11957
|
-
containerStyle: {
|
|
11958
|
-
display: "flex",
|
|
11959
|
-
alignItems: "center",
|
|
11960
|
-
justifyContent: "center",
|
|
11961
|
-
margin: "0px",
|
|
11962
|
-
padding: "0px"
|
|
11963
|
-
},
|
|
11964
|
-
imageStyle: {
|
|
11965
|
-
width: "14px",
|
|
11966
|
-
height: "14px",
|
|
11967
|
-
filter: "brightness(0) invert(0.5)",
|
|
11968
|
-
display: "block"
|
|
11969
|
-
}
|
|
11970
|
-
},
|
|
11971
|
-
layout: { xs: "auto" }
|
|
11972
|
-
},
|
|
11973
|
-
options: { widget: "Image" }
|
|
11974
|
-
},
|
|
11975
|
-
{
|
|
11976
|
-
type: "Control",
|
|
11977
|
-
scope: "#/properties/programType",
|
|
11978
|
-
config: {
|
|
11979
|
-
main: {
|
|
11980
|
-
heading: "\u2014"
|
|
11981
|
-
},
|
|
11982
|
-
style: {
|
|
11983
|
-
color: "#6B7280",
|
|
11984
|
-
fontSize: "12px",
|
|
11985
|
-
fontWeight: "550",
|
|
11986
|
-
background: "transparent",
|
|
11987
|
-
margin: "0px",
|
|
11988
|
-
padding: "0px",
|
|
11989
|
-
lineHeight: "1",
|
|
11990
|
-
display: "flex",
|
|
11991
|
-
alignItems: "center"
|
|
11992
|
-
},
|
|
11993
|
-
layout: { xs: "auto" }
|
|
11994
|
-
},
|
|
11995
|
-
options: { widget: "Box" }
|
|
11996
12157
|
}
|
|
11997
|
-
|
|
12158
|
+
},
|
|
12159
|
+
options: {
|
|
12160
|
+
widget: "Box"
|
|
12161
|
+
}
|
|
11998
12162
|
}
|
|
11999
12163
|
]
|
|
12000
12164
|
};
|
|
12001
12165
|
return uiSchema;
|
|
12002
12166
|
}
|
|
12003
|
-
const
|
|
12004
|
-
|
|
12005
|
-
|
|
12167
|
+
const buildCard = (config, componentScope, store) => {
|
|
12168
|
+
const card = _.cloneDeep(Card(store.theme.myTheme));
|
|
12169
|
+
if (config.style) {
|
|
12170
|
+
card.config.wrapperStyle = JSON.parse(config.style);
|
|
12171
|
+
}
|
|
12172
|
+
card.elements[0].scope = `#/properties/${config.name}/properties/url`;
|
|
12173
|
+
card.elements[1].scope = `#/properties/${config.name}/properties/label`;
|
|
12174
|
+
card.elements[2].scope = `#/properties/${config.name}/properties/value`;
|
|
12175
|
+
card.elements[3].scope = `#/properties/${config.name}/properties/description`;
|
|
12176
|
+
if (config.layout) {
|
|
12177
|
+
card.config.layout = createLayoutFormat(config.layout);
|
|
12178
|
+
}
|
|
12179
|
+
if (config == null ? void 0 : config.titleIcon) {
|
|
12180
|
+
card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
|
|
12181
|
+
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
12182
|
+
}
|
|
12183
|
+
if (config.label) {
|
|
12184
|
+
card.elements[1].config.main.heading = config.label;
|
|
12185
|
+
}
|
|
12186
|
+
if (config.url) {
|
|
12187
|
+
card.elements[0].config.main.url = config.url;
|
|
12188
|
+
}
|
|
12189
|
+
if (config.description) {
|
|
12190
|
+
card.elements[3].config.main.heading = config.description;
|
|
12191
|
+
}
|
|
12192
|
+
return card;
|
|
12193
|
+
};
|
|
12194
|
+
var MetricCard = {
|
|
12195
|
+
type: "Control",
|
|
12196
|
+
scope: "#/properties/metricpath",
|
|
12197
|
+
options: {
|
|
12198
|
+
widget: "MetricCard"
|
|
12199
|
+
},
|
|
12200
|
+
config: {
|
|
12201
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
12202
|
+
main: {}
|
|
12203
|
+
}
|
|
12204
|
+
};
|
|
12205
|
+
const buildMetricCard = (config2, componentScope2, store2) => {
|
|
12206
|
+
const card2 = _.cloneDeep(MetricCard);
|
|
12207
|
+
card2.scope = componentScope2;
|
|
12006
12208
|
if (config2.style) {
|
|
12007
|
-
|
|
12008
|
-
card2.config.wrapperStyle = parsedStyle;
|
|
12009
|
-
card2.elements[1].config.style = {
|
|
12010
|
-
...card2.elements[1].config.style,
|
|
12011
|
-
...(_a = parsedStyle.labelStyle) != null ? _a : {}
|
|
12012
|
-
};
|
|
12013
|
-
card2.elements[3].config.style.componentsBoxStyle = {
|
|
12014
|
-
...card2.elements[3].config.style.componentsBoxStyle,
|
|
12015
|
-
...(_b = parsedStyle.descriptionBoxStyle) != null ? _b : {}
|
|
12016
|
-
};
|
|
12017
|
-
card2.elements[2].config.style = {
|
|
12018
|
-
...card2.elements[2].config.style,
|
|
12019
|
-
...(_c = parsedStyle.valueStyle) != null ? _c : {}
|
|
12020
|
-
};
|
|
12021
|
-
card2.config.componentsBoxStyle = {
|
|
12022
|
-
...card2.config.componentsBoxStyle,
|
|
12023
|
-
...(_d = parsedStyle.componentsBoxStyle) != null ? _d : {}
|
|
12024
|
-
};
|
|
12025
|
-
card2.elements[0].config.style.containerStyle = {
|
|
12026
|
-
...card2.elements[0].config.style.containerStyle,
|
|
12027
|
-
...(_e = parsedStyle.imageContainerStyle) != null ? _e : {}
|
|
12028
|
-
};
|
|
12209
|
+
card2.config.style = JSON.parse(config2.style);
|
|
12029
12210
|
}
|
|
12030
|
-
card2.elements[2].scope = `#/properties/${config2.name}/properties/value`;
|
|
12031
|
-
card2.elements[0].scope = `#/properties/${config2.name}/properties/url`;
|
|
12032
|
-
card2.elements[3].elements[1].scope = `#/properties/${config2.name}/properties/description`;
|
|
12033
|
-
card2.elements[1].scope = `#/properties/${config2.name}/properties/label`;
|
|
12034
|
-
card2.elements[3].elements[0].scope = `#/properties/${config2.name}/properties/trendIconUrl`;
|
|
12035
12211
|
if (config2.layout) {
|
|
12036
12212
|
card2.config.layout = createLayoutFormat(config2.layout);
|
|
12037
12213
|
}
|
|
12038
12214
|
if (config2.label) {
|
|
12039
|
-
card2.
|
|
12215
|
+
card2.config.main.label = config2.label;
|
|
12040
12216
|
}
|
|
12041
12217
|
if (config2.url) {
|
|
12042
|
-
card2.
|
|
12218
|
+
card2.config.main.url = config2.url;
|
|
12043
12219
|
}
|
|
12044
12220
|
if (config2.description) {
|
|
12045
|
-
card2.
|
|
12221
|
+
card2.config.main.description = config2.description;
|
|
12046
12222
|
}
|
|
12047
|
-
if (config2.
|
|
12048
|
-
card2.
|
|
12223
|
+
if (config2.cardValue) {
|
|
12224
|
+
card2.config.main.cardValue = config2.cardValue;
|
|
12049
12225
|
}
|
|
12050
|
-
if (config2.
|
|
12051
|
-
card2.
|
|
12226
|
+
if (config2.growthRate) {
|
|
12227
|
+
card2.config.main.growthRate = config2.growthRate;
|
|
12228
|
+
}
|
|
12229
|
+
if (config2.color) {
|
|
12230
|
+
card2.config.main.color = config2.color;
|
|
12052
12231
|
}
|
|
12053
12232
|
return card2;
|
|
12054
12233
|
};
|
|
@@ -12083,7 +12262,6 @@ const DateTime = {
|
|
|
12083
12262
|
const buildDate = (config2, componentScope2) => {
|
|
12084
12263
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
12085
12264
|
dateInputField.config.main.label = config2.label;
|
|
12086
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12087
12265
|
dateInputField.scope = componentScope2;
|
|
12088
12266
|
if (config2.layout) {
|
|
12089
12267
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12091,12 +12269,20 @@ const buildDate = (config2, componentScope2) => {
|
|
|
12091
12269
|
if (config2.variant) {
|
|
12092
12270
|
dateInputField.config.main.variant = config2.variant;
|
|
12093
12271
|
}
|
|
12272
|
+
if (config2.toolTip) {
|
|
12273
|
+
dateInputField.config.main.toolTip = config2.toolTip;
|
|
12274
|
+
}
|
|
12275
|
+
if (config2.toolTipPosition) {
|
|
12276
|
+
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12277
|
+
}
|
|
12278
|
+
if (config2.style) {
|
|
12279
|
+
dateInputField.config.style = JSON.parse(config2.style);
|
|
12280
|
+
}
|
|
12094
12281
|
return dateInputField;
|
|
12095
12282
|
};
|
|
12096
12283
|
const buildDateTime = (config2, componentScope2) => {
|
|
12097
12284
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
12098
12285
|
dateTimeInputField.config.main.label = config2.label;
|
|
12099
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12100
12286
|
dateTimeInputField.scope = componentScope2;
|
|
12101
12287
|
if (config2.layout) {
|
|
12102
12288
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12104,6 +12290,15 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
12104
12290
|
if (config2.variant) {
|
|
12105
12291
|
dateTimeInputField.config.main.variant = config2.variant;
|
|
12106
12292
|
}
|
|
12293
|
+
if (config2.toolTip) {
|
|
12294
|
+
dateTimeInputField.config.main.toolTip = config2.toolTip;
|
|
12295
|
+
}
|
|
12296
|
+
if (config2.toolTipPosition) {
|
|
12297
|
+
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12298
|
+
}
|
|
12299
|
+
if (config2.style) {
|
|
12300
|
+
dateTimeInputField.config.style = JSON.parse(config2.style);
|
|
12301
|
+
}
|
|
12107
12302
|
return dateTimeInputField;
|
|
12108
12303
|
};
|
|
12109
12304
|
var RankCard = {
|
|
@@ -12194,7 +12389,8 @@ var MultipleSelect = {
|
|
|
12194
12389
|
multiple: true,
|
|
12195
12390
|
variant: "outlined",
|
|
12196
12391
|
options: []
|
|
12197
|
-
}
|
|
12392
|
+
},
|
|
12393
|
+
style: {}
|
|
12198
12394
|
}
|
|
12199
12395
|
};
|
|
12200
12396
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -12215,6 +12411,15 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
12215
12411
|
if (config2.lazyLoading) {
|
|
12216
12412
|
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
12217
12413
|
}
|
|
12414
|
+
if (config2.toolTip) {
|
|
12415
|
+
multipleSelect.config.main.toolTip = config2.toolTip;
|
|
12416
|
+
}
|
|
12417
|
+
if (config2.toolTipPosition) {
|
|
12418
|
+
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12419
|
+
}
|
|
12420
|
+
if (config2.style) {
|
|
12421
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12422
|
+
}
|
|
12218
12423
|
return multipleSelect;
|
|
12219
12424
|
};
|
|
12220
12425
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -12361,10 +12566,10 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
12361
12566
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
12362
12567
|
}
|
|
12363
12568
|
if (config2.legendLabels) {
|
|
12364
|
-
lineGraph.config.main.legendLabels =
|
|
12569
|
+
lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
12365
12570
|
}
|
|
12366
12571
|
if (config2.pieArcColors) {
|
|
12367
|
-
lineGraph.config.style.
|
|
12572
|
+
lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
12368
12573
|
}
|
|
12369
12574
|
lineGraph.scope = componentScope2;
|
|
12370
12575
|
return lineGraph;
|
|
@@ -12399,6 +12604,12 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
12399
12604
|
if (config2.errorMessage) {
|
|
12400
12605
|
Radio.config.main.errorMessage = config2.errorMessage;
|
|
12401
12606
|
}
|
|
12607
|
+
if (config2.toolTip) {
|
|
12608
|
+
Radio.config.main.toolTip = config2.toolTip;
|
|
12609
|
+
}
|
|
12610
|
+
if (config2.toolTipPosition) {
|
|
12611
|
+
Radio.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12612
|
+
}
|
|
12402
12613
|
return Radio;
|
|
12403
12614
|
};
|
|
12404
12615
|
var emptyBox = {
|
|
@@ -12415,9 +12626,13 @@ var emptyBox = {
|
|
|
12415
12626
|
};
|
|
12416
12627
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
12417
12628
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
12629
|
+
EmptyBox.scope = componentScope2;
|
|
12418
12630
|
if (config2.layout) {
|
|
12419
12631
|
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
12420
12632
|
}
|
|
12633
|
+
if (config2.style) {
|
|
12634
|
+
EmptyBox.config.style = JSON.parse(config2.style);
|
|
12635
|
+
}
|
|
12421
12636
|
return EmptyBox;
|
|
12422
12637
|
};
|
|
12423
12638
|
const ArrayUiSchema = {
|
|
@@ -12446,7 +12661,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12446
12661
|
if (config2.style) {
|
|
12447
12662
|
array.config.style = JSON.parse(config2.style);
|
|
12448
12663
|
}
|
|
12664
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12665
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12666
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12449
12667
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12668
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12450
12669
|
array.config.main.label = config2.label;
|
|
12451
12670
|
array.scope = componentScope2;
|
|
12452
12671
|
return array;
|
|
@@ -12521,7 +12740,8 @@ const FileInput = {
|
|
|
12521
12740
|
required: false,
|
|
12522
12741
|
onUpload: "onFileUpload",
|
|
12523
12742
|
onDownload: "onFileDownload",
|
|
12524
|
-
label: "Aggrement Copy"
|
|
12743
|
+
label: "Aggrement Copy",
|
|
12744
|
+
"onClick": "onClick"
|
|
12525
12745
|
},
|
|
12526
12746
|
style: {
|
|
12527
12747
|
backgroundColor: "none"
|
|
@@ -12538,21 +12758,19 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12538
12758
|
if (config2.style) {
|
|
12539
12759
|
box.config.style = JSON.parse(config2.style);
|
|
12540
12760
|
}
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
if (config2.
|
|
12551
|
-
box.config.main.
|
|
12552
|
-
}
|
|
12553
|
-
|
|
12554
|
-
box.config.main.description = config2.description;
|
|
12555
|
-
}
|
|
12761
|
+
box.config.main.variant = config2.variant;
|
|
12762
|
+
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12763
|
+
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12764
|
+
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12765
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12766
|
+
box.config.main.description = config2.description;
|
|
12767
|
+
box.config.main.toolTip = config2.toolTip;
|
|
12768
|
+
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
12769
|
+
box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
|
|
12770
|
+
if (config2.toolTipPosition) {
|
|
12771
|
+
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12772
|
+
}
|
|
12773
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12556
12774
|
return box;
|
|
12557
12775
|
};
|
|
12558
12776
|
const Stepper = {
|
|
@@ -12609,6 +12827,7 @@ const PopUP = {
|
|
|
12609
12827
|
},
|
|
12610
12828
|
main: {
|
|
12611
12829
|
label: "PopUp",
|
|
12830
|
+
onClose: "onClose",
|
|
12612
12831
|
fullScreen: false,
|
|
12613
12832
|
fullWidth: false,
|
|
12614
12833
|
maxWidth: false,
|
|
@@ -12832,7 +13051,8 @@ const imageUiSchema = {
|
|
|
12832
13051
|
config: {
|
|
12833
13052
|
layout: 3,
|
|
12834
13053
|
main: {
|
|
12835
|
-
url: ""
|
|
13054
|
+
url: "",
|
|
13055
|
+
onClick: "onClick"
|
|
12836
13056
|
},
|
|
12837
13057
|
style: {}
|
|
12838
13058
|
}
|
|
@@ -12850,8 +13070,358 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12850
13070
|
if (config2.height) {
|
|
12851
13071
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12852
13072
|
}
|
|
13073
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13074
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12853
13075
|
return image;
|
|
12854
13076
|
};
|
|
13077
|
+
const buildAreaGraph = (config2, componentScope2) => {
|
|
13078
|
+
const AreaGraph = _.cloneDeep(AreaBarGraph);
|
|
13079
|
+
AreaGraph.scope = componentScope2;
|
|
13080
|
+
if (config2.layout) {
|
|
13081
|
+
AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13082
|
+
}
|
|
13083
|
+
AreaGraph.config.main.type = config2.graphType;
|
|
13084
|
+
AreaGraph.scope = componentScope2;
|
|
13085
|
+
AreaGraph.config.main.header = config2.heading;
|
|
13086
|
+
AreaGraph.config.main.subHeader = config2.subHeader;
|
|
13087
|
+
if (config2.legendHide) {
|
|
13088
|
+
AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13089
|
+
}
|
|
13090
|
+
if (config2.bottomAxisAngle) {
|
|
13091
|
+
AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13092
|
+
}
|
|
13093
|
+
if (config2.legendLabels) {
|
|
13094
|
+
AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13095
|
+
}
|
|
13096
|
+
if (config2.legendDirection) {
|
|
13097
|
+
AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13098
|
+
}
|
|
13099
|
+
if (config2.height) {
|
|
13100
|
+
AreaGraph.config.style.containerStyle.height = config2.height;
|
|
13101
|
+
}
|
|
13102
|
+
if (config2.pieArcColors) {
|
|
13103
|
+
AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13104
|
+
}
|
|
13105
|
+
if (config2.xAxisFormatType) {
|
|
13106
|
+
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13107
|
+
}
|
|
13108
|
+
if (config2.yAxisTickCount) {
|
|
13109
|
+
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13110
|
+
}
|
|
13111
|
+
if (config2.xAxisTickCount) {
|
|
13112
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13113
|
+
}
|
|
13114
|
+
if (config2.xAxisValue) {
|
|
13115
|
+
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13116
|
+
}
|
|
13117
|
+
if (config2.xAxisType) {
|
|
13118
|
+
AreaGraph.config.main.xAxisType = config2.xAxisType;
|
|
13119
|
+
}
|
|
13120
|
+
if (config2.bottomLabel) {
|
|
13121
|
+
AreaGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13122
|
+
}
|
|
13123
|
+
if (config2.leftLabel) {
|
|
13124
|
+
AreaGraph.config.main.leftLabel = config2.leftLabel;
|
|
13125
|
+
}
|
|
13126
|
+
if (config2.disableLeftLabel) {
|
|
13127
|
+
AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13128
|
+
}
|
|
13129
|
+
if (config2.leftMargin) {
|
|
13130
|
+
AreaGraph.config.style.labelStyle.margin = {
|
|
13131
|
+
left: config2.leftMargin
|
|
13132
|
+
};
|
|
13133
|
+
}
|
|
13134
|
+
return AreaGraph;
|
|
13135
|
+
};
|
|
13136
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13137
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13138
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13139
|
+
if (config2.layout) {
|
|
13140
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13141
|
+
}
|
|
13142
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13143
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13144
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13145
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13146
|
+
if (config2.legendHide) {
|
|
13147
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13148
|
+
}
|
|
13149
|
+
if (config2.bottomAxisAngle) {
|
|
13150
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13151
|
+
}
|
|
13152
|
+
if (config2.legendLabels) {
|
|
13153
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13154
|
+
}
|
|
13155
|
+
if (config2.legendDirection) {
|
|
13156
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13157
|
+
}
|
|
13158
|
+
if (config2.height) {
|
|
13159
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13160
|
+
}
|
|
13161
|
+
if (config2.pieArcColors) {
|
|
13162
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13163
|
+
}
|
|
13164
|
+
if (config2.yAxisTickCount) {
|
|
13165
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13166
|
+
}
|
|
13167
|
+
if (config2.xAxisTickCount) {
|
|
13168
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13169
|
+
}
|
|
13170
|
+
if (config2.xAxisValue) {
|
|
13171
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13172
|
+
}
|
|
13173
|
+
if (config2.xAxisType) {
|
|
13174
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13175
|
+
}
|
|
13176
|
+
if (config2.bottomLabel) {
|
|
13177
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13178
|
+
}
|
|
13179
|
+
if (config2.leftLabel) {
|
|
13180
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13181
|
+
}
|
|
13182
|
+
if (config2.rightLabel) {
|
|
13183
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13184
|
+
}
|
|
13185
|
+
if (config2.disableLeftLabel) {
|
|
13186
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13187
|
+
}
|
|
13188
|
+
if (config2.growthRateKey) {
|
|
13189
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13190
|
+
}
|
|
13191
|
+
if (config2.tooltipUnit) {
|
|
13192
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13193
|
+
}
|
|
13194
|
+
if (config2.leftMargin) {
|
|
13195
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13196
|
+
left: config2.leftMargin
|
|
13197
|
+
};
|
|
13198
|
+
}
|
|
13199
|
+
return StackBarLineGraph;
|
|
13200
|
+
};
|
|
13201
|
+
const cameraUiSchema = {
|
|
13202
|
+
type: "Control",
|
|
13203
|
+
scope: "#/properties/camera",
|
|
13204
|
+
options: {
|
|
13205
|
+
widget: "Camera"
|
|
13206
|
+
},
|
|
13207
|
+
config: {
|
|
13208
|
+
main: {
|
|
13209
|
+
label: "Upload Photo",
|
|
13210
|
+
multiUplaod: false,
|
|
13211
|
+
onUpload: "onFileUpload"
|
|
13212
|
+
}
|
|
13213
|
+
}
|
|
13214
|
+
};
|
|
13215
|
+
const buildCamera = (config2, componentScope2) => {
|
|
13216
|
+
const camera = _.cloneDeep(cameraUiSchema);
|
|
13217
|
+
camera.scope = componentScope2;
|
|
13218
|
+
if (config2.iconName) {
|
|
13219
|
+
camera.config.main.startIcon = config2.iconName;
|
|
13220
|
+
}
|
|
13221
|
+
if (config2.layout) {
|
|
13222
|
+
camera.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13223
|
+
}
|
|
13224
|
+
if (config2.tooltipMessage) {
|
|
13225
|
+
camera.config.main.tooltipMessage = config2.tooltipMessage;
|
|
13226
|
+
}
|
|
13227
|
+
camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
|
|
13228
|
+
if (config2.style) {
|
|
13229
|
+
camera.config.style = JSON.parse(config2.style);
|
|
13230
|
+
}
|
|
13231
|
+
if (config2.size) {
|
|
13232
|
+
camera.config.main.size = config2.size;
|
|
13233
|
+
}
|
|
13234
|
+
if (config2.variant) {
|
|
13235
|
+
camera.config.main.variant = config2.variant;
|
|
13236
|
+
}
|
|
13237
|
+
if (config2.color) {
|
|
13238
|
+
camera.config.main.color = config2.color;
|
|
13239
|
+
}
|
|
13240
|
+
if (config2.label) {
|
|
13241
|
+
camera.config.main.label = config2.label;
|
|
13242
|
+
}
|
|
13243
|
+
return camera;
|
|
13244
|
+
};
|
|
13245
|
+
var ButtonGroup = {
|
|
13246
|
+
type: "Control",
|
|
13247
|
+
scope: "#/properties/buttonGroup",
|
|
13248
|
+
options: {
|
|
13249
|
+
widget: "ButtonGroup"
|
|
13250
|
+
},
|
|
13251
|
+
config: {
|
|
13252
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
13253
|
+
main: {
|
|
13254
|
+
variant: "contained",
|
|
13255
|
+
styleDefault: false,
|
|
13256
|
+
size: "small"
|
|
13257
|
+
},
|
|
13258
|
+
style: {}
|
|
13259
|
+
}
|
|
13260
|
+
};
|
|
13261
|
+
const buildButtonGroup = (config2, componentScope2) => {
|
|
13262
|
+
const buttonGroup = _.cloneDeep(ButtonGroup);
|
|
13263
|
+
if (config2.layout) {
|
|
13264
|
+
buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13265
|
+
}
|
|
13266
|
+
buttonGroup.scope = componentScope2;
|
|
13267
|
+
if (config2.multiSelect) {
|
|
13268
|
+
buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
|
|
13269
|
+
}
|
|
13270
|
+
if (config2.style) {
|
|
13271
|
+
buttonGroup.config.style = JSON.parse(config2.style);
|
|
13272
|
+
}
|
|
13273
|
+
if (config2.size) {
|
|
13274
|
+
buttonGroup.config.main.size = config2.size;
|
|
13275
|
+
}
|
|
13276
|
+
if (config2.color) {
|
|
13277
|
+
buttonGroup.config.main.color = config2.color;
|
|
13278
|
+
}
|
|
13279
|
+
return buttonGroup;
|
|
13280
|
+
};
|
|
13281
|
+
const PopOver = {
|
|
13282
|
+
type: "Control",
|
|
13283
|
+
scope: "#/properties/text",
|
|
13284
|
+
options: {
|
|
13285
|
+
widget: "Popover"
|
|
13286
|
+
},
|
|
13287
|
+
config: {
|
|
13288
|
+
layout: {
|
|
13289
|
+
xs: 12,
|
|
13290
|
+
sm: 12,
|
|
13291
|
+
md: 12,
|
|
13292
|
+
lg: 12
|
|
13293
|
+
},
|
|
13294
|
+
main: {
|
|
13295
|
+
label: "PopOver"
|
|
13296
|
+
},
|
|
13297
|
+
style: {}
|
|
13298
|
+
}
|
|
13299
|
+
};
|
|
13300
|
+
const buildPopOver = (config2, componentScope2) => {
|
|
13301
|
+
const popOver = _.cloneDeep(PopOver);
|
|
13302
|
+
popOver.scope = componentScope2;
|
|
13303
|
+
popOver.config.main.positionVertical = config2.positionVertical;
|
|
13304
|
+
popOver.config.main.positionHorizontal = config2.positionHorizontal;
|
|
13305
|
+
popOver.config.main.contentVertical = config2.contentVertical;
|
|
13306
|
+
popOver.config.main.contentHorizontal = config2.contentHorizontal;
|
|
13307
|
+
popOver.config.main.width = config2.width;
|
|
13308
|
+
popOver.config.main.gap = config2.gap;
|
|
13309
|
+
if (config2.layout) {
|
|
13310
|
+
popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13311
|
+
}
|
|
13312
|
+
if (config2.style) {
|
|
13313
|
+
popOver.config.style = JSON.parse(config2.style);
|
|
13314
|
+
}
|
|
13315
|
+
return popOver;
|
|
13316
|
+
};
|
|
13317
|
+
const OTPSchema = {
|
|
13318
|
+
type: "Control",
|
|
13319
|
+
scope: "#/properties/OTPInput",
|
|
13320
|
+
options: {
|
|
13321
|
+
widget: "OTPInput"
|
|
13322
|
+
},
|
|
13323
|
+
config: {
|
|
13324
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
13325
|
+
main: {
|
|
13326
|
+
seperator: "",
|
|
13327
|
+
length: 4,
|
|
13328
|
+
type: "number",
|
|
13329
|
+
masking: true
|
|
13330
|
+
}
|
|
13331
|
+
}
|
|
13332
|
+
};
|
|
13333
|
+
const buildOTP_Input = (config2, componentScope2) => {
|
|
13334
|
+
const OTP = _.cloneDeep(OTPSchema);
|
|
13335
|
+
OTP.scope = componentScope2;
|
|
13336
|
+
if (config2.layout) {
|
|
13337
|
+
OTP.config.layout = createLayoutFormat(config2.layout);
|
|
13338
|
+
}
|
|
13339
|
+
if (config2.style) {
|
|
13340
|
+
OTP.config.style = JSON.parse(config2.style);
|
|
13341
|
+
}
|
|
13342
|
+
if (config2.errorMessage) {
|
|
13343
|
+
OTP.config.main.errorMessage = config2.errorMessage;
|
|
13344
|
+
}
|
|
13345
|
+
if (config2.toolTip) {
|
|
13346
|
+
OTP.config.main.toolTip = config2.toolTip;
|
|
13347
|
+
}
|
|
13348
|
+
OTP.config.main.masking = config2.masking === "YES" ? true : false;
|
|
13349
|
+
OTP.config.main.type = config2.OTP_Format;
|
|
13350
|
+
OTP.config.main.seperator = config2.seperator;
|
|
13351
|
+
OTP.config.main.length = +config2.length;
|
|
13352
|
+
return OTP;
|
|
13353
|
+
};
|
|
13354
|
+
var pdfViewer = {
|
|
13355
|
+
type: "Control",
|
|
13356
|
+
scope: "#/properties/pdfviewer",
|
|
13357
|
+
options: {
|
|
13358
|
+
widget: "PdfViewer"
|
|
13359
|
+
},
|
|
13360
|
+
config: {
|
|
13361
|
+
layout: {
|
|
13362
|
+
xs: 12,
|
|
13363
|
+
sm: 12,
|
|
13364
|
+
md: 12,
|
|
13365
|
+
lg: 12
|
|
13366
|
+
},
|
|
13367
|
+
main: {
|
|
13368
|
+
title: "PDF"
|
|
13369
|
+
}
|
|
13370
|
+
}
|
|
13371
|
+
};
|
|
13372
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13373
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13374
|
+
PdfViewer.scope = componentScope2;
|
|
13375
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13376
|
+
if (config2.layout) {
|
|
13377
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13378
|
+
}
|
|
13379
|
+
if (config2.style) {
|
|
13380
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13381
|
+
}
|
|
13382
|
+
return PdfViewer;
|
|
13383
|
+
};
|
|
13384
|
+
const HierarchyChart = {
|
|
13385
|
+
type: "Control",
|
|
13386
|
+
scope: "#/properties/HierarchyChart",
|
|
13387
|
+
options: {
|
|
13388
|
+
widget: "HierarchyChart"
|
|
13389
|
+
},
|
|
13390
|
+
config: {
|
|
13391
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13392
|
+
main: {},
|
|
13393
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13394
|
+
}
|
|
13395
|
+
};
|
|
13396
|
+
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13397
|
+
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13398
|
+
hierarchyChart.scope = componentScope2;
|
|
13399
|
+
if (config2.style) {
|
|
13400
|
+
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13401
|
+
}
|
|
13402
|
+
if (config2.layout) {
|
|
13403
|
+
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13404
|
+
}
|
|
13405
|
+
if (config2.linkType) {
|
|
13406
|
+
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13407
|
+
}
|
|
13408
|
+
if (config2.stepPercent) {
|
|
13409
|
+
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13410
|
+
}
|
|
13411
|
+
if (config2.nodeWidth) {
|
|
13412
|
+
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13413
|
+
}
|
|
13414
|
+
if (config2.nodeHeight) {
|
|
13415
|
+
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13416
|
+
}
|
|
13417
|
+
if (config2.chartHeight) {
|
|
13418
|
+
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13419
|
+
}
|
|
13420
|
+
if (config2.lazyLoading) {
|
|
13421
|
+
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13422
|
+
}
|
|
13423
|
+
return hierarchyChart;
|
|
13424
|
+
};
|
|
12855
13425
|
let schema = {
|
|
12856
13426
|
type: "object",
|
|
12857
13427
|
properties: {},
|
|
@@ -12922,6 +13492,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12922
13492
|
let elements = {};
|
|
12923
13493
|
const componentScope2 = `#/properties/${config2.name}`;
|
|
12924
13494
|
switch (config2.type) {
|
|
13495
|
+
case "OTP_Input":
|
|
13496
|
+
elements = buildOTP_Input(config2, componentScope2);
|
|
13497
|
+
break;
|
|
12925
13498
|
case "TreeMap":
|
|
12926
13499
|
elements = buildTreeMap(config2, componentScope2);
|
|
12927
13500
|
break;
|
|
@@ -12940,6 +13513,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12940
13513
|
case "PopUp":
|
|
12941
13514
|
elements = buildPopUp(config2, componentScope2);
|
|
12942
13515
|
break;
|
|
13516
|
+
case "PopOver":
|
|
13517
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13518
|
+
break;
|
|
12943
13519
|
case "FileInput":
|
|
12944
13520
|
elements = buildFileInput(config2, componentScope2);
|
|
12945
13521
|
break;
|
|
@@ -12979,6 +13555,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12979
13555
|
case "Button":
|
|
12980
13556
|
elements = buildButton(config2, componentScope2);
|
|
12981
13557
|
break;
|
|
13558
|
+
case "ButtonGroup":
|
|
13559
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13560
|
+
break;
|
|
12982
13561
|
case "Table":
|
|
12983
13562
|
elements = buildTable(config2, componentScope2);
|
|
12984
13563
|
break;
|
|
@@ -12998,13 +13577,17 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12998
13577
|
elements = buildDownloadFile(config2, componentScope2);
|
|
12999
13578
|
break;
|
|
13000
13579
|
case "EmptyBox":
|
|
13001
|
-
elements = buildEmptyBox(config2);
|
|
13580
|
+
elements = buildEmptyBox(config2, componentScope2);
|
|
13002
13581
|
break;
|
|
13003
13582
|
case "card":
|
|
13004
13583
|
elements = buildCard(config2, componentScope2, store2);
|
|
13005
13584
|
break;
|
|
13006
|
-
case "
|
|
13007
|
-
elements =
|
|
13585
|
+
case "MetricCard":
|
|
13586
|
+
elements = buildMetricCard(config2, componentScope2);
|
|
13587
|
+
break;
|
|
13588
|
+
case "HierarchyChart":
|
|
13589
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13590
|
+
break;
|
|
13008
13591
|
case "Graph":
|
|
13009
13592
|
switch (config2.graphType) {
|
|
13010
13593
|
case "BarGraph":
|
|
@@ -13021,6 +13604,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13021
13604
|
case "HorizontalStackBarGraph":
|
|
13022
13605
|
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
13023
13606
|
break;
|
|
13607
|
+
case "AreaGraph":
|
|
13608
|
+
elements = buildAreaGraph(config2, componentScope2);
|
|
13609
|
+
break;
|
|
13610
|
+
case "StackBarLineGraph":
|
|
13611
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13612
|
+
break;
|
|
13024
13613
|
default:
|
|
13025
13614
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13026
13615
|
break;
|
|
@@ -13066,6 +13655,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13066
13655
|
case "Image":
|
|
13067
13656
|
elements = buildImage(config2, componentScope2);
|
|
13068
13657
|
break;
|
|
13658
|
+
case "Camera":
|
|
13659
|
+
elements = buildCamera(config2, componentScope2);
|
|
13660
|
+
break;
|
|
13661
|
+
case "PdfViewer":
|
|
13662
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13663
|
+
break;
|
|
13069
13664
|
default:
|
|
13070
13665
|
schema = {
|
|
13071
13666
|
type: "object",
|
|
@@ -13169,6 +13764,11 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13169
13764
|
});
|
|
13170
13765
|
}
|
|
13171
13766
|
}
|
|
13767
|
+
if (config2.tabLabelElements) {
|
|
13768
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13769
|
+
return buildUiSchema(e, store2);
|
|
13770
|
+
});
|
|
13771
|
+
}
|
|
13172
13772
|
return elements;
|
|
13173
13773
|
};
|
|
13174
13774
|
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|