aq-fe-framework 0.1.465 → 0.1.467

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.
@@ -1836,13 +1836,13 @@ function AQSelectTableByOpenModal(_a) {
1836
1836
  }
1837
1837
 
1838
1838
  // src/components/Button/ButtonPrintPDF/MyButtonPrintPDF.tsx
1839
- import { useRef as useRef2 } from "react";
1840
1839
  import { Button as Button10 } from "@mantine/core";
1841
1840
  import { IconPrinter as IconPrinter2 } from "@tabler/icons-react";
1841
+ import { useRef as useRef2 } from "react";
1842
1842
  import { useReactToPrint } from "react-to-print";
1843
1843
  import { Fragment as Fragment10, jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
1844
1844
  function MyButtonPrintPDF(_a) {
1845
- var _b = _a, { contentToPrint, children } = _b, rest = __objRest(_b, ["contentToPrint", "children"]);
1845
+ var _b = _a, { contentToPrint, children, autoPadding = true } = _b, rest = __objRest(_b, ["contentToPrint", "children", "autoPadding"]);
1846
1846
  const printRef = useRef2(null);
1847
1847
  const handlePrint = useReactToPrint({
1848
1848
  // Sử dụng documentTitle thay vì content
@@ -1855,7 +1855,7 @@ function MyButtonPrintPDF(_a) {
1855
1855
  handlePrint();
1856
1856
  }
1857
1857
  return /* @__PURE__ */ jsxs18(Fragment10, { children: [
1858
- /* @__PURE__ */ jsx30("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx30("div", { ref: printRef, children: contentToPrint }) }),
1858
+ /* @__PURE__ */ jsx30("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx30("div", { ref: printRef, style: { padding: autoPadding ? "2cm 2cm 2cm 3cm" : void 0 }, children: contentToPrint }) }),
1859
1859
  /* @__PURE__ */ jsx30(Button10, __spreadProps(__spreadValues({ color: "orange", onClick: handleClick, leftSection: /* @__PURE__ */ jsx30(IconPrinter2, {}) }, rest), { children }))
1860
1860
  ] });
1861
1861
  }
@@ -2,7 +2,7 @@ import {
2
2
  MyDataTable,
3
3
  MyFlexColumn,
4
4
  MyFlexRow
5
- } from "./chunk-R6UM63WF.mjs";
5
+ } from "./chunk-CBVZOVX3.mjs";
6
6
  import {
7
7
  const_object_colors
8
8
  } from "./chunk-OMJJAHOC.mjs";
@@ -219,8 +219,9 @@ declare function AQSelectTableByOpenModal<TData extends MRT_RowData>({ setSelect
219
219
  interface I$5 extends ButtonProps {
220
220
  contentToPrint?: ReactNode;
221
221
  children?: ReactNode;
222
+ autoPadding?: boolean;
222
223
  }
223
- declare function MyButtonPrintPDF({ contentToPrint, children, ...rest }: I$5): react_jsx_runtime.JSX.Element;
224
+ declare function MyButtonPrintPDF({ contentToPrint, children, autoPadding, ...rest }: I$5): react_jsx_runtime.JSX.Element;
224
225
 
225
226
  interface FieldConfig {
226
227
  fieldName: string;
@@ -65,7 +65,7 @@ import {
65
65
  useS_BasicAppShell,
66
66
  useS_ButtonImport,
67
67
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-R6UM63WF.mjs";
68
+ } from "../chunk-CBVZOVX3.mjs";
69
69
  import "../chunk-U62R2QKJ.mjs";
70
70
  import "../chunk-5U2JSHSJ.mjs";
71
71
  import "../chunk-OMJJAHOC.mjs";
@@ -16,8 +16,8 @@ import {
16
16
  MyStatsCard,
17
17
  MyTextInput,
18
18
  MyWeeklySessionSchedulerPicker
19
- } from "../chunk-6UDHYMG5.mjs";
20
- import "../chunk-R6UM63WF.mjs";
19
+ } from "../chunk-OECVRR7R.mjs";
20
+ import "../chunk-CBVZOVX3.mjs";
21
21
  import "../chunk-U62R2QKJ.mjs";
22
22
  import "../chunk-5U2JSHSJ.mjs";
23
23
  import "../chunk-GFEMKKFH.mjs";
@@ -15,7 +15,7 @@ import {
15
15
  MyButton as MyButton2,
16
16
  MyDataTableSelectOne,
17
17
  MyTextInput as MyTextInput2
18
- } from "../chunk-6UDHYMG5.mjs";
18
+ } from "../chunk-OECVRR7R.mjs";
19
19
  import {
20
20
  F_authenticate_Logout,
21
21
  MyActionIconDelete,
@@ -41,7 +41,7 @@ import {
41
41
  groupToTwoLevels,
42
42
  useS_authenticate,
43
43
  utils_layout_getItemsWithoutLinks
44
- } from "../chunk-R6UM63WF.mjs";
44
+ } from "../chunk-CBVZOVX3.mjs";
45
45
  import {
46
46
  createGenericStore
47
47
  } from "../chunk-U62R2QKJ.mjs";
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.465",
45
+ "version": "0.1.467",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"