impaktapps-ui-builder 1.0.300 → 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 +52 -88
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- 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/graph.d.ts +0 -25
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +2 -2
- 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 +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +11 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +0 -66
|
@@ -6280,7 +6280,8 @@ const ComponentSchema = {
|
|
|
6280
6280
|
{ title: "Timer", const: "Timer" },
|
|
6281
6281
|
{ title: "Upload", const: "UploadFile" },
|
|
6282
6282
|
{ title: "Tree ", const: "TreeMap" },
|
|
6283
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6283
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6284
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6284
6285
|
]
|
|
6285
6286
|
},
|
|
6286
6287
|
elementType: {
|
|
@@ -6656,8 +6657,7 @@ const ComponentSchema = {
|
|
|
6656
6657
|
title: "Stack Horizontal Bar Graph",
|
|
6657
6658
|
const: "HorizontalStackBarGraph"
|
|
6658
6659
|
},
|
|
6659
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6660
|
-
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6660
|
+
{ title: "Area Graph", const: "AreaGraph" }
|
|
6661
6661
|
]
|
|
6662
6662
|
},
|
|
6663
6663
|
iconName: {
|
|
@@ -8191,7 +8191,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8191
8191
|
getInputField("subHeader", "Sub Header"),
|
|
8192
8192
|
getSelectField("graphType", "Graph Type"),
|
|
8193
8193
|
getInputField("leftLabel", "Left Label"),
|
|
8194
|
-
getInputField("rightLabel", "Right Label"),
|
|
8195
8194
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8196
8195
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8197
8196
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
@@ -8202,7 +8201,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8202
8201
|
getSelectField("xAxisType", "X-AxisType"),
|
|
8203
8202
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8204
8203
|
getInputField("leftMargin", "Left Margin"),
|
|
8205
|
-
getInputField("
|
|
8204
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8206
8205
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8207
8206
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8208
8207
|
emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
@@ -8219,9 +8218,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8219
8218
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8220
8219
|
getInputField("columnSpacing", "Column Spacing"),
|
|
8221
8220
|
getInputField("spacing", "Spacing"),
|
|
8222
|
-
|
|
8223
|
-
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8224
|
-
emptyBox$1("WrapperSectionEmpty2")
|
|
8221
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
|
|
8225
8222
|
];
|
|
8226
8223
|
break;
|
|
8227
8224
|
case "TabSection":
|
|
@@ -8293,6 +8290,14 @@ const buildPropertiesSection = function(type) {
|
|
|
8293
8290
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8294
8291
|
];
|
|
8295
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;
|
|
8296
8301
|
case "Date":
|
|
8297
8302
|
uiSchema.elements = [
|
|
8298
8303
|
getSelectField("variant", "Variant"),
|
|
@@ -8868,6 +8873,7 @@ const sectionLabels = {
|
|
|
8868
8873
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8869
8874
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8870
8875
|
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8876
|
+
PdfViewer: ["Core", "Components", "Properties", "Style"],
|
|
8871
8877
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8872
8878
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8873
8879
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -11215,21 +11221,6 @@ const AreaBarGraph = {
|
|
|
11215
11221
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11216
11222
|
}
|
|
11217
11223
|
};
|
|
11218
|
-
const StackBarLineG = {
|
|
11219
|
-
type: "Control",
|
|
11220
|
-
scope: "#/properties/graph",
|
|
11221
|
-
options: {
|
|
11222
|
-
widget: "Graph"
|
|
11223
|
-
},
|
|
11224
|
-
config: {
|
|
11225
|
-
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11226
|
-
main: {
|
|
11227
|
-
type: "StackBarLineGraph",
|
|
11228
|
-
legendLabels: null
|
|
11229
|
-
},
|
|
11230
|
-
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11231
|
-
}
|
|
11232
|
-
};
|
|
11233
11224
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11234
11225
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11235
11226
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11514,7 +11505,6 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11514
11505
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11515
11506
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11516
11507
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11517
|
-
wrapper.config.main.icon = config2.iconUrl;
|
|
11518
11508
|
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11519
11509
|
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11520
11510
|
wrapper.config.main.spacing = Number(config2.spacing);
|
|
@@ -13000,8 +12990,8 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13000
12990
|
if (config2.xAxisFormatType) {
|
|
13001
12991
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13002
12992
|
}
|
|
13003
|
-
if (config2.
|
|
13004
|
-
AreaGraph.config.main.
|
|
12993
|
+
if (config2.xAxisTickCount) {
|
|
12994
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13005
12995
|
}
|
|
13006
12996
|
if (config2.yAxisTickCount) {
|
|
13007
12997
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
@@ -13028,65 +13018,6 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13028
13018
|
}
|
|
13029
13019
|
return AreaGraph;
|
|
13030
13020
|
};
|
|
13031
|
-
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13032
|
-
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13033
|
-
StackBarLineGraph.scope = componentScope2;
|
|
13034
|
-
if (config2.layout) {
|
|
13035
|
-
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13036
|
-
}
|
|
13037
|
-
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13038
|
-
StackBarLineGraph.scope = componentScope2;
|
|
13039
|
-
StackBarLineGraph.config.main.header = config2.heading;
|
|
13040
|
-
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13041
|
-
if (config2.legendHide) {
|
|
13042
|
-
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13043
|
-
}
|
|
13044
|
-
if (config2.bottomAxisAngle) {
|
|
13045
|
-
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13046
|
-
}
|
|
13047
|
-
if (config2.legendLabels) {
|
|
13048
|
-
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13049
|
-
}
|
|
13050
|
-
if (config2.legendDirection) {
|
|
13051
|
-
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13052
|
-
}
|
|
13053
|
-
if (config2.height) {
|
|
13054
|
-
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13055
|
-
}
|
|
13056
|
-
if (config2.pieArcColors) {
|
|
13057
|
-
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13058
|
-
}
|
|
13059
|
-
if (config2.xAxisLabelMinWidth) {
|
|
13060
|
-
StackBarLineGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
|
|
13061
|
-
}
|
|
13062
|
-
if (config2.yAxisTickCount) {
|
|
13063
|
-
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13064
|
-
}
|
|
13065
|
-
if (config2.xAxisValue) {
|
|
13066
|
-
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13067
|
-
}
|
|
13068
|
-
if (config2.xAxisType) {
|
|
13069
|
-
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13070
|
-
}
|
|
13071
|
-
if (config2.bottomLabel) {
|
|
13072
|
-
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13073
|
-
}
|
|
13074
|
-
if (config2.leftLabel) {
|
|
13075
|
-
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13076
|
-
}
|
|
13077
|
-
if (config2.rightLabel) {
|
|
13078
|
-
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13079
|
-
}
|
|
13080
|
-
if (config2.disableLeftLabel) {
|
|
13081
|
-
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13082
|
-
}
|
|
13083
|
-
if (config2.leftMargin) {
|
|
13084
|
-
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13085
|
-
left: config2.leftMargin
|
|
13086
|
-
};
|
|
13087
|
-
}
|
|
13088
|
-
return StackBarLineGraph;
|
|
13089
|
-
};
|
|
13090
13021
|
const cameraUiSchema = {
|
|
13091
13022
|
type: "Control",
|
|
13092
13023
|
scope: "#/properties/camera",
|
|
@@ -13240,6 +13171,39 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13240
13171
|
OTP.config.main.length = +config2.length;
|
|
13241
13172
|
return OTP;
|
|
13242
13173
|
};
|
|
13174
|
+
var pdfViewer = {
|
|
13175
|
+
type: "Control",
|
|
13176
|
+
scope: "#/properties/pdfviewer",
|
|
13177
|
+
options: {
|
|
13178
|
+
widget: "PdfViewer"
|
|
13179
|
+
},
|
|
13180
|
+
config: {
|
|
13181
|
+
layout: {
|
|
13182
|
+
xs: 12,
|
|
13183
|
+
sm: 12,
|
|
13184
|
+
md: 12,
|
|
13185
|
+
lg: 12
|
|
13186
|
+
},
|
|
13187
|
+
main: {
|
|
13188
|
+
title: "PDF"
|
|
13189
|
+
}
|
|
13190
|
+
}
|
|
13191
|
+
};
|
|
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;
|
|
13199
|
+
if (config2.layout) {
|
|
13200
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13201
|
+
}
|
|
13202
|
+
if (config2.style) {
|
|
13203
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13204
|
+
}
|
|
13205
|
+
return PdfViewer;
|
|
13206
|
+
};
|
|
13243
13207
|
let schema = {
|
|
13244
13208
|
type: "object",
|
|
13245
13209
|
properties: {},
|
|
@@ -13422,9 +13386,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13422
13386
|
case "AreaGraph":
|
|
13423
13387
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13424
13388
|
break;
|
|
13425
|
-
case "StackBarLineGraph":
|
|
13426
|
-
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13427
|
-
break;
|
|
13428
13389
|
default:
|
|
13429
13390
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13430
13391
|
break;
|
|
@@ -13473,6 +13434,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13473
13434
|
case "Camera":
|
|
13474
13435
|
elements = buildCamera(config2, componentScope2);
|
|
13475
13436
|
break;
|
|
13437
|
+
case "PdfViewer":
|
|
13438
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13439
|
+
break;
|
|
13476
13440
|
default:
|
|
13477
13441
|
schema = {
|
|
13478
13442
|
type: "object",
|