impaktapps-ui-builder 1.0.300 → 1.0.302
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 +64 -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 +20 -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 +20 -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 +10 -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: {
|
|
@@ -6362,6 +6363,15 @@ const ComponentSchema = {
|
|
|
6362
6363
|
{ title: "Right", const: "right" }
|
|
6363
6364
|
]
|
|
6364
6365
|
},
|
|
6366
|
+
maxWidth: {
|
|
6367
|
+
oneOf: [
|
|
6368
|
+
{ title: "Extra Small", const: "xs" },
|
|
6369
|
+
{ title: "Small", const: "sm" },
|
|
6370
|
+
{ title: "Medium", const: "md" },
|
|
6371
|
+
{ title: "Large", const: "lg" },
|
|
6372
|
+
{ title: "Extra Large", const: "xl" }
|
|
6373
|
+
]
|
|
6374
|
+
},
|
|
6365
6375
|
toolTipPosition: {
|
|
6366
6376
|
oneOf: [
|
|
6367
6377
|
{ title: "Top", const: "top" },
|
|
@@ -6656,8 +6666,7 @@ const ComponentSchema = {
|
|
|
6656
6666
|
title: "Stack Horizontal Bar Graph",
|
|
6657
6667
|
const: "HorizontalStackBarGraph"
|
|
6658
6668
|
},
|
|
6659
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6660
|
-
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6669
|
+
{ title: "Area Graph", const: "AreaGraph" }
|
|
6661
6670
|
]
|
|
6662
6671
|
},
|
|
6663
6672
|
iconName: {
|
|
@@ -8191,7 +8200,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8191
8200
|
getInputField("subHeader", "Sub Header"),
|
|
8192
8201
|
getSelectField("graphType", "Graph Type"),
|
|
8193
8202
|
getInputField("leftLabel", "Left Label"),
|
|
8194
|
-
getInputField("rightLabel", "Right Label"),
|
|
8195
8203
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8196
8204
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8197
8205
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
@@ -8202,7 +8210,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8202
8210
|
getSelectField("xAxisType", "X-AxisType"),
|
|
8203
8211
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8204
8212
|
getInputField("leftMargin", "Left Margin"),
|
|
8205
|
-
getInputField("
|
|
8213
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8206
8214
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8207
8215
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8208
8216
|
emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
@@ -8219,9 +8227,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8219
8227
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8220
8228
|
getInputField("columnSpacing", "Column Spacing"),
|
|
8221
8229
|
getInputField("spacing", "Spacing"),
|
|
8222
|
-
|
|
8223
|
-
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8224
|
-
emptyBox$1("WrapperSectionEmpty2")
|
|
8230
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
|
|
8225
8231
|
];
|
|
8226
8232
|
break;
|
|
8227
8233
|
case "TabSection":
|
|
@@ -8293,6 +8299,16 @@ const buildPropertiesSection = function(type) {
|
|
|
8293
8299
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8294
8300
|
];
|
|
8295
8301
|
break;
|
|
8302
|
+
case "PdfViewer":
|
|
8303
|
+
uiSchema.elements = [
|
|
8304
|
+
getInputField("title", "title"),
|
|
8305
|
+
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
8306
|
+
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
8307
|
+
getInputField("maxWidth", "Max. Width"),
|
|
8308
|
+
getSelectField("maxWidth", "Max Width"),
|
|
8309
|
+
getInputField("scale", "Zoom Factor")
|
|
8310
|
+
];
|
|
8311
|
+
break;
|
|
8296
8312
|
case "Date":
|
|
8297
8313
|
uiSchema.elements = [
|
|
8298
8314
|
getSelectField("variant", "Variant"),
|
|
@@ -8868,6 +8884,7 @@ const sectionLabels = {
|
|
|
8868
8884
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8869
8885
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8870
8886
|
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8887
|
+
PdfViewer: ["Core", "Components", "Properties", "Style"],
|
|
8871
8888
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8872
8889
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8873
8890
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -11215,21 +11232,6 @@ const AreaBarGraph = {
|
|
|
11215
11232
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11216
11233
|
}
|
|
11217
11234
|
};
|
|
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
11235
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11234
11236
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11235
11237
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11514,7 +11516,6 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11514
11516
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11515
11517
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11516
11518
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11517
|
-
wrapper.config.main.icon = config2.iconUrl;
|
|
11518
11519
|
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11519
11520
|
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11520
11521
|
wrapper.config.main.spacing = Number(config2.spacing);
|
|
@@ -13000,8 +13001,8 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13000
13001
|
if (config2.xAxisFormatType) {
|
|
13001
13002
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13002
13003
|
}
|
|
13003
|
-
if (config2.
|
|
13004
|
-
AreaGraph.config.main.
|
|
13004
|
+
if (config2.xAxisTickCount) {
|
|
13005
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13005
13006
|
}
|
|
13006
13007
|
if (config2.yAxisTickCount) {
|
|
13007
13008
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
@@ -13028,65 +13029,6 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13028
13029
|
}
|
|
13029
13030
|
return AreaGraph;
|
|
13030
13031
|
};
|
|
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
13032
|
const cameraUiSchema = {
|
|
13091
13033
|
type: "Control",
|
|
13092
13034
|
scope: "#/properties/camera",
|
|
@@ -13240,6 +13182,40 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13240
13182
|
OTP.config.main.length = +config2.length;
|
|
13241
13183
|
return OTP;
|
|
13242
13184
|
};
|
|
13185
|
+
var pdfViewer = {
|
|
13186
|
+
type: "Control",
|
|
13187
|
+
scope: "#/properties/pdfviewer",
|
|
13188
|
+
options: {
|
|
13189
|
+
widget: "PdfViewer"
|
|
13190
|
+
},
|
|
13191
|
+
config: {
|
|
13192
|
+
layout: {
|
|
13193
|
+
xs: 12,
|
|
13194
|
+
sm: 12,
|
|
13195
|
+
md: 12,
|
|
13196
|
+
lg: 12
|
|
13197
|
+
},
|
|
13198
|
+
main: {
|
|
13199
|
+
title: "PDF"
|
|
13200
|
+
}
|
|
13201
|
+
}
|
|
13202
|
+
};
|
|
13203
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13204
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13205
|
+
PdfViewer.scope = componentScope2;
|
|
13206
|
+
PdfViewer.config.main.title = config2.label;
|
|
13207
|
+
PdfViewer.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
|
|
13208
|
+
PdfViewer.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
|
|
13209
|
+
PdfViewer.config.main.maxWidth = config2.maxWidth || false;
|
|
13210
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13211
|
+
if (config2.layout) {
|
|
13212
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13213
|
+
}
|
|
13214
|
+
if (config2.style) {
|
|
13215
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13216
|
+
}
|
|
13217
|
+
return PdfViewer;
|
|
13218
|
+
};
|
|
13243
13219
|
let schema = {
|
|
13244
13220
|
type: "object",
|
|
13245
13221
|
properties: {},
|
|
@@ -13422,9 +13398,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13422
13398
|
case "AreaGraph":
|
|
13423
13399
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13424
13400
|
break;
|
|
13425
|
-
case "StackBarLineGraph":
|
|
13426
|
-
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13427
|
-
break;
|
|
13428
13401
|
default:
|
|
13429
13402
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13430
13403
|
break;
|
|
@@ -13473,6 +13446,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13473
13446
|
case "Camera":
|
|
13474
13447
|
elements = buildCamera(config2, componentScope2);
|
|
13475
13448
|
break;
|
|
13449
|
+
case "PdfViewer":
|
|
13450
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13451
|
+
break;
|
|
13476
13452
|
default:
|
|
13477
13453
|
schema = {
|
|
13478
13454
|
type: "object",
|