ui-soxo-bootstrap-core 2.6.46-dev.2 → 2.6.46-dev.4
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.
|
@@ -15,11 +15,12 @@ import { PDFDocument, StandardFonts, rgb } from 'pdf-lib';
|
|
|
15
15
|
// import * as XLSX from 'xlsx-js-style';
|
|
16
16
|
// Import saveAs from file-saver to trigger file download in browser
|
|
17
17
|
import { saveAs } from 'file-saver';
|
|
18
|
-
import {
|
|
18
|
+
import { Dropdown, Form, Input, Menu, Modal, Radio, message } from 'antd';
|
|
19
19
|
import { DownOutlined, FileExcelFilled, FilePdfFilled, MailFilled, DownloadOutlined } from '@ant-design/icons';
|
|
20
20
|
import { Trans } from 'react-i18next';
|
|
21
21
|
import { CoreScripts } from '../../../../models';
|
|
22
22
|
import './generic-list.scss';
|
|
23
|
+
import { Button } from '../../../elements';
|
|
23
24
|
|
|
24
25
|
const normalizeScriptId = (value) => {
|
|
25
26
|
if (value === undefined || value === null || value === '') return value;
|
|
@@ -379,16 +380,6 @@ export const ExportReactCSV = ({
|
|
|
379
380
|
drawDataRow(row);
|
|
380
381
|
});
|
|
381
382
|
|
|
382
|
-
if (!csvData?.length) {
|
|
383
|
-
page.drawText('No records found', {
|
|
384
|
-
x: margin,
|
|
385
|
-
y: y + 1,
|
|
386
|
-
size: fontSize,
|
|
387
|
-
font,
|
|
388
|
-
color: rgb(0.12, 0.12, 0.12),
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
|
|
392
383
|
const pdfBytes = await pdfDoc.save();
|
|
393
384
|
const blob = new Blob([pdfBytes], { type: 'application/pdf' });
|
|
394
385
|
const flName = downloadFileName || pdfFileName || fileName || 'Report.pdf';
|