impaktapps-ui-builder 1.0.174 → 1.0.181-test
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 +816 -84
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +10 -10
- 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/runtime/services/downloadFile.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +4 -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 +0 -3
- 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 +172 -16
- 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 +3 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +143 -108
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +80 -0
- package/src/impaktapps-ui-builder/runtime/services/events.ts +6 -3
- package/src/impaktapps-ui-builder/runtime/services/interface.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +31 -7
|
@@ -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", "Start Icon"),
|
|
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":
|
|
@@ -8063,7 +8265,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8063
8265
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8064
8266
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
8065
8267
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
8066
|
-
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
8067
8268
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
8068
8269
|
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8069
8270
|
,
|
|
@@ -8101,12 +8302,18 @@ const buildPropertiesSection = function(type) {
|
|
|
8101
8302
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8102
8303
|
];
|
|
8103
8304
|
break;
|
|
8305
|
+
case "PdfViewer":
|
|
8306
|
+
uiSchema.elements = [
|
|
8307
|
+
getInputField("scale", "Zoom"),
|
|
8308
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8309
|
+
];
|
|
8310
|
+
break;
|
|
8104
8311
|
case "Date":
|
|
8105
8312
|
uiSchema.elements = [
|
|
8106
8313
|
getSelectField("variant", "Variant"),
|
|
8107
8314
|
getInputField("toolTip", "Tooltip"),
|
|
8108
8315
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8109
|
-
emptyBox$1("
|
|
8316
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8110
8317
|
];
|
|
8111
8318
|
break;
|
|
8112
8319
|
case "DateTime":
|
|
@@ -8114,7 +8321,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8114
8321
|
getSelectField("variant", "Variant"),
|
|
8115
8322
|
getInputField("toolTip", "Tooltip"),
|
|
8116
8323
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8117
|
-
emptyBox$1("
|
|
8324
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8118
8325
|
];
|
|
8119
8326
|
break;
|
|
8120
8327
|
case "Thought":
|
|
@@ -8126,6 +8333,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8126
8333
|
uiSchema.elements = [
|
|
8127
8334
|
getInputField("imageUrl", "Image URL"),
|
|
8128
8335
|
getInputField("height", "Image Height"),
|
|
8336
|
+
getInputField("toolTip", "Tooltip"),
|
|
8337
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8129
8338
|
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8130
8339
|
];
|
|
8131
8340
|
break;
|
|
@@ -8138,7 +8347,11 @@ const buildPropertiesSection = function(type) {
|
|
|
8138
8347
|
getInputField("description", "Enter description"),
|
|
8139
8348
|
getInputField("toolTip", "Tooltip"),
|
|
8140
8349
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8141
|
-
|
|
8350
|
+
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
8351
|
+
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8352
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8353
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8354
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8142
8355
|
];
|
|
8143
8356
|
break;
|
|
8144
8357
|
case "Camera":
|
|
@@ -8187,13 +8400,13 @@ const StyleSection = {
|
|
|
8187
8400
|
}
|
|
8188
8401
|
]
|
|
8189
8402
|
};
|
|
8190
|
-
const TableSection = (theme) => {
|
|
8403
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
8191
8404
|
const uiSchema = {
|
|
8192
8405
|
type: "HorizontalLayout",
|
|
8193
8406
|
elements: [
|
|
8194
8407
|
{
|
|
8195
8408
|
type: "Control",
|
|
8196
|
-
scope:
|
|
8409
|
+
scope: `#/properties/${scopeName}`,
|
|
8197
8410
|
options: {
|
|
8198
8411
|
widget: "Table"
|
|
8199
8412
|
},
|
|
@@ -8204,7 +8417,7 @@ const TableSection = (theme) => {
|
|
|
8204
8417
|
{
|
|
8205
8418
|
widget: {
|
|
8206
8419
|
type: "Control",
|
|
8207
|
-
scope:
|
|
8420
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
8208
8421
|
options: {
|
|
8209
8422
|
widget: "IconButton"
|
|
8210
8423
|
},
|
|
@@ -8231,7 +8444,7 @@ const TableSection = (theme) => {
|
|
|
8231
8444
|
{
|
|
8232
8445
|
widget: {
|
|
8233
8446
|
type: "Control",
|
|
8234
|
-
scope: "
|
|
8447
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8235
8448
|
options: {
|
|
8236
8449
|
widget: "IconButton"
|
|
8237
8450
|
},
|
|
@@ -8296,7 +8509,7 @@ const TableSection = (theme) => {
|
|
|
8296
8509
|
},
|
|
8297
8510
|
{
|
|
8298
8511
|
type: "Control",
|
|
8299
|
-
scope: "
|
|
8512
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8300
8513
|
options: {
|
|
8301
8514
|
widget: "Button"
|
|
8302
8515
|
},
|
|
@@ -8489,6 +8702,10 @@ var buildConfig = (FormData) => {
|
|
|
8489
8702
|
if (formData.events) {
|
|
8490
8703
|
delete formData.events;
|
|
8491
8704
|
}
|
|
8705
|
+
if (formData.tabLabelElements) {
|
|
8706
|
+
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8707
|
+
delete formData.tabLabelElements;
|
|
8708
|
+
}
|
|
8492
8709
|
component = { ...formData, ...component };
|
|
8493
8710
|
return component;
|
|
8494
8711
|
};
|
|
@@ -8521,6 +8738,14 @@ const flatObjectValueInArray = (config2 = []) => {
|
|
|
8521
8738
|
});
|
|
8522
8739
|
return data;
|
|
8523
8740
|
};
|
|
8741
|
+
const createKeyValueMap = (config2 = []) => {
|
|
8742
|
+
return config2.reduce((acc, item) => {
|
|
8743
|
+
if (!item.key)
|
|
8744
|
+
return acc;
|
|
8745
|
+
acc[item.key] = item.value;
|
|
8746
|
+
return acc;
|
|
8747
|
+
}, {});
|
|
8748
|
+
};
|
|
8524
8749
|
const clearFromSessionStorage = () => {
|
|
8525
8750
|
sessionStorage.removeItem("pageFormdata");
|
|
8526
8751
|
};
|
|
@@ -8639,7 +8864,7 @@ const sectionLabels = {
|
|
|
8639
8864
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8640
8865
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8641
8866
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8642
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8867
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8643
8868
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8644
8869
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8645
8870
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8650,15 +8875,19 @@ const sectionLabels = {
|
|
|
8650
8875
|
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8651
8876
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8652
8877
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8878
|
+
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8653
8879
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8654
8880
|
Timer: ["Core", "Events", "Style"],
|
|
8655
8881
|
Rank: ["Core", "Events", "Style"],
|
|
8656
8882
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8657
|
-
|
|
8883
|
+
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8884
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8658
8885
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8659
8886
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8660
8887
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8661
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8888
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8889
|
+
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8890
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8662
8891
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8663
8892
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8664
8893
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8667,9 +8896,10 @@ const sectionLabels = {
|
|
|
8667
8896
|
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8668
8897
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8669
8898
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8670
|
-
Image: ["Core", "Properties", "Style"],
|
|
8899
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8671
8900
|
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8672
|
-
Camera: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8901
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8902
|
+
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8673
8903
|
};
|
|
8674
8904
|
function refreshPage(type, store2) {
|
|
8675
8905
|
var _a, _b;
|
|
@@ -8682,6 +8912,7 @@ function refreshPage(type, store2) {
|
|
|
8682
8912
|
Style: StyleSection,
|
|
8683
8913
|
Events: EventSection(store2.theme.myTheme),
|
|
8684
8914
|
Components: TableSection(store2.theme.myTheme),
|
|
8915
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8685
8916
|
Properties: buildPropertiesSection(type),
|
|
8686
8917
|
Validation: ValidationSection
|
|
8687
8918
|
};
|
|
@@ -8879,8 +9110,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8879
9110
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8880
9111
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8881
9112
|
if (path) {
|
|
8882
|
-
|
|
8883
|
-
|
|
9113
|
+
let finalPath = `${path}`;
|
|
9114
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
|
|
9115
|
+
finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
|
|
9116
|
+
} else {
|
|
9117
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9118
|
+
}
|
|
8884
9119
|
store2.searchParams.set("path", finalPath);
|
|
8885
9120
|
store2.setSearchParams(store2.searchParams);
|
|
8886
9121
|
this.setPage();
|
|
@@ -8892,7 +9127,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8892
9127
|
var _a;
|
|
8893
9128
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8894
9129
|
const rowId = sessionStorage.getItem("rowId");
|
|
8895
|
-
|
|
9130
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9131
|
+
if (isTabLabelElements) {
|
|
9132
|
+
store2.formData.tabLabelElements.splice(rowId, 1);
|
|
9133
|
+
} else {
|
|
9134
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9135
|
+
}
|
|
8896
9136
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8897
9137
|
const data = path ? _.get(response, path) : response;
|
|
8898
9138
|
store2.setFormdata(data);
|
|
@@ -8900,6 +9140,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8900
9140
|
store2.updateDialog("popUpComponentSection");
|
|
8901
9141
|
}
|
|
8902
9142
|
sessionStorage.removeItem("rowId");
|
|
9143
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
8903
9144
|
},
|
|
8904
9145
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8905
9146
|
var _a;
|
|
@@ -8920,9 +9161,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8920
9161
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8921
9162
|
store2.formData.elements = [];
|
|
8922
9163
|
}
|
|
9164
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9165
|
+
store2.formData.tabLabelElements = [];
|
|
9166
|
+
}
|
|
8923
9167
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8924
9168
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8925
|
-
|
|
9169
|
+
let finalPath = `${path}`;
|
|
9170
|
+
if (dynamicData2.path.startsWith("tabLabel")) {
|
|
9171
|
+
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9172
|
+
} else {
|
|
9173
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9174
|
+
}
|
|
8926
9175
|
store2.searchParams.set("path", finalPath);
|
|
8927
9176
|
store2.setSearchParams(store2.searchParams);
|
|
8928
9177
|
this.setPage();
|
|
@@ -8957,6 +9206,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8957
9206
|
deletePopUpComponent: function() {
|
|
8958
9207
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8959
9208
|
sessionStorage.setItem("rowId", rowId);
|
|
9209
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
8960
9210
|
store2.updateDialog("popUpComponentSection");
|
|
8961
9211
|
},
|
|
8962
9212
|
deletePopUpEvent: function() {
|
|
@@ -9003,9 +9253,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9003
9253
|
if (!Array.isArray(store2.formData.events)) {
|
|
9004
9254
|
store2.formData.events = [];
|
|
9005
9255
|
}
|
|
9256
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9257
|
+
store2.formData.tabLabelElements = [];
|
|
9258
|
+
}
|
|
9006
9259
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
9007
9260
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
9008
|
-
const
|
|
9261
|
+
const currentLength = {
|
|
9262
|
+
"TabsComponent": formData.tabLabelElements.length,
|
|
9263
|
+
"Component": formData.elements.length,
|
|
9264
|
+
"Events": formData.events.length
|
|
9265
|
+
};
|
|
9266
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
9009
9267
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
9010
9268
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
9011
9269
|
const notificationMessages = {
|
|
@@ -9040,6 +9298,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9040
9298
|
if (elementType === "Component") {
|
|
9041
9299
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9042
9300
|
}
|
|
9301
|
+
if (elementType === "TabsComponent") {
|
|
9302
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9303
|
+
}
|
|
9043
9304
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9044
9305
|
},
|
|
9045
9306
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -9241,7 +9502,9 @@ const EventSchema = {
|
|
|
9241
9502
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9242
9503
|
{ title: "Download", const: "onDownload" },
|
|
9243
9504
|
{ title: "Fail", const: "Fail" },
|
|
9244
|
-
{ title: "
|
|
9505
|
+
{ title: "onClose", const: "onClose" },
|
|
9506
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9507
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9245
9508
|
]
|
|
9246
9509
|
},
|
|
9247
9510
|
Handler: {
|
|
@@ -9258,6 +9521,7 @@ const EventSchema = {
|
|
|
9258
9521
|
oneOf: [
|
|
9259
9522
|
{ title: "RankProvider", const: "RankProvider" },
|
|
9260
9523
|
{ title: "Download File", const: "downloadFile" },
|
|
9524
|
+
{ title: "Download File Stream", const: "downloadFileStream" },
|
|
9261
9525
|
{ title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
|
|
9262
9526
|
]
|
|
9263
9527
|
},
|
|
@@ -10239,6 +10503,66 @@ const downloadFileFromUrl = (response, service2) => {
|
|
|
10239
10503
|
link.click();
|
|
10240
10504
|
link.parentNode.removeChild(link);
|
|
10241
10505
|
};
|
|
10506
|
+
const downloadFileStream = async (params2) => {
|
|
10507
|
+
try {
|
|
10508
|
+
let response;
|
|
10509
|
+
if (params2.method === "GET") {
|
|
10510
|
+
response = await params2.fetchservice.getStream(
|
|
10511
|
+
params2.url,
|
|
10512
|
+
params2.config
|
|
10513
|
+
);
|
|
10514
|
+
} else if (params2.method === "POST") {
|
|
10515
|
+
response = await params2.fetchservice.postStream(
|
|
10516
|
+
params2.url,
|
|
10517
|
+
params2.body,
|
|
10518
|
+
params2.config
|
|
10519
|
+
);
|
|
10520
|
+
} else {
|
|
10521
|
+
throw new Error(
|
|
10522
|
+
`Unsupported HTTP method: ${params2.method}. Only GET and POST are supported.`
|
|
10523
|
+
);
|
|
10524
|
+
}
|
|
10525
|
+
if (!response.ok) {
|
|
10526
|
+
throw new Error("Download failed");
|
|
10527
|
+
}
|
|
10528
|
+
params2.store.setNotify({
|
|
10529
|
+
SuccessMessage: "File Download Started Successfully",
|
|
10530
|
+
Success: true
|
|
10531
|
+
});
|
|
10532
|
+
const fileName = response.headers.get("filename") || "downloaded_file";
|
|
10533
|
+
const extension = fileName.includes(".") ? fileName.substring(fileName.lastIndexOf(".")) : "";
|
|
10534
|
+
const reader = response.body.getReader();
|
|
10535
|
+
const fileHandle = await window.showSaveFilePicker({
|
|
10536
|
+
suggestedName: fileName,
|
|
10537
|
+
types: extension ? [
|
|
10538
|
+
{
|
|
10539
|
+
description: "File",
|
|
10540
|
+
accept: {
|
|
10541
|
+
"application/octet-stream": [extension]
|
|
10542
|
+
}
|
|
10543
|
+
}
|
|
10544
|
+
] : void 0
|
|
10545
|
+
});
|
|
10546
|
+
const writable = await fileHandle.createWritable();
|
|
10547
|
+
while (true) {
|
|
10548
|
+
const { done, value } = await reader.read();
|
|
10549
|
+
if (done)
|
|
10550
|
+
break;
|
|
10551
|
+
await writable.write(value);
|
|
10552
|
+
}
|
|
10553
|
+
await writable.close();
|
|
10554
|
+
params2.store.setNotify({
|
|
10555
|
+
SuccessMessage: `File "${fileHandle.name}" downloaded successfully.`,
|
|
10556
|
+
Success: true
|
|
10557
|
+
});
|
|
10558
|
+
} catch (e) {
|
|
10559
|
+
params2.store.setNotify({
|
|
10560
|
+
FailMessage: "File Download Failed",
|
|
10561
|
+
Fail: true
|
|
10562
|
+
});
|
|
10563
|
+
console.error(e);
|
|
10564
|
+
}
|
|
10565
|
+
};
|
|
10242
10566
|
const executeEvents = (params2) => {
|
|
10243
10567
|
var _a, _b, _c;
|
|
10244
10568
|
let nextEvent = [];
|
|
@@ -10360,10 +10684,13 @@ function executeInBuiltFunctionHandler(params) {
|
|
|
10360
10684
|
let parameter = {};
|
|
10361
10685
|
if (params.config.funcParametersCode) {
|
|
10362
10686
|
const makeFunc = eval(params.config.funcParametersCode);
|
|
10363
|
-
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
10364
|
-
params.serviceHolder[params.config.inBuiltFunctionType](
|
|
10687
|
+
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.fetchservice);
|
|
10688
|
+
params.serviceHolder[params.config.inBuiltFunctionType](
|
|
10689
|
+
parameter,
|
|
10690
|
+
params.service
|
|
10691
|
+
);
|
|
10365
10692
|
} else {
|
|
10366
|
-
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
10693
|
+
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.fetchservice);
|
|
10367
10694
|
}
|
|
10368
10695
|
}
|
|
10369
10696
|
function executeCustomHandler(params) {
|
|
@@ -10567,7 +10894,8 @@ var service = (funcParams) => {
|
|
|
10567
10894
|
dynamicData: funcParams.dynamicData,
|
|
10568
10895
|
userValue: funcParams.userValue,
|
|
10569
10896
|
service: funcParams.service,
|
|
10570
|
-
|
|
10897
|
+
fetchservice: funcParams.fetchservice,
|
|
10898
|
+
serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, downloadFileStream, ...funcParams.functionsProvider },
|
|
10571
10899
|
eventGroups,
|
|
10572
10900
|
functionsProvider: funcParams.functionsProvider,
|
|
10573
10901
|
formDataHolder
|
|
@@ -10584,7 +10912,7 @@ var service = (funcParams) => {
|
|
|
10584
10912
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10585
10913
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10586
10914
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10587
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10915
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10588
10916
|
});
|
|
10589
10917
|
window.dispatchEvent(event2);
|
|
10590
10918
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10627,6 +10955,25 @@ var service = (funcParams) => {
|
|
|
10627
10955
|
funcParams.store.setUiSchema(uiSchema);
|
|
10628
10956
|
});
|
|
10629
10957
|
},
|
|
10958
|
+
getStyle: () => {
|
|
10959
|
+
var _a, _b, _c, _d;
|
|
10960
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10961
|
+
if (cloneEventGroup.setStyle) {
|
|
10962
|
+
let finalResponse = {};
|
|
10963
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10964
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10965
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10966
|
+
finalResponse = executeEvents({
|
|
10967
|
+
...executeEventsParameters,
|
|
10968
|
+
config: eventConfig,
|
|
10969
|
+
componentName: path
|
|
10970
|
+
});
|
|
10971
|
+
}
|
|
10972
|
+
return finalResponse;
|
|
10973
|
+
}
|
|
10974
|
+
}
|
|
10975
|
+
return {};
|
|
10976
|
+
},
|
|
10630
10977
|
onCellRenderer: (cellParams) => {
|
|
10631
10978
|
var _a, _b, _c, _d, _e;
|
|
10632
10979
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10656,6 +11003,9 @@ var service = (funcParams) => {
|
|
|
10656
11003
|
onFileDelete: async function() {
|
|
10657
11004
|
this.callHandler("onFileDelete");
|
|
10658
11005
|
},
|
|
11006
|
+
onClose: function() {
|
|
11007
|
+
this.callHandler("onClose");
|
|
11008
|
+
},
|
|
10659
11009
|
onMount: function() {
|
|
10660
11010
|
this.callHandler("onMount");
|
|
10661
11011
|
},
|
|
@@ -10679,14 +11029,15 @@ var service = (funcParams) => {
|
|
|
10679
11029
|
return response == null ? void 0 : response.data;
|
|
10680
11030
|
},
|
|
10681
11031
|
onPaginationChange: async function(paginationValues) {
|
|
10682
|
-
var _a
|
|
11032
|
+
var _a;
|
|
10683
11033
|
const apiBody = [
|
|
10684
11034
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10685
11035
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10686
11036
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10687
11037
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10688
11038
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10689
|
-
{ key: "
|
|
11039
|
+
{ key: "parentIds", value: paginationValues.parentIds },
|
|
11040
|
+
{ key: "isExpandAll", value: paginationValues.isExpandAll }
|
|
10690
11041
|
];
|
|
10691
11042
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10692
11043
|
return response == null ? void 0 : response.data;
|
|
@@ -10706,8 +11057,8 @@ var service = (funcParams) => {
|
|
|
10706
11057
|
return;
|
|
10707
11058
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10708
11059
|
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10709
|
-
var _a
|
|
10710
|
-
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]
|
|
11060
|
+
var _a;
|
|
11061
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
10711
11062
|
return [];
|
|
10712
11063
|
}
|
|
10713
11064
|
return eventGroups.onChange[componentName].map(
|
|
@@ -10806,6 +11157,7 @@ var service = (funcParams) => {
|
|
|
10806
11157
|
},
|
|
10807
11158
|
downloadFile: downloadFile$1,
|
|
10808
11159
|
downloadFileFromUrl,
|
|
11160
|
+
downloadFileStream,
|
|
10809
11161
|
...funcParams.functionsProvider
|
|
10810
11162
|
};
|
|
10811
11163
|
};
|
|
@@ -10942,7 +11294,7 @@ const BarGraph = {
|
|
|
10942
11294
|
type: "BarGraph",
|
|
10943
11295
|
legendLabels: null
|
|
10944
11296
|
},
|
|
10945
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11297
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10946
11298
|
}
|
|
10947
11299
|
};
|
|
10948
11300
|
const PieGraph = {
|
|
@@ -10957,7 +11309,7 @@ const PieGraph = {
|
|
|
10957
11309
|
type: "PieGraph",
|
|
10958
11310
|
legendLabels: null
|
|
10959
11311
|
},
|
|
10960
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11312
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10961
11313
|
}
|
|
10962
11314
|
};
|
|
10963
11315
|
const LineGraph = {
|
|
@@ -10972,7 +11324,7 @@ const LineGraph = {
|
|
|
10972
11324
|
type: "LineGraph",
|
|
10973
11325
|
legendLabels: null
|
|
10974
11326
|
},
|
|
10975
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11327
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10976
11328
|
}
|
|
10977
11329
|
};
|
|
10978
11330
|
const HorizontalBarGraph = {
|
|
@@ -10987,7 +11339,37 @@ const HorizontalBarGraph = {
|
|
|
10987
11339
|
type: "HorizontalBarGraph",
|
|
10988
11340
|
legendLabels: null
|
|
10989
11341
|
},
|
|
10990
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11342
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11343
|
+
}
|
|
11344
|
+
};
|
|
11345
|
+
const AreaBarGraph = {
|
|
11346
|
+
type: "Control",
|
|
11347
|
+
scope: "#/properties/graph",
|
|
11348
|
+
options: {
|
|
11349
|
+
widget: "Graph"
|
|
11350
|
+
},
|
|
11351
|
+
config: {
|
|
11352
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11353
|
+
main: {
|
|
11354
|
+
type: "AreaGraph",
|
|
11355
|
+
legendLabels: null
|
|
11356
|
+
},
|
|
11357
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11358
|
+
}
|
|
11359
|
+
};
|
|
11360
|
+
const StackBarLineG = {
|
|
11361
|
+
type: "Control",
|
|
11362
|
+
scope: "#/properties/graph",
|
|
11363
|
+
options: {
|
|
11364
|
+
widget: "Graph"
|
|
11365
|
+
},
|
|
11366
|
+
config: {
|
|
11367
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11368
|
+
main: {
|
|
11369
|
+
type: "StackBarLineGraph",
|
|
11370
|
+
legendLabels: null
|
|
11371
|
+
},
|
|
11372
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10991
11373
|
}
|
|
10992
11374
|
};
|
|
10993
11375
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
@@ -11006,13 +11388,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
11006
11388
|
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11007
11389
|
}
|
|
11008
11390
|
if (config2.legendLabels) {
|
|
11009
|
-
horizontalBarGraph.config.main.legendLabels =
|
|
11391
|
+
horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11010
11392
|
}
|
|
11011
11393
|
if (config2.legendDirection) {
|
|
11012
11394
|
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11013
11395
|
}
|
|
11014
11396
|
if (config2.pieArcColors) {
|
|
11015
|
-
horizontalBarGraph.config.style.
|
|
11397
|
+
horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11016
11398
|
}
|
|
11017
11399
|
if (config2.xAxisValue) {
|
|
11018
11400
|
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11146,13 +11528,13 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
11146
11528
|
pieGraph.scope = componentScope2;
|
|
11147
11529
|
pieGraph.config.main.header = config2.heading;
|
|
11148
11530
|
if (config2.legendLabels) {
|
|
11149
|
-
pieGraph.config.main.legendLabels =
|
|
11531
|
+
pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11150
11532
|
}
|
|
11151
11533
|
if (config2.xAxisValue) {
|
|
11152
11534
|
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11153
11535
|
}
|
|
11154
11536
|
if (config2.pieArcColors) {
|
|
11155
|
-
pieGraph.config.style.
|
|
11537
|
+
pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11156
11538
|
}
|
|
11157
11539
|
return pieGraph;
|
|
11158
11540
|
};
|
|
@@ -11175,10 +11557,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11175
11557
|
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
11176
11558
|
barGraph.config.main.header = config2.heading;
|
|
11177
11559
|
if (config2.legendLabels) {
|
|
11178
|
-
barGraph.config.main.legendLabels =
|
|
11560
|
+
barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11179
11561
|
}
|
|
11180
11562
|
if (config2.pieArcColors) {
|
|
11181
|
-
barGraph.config.style.
|
|
11563
|
+
barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11182
11564
|
}
|
|
11183
11565
|
if (config2.xAxisValue) {
|
|
11184
11566
|
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11244,6 +11626,7 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11244
11626
|
}
|
|
11245
11627
|
if (config2.sectionLabels) {
|
|
11246
11628
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11629
|
+
tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
|
|
11247
11630
|
}
|
|
11248
11631
|
if (config2.style) {
|
|
11249
11632
|
tab.config.style = JSON.parse(config2.style);
|
|
@@ -11256,9 +11639,11 @@ var WrapperSection = {
|
|
|
11256
11639
|
config: {
|
|
11257
11640
|
layout: 12,
|
|
11258
11641
|
main: {
|
|
11259
|
-
rowSpacing: 3,
|
|
11260
11642
|
divider: true,
|
|
11261
|
-
label: "Default Label"
|
|
11643
|
+
label: "Default Label",
|
|
11644
|
+
rowSpacing: 2,
|
|
11645
|
+
columnSpacing: 2,
|
|
11646
|
+
spacing: 2
|
|
11262
11647
|
},
|
|
11263
11648
|
defaultStyle: true
|
|
11264
11649
|
},
|
|
@@ -11271,6 +11656,10 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11271
11656
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11272
11657
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11273
11658
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11659
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11660
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11661
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11662
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11274
11663
|
if (config2.defaultStyle) {
|
|
11275
11664
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11276
11665
|
}
|
|
@@ -11326,6 +11715,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11326
11715
|
if (config2.toolTipPosition) {
|
|
11327
11716
|
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11328
11717
|
}
|
|
11718
|
+
if (config2.iconName) {
|
|
11719
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11720
|
+
}
|
|
11329
11721
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11330
11722
|
inputField.scope = componentScope2;
|
|
11331
11723
|
return inputField;
|
|
@@ -11342,7 +11734,8 @@ var SelectInputField = {
|
|
|
11342
11734
|
label: "",
|
|
11343
11735
|
type: "text",
|
|
11344
11736
|
freeSole: false
|
|
11345
|
-
}
|
|
11737
|
+
},
|
|
11738
|
+
style: {}
|
|
11346
11739
|
}
|
|
11347
11740
|
};
|
|
11348
11741
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11369,6 +11762,9 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11369
11762
|
if (config2.toolTipPosition) {
|
|
11370
11763
|
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11371
11764
|
}
|
|
11765
|
+
if (config2.style) {
|
|
11766
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11767
|
+
}
|
|
11372
11768
|
selectInputField.scope = componentScope2;
|
|
11373
11769
|
return selectInputField;
|
|
11374
11770
|
};
|
|
@@ -11476,9 +11872,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11476
11872
|
if (config2.paginateExpandedRows) {
|
|
11477
11873
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11478
11874
|
}
|
|
11479
|
-
if (config2.treeStructure) {
|
|
11480
|
-
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11481
|
-
}
|
|
11482
11875
|
if (config2.SelectionAvailable) {
|
|
11483
11876
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11484
11877
|
}
|
|
@@ -11541,7 +11934,8 @@ const Box = {
|
|
|
11541
11934
|
config: {
|
|
11542
11935
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11543
11936
|
main: {
|
|
11544
|
-
iconName: ""
|
|
11937
|
+
iconName: "",
|
|
11938
|
+
onClick: "onClick"
|
|
11545
11939
|
},
|
|
11546
11940
|
style: {}
|
|
11547
11941
|
}
|
|
@@ -11836,6 +12230,46 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11836
12230
|
}
|
|
11837
12231
|
return card;
|
|
11838
12232
|
};
|
|
12233
|
+
var MetricCard = {
|
|
12234
|
+
type: "Control",
|
|
12235
|
+
scope: "#/properties/metricpath",
|
|
12236
|
+
options: {
|
|
12237
|
+
widget: "MetricCard"
|
|
12238
|
+
},
|
|
12239
|
+
config: {
|
|
12240
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
12241
|
+
main: {}
|
|
12242
|
+
}
|
|
12243
|
+
};
|
|
12244
|
+
const buildMetricCard = (config2, componentScope2, store2) => {
|
|
12245
|
+
const card2 = _.cloneDeep(MetricCard);
|
|
12246
|
+
card2.scope = componentScope2;
|
|
12247
|
+
if (config2.style) {
|
|
12248
|
+
card2.config.style = JSON.parse(config2.style);
|
|
12249
|
+
}
|
|
12250
|
+
if (config2.layout) {
|
|
12251
|
+
card2.config.layout = createLayoutFormat(config2.layout);
|
|
12252
|
+
}
|
|
12253
|
+
if (config2.label) {
|
|
12254
|
+
card2.config.main.label = config2.label;
|
|
12255
|
+
}
|
|
12256
|
+
if (config2.url) {
|
|
12257
|
+
card2.config.main.url = config2.url;
|
|
12258
|
+
}
|
|
12259
|
+
if (config2.description) {
|
|
12260
|
+
card2.config.main.description = config2.description;
|
|
12261
|
+
}
|
|
12262
|
+
if (config2.cardValue) {
|
|
12263
|
+
card2.config.main.cardValue = config2.cardValue;
|
|
12264
|
+
}
|
|
12265
|
+
if (config2.growthRate) {
|
|
12266
|
+
card2.config.main.growthRate = config2.growthRate;
|
|
12267
|
+
}
|
|
12268
|
+
if (config2.color) {
|
|
12269
|
+
card2.config.main.color = config2.color;
|
|
12270
|
+
}
|
|
12271
|
+
return card2;
|
|
12272
|
+
};
|
|
11839
12273
|
var DateInputField = {
|
|
11840
12274
|
type: "Control",
|
|
11841
12275
|
scope: "#/properties/date",
|
|
@@ -11867,7 +12301,6 @@ const DateTime = {
|
|
|
11867
12301
|
const buildDate = (config2, componentScope2) => {
|
|
11868
12302
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11869
12303
|
dateInputField.config.main.label = config2.label;
|
|
11870
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11871
12304
|
dateInputField.scope = componentScope2;
|
|
11872
12305
|
if (config2.layout) {
|
|
11873
12306
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11881,12 +12314,14 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11881
12314
|
if (config2.toolTipPosition) {
|
|
11882
12315
|
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11883
12316
|
}
|
|
12317
|
+
if (config2.style) {
|
|
12318
|
+
dateInputField.config.style = JSON.parse(config2.style);
|
|
12319
|
+
}
|
|
11884
12320
|
return dateInputField;
|
|
11885
12321
|
};
|
|
11886
12322
|
const buildDateTime = (config2, componentScope2) => {
|
|
11887
12323
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11888
12324
|
dateTimeInputField.config.main.label = config2.label;
|
|
11889
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11890
12325
|
dateTimeInputField.scope = componentScope2;
|
|
11891
12326
|
if (config2.layout) {
|
|
11892
12327
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11900,6 +12335,9 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11900
12335
|
if (config2.toolTipPosition) {
|
|
11901
12336
|
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11902
12337
|
}
|
|
12338
|
+
if (config2.style) {
|
|
12339
|
+
dateTimeInputField.config.style = JSON.parse(config2.style);
|
|
12340
|
+
}
|
|
11903
12341
|
return dateTimeInputField;
|
|
11904
12342
|
};
|
|
11905
12343
|
var RankCard = {
|
|
@@ -11990,7 +12428,8 @@ var MultipleSelect = {
|
|
|
11990
12428
|
multiple: true,
|
|
11991
12429
|
variant: "outlined",
|
|
11992
12430
|
options: []
|
|
11993
|
-
}
|
|
12431
|
+
},
|
|
12432
|
+
style: {}
|
|
11994
12433
|
}
|
|
11995
12434
|
};
|
|
11996
12435
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -12017,6 +12456,9 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
12017
12456
|
if (config2.toolTipPosition) {
|
|
12018
12457
|
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12019
12458
|
}
|
|
12459
|
+
if (config2.style) {
|
|
12460
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12461
|
+
}
|
|
12020
12462
|
return multipleSelect;
|
|
12021
12463
|
};
|
|
12022
12464
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -12163,10 +12605,10 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
12163
12605
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
12164
12606
|
}
|
|
12165
12607
|
if (config2.legendLabels) {
|
|
12166
|
-
lineGraph.config.main.legendLabels =
|
|
12608
|
+
lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
12167
12609
|
}
|
|
12168
12610
|
if (config2.pieArcColors) {
|
|
12169
|
-
lineGraph.config.style.
|
|
12611
|
+
lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
12170
12612
|
}
|
|
12171
12613
|
lineGraph.scope = componentScope2;
|
|
12172
12614
|
return lineGraph;
|
|
@@ -12255,7 +12697,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12255
12697
|
if (config2.style) {
|
|
12256
12698
|
array.config.style = JSON.parse(config2.style);
|
|
12257
12699
|
}
|
|
12700
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12701
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12702
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12258
12703
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12704
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12259
12705
|
array.config.main.label = config2.label;
|
|
12260
12706
|
array.scope = componentScope2;
|
|
12261
12707
|
return array;
|
|
@@ -12330,7 +12776,8 @@ const FileInput = {
|
|
|
12330
12776
|
required: false,
|
|
12331
12777
|
onUpload: "onFileUpload",
|
|
12332
12778
|
onDownload: "onFileDownload",
|
|
12333
|
-
label: "Aggrement Copy"
|
|
12779
|
+
label: "Aggrement Copy",
|
|
12780
|
+
"onClick": "onClick"
|
|
12334
12781
|
},
|
|
12335
12782
|
style: {
|
|
12336
12783
|
backgroundColor: "none"
|
|
@@ -12347,27 +12794,19 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12347
12794
|
if (config2.style) {
|
|
12348
12795
|
box.config.style = JSON.parse(config2.style);
|
|
12349
12796
|
}
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
if (config2.disableDelete) {
|
|
12360
|
-
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12361
|
-
}
|
|
12362
|
-
if (config2.description) {
|
|
12363
|
-
box.config.main.description = config2.description;
|
|
12364
|
-
}
|
|
12365
|
-
if (config2.toolTip) {
|
|
12366
|
-
box.config.main.toolTip = config2.toolTip;
|
|
12367
|
-
}
|
|
12797
|
+
box.config.main.variant = config2.variant;
|
|
12798
|
+
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12799
|
+
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12800
|
+
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12801
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12802
|
+
box.config.main.description = config2.description;
|
|
12803
|
+
box.config.main.toolTip = config2.toolTip;
|
|
12804
|
+
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
12805
|
+
box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
|
|
12368
12806
|
if (config2.toolTipPosition) {
|
|
12369
12807
|
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12370
12808
|
}
|
|
12809
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12371
12810
|
return box;
|
|
12372
12811
|
};
|
|
12373
12812
|
const Stepper = {
|
|
@@ -12424,6 +12863,7 @@ const PopUP = {
|
|
|
12424
12863
|
},
|
|
12425
12864
|
main: {
|
|
12426
12865
|
label: "PopUp",
|
|
12866
|
+
onClose: "onClose",
|
|
12427
12867
|
fullScreen: false,
|
|
12428
12868
|
fullWidth: false,
|
|
12429
12869
|
maxWidth: false,
|
|
@@ -12647,7 +13087,8 @@ const imageUiSchema = {
|
|
|
12647
13087
|
config: {
|
|
12648
13088
|
layout: 3,
|
|
12649
13089
|
main: {
|
|
12650
|
-
url: ""
|
|
13090
|
+
url: "",
|
|
13091
|
+
onClick: "onClick"
|
|
12651
13092
|
},
|
|
12652
13093
|
style: {}
|
|
12653
13094
|
}
|
|
@@ -12665,8 +13106,134 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12665
13106
|
if (config2.height) {
|
|
12666
13107
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12667
13108
|
}
|
|
13109
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13110
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12668
13111
|
return image;
|
|
12669
13112
|
};
|
|
13113
|
+
const buildAreaGraph = (config2, componentScope2) => {
|
|
13114
|
+
const AreaGraph = _.cloneDeep(AreaBarGraph);
|
|
13115
|
+
AreaGraph.scope = componentScope2;
|
|
13116
|
+
if (config2.layout) {
|
|
13117
|
+
AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13118
|
+
}
|
|
13119
|
+
AreaGraph.config.main.type = config2.graphType;
|
|
13120
|
+
AreaGraph.scope = componentScope2;
|
|
13121
|
+
AreaGraph.config.main.header = config2.heading;
|
|
13122
|
+
AreaGraph.config.main.subHeader = config2.subHeader;
|
|
13123
|
+
if (config2.legendHide) {
|
|
13124
|
+
AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13125
|
+
}
|
|
13126
|
+
if (config2.bottomAxisAngle) {
|
|
13127
|
+
AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13128
|
+
}
|
|
13129
|
+
if (config2.legendLabels) {
|
|
13130
|
+
AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13131
|
+
}
|
|
13132
|
+
if (config2.legendDirection) {
|
|
13133
|
+
AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13134
|
+
}
|
|
13135
|
+
if (config2.height) {
|
|
13136
|
+
AreaGraph.config.style.containerStyle.height = config2.height;
|
|
13137
|
+
}
|
|
13138
|
+
if (config2.pieArcColors) {
|
|
13139
|
+
AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13140
|
+
}
|
|
13141
|
+
if (config2.xAxisFormatType) {
|
|
13142
|
+
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13143
|
+
}
|
|
13144
|
+
if (config2.yAxisTickCount) {
|
|
13145
|
+
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13146
|
+
}
|
|
13147
|
+
if (config2.xAxisTickCount) {
|
|
13148
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13149
|
+
}
|
|
13150
|
+
if (config2.xAxisValue) {
|
|
13151
|
+
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13152
|
+
}
|
|
13153
|
+
if (config2.xAxisType) {
|
|
13154
|
+
AreaGraph.config.main.xAxisType = config2.xAxisType;
|
|
13155
|
+
}
|
|
13156
|
+
if (config2.bottomLabel) {
|
|
13157
|
+
AreaGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13158
|
+
}
|
|
13159
|
+
if (config2.leftLabel) {
|
|
13160
|
+
AreaGraph.config.main.leftLabel = config2.leftLabel;
|
|
13161
|
+
}
|
|
13162
|
+
if (config2.disableLeftLabel) {
|
|
13163
|
+
AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13164
|
+
}
|
|
13165
|
+
if (config2.leftMargin) {
|
|
13166
|
+
AreaGraph.config.style.labelStyle.margin = {
|
|
13167
|
+
left: config2.leftMargin
|
|
13168
|
+
};
|
|
13169
|
+
}
|
|
13170
|
+
return AreaGraph;
|
|
13171
|
+
};
|
|
13172
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13173
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13174
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13175
|
+
if (config2.layout) {
|
|
13176
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13177
|
+
}
|
|
13178
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13179
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13180
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13181
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13182
|
+
if (config2.legendHide) {
|
|
13183
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13184
|
+
}
|
|
13185
|
+
if (config2.bottomAxisAngle) {
|
|
13186
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13187
|
+
}
|
|
13188
|
+
if (config2.legendLabels) {
|
|
13189
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13190
|
+
}
|
|
13191
|
+
if (config2.legendDirection) {
|
|
13192
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13193
|
+
}
|
|
13194
|
+
if (config2.height) {
|
|
13195
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13196
|
+
}
|
|
13197
|
+
if (config2.pieArcColors) {
|
|
13198
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13199
|
+
}
|
|
13200
|
+
if (config2.yAxisTickCount) {
|
|
13201
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13202
|
+
}
|
|
13203
|
+
if (config2.xAxisTickCount) {
|
|
13204
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13205
|
+
}
|
|
13206
|
+
if (config2.xAxisValue) {
|
|
13207
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13208
|
+
}
|
|
13209
|
+
if (config2.xAxisType) {
|
|
13210
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13211
|
+
}
|
|
13212
|
+
if (config2.bottomLabel) {
|
|
13213
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13214
|
+
}
|
|
13215
|
+
if (config2.leftLabel) {
|
|
13216
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13217
|
+
}
|
|
13218
|
+
if (config2.rightLabel) {
|
|
13219
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13220
|
+
}
|
|
13221
|
+
if (config2.disableLeftLabel) {
|
|
13222
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13223
|
+
}
|
|
13224
|
+
if (config2.growthRateKey) {
|
|
13225
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13226
|
+
}
|
|
13227
|
+
if (config2.tooltipUnit) {
|
|
13228
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13229
|
+
}
|
|
13230
|
+
if (config2.leftMargin) {
|
|
13231
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13232
|
+
left: config2.leftMargin
|
|
13233
|
+
};
|
|
13234
|
+
}
|
|
13235
|
+
return StackBarLineGraph;
|
|
13236
|
+
};
|
|
12670
13237
|
const cameraUiSchema = {
|
|
12671
13238
|
type: "Control",
|
|
12672
13239
|
scope: "#/properties/camera",
|
|
@@ -12707,10 +13274,149 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
12707
13274
|
camera.config.main.color = config2.color;
|
|
12708
13275
|
}
|
|
12709
13276
|
if (config2.label) {
|
|
12710
|
-
camera.config.main.
|
|
13277
|
+
camera.config.main.label = config2.label;
|
|
12711
13278
|
}
|
|
12712
13279
|
return camera;
|
|
12713
13280
|
};
|
|
13281
|
+
var ButtonGroup = {
|
|
13282
|
+
type: "Control",
|
|
13283
|
+
scope: "#/properties/buttonGroup",
|
|
13284
|
+
options: {
|
|
13285
|
+
widget: "ButtonGroup"
|
|
13286
|
+
},
|
|
13287
|
+
config: {
|
|
13288
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
13289
|
+
main: {
|
|
13290
|
+
variant: "contained",
|
|
13291
|
+
styleDefault: false,
|
|
13292
|
+
size: "small"
|
|
13293
|
+
},
|
|
13294
|
+
style: {}
|
|
13295
|
+
}
|
|
13296
|
+
};
|
|
13297
|
+
const buildButtonGroup = (config2, componentScope2) => {
|
|
13298
|
+
const buttonGroup = _.cloneDeep(ButtonGroup);
|
|
13299
|
+
if (config2.layout) {
|
|
13300
|
+
buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13301
|
+
}
|
|
13302
|
+
buttonGroup.scope = componentScope2;
|
|
13303
|
+
if (config2.multiSelect) {
|
|
13304
|
+
buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
|
|
13305
|
+
}
|
|
13306
|
+
if (config2.style) {
|
|
13307
|
+
buttonGroup.config.style = JSON.parse(config2.style);
|
|
13308
|
+
}
|
|
13309
|
+
if (config2.size) {
|
|
13310
|
+
buttonGroup.config.main.size = config2.size;
|
|
13311
|
+
}
|
|
13312
|
+
if (config2.color) {
|
|
13313
|
+
buttonGroup.config.main.color = config2.color;
|
|
13314
|
+
}
|
|
13315
|
+
return buttonGroup;
|
|
13316
|
+
};
|
|
13317
|
+
const PopOver = {
|
|
13318
|
+
type: "Control",
|
|
13319
|
+
scope: "#/properties/text",
|
|
13320
|
+
options: {
|
|
13321
|
+
widget: "Popover"
|
|
13322
|
+
},
|
|
13323
|
+
config: {
|
|
13324
|
+
layout: {
|
|
13325
|
+
xs: 12,
|
|
13326
|
+
sm: 12,
|
|
13327
|
+
md: 12,
|
|
13328
|
+
lg: 12
|
|
13329
|
+
},
|
|
13330
|
+
main: {
|
|
13331
|
+
label: "PopOver"
|
|
13332
|
+
},
|
|
13333
|
+
style: {}
|
|
13334
|
+
}
|
|
13335
|
+
};
|
|
13336
|
+
const buildPopOver = (config2, componentScope2) => {
|
|
13337
|
+
const popOver = _.cloneDeep(PopOver);
|
|
13338
|
+
popOver.scope = componentScope2;
|
|
13339
|
+
popOver.config.main.positionVertical = config2.positionVertical;
|
|
13340
|
+
popOver.config.main.positionHorizontal = config2.positionHorizontal;
|
|
13341
|
+
popOver.config.main.contentVertical = config2.contentVertical;
|
|
13342
|
+
popOver.config.main.contentHorizontal = config2.contentHorizontal;
|
|
13343
|
+
popOver.config.main.width = config2.width;
|
|
13344
|
+
popOver.config.main.gap = config2.gap;
|
|
13345
|
+
if (config2.layout) {
|
|
13346
|
+
popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13347
|
+
}
|
|
13348
|
+
if (config2.style) {
|
|
13349
|
+
popOver.config.style = JSON.parse(config2.style);
|
|
13350
|
+
}
|
|
13351
|
+
return popOver;
|
|
13352
|
+
};
|
|
13353
|
+
const OTPSchema = {
|
|
13354
|
+
type: "Control",
|
|
13355
|
+
scope: "#/properties/OTPInput",
|
|
13356
|
+
options: {
|
|
13357
|
+
widget: "OTPInput"
|
|
13358
|
+
},
|
|
13359
|
+
config: {
|
|
13360
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
13361
|
+
main: {
|
|
13362
|
+
seperator: "",
|
|
13363
|
+
length: 4,
|
|
13364
|
+
type: "number",
|
|
13365
|
+
masking: true
|
|
13366
|
+
}
|
|
13367
|
+
}
|
|
13368
|
+
};
|
|
13369
|
+
const buildOTP_Input = (config2, componentScope2) => {
|
|
13370
|
+
const OTP = _.cloneDeep(OTPSchema);
|
|
13371
|
+
OTP.scope = componentScope2;
|
|
13372
|
+
if (config2.layout) {
|
|
13373
|
+
OTP.config.layout = createLayoutFormat(config2.layout);
|
|
13374
|
+
}
|
|
13375
|
+
if (config2.style) {
|
|
13376
|
+
OTP.config.style = JSON.parse(config2.style);
|
|
13377
|
+
}
|
|
13378
|
+
if (config2.errorMessage) {
|
|
13379
|
+
OTP.config.main.errorMessage = config2.errorMessage;
|
|
13380
|
+
}
|
|
13381
|
+
if (config2.toolTip) {
|
|
13382
|
+
OTP.config.main.toolTip = config2.toolTip;
|
|
13383
|
+
}
|
|
13384
|
+
OTP.config.main.masking = config2.masking === "YES" ? true : false;
|
|
13385
|
+
OTP.config.main.type = config2.OTP_Format;
|
|
13386
|
+
OTP.config.main.seperator = config2.seperator;
|
|
13387
|
+
OTP.config.main.length = +config2.length;
|
|
13388
|
+
return OTP;
|
|
13389
|
+
};
|
|
13390
|
+
var pdfViewer = {
|
|
13391
|
+
type: "Control",
|
|
13392
|
+
scope: "#/properties/pdfviewer",
|
|
13393
|
+
options: {
|
|
13394
|
+
widget: "PdfViewer"
|
|
13395
|
+
},
|
|
13396
|
+
config: {
|
|
13397
|
+
layout: {
|
|
13398
|
+
xs: 12,
|
|
13399
|
+
sm: 12,
|
|
13400
|
+
md: 12,
|
|
13401
|
+
lg: 12
|
|
13402
|
+
},
|
|
13403
|
+
main: {
|
|
13404
|
+
title: "PDF"
|
|
13405
|
+
}
|
|
13406
|
+
}
|
|
13407
|
+
};
|
|
13408
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13409
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13410
|
+
PdfViewer.scope = componentScope2;
|
|
13411
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13412
|
+
if (config2.layout) {
|
|
13413
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13414
|
+
}
|
|
13415
|
+
if (config2.style) {
|
|
13416
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13417
|
+
}
|
|
13418
|
+
return PdfViewer;
|
|
13419
|
+
};
|
|
12714
13420
|
let schema = {
|
|
12715
13421
|
type: "object",
|
|
12716
13422
|
properties: {},
|
|
@@ -12781,6 +13487,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12781
13487
|
let elements = {};
|
|
12782
13488
|
const componentScope2 = `#/properties/${config2.name}`;
|
|
12783
13489
|
switch (config2.type) {
|
|
13490
|
+
case "OTP_Input":
|
|
13491
|
+
elements = buildOTP_Input(config2, componentScope2);
|
|
13492
|
+
break;
|
|
12784
13493
|
case "TreeMap":
|
|
12785
13494
|
elements = buildTreeMap(config2, componentScope2);
|
|
12786
13495
|
break;
|
|
@@ -12799,6 +13508,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12799
13508
|
case "PopUp":
|
|
12800
13509
|
elements = buildPopUp(config2, componentScope2);
|
|
12801
13510
|
break;
|
|
13511
|
+
case "PopOver":
|
|
13512
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13513
|
+
break;
|
|
12802
13514
|
case "FileInput":
|
|
12803
13515
|
elements = buildFileInput(config2, componentScope2);
|
|
12804
13516
|
break;
|
|
@@ -12838,6 +13550,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12838
13550
|
case "Button":
|
|
12839
13551
|
elements = buildButton(config2, componentScope2);
|
|
12840
13552
|
break;
|
|
13553
|
+
case "ButtonGroup":
|
|
13554
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13555
|
+
break;
|
|
12841
13556
|
case "Table":
|
|
12842
13557
|
elements = buildTable(config2, componentScope2);
|
|
12843
13558
|
break;
|
|
@@ -12862,6 +13577,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12862
13577
|
case "card":
|
|
12863
13578
|
elements = buildCard(config2, componentScope2, store2);
|
|
12864
13579
|
break;
|
|
13580
|
+
case "MetricCard":
|
|
13581
|
+
elements = buildMetricCard(config2, componentScope2);
|
|
13582
|
+
break;
|
|
12865
13583
|
case "Graph":
|
|
12866
13584
|
switch (config2.graphType) {
|
|
12867
13585
|
case "BarGraph":
|
|
@@ -12878,6 +13596,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12878
13596
|
case "HorizontalStackBarGraph":
|
|
12879
13597
|
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12880
13598
|
break;
|
|
13599
|
+
case "AreaGraph":
|
|
13600
|
+
elements = buildAreaGraph(config2, componentScope2);
|
|
13601
|
+
break;
|
|
13602
|
+
case "StackBarLineGraph":
|
|
13603
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13604
|
+
break;
|
|
12881
13605
|
default:
|
|
12882
13606
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
12883
13607
|
break;
|
|
@@ -12926,6 +13650,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12926
13650
|
case "Camera":
|
|
12927
13651
|
elements = buildCamera(config2, componentScope2);
|
|
12928
13652
|
break;
|
|
13653
|
+
case "PdfViewer":
|
|
13654
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13655
|
+
break;
|
|
12929
13656
|
default:
|
|
12930
13657
|
schema = {
|
|
12931
13658
|
type: "object",
|
|
@@ -13029,6 +13756,11 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13029
13756
|
});
|
|
13030
13757
|
}
|
|
13031
13758
|
}
|
|
13759
|
+
if (config2.tabLabelElements) {
|
|
13760
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13761
|
+
return buildUiSchema(e, store2);
|
|
13762
|
+
});
|
|
13763
|
+
}
|
|
13032
13764
|
return elements;
|
|
13033
13765
|
};
|
|
13034
13766
|
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|