impaktapps-ui-builder 1.0.1586 → 1.0.1822
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 +827 -88
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -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 +3 -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 +146 -105
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -1
- package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
- package/src/impaktapps-ui-builder/lib/index.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +127 -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 -6
|
@@ -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,9 +8738,27 @@ 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
|
};
|
|
8752
|
+
const validateAndShowErrors = (store2) => {
|
|
8753
|
+
if (_.isEmpty(store2.ctx.core.errors))
|
|
8754
|
+
return false;
|
|
8755
|
+
store2.setValidation("ValidateAndShow");
|
|
8756
|
+
store2.setNotify({
|
|
8757
|
+
Fail: true,
|
|
8758
|
+
FailMessage: "Error on Page"
|
|
8759
|
+
});
|
|
8760
|
+
return true;
|
|
8761
|
+
};
|
|
8527
8762
|
const getNavigationHistory = (config2, path) => {
|
|
8528
8763
|
if (path) {
|
|
8529
8764
|
let urlRoutes = config2.name;
|
|
@@ -8582,11 +8817,13 @@ async function saveHandler(store2, service2, submitHandler) {
|
|
|
8582
8817
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8583
8818
|
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8584
8819
|
} catch (err) {
|
|
8585
|
-
navigateHandler(store2, false);
|
|
8820
|
+
navigateHandler(store2, false, void 0, err.message);
|
|
8586
8821
|
}
|
|
8822
|
+
} else {
|
|
8823
|
+
navigateHandler(store2, false);
|
|
8587
8824
|
}
|
|
8588
8825
|
}
|
|
8589
|
-
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
8826
|
+
const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
|
|
8590
8827
|
if (isSubmitted) {
|
|
8591
8828
|
sessionStorage.removeItem("pageFormdata");
|
|
8592
8829
|
store2.navigate(pageName || -1);
|
|
@@ -8598,7 +8835,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
|
8598
8835
|
store2.setValidation("ValidateAndShow");
|
|
8599
8836
|
store2.setNotify({
|
|
8600
8837
|
Fail: true,
|
|
8601
|
-
FailMessage: "Errors on Page"
|
|
8838
|
+
FailMessage: errorMessage || "Errors on Page"
|
|
8602
8839
|
});
|
|
8603
8840
|
}
|
|
8604
8841
|
};
|
|
@@ -8627,7 +8864,7 @@ const sectionLabels = {
|
|
|
8627
8864
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8628
8865
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8629
8866
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8630
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8867
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8631
8868
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8632
8869
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8633
8870
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8638,15 +8875,19 @@ const sectionLabels = {
|
|
|
8638
8875
|
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8639
8876
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8640
8877
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8878
|
+
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8641
8879
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8642
8880
|
Timer: ["Core", "Events", "Style"],
|
|
8643
8881
|
Rank: ["Core", "Events", "Style"],
|
|
8644
8882
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8645
|
-
|
|
8883
|
+
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8884
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8646
8885
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8647
8886
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8648
8887
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8649
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8888
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8889
|
+
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8890
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8650
8891
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8651
8892
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8652
8893
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8655,9 +8896,10 @@ const sectionLabels = {
|
|
|
8655
8896
|
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8656
8897
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8657
8898
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8658
|
-
Image: ["Core", "Properties", "Style"],
|
|
8899
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8659
8900
|
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8660
|
-
Camera: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8901
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8902
|
+
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8661
8903
|
};
|
|
8662
8904
|
function refreshPage(type, store2) {
|
|
8663
8905
|
var _a, _b;
|
|
@@ -8670,6 +8912,7 @@ function refreshPage(type, store2) {
|
|
|
8670
8912
|
Style: StyleSection,
|
|
8671
8913
|
Events: EventSection(store2.theme.myTheme),
|
|
8672
8914
|
Components: TableSection(store2.theme.myTheme),
|
|
8915
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8673
8916
|
Properties: buildPropertiesSection(type),
|
|
8674
8917
|
Validation: ValidationSection
|
|
8675
8918
|
};
|
|
@@ -8860,13 +9103,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8860
9103
|
},
|
|
8861
9104
|
editComponents: function() {
|
|
8862
9105
|
var _a, _b, _c;
|
|
9106
|
+
if (validateAndShowErrors(store2))
|
|
9107
|
+
return;
|
|
8863
9108
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8864
9109
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8865
9110
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8866
9111
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8867
9112
|
if (path) {
|
|
8868
|
-
|
|
8869
|
-
|
|
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
|
+
}
|
|
8870
9119
|
store2.searchParams.set("path", finalPath);
|
|
8871
9120
|
store2.setSearchParams(store2.searchParams);
|
|
8872
9121
|
this.setPage();
|
|
@@ -8878,7 +9127,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8878
9127
|
var _a;
|
|
8879
9128
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8880
9129
|
const rowId = sessionStorage.getItem("rowId");
|
|
8881
|
-
|
|
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
|
+
}
|
|
8882
9136
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8883
9137
|
const data = path ? _.get(response, path) : response;
|
|
8884
9138
|
store2.setFormdata(data);
|
|
@@ -8886,6 +9140,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8886
9140
|
store2.updateDialog("popUpComponentSection");
|
|
8887
9141
|
}
|
|
8888
9142
|
sessionStorage.removeItem("rowId");
|
|
9143
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
8889
9144
|
},
|
|
8890
9145
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8891
9146
|
var _a;
|
|
@@ -8901,18 +9156,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8901
9156
|
},
|
|
8902
9157
|
widgetAddClickHandler: function() {
|
|
8903
9158
|
var _a;
|
|
9159
|
+
if (validateAndShowErrors(store2))
|
|
9160
|
+
return;
|
|
8904
9161
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8905
9162
|
store2.formData.elements = [];
|
|
8906
9163
|
}
|
|
9164
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9165
|
+
store2.formData.tabLabelElements = [];
|
|
9166
|
+
}
|
|
8907
9167
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8908
9168
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8909
|
-
|
|
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
|
+
}
|
|
8910
9175
|
store2.searchParams.set("path", finalPath);
|
|
8911
9176
|
store2.setSearchParams(store2.searchParams);
|
|
8912
9177
|
this.setPage();
|
|
8913
9178
|
},
|
|
8914
9179
|
eventEditHandler: function() {
|
|
8915
9180
|
var _a, _b;
|
|
9181
|
+
if (validateAndShowErrors(store2))
|
|
9182
|
+
return;
|
|
8916
9183
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8917
9184
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8918
9185
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8922,6 +9189,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8922
9189
|
},
|
|
8923
9190
|
eventAddHandler: function() {
|
|
8924
9191
|
var _a, _b;
|
|
9192
|
+
if (validateAndShowErrors(store2))
|
|
9193
|
+
return;
|
|
8925
9194
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8926
9195
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8927
9196
|
if (!Array.isArray(store2.formData.events)) {
|
|
@@ -8937,6 +9206,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8937
9206
|
deletePopUpComponent: function() {
|
|
8938
9207
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8939
9208
|
sessionStorage.setItem("rowId", rowId);
|
|
9209
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
8940
9210
|
store2.updateDialog("popUpComponentSection");
|
|
8941
9211
|
},
|
|
8942
9212
|
deletePopUpEvent: function() {
|
|
@@ -8983,9 +9253,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8983
9253
|
if (!Array.isArray(store2.formData.events)) {
|
|
8984
9254
|
store2.formData.events = [];
|
|
8985
9255
|
}
|
|
9256
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9257
|
+
store2.formData.tabLabelElements = [];
|
|
9258
|
+
}
|
|
8986
9259
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8987
9260
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8988
|
-
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;
|
|
8989
9267
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8990
9268
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8991
9269
|
const notificationMessages = {
|
|
@@ -9020,6 +9298,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9020
9298
|
if (elementType === "Component") {
|
|
9021
9299
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9022
9300
|
}
|
|
9301
|
+
if (elementType === "TabsComponent") {
|
|
9302
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9303
|
+
}
|
|
9023
9304
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9024
9305
|
},
|
|
9025
9306
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -9095,6 +9376,8 @@ var pageMaster = (funcParams) => {
|
|
|
9095
9376
|
},
|
|
9096
9377
|
onAddClickHandler: function() {
|
|
9097
9378
|
var _a;
|
|
9379
|
+
if (validateAndShowErrors(store2))
|
|
9380
|
+
return;
|
|
9098
9381
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9099
9382
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9100
9383
|
store2.formData.elements = [];
|
|
@@ -9118,6 +9401,8 @@ var pageMaster = (funcParams) => {
|
|
|
9118
9401
|
},
|
|
9119
9402
|
eventAddHandler: function() {
|
|
9120
9403
|
var _a;
|
|
9404
|
+
if (validateAndShowErrors(store2))
|
|
9405
|
+
return;
|
|
9121
9406
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9122
9407
|
if (!Array.isArray(store2.formData.events)) {
|
|
9123
9408
|
store2.formData.events = [];
|
|
@@ -9128,6 +9413,8 @@ var pageMaster = (funcParams) => {
|
|
|
9128
9413
|
},
|
|
9129
9414
|
editEvent: function() {
|
|
9130
9415
|
var _a;
|
|
9416
|
+
if (validateAndShowErrors(store2))
|
|
9417
|
+
return;
|
|
9131
9418
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9132
9419
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9133
9420
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
@@ -9215,7 +9502,9 @@ const EventSchema = {
|
|
|
9215
9502
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9216
9503
|
{ title: "Download", const: "onDownload" },
|
|
9217
9504
|
{ title: "Fail", const: "Fail" },
|
|
9218
|
-
{ title: "
|
|
9505
|
+
{ title: "onClose", const: "onClose" },
|
|
9506
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9507
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9219
9508
|
]
|
|
9220
9509
|
},
|
|
9221
9510
|
Handler: {
|
|
@@ -9232,6 +9521,7 @@ const EventSchema = {
|
|
|
9232
9521
|
oneOf: [
|
|
9233
9522
|
{ title: "RankProvider", const: "RankProvider" },
|
|
9234
9523
|
{ title: "Download File", const: "downloadFile" },
|
|
9524
|
+
{ title: "Download File Stream", const: "downloadFileStream" },
|
|
9235
9525
|
{ title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
|
|
9236
9526
|
]
|
|
9237
9527
|
},
|
|
@@ -10107,6 +10397,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10107
10397
|
},
|
|
10108
10398
|
addEvent: function() {
|
|
10109
10399
|
var _a, _b, _c;
|
|
10400
|
+
if (validateAndShowErrors(store2))
|
|
10401
|
+
return;
|
|
10110
10402
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10111
10403
|
if (!Array.isArray(store2.formData.events)) {
|
|
10112
10404
|
store2.formData.events = [];
|
|
@@ -10119,6 +10411,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10119
10411
|
},
|
|
10120
10412
|
editEvent: function() {
|
|
10121
10413
|
var _a;
|
|
10414
|
+
if (validateAndShowErrors(store2))
|
|
10415
|
+
return;
|
|
10122
10416
|
const rowId = dynamicData2.path.split(".")[1];
|
|
10123
10417
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10124
10418
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
@@ -10209,6 +10503,44 @@ const downloadFileFromUrl = (response, service2) => {
|
|
|
10209
10503
|
link.click();
|
|
10210
10504
|
link.parentNode.removeChild(link);
|
|
10211
10505
|
};
|
|
10506
|
+
function buildStreamUrl(params2) {
|
|
10507
|
+
var _a, _b, _c, _d, _e;
|
|
10508
|
+
const resolvedBase = (_c = (_b = params2.baseURL) != null ? _b : typeof window !== "undefined" ? (_a = window.appConfig) == null ? void 0 : _a.backendHost : void 0) != null ? _c : "";
|
|
10509
|
+
let url = `${resolvedBase}${(_e = (_d = params2.path) != null ? _d : params2.url) != null ? _e : ""}`;
|
|
10510
|
+
if (params2.queryParams) {
|
|
10511
|
+
const keys = Object.keys(params2.queryParams);
|
|
10512
|
+
keys.forEach((key, i) => {
|
|
10513
|
+
url += `${i === 0 && !url.includes("?") ? "?" : "&"}${key}=${encodeURIComponent(
|
|
10514
|
+
params2.queryParams[key]
|
|
10515
|
+
)}`;
|
|
10516
|
+
});
|
|
10517
|
+
}
|
|
10518
|
+
return url;
|
|
10519
|
+
}
|
|
10520
|
+
const downloadFileStream = (params2) => {
|
|
10521
|
+
var _a, _b, _c, _d;
|
|
10522
|
+
try {
|
|
10523
|
+
const url = buildStreamUrl(params2);
|
|
10524
|
+
if (!url) {
|
|
10525
|
+
throw new Error("downloadFileStream: no url/path provided");
|
|
10526
|
+
}
|
|
10527
|
+
const link = document.createElement("a");
|
|
10528
|
+
link.href = url;
|
|
10529
|
+
document.body.appendChild(link);
|
|
10530
|
+
link.click();
|
|
10531
|
+
link.remove();
|
|
10532
|
+
(_b = (_a = params2.store) == null ? void 0 : _a.setNotify) == null ? void 0 : _b.call(_a, {
|
|
10533
|
+
SuccessMessage: "File Download Started Successfully",
|
|
10534
|
+
Success: true
|
|
10535
|
+
});
|
|
10536
|
+
} catch (e) {
|
|
10537
|
+
(_d = (_c = params2.store) == null ? void 0 : _c.setNotify) == null ? void 0 : _d.call(_c, {
|
|
10538
|
+
FailMessage: "File Download Failed",
|
|
10539
|
+
Fail: true
|
|
10540
|
+
});
|
|
10541
|
+
console.error(e);
|
|
10542
|
+
}
|
|
10543
|
+
};
|
|
10212
10544
|
const executeEvents = (params2) => {
|
|
10213
10545
|
var _a, _b, _c;
|
|
10214
10546
|
let nextEvent = [];
|
|
@@ -10330,10 +10662,13 @@ function executeInBuiltFunctionHandler(params) {
|
|
|
10330
10662
|
let parameter = {};
|
|
10331
10663
|
if (params.config.funcParametersCode) {
|
|
10332
10664
|
const makeFunc = eval(params.config.funcParametersCode);
|
|
10333
|
-
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
10334
|
-
params.serviceHolder[params.config.inBuiltFunctionType](
|
|
10665
|
+
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.fetchservice);
|
|
10666
|
+
params.serviceHolder[params.config.inBuiltFunctionType](
|
|
10667
|
+
parameter,
|
|
10668
|
+
params.service
|
|
10669
|
+
);
|
|
10335
10670
|
} else {
|
|
10336
|
-
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
10671
|
+
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.fetchservice);
|
|
10337
10672
|
}
|
|
10338
10673
|
}
|
|
10339
10674
|
function executeCustomHandler(params) {
|
|
@@ -10537,7 +10872,7 @@ var service = (funcParams) => {
|
|
|
10537
10872
|
dynamicData: funcParams.dynamicData,
|
|
10538
10873
|
userValue: funcParams.userValue,
|
|
10539
10874
|
service: funcParams.service,
|
|
10540
|
-
serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
|
|
10875
|
+
serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, downloadFileStream, ...funcParams.functionsProvider },
|
|
10541
10876
|
eventGroups,
|
|
10542
10877
|
functionsProvider: funcParams.functionsProvider,
|
|
10543
10878
|
formDataHolder
|
|
@@ -10554,7 +10889,7 @@ var service = (funcParams) => {
|
|
|
10554
10889
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10555
10890
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10556
10891
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10557
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10892
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10558
10893
|
});
|
|
10559
10894
|
window.dispatchEvent(event2);
|
|
10560
10895
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10597,6 +10932,25 @@ var service = (funcParams) => {
|
|
|
10597
10932
|
funcParams.store.setUiSchema(uiSchema);
|
|
10598
10933
|
});
|
|
10599
10934
|
},
|
|
10935
|
+
getStyle: () => {
|
|
10936
|
+
var _a, _b, _c, _d;
|
|
10937
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10938
|
+
if (cloneEventGroup.setStyle) {
|
|
10939
|
+
let finalResponse = {};
|
|
10940
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10941
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10942
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10943
|
+
finalResponse = executeEvents({
|
|
10944
|
+
...executeEventsParameters,
|
|
10945
|
+
config: eventConfig,
|
|
10946
|
+
componentName: path
|
|
10947
|
+
});
|
|
10948
|
+
}
|
|
10949
|
+
return finalResponse;
|
|
10950
|
+
}
|
|
10951
|
+
}
|
|
10952
|
+
return {};
|
|
10953
|
+
},
|
|
10600
10954
|
onCellRenderer: (cellParams) => {
|
|
10601
10955
|
var _a, _b, _c, _d, _e;
|
|
10602
10956
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10626,6 +10980,9 @@ var service = (funcParams) => {
|
|
|
10626
10980
|
onFileDelete: async function() {
|
|
10627
10981
|
this.callHandler("onFileDelete");
|
|
10628
10982
|
},
|
|
10983
|
+
onClose: function() {
|
|
10984
|
+
this.callHandler("onClose");
|
|
10985
|
+
},
|
|
10629
10986
|
onMount: function() {
|
|
10630
10987
|
this.callHandler("onMount");
|
|
10631
10988
|
},
|
|
@@ -10649,14 +11006,15 @@ var service = (funcParams) => {
|
|
|
10649
11006
|
return response == null ? void 0 : response.data;
|
|
10650
11007
|
},
|
|
10651
11008
|
onPaginationChange: async function(paginationValues) {
|
|
10652
|
-
var _a
|
|
11009
|
+
var _a;
|
|
10653
11010
|
const apiBody = [
|
|
10654
11011
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10655
11012
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10656
11013
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10657
11014
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10658
11015
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10659
|
-
{ key: "
|
|
11016
|
+
{ key: "parentIds", value: paginationValues.parentIds },
|
|
11017
|
+
{ key: "isExpandAll", value: paginationValues.isExpandAll }
|
|
10660
11018
|
];
|
|
10661
11019
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10662
11020
|
return response == null ? void 0 : response.data;
|
|
@@ -10676,8 +11034,8 @@ var service = (funcParams) => {
|
|
|
10676
11034
|
return;
|
|
10677
11035
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10678
11036
|
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10679
|
-
var _a
|
|
10680
|
-
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]
|
|
11037
|
+
var _a;
|
|
11038
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
10681
11039
|
return [];
|
|
10682
11040
|
}
|
|
10683
11041
|
return eventGroups.onChange[componentName].map(
|
|
@@ -10776,6 +11134,7 @@ var service = (funcParams) => {
|
|
|
10776
11134
|
},
|
|
10777
11135
|
downloadFile: downloadFile$1,
|
|
10778
11136
|
downloadFileFromUrl,
|
|
11137
|
+
downloadFileStream,
|
|
10779
11138
|
...funcParams.functionsProvider
|
|
10780
11139
|
};
|
|
10781
11140
|
};
|
|
@@ -10912,7 +11271,7 @@ const BarGraph = {
|
|
|
10912
11271
|
type: "BarGraph",
|
|
10913
11272
|
legendLabels: null
|
|
10914
11273
|
},
|
|
10915
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11274
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10916
11275
|
}
|
|
10917
11276
|
};
|
|
10918
11277
|
const PieGraph = {
|
|
@@ -10927,7 +11286,7 @@ const PieGraph = {
|
|
|
10927
11286
|
type: "PieGraph",
|
|
10928
11287
|
legendLabels: null
|
|
10929
11288
|
},
|
|
10930
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11289
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10931
11290
|
}
|
|
10932
11291
|
};
|
|
10933
11292
|
const LineGraph = {
|
|
@@ -10942,7 +11301,7 @@ const LineGraph = {
|
|
|
10942
11301
|
type: "LineGraph",
|
|
10943
11302
|
legendLabels: null
|
|
10944
11303
|
},
|
|
10945
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11304
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10946
11305
|
}
|
|
10947
11306
|
};
|
|
10948
11307
|
const HorizontalBarGraph = {
|
|
@@ -10957,7 +11316,37 @@ const HorizontalBarGraph = {
|
|
|
10957
11316
|
type: "HorizontalBarGraph",
|
|
10958
11317
|
legendLabels: null
|
|
10959
11318
|
},
|
|
10960
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11319
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11320
|
+
}
|
|
11321
|
+
};
|
|
11322
|
+
const AreaBarGraph = {
|
|
11323
|
+
type: "Control",
|
|
11324
|
+
scope: "#/properties/graph",
|
|
11325
|
+
options: {
|
|
11326
|
+
widget: "Graph"
|
|
11327
|
+
},
|
|
11328
|
+
config: {
|
|
11329
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11330
|
+
main: {
|
|
11331
|
+
type: "AreaGraph",
|
|
11332
|
+
legendLabels: null
|
|
11333
|
+
},
|
|
11334
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11335
|
+
}
|
|
11336
|
+
};
|
|
11337
|
+
const StackBarLineG = {
|
|
11338
|
+
type: "Control",
|
|
11339
|
+
scope: "#/properties/graph",
|
|
11340
|
+
options: {
|
|
11341
|
+
widget: "Graph"
|
|
11342
|
+
},
|
|
11343
|
+
config: {
|
|
11344
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11345
|
+
main: {
|
|
11346
|
+
type: "StackBarLineGraph",
|
|
11347
|
+
legendLabels: null
|
|
11348
|
+
},
|
|
11349
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10961
11350
|
}
|
|
10962
11351
|
};
|
|
10963
11352
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
@@ -10976,13 +11365,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10976
11365
|
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10977
11366
|
}
|
|
10978
11367
|
if (config2.legendLabels) {
|
|
10979
|
-
horizontalBarGraph.config.main.legendLabels =
|
|
11368
|
+
horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
10980
11369
|
}
|
|
10981
11370
|
if (config2.legendDirection) {
|
|
10982
11371
|
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
10983
11372
|
}
|
|
10984
11373
|
if (config2.pieArcColors) {
|
|
10985
|
-
horizontalBarGraph.config.style.
|
|
11374
|
+
horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10986
11375
|
}
|
|
10987
11376
|
if (config2.xAxisValue) {
|
|
10988
11377
|
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11116,13 +11505,13 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
11116
11505
|
pieGraph.scope = componentScope2;
|
|
11117
11506
|
pieGraph.config.main.header = config2.heading;
|
|
11118
11507
|
if (config2.legendLabels) {
|
|
11119
|
-
pieGraph.config.main.legendLabels =
|
|
11508
|
+
pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11120
11509
|
}
|
|
11121
11510
|
if (config2.xAxisValue) {
|
|
11122
11511
|
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11123
11512
|
}
|
|
11124
11513
|
if (config2.pieArcColors) {
|
|
11125
|
-
pieGraph.config.style.
|
|
11514
|
+
pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11126
11515
|
}
|
|
11127
11516
|
return pieGraph;
|
|
11128
11517
|
};
|
|
@@ -11145,10 +11534,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11145
11534
|
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
11146
11535
|
barGraph.config.main.header = config2.heading;
|
|
11147
11536
|
if (config2.legendLabels) {
|
|
11148
|
-
barGraph.config.main.legendLabels =
|
|
11537
|
+
barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11149
11538
|
}
|
|
11150
11539
|
if (config2.pieArcColors) {
|
|
11151
|
-
barGraph.config.style.
|
|
11540
|
+
barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11152
11541
|
}
|
|
11153
11542
|
if (config2.xAxisValue) {
|
|
11154
11543
|
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11214,6 +11603,7 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11214
11603
|
}
|
|
11215
11604
|
if (config2.sectionLabels) {
|
|
11216
11605
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11606
|
+
tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
|
|
11217
11607
|
}
|
|
11218
11608
|
if (config2.style) {
|
|
11219
11609
|
tab.config.style = JSON.parse(config2.style);
|
|
@@ -11226,9 +11616,11 @@ var WrapperSection = {
|
|
|
11226
11616
|
config: {
|
|
11227
11617
|
layout: 12,
|
|
11228
11618
|
main: {
|
|
11229
|
-
rowSpacing: 3,
|
|
11230
11619
|
divider: true,
|
|
11231
|
-
label: "Default Label"
|
|
11620
|
+
label: "Default Label",
|
|
11621
|
+
rowSpacing: 2,
|
|
11622
|
+
columnSpacing: 2,
|
|
11623
|
+
spacing: 2
|
|
11232
11624
|
},
|
|
11233
11625
|
defaultStyle: true
|
|
11234
11626
|
},
|
|
@@ -11241,6 +11633,10 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11241
11633
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11242
11634
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11243
11635
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11636
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11637
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11638
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11639
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11244
11640
|
if (config2.defaultStyle) {
|
|
11245
11641
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11246
11642
|
}
|
|
@@ -11296,6 +11692,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11296
11692
|
if (config2.toolTipPosition) {
|
|
11297
11693
|
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11298
11694
|
}
|
|
11695
|
+
if (config2.iconName) {
|
|
11696
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11697
|
+
}
|
|
11299
11698
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11300
11699
|
inputField.scope = componentScope2;
|
|
11301
11700
|
return inputField;
|
|
@@ -11312,7 +11711,8 @@ var SelectInputField = {
|
|
|
11312
11711
|
label: "",
|
|
11313
11712
|
type: "text",
|
|
11314
11713
|
freeSole: false
|
|
11315
|
-
}
|
|
11714
|
+
},
|
|
11715
|
+
style: {}
|
|
11316
11716
|
}
|
|
11317
11717
|
};
|
|
11318
11718
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11339,6 +11739,9 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11339
11739
|
if (config2.toolTipPosition) {
|
|
11340
11740
|
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11341
11741
|
}
|
|
11742
|
+
if (config2.style) {
|
|
11743
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11744
|
+
}
|
|
11342
11745
|
selectInputField.scope = componentScope2;
|
|
11343
11746
|
return selectInputField;
|
|
11344
11747
|
};
|
|
@@ -11446,9 +11849,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11446
11849
|
if (config2.paginateExpandedRows) {
|
|
11447
11850
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11448
11851
|
}
|
|
11449
|
-
if (config2.treeStructure) {
|
|
11450
|
-
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11451
|
-
}
|
|
11452
11852
|
if (config2.SelectionAvailable) {
|
|
11453
11853
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11454
11854
|
}
|
|
@@ -11511,7 +11911,8 @@ const Box = {
|
|
|
11511
11911
|
config: {
|
|
11512
11912
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11513
11913
|
main: {
|
|
11514
|
-
iconName: ""
|
|
11914
|
+
iconName: "",
|
|
11915
|
+
onClick: "onClick"
|
|
11515
11916
|
},
|
|
11516
11917
|
style: {}
|
|
11517
11918
|
}
|
|
@@ -11806,6 +12207,46 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11806
12207
|
}
|
|
11807
12208
|
return card;
|
|
11808
12209
|
};
|
|
12210
|
+
var MetricCard = {
|
|
12211
|
+
type: "Control",
|
|
12212
|
+
scope: "#/properties/metricpath",
|
|
12213
|
+
options: {
|
|
12214
|
+
widget: "MetricCard"
|
|
12215
|
+
},
|
|
12216
|
+
config: {
|
|
12217
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
12218
|
+
main: {}
|
|
12219
|
+
}
|
|
12220
|
+
};
|
|
12221
|
+
const buildMetricCard = (config2, componentScope2, store2) => {
|
|
12222
|
+
const card2 = _.cloneDeep(MetricCard);
|
|
12223
|
+
card2.scope = componentScope2;
|
|
12224
|
+
if (config2.style) {
|
|
12225
|
+
card2.config.style = JSON.parse(config2.style);
|
|
12226
|
+
}
|
|
12227
|
+
if (config2.layout) {
|
|
12228
|
+
card2.config.layout = createLayoutFormat(config2.layout);
|
|
12229
|
+
}
|
|
12230
|
+
if (config2.label) {
|
|
12231
|
+
card2.config.main.label = config2.label;
|
|
12232
|
+
}
|
|
12233
|
+
if (config2.url) {
|
|
12234
|
+
card2.config.main.url = config2.url;
|
|
12235
|
+
}
|
|
12236
|
+
if (config2.description) {
|
|
12237
|
+
card2.config.main.description = config2.description;
|
|
12238
|
+
}
|
|
12239
|
+
if (config2.cardValue) {
|
|
12240
|
+
card2.config.main.cardValue = config2.cardValue;
|
|
12241
|
+
}
|
|
12242
|
+
if (config2.growthRate) {
|
|
12243
|
+
card2.config.main.growthRate = config2.growthRate;
|
|
12244
|
+
}
|
|
12245
|
+
if (config2.color) {
|
|
12246
|
+
card2.config.main.color = config2.color;
|
|
12247
|
+
}
|
|
12248
|
+
return card2;
|
|
12249
|
+
};
|
|
11809
12250
|
var DateInputField = {
|
|
11810
12251
|
type: "Control",
|
|
11811
12252
|
scope: "#/properties/date",
|
|
@@ -11837,7 +12278,6 @@ const DateTime = {
|
|
|
11837
12278
|
const buildDate = (config2, componentScope2) => {
|
|
11838
12279
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11839
12280
|
dateInputField.config.main.label = config2.label;
|
|
11840
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11841
12281
|
dateInputField.scope = componentScope2;
|
|
11842
12282
|
if (config2.layout) {
|
|
11843
12283
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11851,12 +12291,14 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11851
12291
|
if (config2.toolTipPosition) {
|
|
11852
12292
|
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11853
12293
|
}
|
|
12294
|
+
if (config2.style) {
|
|
12295
|
+
dateInputField.config.style = JSON.parse(config2.style);
|
|
12296
|
+
}
|
|
11854
12297
|
return dateInputField;
|
|
11855
12298
|
};
|
|
11856
12299
|
const buildDateTime = (config2, componentScope2) => {
|
|
11857
12300
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11858
12301
|
dateTimeInputField.config.main.label = config2.label;
|
|
11859
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11860
12302
|
dateTimeInputField.scope = componentScope2;
|
|
11861
12303
|
if (config2.layout) {
|
|
11862
12304
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11870,6 +12312,9 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11870
12312
|
if (config2.toolTipPosition) {
|
|
11871
12313
|
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11872
12314
|
}
|
|
12315
|
+
if (config2.style) {
|
|
12316
|
+
dateTimeInputField.config.style = JSON.parse(config2.style);
|
|
12317
|
+
}
|
|
11873
12318
|
return dateTimeInputField;
|
|
11874
12319
|
};
|
|
11875
12320
|
var RankCard = {
|
|
@@ -11960,7 +12405,8 @@ var MultipleSelect = {
|
|
|
11960
12405
|
multiple: true,
|
|
11961
12406
|
variant: "outlined",
|
|
11962
12407
|
options: []
|
|
11963
|
-
}
|
|
12408
|
+
},
|
|
12409
|
+
style: {}
|
|
11964
12410
|
}
|
|
11965
12411
|
};
|
|
11966
12412
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -11987,6 +12433,9 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
11987
12433
|
if (config2.toolTipPosition) {
|
|
11988
12434
|
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11989
12435
|
}
|
|
12436
|
+
if (config2.style) {
|
|
12437
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12438
|
+
}
|
|
11990
12439
|
return multipleSelect;
|
|
11991
12440
|
};
|
|
11992
12441
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -12133,10 +12582,10 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
12133
12582
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
12134
12583
|
}
|
|
12135
12584
|
if (config2.legendLabels) {
|
|
12136
|
-
lineGraph.config.main.legendLabels =
|
|
12585
|
+
lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
12137
12586
|
}
|
|
12138
12587
|
if (config2.pieArcColors) {
|
|
12139
|
-
lineGraph.config.style.
|
|
12588
|
+
lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
12140
12589
|
}
|
|
12141
12590
|
lineGraph.scope = componentScope2;
|
|
12142
12591
|
return lineGraph;
|
|
@@ -12225,7 +12674,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12225
12674
|
if (config2.style) {
|
|
12226
12675
|
array.config.style = JSON.parse(config2.style);
|
|
12227
12676
|
}
|
|
12677
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12678
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12679
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12228
12680
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12681
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12229
12682
|
array.config.main.label = config2.label;
|
|
12230
12683
|
array.scope = componentScope2;
|
|
12231
12684
|
return array;
|
|
@@ -12300,7 +12753,8 @@ const FileInput = {
|
|
|
12300
12753
|
required: false,
|
|
12301
12754
|
onUpload: "onFileUpload",
|
|
12302
12755
|
onDownload: "onFileDownload",
|
|
12303
|
-
label: "Aggrement Copy"
|
|
12756
|
+
label: "Aggrement Copy",
|
|
12757
|
+
"onClick": "onClick"
|
|
12304
12758
|
},
|
|
12305
12759
|
style: {
|
|
12306
12760
|
backgroundColor: "none"
|
|
@@ -12317,27 +12771,19 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12317
12771
|
if (config2.style) {
|
|
12318
12772
|
box.config.style = JSON.parse(config2.style);
|
|
12319
12773
|
}
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
if (config2.disableDelete) {
|
|
12330
|
-
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12331
|
-
}
|
|
12332
|
-
if (config2.description) {
|
|
12333
|
-
box.config.main.description = config2.description;
|
|
12334
|
-
}
|
|
12335
|
-
if (config2.toolTip) {
|
|
12336
|
-
box.config.main.toolTip = config2.toolTip;
|
|
12337
|
-
}
|
|
12774
|
+
box.config.main.variant = config2.variant;
|
|
12775
|
+
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12776
|
+
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12777
|
+
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12778
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12779
|
+
box.config.main.description = config2.description;
|
|
12780
|
+
box.config.main.toolTip = config2.toolTip;
|
|
12781
|
+
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
12782
|
+
box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
|
|
12338
12783
|
if (config2.toolTipPosition) {
|
|
12339
12784
|
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12340
12785
|
}
|
|
12786
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12341
12787
|
return box;
|
|
12342
12788
|
};
|
|
12343
12789
|
const Stepper = {
|
|
@@ -12394,6 +12840,7 @@ const PopUP = {
|
|
|
12394
12840
|
},
|
|
12395
12841
|
main: {
|
|
12396
12842
|
label: "PopUp",
|
|
12843
|
+
onClose: "onClose",
|
|
12397
12844
|
fullScreen: false,
|
|
12398
12845
|
fullWidth: false,
|
|
12399
12846
|
maxWidth: false,
|
|
@@ -12617,7 +13064,8 @@ const imageUiSchema = {
|
|
|
12617
13064
|
config: {
|
|
12618
13065
|
layout: 3,
|
|
12619
13066
|
main: {
|
|
12620
|
-
url: ""
|
|
13067
|
+
url: "",
|
|
13068
|
+
onClick: "onClick"
|
|
12621
13069
|
},
|
|
12622
13070
|
style: {}
|
|
12623
13071
|
}
|
|
@@ -12635,8 +13083,134 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12635
13083
|
if (config2.height) {
|
|
12636
13084
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12637
13085
|
}
|
|
13086
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13087
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12638
13088
|
return image;
|
|
12639
13089
|
};
|
|
13090
|
+
const buildAreaGraph = (config2, componentScope2) => {
|
|
13091
|
+
const AreaGraph = _.cloneDeep(AreaBarGraph);
|
|
13092
|
+
AreaGraph.scope = componentScope2;
|
|
13093
|
+
if (config2.layout) {
|
|
13094
|
+
AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13095
|
+
}
|
|
13096
|
+
AreaGraph.config.main.type = config2.graphType;
|
|
13097
|
+
AreaGraph.scope = componentScope2;
|
|
13098
|
+
AreaGraph.config.main.header = config2.heading;
|
|
13099
|
+
AreaGraph.config.main.subHeader = config2.subHeader;
|
|
13100
|
+
if (config2.legendHide) {
|
|
13101
|
+
AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13102
|
+
}
|
|
13103
|
+
if (config2.bottomAxisAngle) {
|
|
13104
|
+
AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13105
|
+
}
|
|
13106
|
+
if (config2.legendLabels) {
|
|
13107
|
+
AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13108
|
+
}
|
|
13109
|
+
if (config2.legendDirection) {
|
|
13110
|
+
AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13111
|
+
}
|
|
13112
|
+
if (config2.height) {
|
|
13113
|
+
AreaGraph.config.style.containerStyle.height = config2.height;
|
|
13114
|
+
}
|
|
13115
|
+
if (config2.pieArcColors) {
|
|
13116
|
+
AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13117
|
+
}
|
|
13118
|
+
if (config2.xAxisFormatType) {
|
|
13119
|
+
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13120
|
+
}
|
|
13121
|
+
if (config2.yAxisTickCount) {
|
|
13122
|
+
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13123
|
+
}
|
|
13124
|
+
if (config2.xAxisTickCount) {
|
|
13125
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13126
|
+
}
|
|
13127
|
+
if (config2.xAxisValue) {
|
|
13128
|
+
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13129
|
+
}
|
|
13130
|
+
if (config2.xAxisType) {
|
|
13131
|
+
AreaGraph.config.main.xAxisType = config2.xAxisType;
|
|
13132
|
+
}
|
|
13133
|
+
if (config2.bottomLabel) {
|
|
13134
|
+
AreaGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13135
|
+
}
|
|
13136
|
+
if (config2.leftLabel) {
|
|
13137
|
+
AreaGraph.config.main.leftLabel = config2.leftLabel;
|
|
13138
|
+
}
|
|
13139
|
+
if (config2.disableLeftLabel) {
|
|
13140
|
+
AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13141
|
+
}
|
|
13142
|
+
if (config2.leftMargin) {
|
|
13143
|
+
AreaGraph.config.style.labelStyle.margin = {
|
|
13144
|
+
left: config2.leftMargin
|
|
13145
|
+
};
|
|
13146
|
+
}
|
|
13147
|
+
return AreaGraph;
|
|
13148
|
+
};
|
|
13149
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13150
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13151
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13152
|
+
if (config2.layout) {
|
|
13153
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13154
|
+
}
|
|
13155
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13156
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13157
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13158
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13159
|
+
if (config2.legendHide) {
|
|
13160
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13161
|
+
}
|
|
13162
|
+
if (config2.bottomAxisAngle) {
|
|
13163
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13164
|
+
}
|
|
13165
|
+
if (config2.legendLabels) {
|
|
13166
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13167
|
+
}
|
|
13168
|
+
if (config2.legendDirection) {
|
|
13169
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13170
|
+
}
|
|
13171
|
+
if (config2.height) {
|
|
13172
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13173
|
+
}
|
|
13174
|
+
if (config2.pieArcColors) {
|
|
13175
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13176
|
+
}
|
|
13177
|
+
if (config2.yAxisTickCount) {
|
|
13178
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13179
|
+
}
|
|
13180
|
+
if (config2.xAxisTickCount) {
|
|
13181
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13182
|
+
}
|
|
13183
|
+
if (config2.xAxisValue) {
|
|
13184
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13185
|
+
}
|
|
13186
|
+
if (config2.xAxisType) {
|
|
13187
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13188
|
+
}
|
|
13189
|
+
if (config2.bottomLabel) {
|
|
13190
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13191
|
+
}
|
|
13192
|
+
if (config2.leftLabel) {
|
|
13193
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13194
|
+
}
|
|
13195
|
+
if (config2.rightLabel) {
|
|
13196
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13197
|
+
}
|
|
13198
|
+
if (config2.disableLeftLabel) {
|
|
13199
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13200
|
+
}
|
|
13201
|
+
if (config2.growthRateKey) {
|
|
13202
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13203
|
+
}
|
|
13204
|
+
if (config2.tooltipUnit) {
|
|
13205
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13206
|
+
}
|
|
13207
|
+
if (config2.leftMargin) {
|
|
13208
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13209
|
+
left: config2.leftMargin
|
|
13210
|
+
};
|
|
13211
|
+
}
|
|
13212
|
+
return StackBarLineGraph;
|
|
13213
|
+
};
|
|
12640
13214
|
const cameraUiSchema = {
|
|
12641
13215
|
type: "Control",
|
|
12642
13216
|
scope: "#/properties/camera",
|
|
@@ -12677,10 +13251,149 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
12677
13251
|
camera.config.main.color = config2.color;
|
|
12678
13252
|
}
|
|
12679
13253
|
if (config2.label) {
|
|
12680
|
-
camera.config.main.
|
|
13254
|
+
camera.config.main.label = config2.label;
|
|
12681
13255
|
}
|
|
12682
13256
|
return camera;
|
|
12683
13257
|
};
|
|
13258
|
+
var ButtonGroup = {
|
|
13259
|
+
type: "Control",
|
|
13260
|
+
scope: "#/properties/buttonGroup",
|
|
13261
|
+
options: {
|
|
13262
|
+
widget: "ButtonGroup"
|
|
13263
|
+
},
|
|
13264
|
+
config: {
|
|
13265
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
13266
|
+
main: {
|
|
13267
|
+
variant: "contained",
|
|
13268
|
+
styleDefault: false,
|
|
13269
|
+
size: "small"
|
|
13270
|
+
},
|
|
13271
|
+
style: {}
|
|
13272
|
+
}
|
|
13273
|
+
};
|
|
13274
|
+
const buildButtonGroup = (config2, componentScope2) => {
|
|
13275
|
+
const buttonGroup = _.cloneDeep(ButtonGroup);
|
|
13276
|
+
if (config2.layout) {
|
|
13277
|
+
buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13278
|
+
}
|
|
13279
|
+
buttonGroup.scope = componentScope2;
|
|
13280
|
+
if (config2.multiSelect) {
|
|
13281
|
+
buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
|
|
13282
|
+
}
|
|
13283
|
+
if (config2.style) {
|
|
13284
|
+
buttonGroup.config.style = JSON.parse(config2.style);
|
|
13285
|
+
}
|
|
13286
|
+
if (config2.size) {
|
|
13287
|
+
buttonGroup.config.main.size = config2.size;
|
|
13288
|
+
}
|
|
13289
|
+
if (config2.color) {
|
|
13290
|
+
buttonGroup.config.main.color = config2.color;
|
|
13291
|
+
}
|
|
13292
|
+
return buttonGroup;
|
|
13293
|
+
};
|
|
13294
|
+
const PopOver = {
|
|
13295
|
+
type: "Control",
|
|
13296
|
+
scope: "#/properties/text",
|
|
13297
|
+
options: {
|
|
13298
|
+
widget: "Popover"
|
|
13299
|
+
},
|
|
13300
|
+
config: {
|
|
13301
|
+
layout: {
|
|
13302
|
+
xs: 12,
|
|
13303
|
+
sm: 12,
|
|
13304
|
+
md: 12,
|
|
13305
|
+
lg: 12
|
|
13306
|
+
},
|
|
13307
|
+
main: {
|
|
13308
|
+
label: "PopOver"
|
|
13309
|
+
},
|
|
13310
|
+
style: {}
|
|
13311
|
+
}
|
|
13312
|
+
};
|
|
13313
|
+
const buildPopOver = (config2, componentScope2) => {
|
|
13314
|
+
const popOver = _.cloneDeep(PopOver);
|
|
13315
|
+
popOver.scope = componentScope2;
|
|
13316
|
+
popOver.config.main.positionVertical = config2.positionVertical;
|
|
13317
|
+
popOver.config.main.positionHorizontal = config2.positionHorizontal;
|
|
13318
|
+
popOver.config.main.contentVertical = config2.contentVertical;
|
|
13319
|
+
popOver.config.main.contentHorizontal = config2.contentHorizontal;
|
|
13320
|
+
popOver.config.main.width = config2.width;
|
|
13321
|
+
popOver.config.main.gap = config2.gap;
|
|
13322
|
+
if (config2.layout) {
|
|
13323
|
+
popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13324
|
+
}
|
|
13325
|
+
if (config2.style) {
|
|
13326
|
+
popOver.config.style = JSON.parse(config2.style);
|
|
13327
|
+
}
|
|
13328
|
+
return popOver;
|
|
13329
|
+
};
|
|
13330
|
+
const OTPSchema = {
|
|
13331
|
+
type: "Control",
|
|
13332
|
+
scope: "#/properties/OTPInput",
|
|
13333
|
+
options: {
|
|
13334
|
+
widget: "OTPInput"
|
|
13335
|
+
},
|
|
13336
|
+
config: {
|
|
13337
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 },
|
|
13338
|
+
main: {
|
|
13339
|
+
seperator: "",
|
|
13340
|
+
length: 4,
|
|
13341
|
+
type: "number",
|
|
13342
|
+
masking: true
|
|
13343
|
+
}
|
|
13344
|
+
}
|
|
13345
|
+
};
|
|
13346
|
+
const buildOTP_Input = (config2, componentScope2) => {
|
|
13347
|
+
const OTP = _.cloneDeep(OTPSchema);
|
|
13348
|
+
OTP.scope = componentScope2;
|
|
13349
|
+
if (config2.layout) {
|
|
13350
|
+
OTP.config.layout = createLayoutFormat(config2.layout);
|
|
13351
|
+
}
|
|
13352
|
+
if (config2.style) {
|
|
13353
|
+
OTP.config.style = JSON.parse(config2.style);
|
|
13354
|
+
}
|
|
13355
|
+
if (config2.errorMessage) {
|
|
13356
|
+
OTP.config.main.errorMessage = config2.errorMessage;
|
|
13357
|
+
}
|
|
13358
|
+
if (config2.toolTip) {
|
|
13359
|
+
OTP.config.main.toolTip = config2.toolTip;
|
|
13360
|
+
}
|
|
13361
|
+
OTP.config.main.masking = config2.masking === "YES" ? true : false;
|
|
13362
|
+
OTP.config.main.type = config2.OTP_Format;
|
|
13363
|
+
OTP.config.main.seperator = config2.seperator;
|
|
13364
|
+
OTP.config.main.length = +config2.length;
|
|
13365
|
+
return OTP;
|
|
13366
|
+
};
|
|
13367
|
+
var pdfViewer = {
|
|
13368
|
+
type: "Control",
|
|
13369
|
+
scope: "#/properties/pdfviewer",
|
|
13370
|
+
options: {
|
|
13371
|
+
widget: "PdfViewer"
|
|
13372
|
+
},
|
|
13373
|
+
config: {
|
|
13374
|
+
layout: {
|
|
13375
|
+
xs: 12,
|
|
13376
|
+
sm: 12,
|
|
13377
|
+
md: 12,
|
|
13378
|
+
lg: 12
|
|
13379
|
+
},
|
|
13380
|
+
main: {
|
|
13381
|
+
title: "PDF"
|
|
13382
|
+
}
|
|
13383
|
+
}
|
|
13384
|
+
};
|
|
13385
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13386
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13387
|
+
PdfViewer.scope = componentScope2;
|
|
13388
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13389
|
+
if (config2.layout) {
|
|
13390
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13391
|
+
}
|
|
13392
|
+
if (config2.style) {
|
|
13393
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13394
|
+
}
|
|
13395
|
+
return PdfViewer;
|
|
13396
|
+
};
|
|
12684
13397
|
let schema = {
|
|
12685
13398
|
type: "object",
|
|
12686
13399
|
properties: {},
|
|
@@ -12751,6 +13464,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12751
13464
|
let elements = {};
|
|
12752
13465
|
const componentScope2 = `#/properties/${config2.name}`;
|
|
12753
13466
|
switch (config2.type) {
|
|
13467
|
+
case "OTP_Input":
|
|
13468
|
+
elements = buildOTP_Input(config2, componentScope2);
|
|
13469
|
+
break;
|
|
12754
13470
|
case "TreeMap":
|
|
12755
13471
|
elements = buildTreeMap(config2, componentScope2);
|
|
12756
13472
|
break;
|
|
@@ -12769,6 +13485,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12769
13485
|
case "PopUp":
|
|
12770
13486
|
elements = buildPopUp(config2, componentScope2);
|
|
12771
13487
|
break;
|
|
13488
|
+
case "PopOver":
|
|
13489
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13490
|
+
break;
|
|
12772
13491
|
case "FileInput":
|
|
12773
13492
|
elements = buildFileInput(config2, componentScope2);
|
|
12774
13493
|
break;
|
|
@@ -12808,6 +13527,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12808
13527
|
case "Button":
|
|
12809
13528
|
elements = buildButton(config2, componentScope2);
|
|
12810
13529
|
break;
|
|
13530
|
+
case "ButtonGroup":
|
|
13531
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13532
|
+
break;
|
|
12811
13533
|
case "Table":
|
|
12812
13534
|
elements = buildTable(config2, componentScope2);
|
|
12813
13535
|
break;
|
|
@@ -12832,6 +13554,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12832
13554
|
case "card":
|
|
12833
13555
|
elements = buildCard(config2, componentScope2, store2);
|
|
12834
13556
|
break;
|
|
13557
|
+
case "MetricCard":
|
|
13558
|
+
elements = buildMetricCard(config2, componentScope2);
|
|
13559
|
+
break;
|
|
12835
13560
|
case "Graph":
|
|
12836
13561
|
switch (config2.graphType) {
|
|
12837
13562
|
case "BarGraph":
|
|
@@ -12848,6 +13573,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12848
13573
|
case "HorizontalStackBarGraph":
|
|
12849
13574
|
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12850
13575
|
break;
|
|
13576
|
+
case "AreaGraph":
|
|
13577
|
+
elements = buildAreaGraph(config2, componentScope2);
|
|
13578
|
+
break;
|
|
13579
|
+
case "StackBarLineGraph":
|
|
13580
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13581
|
+
break;
|
|
12851
13582
|
default:
|
|
12852
13583
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
12853
13584
|
break;
|
|
@@ -12896,6 +13627,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12896
13627
|
case "Camera":
|
|
12897
13628
|
elements = buildCamera(config2, componentScope2);
|
|
12898
13629
|
break;
|
|
13630
|
+
case "PdfViewer":
|
|
13631
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13632
|
+
break;
|
|
12899
13633
|
default:
|
|
12900
13634
|
schema = {
|
|
12901
13635
|
type: "object",
|
|
@@ -12999,7 +13733,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12999
13733
|
});
|
|
13000
13734
|
}
|
|
13001
13735
|
}
|
|
13736
|
+
if (config2.tabLabelElements) {
|
|
13737
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13738
|
+
return buildUiSchema(e, store2);
|
|
13739
|
+
});
|
|
13740
|
+
}
|
|
13002
13741
|
return elements;
|
|
13003
13742
|
};
|
|
13004
|
-
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
13743
|
+
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, downloadFileStream, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
13005
13744
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|