impaktapps-ui-builder 1.0.380 → 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.
@@ -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: {},
@@ -13449,6 +13487,10 @@ const buildUiSchema = (config2, store2) => {
13449
13487
  break;
13450
13488
  case "SplitViewContainer":
13451
13489
  elements = buildSplitViewContainer(config2, componentScope2);
13490
+ break;
13491
+ case "PdfViewer":
13492
+ elements = buildPdfViewer(config2, componentScope2);
13493
+ break;
13452
13494
  default:
13453
13495
  schema = {
13454
13496
  type: "object",