impaktapps-ui-builder 1.0.1585 → 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 +904 -89
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +13 -13
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/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 +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +32 -16
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -43
- 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 +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +33 -0
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -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 +224 -21
- 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 +87 -0
- 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,48 @@ 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
|
+
},
|
|
6366
|
+
toolTipPosition: {
|
|
6367
|
+
oneOf: [
|
|
6368
|
+
{ title: "Top", const: "top" },
|
|
6369
|
+
{ title: "Left", const: "left" },
|
|
6370
|
+
{ title: "Right", const: "right" },
|
|
6371
|
+
{ title: "Bottom", const: "bottom" }
|
|
6372
|
+
]
|
|
6373
|
+
},
|
|
6374
|
+
growthRate: {
|
|
6375
|
+
oneOf: [
|
|
6376
|
+
{ title: "Positive", const: "positive" },
|
|
6377
|
+
{ title: "Negative", const: "negative" }
|
|
6378
|
+
]
|
|
6379
|
+
},
|
|
6317
6380
|
orientation: {
|
|
6318
6381
|
oneOf: [
|
|
6319
6382
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -6348,6 +6411,21 @@ const ComponentSchema = {
|
|
|
6348
6411
|
{ title: "Spacious", const: "spacious" }
|
|
6349
6412
|
]
|
|
6350
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
|
+
},
|
|
6351
6429
|
layout: {
|
|
6352
6430
|
type: "array",
|
|
6353
6431
|
items: {
|
|
@@ -6483,6 +6561,9 @@ const ComponentSchema = {
|
|
|
6483
6561
|
items: {
|
|
6484
6562
|
type: "object",
|
|
6485
6563
|
properties: {
|
|
6564
|
+
key: {
|
|
6565
|
+
type: "string"
|
|
6566
|
+
},
|
|
6486
6567
|
label: {
|
|
6487
6568
|
type: "string"
|
|
6488
6569
|
}
|
|
@@ -6494,12 +6575,26 @@ const ComponentSchema = {
|
|
|
6494
6575
|
items: {
|
|
6495
6576
|
type: "object",
|
|
6496
6577
|
properties: {
|
|
6578
|
+
key: {
|
|
6579
|
+
type: "string"
|
|
6580
|
+
},
|
|
6497
6581
|
label: {
|
|
6498
6582
|
type: "string"
|
|
6499
6583
|
}
|
|
6500
6584
|
}
|
|
6501
6585
|
}
|
|
6502
6586
|
},
|
|
6587
|
+
tabIcons: {
|
|
6588
|
+
type: "array",
|
|
6589
|
+
items: {
|
|
6590
|
+
type: "object",
|
|
6591
|
+
properties: {
|
|
6592
|
+
url: {
|
|
6593
|
+
type: "string"
|
|
6594
|
+
}
|
|
6595
|
+
}
|
|
6596
|
+
}
|
|
6597
|
+
},
|
|
6503
6598
|
InputFormatingAndMasking: {
|
|
6504
6599
|
type: "array",
|
|
6505
6600
|
items: {
|
|
@@ -6561,7 +6656,9 @@ const ComponentSchema = {
|
|
|
6561
6656
|
{
|
|
6562
6657
|
title: "Stack Horizontal Bar Graph",
|
|
6563
6658
|
const: "HorizontalStackBarGraph"
|
|
6564
|
-
}
|
|
6659
|
+
},
|
|
6660
|
+
{ title: "Area Graph", const: "AreaGraph" },
|
|
6661
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6565
6662
|
]
|
|
6566
6663
|
},
|
|
6567
6664
|
iconName: {
|
|
@@ -6597,6 +6694,7 @@ const ComponentSchema = {
|
|
|
6597
6694
|
{ title: "Drafts Icon", const: "DraftsIcon" },
|
|
6598
6695
|
{ title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
|
|
6599
6696
|
{ title: "Paste Icon", const: "PasteIcon" },
|
|
6697
|
+
{ title: "Calendar", const: "Calendar" },
|
|
6600
6698
|
{ title: "Prev Icon", const: "PrevIcon" },
|
|
6601
6699
|
{ title: "Verified Icon", const: "VerifiedIcon" },
|
|
6602
6700
|
{ title: "Table Add Icon", const: "TableAddIcon" },
|
|
@@ -6613,7 +6711,12 @@ const ComponentSchema = {
|
|
|
6613
6711
|
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6614
6712
|
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6615
6713
|
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
6616
|
-
{ 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" }
|
|
6617
6720
|
]
|
|
6618
6721
|
},
|
|
6619
6722
|
color: {
|
|
@@ -7719,6 +7822,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7719
7822
|
]
|
|
7720
7823
|
};
|
|
7721
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
|
+
};
|
|
7722
7879
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7723
7880
|
sizeHolder.elements[1] = {
|
|
7724
7881
|
type: "Control",
|
|
@@ -7841,6 +7998,14 @@ const BaseSection = {
|
|
|
7841
7998
|
const buildPropertiesSection = function(type) {
|
|
7842
7999
|
let uiSchema = _.cloneDeep(BaseSection);
|
|
7843
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;
|
|
7844
8009
|
case "Array":
|
|
7845
8010
|
uiSchema.elements = [
|
|
7846
8011
|
getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
|
|
@@ -7848,6 +8013,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7848
8013
|
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
7849
8014
|
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7850
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"),
|
|
7851
8020
|
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7852
8021
|
];
|
|
7853
8022
|
break;
|
|
@@ -7901,12 +8070,26 @@ const buildPropertiesSection = function(type) {
|
|
|
7901
8070
|
emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7902
8071
|
];
|
|
7903
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;
|
|
7904
8084
|
case "Text":
|
|
7905
8085
|
uiSchema.elements = [
|
|
7906
8086
|
getInputField("placeholder", "Placeholder"),
|
|
7907
8087
|
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7908
8088
|
getSelectField("variant", "Variant"),
|
|
7909
|
-
|
|
8089
|
+
getInputField("toolTip", "Tooltip"),
|
|
8090
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8091
|
+
getSelectField("iconName", "Start Icon"),
|
|
8092
|
+
emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
|
|
7910
8093
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
7911
8094
|
getInputField("keyName", "Event Key Name")
|
|
7912
8095
|
];
|
|
@@ -7975,6 +8158,17 @@ const buildPropertiesSection = function(type) {
|
|
|
7975
8158
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7976
8159
|
];
|
|
7977
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;
|
|
7978
8172
|
case "Button":
|
|
7979
8173
|
uiSchema.elements = [
|
|
7980
8174
|
getSelectField("buttonType", "Button Type"),
|
|
@@ -7985,6 +8179,14 @@ const buildPropertiesSection = function(type) {
|
|
|
7985
8179
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7986
8180
|
];
|
|
7987
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;
|
|
7988
8190
|
case "Box":
|
|
7989
8191
|
uiSchema.elements = [
|
|
7990
8192
|
getSelectField("iconName", "Icon Name"),
|
|
@@ -7995,20 +8197,27 @@ const buildPropertiesSection = function(type) {
|
|
|
7995
8197
|
uiSchema.elements = [
|
|
7996
8198
|
getInputField("height", "Height"),
|
|
7997
8199
|
getInputField("heading", "Heading"),
|
|
8200
|
+
getInputField("subHeader", "Sub Header"),
|
|
7998
8201
|
getSelectField("graphType", "Graph Type"),
|
|
7999
8202
|
getInputField("leftLabel", "Left Label"),
|
|
8203
|
+
getInputField("rightLabel", "Right Label"),
|
|
8000
8204
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8001
8205
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8002
8206
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
8003
8207
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
8004
8208
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
8005
|
-
getInputField("yAxisValue", "Y-
|
|
8006
|
-
getInputField("xAxisValue", "X-
|
|
8209
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
8210
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
8211
|
+
getSelectField("xAxisType", "X-AxisType"),
|
|
8007
8212
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8008
8213
|
getInputField("leftMargin", "Left Margin"),
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
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")
|
|
8012
8221
|
];
|
|
8013
8222
|
break;
|
|
8014
8223
|
case "WrapperSection":
|
|
@@ -8016,9 +8225,12 @@ const buildPropertiesSection = function(type) {
|
|
|
8016
8225
|
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
8017
8226
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8018
8227
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8019
|
-
getInputField("rowSpacing", "Row Spacing"),
|
|
8020
8228
|
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8021
|
-
|
|
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 }),
|
|
8022
8234
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8023
8235
|
];
|
|
8024
8236
|
break;
|
|
@@ -8027,7 +8239,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8027
8239
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
8028
8240
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
8029
8241
|
emptyBox$1("TabEmpty"),
|
|
8030
|
-
|
|
8242
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
8031
8243
|
];
|
|
8032
8244
|
break;
|
|
8033
8245
|
case "Table":
|
|
@@ -8053,7 +8265,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8053
8265
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8054
8266
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
8055
8267
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
8056
|
-
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
8057
8268
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
8058
8269
|
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8059
8270
|
,
|
|
@@ -8067,7 +8278,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8067
8278
|
case "Radio":
|
|
8068
8279
|
uiSchema.elements = [
|
|
8069
8280
|
getInputField("errorMessage", "Error Message"),
|
|
8070
|
-
|
|
8281
|
+
getInputField("toolTip", "Tooltip"),
|
|
8282
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8283
|
+
emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8071
8284
|
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
8072
8285
|
];
|
|
8073
8286
|
break;
|
|
@@ -8076,27 +8289,39 @@ const buildPropertiesSection = function(type) {
|
|
|
8076
8289
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8077
8290
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
8078
8291
|
getSelectField("variant", "Variant"),
|
|
8079
|
-
|
|
8292
|
+
getInputField("toolTip", "Tooltip"),
|
|
8293
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8294
|
+
emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8080
8295
|
];
|
|
8081
8296
|
break;
|
|
8082
8297
|
case "MultipleSelect":
|
|
8083
8298
|
uiSchema.elements = [
|
|
8084
8299
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8085
8300
|
getSelectField("variant", "Variant"),
|
|
8086
|
-
|
|
8087
|
-
|
|
8301
|
+
getInputField("toolTip", "Tooltip"),
|
|
8302
|
+
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8303
|
+
];
|
|
8304
|
+
break;
|
|
8305
|
+
case "PdfViewer":
|
|
8306
|
+
uiSchema.elements = [
|
|
8307
|
+
getInputField("scale", "Zoom"),
|
|
8308
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8088
8309
|
];
|
|
8089
8310
|
break;
|
|
8090
8311
|
case "Date":
|
|
8091
8312
|
uiSchema.elements = [
|
|
8092
8313
|
getSelectField("variant", "Variant"),
|
|
8093
|
-
|
|
8314
|
+
getInputField("toolTip", "Tooltip"),
|
|
8315
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8316
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8094
8317
|
];
|
|
8095
8318
|
break;
|
|
8096
8319
|
case "DateTime":
|
|
8097
8320
|
uiSchema.elements = [
|
|
8098
8321
|
getSelectField("variant", "Variant"),
|
|
8099
|
-
|
|
8322
|
+
getInputField("toolTip", "Tooltip"),
|
|
8323
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8324
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8100
8325
|
];
|
|
8101
8326
|
break;
|
|
8102
8327
|
case "Thought":
|
|
@@ -8108,6 +8333,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8108
8333
|
uiSchema.elements = [
|
|
8109
8334
|
getInputField("imageUrl", "Image URL"),
|
|
8110
8335
|
getInputField("height", "Image Height"),
|
|
8336
|
+
getInputField("toolTip", "Tooltip"),
|
|
8337
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8111
8338
|
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8112
8339
|
];
|
|
8113
8340
|
break;
|
|
@@ -8118,12 +8345,19 @@ const buildPropertiesSection = function(type) {
|
|
|
8118
8345
|
getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
|
|
8119
8346
|
getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
|
|
8120
8347
|
getInputField("description", "Enter description"),
|
|
8121
|
-
|
|
8348
|
+
getInputField("toolTip", "Tooltip"),
|
|
8349
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
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 })
|
|
8122
8355
|
];
|
|
8123
8356
|
break;
|
|
8124
8357
|
case "Camera":
|
|
8125
8358
|
uiSchema.elements = [
|
|
8126
8359
|
getSelectField("iconName", "Icon Name"),
|
|
8360
|
+
getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
|
|
8127
8361
|
getSelectField("color", "Color"),
|
|
8128
8362
|
getInputField("tooltipMessage", "Tooltip Message"),
|
|
8129
8363
|
getSelectField("variant", "Variant"),
|
|
@@ -8166,13 +8400,13 @@ const StyleSection = {
|
|
|
8166
8400
|
}
|
|
8167
8401
|
]
|
|
8168
8402
|
};
|
|
8169
|
-
const TableSection = (theme) => {
|
|
8403
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
8170
8404
|
const uiSchema = {
|
|
8171
8405
|
type: "HorizontalLayout",
|
|
8172
8406
|
elements: [
|
|
8173
8407
|
{
|
|
8174
8408
|
type: "Control",
|
|
8175
|
-
scope:
|
|
8409
|
+
scope: `#/properties/${scopeName}`,
|
|
8176
8410
|
options: {
|
|
8177
8411
|
widget: "Table"
|
|
8178
8412
|
},
|
|
@@ -8183,7 +8417,7 @@ const TableSection = (theme) => {
|
|
|
8183
8417
|
{
|
|
8184
8418
|
widget: {
|
|
8185
8419
|
type: "Control",
|
|
8186
|
-
scope:
|
|
8420
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
8187
8421
|
options: {
|
|
8188
8422
|
widget: "IconButton"
|
|
8189
8423
|
},
|
|
@@ -8210,7 +8444,7 @@ const TableSection = (theme) => {
|
|
|
8210
8444
|
{
|
|
8211
8445
|
widget: {
|
|
8212
8446
|
type: "Control",
|
|
8213
|
-
scope: "
|
|
8447
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8214
8448
|
options: {
|
|
8215
8449
|
widget: "IconButton"
|
|
8216
8450
|
},
|
|
@@ -8275,7 +8509,7 @@ const TableSection = (theme) => {
|
|
|
8275
8509
|
},
|
|
8276
8510
|
{
|
|
8277
8511
|
type: "Control",
|
|
8278
|
-
scope: "
|
|
8512
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8279
8513
|
options: {
|
|
8280
8514
|
widget: "Button"
|
|
8281
8515
|
},
|
|
@@ -8468,6 +8702,10 @@ var buildConfig = (FormData) => {
|
|
|
8468
8702
|
if (formData.events) {
|
|
8469
8703
|
delete formData.events;
|
|
8470
8704
|
}
|
|
8705
|
+
if (formData.tabLabelElements) {
|
|
8706
|
+
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8707
|
+
delete formData.tabLabelElements;
|
|
8708
|
+
}
|
|
8471
8709
|
component = { ...formData, ...component };
|
|
8472
8710
|
return component;
|
|
8473
8711
|
};
|
|
@@ -8500,9 +8738,27 @@ const flatObjectValueInArray = (config2 = []) => {
|
|
|
8500
8738
|
});
|
|
8501
8739
|
return data;
|
|
8502
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
|
+
};
|
|
8503
8749
|
const clearFromSessionStorage = () => {
|
|
8504
8750
|
sessionStorage.removeItem("pageFormdata");
|
|
8505
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
|
+
};
|
|
8506
8762
|
const getNavigationHistory = (config2, path) => {
|
|
8507
8763
|
if (path) {
|
|
8508
8764
|
let urlRoutes = config2.name;
|
|
@@ -8561,11 +8817,13 @@ async function saveHandler(store2, service2, submitHandler) {
|
|
|
8561
8817
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8562
8818
|
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8563
8819
|
} catch (err) {
|
|
8564
|
-
navigateHandler(store2, false);
|
|
8820
|
+
navigateHandler(store2, false, void 0, err.message);
|
|
8565
8821
|
}
|
|
8822
|
+
} else {
|
|
8823
|
+
navigateHandler(store2, false);
|
|
8566
8824
|
}
|
|
8567
8825
|
}
|
|
8568
|
-
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
8826
|
+
const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
|
|
8569
8827
|
if (isSubmitted) {
|
|
8570
8828
|
sessionStorage.removeItem("pageFormdata");
|
|
8571
8829
|
store2.navigate(pageName || -1);
|
|
@@ -8577,7 +8835,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
|
8577
8835
|
store2.setValidation("ValidateAndShow");
|
|
8578
8836
|
store2.setNotify({
|
|
8579
8837
|
Fail: true,
|
|
8580
|
-
FailMessage: "Errors on Page"
|
|
8838
|
+
FailMessage: errorMessage || "Errors on Page"
|
|
8581
8839
|
});
|
|
8582
8840
|
}
|
|
8583
8841
|
};
|
|
@@ -8606,7 +8864,7 @@ const sectionLabels = {
|
|
|
8606
8864
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8607
8865
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8608
8866
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8609
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8867
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8610
8868
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8611
8869
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8612
8870
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8617,15 +8875,19 @@ const sectionLabels = {
|
|
|
8617
8875
|
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8618
8876
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8619
8877
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8878
|
+
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8620
8879
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8621
8880
|
Timer: ["Core", "Events", "Style"],
|
|
8622
8881
|
Rank: ["Core", "Events", "Style"],
|
|
8623
8882
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8624
|
-
|
|
8883
|
+
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8884
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8625
8885
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8626
8886
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8627
8887
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8628
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8888
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8889
|
+
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8890
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8629
8891
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8630
8892
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8631
8893
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8634,9 +8896,10 @@ const sectionLabels = {
|
|
|
8634
8896
|
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8635
8897
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8636
8898
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8637
|
-
Image: ["Core", "Properties", "Style"],
|
|
8899
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8638
8900
|
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8639
|
-
Camera: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8901
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8902
|
+
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8640
8903
|
};
|
|
8641
8904
|
function refreshPage(type, store2) {
|
|
8642
8905
|
var _a, _b;
|
|
@@ -8649,6 +8912,7 @@ function refreshPage(type, store2) {
|
|
|
8649
8912
|
Style: StyleSection,
|
|
8650
8913
|
Events: EventSection(store2.theme.myTheme),
|
|
8651
8914
|
Components: TableSection(store2.theme.myTheme),
|
|
8915
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8652
8916
|
Properties: buildPropertiesSection(type),
|
|
8653
8917
|
Validation: ValidationSection
|
|
8654
8918
|
};
|
|
@@ -8839,13 +9103,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8839
9103
|
},
|
|
8840
9104
|
editComponents: function() {
|
|
8841
9105
|
var _a, _b, _c;
|
|
9106
|
+
if (validateAndShowErrors(store2))
|
|
9107
|
+
return;
|
|
8842
9108
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8843
9109
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8844
9110
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8845
9111
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8846
9112
|
if (path) {
|
|
8847
|
-
|
|
8848
|
-
|
|
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
|
+
}
|
|
8849
9119
|
store2.searchParams.set("path", finalPath);
|
|
8850
9120
|
store2.setSearchParams(store2.searchParams);
|
|
8851
9121
|
this.setPage();
|
|
@@ -8857,7 +9127,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8857
9127
|
var _a;
|
|
8858
9128
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8859
9129
|
const rowId = sessionStorage.getItem("rowId");
|
|
8860
|
-
|
|
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
|
+
}
|
|
8861
9136
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8862
9137
|
const data = path ? _.get(response, path) : response;
|
|
8863
9138
|
store2.setFormdata(data);
|
|
@@ -8865,6 +9140,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8865
9140
|
store2.updateDialog("popUpComponentSection");
|
|
8866
9141
|
}
|
|
8867
9142
|
sessionStorage.removeItem("rowId");
|
|
9143
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
8868
9144
|
},
|
|
8869
9145
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8870
9146
|
var _a;
|
|
@@ -8880,18 +9156,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8880
9156
|
},
|
|
8881
9157
|
widgetAddClickHandler: function() {
|
|
8882
9158
|
var _a;
|
|
9159
|
+
if (validateAndShowErrors(store2))
|
|
9160
|
+
return;
|
|
8883
9161
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8884
9162
|
store2.formData.elements = [];
|
|
8885
9163
|
}
|
|
9164
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9165
|
+
store2.formData.tabLabelElements = [];
|
|
9166
|
+
}
|
|
8886
9167
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8887
9168
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8888
|
-
|
|
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
|
+
}
|
|
8889
9175
|
store2.searchParams.set("path", finalPath);
|
|
8890
9176
|
store2.setSearchParams(store2.searchParams);
|
|
8891
9177
|
this.setPage();
|
|
8892
9178
|
},
|
|
8893
9179
|
eventEditHandler: function() {
|
|
8894
9180
|
var _a, _b;
|
|
9181
|
+
if (validateAndShowErrors(store2))
|
|
9182
|
+
return;
|
|
8895
9183
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8896
9184
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8897
9185
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8901,6 +9189,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8901
9189
|
},
|
|
8902
9190
|
eventAddHandler: function() {
|
|
8903
9191
|
var _a, _b;
|
|
9192
|
+
if (validateAndShowErrors(store2))
|
|
9193
|
+
return;
|
|
8904
9194
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8905
9195
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8906
9196
|
if (!Array.isArray(store2.formData.events)) {
|
|
@@ -8916,6 +9206,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8916
9206
|
deletePopUpComponent: function() {
|
|
8917
9207
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8918
9208
|
sessionStorage.setItem("rowId", rowId);
|
|
9209
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
8919
9210
|
store2.updateDialog("popUpComponentSection");
|
|
8920
9211
|
},
|
|
8921
9212
|
deletePopUpEvent: function() {
|
|
@@ -8962,9 +9253,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8962
9253
|
if (!Array.isArray(store2.formData.events)) {
|
|
8963
9254
|
store2.formData.events = [];
|
|
8964
9255
|
}
|
|
9256
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9257
|
+
store2.formData.tabLabelElements = [];
|
|
9258
|
+
}
|
|
8965
9259
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8966
9260
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8967
|
-
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;
|
|
8968
9267
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8969
9268
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8970
9269
|
const notificationMessages = {
|
|
@@ -8999,6 +9298,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8999
9298
|
if (elementType === "Component") {
|
|
9000
9299
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9001
9300
|
}
|
|
9301
|
+
if (elementType === "TabsComponent") {
|
|
9302
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9303
|
+
}
|
|
9002
9304
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9003
9305
|
},
|
|
9004
9306
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -9074,6 +9376,8 @@ var pageMaster = (funcParams) => {
|
|
|
9074
9376
|
},
|
|
9075
9377
|
onAddClickHandler: function() {
|
|
9076
9378
|
var _a;
|
|
9379
|
+
if (validateAndShowErrors(store2))
|
|
9380
|
+
return;
|
|
9077
9381
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9078
9382
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9079
9383
|
store2.formData.elements = [];
|
|
@@ -9097,6 +9401,8 @@ var pageMaster = (funcParams) => {
|
|
|
9097
9401
|
},
|
|
9098
9402
|
eventAddHandler: function() {
|
|
9099
9403
|
var _a;
|
|
9404
|
+
if (validateAndShowErrors(store2))
|
|
9405
|
+
return;
|
|
9100
9406
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9101
9407
|
if (!Array.isArray(store2.formData.events)) {
|
|
9102
9408
|
store2.formData.events = [];
|
|
@@ -9107,6 +9413,8 @@ var pageMaster = (funcParams) => {
|
|
|
9107
9413
|
},
|
|
9108
9414
|
editEvent: function() {
|
|
9109
9415
|
var _a;
|
|
9416
|
+
if (validateAndShowErrors(store2))
|
|
9417
|
+
return;
|
|
9110
9418
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9111
9419
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9112
9420
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
@@ -9194,7 +9502,9 @@ const EventSchema = {
|
|
|
9194
9502
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9195
9503
|
{ title: "Download", const: "onDownload" },
|
|
9196
9504
|
{ title: "Fail", const: "Fail" },
|
|
9197
|
-
{ title: "
|
|
9505
|
+
{ title: "onClose", const: "onClose" },
|
|
9506
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9507
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9198
9508
|
]
|
|
9199
9509
|
},
|
|
9200
9510
|
Handler: {
|
|
@@ -9211,6 +9521,7 @@ const EventSchema = {
|
|
|
9211
9521
|
oneOf: [
|
|
9212
9522
|
{ title: "RankProvider", const: "RankProvider" },
|
|
9213
9523
|
{ title: "Download File", const: "downloadFile" },
|
|
9524
|
+
{ title: "Download File Stream", const: "downloadFileStream" },
|
|
9214
9525
|
{ title: "downloadFileFromUrl", const: "downloadFileFromUrl" }
|
|
9215
9526
|
]
|
|
9216
9527
|
},
|
|
@@ -10086,6 +10397,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10086
10397
|
},
|
|
10087
10398
|
addEvent: function() {
|
|
10088
10399
|
var _a, _b, _c;
|
|
10400
|
+
if (validateAndShowErrors(store2))
|
|
10401
|
+
return;
|
|
10089
10402
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10090
10403
|
if (!Array.isArray(store2.formData.events)) {
|
|
10091
10404
|
store2.formData.events = [];
|
|
@@ -10098,6 +10411,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10098
10411
|
},
|
|
10099
10412
|
editEvent: function() {
|
|
10100
10413
|
var _a;
|
|
10414
|
+
if (validateAndShowErrors(store2))
|
|
10415
|
+
return;
|
|
10101
10416
|
const rowId = dynamicData2.path.split(".")[1];
|
|
10102
10417
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10103
10418
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
@@ -10188,6 +10503,44 @@ const downloadFileFromUrl = (response, service2) => {
|
|
|
10188
10503
|
link.click();
|
|
10189
10504
|
link.parentNode.removeChild(link);
|
|
10190
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
|
+
};
|
|
10191
10544
|
const executeEvents = (params2) => {
|
|
10192
10545
|
var _a, _b, _c;
|
|
10193
10546
|
let nextEvent = [];
|
|
@@ -10309,10 +10662,13 @@ function executeInBuiltFunctionHandler(params) {
|
|
|
10309
10662
|
let parameter = {};
|
|
10310
10663
|
if (params.config.funcParametersCode) {
|
|
10311
10664
|
const makeFunc = eval(params.config.funcParametersCode);
|
|
10312
|
-
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
10313
|
-
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
|
+
);
|
|
10314
10670
|
} else {
|
|
10315
|
-
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);
|
|
10316
10672
|
}
|
|
10317
10673
|
}
|
|
10318
10674
|
function executeCustomHandler(params) {
|
|
@@ -10516,7 +10872,7 @@ var service = (funcParams) => {
|
|
|
10516
10872
|
dynamicData: funcParams.dynamicData,
|
|
10517
10873
|
userValue: funcParams.userValue,
|
|
10518
10874
|
service: funcParams.service,
|
|
10519
|
-
serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
|
|
10875
|
+
serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, downloadFileStream, ...funcParams.functionsProvider },
|
|
10520
10876
|
eventGroups,
|
|
10521
10877
|
functionsProvider: funcParams.functionsProvider,
|
|
10522
10878
|
formDataHolder
|
|
@@ -10533,7 +10889,7 @@ var service = (funcParams) => {
|
|
|
10533
10889
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10534
10890
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10535
10891
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10536
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10892
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10537
10893
|
});
|
|
10538
10894
|
window.dispatchEvent(event2);
|
|
10539
10895
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10576,6 +10932,25 @@ var service = (funcParams) => {
|
|
|
10576
10932
|
funcParams.store.setUiSchema(uiSchema);
|
|
10577
10933
|
});
|
|
10578
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
|
+
},
|
|
10579
10954
|
onCellRenderer: (cellParams) => {
|
|
10580
10955
|
var _a, _b, _c, _d, _e;
|
|
10581
10956
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10605,6 +10980,9 @@ var service = (funcParams) => {
|
|
|
10605
10980
|
onFileDelete: async function() {
|
|
10606
10981
|
this.callHandler("onFileDelete");
|
|
10607
10982
|
},
|
|
10983
|
+
onClose: function() {
|
|
10984
|
+
this.callHandler("onClose");
|
|
10985
|
+
},
|
|
10608
10986
|
onMount: function() {
|
|
10609
10987
|
this.callHandler("onMount");
|
|
10610
10988
|
},
|
|
@@ -10628,14 +11006,15 @@ var service = (funcParams) => {
|
|
|
10628
11006
|
return response == null ? void 0 : response.data;
|
|
10629
11007
|
},
|
|
10630
11008
|
onPaginationChange: async function(paginationValues) {
|
|
10631
|
-
var _a
|
|
11009
|
+
var _a;
|
|
10632
11010
|
const apiBody = [
|
|
10633
11011
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10634
11012
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10635
11013
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10636
11014
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10637
11015
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10638
|
-
{ key: "
|
|
11016
|
+
{ key: "parentIds", value: paginationValues.parentIds },
|
|
11017
|
+
{ key: "isExpandAll", value: paginationValues.isExpandAll }
|
|
10639
11018
|
];
|
|
10640
11019
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10641
11020
|
return response == null ? void 0 : response.data;
|
|
@@ -10655,8 +11034,8 @@ var service = (funcParams) => {
|
|
|
10655
11034
|
return;
|
|
10656
11035
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10657
11036
|
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10658
|
-
var _a
|
|
10659
|
-
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]) {
|
|
10660
11039
|
return [];
|
|
10661
11040
|
}
|
|
10662
11041
|
return eventGroups.onChange[componentName].map(
|
|
@@ -10755,6 +11134,7 @@ var service = (funcParams) => {
|
|
|
10755
11134
|
},
|
|
10756
11135
|
downloadFile: downloadFile$1,
|
|
10757
11136
|
downloadFileFromUrl,
|
|
11137
|
+
downloadFileStream,
|
|
10758
11138
|
...funcParams.functionsProvider
|
|
10759
11139
|
};
|
|
10760
11140
|
};
|
|
@@ -10891,7 +11271,7 @@ const BarGraph = {
|
|
|
10891
11271
|
type: "BarGraph",
|
|
10892
11272
|
legendLabels: null
|
|
10893
11273
|
},
|
|
10894
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11274
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10895
11275
|
}
|
|
10896
11276
|
};
|
|
10897
11277
|
const PieGraph = {
|
|
@@ -10906,7 +11286,7 @@ const PieGraph = {
|
|
|
10906
11286
|
type: "PieGraph",
|
|
10907
11287
|
legendLabels: null
|
|
10908
11288
|
},
|
|
10909
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11289
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10910
11290
|
}
|
|
10911
11291
|
};
|
|
10912
11292
|
const LineGraph = {
|
|
@@ -10921,7 +11301,7 @@ const LineGraph = {
|
|
|
10921
11301
|
type: "LineGraph",
|
|
10922
11302
|
legendLabels: null
|
|
10923
11303
|
},
|
|
10924
|
-
style: { containerStyle: {}, labelStyle: { margin: {} }
|
|
11304
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
10925
11305
|
}
|
|
10926
11306
|
};
|
|
10927
11307
|
const HorizontalBarGraph = {
|
|
@@ -10936,7 +11316,37 @@ const HorizontalBarGraph = {
|
|
|
10936
11316
|
type: "HorizontalBarGraph",
|
|
10937
11317
|
legendLabels: null
|
|
10938
11318
|
},
|
|
10939
|
-
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: {} } }
|
|
10940
11350
|
}
|
|
10941
11351
|
};
|
|
10942
11352
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
@@ -10955,13 +11365,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10955
11365
|
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10956
11366
|
}
|
|
10957
11367
|
if (config2.legendLabels) {
|
|
10958
|
-
horizontalBarGraph.config.main.legendLabels =
|
|
11368
|
+
horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
10959
11369
|
}
|
|
10960
11370
|
if (config2.legendDirection) {
|
|
10961
11371
|
horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
10962
11372
|
}
|
|
10963
11373
|
if (config2.pieArcColors) {
|
|
10964
|
-
horizontalBarGraph.config.style.
|
|
11374
|
+
horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
10965
11375
|
}
|
|
10966
11376
|
if (config2.xAxisValue) {
|
|
10967
11377
|
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11095,13 +11505,13 @@ const buildPieGraph = (config2, componentScope2) => {
|
|
|
11095
11505
|
pieGraph.scope = componentScope2;
|
|
11096
11506
|
pieGraph.config.main.header = config2.heading;
|
|
11097
11507
|
if (config2.legendLabels) {
|
|
11098
|
-
pieGraph.config.main.legendLabels =
|
|
11508
|
+
pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11099
11509
|
}
|
|
11100
11510
|
if (config2.xAxisValue) {
|
|
11101
11511
|
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11102
11512
|
}
|
|
11103
11513
|
if (config2.pieArcColors) {
|
|
11104
|
-
pieGraph.config.style.
|
|
11514
|
+
pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11105
11515
|
}
|
|
11106
11516
|
return pieGraph;
|
|
11107
11517
|
};
|
|
@@ -11124,10 +11534,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
11124
11534
|
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
11125
11535
|
barGraph.config.main.header = config2.heading;
|
|
11126
11536
|
if (config2.legendLabels) {
|
|
11127
|
-
barGraph.config.main.legendLabels =
|
|
11537
|
+
barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
11128
11538
|
}
|
|
11129
11539
|
if (config2.pieArcColors) {
|
|
11130
|
-
barGraph.config.style.
|
|
11540
|
+
barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
11131
11541
|
}
|
|
11132
11542
|
if (config2.xAxisValue) {
|
|
11133
11543
|
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
@@ -11193,6 +11603,7 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11193
11603
|
}
|
|
11194
11604
|
if (config2.sectionLabels) {
|
|
11195
11605
|
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
11606
|
+
tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
|
|
11196
11607
|
}
|
|
11197
11608
|
if (config2.style) {
|
|
11198
11609
|
tab.config.style = JSON.parse(config2.style);
|
|
@@ -11205,9 +11616,11 @@ var WrapperSection = {
|
|
|
11205
11616
|
config: {
|
|
11206
11617
|
layout: 12,
|
|
11207
11618
|
main: {
|
|
11208
|
-
rowSpacing: 3,
|
|
11209
11619
|
divider: true,
|
|
11210
|
-
label: "Default Label"
|
|
11620
|
+
label: "Default Label",
|
|
11621
|
+
rowSpacing: 2,
|
|
11622
|
+
columnSpacing: 2,
|
|
11623
|
+
spacing: 2
|
|
11211
11624
|
},
|
|
11212
11625
|
defaultStyle: true
|
|
11213
11626
|
},
|
|
@@ -11220,6 +11633,10 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11220
11633
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11221
11634
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11222
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);
|
|
11223
11640
|
if (config2.defaultStyle) {
|
|
11224
11641
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11225
11642
|
}
|
|
@@ -11269,6 +11686,15 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11269
11686
|
if (config2.layout) {
|
|
11270
11687
|
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11271
11688
|
}
|
|
11689
|
+
if (config2.toolTip) {
|
|
11690
|
+
inputField.config.main.toolTip = config2.toolTip;
|
|
11691
|
+
}
|
|
11692
|
+
if (config2.toolTipPosition) {
|
|
11693
|
+
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11694
|
+
}
|
|
11695
|
+
if (config2.iconName) {
|
|
11696
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11697
|
+
}
|
|
11272
11698
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11273
11699
|
inputField.scope = componentScope2;
|
|
11274
11700
|
return inputField;
|
|
@@ -11285,7 +11711,8 @@ var SelectInputField = {
|
|
|
11285
11711
|
label: "",
|
|
11286
11712
|
type: "text",
|
|
11287
11713
|
freeSole: false
|
|
11288
|
-
}
|
|
11714
|
+
},
|
|
11715
|
+
style: {}
|
|
11289
11716
|
}
|
|
11290
11717
|
};
|
|
11291
11718
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11306,6 +11733,15 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11306
11733
|
if (config2.layout) {
|
|
11307
11734
|
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11308
11735
|
}
|
|
11736
|
+
if (config2.toolTip) {
|
|
11737
|
+
selectInputField.config.main.toolTip = config2.toolTip;
|
|
11738
|
+
}
|
|
11739
|
+
if (config2.toolTipPosition) {
|
|
11740
|
+
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11741
|
+
}
|
|
11742
|
+
if (config2.style) {
|
|
11743
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11744
|
+
}
|
|
11309
11745
|
selectInputField.scope = componentScope2;
|
|
11310
11746
|
return selectInputField;
|
|
11311
11747
|
};
|
|
@@ -11413,9 +11849,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11413
11849
|
if (config2.paginateExpandedRows) {
|
|
11414
11850
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11415
11851
|
}
|
|
11416
|
-
if (config2.treeStructure) {
|
|
11417
|
-
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11418
|
-
}
|
|
11419
11852
|
if (config2.SelectionAvailable) {
|
|
11420
11853
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11421
11854
|
}
|
|
@@ -11478,7 +11911,8 @@ const Box = {
|
|
|
11478
11911
|
config: {
|
|
11479
11912
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11480
11913
|
main: {
|
|
11481
|
-
iconName: ""
|
|
11914
|
+
iconName: "",
|
|
11915
|
+
onClick: "onClick"
|
|
11482
11916
|
},
|
|
11483
11917
|
style: {}
|
|
11484
11918
|
}
|
|
@@ -11547,6 +11981,12 @@ const buildUploadFile = (config2, componentScope2) => {
|
|
|
11547
11981
|
if (config2.required) {
|
|
11548
11982
|
UploadFile.config.main.required = true;
|
|
11549
11983
|
}
|
|
11984
|
+
if (config2.toolTip) {
|
|
11985
|
+
UploadFile.config.main.toolTip = config2.toolTip;
|
|
11986
|
+
}
|
|
11987
|
+
if (config2.toolTipPosition) {
|
|
11988
|
+
UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11989
|
+
}
|
|
11550
11990
|
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
11551
11991
|
return UploadFile;
|
|
11552
11992
|
};
|
|
@@ -11569,6 +12009,12 @@ const buildDownloadFile = (config2, componentScope2) => {
|
|
|
11569
12009
|
if (config2.errorMessage) {
|
|
11570
12010
|
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
11571
12011
|
}
|
|
12012
|
+
if (config2.toolTip) {
|
|
12013
|
+
DownloadFile.config.main.toolTip = config2.toolTip;
|
|
12014
|
+
}
|
|
12015
|
+
if (config2.toolTipPosition) {
|
|
12016
|
+
DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12017
|
+
}
|
|
11572
12018
|
return DownloadFile;
|
|
11573
12019
|
};
|
|
11574
12020
|
function Card(theme) {
|
|
@@ -11761,6 +12207,46 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11761
12207
|
}
|
|
11762
12208
|
return card;
|
|
11763
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
|
+
};
|
|
11764
12250
|
var DateInputField = {
|
|
11765
12251
|
type: "Control",
|
|
11766
12252
|
scope: "#/properties/date",
|
|
@@ -11792,7 +12278,6 @@ const DateTime = {
|
|
|
11792
12278
|
const buildDate = (config2, componentScope2) => {
|
|
11793
12279
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11794
12280
|
dateInputField.config.main.label = config2.label;
|
|
11795
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11796
12281
|
dateInputField.scope = componentScope2;
|
|
11797
12282
|
if (config2.layout) {
|
|
11798
12283
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11800,12 +12285,20 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11800
12285
|
if (config2.variant) {
|
|
11801
12286
|
dateInputField.config.main.variant = config2.variant;
|
|
11802
12287
|
}
|
|
12288
|
+
if (config2.toolTip) {
|
|
12289
|
+
dateInputField.config.main.toolTip = config2.toolTip;
|
|
12290
|
+
}
|
|
12291
|
+
if (config2.toolTipPosition) {
|
|
12292
|
+
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12293
|
+
}
|
|
12294
|
+
if (config2.style) {
|
|
12295
|
+
dateInputField.config.style = JSON.parse(config2.style);
|
|
12296
|
+
}
|
|
11803
12297
|
return dateInputField;
|
|
11804
12298
|
};
|
|
11805
12299
|
const buildDateTime = (config2, componentScope2) => {
|
|
11806
12300
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11807
12301
|
dateTimeInputField.config.main.label = config2.label;
|
|
11808
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11809
12302
|
dateTimeInputField.scope = componentScope2;
|
|
11810
12303
|
if (config2.layout) {
|
|
11811
12304
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -11813,6 +12306,15 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11813
12306
|
if (config2.variant) {
|
|
11814
12307
|
dateTimeInputField.config.main.variant = config2.variant;
|
|
11815
12308
|
}
|
|
12309
|
+
if (config2.toolTip) {
|
|
12310
|
+
dateTimeInputField.config.main.toolTip = config2.toolTip;
|
|
12311
|
+
}
|
|
12312
|
+
if (config2.toolTipPosition) {
|
|
12313
|
+
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12314
|
+
}
|
|
12315
|
+
if (config2.style) {
|
|
12316
|
+
dateTimeInputField.config.style = JSON.parse(config2.style);
|
|
12317
|
+
}
|
|
11816
12318
|
return dateTimeInputField;
|
|
11817
12319
|
};
|
|
11818
12320
|
var RankCard = {
|
|
@@ -11903,7 +12405,8 @@ var MultipleSelect = {
|
|
|
11903
12405
|
multiple: true,
|
|
11904
12406
|
variant: "outlined",
|
|
11905
12407
|
options: []
|
|
11906
|
-
}
|
|
12408
|
+
},
|
|
12409
|
+
style: {}
|
|
11907
12410
|
}
|
|
11908
12411
|
};
|
|
11909
12412
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -11924,6 +12427,15 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
11924
12427
|
if (config2.lazyLoading) {
|
|
11925
12428
|
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11926
12429
|
}
|
|
12430
|
+
if (config2.toolTip) {
|
|
12431
|
+
multipleSelect.config.main.toolTip = config2.toolTip;
|
|
12432
|
+
}
|
|
12433
|
+
if (config2.toolTipPosition) {
|
|
12434
|
+
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12435
|
+
}
|
|
12436
|
+
if (config2.style) {
|
|
12437
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12438
|
+
}
|
|
11927
12439
|
return multipleSelect;
|
|
11928
12440
|
};
|
|
11929
12441
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -12070,10 +12582,10 @@ const buildLineGraph = (config2, componentScope2) => {
|
|
|
12070
12582
|
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
12071
12583
|
}
|
|
12072
12584
|
if (config2.legendLabels) {
|
|
12073
|
-
lineGraph.config.main.legendLabels =
|
|
12585
|
+
lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
12074
12586
|
}
|
|
12075
12587
|
if (config2.pieArcColors) {
|
|
12076
|
-
lineGraph.config.style.
|
|
12588
|
+
lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
12077
12589
|
}
|
|
12078
12590
|
lineGraph.scope = componentScope2;
|
|
12079
12591
|
return lineGraph;
|
|
@@ -12108,6 +12620,12 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
12108
12620
|
if (config2.errorMessage) {
|
|
12109
12621
|
Radio.config.main.errorMessage = config2.errorMessage;
|
|
12110
12622
|
}
|
|
12623
|
+
if (config2.toolTip) {
|
|
12624
|
+
Radio.config.main.toolTip = config2.toolTip;
|
|
12625
|
+
}
|
|
12626
|
+
if (config2.toolTipPosition) {
|
|
12627
|
+
Radio.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12628
|
+
}
|
|
12111
12629
|
return Radio;
|
|
12112
12630
|
};
|
|
12113
12631
|
var emptyBox = {
|
|
@@ -12156,7 +12674,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12156
12674
|
if (config2.style) {
|
|
12157
12675
|
array.config.style = JSON.parse(config2.style);
|
|
12158
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);
|
|
12159
12680
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12681
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12160
12682
|
array.config.main.label = config2.label;
|
|
12161
12683
|
array.scope = componentScope2;
|
|
12162
12684
|
return array;
|
|
@@ -12231,7 +12753,8 @@ const FileInput = {
|
|
|
12231
12753
|
required: false,
|
|
12232
12754
|
onUpload: "onFileUpload",
|
|
12233
12755
|
onDownload: "onFileDownload",
|
|
12234
|
-
label: "Aggrement Copy"
|
|
12756
|
+
label: "Aggrement Copy",
|
|
12757
|
+
"onClick": "onClick"
|
|
12235
12758
|
},
|
|
12236
12759
|
style: {
|
|
12237
12760
|
backgroundColor: "none"
|
|
@@ -12248,21 +12771,19 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12248
12771
|
if (config2.style) {
|
|
12249
12772
|
box.config.style = JSON.parse(config2.style);
|
|
12250
12773
|
}
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
if (config2.
|
|
12261
|
-
box.config.main.
|
|
12262
|
-
}
|
|
12263
|
-
|
|
12264
|
-
box.config.main.description = config2.description;
|
|
12265
|
-
}
|
|
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;
|
|
12783
|
+
if (config2.toolTipPosition) {
|
|
12784
|
+
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12785
|
+
}
|
|
12786
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12266
12787
|
return box;
|
|
12267
12788
|
};
|
|
12268
12789
|
const Stepper = {
|
|
@@ -12319,6 +12840,7 @@ const PopUP = {
|
|
|
12319
12840
|
},
|
|
12320
12841
|
main: {
|
|
12321
12842
|
label: "PopUp",
|
|
12843
|
+
onClose: "onClose",
|
|
12322
12844
|
fullScreen: false,
|
|
12323
12845
|
fullWidth: false,
|
|
12324
12846
|
maxWidth: false,
|
|
@@ -12542,7 +13064,8 @@ const imageUiSchema = {
|
|
|
12542
13064
|
config: {
|
|
12543
13065
|
layout: 3,
|
|
12544
13066
|
main: {
|
|
12545
|
-
url: ""
|
|
13067
|
+
url: "",
|
|
13068
|
+
onClick: "onClick"
|
|
12546
13069
|
},
|
|
12547
13070
|
style: {}
|
|
12548
13071
|
}
|
|
@@ -12560,8 +13083,134 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12560
13083
|
if (config2.height) {
|
|
12561
13084
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12562
13085
|
}
|
|
13086
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13087
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12563
13088
|
return image;
|
|
12564
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
|
+
};
|
|
12565
13214
|
const cameraUiSchema = {
|
|
12566
13215
|
type: "Control",
|
|
12567
13216
|
scope: "#/properties/camera",
|
|
@@ -12588,6 +13237,7 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
12588
13237
|
if (config2.tooltipMessage) {
|
|
12589
13238
|
camera.config.main.tooltipMessage = config2.tooltipMessage;
|
|
12590
13239
|
}
|
|
13240
|
+
camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
|
|
12591
13241
|
if (config2.style) {
|
|
12592
13242
|
camera.config.style = JSON.parse(config2.style);
|
|
12593
13243
|
}
|
|
@@ -12601,10 +13251,149 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
12601
13251
|
camera.config.main.color = config2.color;
|
|
12602
13252
|
}
|
|
12603
13253
|
if (config2.label) {
|
|
12604
|
-
camera.config.main.
|
|
13254
|
+
camera.config.main.label = config2.label;
|
|
12605
13255
|
}
|
|
12606
13256
|
return camera;
|
|
12607
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
|
+
};
|
|
12608
13397
|
let schema = {
|
|
12609
13398
|
type: "object",
|
|
12610
13399
|
properties: {},
|
|
@@ -12675,6 +13464,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12675
13464
|
let elements = {};
|
|
12676
13465
|
const componentScope2 = `#/properties/${config2.name}`;
|
|
12677
13466
|
switch (config2.type) {
|
|
13467
|
+
case "OTP_Input":
|
|
13468
|
+
elements = buildOTP_Input(config2, componentScope2);
|
|
13469
|
+
break;
|
|
12678
13470
|
case "TreeMap":
|
|
12679
13471
|
elements = buildTreeMap(config2, componentScope2);
|
|
12680
13472
|
break;
|
|
@@ -12693,6 +13485,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12693
13485
|
case "PopUp":
|
|
12694
13486
|
elements = buildPopUp(config2, componentScope2);
|
|
12695
13487
|
break;
|
|
13488
|
+
case "PopOver":
|
|
13489
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13490
|
+
break;
|
|
12696
13491
|
case "FileInput":
|
|
12697
13492
|
elements = buildFileInput(config2, componentScope2);
|
|
12698
13493
|
break;
|
|
@@ -12732,6 +13527,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12732
13527
|
case "Button":
|
|
12733
13528
|
elements = buildButton(config2, componentScope2);
|
|
12734
13529
|
break;
|
|
13530
|
+
case "ButtonGroup":
|
|
13531
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13532
|
+
break;
|
|
12735
13533
|
case "Table":
|
|
12736
13534
|
elements = buildTable(config2, componentScope2);
|
|
12737
13535
|
break;
|
|
@@ -12756,6 +13554,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12756
13554
|
case "card":
|
|
12757
13555
|
elements = buildCard(config2, componentScope2, store2);
|
|
12758
13556
|
break;
|
|
13557
|
+
case "MetricCard":
|
|
13558
|
+
elements = buildMetricCard(config2, componentScope2);
|
|
13559
|
+
break;
|
|
12759
13560
|
case "Graph":
|
|
12760
13561
|
switch (config2.graphType) {
|
|
12761
13562
|
case "BarGraph":
|
|
@@ -12772,6 +13573,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12772
13573
|
case "HorizontalStackBarGraph":
|
|
12773
13574
|
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12774
13575
|
break;
|
|
13576
|
+
case "AreaGraph":
|
|
13577
|
+
elements = buildAreaGraph(config2, componentScope2);
|
|
13578
|
+
break;
|
|
13579
|
+
case "StackBarLineGraph":
|
|
13580
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13581
|
+
break;
|
|
12775
13582
|
default:
|
|
12776
13583
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
12777
13584
|
break;
|
|
@@ -12820,6 +13627,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12820
13627
|
case "Camera":
|
|
12821
13628
|
elements = buildCamera(config2, componentScope2);
|
|
12822
13629
|
break;
|
|
13630
|
+
case "PdfViewer":
|
|
13631
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13632
|
+
break;
|
|
12823
13633
|
default:
|
|
12824
13634
|
schema = {
|
|
12825
13635
|
type: "object",
|
|
@@ -12923,7 +13733,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12923
13733
|
});
|
|
12924
13734
|
}
|
|
12925
13735
|
}
|
|
13736
|
+
if (config2.tabLabelElements) {
|
|
13737
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13738
|
+
return buildUiSchema(e, store2);
|
|
13739
|
+
});
|
|
13740
|
+
}
|
|
12926
13741
|
return elements;
|
|
12927
13742
|
};
|
|
12928
|
-
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 };
|
|
12929
13744
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|