baaz-custom-components 5.2.7 → 5.2.8
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2906,9 +2906,9 @@ var Grid = (0, import_react10.forwardRef)(
|
|
|
2906
2906
|
else onExportPdf == null ? void 0 : onExportPdf();
|
|
2907
2907
|
}, [data, fileName, onExportPdf]);
|
|
2908
2908
|
const handleExportExcel = (0, import_react10.useCallback)(() => {
|
|
2909
|
+
if (onExportExcel) return onExportExcel();
|
|
2909
2910
|
const selected = getSelectedData();
|
|
2910
2911
|
if (selected.length) exportExcel(selected, fileName);
|
|
2911
|
-
else onExportExcel == null ? void 0 : onExportExcel();
|
|
2912
2912
|
}, [data, fileName, onExportExcel]);
|
|
2913
2913
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "w-full h-full flex flex-col overflow-hidden", children: [
|
|
2914
2914
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -2875,9 +2875,9 @@ var Grid = forwardRef(
|
|
|
2875
2875
|
else onExportPdf == null ? void 0 : onExportPdf();
|
|
2876
2876
|
}, [data, fileName, onExportPdf]);
|
|
2877
2877
|
const handleExportExcel = useCallback2(() => {
|
|
2878
|
+
if (onExportExcel) return onExportExcel();
|
|
2878
2879
|
const selected = getSelectedData();
|
|
2879
2880
|
if (selected.length) exportExcel(selected, fileName);
|
|
2880
|
-
else onExportExcel == null ? void 0 : onExportExcel();
|
|
2881
2881
|
}, [data, fileName, onExportExcel]);
|
|
2882
2882
|
return /* @__PURE__ */ jsxs20("div", { className: "w-full h-full flex flex-col overflow-hidden", children: [
|
|
2883
2883
|
/* @__PURE__ */ jsx28(
|