ui-soxo-bootstrap-core 2.6.46-dev.1 → 2.6.46-dev.3
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.
|
@@ -379,16 +379,6 @@ export const ExportReactCSV = ({
|
|
|
379
379
|
drawDataRow(row);
|
|
380
380
|
});
|
|
381
381
|
|
|
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
382
|
const pdfBytes = await pdfDoc.save();
|
|
393
383
|
const blob = new Blob([pdfBytes], { type: 'application/pdf' });
|
|
394
384
|
const flName = downloadFileName || pdfFileName || fileName || 'Report.pdf';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect, useContext, useRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import { Table, Skeleton, Input, Modal, message,
|
|
3
|
+
import { Table, Skeleton, Input, Modal, message, Tag } from 'antd';
|
|
4
4
|
|
|
5
5
|
import { QrcodeOutlined } from '@ant-design/icons';
|
|
6
6
|
|
|
@@ -1057,7 +1057,14 @@ function GuestList({
|
|
|
1057
1057
|
dataSource={filtered ? filtered : patients} // In case if there is no filtered values we can use patient data
|
|
1058
1058
|
columns={cols}
|
|
1059
1059
|
sticky
|
|
1060
|
-
pagination={
|
|
1060
|
+
pagination={{
|
|
1061
|
+
current: pagination.current,
|
|
1062
|
+
pageSize: pagination.pageSize,
|
|
1063
|
+
total: pagination.total,
|
|
1064
|
+
showSizeChanger: true,
|
|
1065
|
+
pageSizeOptions: [20, 30, 50, 100],
|
|
1066
|
+
onChange: (page, pageSize) => handlePagination({ current: page, pageSize }),
|
|
1067
|
+
}}
|
|
1061
1068
|
summary={(pageData) => {
|
|
1062
1069
|
const summaryCols = columns.filter((col) => col.enable_summary);
|
|
1063
1070
|
if (!summaryCols.length) return null;
|
|
@@ -1094,18 +1101,6 @@ function GuestList({
|
|
|
1094
1101
|
/>
|
|
1095
1102
|
)}
|
|
1096
1103
|
|
|
1097
|
-
{/* Pagination aligned to the right */}
|
|
1098
|
-
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: 8 }}>
|
|
1099
|
-
<Pagination
|
|
1100
|
-
showSizeChanger
|
|
1101
|
-
current={pagination.current}
|
|
1102
|
-
pageSize={pagination.pageSize}
|
|
1103
|
-
total={pagination.total}
|
|
1104
|
-
pageSizeOptions={[20, 30, 50, 100]}
|
|
1105
|
-
onChange={(page, pageSize) => handlePagination({ current: page, pageSize })}
|
|
1106
|
-
/>
|
|
1107
|
-
</div>
|
|
1108
|
-
|
|
1109
1104
|
{/*If patient data exists show the number else to 0 */}
|
|
1110
1105
|
<p className="size-hint">{patients ? patients.length : 0} records. </p>
|
|
1111
1106
|
</Card>
|