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 +3 -0
- package/dist/components/antd/fileUpload/OdsFileUpload.d.ts +1 -0
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -10
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/stories/OdsModal/Samples/OdsModal.Sample.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/antd/form/OdsBasicForm.d.ts +0 -18
- package/dist/components/antd/icon/OdsIcon.d.ts +0 -10
- package/dist/components/antd/select/OdsCustomMultiSelect.d.ts +0 -7
- package/dist/components/antd/select/OdsMultiSelect.d.ts +0 -9
- package/dist/components/custom/OdsLogin.d.ts +0 -8
- package/dist/components/devextreme/DxDataPopupForm.d.ts +0 -3
- package/dist/components/devextreme/DynamicIcon.d.ts +0 -5
- package/dist/components/devextreme/OdsDataGridNew.d.ts +0 -56
- package/dist/components/devextreme/OdsProfDataGrid.d.ts +0 -3
- package/dist/components/devextreme/treeview/DxTreeView.d.ts +0 -3
- package/dist/stories/OdsCustomMultiSelect/OdsCustomMultiSelect.stories.d.ts +0 -9
- package/dist/stories/OdsCustomMultiSelect/Samples/Basic.Sample.d.ts +0 -1
- package/dist/stories/OdsCustomMultiSelect/Samples/ModeMultiple.Sample.d.ts +0 -1
- package/dist/stories/OdsLink/OdsLink.stories.d.ts +0 -59
- /package/dist/components/antd/datepicker/{OdsDateRangePicker.d.ts → OdsDateRangepicker.d.ts} +0 -0
package/dist/App.d.ts
ADDED
|
@@ -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 = [
|
|
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 ===
|
|
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(
|
|
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:
|
|
1492
|
-
}), fileName +
|
|
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 +
|
|
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 {
|