react-admin-base-bootstrap 0.8.21 → 0.8.22
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/bun.lockb
CHANGED
|
Binary file
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function ExcelExportButton({ name, header, params, size, map, extra }: {
|
|
2
|
+
export default function ExcelExportButton({ name, header, params, size, transform, map, extra }: {
|
|
3
3
|
name: any;
|
|
4
4
|
header: any;
|
|
5
5
|
params: any;
|
|
6
6
|
size: any;
|
|
7
|
+
transform: any;
|
|
7
8
|
map: any;
|
|
8
9
|
extra: any;
|
|
9
10
|
}): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useExporter } from 'react-admin-base';
|
|
3
3
|
import { Button, Col } from "reactstrap";
|
|
4
|
-
export default function ExcelExportButton({ name, header, params, size, map, extra }) {
|
|
5
|
-
const [handleExport, loading] = useExporter(header, params, map, extra);
|
|
4
|
+
export default function ExcelExportButton({ name, header, params, size, transform, map, extra }) {
|
|
5
|
+
const [handleExport, loading] = useExporter(header, params, map, extra, transform);
|
|
6
6
|
return React.createElement(Col, null,
|
|
7
7
|
React.createElement(Button, { className: "w-100 d-block", type: "button", size: size, color: "success", outline: true, disabled: !!loading, onClick: () => handleExport(name) }, loading ? React.createElement("i", { className: "fas fa-spin fa-spinner" }) : React.createElement("i", { className: "fas fa-file-excel" })));
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-admin-base-bootstrap",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"modal-cropper": "^1.2.3",
|
|
39
39
|
"nprogress": "^0.2.0",
|
|
40
40
|
"prettysize": "^2.0.0",
|
|
41
|
-
"react-admin-base": "^0.8.
|
|
41
|
+
"react-admin-base": "^0.8.12",
|
|
42
42
|
"react-dnd": "^16.0.1",
|
|
43
43
|
"react-dnd-html5-backend": "^16.0.1",
|
|
44
44
|
"react-password-strength-bar": "^0.4.1",
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import {useExporter} from 'react-admin-base';
|
|
3
3
|
import {Button, Col} from "reactstrap";
|
|
4
4
|
|
|
5
|
-
export default function ExcelExportButton({name, header, params, size, map, extra}) {
|
|
6
|
-
const [ handleExport, loading ] = useExporter(header, params, map, extra);
|
|
5
|
+
export default function ExcelExportButton({name, header, params, size, transform, map, extra}) {
|
|
6
|
+
const [ handleExport, loading ] = useExporter(header, params, map, extra, transform);
|
|
7
7
|
|
|
8
8
|
return <Col>
|
|
9
9
|
<Button className="w-100 d-block" type="button" size={size} color="success" outline disabled={!!loading} onClick={() => handleExport(name)}>
|