impaktapps-ui-builder 1.0.174 → 1.0.181
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 +812 -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 +78 -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,62 @@ 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
|
+
const fileName = response.headers.get("filename") || "downloaded_file";
|
|
10529
|
+
const extension = fileName.includes(".") ? fileName.substring(fileName.lastIndexOf(".")) : "";
|
|
10530
|
+
const reader = response.body.getReader();
|
|
10531
|
+
const fileHandle = await window.showSaveFilePicker({
|
|
10532
|
+
suggestedName: fileName,
|
|
10533
|
+
types: extension ? [
|
|
10534
|
+
{
|
|
10535
|
+
description: "File",
|
|
10536
|
+
accept: {
|
|
10537
|
+
"application/octet-stream": [extension]
|
|
10538
|
+
}
|
|
10539
|
+
}
|
|
10540
|
+
] : void 0
|
|
10541
|
+
});
|
|
10542
|
+
const writable = await fileHandle.createWritable();
|
|
10543
|
+
while (true) {
|
|
10544
|
+
const { done, value } = await reader.read();
|
|
10545
|
+
if (done)
|
|
10546
|
+
break;
|
|
10547
|
+
await writable.write(value);
|
|
10548
|
+
}
|
|
10549
|
+
await writable.close();
|
|
10550
|
+
params2.store.setNotify({
|
|
10551
|
+
SuccessMessage: "File Downloaded Successfully",
|
|
10552
|
+
Success: true
|
|
10553
|
+
});
|
|
10554
|
+
} catch (e) {
|
|
10555
|
+
params2.store.setNotify({
|
|
10556
|
+
FailMessage: "File Download Failed",
|
|
10557
|
+
Fail: true
|
|
10558
|
+
});
|
|
10559
|
+
console.error(e);
|
|
10560
|
+
}
|
|
10561
|
+
};
|
|
10242
10562
|
const executeEvents = (params2) => {
|
|
10243
10563
|
var _a, _b, _c;
|
|
10244
10564
|
let nextEvent = [];
|
|
@@ -10360,10 +10680,13 @@ function executeInBuiltFunctionHandler(params) {
|
|
|
10360
10680
|
let parameter = {};
|
|
10361
10681
|
if (params.config.funcParametersCode) {
|
|
10362
10682
|
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](
|
|
10683
|
+
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.fetchservice);
|
|
10684
|
+
params.serviceHolder[params.config.inBuiltFunctionType](
|
|
10685
|
+
parameter,
|
|
10686
|
+
params.service
|
|
10687
|
+
);
|
|
10365
10688
|
} else {
|
|
10366
|
-
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
10689
|
+
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.fetchservice);
|
|
10367
10690
|
}
|
|
10368
10691
|
}
|
|
10369
10692
|
function executeCustomHandler(params) {
|
|
@@ -10567,7 +10890,8 @@ var service = (funcParams) => {
|
|
|
10567
10890
|
dynamicData: funcParams.dynamicData,
|
|
10568
10891
|
userValue: funcParams.userValue,
|
|
10569
10892
|
service: funcParams.service,
|
|
10570
|
-
|
|
10893
|
+
fetchservice: funcParams.fetchservice,
|
|
10894
|
+
serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, downloadFileStream, ...funcParams.functionsProvider },
|
|
10571
10895
|
eventGroups,
|
|
10572
10896
|
functionsProvider: funcParams.functionsProvider,
|
|
10573
10897
|
formDataHolder
|
|
@@ -10584,7 +10908,7 @@ var service = (funcParams) => {
|
|
|
10584
10908
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10585
10909
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10586
10910
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10587
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10911
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10588
10912
|
});
|
|
10589
10913
|
window.dispatchEvent(event2);
|
|
10590
10914
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10627,6 +10951,25 @@ var service = (funcParams) => {
|
|
|
10627
10951
|
funcParams.store.setUiSchema(uiSchema);
|
|
10628
10952
|
});
|
|
10629
10953
|
},
|
|
10954
|
+
getStyle: () => {
|
|
10955
|
+
var _a, _b, _c, _d;
|
|
10956
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10957
|
+
if (cloneEventGroup.setStyle) {
|
|
10958
|
+
let finalResponse = {};
|
|
10959
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10960
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10961
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10962
|
+
finalResponse = executeEvents({
|
|
10963
|
+
...executeEventsParameters,
|
|
10964
|
+
config: eventConfig,
|
|
10965
|
+
componentName: path
|
|
10966
|
+
});
|
|
10967
|
+
}
|
|
10968
|
+
return finalResponse;
|
|
10969
|
+
}
|
|
10970
|
+
}
|
|
10971
|
+
return {};
|
|
10972
|
+
},
|
|
10630
10973
|
onCellRenderer: (cellParams) => {
|
|
10631
10974
|
var _a, _b, _c, _d, _e;
|
|
10632
10975
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10656,6 +10999,9 @@ var service = (funcParams) => {
|
|
|
10656
10999
|
onFileDelete: async function() {
|
|
10657
11000
|
this.callHandler("onFileDelete");
|
|
10658
11001
|
},
|
|
11002
|
+
onClose: function() {
|
|
11003
|
+
this.callHandler("onClose");
|
|
11004
|
+
},
|
|
10659
11005
|
onMount: function() {
|
|
10660
11006
|
this.callHandler("onMount");
|
|
10661
11007
|
},
|
|
@@ -10679,14 +11025,15 @@ var service = (funcParams) => {
|
|
|
10679
11025
|
return response == null ? void 0 : response.data;
|
|
10680
11026
|
},
|
|
10681
11027
|
onPaginationChange: async function(paginationValues) {
|
|
10682
|
-
var _a
|
|
11028
|
+
var _a;
|
|
10683
11029
|
const apiBody = [
|
|
10684
11030
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10685
11031
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10686
11032
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10687
11033
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10688
11034
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10689
|
-
{ key: "
|
|
11035
|
+
{ key: "parentIds", value: paginationValues.parentIds },
|
|
11036
|
+
{ key: "isExpandAll", value: paginationValues.isExpandAll }
|
|
10690
11037
|
];
|
|
10691
11038
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10692
11039
|
return response == null ? void 0 : response.data;
|
|
@@ -10706,8 +11053,8 @@ var service = (funcParams) => {
|
|
|
10706
11053
|
return;
|
|
10707
11054
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10708
11055
|
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10709
|
-
var _a
|
|
10710
|
-
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]
|
|
11056
|
+
var _a;
|
|
11057
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
10711
11058
|
return [];
|
|
10712
11059
|
}
|
|
10713
11060
|
return eventGroups.onChange[componentName].map(
|
|
@@ -10806,6 +11153,7 @@ var service = (funcParams) => {
|
|
|
10806
11153
|
},
|
|
10807
11154
|
downloadFile: downloadFile$1,
|
|
10808
11155
|
downloadFileFromUrl,
|
|
11156
|
+
downloadFileStream,
|
|
10809
11157
|
...funcParams.functionsProvider
|
|
10810
11158
|
};
|
|
10811
11159
|
};
|
|
@@ -10942,7 +11290,7 @@ const BarGraph = {
|
|
|
10942
11290
|
type: "BarGraph",
|
|
10943
11291
|
legendLabels: null
|
|
10944
11292
|
},
|
|
10945
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11293
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10946
11294
|
}
|
|
10947
11295
|
};
|
|
10948
11296
|
const PieGraph = {
|
|
@@ -10957,7 +11305,7 @@ const PieGraph = {
|
|
|
10957
11305
|
type: "PieGraph",
|
|
10958
11306
|
legendLabels: null
|
|
10959
11307
|
},
|
|
10960
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11308
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10961
11309
|
}
|
|
10962
11310
|
};
|
|
10963
11311
|
const LineGraph = {
|
|
@@ -10972,7 +11320,7 @@ const LineGraph = {
|
|
|
10972
11320
|
type: "LineGraph",
|
|
10973
11321
|
legendLabels: null
|
|
10974
11322
|
},
|
|
10975
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11323
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10976
11324
|
}
|
|
10977
11325
|
};
|
|
10978
11326
|
const HorizontalBarGraph = {
|
|
@@ -10987,7 +11335,37 @@ const HorizontalBarGraph = {
|
|
|
10987
11335
|
type: "HorizontalBarGraph",
|
|
10988
11336
|
legendLabels: null
|
|
10989
11337
|
},
|
|
10990
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11338
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11339
|
+
}
|
|
11340
|
+
};
|
|
11341
|
+
const AreaBarGraph = {
|
|
11342
|
+
type: "Control",
|
|
11343
|
+
scope: "#/properties/graph",
|
|
11344
|
+
options: {
|
|
11345
|
+
widget: "Graph"
|
|
11346
|
+
},
|
|
11347
|
+
config: {
|
|
11348
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11349
|
+
main: {
|
|
11350
|
+
type: "AreaGraph",
|
|
11351
|
+
legendLabels: null
|
|
11352
|
+
},
|
|
11353
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11354
|
+
}
|
|
11355
|
+
};
|
|
11356
|
+
const StackBarLineG = {
|
|
11357
|
+
type: "Control",
|
|
11358
|
+
scope: "#/properties/graph",
|
|
11359
|
+
options: {
|
|
11360
|
+
widget: "Graph"
|
|
11361
|
+
},
|
|
11362
|
+
config: {
|
|
11363
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11364
|
+
main: {
|
|
11365
|
+
type: "StackBarLineGraph",
|
|
11366
|
+
legendLabels: null
|
|
11367
|
+
},
|
|
11368
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10991
11369
|
}
|
|
10992
11370
|
};
|
|
10993
11371
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
@@ -11006,13 +11384,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
11006
11384
|
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11007
11385
|
}
|
|
11008
11386
|
if (config2.legendLabels) {
|
|
11009
|
-
horizontalBarGraph.config.main.legendLabels =
|
|
11387
|
+
horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11010
11388
|
}
|
|
11011
11389
|
if (config2.legendDirection) {
|
|
11012
11390
|
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
11013
11391
|
}
|
|
11014
11392
|
if (config2.pieArcColors) {
|
|
11015
|
-
horizontalBarGraph.config.style.
|
|
11393
|
+
horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11016
11394
|
}
|
|
11017
11395
|
if (config2.xAxisValue) {
|
|
11018
11396
|
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11146,13 +11524,13 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
11146
11524
|
pieGraph.scope = componentScope2;
|
|
11147
11525
|
pieGraph.config.main.header = config2.heading;
|
|
11148
11526
|
if (config2.legendLabels) {
|
|
11149
|
-
pieGraph.config.main.legendLabels =
|
|
11527
|
+
pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11150
11528
|
}
|
|
11151
11529
|
if (config2.xAxisValue) {
|
|
11152
11530
|
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11153
11531
|
}
|
|
11154
11532
|
if (config2.pieArcColors) {
|
|
11155
|
-
pieGraph.config.style.
|
|
11533
|
+
pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11156
11534
|
}
|
|
11157
11535
|
return pieGraph;
|
|
11158
11536
|
};
|
|
@@ -11175,10 +11553,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11175
11553
|
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
11176
11554
|
barGraph.config.main.header = config2.heading;
|
|
11177
11555
|
if (config2.legendLabels) {
|
|
11178
|
-
barGraph.config.main.legendLabels =
|
|
11556
|
+
barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11179
11557
|
}
|
|
11180
11558
|
if (config2.pieArcColors) {
|
|
11181
|
-
barGraph.config.style.
|
|
11559
|
+
barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11182
11560
|
}
|
|
11183
11561
|
if (config2.xAxisValue) {
|
|
11184
11562
|
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11244,6 +11622,7 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11244
11622
|
}
|
|
11245
11623
|
if (config2.sectionLabels) {
|
|
11246
11624
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11625
|
+
tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
|
|
11247
11626
|
}
|
|
11248
11627
|
if (config2.style) {
|
|
11249
11628
|
tab.config.style = JSON.parse(config2.style);
|
|
@@ -11256,9 +11635,11 @@ var WrapperSection = {
|
|
|
11256
11635
|
config: {
|
|
11257
11636
|
layout: 12,
|
|
11258
11637
|
main: {
|
|
11259
|
-
rowSpacing: 3,
|
|
11260
11638
|
divider: true,
|
|
11261
|
-
label: "Default Label"
|
|
11639
|
+
label: "Default Label",
|
|
11640
|
+
rowSpacing: 2,
|
|
11641
|
+
columnSpacing: 2,
|
|
11642
|
+
spacing: 2
|
|
11262
11643
|
},
|
|
11263
11644
|
defaultStyle: true
|
|
11264
11645
|
},
|
|
@@ -11271,6 +11652,10 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11271
11652
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11272
11653
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11273
11654
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11655
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11656
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11657
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11658
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11274
11659
|
if (config2.defaultStyle) {
|
|
11275
11660
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11276
11661
|
}
|
|
@@ -11326,6 +11711,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11326
11711
|
if (config2.toolTipPosition) {
|
|
11327
11712
|
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11328
11713
|
}
|
|
11714
|
+
if (config2.iconName) {
|
|
11715
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11716
|
+
}
|
|
11329
11717
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11330
11718
|
inputField.scope = componentScope2;
|
|
11331
11719
|
return inputField;
|
|
@@ -11342,7 +11730,8 @@ var SelectInputField = {
|
|
|
11342
11730
|
label: "",
|
|
11343
11731
|
type: "text",
|
|
11344
11732
|
freeSole: false
|
|
11345
|
-
}
|
|
11733
|
+
},
|
|
11734
|
+
style: {}
|
|
11346
11735
|
}
|
|
11347
11736
|
};
|
|
11348
11737
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11369,6 +11758,9 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11369
11758
|
if (config2.toolTipPosition) {
|
|
11370
11759
|
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11371
11760
|
}
|
|
11761
|
+
if (config2.style) {
|
|
11762
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11763
|
+
}
|
|
11372
11764
|
selectInputField.scope = componentScope2;
|
|
11373
11765
|
return selectInputField;
|
|
11374
11766
|
};
|
|
@@ -11476,9 +11868,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11476
11868
|
if (config2.paginateExpandedRows) {
|
|
11477
11869
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11478
11870
|
}
|
|
11479
|
-
if (config2.treeStructure) {
|
|
11480
|
-
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11481
|
-
}
|
|
11482
11871
|
if (config2.SelectionAvailable) {
|
|
11483
11872
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11484
11873
|
}
|
|
@@ -11541,7 +11930,8 @@ const Box = {
|
|
|
11541
11930
|
config: {
|
|
11542
11931
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11543
11932
|
main: {
|
|
11544
|
-
iconName: ""
|
|
11933
|
+
iconName: "",
|
|
11934
|
+
onClick: "onClick"
|
|
11545
11935
|
},
|
|
11546
11936
|
style: {}
|
|
11547
11937
|
}
|
|
@@ -11836,6 +12226,46 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11836
12226
|
}
|
|
11837
12227
|
return card;
|
|
11838
12228
|
};
|
|
12229
|
+
var MetricCard = {
|
|
12230
|
+
type: "Control",
|
|
12231
|
+
scope: "#/properties/metricpath",
|
|
12232
|
+
options: {
|
|
12233
|
+
widget: "MetricCard"
|
|
12234
|
+
},
|
|
12235
|
+
config: {
|
|
12236
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
12237
|
+
main: {}
|
|
12238
|
+
}
|
|
12239
|
+
};
|
|
12240
|
+
const buildMetricCard = (config2, componentScope2, store2) => {
|
|
12241
|
+
const card2 = _.cloneDeep(MetricCard);
|
|
12242
|
+
card2.scope = componentScope2;
|
|
12243
|
+
if (config2.style) {
|
|
12244
|
+
card2.config.style = JSON.parse(config2.style);
|
|
12245
|
+
}
|
|
12246
|
+
if (config2.layout) {
|
|
12247
|
+
card2.config.layout = createLayoutFormat(config2.layout);
|
|
12248
|
+
}
|
|
12249
|
+
if (config2.label) {
|
|
12250
|
+
card2.config.main.label = config2.label;
|
|
12251
|
+
}
|
|
12252
|
+
if (config2.url) {
|
|
12253
|
+
card2.config.main.url = config2.url;
|
|
12254
|
+
}
|
|
12255
|
+
if (config2.description) {
|
|
12256
|
+
card2.config.main.description = config2.description;
|
|
12257
|
+
}
|
|
12258
|
+
if (config2.cardValue) {
|
|
12259
|
+
card2.config.main.cardValue = config2.cardValue;
|
|
12260
|
+
}
|
|
12261
|
+
if (config2.growthRate) {
|
|
12262
|
+
card2.config.main.growthRate = config2.growthRate;
|
|
12263
|
+
}
|
|
12264
|
+
if (config2.color) {
|
|
12265
|
+
card2.config.main.color = config2.color;
|
|
12266
|
+
}
|
|
12267
|
+
return card2;
|
|
12268
|
+
};
|
|
11839
12269
|
var DateInputField = {
|
|
11840
12270
|
type: "Control",
|
|
11841
12271
|
scope: "#/properties/date",
|
|
@@ -11867,7 +12297,6 @@ const DateTime = {
|
|
|
11867
12297
|
const buildDate = (config2, componentScope2) => {
|
|
11868
12298
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11869
12299
|
dateInputField.config.main.label = config2.label;
|
|
11870
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11871
12300
|
dateInputField.scope = componentScope2;
|
|
11872
12301
|
if (config2.layout) {
|
|
11873
12302
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11881,12 +12310,14 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11881
12310
|
if (config2.toolTipPosition) {
|
|
11882
12311
|
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11883
12312
|
}
|
|
12313
|
+
if (config2.style) {
|
|
12314
|
+
dateInputField.config.style = JSON.parse(config2.style);
|
|
12315
|
+
}
|
|
11884
12316
|
return dateInputField;
|
|
11885
12317
|
};
|
|
11886
12318
|
const buildDateTime = (config2, componentScope2) => {
|
|
11887
12319
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11888
12320
|
dateTimeInputField.config.main.label = config2.label;
|
|
11889
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11890
12321
|
dateTimeInputField.scope = componentScope2;
|
|
11891
12322
|
if (config2.layout) {
|
|
11892
12323
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11900,6 +12331,9 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11900
12331
|
if (config2.toolTipPosition) {
|
|
11901
12332
|
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11902
12333
|
}
|
|
12334
|
+
if (config2.style) {
|
|
12335
|
+
dateTimeInputField.config.style = JSON.parse(config2.style);
|
|
12336
|
+
}
|
|
11903
12337
|
return dateTimeInputField;
|
|
11904
12338
|
};
|
|
11905
12339
|
var RankCard = {
|
|
@@ -11990,7 +12424,8 @@ var MultipleSelect = {
|
|
|
11990
12424
|
multiple: true,
|
|
11991
12425
|
variant: "outlined",
|
|
11992
12426
|
options: []
|
|
11993
|
-
}
|
|
12427
|
+
},
|
|
12428
|
+
style: {}
|
|
11994
12429
|
}
|
|
11995
12430
|
};
|
|
11996
12431
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -12017,6 +12452,9 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
12017
12452
|
if (config2.toolTipPosition) {
|
|
12018
12453
|
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12019
12454
|
}
|
|
12455
|
+
if (config2.style) {
|
|
12456
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12457
|
+
}
|
|
12020
12458
|
return multipleSelect;
|
|
12021
12459
|
};
|
|
12022
12460
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -12163,10 +12601,10 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
12163
12601
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
12164
12602
|
}
|
|
12165
12603
|
if (config2.legendLabels) {
|
|
12166
|
-
lineGraph.config.main.legendLabels =
|
|
12604
|
+
lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
12167
12605
|
}
|
|
12168
12606
|
if (config2.pieArcColors) {
|
|
12169
|
-
lineGraph.config.style.
|
|
12607
|
+
lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
12170
12608
|
}
|
|
12171
12609
|
lineGraph.scope = componentScope2;
|
|
12172
12610
|
return lineGraph;
|
|
@@ -12255,7 +12693,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12255
12693
|
if (config2.style) {
|
|
12256
12694
|
array.config.style = JSON.parse(config2.style);
|
|
12257
12695
|
}
|
|
12696
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12697
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12698
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12258
12699
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12700
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12259
12701
|
array.config.main.label = config2.label;
|
|
12260
12702
|
array.scope = componentScope2;
|
|
12261
12703
|
return array;
|
|
@@ -12330,7 +12772,8 @@ const FileInput = {
|
|
|
12330
12772
|
required: false,
|
|
12331
12773
|
onUpload: "onFileUpload",
|
|
12332
12774
|
onDownload: "onFileDownload",
|
|
12333
|
-
label: "Aggrement Copy"
|
|
12775
|
+
label: "Aggrement Copy",
|
|
12776
|
+
"onClick": "onClick"
|
|
12334
12777
|
},
|
|
12335
12778
|
style: {
|
|
12336
12779
|
backgroundColor: "none"
|
|
@@ -12347,27 +12790,19 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12347
12790
|
if (config2.style) {
|
|
12348
12791
|
box.config.style = JSON.parse(config2.style);
|
|
12349
12792
|
}
|
|
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
|
-
}
|
|
12793
|
+
box.config.main.variant = config2.variant;
|
|
12794
|
+
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12795
|
+
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12796
|
+
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12797
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12798
|
+
box.config.main.description = config2.description;
|
|
12799
|
+
box.config.main.toolTip = config2.toolTip;
|
|
12800
|
+
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
12801
|
+
box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
|
|
12368
12802
|
if (config2.toolTipPosition) {
|
|
12369
12803
|
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12370
12804
|
}
|
|
12805
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12371
12806
|
return box;
|
|
12372
12807
|
};
|
|
12373
12808
|
const Stepper = {
|
|
@@ -12424,6 +12859,7 @@ const PopUP = {
|
|
|
12424
12859
|
},
|
|
12425
12860
|
main: {
|
|
12426
12861
|
label: "PopUp",
|
|
12862
|
+
onClose: "onClose",
|
|
12427
12863
|
fullScreen: false,
|
|
12428
12864
|
fullWidth: false,
|
|
12429
12865
|
maxWidth: false,
|
|
@@ -12647,7 +13083,8 @@ const imageUiSchema = {
|
|
|
12647
13083
|
config: {
|
|
12648
13084
|
layout: 3,
|
|
12649
13085
|
main: {
|
|
12650
|
-
url: ""
|
|
13086
|
+
url: "",
|
|
13087
|
+
onClick: "onClick"
|
|
12651
13088
|
},
|
|
12652
13089
|
style: {}
|
|
12653
13090
|
}
|
|
@@ -12665,8 +13102,134 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12665
13102
|
if (config2.height) {
|
|
12666
13103
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12667
13104
|
}
|
|
13105
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13106
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12668
13107
|
return image;
|
|
12669
13108
|
};
|
|
13109
|
+
const buildAreaGraph = (config2, componentScope2) => {
|
|
13110
|
+
const AreaGraph = _.cloneDeep(AreaBarGraph);
|
|
13111
|
+
AreaGraph.scope = componentScope2;
|
|
13112
|
+
if (config2.layout) {
|
|
13113
|
+
AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13114
|
+
}
|
|
13115
|
+
AreaGraph.config.main.type = config2.graphType;
|
|
13116
|
+
AreaGraph.scope = componentScope2;
|
|
13117
|
+
AreaGraph.config.main.header = config2.heading;
|
|
13118
|
+
AreaGraph.config.main.subHeader = config2.subHeader;
|
|
13119
|
+
if (config2.legendHide) {
|
|
13120
|
+
AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13121
|
+
}
|
|
13122
|
+
if (config2.bottomAxisAngle) {
|
|
13123
|
+
AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13124
|
+
}
|
|
13125
|
+
if (config2.legendLabels) {
|
|
13126
|
+
AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13127
|
+
}
|
|
13128
|
+
if (config2.legendDirection) {
|
|
13129
|
+
AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13130
|
+
}
|
|
13131
|
+
if (config2.height) {
|
|
13132
|
+
AreaGraph.config.style.containerStyle.height = config2.height;
|
|
13133
|
+
}
|
|
13134
|
+
if (config2.pieArcColors) {
|
|
13135
|
+
AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13136
|
+
}
|
|
13137
|
+
if (config2.xAxisFormatType) {
|
|
13138
|
+
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13139
|
+
}
|
|
13140
|
+
if (config2.yAxisTickCount) {
|
|
13141
|
+
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13142
|
+
}
|
|
13143
|
+
if (config2.xAxisTickCount) {
|
|
13144
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13145
|
+
}
|
|
13146
|
+
if (config2.xAxisValue) {
|
|
13147
|
+
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13148
|
+
}
|
|
13149
|
+
if (config2.xAxisType) {
|
|
13150
|
+
AreaGraph.config.main.xAxisType = config2.xAxisType;
|
|
13151
|
+
}
|
|
13152
|
+
if (config2.bottomLabel) {
|
|
13153
|
+
AreaGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13154
|
+
}
|
|
13155
|
+
if (config2.leftLabel) {
|
|
13156
|
+
AreaGraph.config.main.leftLabel = config2.leftLabel;
|
|
13157
|
+
}
|
|
13158
|
+
if (config2.disableLeftLabel) {
|
|
13159
|
+
AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13160
|
+
}
|
|
13161
|
+
if (config2.leftMargin) {
|
|
13162
|
+
AreaGraph.config.style.labelStyle.margin = {
|
|
13163
|
+
left: config2.leftMargin
|
|
13164
|
+
};
|
|
13165
|
+
}
|
|
13166
|
+
return AreaGraph;
|
|
13167
|
+
};
|
|
13168
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13169
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13170
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13171
|
+
if (config2.layout) {
|
|
13172
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13173
|
+
}
|
|
13174
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13175
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13176
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13177
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13178
|
+
if (config2.legendHide) {
|
|
13179
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13180
|
+
}
|
|
13181
|
+
if (config2.bottomAxisAngle) {
|
|
13182
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13183
|
+
}
|
|
13184
|
+
if (config2.legendLabels) {
|
|
13185
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13186
|
+
}
|
|
13187
|
+
if (config2.legendDirection) {
|
|
13188
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13189
|
+
}
|
|
13190
|
+
if (config2.height) {
|
|
13191
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13192
|
+
}
|
|
13193
|
+
if (config2.pieArcColors) {
|
|
13194
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13195
|
+
}
|
|
13196
|
+
if (config2.yAxisTickCount) {
|
|
13197
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13198
|
+
}
|
|
13199
|
+
if (config2.xAxisTickCount) {
|
|
13200
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13201
|
+
}
|
|
13202
|
+
if (config2.xAxisValue) {
|
|
13203
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13204
|
+
}
|
|
13205
|
+
if (config2.xAxisType) {
|
|
13206
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13207
|
+
}
|
|
13208
|
+
if (config2.bottomLabel) {
|
|
13209
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13210
|
+
}
|
|
13211
|
+
if (config2.leftLabel) {
|
|
13212
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13213
|
+
}
|
|
13214
|
+
if (config2.rightLabel) {
|
|
13215
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13216
|
+
}
|
|
13217
|
+
if (config2.disableLeftLabel) {
|
|
13218
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13219
|
+
}
|
|
13220
|
+
if (config2.growthRateKey) {
|
|
13221
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13222
|
+
}
|
|
13223
|
+
if (config2.tooltipUnit) {
|
|
13224
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13225
|
+
}
|
|
13226
|
+
if (config2.leftMargin) {
|
|
13227
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13228
|
+
left: config2.leftMargin
|
|
13229
|
+
};
|
|
13230
|
+
}
|
|
13231
|
+
return StackBarLineGraph;
|
|
13232
|
+
};
|
|
12670
13233
|
const cameraUiSchema = {
|
|
12671
13234
|
type: "Control",
|
|
12672
13235
|
scope: "#/properties/camera",
|
|
@@ -12707,10 +13270,149 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
12707
13270
|
camera.config.main.color = config2.color;
|
|
12708
13271
|
}
|
|
12709
13272
|
if (config2.label) {
|
|
12710
|
-
camera.config.main.
|
|
13273
|
+
camera.config.main.label = config2.label;
|
|
12711
13274
|
}
|
|
12712
13275
|
return camera;
|
|
12713
13276
|
};
|
|
13277
|
+
var ButtonGroup = {
|
|
13278
|
+
type: "Control",
|
|
13279
|
+
scope: "#/properties/buttonGroup",
|
|
13280
|
+
options: {
|
|
13281
|
+
widget: "ButtonGroup"
|
|
13282
|
+
},
|
|
13283
|
+
config: {
|
|
13284
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
13285
|
+
main: {
|
|
13286
|
+
variant: "contained",
|
|
13287
|
+
styleDefault: false,
|
|
13288
|
+
size: "small"
|
|
13289
|
+
},
|
|
13290
|
+
style: {}
|
|
13291
|
+
}
|
|
13292
|
+
};
|
|
13293
|
+
const buildButtonGroup = (config2, componentScope2) => {
|
|
13294
|
+
const buttonGroup = _.cloneDeep(ButtonGroup);
|
|
13295
|
+
if (config2.layout) {
|
|
13296
|
+
buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13297
|
+
}
|
|
13298
|
+
buttonGroup.scope = componentScope2;
|
|
13299
|
+
if (config2.multiSelect) {
|
|
13300
|
+
buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
|
|
13301
|
+
}
|
|
13302
|
+
if (config2.style) {
|
|
13303
|
+
buttonGroup.config.style = JSON.parse(config2.style);
|
|
13304
|
+
}
|
|
13305
|
+
if (config2.size) {
|
|
13306
|
+
buttonGroup.config.main.size = config2.size;
|
|
13307
|
+
}
|
|
13308
|
+
if (config2.color) {
|
|
13309
|
+
buttonGroup.config.main.color = config2.color;
|
|
13310
|
+
}
|
|
13311
|
+
return buttonGroup;
|
|
13312
|
+
};
|
|
13313
|
+
const PopOver = {
|
|
13314
|
+
type: "Control",
|
|
13315
|
+
scope: "#/properties/text",
|
|
13316
|
+
options: {
|
|
13317
|
+
widget: "Popover"
|
|
13318
|
+
},
|
|
13319
|
+
config: {
|
|
13320
|
+
layout: {
|
|
13321
|
+
xs: 12,
|
|
13322
|
+
sm: 12,
|
|
13323
|
+
md: 12,
|
|
13324
|
+
lg: 12
|
|
13325
|
+
},
|
|
13326
|
+
main: {
|
|
13327
|
+
label: "PopOver"
|
|
13328
|
+
},
|
|
13329
|
+
style: {}
|
|
13330
|
+
}
|
|
13331
|
+
};
|
|
13332
|
+
const buildPopOver = (config2, componentScope2) => {
|
|
13333
|
+
const popOver = _.cloneDeep(PopOver);
|
|
13334
|
+
popOver.scope = componentScope2;
|
|
13335
|
+
popOver.config.main.positionVertical = config2.positionVertical;
|
|
13336
|
+
popOver.config.main.positionHorizontal = config2.positionHorizontal;
|
|
13337
|
+
popOver.config.main.contentVertical = config2.contentVertical;
|
|
13338
|
+
popOver.config.main.contentHorizontal = config2.contentHorizontal;
|
|
13339
|
+
popOver.config.main.width = config2.width;
|
|
13340
|
+
popOver.config.main.gap = config2.gap;
|
|
13341
|
+
if (config2.layout) {
|
|
13342
|
+
popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13343
|
+
}
|
|
13344
|
+
if (config2.style) {
|
|
13345
|
+
popOver.config.style = JSON.parse(config2.style);
|
|
13346
|
+
}
|
|
13347
|
+
return popOver;
|
|
13348
|
+
};
|
|
13349
|
+
const OTPSchema = {
|
|
13350
|
+
type: "Control",
|
|
13351
|
+
scope: "#/properties/OTPInput",
|
|
13352
|
+
options: {
|
|
13353
|
+
widget: "OTPInput"
|
|
13354
|
+
},
|
|
13355
|
+
config: {
|
|
13356
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
13357
|
+
main: {
|
|
13358
|
+
seperator: "",
|
|
13359
|
+
length: 4,
|
|
13360
|
+
type: "number",
|
|
13361
|
+
masking: true
|
|
13362
|
+
}
|
|
13363
|
+
}
|
|
13364
|
+
};
|
|
13365
|
+
const buildOTP_Input = (config2, componentScope2) => {
|
|
13366
|
+
const OTP = _.cloneDeep(OTPSchema);
|
|
13367
|
+
OTP.scope = componentScope2;
|
|
13368
|
+
if (config2.layout) {
|
|
13369
|
+
OTP.config.layout = createLayoutFormat(config2.layout);
|
|
13370
|
+
}
|
|
13371
|
+
if (config2.style) {
|
|
13372
|
+
OTP.config.style = JSON.parse(config2.style);
|
|
13373
|
+
}
|
|
13374
|
+
if (config2.errorMessage) {
|
|
13375
|
+
OTP.config.main.errorMessage = config2.errorMessage;
|
|
13376
|
+
}
|
|
13377
|
+
if (config2.toolTip) {
|
|
13378
|
+
OTP.config.main.toolTip = config2.toolTip;
|
|
13379
|
+
}
|
|
13380
|
+
OTP.config.main.masking = config2.masking === "YES" ? true : false;
|
|
13381
|
+
OTP.config.main.type = config2.OTP_Format;
|
|
13382
|
+
OTP.config.main.seperator = config2.seperator;
|
|
13383
|
+
OTP.config.main.length = +config2.length;
|
|
13384
|
+
return OTP;
|
|
13385
|
+
};
|
|
13386
|
+
var pdfViewer = {
|
|
13387
|
+
type: "Control",
|
|
13388
|
+
scope: "#/properties/pdfviewer",
|
|
13389
|
+
options: {
|
|
13390
|
+
widget: "PdfViewer"
|
|
13391
|
+
},
|
|
13392
|
+
config: {
|
|
13393
|
+
layout: {
|
|
13394
|
+
xs: 12,
|
|
13395
|
+
sm: 12,
|
|
13396
|
+
md: 12,
|
|
13397
|
+
lg: 12
|
|
13398
|
+
},
|
|
13399
|
+
main: {
|
|
13400
|
+
title: "PDF"
|
|
13401
|
+
}
|
|
13402
|
+
}
|
|
13403
|
+
};
|
|
13404
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13405
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13406
|
+
PdfViewer.scope = componentScope2;
|
|
13407
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13408
|
+
if (config2.layout) {
|
|
13409
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13410
|
+
}
|
|
13411
|
+
if (config2.style) {
|
|
13412
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13413
|
+
}
|
|
13414
|
+
return PdfViewer;
|
|
13415
|
+
};
|
|
12714
13416
|
let schema = {
|
|
12715
13417
|
type: "object",
|
|
12716
13418
|
properties: {},
|
|
@@ -12781,6 +13483,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12781
13483
|
let elements = {};
|
|
12782
13484
|
const componentScope2 = `#/properties/${config2.name}`;
|
|
12783
13485
|
switch (config2.type) {
|
|
13486
|
+
case "OTP_Input":
|
|
13487
|
+
elements = buildOTP_Input(config2, componentScope2);
|
|
13488
|
+
break;
|
|
12784
13489
|
case "TreeMap":
|
|
12785
13490
|
elements = buildTreeMap(config2, componentScope2);
|
|
12786
13491
|
break;
|
|
@@ -12799,6 +13504,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12799
13504
|
case "PopUp":
|
|
12800
13505
|
elements = buildPopUp(config2, componentScope2);
|
|
12801
13506
|
break;
|
|
13507
|
+
case "PopOver":
|
|
13508
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13509
|
+
break;
|
|
12802
13510
|
case "FileInput":
|
|
12803
13511
|
elements = buildFileInput(config2, componentScope2);
|
|
12804
13512
|
break;
|
|
@@ -12838,6 +13546,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12838
13546
|
case "Button":
|
|
12839
13547
|
elements = buildButton(config2, componentScope2);
|
|
12840
13548
|
break;
|
|
13549
|
+
case "ButtonGroup":
|
|
13550
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13551
|
+
break;
|
|
12841
13552
|
case "Table":
|
|
12842
13553
|
elements = buildTable(config2, componentScope2);
|
|
12843
13554
|
break;
|
|
@@ -12862,6 +13573,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12862
13573
|
case "card":
|
|
12863
13574
|
elements = buildCard(config2, componentScope2, store2);
|
|
12864
13575
|
break;
|
|
13576
|
+
case "MetricCard":
|
|
13577
|
+
elements = buildMetricCard(config2, componentScope2);
|
|
13578
|
+
break;
|
|
12865
13579
|
case "Graph":
|
|
12866
13580
|
switch (config2.graphType) {
|
|
12867
13581
|
case "BarGraph":
|
|
@@ -12878,6 +13592,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12878
13592
|
case "HorizontalStackBarGraph":
|
|
12879
13593
|
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12880
13594
|
break;
|
|
13595
|
+
case "AreaGraph":
|
|
13596
|
+
elements = buildAreaGraph(config2, componentScope2);
|
|
13597
|
+
break;
|
|
13598
|
+
case "StackBarLineGraph":
|
|
13599
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13600
|
+
break;
|
|
12881
13601
|
default:
|
|
12882
13602
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
12883
13603
|
break;
|
|
@@ -12926,6 +13646,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12926
13646
|
case "Camera":
|
|
12927
13647
|
elements = buildCamera(config2, componentScope2);
|
|
12928
13648
|
break;
|
|
13649
|
+
case "PdfViewer":
|
|
13650
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13651
|
+
break;
|
|
12929
13652
|
default:
|
|
12930
13653
|
schema = {
|
|
12931
13654
|
type: "object",
|
|
@@ -13029,6 +13752,11 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13029
13752
|
});
|
|
13030
13753
|
}
|
|
13031
13754
|
}
|
|
13755
|
+
if (config2.tabLabelElements) {
|
|
13756
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13757
|
+
return buildUiSchema(e, store2);
|
|
13758
|
+
});
|
|
13759
|
+
}
|
|
13032
13760
|
return elements;
|
|
13033
13761
|
};
|
|
13034
13762
|
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|