impaktapps-ui-builder 1.0.381 → 1.0.382
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 +42 -1
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- 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/pdfViewer.d.ts +19 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +2 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +3 -2
|
@@ -6281,7 +6281,8 @@ const ComponentSchema = {
|
|
|
6281
6281
|
{ title: "Upload", const: "UploadFile" },
|
|
6282
6282
|
{ title: "Tree ", const: "TreeMap" },
|
|
6283
6283
|
{ title: "Thought of the day", const: "Thought" },
|
|
6284
|
-
{ title: "Split View Container", const: "SplitViewContainer" }
|
|
6284
|
+
{ title: "Split View Container", const: "SplitViewContainer" },
|
|
6285
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6285
6286
|
]
|
|
6286
6287
|
},
|
|
6287
6288
|
elementType: {
|
|
@@ -8296,6 +8297,12 @@ const buildPropertiesSection = function(type) {
|
|
|
8296
8297
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8297
8298
|
];
|
|
8298
8299
|
break;
|
|
8300
|
+
case "PdfViewer":
|
|
8301
|
+
uiSchema.elements = [
|
|
8302
|
+
getInputField("scale", "Zoom"),
|
|
8303
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8304
|
+
];
|
|
8305
|
+
break;
|
|
8299
8306
|
case "Date":
|
|
8300
8307
|
uiSchema.elements = [
|
|
8301
8308
|
getSelectField("variant", "Variant"),
|
|
@@ -8871,6 +8878,7 @@ const sectionLabels = {
|
|
|
8871
8878
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8872
8879
|
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8873
8880
|
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8881
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8874
8882
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8875
8883
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8876
8884
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -13217,6 +13225,36 @@ const buildSplitViewContainer = (config2, componentScope2, store2) => {
|
|
|
13217
13225
|
}
|
|
13218
13226
|
return splitViewContainer;
|
|
13219
13227
|
};
|
|
13228
|
+
var pdfViewer = {
|
|
13229
|
+
type: "Control",
|
|
13230
|
+
scope: "#/properties/pdfviewer",
|
|
13231
|
+
options: {
|
|
13232
|
+
widget: "PdfViewer"
|
|
13233
|
+
},
|
|
13234
|
+
config: {
|
|
13235
|
+
layout: {
|
|
13236
|
+
xs: 12,
|
|
13237
|
+
sm: 12,
|
|
13238
|
+
md: 12,
|
|
13239
|
+
lg: 12
|
|
13240
|
+
},
|
|
13241
|
+
main: {
|
|
13242
|
+
title: "PDF"
|
|
13243
|
+
}
|
|
13244
|
+
}
|
|
13245
|
+
};
|
|
13246
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13247
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13248
|
+
PdfViewer.scope = componentScope2;
|
|
13249
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13250
|
+
if (config2.layout) {
|
|
13251
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13252
|
+
}
|
|
13253
|
+
if (config2.style) {
|
|
13254
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13255
|
+
}
|
|
13256
|
+
return PdfViewer;
|
|
13257
|
+
};
|
|
13220
13258
|
let schema = {
|
|
13221
13259
|
type: "object",
|
|
13222
13260
|
properties: {},
|
|
@@ -13450,6 +13488,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13450
13488
|
case "SplitViewContainer":
|
|
13451
13489
|
elements = buildSplitViewContainer(config2, componentScope2);
|
|
13452
13490
|
break;
|
|
13491
|
+
case "PdfViewer":
|
|
13492
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13493
|
+
break;
|
|
13453
13494
|
default:
|
|
13454
13495
|
schema = {
|
|
13455
13496
|
type: "object",
|