impaktapps-ui-builder 1.0.280 → 1.0.301
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 +92 -80
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/{hierarchyChart.d.ts → pdfViewer.d.ts} +4 -7
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -1
- package/package.json +1 -1
- 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/buildFileInput.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +19 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -4
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +29 -21
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -8
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +101 -102
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -8
- package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +0 -38
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +0 -13
|
@@ -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",
|
|
@@ -6256,7 +6272,6 @@ const ComponentSchema = {
|
|
|
6256
6272
|
{ title: "Rank", const: "Rank" },
|
|
6257
6273
|
{ title: "Rank Card", const: "RankCard" },
|
|
6258
6274
|
{ title: "Metric Card", const: "MetricCard" },
|
|
6259
|
-
{ title: "Hierarchy Chart", const: "HierarchyChart" },
|
|
6260
6275
|
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6261
6276
|
{ title: "Table", const: "Table" },
|
|
6262
6277
|
{ title: "Tabs", const: "TabSection" },
|
|
@@ -6265,7 +6280,8 @@ const ComponentSchema = {
|
|
|
6265
6280
|
{ title: "Timer", const: "Timer" },
|
|
6266
6281
|
{ title: "Upload", const: "UploadFile" },
|
|
6267
6282
|
{ title: "Tree ", const: "TreeMap" },
|
|
6268
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6283
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6284
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6269
6285
|
]
|
|
6270
6286
|
},
|
|
6271
6287
|
elementType: {
|
|
@@ -6319,13 +6335,6 @@ const ComponentSchema = {
|
|
|
6319
6335
|
{ title: "Standard", const: "standard" }
|
|
6320
6336
|
]
|
|
6321
6337
|
},
|
|
6322
|
-
linkType: {
|
|
6323
|
-
oneOf: [
|
|
6324
|
-
{ title: "Step", const: "step" },
|
|
6325
|
-
{ title: "Diagonal", const: "diagonal" },
|
|
6326
|
-
{ title: "Line", const: "line" }
|
|
6327
|
-
]
|
|
6328
|
-
},
|
|
6329
6338
|
positionVertical: {
|
|
6330
6339
|
oneOf: [
|
|
6331
6340
|
{ title: "Top", const: "top" },
|
|
@@ -7996,6 +8005,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7996
8005
|
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
7997
8006
|
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7998
8007
|
getInputField("childElementLabel", "Child Element Label"),
|
|
8008
|
+
getInputField("showKeyAsLabel", "ShowKey As Label"),
|
|
8009
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8010
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8011
|
+
getInputField("spacing", "Spacing"),
|
|
7999
8012
|
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
8000
8013
|
];
|
|
8001
8014
|
break;
|
|
@@ -8136,18 +8149,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8136
8149
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
8137
8150
|
];
|
|
8138
8151
|
break;
|
|
8139
|
-
case "HierarchyChart":
|
|
8140
|
-
uiSchema.elements = [
|
|
8141
|
-
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8142
|
-
getSelectField("linkType", "Link Type"),
|
|
8143
|
-
getInputField("nodeWidth", "Node Width"),
|
|
8144
|
-
getInputField("nodeHeight", "Node Height"),
|
|
8145
|
-
getRadioInputField("isExpandAll", "Expand All", ["YES", "NO"]),
|
|
8146
|
-
getInputField("chartHeight", "Chart Height"),
|
|
8147
|
-
getInputField("stepPercent", "Link Bend Position"),
|
|
8148
|
-
emptyBox$1("HierarchyChart", { xs: 6, sm: 6, md: 0, lg: 3 })
|
|
8149
|
-
];
|
|
8150
|
-
break;
|
|
8151
8152
|
case "MetricCard":
|
|
8152
8153
|
uiSchema.elements = [
|
|
8153
8154
|
getInputField("url", "Image Url"),
|
|
@@ -8156,7 +8157,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8156
8157
|
getInputField("description", "Description"),
|
|
8157
8158
|
getSelectField("growthRate", "Growth Rate"),
|
|
8158
8159
|
getInputField("color", "Card Color"),
|
|
8159
|
-
emptyBox$1("MetricEmpty1", { xs: 6, sm:
|
|
8160
|
+
emptyBox$1("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 })
|
|
8160
8161
|
];
|
|
8161
8162
|
break;
|
|
8162
8163
|
case "Button":
|
|
@@ -8213,10 +8214,11 @@ const buildPropertiesSection = function(type) {
|
|
|
8213
8214
|
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
8214
8215
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8215
8216
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8216
|
-
getInputField("rowSpacing", "Row Spacing"),
|
|
8217
8217
|
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8218
|
-
|
|
8219
|
-
|
|
8218
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8219
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8220
|
+
getInputField("spacing", "Spacing"),
|
|
8221
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
|
|
8220
8222
|
];
|
|
8221
8223
|
break;
|
|
8222
8224
|
case "TabSection":
|
|
@@ -8288,6 +8290,14 @@ const buildPropertiesSection = function(type) {
|
|
|
8288
8290
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8289
8291
|
];
|
|
8290
8292
|
break;
|
|
8293
|
+
case "PdfViewer":
|
|
8294
|
+
uiSchema.elements = [
|
|
8295
|
+
getInputField("title", "title"),
|
|
8296
|
+
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
8297
|
+
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
8298
|
+
getInputField("maxWidth", "Max. Width")
|
|
8299
|
+
];
|
|
8300
|
+
break;
|
|
8291
8301
|
case "Date":
|
|
8292
8302
|
uiSchema.elements = [
|
|
8293
8303
|
getSelectField("variant", "Variant"),
|
|
@@ -8313,6 +8323,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8313
8323
|
uiSchema.elements = [
|
|
8314
8324
|
getInputField("imageUrl", "Image URL"),
|
|
8315
8325
|
getInputField("height", "Image Height"),
|
|
8326
|
+
getInputField("toolTip", "Tooltip"),
|
|
8327
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8316
8328
|
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8317
8329
|
];
|
|
8318
8330
|
break;
|
|
@@ -8327,7 +8339,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8327
8339
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8328
8340
|
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
8329
8341
|
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8330
|
-
|
|
8342
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8343
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8344
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8331
8345
|
];
|
|
8332
8346
|
break;
|
|
8333
8347
|
case "Camera":
|
|
@@ -8848,18 +8862,18 @@ const sectionLabels = {
|
|
|
8848
8862
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8849
8863
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8850
8864
|
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8851
|
-
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8852
8865
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8853
8866
|
Timer: ["Core", "Events", "Style"],
|
|
8854
8867
|
Rank: ["Core", "Events", "Style"],
|
|
8855
8868
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8856
8869
|
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8857
|
-
Array: ["Core", "Components", "Properties", "Events", "Validation"],
|
|
8870
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8858
8871
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8859
8872
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8860
8873
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8861
8874
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8862
8875
|
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8876
|
+
PdfViewer: ["Core", "Components", "Properties", "Style"],
|
|
8863
8877
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8864
8878
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8865
8879
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8868,7 +8882,7 @@ const sectionLabels = {
|
|
|
8868
8882
|
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8869
8883
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8870
8884
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8871
|
-
Image: ["Core", "Properties", "Style"],
|
|
8885
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8872
8886
|
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8873
8887
|
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8874
8888
|
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
@@ -10786,7 +10800,7 @@ var service = (funcParams) => {
|
|
|
10786
10800
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10787
10801
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10788
10802
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10789
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10803
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10790
10804
|
});
|
|
10791
10805
|
window.dispatchEvent(event2);
|
|
10792
10806
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10893,13 +10907,6 @@ var service = (funcParams) => {
|
|
|
10893
10907
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10894
10908
|
return response == null ? void 0 : response.data;
|
|
10895
10909
|
},
|
|
10896
|
-
onNodeExpandChange: async function(param) {
|
|
10897
|
-
const apiBody = [
|
|
10898
|
-
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
10899
|
-
];
|
|
10900
|
-
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10901
|
-
return response == null ? void 0 : response.data;
|
|
10902
|
-
},
|
|
10903
10910
|
getSelectOptions: async function(param) {
|
|
10904
10911
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10905
10912
|
const apiBody = [
|
|
@@ -11481,9 +11488,11 @@ var WrapperSection = {
|
|
|
11481
11488
|
config: {
|
|
11482
11489
|
layout: 12,
|
|
11483
11490
|
main: {
|
|
11484
|
-
rowSpacing: 3,
|
|
11485
11491
|
divider: true,
|
|
11486
|
-
label: "Default Label"
|
|
11492
|
+
label: "Default Label",
|
|
11493
|
+
rowSpacing: 2,
|
|
11494
|
+
columnSpacing: 2,
|
|
11495
|
+
spacing: 2
|
|
11487
11496
|
},
|
|
11488
11497
|
defaultStyle: true
|
|
11489
11498
|
},
|
|
@@ -11496,6 +11505,9 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11496
11505
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11497
11506
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11498
11507
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11508
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11509
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11510
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11499
11511
|
if (config2.defaultStyle) {
|
|
11500
11512
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11501
11513
|
}
|
|
@@ -11770,7 +11782,8 @@ const Box = {
|
|
|
11770
11782
|
config: {
|
|
11771
11783
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11772
11784
|
main: {
|
|
11773
|
-
iconName: ""
|
|
11785
|
+
iconName: "",
|
|
11786
|
+
onClick: "onClick"
|
|
11774
11787
|
},
|
|
11775
11788
|
style: {}
|
|
11776
11789
|
}
|
|
@@ -12534,7 +12547,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12534
12547
|
if (config2.style) {
|
|
12535
12548
|
array.config.style = JSON.parse(config2.style);
|
|
12536
12549
|
}
|
|
12550
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12551
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12552
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12537
12553
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12554
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12538
12555
|
array.config.main.label = config2.label;
|
|
12539
12556
|
array.scope = componentScope2;
|
|
12540
12557
|
return array;
|
|
@@ -12609,7 +12626,8 @@ const FileInput = {
|
|
|
12609
12626
|
required: false,
|
|
12610
12627
|
onUpload: "onFileUpload",
|
|
12611
12628
|
onDownload: "onFileDownload",
|
|
12612
|
-
label: "Aggrement Copy"
|
|
12629
|
+
label: "Aggrement Copy",
|
|
12630
|
+
"onClick": "onClick"
|
|
12613
12631
|
},
|
|
12614
12632
|
style: {
|
|
12615
12633
|
backgroundColor: "none"
|
|
@@ -12630,6 +12648,7 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12630
12648
|
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12631
12649
|
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12632
12650
|
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12651
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12633
12652
|
box.config.main.description = config2.description;
|
|
12634
12653
|
box.config.main.toolTip = config2.toolTip;
|
|
12635
12654
|
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
@@ -12637,6 +12656,7 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12637
12656
|
if (config2.toolTipPosition) {
|
|
12638
12657
|
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12639
12658
|
}
|
|
12659
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12640
12660
|
return box;
|
|
12641
12661
|
};
|
|
12642
12662
|
const Stepper = {
|
|
@@ -12916,7 +12936,8 @@ const imageUiSchema = {
|
|
|
12916
12936
|
config: {
|
|
12917
12937
|
layout: 3,
|
|
12918
12938
|
main: {
|
|
12919
|
-
url: ""
|
|
12939
|
+
url: "",
|
|
12940
|
+
onClick: "onClick"
|
|
12920
12941
|
},
|
|
12921
12942
|
style: {}
|
|
12922
12943
|
}
|
|
@@ -12934,6 +12955,8 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12934
12955
|
if (config2.height) {
|
|
12935
12956
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12936
12957
|
}
|
|
12958
|
+
image.config.main.toolTip = config2.toolTip;
|
|
12959
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12937
12960
|
return image;
|
|
12938
12961
|
};
|
|
12939
12962
|
const buildAreaGraph = (config2, componentScope2) => {
|
|
@@ -13035,7 +13058,7 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
13035
13058
|
camera.config.main.color = config2.color;
|
|
13036
13059
|
}
|
|
13037
13060
|
if (config2.label) {
|
|
13038
|
-
camera.config.main.
|
|
13061
|
+
camera.config.main.label = config2.label;
|
|
13039
13062
|
}
|
|
13040
13063
|
return camera;
|
|
13041
13064
|
};
|
|
@@ -13148,49 +13171,38 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13148
13171
|
OTP.config.main.length = +config2.length;
|
|
13149
13172
|
return OTP;
|
|
13150
13173
|
};
|
|
13151
|
-
|
|
13174
|
+
var pdfViewer = {
|
|
13152
13175
|
type: "Control",
|
|
13153
|
-
scope: "#/properties/
|
|
13176
|
+
scope: "#/properties/pdfviewer",
|
|
13154
13177
|
options: {
|
|
13155
|
-
widget: "
|
|
13178
|
+
widget: "PdfViewer"
|
|
13156
13179
|
},
|
|
13157
13180
|
config: {
|
|
13158
|
-
layout: {
|
|
13159
|
-
|
|
13160
|
-
|
|
13181
|
+
layout: {
|
|
13182
|
+
xs: 12,
|
|
13183
|
+
sm: 12,
|
|
13184
|
+
md: 12,
|
|
13185
|
+
lg: 12
|
|
13186
|
+
},
|
|
13187
|
+
main: {
|
|
13188
|
+
title: "PDF"
|
|
13189
|
+
}
|
|
13161
13190
|
}
|
|
13162
13191
|
};
|
|
13163
|
-
const
|
|
13164
|
-
const
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13192
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13193
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13194
|
+
PdfViewer.scope = componentScope2;
|
|
13195
|
+
PdfViewer.config.main.title = config2.label;
|
|
13196
|
+
PdfViewer.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
|
|
13197
|
+
PdfViewer.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
|
|
13198
|
+
PdfViewer.config.main.maxWidth = config2.maxWidth || false;
|
|
13169
13199
|
if (config2.layout) {
|
|
13170
|
-
|
|
13171
|
-
}
|
|
13172
|
-
if (config2.linkType) {
|
|
13173
|
-
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13174
|
-
}
|
|
13175
|
-
if (config2.stepPercent) {
|
|
13176
|
-
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13177
|
-
}
|
|
13178
|
-
if (config2.nodeWidth) {
|
|
13179
|
-
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13200
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13180
13201
|
}
|
|
13181
|
-
if (config2.
|
|
13182
|
-
|
|
13183
|
-
}
|
|
13184
|
-
if (config2.chartHeight) {
|
|
13185
|
-
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13186
|
-
}
|
|
13187
|
-
if (config2.lazyLoading) {
|
|
13188
|
-
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13189
|
-
}
|
|
13190
|
-
if (config2.isExpandAll) {
|
|
13191
|
-
hierarchyChart.config.main.isExpandAll = config2.isExpandAll === "YES" ? true : false;
|
|
13202
|
+
if (config2.style) {
|
|
13203
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13192
13204
|
}
|
|
13193
|
-
return
|
|
13205
|
+
return PdfViewer;
|
|
13194
13206
|
};
|
|
13195
13207
|
let schema = {
|
|
13196
13208
|
type: "object",
|
|
@@ -13355,9 +13367,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13355
13367
|
case "MetricCard":
|
|
13356
13368
|
elements = buildMetricCard(config2, componentScope2);
|
|
13357
13369
|
break;
|
|
13358
|
-
case "HierarchyChart":
|
|
13359
|
-
elements = buildHierarchyChart(config2, componentScope2);
|
|
13360
|
-
break;
|
|
13361
13370
|
case "Graph":
|
|
13362
13371
|
switch (config2.graphType) {
|
|
13363
13372
|
case "BarGraph":
|
|
@@ -13425,6 +13434,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13425
13434
|
case "Camera":
|
|
13426
13435
|
elements = buildCamera(config2, componentScope2);
|
|
13427
13436
|
break;
|
|
13437
|
+
case "PdfViewer":
|
|
13438
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13439
|
+
break;
|
|
13428
13440
|
default:
|
|
13429
13441
|
schema = {
|
|
13430
13442
|
type: "object",
|