impaktapps-ui-builder 1.0.1586 → 1.1.0
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 +788 -79
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- 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/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/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/graph.d.ts +50 -4
- 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 +2 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +26 -22
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -49
- package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -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 +3 -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/buildSelect.ts +3 -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 +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +33 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +177 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
- 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 +80 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +146 -105
- 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/service.ts +24 -3
|
@@ -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,6 +6239,7 @@ 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" },
|
|
6228
6245
|
{ title: "Camera", const: "Camera" },
|
|
@@ -6241,8 +6258,10 @@ const ComponentSchema = {
|
|
|
6241
6258
|
{ title: "Label", const: "Box" },
|
|
6242
6259
|
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
6243
6260
|
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
6261
|
+
{ title: "OTP_Input", const: "OTP_Input" },
|
|
6244
6262
|
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6245
6263
|
{ title: "Pop Up", const: "PopUp" },
|
|
6264
|
+
{ title: "Pop Over", const: "PopOver" },
|
|
6246
6265
|
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6247
6266
|
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6248
6267
|
{ title: "Dropdown", const: "Select" },
|
|
@@ -6252,6 +6271,7 @@ const ComponentSchema = {
|
|
|
6252
6271
|
{ title: "Radio", const: "Radio" },
|
|
6253
6272
|
{ title: "Rank", const: "Rank" },
|
|
6254
6273
|
{ title: "Rank Card", const: "RankCard" },
|
|
6274
|
+
{ title: "Metric Card", const: "MetricCard" },
|
|
6255
6275
|
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6256
6276
|
{ title: "Table", const: "Table" },
|
|
6257
6277
|
{ title: "Tabs", const: "TabSection" },
|
|
@@ -6260,7 +6280,8 @@ const ComponentSchema = {
|
|
|
6260
6280
|
{ title: "Timer", const: "Timer" },
|
|
6261
6281
|
{ title: "Upload", const: "UploadFile" },
|
|
6262
6282
|
{ title: "Tree ", const: "TreeMap" },
|
|
6263
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6283
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6284
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6264
6285
|
]
|
|
6265
6286
|
},
|
|
6266
6287
|
elementType: {
|
|
@@ -6314,6 +6335,34 @@ const ComponentSchema = {
|
|
|
6314
6335
|
{ title: "Standard", const: "standard" }
|
|
6315
6336
|
]
|
|
6316
6337
|
},
|
|
6338
|
+
positionVertical: {
|
|
6339
|
+
oneOf: [
|
|
6340
|
+
{ title: "Top", const: "top" },
|
|
6341
|
+
{ title: "Center", const: "center" },
|
|
6342
|
+
{ title: "Bottom", const: "bottom" }
|
|
6343
|
+
]
|
|
6344
|
+
},
|
|
6345
|
+
positionHorizontal: {
|
|
6346
|
+
oneOf: [
|
|
6347
|
+
{ title: "Left", const: "left" },
|
|
6348
|
+
{ title: "Center", const: "center" },
|
|
6349
|
+
{ title: "Right", const: "right" }
|
|
6350
|
+
]
|
|
6351
|
+
},
|
|
6352
|
+
contentVertical: {
|
|
6353
|
+
oneOf: [
|
|
6354
|
+
{ title: "Top", const: "top" },
|
|
6355
|
+
{ title: "Center", const: "center" },
|
|
6356
|
+
{ title: "Bottom", const: "bottom" }
|
|
6357
|
+
]
|
|
6358
|
+
},
|
|
6359
|
+
contentHorizontal: {
|
|
6360
|
+
oneOf: [
|
|
6361
|
+
{ title: "Left", const: "left" },
|
|
6362
|
+
{ title: "Center", const: "center" },
|
|
6363
|
+
{ title: "Right", const: "right" }
|
|
6364
|
+
]
|
|
6365
|
+
},
|
|
6317
6366
|
toolTipPosition: {
|
|
6318
6367
|
oneOf: [
|
|
6319
6368
|
{ title: "Top", const: "top" },
|
|
@@ -6322,6 +6371,12 @@ const ComponentSchema = {
|
|
|
6322
6371
|
{ title: "Bottom", const: "bottom" }
|
|
6323
6372
|
]
|
|
6324
6373
|
},
|
|
6374
|
+
growthRate: {
|
|
6375
|
+
oneOf: [
|
|
6376
|
+
{ title: "Positive", const: "positive" },
|
|
6377
|
+
{ title: "Negative", const: "negative" }
|
|
6378
|
+
]
|
|
6379
|
+
},
|
|
6325
6380
|
orientation: {
|
|
6326
6381
|
oneOf: [
|
|
6327
6382
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -6356,6 +6411,21 @@ const ComponentSchema = {
|
|
|
6356
6411
|
{ title: "Spacious", const: "spacious" }
|
|
6357
6412
|
]
|
|
6358
6413
|
},
|
|
6414
|
+
xAxisFormatType: {
|
|
6415
|
+
type: "string",
|
|
6416
|
+
oneOf: [
|
|
6417
|
+
{ title: "Date and Month", const: "Date and Month" },
|
|
6418
|
+
{ title: "Month and Year", const: "Month and Year" }
|
|
6419
|
+
]
|
|
6420
|
+
},
|
|
6421
|
+
xAxisType: {
|
|
6422
|
+
type: "string",
|
|
6423
|
+
oneOf: [
|
|
6424
|
+
{ title: "Date", const: "date" },
|
|
6425
|
+
{ title: "String", const: "string" },
|
|
6426
|
+
{ title: "Number", const: "number" }
|
|
6427
|
+
]
|
|
6428
|
+
},
|
|
6359
6429
|
layout: {
|
|
6360
6430
|
type: "array",
|
|
6361
6431
|
items: {
|
|
@@ -6491,6 +6561,9 @@ const ComponentSchema = {
|
|
|
6491
6561
|
items: {
|
|
6492
6562
|
type: "object",
|
|
6493
6563
|
properties: {
|
|
6564
|
+
key: {
|
|
6565
|
+
type: "string"
|
|
6566
|
+
},
|
|
6494
6567
|
label: {
|
|
6495
6568
|
type: "string"
|
|
6496
6569
|
}
|
|
@@ -6502,12 +6575,26 @@ const ComponentSchema = {
|
|
|
6502
6575
|
items: {
|
|
6503
6576
|
type: "object",
|
|
6504
6577
|
properties: {
|
|
6578
|
+
key: {
|
|
6579
|
+
type: "string"
|
|
6580
|
+
},
|
|
6505
6581
|
label: {
|
|
6506
6582
|
type: "string"
|
|
6507
6583
|
}
|
|
6508
6584
|
}
|
|
6509
6585
|
}
|
|
6510
6586
|
},
|
|
6587
|
+
tabIcons: {
|
|
6588
|
+
type: "array",
|
|
6589
|
+
items: {
|
|
6590
|
+
type: "object",
|
|
6591
|
+
properties: {
|
|
6592
|
+
url: {
|
|
6593
|
+
type: "string"
|
|
6594
|
+
}
|
|
6595
|
+
}
|
|
6596
|
+
}
|
|
6597
|
+
},
|
|
6511
6598
|
InputFormatingAndMasking: {
|
|
6512
6599
|
type: "array",
|
|
6513
6600
|
items: {
|
|
@@ -6569,7 +6656,9 @@ const ComponentSchema = {
|
|
|
6569
6656
|
{
|
|
6570
6657
|
title: "Stack Horizontal Bar Graph",
|
|
6571
6658
|
const: "HorizontalStackBarGraph"
|
|
6572
|
-
}
|
|
6659
|
+
},
|
|
6660
|
+
{ title: "Area Graph", const: "AreaGraph" },
|
|
6661
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6573
6662
|
]
|
|
6574
6663
|
},
|
|
6575
6664
|
iconName: {
|
|
@@ -6605,6 +6694,7 @@ const ComponentSchema = {
|
|
|
6605
6694
|
{ title: "Drafts Icon", const: "DraftsIcon" },
|
|
6606
6695
|
{ title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
|
|
6607
6696
|
{ title: "Paste Icon", const: "PasteIcon" },
|
|
6697
|
+
{ title: "Calendar", const: "Calendar" },
|
|
6608
6698
|
{ title: "Prev Icon", const: "PrevIcon" },
|
|
6609
6699
|
{ title: "Verified Icon", const: "VerifiedIcon" },
|
|
6610
6700
|
{ title: "Table Add Icon", const: "TableAddIcon" },
|
|
@@ -6621,7 +6711,12 @@ const ComponentSchema = {
|
|
|
6621
6711
|
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6622
6712
|
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6623
6713
|
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
6624
|
-
{ title: "Payout", const: "Payout" }
|
|
6714
|
+
{ title: "Payout", const: "Payout" },
|
|
6715
|
+
{ title: "Info Outlined", const: "InfoOutlinedIcon" },
|
|
6716
|
+
{ title: "Territory Add", const: "TerritoryAdd" },
|
|
6717
|
+
{ title: "Territory Edit", const: "TerritoryEdit" },
|
|
6718
|
+
{ title: "Territory Delete", const: "TerritoryDelete" },
|
|
6719
|
+
{ title: "Git Compare", const: "GitCompare" }
|
|
6625
6720
|
]
|
|
6626
6721
|
},
|
|
6627
6722
|
color: {
|
|
@@ -7727,6 +7822,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7727
7822
|
]
|
|
7728
7823
|
};
|
|
7729
7824
|
};
|
|
7825
|
+
const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
|
|
7826
|
+
return {
|
|
7827
|
+
type: "Control",
|
|
7828
|
+
scope: `#/properties/${parentScope}`,
|
|
7829
|
+
options: {
|
|
7830
|
+
widget: "Array"
|
|
7831
|
+
},
|
|
7832
|
+
config: {
|
|
7833
|
+
layout: 12,
|
|
7834
|
+
main: {
|
|
7835
|
+
label: arrayLabel
|
|
7836
|
+
},
|
|
7837
|
+
style: {
|
|
7838
|
+
marginLeft: "-24px",
|
|
7839
|
+
marginBottom: "24px !important",
|
|
7840
|
+
labelStyle: {
|
|
7841
|
+
marginLeft: "24px"
|
|
7842
|
+
},
|
|
7843
|
+
detailsStyle: {
|
|
7844
|
+
marginLeft: "24px"
|
|
7845
|
+
}
|
|
7846
|
+
}
|
|
7847
|
+
},
|
|
7848
|
+
elements: [
|
|
7849
|
+
{
|
|
7850
|
+
type: "Control",
|
|
7851
|
+
scope: `#/properties/${firstFieldScope}`,
|
|
7852
|
+
options: {
|
|
7853
|
+
widget: "InputField"
|
|
7854
|
+
},
|
|
7855
|
+
config: {
|
|
7856
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7857
|
+
main: {
|
|
7858
|
+
label: firstFieldLabel || "Labels for Tab"
|
|
7859
|
+
}
|
|
7860
|
+
}
|
|
7861
|
+
},
|
|
7862
|
+
{
|
|
7863
|
+
type: "Control",
|
|
7864
|
+
scope: `#/properties/${secondFieldScope}`,
|
|
7865
|
+
options: {
|
|
7866
|
+
widget: "InputField"
|
|
7867
|
+
},
|
|
7868
|
+
config: {
|
|
7869
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7870
|
+
main: {
|
|
7871
|
+
label: secondFieldLabel || "Labels for Tab"
|
|
7872
|
+
}
|
|
7873
|
+
}
|
|
7874
|
+
},
|
|
7875
|
+
emptyBox$1("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7876
|
+
]
|
|
7877
|
+
};
|
|
7878
|
+
};
|
|
7730
7879
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7731
7880
|
sizeHolder.elements[1] = {
|
|
7732
7881
|
type: "Control",
|
|
@@ -7849,6 +7998,14 @@ const BaseSection = {
|
|
|
7849
7998
|
const buildPropertiesSection = function(type) {
|
|
7850
7999
|
let uiSchema = _.cloneDeep(BaseSection);
|
|
7851
8000
|
switch (type) {
|
|
8001
|
+
case "OTP_Input":
|
|
8002
|
+
uiSchema.elements = [
|
|
8003
|
+
getInputField("seperator", "Seperator"),
|
|
8004
|
+
getInputField("length", "OTP Length"),
|
|
8005
|
+
getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
|
|
8006
|
+
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
8007
|
+
];
|
|
8008
|
+
break;
|
|
7852
8009
|
case "Array":
|
|
7853
8010
|
uiSchema.elements = [
|
|
7854
8011
|
getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
|
|
@@ -7856,6 +8013,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7856
8013
|
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
7857
8014
|
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7858
8015
|
getInputField("childElementLabel", "Child Element Label"),
|
|
8016
|
+
getInputField("showKeyAsLabel", "ShowKey As Label"),
|
|
8017
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8018
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8019
|
+
getInputField("spacing", "Spacing"),
|
|
7859
8020
|
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7860
8021
|
];
|
|
7861
8022
|
break;
|
|
@@ -7909,6 +8070,17 @@ const buildPropertiesSection = function(type) {
|
|
|
7909
8070
|
emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7910
8071
|
];
|
|
7911
8072
|
break;
|
|
8073
|
+
case "PopOver":
|
|
8074
|
+
uiSchema.elements = [
|
|
8075
|
+
getSelectField("positionVertical", "Attach To (Vertical)"),
|
|
8076
|
+
getSelectField("positionHorizontal", "Attach To (Horizontal)"),
|
|
8077
|
+
getSelectField("contentVertical", "Popover Start (Vertical)"),
|
|
8078
|
+
getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
|
|
8079
|
+
getInputField("width", "Width"),
|
|
8080
|
+
getInputField("gap", "Gap"),
|
|
8081
|
+
emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
|
|
8082
|
+
];
|
|
8083
|
+
break;
|
|
7912
8084
|
case "Text":
|
|
7913
8085
|
uiSchema.elements = [
|
|
7914
8086
|
getInputField("placeholder", "Placeholder"),
|
|
@@ -7916,7 +8088,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7916
8088
|
getSelectField("variant", "Variant"),
|
|
7917
8089
|
getInputField("toolTip", "Tooltip"),
|
|
7918
8090
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
7919
|
-
|
|
8091
|
+
getSelectField("iconName", "Icon Name"),
|
|
8092
|
+
emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
|
|
7920
8093
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
7921
8094
|
getInputField("keyName", "Event Key Name")
|
|
7922
8095
|
];
|
|
@@ -7985,6 +8158,17 @@ const buildPropertiesSection = function(type) {
|
|
|
7985
8158
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7986
8159
|
];
|
|
7987
8160
|
break;
|
|
8161
|
+
case "MetricCard":
|
|
8162
|
+
uiSchema.elements = [
|
|
8163
|
+
getInputField("url", "Image Url"),
|
|
8164
|
+
getInputField("label", "Label"),
|
|
8165
|
+
getInputField("cardValue", "Value"),
|
|
8166
|
+
getInputField("description", "Description"),
|
|
8167
|
+
getSelectField("growthRate", "Growth Rate"),
|
|
8168
|
+
getInputField("color", "Card Color"),
|
|
8169
|
+
emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8170
|
+
];
|
|
8171
|
+
break;
|
|
7988
8172
|
case "Button":
|
|
7989
8173
|
uiSchema.elements = [
|
|
7990
8174
|
getSelectField("buttonType", "Button Type"),
|
|
@@ -7995,6 +8179,14 @@ const buildPropertiesSection = function(type) {
|
|
|
7995
8179
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7996
8180
|
];
|
|
7997
8181
|
break;
|
|
8182
|
+
case "ButtonGroup":
|
|
8183
|
+
uiSchema.elements = [
|
|
8184
|
+
getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
|
|
8185
|
+
getInputField("size", "Size"),
|
|
8186
|
+
getSelectField("color", "Color"),
|
|
8187
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8188
|
+
];
|
|
8189
|
+
break;
|
|
7998
8190
|
case "Box":
|
|
7999
8191
|
uiSchema.elements = [
|
|
8000
8192
|
getSelectField("iconName", "Icon Name"),
|
|
@@ -8005,20 +8197,27 @@ const buildPropertiesSection = function(type) {
|
|
|
8005
8197
|
uiSchema.elements = [
|
|
8006
8198
|
getInputField("height", "Height"),
|
|
8007
8199
|
getInputField("heading", "Heading"),
|
|
8200
|
+
getInputField("subHeader", "Sub Header"),
|
|
8008
8201
|
getSelectField("graphType", "Graph Type"),
|
|
8009
8202
|
getInputField("leftLabel", "Left Label"),
|
|
8203
|
+
getInputField("rightLabel", "Right Label"),
|
|
8010
8204
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8011
8205
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8012
8206
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
8013
8207
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
8014
8208
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
8015
|
-
getInputField("yAxisValue", "Y-
|
|
8016
|
-
getInputField("xAxisValue", "X-
|
|
8209
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
8210
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
8211
|
+
getSelectField("xAxisType", "X-AxisType"),
|
|
8017
8212
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8018
8213
|
getInputField("leftMargin", "Left Margin"),
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8214
|
+
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8215
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8216
|
+
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8217
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
8218
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
8219
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
8220
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
|
|
8022
8221
|
];
|
|
8023
8222
|
break;
|
|
8024
8223
|
case "WrapperSection":
|
|
@@ -8026,9 +8225,12 @@ const buildPropertiesSection = function(type) {
|
|
|
8026
8225
|
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
8027
8226
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8028
8227
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8029
|
-
getInputField("rowSpacing", "Row Spacing"),
|
|
8030
8228
|
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8031
|
-
|
|
8229
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8230
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8231
|
+
getInputField("spacing", "Spacing"),
|
|
8232
|
+
getInputField("iconUrl", "Icon Url"),
|
|
8233
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8032
8234
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8033
8235
|
];
|
|
8034
8236
|
break;
|
|
@@ -8037,7 +8239,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8037
8239
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
8038
8240
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
8039
8241
|
emptyBox$1("TabEmpty"),
|
|
8040
|
-
|
|
8242
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
8041
8243
|
];
|
|
8042
8244
|
break;
|
|
8043
8245
|
case "Table":
|
|
@@ -8062,12 +8264,13 @@ const buildPropertiesSection = function(type) {
|
|
|
8062
8264
|
buildWrapper("Tree Table Properties", [
|
|
8063
8265
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8064
8266
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
8267
|
+
getRadioInputField("mergeExpandIcon", "Merge Expand Icon", ["YES", "NO"]),
|
|
8065
8268
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
8066
8269
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
8067
8270
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
8068
8271
|
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8069
|
-
,
|
|
8070
|
-
|
|
8272
|
+
getInputField("expandedKey", "Expanded Key"),
|
|
8273
|
+
getInputField("parentIdKey", "Parent Key")
|
|
8071
8274
|
]),
|
|
8072
8275
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
8073
8276
|
sizeHolder,
|
|
@@ -8101,12 +8304,18 @@ const buildPropertiesSection = function(type) {
|
|
|
8101
8304
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8102
8305
|
];
|
|
8103
8306
|
break;
|
|
8307
|
+
case "PdfViewer":
|
|
8308
|
+
uiSchema.elements = [
|
|
8309
|
+
getInputField("scale", "Zoom"),
|
|
8310
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8311
|
+
];
|
|
8312
|
+
break;
|
|
8104
8313
|
case "Date":
|
|
8105
8314
|
uiSchema.elements = [
|
|
8106
8315
|
getSelectField("variant", "Variant"),
|
|
8107
8316
|
getInputField("toolTip", "Tooltip"),
|
|
8108
8317
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8109
|
-
emptyBox$1("
|
|
8318
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8110
8319
|
];
|
|
8111
8320
|
break;
|
|
8112
8321
|
case "DateTime":
|
|
@@ -8114,7 +8323,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8114
8323
|
getSelectField("variant", "Variant"),
|
|
8115
8324
|
getInputField("toolTip", "Tooltip"),
|
|
8116
8325
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8117
|
-
emptyBox$1("
|
|
8326
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8118
8327
|
];
|
|
8119
8328
|
break;
|
|
8120
8329
|
case "Thought":
|
|
@@ -8126,6 +8335,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8126
8335
|
uiSchema.elements = [
|
|
8127
8336
|
getInputField("imageUrl", "Image URL"),
|
|
8128
8337
|
getInputField("height", "Image Height"),
|
|
8338
|
+
getInputField("toolTip", "Tooltip"),
|
|
8339
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8129
8340
|
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8130
8341
|
];
|
|
8131
8342
|
break;
|
|
@@ -8138,7 +8349,11 @@ const buildPropertiesSection = function(type) {
|
|
|
8138
8349
|
getInputField("description", "Enter description"),
|
|
8139
8350
|
getInputField("toolTip", "Tooltip"),
|
|
8140
8351
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8141
|
-
|
|
8352
|
+
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
8353
|
+
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8354
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8355
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8356
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8142
8357
|
];
|
|
8143
8358
|
break;
|
|
8144
8359
|
case "Camera":
|
|
@@ -8187,13 +8402,13 @@ const StyleSection = {
|
|
|
8187
8402
|
}
|
|
8188
8403
|
]
|
|
8189
8404
|
};
|
|
8190
|
-
const TableSection = (theme) => {
|
|
8405
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
8191
8406
|
const uiSchema = {
|
|
8192
8407
|
type: "HorizontalLayout",
|
|
8193
8408
|
elements: [
|
|
8194
8409
|
{
|
|
8195
8410
|
type: "Control",
|
|
8196
|
-
scope:
|
|
8411
|
+
scope: `#/properties/${scopeName}`,
|
|
8197
8412
|
options: {
|
|
8198
8413
|
widget: "Table"
|
|
8199
8414
|
},
|
|
@@ -8204,7 +8419,7 @@ const TableSection = (theme) => {
|
|
|
8204
8419
|
{
|
|
8205
8420
|
widget: {
|
|
8206
8421
|
type: "Control",
|
|
8207
|
-
scope:
|
|
8422
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
8208
8423
|
options: {
|
|
8209
8424
|
widget: "IconButton"
|
|
8210
8425
|
},
|
|
@@ -8231,7 +8446,7 @@ const TableSection = (theme) => {
|
|
|
8231
8446
|
{
|
|
8232
8447
|
widget: {
|
|
8233
8448
|
type: "Control",
|
|
8234
|
-
scope: "
|
|
8449
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8235
8450
|
options: {
|
|
8236
8451
|
widget: "IconButton"
|
|
8237
8452
|
},
|
|
@@ -8296,7 +8511,7 @@ const TableSection = (theme) => {
|
|
|
8296
8511
|
},
|
|
8297
8512
|
{
|
|
8298
8513
|
type: "Control",
|
|
8299
|
-
scope: "
|
|
8514
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8300
8515
|
options: {
|
|
8301
8516
|
widget: "Button"
|
|
8302
8517
|
},
|
|
@@ -8489,6 +8704,10 @@ var buildConfig = (FormData) => {
|
|
|
8489
8704
|
if (formData.events) {
|
|
8490
8705
|
delete formData.events;
|
|
8491
8706
|
}
|
|
8707
|
+
if (formData.tabLabelElements) {
|
|
8708
|
+
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8709
|
+
delete formData.tabLabelElements;
|
|
8710
|
+
}
|
|
8492
8711
|
component = { ...formData, ...component };
|
|
8493
8712
|
return component;
|
|
8494
8713
|
};
|
|
@@ -8521,9 +8740,27 @@ const flatObjectValueInArray = (config2 = []) => {
|
|
|
8521
8740
|
});
|
|
8522
8741
|
return data;
|
|
8523
8742
|
};
|
|
8743
|
+
const createKeyValueMap = (config2 = []) => {
|
|
8744
|
+
return config2.reduce((acc, item) => {
|
|
8745
|
+
if (!item.key)
|
|
8746
|
+
return acc;
|
|
8747
|
+
acc[item.key] = item.value;
|
|
8748
|
+
return acc;
|
|
8749
|
+
}, {});
|
|
8750
|
+
};
|
|
8524
8751
|
const clearFromSessionStorage = () => {
|
|
8525
8752
|
sessionStorage.removeItem("pageFormdata");
|
|
8526
8753
|
};
|
|
8754
|
+
const validateAndShowErrors = (store2) => {
|
|
8755
|
+
if (_.isEmpty(store2.ctx.core.errors))
|
|
8756
|
+
return false;
|
|
8757
|
+
store2.setValidation("ValidateAndShow");
|
|
8758
|
+
store2.setNotify({
|
|
8759
|
+
Fail: true,
|
|
8760
|
+
FailMessage: "Error on Page"
|
|
8761
|
+
});
|
|
8762
|
+
return true;
|
|
8763
|
+
};
|
|
8527
8764
|
const getNavigationHistory = (config2, path) => {
|
|
8528
8765
|
if (path) {
|
|
8529
8766
|
let urlRoutes = config2.name;
|
|
@@ -8582,11 +8819,13 @@ async function saveHandler(store2, service2, submitHandler) {
|
|
|
8582
8819
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8583
8820
|
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8584
8821
|
} catch (err) {
|
|
8585
|
-
navigateHandler(store2, false);
|
|
8822
|
+
navigateHandler(store2, false, void 0, err.message);
|
|
8586
8823
|
}
|
|
8824
|
+
} else {
|
|
8825
|
+
navigateHandler(store2, false);
|
|
8587
8826
|
}
|
|
8588
8827
|
}
|
|
8589
|
-
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
8828
|
+
const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
|
|
8590
8829
|
if (isSubmitted) {
|
|
8591
8830
|
sessionStorage.removeItem("pageFormdata");
|
|
8592
8831
|
store2.navigate(pageName || -1);
|
|
@@ -8598,7 +8837,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
|
8598
8837
|
store2.setValidation("ValidateAndShow");
|
|
8599
8838
|
store2.setNotify({
|
|
8600
8839
|
Fail: true,
|
|
8601
|
-
FailMessage: "Errors on Page"
|
|
8840
|
+
FailMessage: errorMessage || "Errors on Page"
|
|
8602
8841
|
});
|
|
8603
8842
|
}
|
|
8604
8843
|
};
|
|
@@ -8627,7 +8866,7 @@ const sectionLabels = {
|
|
|
8627
8866
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8628
8867
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8629
8868
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8630
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8869
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8631
8870
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8632
8871
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8633
8872
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8638,15 +8877,19 @@ const sectionLabels = {
|
|
|
8638
8877
|
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8639
8878
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8640
8879
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8880
|
+
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8641
8881
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8642
8882
|
Timer: ["Core", "Events", "Style"],
|
|
8643
8883
|
Rank: ["Core", "Events", "Style"],
|
|
8644
8884
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8645
|
-
|
|
8885
|
+
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8886
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8646
8887
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8647
8888
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8648
8889
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8649
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8890
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8891
|
+
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8892
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8650
8893
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8651
8894
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8652
8895
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8655,9 +8898,10 @@ const sectionLabels = {
|
|
|
8655
8898
|
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8656
8899
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8657
8900
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8658
|
-
Image: ["Core", "Properties", "Style"],
|
|
8901
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8659
8902
|
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8660
|
-
Camera: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8903
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8904
|
+
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8661
8905
|
};
|
|
8662
8906
|
function refreshPage(type, store2) {
|
|
8663
8907
|
var _a, _b;
|
|
@@ -8670,6 +8914,7 @@ function refreshPage(type, store2) {
|
|
|
8670
8914
|
Style: StyleSection,
|
|
8671
8915
|
Events: EventSection(store2.theme.myTheme),
|
|
8672
8916
|
Components: TableSection(store2.theme.myTheme),
|
|
8917
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8673
8918
|
Properties: buildPropertiesSection(type),
|
|
8674
8919
|
Validation: ValidationSection
|
|
8675
8920
|
};
|
|
@@ -8860,13 +9105,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8860
9105
|
},
|
|
8861
9106
|
editComponents: function() {
|
|
8862
9107
|
var _a, _b, _c;
|
|
9108
|
+
if (validateAndShowErrors(store2))
|
|
9109
|
+
return;
|
|
8863
9110
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8864
9111
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8865
9112
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8866
9113
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8867
9114
|
if (path) {
|
|
8868
|
-
|
|
8869
|
-
|
|
9115
|
+
let finalPath = `${path}`;
|
|
9116
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
|
|
9117
|
+
finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
|
|
9118
|
+
} else {
|
|
9119
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9120
|
+
}
|
|
8870
9121
|
store2.searchParams.set("path", finalPath);
|
|
8871
9122
|
store2.setSearchParams(store2.searchParams);
|
|
8872
9123
|
this.setPage();
|
|
@@ -8878,7 +9129,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8878
9129
|
var _a;
|
|
8879
9130
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8880
9131
|
const rowId = sessionStorage.getItem("rowId");
|
|
8881
|
-
|
|
9132
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9133
|
+
if (isTabLabelElements) {
|
|
9134
|
+
store2.formData.tabLabelElements.splice(rowId, 1);
|
|
9135
|
+
} else {
|
|
9136
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9137
|
+
}
|
|
8882
9138
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8883
9139
|
const data = path ? _.get(response, path) : response;
|
|
8884
9140
|
store2.setFormdata(data);
|
|
@@ -8886,6 +9142,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8886
9142
|
store2.updateDialog("popUpComponentSection");
|
|
8887
9143
|
}
|
|
8888
9144
|
sessionStorage.removeItem("rowId");
|
|
9145
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
8889
9146
|
},
|
|
8890
9147
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8891
9148
|
var _a;
|
|
@@ -8901,18 +9158,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8901
9158
|
},
|
|
8902
9159
|
widgetAddClickHandler: function() {
|
|
8903
9160
|
var _a;
|
|
9161
|
+
if (validateAndShowErrors(store2))
|
|
9162
|
+
return;
|
|
8904
9163
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8905
9164
|
store2.formData.elements = [];
|
|
8906
9165
|
}
|
|
9166
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9167
|
+
store2.formData.tabLabelElements = [];
|
|
9168
|
+
}
|
|
8907
9169
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8908
9170
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8909
|
-
|
|
9171
|
+
let finalPath = `${path}`;
|
|
9172
|
+
if (dynamicData2.path.startsWith("tabLabel")) {
|
|
9173
|
+
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9174
|
+
} else {
|
|
9175
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9176
|
+
}
|
|
8910
9177
|
store2.searchParams.set("path", finalPath);
|
|
8911
9178
|
store2.setSearchParams(store2.searchParams);
|
|
8912
9179
|
this.setPage();
|
|
8913
9180
|
},
|
|
8914
9181
|
eventEditHandler: function() {
|
|
8915
9182
|
var _a, _b;
|
|
9183
|
+
if (validateAndShowErrors(store2))
|
|
9184
|
+
return;
|
|
8916
9185
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8917
9186
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8918
9187
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8922,6 +9191,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8922
9191
|
},
|
|
8923
9192
|
eventAddHandler: function() {
|
|
8924
9193
|
var _a, _b;
|
|
9194
|
+
if (validateAndShowErrors(store2))
|
|
9195
|
+
return;
|
|
8925
9196
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8926
9197
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8927
9198
|
if (!Array.isArray(store2.formData.events)) {
|
|
@@ -8937,6 +9208,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8937
9208
|
deletePopUpComponent: function() {
|
|
8938
9209
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8939
9210
|
sessionStorage.setItem("rowId", rowId);
|
|
9211
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
8940
9212
|
store2.updateDialog("popUpComponentSection");
|
|
8941
9213
|
},
|
|
8942
9214
|
deletePopUpEvent: function() {
|
|
@@ -8983,9 +9255,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8983
9255
|
if (!Array.isArray(store2.formData.events)) {
|
|
8984
9256
|
store2.formData.events = [];
|
|
8985
9257
|
}
|
|
9258
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9259
|
+
store2.formData.tabLabelElements = [];
|
|
9260
|
+
}
|
|
8986
9261
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8987
9262
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8988
|
-
const
|
|
9263
|
+
const currentLength = {
|
|
9264
|
+
"TabsComponent": formData.tabLabelElements.length,
|
|
9265
|
+
"Component": formData.elements.length,
|
|
9266
|
+
"Events": formData.events.length
|
|
9267
|
+
};
|
|
9268
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
8989
9269
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8990
9270
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8991
9271
|
const notificationMessages = {
|
|
@@ -9020,6 +9300,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9020
9300
|
if (elementType === "Component") {
|
|
9021
9301
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9022
9302
|
}
|
|
9303
|
+
if (elementType === "TabsComponent") {
|
|
9304
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9305
|
+
}
|
|
9023
9306
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9024
9307
|
},
|
|
9025
9308
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -9095,6 +9378,8 @@ var pageMaster = (funcParams) => {
|
|
|
9095
9378
|
},
|
|
9096
9379
|
onAddClickHandler: function() {
|
|
9097
9380
|
var _a;
|
|
9381
|
+
if (validateAndShowErrors(store2))
|
|
9382
|
+
return;
|
|
9098
9383
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9099
9384
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9100
9385
|
store2.formData.elements = [];
|
|
@@ -9118,6 +9403,8 @@ var pageMaster = (funcParams) => {
|
|
|
9118
9403
|
},
|
|
9119
9404
|
eventAddHandler: function() {
|
|
9120
9405
|
var _a;
|
|
9406
|
+
if (validateAndShowErrors(store2))
|
|
9407
|
+
return;
|
|
9121
9408
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9122
9409
|
if (!Array.isArray(store2.formData.events)) {
|
|
9123
9410
|
store2.formData.events = [];
|
|
@@ -9128,6 +9415,8 @@ var pageMaster = (funcParams) => {
|
|
|
9128
9415
|
},
|
|
9129
9416
|
editEvent: function() {
|
|
9130
9417
|
var _a;
|
|
9418
|
+
if (validateAndShowErrors(store2))
|
|
9419
|
+
return;
|
|
9131
9420
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9132
9421
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9133
9422
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
@@ -9215,7 +9504,9 @@ const EventSchema = {
|
|
|
9215
9504
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9216
9505
|
{ title: "Download", const: "onDownload" },
|
|
9217
9506
|
{ title: "Fail", const: "Fail" },
|
|
9218
|
-
{ title: "
|
|
9507
|
+
{ title: "onClose", const: "onClose" },
|
|
9508
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9509
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9219
9510
|
]
|
|
9220
9511
|
},
|
|
9221
9512
|
Handler: {
|
|
@@ -10107,6 +10398,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10107
10398
|
},
|
|
10108
10399
|
addEvent: function() {
|
|
10109
10400
|
var _a, _b, _c;
|
|
10401
|
+
if (validateAndShowErrors(store2))
|
|
10402
|
+
return;
|
|
10110
10403
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10111
10404
|
if (!Array.isArray(store2.formData.events)) {
|
|
10112
10405
|
store2.formData.events = [];
|
|
@@ -10119,6 +10412,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10119
10412
|
},
|
|
10120
10413
|
editEvent: function() {
|
|
10121
10414
|
var _a;
|
|
10415
|
+
if (validateAndShowErrors(store2))
|
|
10416
|
+
return;
|
|
10122
10417
|
const rowId = dynamicData2.path.split(".")[1];
|
|
10123
10418
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10124
10419
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
@@ -10554,7 +10849,7 @@ var service = (funcParams) => {
|
|
|
10554
10849
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10555
10850
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10556
10851
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10557
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10852
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10558
10853
|
});
|
|
10559
10854
|
window.dispatchEvent(event2);
|
|
10560
10855
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10597,6 +10892,25 @@ var service = (funcParams) => {
|
|
|
10597
10892
|
funcParams.store.setUiSchema(uiSchema);
|
|
10598
10893
|
});
|
|
10599
10894
|
},
|
|
10895
|
+
getStyle: () => {
|
|
10896
|
+
var _a, _b, _c, _d;
|
|
10897
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10898
|
+
if (cloneEventGroup.setStyle) {
|
|
10899
|
+
let finalResponse = {};
|
|
10900
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10901
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10902
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10903
|
+
finalResponse = executeEvents({
|
|
10904
|
+
...executeEventsParameters,
|
|
10905
|
+
config: eventConfig,
|
|
10906
|
+
componentName: path
|
|
10907
|
+
});
|
|
10908
|
+
}
|
|
10909
|
+
return finalResponse;
|
|
10910
|
+
}
|
|
10911
|
+
}
|
|
10912
|
+
return {};
|
|
10913
|
+
},
|
|
10600
10914
|
onCellRenderer: (cellParams) => {
|
|
10601
10915
|
var _a, _b, _c, _d, _e;
|
|
10602
10916
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10626,6 +10940,9 @@ var service = (funcParams) => {
|
|
|
10626
10940
|
onFileDelete: async function() {
|
|
10627
10941
|
this.callHandler("onFileDelete");
|
|
10628
10942
|
},
|
|
10943
|
+
onClose: function() {
|
|
10944
|
+
this.callHandler("onClose");
|
|
10945
|
+
},
|
|
10629
10946
|
onMount: function() {
|
|
10630
10947
|
this.callHandler("onMount");
|
|
10631
10948
|
},
|
|
@@ -10676,8 +10993,8 @@ var service = (funcParams) => {
|
|
|
10676
10993
|
return;
|
|
10677
10994
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10678
10995
|
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10679
|
-
var _a
|
|
10680
|
-
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]
|
|
10996
|
+
var _a;
|
|
10997
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
10681
10998
|
return [];
|
|
10682
10999
|
}
|
|
10683
11000
|
return eventGroups.onChange[componentName].map(
|
|
@@ -10912,7 +11229,7 @@ const BarGraph = {
|
|
|
10912
11229
|
type: "BarGraph",
|
|
10913
11230
|
legendLabels: null
|
|
10914
11231
|
},
|
|
10915
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11232
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10916
11233
|
}
|
|
10917
11234
|
};
|
|
10918
11235
|
const PieGraph = {
|
|
@@ -10927,7 +11244,7 @@ const PieGraph = {
|
|
|
10927
11244
|
type: "PieGraph",
|
|
10928
11245
|
legendLabels: null
|
|
10929
11246
|
},
|
|
10930
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11247
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10931
11248
|
}
|
|
10932
11249
|
};
|
|
10933
11250
|
const LineGraph = {
|
|
@@ -10942,7 +11259,7 @@ const LineGraph = {
|
|
|
10942
11259
|
type: "LineGraph",
|
|
10943
11260
|
legendLabels: null
|
|
10944
11261
|
},
|
|
10945
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11262
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10946
11263
|
}
|
|
10947
11264
|
};
|
|
10948
11265
|
const HorizontalBarGraph = {
|
|
@@ -10957,7 +11274,37 @@ const HorizontalBarGraph = {
|
|
|
10957
11274
|
type: "HorizontalBarGraph",
|
|
10958
11275
|
legendLabels: null
|
|
10959
11276
|
},
|
|
10960
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11277
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11278
|
+
}
|
|
11279
|
+
};
|
|
11280
|
+
const AreaBarGraph = {
|
|
11281
|
+
type: "Control",
|
|
11282
|
+
scope: "#/properties/graph",
|
|
11283
|
+
options: {
|
|
11284
|
+
widget: "Graph"
|
|
11285
|
+
},
|
|
11286
|
+
config: {
|
|
11287
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11288
|
+
main: {
|
|
11289
|
+
type: "AreaGraph",
|
|
11290
|
+
legendLabels: null
|
|
11291
|
+
},
|
|
11292
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11293
|
+
}
|
|
11294
|
+
};
|
|
11295
|
+
const StackBarLineG = {
|
|
11296
|
+
type: "Control",
|
|
11297
|
+
scope: "#/properties/graph",
|
|
11298
|
+
options: {
|
|
11299
|
+
widget: "Graph"
|
|
11300
|
+
},
|
|
11301
|
+
config: {
|
|
11302
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11303
|
+
main: {
|
|
11304
|
+
type: "StackBarLineGraph",
|
|
11305
|
+
legendLabels: null
|
|
11306
|
+
},
|
|
11307
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10961
11308
|
}
|
|
10962
11309
|
};
|
|
10963
11310
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
@@ -10976,13 +11323,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10976
11323
|
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10977
11324
|
}
|
|
10978
11325
|
if (config2.legendLabels) {
|
|
10979
|
-
horizontalBarGraph.config.main.legendLabels =
|
|
11326
|
+
horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
10980
11327
|
}
|
|
10981
11328
|
if (config2.legendDirection) {
|
|
10982
11329
|
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
10983
11330
|
}
|
|
10984
11331
|
if (config2.pieArcColors) {
|
|
10985
|
-
horizontalBarGraph.config.style.
|
|
11332
|
+
horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10986
11333
|
}
|
|
10987
11334
|
if (config2.xAxisValue) {
|
|
10988
11335
|
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11116,13 +11463,13 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
11116
11463
|
pieGraph.scope = componentScope2;
|
|
11117
11464
|
pieGraph.config.main.header = config2.heading;
|
|
11118
11465
|
if (config2.legendLabels) {
|
|
11119
|
-
pieGraph.config.main.legendLabels =
|
|
11466
|
+
pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11120
11467
|
}
|
|
11121
11468
|
if (config2.xAxisValue) {
|
|
11122
11469
|
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11123
11470
|
}
|
|
11124
11471
|
if (config2.pieArcColors) {
|
|
11125
|
-
pieGraph.config.style.
|
|
11472
|
+
pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11126
11473
|
}
|
|
11127
11474
|
return pieGraph;
|
|
11128
11475
|
};
|
|
@@ -11145,10 +11492,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11145
11492
|
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
11146
11493
|
barGraph.config.main.header = config2.heading;
|
|
11147
11494
|
if (config2.legendLabels) {
|
|
11148
|
-
barGraph.config.main.legendLabels =
|
|
11495
|
+
barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11149
11496
|
}
|
|
11150
11497
|
if (config2.pieArcColors) {
|
|
11151
|
-
barGraph.config.style.
|
|
11498
|
+
barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11152
11499
|
}
|
|
11153
11500
|
if (config2.xAxisValue) {
|
|
11154
11501
|
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11214,6 +11561,7 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11214
11561
|
}
|
|
11215
11562
|
if (config2.sectionLabels) {
|
|
11216
11563
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11564
|
+
tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
|
|
11217
11565
|
}
|
|
11218
11566
|
if (config2.style) {
|
|
11219
11567
|
tab.config.style = JSON.parse(config2.style);
|
|
@@ -11226,9 +11574,11 @@ var WrapperSection = {
|
|
|
11226
11574
|
config: {
|
|
11227
11575
|
layout: 12,
|
|
11228
11576
|
main: {
|
|
11229
|
-
rowSpacing: 3,
|
|
11230
11577
|
divider: true,
|
|
11231
|
-
label: "Default Label"
|
|
11578
|
+
label: "Default Label",
|
|
11579
|
+
rowSpacing: 2,
|
|
11580
|
+
columnSpacing: 2,
|
|
11581
|
+
spacing: 2
|
|
11232
11582
|
},
|
|
11233
11583
|
defaultStyle: true
|
|
11234
11584
|
},
|
|
@@ -11241,6 +11591,10 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11241
11591
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11242
11592
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11243
11593
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11594
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11595
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11596
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11597
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11244
11598
|
if (config2.defaultStyle) {
|
|
11245
11599
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11246
11600
|
}
|
|
@@ -11296,6 +11650,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11296
11650
|
if (config2.toolTipPosition) {
|
|
11297
11651
|
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11298
11652
|
}
|
|
11653
|
+
if (config2.iconName) {
|
|
11654
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11655
|
+
}
|
|
11299
11656
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11300
11657
|
inputField.scope = componentScope2;
|
|
11301
11658
|
return inputField;
|
|
@@ -11312,7 +11669,8 @@ var SelectInputField = {
|
|
|
11312
11669
|
label: "",
|
|
11313
11670
|
type: "text",
|
|
11314
11671
|
freeSole: false
|
|
11315
|
-
}
|
|
11672
|
+
},
|
|
11673
|
+
style: {}
|
|
11316
11674
|
}
|
|
11317
11675
|
};
|
|
11318
11676
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11339,6 +11697,9 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11339
11697
|
if (config2.toolTipPosition) {
|
|
11340
11698
|
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11341
11699
|
}
|
|
11700
|
+
if (config2.style) {
|
|
11701
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11702
|
+
}
|
|
11342
11703
|
selectInputField.scope = componentScope2;
|
|
11343
11704
|
return selectInputField;
|
|
11344
11705
|
};
|
|
@@ -11500,6 +11861,15 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11500
11861
|
if (config2.layout) {
|
|
11501
11862
|
table.config.layout = createLayoutFormat(config2.layout);
|
|
11502
11863
|
}
|
|
11864
|
+
if (config2.mergeExpandIcon) {
|
|
11865
|
+
table.config.main.mergeExpandIcon = config2.mergeExpandIcon === "YES" ? true : false;
|
|
11866
|
+
}
|
|
11867
|
+
if (config2.expandedKey) {
|
|
11868
|
+
table.config.main.expandedKey = config2.expandedKey;
|
|
11869
|
+
}
|
|
11870
|
+
if (config2.parentIdKey) {
|
|
11871
|
+
table.config.main.parentIdKey = config2.parentIdKey;
|
|
11872
|
+
}
|
|
11503
11873
|
return table;
|
|
11504
11874
|
};
|
|
11505
11875
|
const Box = {
|
|
@@ -11511,7 +11881,8 @@ const Box = {
|
|
|
11511
11881
|
config: {
|
|
11512
11882
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11513
11883
|
main: {
|
|
11514
|
-
iconName: ""
|
|
11884
|
+
iconName: "",
|
|
11885
|
+
onClick: "onClick"
|
|
11515
11886
|
},
|
|
11516
11887
|
style: {}
|
|
11517
11888
|
}
|
|
@@ -11806,6 +12177,46 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11806
12177
|
}
|
|
11807
12178
|
return card;
|
|
11808
12179
|
};
|
|
12180
|
+
var MetricCard = {
|
|
12181
|
+
type: "Control",
|
|
12182
|
+
scope: "#/properties/metricpath",
|
|
12183
|
+
options: {
|
|
12184
|
+
widget: "MetricCard"
|
|
12185
|
+
},
|
|
12186
|
+
config: {
|
|
12187
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
12188
|
+
main: {}
|
|
12189
|
+
}
|
|
12190
|
+
};
|
|
12191
|
+
const buildMetricCard = (config2, componentScope2, store2) => {
|
|
12192
|
+
const card2 = _.cloneDeep(MetricCard);
|
|
12193
|
+
card2.scope = componentScope2;
|
|
12194
|
+
if (config2.style) {
|
|
12195
|
+
card2.config.style = JSON.parse(config2.style);
|
|
12196
|
+
}
|
|
12197
|
+
if (config2.layout) {
|
|
12198
|
+
card2.config.layout = createLayoutFormat(config2.layout);
|
|
12199
|
+
}
|
|
12200
|
+
if (config2.label) {
|
|
12201
|
+
card2.config.main.label = config2.label;
|
|
12202
|
+
}
|
|
12203
|
+
if (config2.url) {
|
|
12204
|
+
card2.config.main.url = config2.url;
|
|
12205
|
+
}
|
|
12206
|
+
if (config2.description) {
|
|
12207
|
+
card2.config.main.description = config2.description;
|
|
12208
|
+
}
|
|
12209
|
+
if (config2.cardValue) {
|
|
12210
|
+
card2.config.main.cardValue = config2.cardValue;
|
|
12211
|
+
}
|
|
12212
|
+
if (config2.growthRate) {
|
|
12213
|
+
card2.config.main.growthRate = config2.growthRate;
|
|
12214
|
+
}
|
|
12215
|
+
if (config2.color) {
|
|
12216
|
+
card2.config.main.color = config2.color;
|
|
12217
|
+
}
|
|
12218
|
+
return card2;
|
|
12219
|
+
};
|
|
11809
12220
|
var DateInputField = {
|
|
11810
12221
|
type: "Control",
|
|
11811
12222
|
scope: "#/properties/date",
|
|
@@ -11837,7 +12248,6 @@ const DateTime = {
|
|
|
11837
12248
|
const buildDate = (config2, componentScope2) => {
|
|
11838
12249
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11839
12250
|
dateInputField.config.main.label = config2.label;
|
|
11840
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11841
12251
|
dateInputField.scope = componentScope2;
|
|
11842
12252
|
if (config2.layout) {
|
|
11843
12253
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11851,12 +12261,14 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11851
12261
|
if (config2.toolTipPosition) {
|
|
11852
12262
|
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11853
12263
|
}
|
|
12264
|
+
if (config2.style) {
|
|
12265
|
+
dateInputField.config.style = JSON.parse(config2.style);
|
|
12266
|
+
}
|
|
11854
12267
|
return dateInputField;
|
|
11855
12268
|
};
|
|
11856
12269
|
const buildDateTime = (config2, componentScope2) => {
|
|
11857
12270
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11858
12271
|
dateTimeInputField.config.main.label = config2.label;
|
|
11859
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11860
12272
|
dateTimeInputField.scope = componentScope2;
|
|
11861
12273
|
if (config2.layout) {
|
|
11862
12274
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11870,6 +12282,9 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11870
12282
|
if (config2.toolTipPosition) {
|
|
11871
12283
|
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11872
12284
|
}
|
|
12285
|
+
if (config2.style) {
|
|
12286
|
+
dateTimeInputField.config.style = JSON.parse(config2.style);
|
|
12287
|
+
}
|
|
11873
12288
|
return dateTimeInputField;
|
|
11874
12289
|
};
|
|
11875
12290
|
var RankCard = {
|
|
@@ -11960,7 +12375,8 @@ var MultipleSelect = {
|
|
|
11960
12375
|
multiple: true,
|
|
11961
12376
|
variant: "outlined",
|
|
11962
12377
|
options: []
|
|
11963
|
-
}
|
|
12378
|
+
},
|
|
12379
|
+
style: {}
|
|
11964
12380
|
}
|
|
11965
12381
|
};
|
|
11966
12382
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -11987,6 +12403,9 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
11987
12403
|
if (config2.toolTipPosition) {
|
|
11988
12404
|
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11989
12405
|
}
|
|
12406
|
+
if (config2.style) {
|
|
12407
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12408
|
+
}
|
|
11990
12409
|
return multipleSelect;
|
|
11991
12410
|
};
|
|
11992
12411
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -12133,10 +12552,10 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
12133
12552
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
12134
12553
|
}
|
|
12135
12554
|
if (config2.legendLabels) {
|
|
12136
|
-
lineGraph.config.main.legendLabels =
|
|
12555
|
+
lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
12137
12556
|
}
|
|
12138
12557
|
if (config2.pieArcColors) {
|
|
12139
|
-
lineGraph.config.style.
|
|
12558
|
+
lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
12140
12559
|
}
|
|
12141
12560
|
lineGraph.scope = componentScope2;
|
|
12142
12561
|
return lineGraph;
|
|
@@ -12225,7 +12644,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12225
12644
|
if (config2.style) {
|
|
12226
12645
|
array.config.style = JSON.parse(config2.style);
|
|
12227
12646
|
}
|
|
12647
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12648
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12649
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12228
12650
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12651
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12229
12652
|
array.config.main.label = config2.label;
|
|
12230
12653
|
array.scope = componentScope2;
|
|
12231
12654
|
return array;
|
|
@@ -12300,7 +12723,8 @@ const FileInput = {
|
|
|
12300
12723
|
required: false,
|
|
12301
12724
|
onUpload: "onFileUpload",
|
|
12302
12725
|
onDownload: "onFileDownload",
|
|
12303
|
-
label: "Aggrement Copy"
|
|
12726
|
+
label: "Aggrement Copy",
|
|
12727
|
+
"onClick": "onClick"
|
|
12304
12728
|
},
|
|
12305
12729
|
style: {
|
|
12306
12730
|
backgroundColor: "none"
|
|
@@ -12317,27 +12741,19 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12317
12741
|
if (config2.style) {
|
|
12318
12742
|
box.config.style = JSON.parse(config2.style);
|
|
12319
12743
|
}
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
if (config2.disableDelete) {
|
|
12330
|
-
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12331
|
-
}
|
|
12332
|
-
if (config2.description) {
|
|
12333
|
-
box.config.main.description = config2.description;
|
|
12334
|
-
}
|
|
12335
|
-
if (config2.toolTip) {
|
|
12336
|
-
box.config.main.toolTip = config2.toolTip;
|
|
12337
|
-
}
|
|
12744
|
+
box.config.main.variant = config2.variant;
|
|
12745
|
+
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12746
|
+
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12747
|
+
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12748
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12749
|
+
box.config.main.description = config2.description;
|
|
12750
|
+
box.config.main.toolTip = config2.toolTip;
|
|
12751
|
+
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
12752
|
+
box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
|
|
12338
12753
|
if (config2.toolTipPosition) {
|
|
12339
12754
|
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12340
12755
|
}
|
|
12756
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12341
12757
|
return box;
|
|
12342
12758
|
};
|
|
12343
12759
|
const Stepper = {
|
|
@@ -12394,6 +12810,7 @@ const PopUP = {
|
|
|
12394
12810
|
},
|
|
12395
12811
|
main: {
|
|
12396
12812
|
label: "PopUp",
|
|
12813
|
+
onClose: "onClose",
|
|
12397
12814
|
fullScreen: false,
|
|
12398
12815
|
fullWidth: false,
|
|
12399
12816
|
maxWidth: false,
|
|
@@ -12617,7 +13034,8 @@ const imageUiSchema = {
|
|
|
12617
13034
|
config: {
|
|
12618
13035
|
layout: 3,
|
|
12619
13036
|
main: {
|
|
12620
|
-
url: ""
|
|
13037
|
+
url: "",
|
|
13038
|
+
onClick: "onClick"
|
|
12621
13039
|
},
|
|
12622
13040
|
style: {}
|
|
12623
13041
|
}
|
|
@@ -12635,8 +13053,134 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12635
13053
|
if (config2.height) {
|
|
12636
13054
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12637
13055
|
}
|
|
13056
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13057
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12638
13058
|
return image;
|
|
12639
13059
|
};
|
|
13060
|
+
const buildAreaGraph = (config2, componentScope2) => {
|
|
13061
|
+
const AreaGraph = _.cloneDeep(AreaBarGraph);
|
|
13062
|
+
AreaGraph.scope = componentScope2;
|
|
13063
|
+
if (config2.layout) {
|
|
13064
|
+
AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13065
|
+
}
|
|
13066
|
+
AreaGraph.config.main.type = config2.graphType;
|
|
13067
|
+
AreaGraph.scope = componentScope2;
|
|
13068
|
+
AreaGraph.config.main.header = config2.heading;
|
|
13069
|
+
AreaGraph.config.main.subHeader = config2.subHeader;
|
|
13070
|
+
if (config2.legendHide) {
|
|
13071
|
+
AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13072
|
+
}
|
|
13073
|
+
if (config2.bottomAxisAngle) {
|
|
13074
|
+
AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13075
|
+
}
|
|
13076
|
+
if (config2.legendLabels) {
|
|
13077
|
+
AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13078
|
+
}
|
|
13079
|
+
if (config2.legendDirection) {
|
|
13080
|
+
AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13081
|
+
}
|
|
13082
|
+
if (config2.height) {
|
|
13083
|
+
AreaGraph.config.style.containerStyle.height = config2.height;
|
|
13084
|
+
}
|
|
13085
|
+
if (config2.pieArcColors) {
|
|
13086
|
+
AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13087
|
+
}
|
|
13088
|
+
if (config2.xAxisFormatType) {
|
|
13089
|
+
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13090
|
+
}
|
|
13091
|
+
if (config2.yAxisTickCount) {
|
|
13092
|
+
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13093
|
+
}
|
|
13094
|
+
if (config2.xAxisTickCount) {
|
|
13095
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13096
|
+
}
|
|
13097
|
+
if (config2.xAxisValue) {
|
|
13098
|
+
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13099
|
+
}
|
|
13100
|
+
if (config2.xAxisType) {
|
|
13101
|
+
AreaGraph.config.main.xAxisType = config2.xAxisType;
|
|
13102
|
+
}
|
|
13103
|
+
if (config2.bottomLabel) {
|
|
13104
|
+
AreaGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13105
|
+
}
|
|
13106
|
+
if (config2.leftLabel) {
|
|
13107
|
+
AreaGraph.config.main.leftLabel = config2.leftLabel;
|
|
13108
|
+
}
|
|
13109
|
+
if (config2.disableLeftLabel) {
|
|
13110
|
+
AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13111
|
+
}
|
|
13112
|
+
if (config2.leftMargin) {
|
|
13113
|
+
AreaGraph.config.style.labelStyle.margin = {
|
|
13114
|
+
left: config2.leftMargin
|
|
13115
|
+
};
|
|
13116
|
+
}
|
|
13117
|
+
return AreaGraph;
|
|
13118
|
+
};
|
|
13119
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13120
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13121
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13122
|
+
if (config2.layout) {
|
|
13123
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13124
|
+
}
|
|
13125
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13126
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13127
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13128
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13129
|
+
if (config2.legendHide) {
|
|
13130
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13131
|
+
}
|
|
13132
|
+
if (config2.bottomAxisAngle) {
|
|
13133
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13134
|
+
}
|
|
13135
|
+
if (config2.legendLabels) {
|
|
13136
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13137
|
+
}
|
|
13138
|
+
if (config2.legendDirection) {
|
|
13139
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13140
|
+
}
|
|
13141
|
+
if (config2.height) {
|
|
13142
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13143
|
+
}
|
|
13144
|
+
if (config2.pieArcColors) {
|
|
13145
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13146
|
+
}
|
|
13147
|
+
if (config2.yAxisTickCount) {
|
|
13148
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13149
|
+
}
|
|
13150
|
+
if (config2.xAxisTickCount) {
|
|
13151
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13152
|
+
}
|
|
13153
|
+
if (config2.xAxisValue) {
|
|
13154
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13155
|
+
}
|
|
13156
|
+
if (config2.xAxisType) {
|
|
13157
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13158
|
+
}
|
|
13159
|
+
if (config2.bottomLabel) {
|
|
13160
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13161
|
+
}
|
|
13162
|
+
if (config2.leftLabel) {
|
|
13163
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13164
|
+
}
|
|
13165
|
+
if (config2.rightLabel) {
|
|
13166
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13167
|
+
}
|
|
13168
|
+
if (config2.disableLeftLabel) {
|
|
13169
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13170
|
+
}
|
|
13171
|
+
if (config2.growthRateKey) {
|
|
13172
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13173
|
+
}
|
|
13174
|
+
if (config2.tooltipUnit) {
|
|
13175
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13176
|
+
}
|
|
13177
|
+
if (config2.leftMargin) {
|
|
13178
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13179
|
+
left: config2.leftMargin
|
|
13180
|
+
};
|
|
13181
|
+
}
|
|
13182
|
+
return StackBarLineGraph;
|
|
13183
|
+
};
|
|
12640
13184
|
const cameraUiSchema = {
|
|
12641
13185
|
type: "Control",
|
|
12642
13186
|
scope: "#/properties/camera",
|
|
@@ -12677,10 +13221,149 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
12677
13221
|
camera.config.main.color = config2.color;
|
|
12678
13222
|
}
|
|
12679
13223
|
if (config2.label) {
|
|
12680
|
-
camera.config.main.
|
|
13224
|
+
camera.config.main.label = config2.label;
|
|
12681
13225
|
}
|
|
12682
13226
|
return camera;
|
|
12683
13227
|
};
|
|
13228
|
+
var ButtonGroup = {
|
|
13229
|
+
type: "Control",
|
|
13230
|
+
scope: "#/properties/buttonGroup",
|
|
13231
|
+
options: {
|
|
13232
|
+
widget: "ButtonGroup"
|
|
13233
|
+
},
|
|
13234
|
+
config: {
|
|
13235
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
13236
|
+
main: {
|
|
13237
|
+
variant: "contained",
|
|
13238
|
+
styleDefault: false,
|
|
13239
|
+
size: "small"
|
|
13240
|
+
},
|
|
13241
|
+
style: {}
|
|
13242
|
+
}
|
|
13243
|
+
};
|
|
13244
|
+
const buildButtonGroup = (config2, componentScope2) => {
|
|
13245
|
+
const buttonGroup = _.cloneDeep(ButtonGroup);
|
|
13246
|
+
if (config2.layout) {
|
|
13247
|
+
buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13248
|
+
}
|
|
13249
|
+
buttonGroup.scope = componentScope2;
|
|
13250
|
+
if (config2.multiSelect) {
|
|
13251
|
+
buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
|
|
13252
|
+
}
|
|
13253
|
+
if (config2.style) {
|
|
13254
|
+
buttonGroup.config.style = JSON.parse(config2.style);
|
|
13255
|
+
}
|
|
13256
|
+
if (config2.size) {
|
|
13257
|
+
buttonGroup.config.main.size = config2.size;
|
|
13258
|
+
}
|
|
13259
|
+
if (config2.color) {
|
|
13260
|
+
buttonGroup.config.main.color = config2.color;
|
|
13261
|
+
}
|
|
13262
|
+
return buttonGroup;
|
|
13263
|
+
};
|
|
13264
|
+
const PopOver = {
|
|
13265
|
+
type: "Control",
|
|
13266
|
+
scope: "#/properties/text",
|
|
13267
|
+
options: {
|
|
13268
|
+
widget: "Popover"
|
|
13269
|
+
},
|
|
13270
|
+
config: {
|
|
13271
|
+
layout: {
|
|
13272
|
+
xs: 12,
|
|
13273
|
+
sm: 12,
|
|
13274
|
+
md: 12,
|
|
13275
|
+
lg: 12
|
|
13276
|
+
},
|
|
13277
|
+
main: {
|
|
13278
|
+
label: "PopOver"
|
|
13279
|
+
},
|
|
13280
|
+
style: {}
|
|
13281
|
+
}
|
|
13282
|
+
};
|
|
13283
|
+
const buildPopOver = (config2, componentScope2) => {
|
|
13284
|
+
const popOver = _.cloneDeep(PopOver);
|
|
13285
|
+
popOver.scope = componentScope2;
|
|
13286
|
+
popOver.config.main.positionVertical = config2.positionVertical;
|
|
13287
|
+
popOver.config.main.positionHorizontal = config2.positionHorizontal;
|
|
13288
|
+
popOver.config.main.contentVertical = config2.contentVertical;
|
|
13289
|
+
popOver.config.main.contentHorizontal = config2.contentHorizontal;
|
|
13290
|
+
popOver.config.main.width = config2.width;
|
|
13291
|
+
popOver.config.main.gap = config2.gap;
|
|
13292
|
+
if (config2.layout) {
|
|
13293
|
+
popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13294
|
+
}
|
|
13295
|
+
if (config2.style) {
|
|
13296
|
+
popOver.config.style = JSON.parse(config2.style);
|
|
13297
|
+
}
|
|
13298
|
+
return popOver;
|
|
13299
|
+
};
|
|
13300
|
+
const OTPSchema = {
|
|
13301
|
+
type: "Control",
|
|
13302
|
+
scope: "#/properties/OTPInput",
|
|
13303
|
+
options: {
|
|
13304
|
+
widget: "OTPInput"
|
|
13305
|
+
},
|
|
13306
|
+
config: {
|
|
13307
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
13308
|
+
main: {
|
|
13309
|
+
seperator: "",
|
|
13310
|
+
length: 4,
|
|
13311
|
+
type: "number",
|
|
13312
|
+
masking: true
|
|
13313
|
+
}
|
|
13314
|
+
}
|
|
13315
|
+
};
|
|
13316
|
+
const buildOTP_Input = (config2, componentScope2) => {
|
|
13317
|
+
const OTP = _.cloneDeep(OTPSchema);
|
|
13318
|
+
OTP.scope = componentScope2;
|
|
13319
|
+
if (config2.layout) {
|
|
13320
|
+
OTP.config.layout = createLayoutFormat(config2.layout);
|
|
13321
|
+
}
|
|
13322
|
+
if (config2.style) {
|
|
13323
|
+
OTP.config.style = JSON.parse(config2.style);
|
|
13324
|
+
}
|
|
13325
|
+
if (config2.errorMessage) {
|
|
13326
|
+
OTP.config.main.errorMessage = config2.errorMessage;
|
|
13327
|
+
}
|
|
13328
|
+
if (config2.toolTip) {
|
|
13329
|
+
OTP.config.main.toolTip = config2.toolTip;
|
|
13330
|
+
}
|
|
13331
|
+
OTP.config.main.masking = config2.masking === "YES" ? true : false;
|
|
13332
|
+
OTP.config.main.type = config2.OTP_Format;
|
|
13333
|
+
OTP.config.main.seperator = config2.seperator;
|
|
13334
|
+
OTP.config.main.length = +config2.length;
|
|
13335
|
+
return OTP;
|
|
13336
|
+
};
|
|
13337
|
+
var pdfViewer = {
|
|
13338
|
+
type: "Control",
|
|
13339
|
+
scope: "#/properties/pdfviewer",
|
|
13340
|
+
options: {
|
|
13341
|
+
widget: "PdfViewer"
|
|
13342
|
+
},
|
|
13343
|
+
config: {
|
|
13344
|
+
layout: {
|
|
13345
|
+
xs: 12,
|
|
13346
|
+
sm: 12,
|
|
13347
|
+
md: 12,
|
|
13348
|
+
lg: 12
|
|
13349
|
+
},
|
|
13350
|
+
main: {
|
|
13351
|
+
title: "PDF"
|
|
13352
|
+
}
|
|
13353
|
+
}
|
|
13354
|
+
};
|
|
13355
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13356
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13357
|
+
PdfViewer.scope = componentScope2;
|
|
13358
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13359
|
+
if (config2.layout) {
|
|
13360
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13361
|
+
}
|
|
13362
|
+
if (config2.style) {
|
|
13363
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13364
|
+
}
|
|
13365
|
+
return PdfViewer;
|
|
13366
|
+
};
|
|
12684
13367
|
let schema = {
|
|
12685
13368
|
type: "object",
|
|
12686
13369
|
properties: {},
|
|
@@ -12751,6 +13434,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12751
13434
|
let elements = {};
|
|
12752
13435
|
const componentScope2 = `#/properties/${config2.name}`;
|
|
12753
13436
|
switch (config2.type) {
|
|
13437
|
+
case "OTP_Input":
|
|
13438
|
+
elements = buildOTP_Input(config2, componentScope2);
|
|
13439
|
+
break;
|
|
12754
13440
|
case "TreeMap":
|
|
12755
13441
|
elements = buildTreeMap(config2, componentScope2);
|
|
12756
13442
|
break;
|
|
@@ -12769,6 +13455,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12769
13455
|
case "PopUp":
|
|
12770
13456
|
elements = buildPopUp(config2, componentScope2);
|
|
12771
13457
|
break;
|
|
13458
|
+
case "PopOver":
|
|
13459
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13460
|
+
break;
|
|
12772
13461
|
case "FileInput":
|
|
12773
13462
|
elements = buildFileInput(config2, componentScope2);
|
|
12774
13463
|
break;
|
|
@@ -12808,6 +13497,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12808
13497
|
case "Button":
|
|
12809
13498
|
elements = buildButton(config2, componentScope2);
|
|
12810
13499
|
break;
|
|
13500
|
+
case "ButtonGroup":
|
|
13501
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13502
|
+
break;
|
|
12811
13503
|
case "Table":
|
|
12812
13504
|
elements = buildTable(config2, componentScope2);
|
|
12813
13505
|
break;
|
|
@@ -12832,6 +13524,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12832
13524
|
case "card":
|
|
12833
13525
|
elements = buildCard(config2, componentScope2, store2);
|
|
12834
13526
|
break;
|
|
13527
|
+
case "MetricCard":
|
|
13528
|
+
elements = buildMetricCard(config2, componentScope2);
|
|
13529
|
+
break;
|
|
12835
13530
|
case "Graph":
|
|
12836
13531
|
switch (config2.graphType) {
|
|
12837
13532
|
case "BarGraph":
|
|
@@ -12848,6 +13543,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12848
13543
|
case "HorizontalStackBarGraph":
|
|
12849
13544
|
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12850
13545
|
break;
|
|
13546
|
+
case "AreaGraph":
|
|
13547
|
+
elements = buildAreaGraph(config2, componentScope2);
|
|
13548
|
+
break;
|
|
13549
|
+
case "StackBarLineGraph":
|
|
13550
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13551
|
+
break;
|
|
12851
13552
|
default:
|
|
12852
13553
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
12853
13554
|
break;
|
|
@@ -12896,6 +13597,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12896
13597
|
case "Camera":
|
|
12897
13598
|
elements = buildCamera(config2, componentScope2);
|
|
12898
13599
|
break;
|
|
13600
|
+
case "PdfViewer":
|
|
13601
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13602
|
+
break;
|
|
12899
13603
|
default:
|
|
12900
13604
|
schema = {
|
|
12901
13605
|
type: "object",
|
|
@@ -12999,6 +13703,11 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12999
13703
|
});
|
|
13000
13704
|
}
|
|
13001
13705
|
}
|
|
13706
|
+
if (config2.tabLabelElements) {
|
|
13707
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13708
|
+
return buildUiSchema(e, store2);
|
|
13709
|
+
});
|
|
13710
|
+
}
|
|
13002
13711
|
return elements;
|
|
13003
13712
|
};
|
|
13004
13713
|
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|