ods-component-lib 1.18.186 → 1.18.188

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/App.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const App: React.FC;
3
+ export default App;
@@ -5,6 +5,7 @@ declare type FileUploadProps = {
5
5
  title: string;
6
6
  uploadTitle?: string;
7
7
  defaultFileList?: UploadProps["defaultFileList"];
8
+ showUploadList?: UploadProps["showUploadList"];
8
9
  sendDataToParent: (obj: any) => void;
9
10
  allowDocumentUpload?: boolean;
10
11
  multipleDoc?: boolean;
package/dist/index.js CHANGED
@@ -1460,7 +1460,7 @@ function OdsDataGrid(props) {
1460
1460
  }))));
1461
1461
  }
1462
1462
 
1463
- var exportFormats$1 = ['xlsx'];
1463
+ var exportFormats$1 = ["xlsx"];
1464
1464
  function OdsDisplayGrid(props) {
1465
1465
  return grid(props);
1466
1466
  }
@@ -1479,17 +1479,17 @@ function grid(props) {
1479
1479
  };
1480
1480
  var fileName = props.exportFileName ? props.exportFileName + moment().format("YYYYMMDD") : "DatagridExportFile" + moment().format("YYYYMMDD");
1481
1481
  var onExporting = function onExporting(e) {
1482
- if (e.format === 'xlsx') {
1482
+ if (e.format === "xlsx") {
1483
1483
  var workbook = new exceljs.Workbook();
1484
1484
  excel_exporter.exportDataGrid({
1485
1485
  component: e.component,
1486
- worksheet: workbook.addWorksheet('Main sheet'),
1486
+ worksheet: workbook.addWorksheet("Main sheet"),
1487
1487
  autoFilterEnabled: true
1488
1488
  }).then(function () {
1489
1489
  workbook.xlsx.writeBuffer().then(function (buffer) {
1490
1490
  fileSaverEs.saveAs(new Blob([buffer], {
1491
- type: 'application/octet-stream'
1492
- }), fileName + '.xlsx');
1491
+ type: "application/octet-stream"
1492
+ }), fileName + ".xlsx");
1493
1493
  });
1494
1494
  });
1495
1495
  } else {
@@ -1499,7 +1499,7 @@ function grid(props) {
1499
1499
  component: e.component,
1500
1500
  indent: 5
1501
1501
  }).then(function () {
1502
- doc.save(fileName + '.pdf');
1502
+ doc.save(fileName + ".pdf");
1503
1503
  });
1504
1504
  }
1505
1505
  };
@@ -1518,7 +1518,8 @@ function grid(props) {
1518
1518
  showBorders: true,
1519
1519
  onExporting: onExporting,
1520
1520
  onSelectionChanged: props.onSelectionChanged,
1521
- width: "100%"
1521
+ width: "100%",
1522
+ height: props.height ? props.height : null
1522
1523
  }, React__default.createElement(DataGrid.Paging, {
1523
1524
  enabled: true,
1524
1525
  defaultPageSize: props.pageSize
@@ -1808,10 +1809,10 @@ function OdsFileUpload(props) {
1808
1809
  setPreviewImage(file.url || file.thumbUrl || "");
1809
1810
  handlePreview();
1810
1811
  },
1811
- showUploadList: {
1812
- showPreviewIcon: true,
1812
+ showUploadList: props.showUploadList || {
1813
1813
  showRemoveIcon: true,
1814
- showDownloadIcon: true
1814
+ showDownloadIcon: true,
1815
+ showPreviewIcon: true
1815
1816
  },
1816
1817
  beforeUpload: function (file) {
1817
1818
  try {