aq-fe-framework 0.1.80 → 0.1.81
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.
|
@@ -59,7 +59,7 @@ import { IconLivePhoto, IconMaximize, IconMinimize } from "@tabler/icons-react";
|
|
|
59
59
|
import { useQuery } from "@tanstack/react-query";
|
|
60
60
|
import { useState } from "react";
|
|
61
61
|
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
62
|
-
function MyButtonViewPDF({ id, modalSize = "80%", label = "Xem file", src = "https://datafiles.chinhphu.vn/cpp/files/vbpq/2016/07/85.signed.pdf" }) {
|
|
62
|
+
function MyButtonViewPDF({ id, modalSize = "80%", label = "Xem file", src = "https://datafiles.chinhphu.vn/cpp/files/vbpq/2016/07/85.signed.pdf", isActionIcon = false }) {
|
|
63
63
|
var _a, _b;
|
|
64
64
|
const disc = useDisclosure(false);
|
|
65
65
|
const fullScreen = useState(false);
|
|
@@ -72,7 +72,15 @@ function MyButtonViewPDF({ id, modalSize = "80%", label = "Xem file", src = "htt
|
|
|
72
72
|
enabled: id != void 0 && disc[0] == true
|
|
73
73
|
});
|
|
74
74
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
75
|
-
/* @__PURE__ */ jsx2(Tooltip, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: /* @__PURE__ */ jsx2(
|
|
75
|
+
/* @__PURE__ */ jsx2(Tooltip, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx2(
|
|
76
|
+
ActionIcon,
|
|
77
|
+
{
|
|
78
|
+
onClick: () => {
|
|
79
|
+
disc[1].open();
|
|
80
|
+
},
|
|
81
|
+
children: /* @__PURE__ */ jsx2(IconLivePhoto, {})
|
|
82
|
+
}
|
|
83
|
+
) : /* @__PURE__ */ jsx2(Button, { color: "cyan", onClick: () => {
|
|
76
84
|
disc[1].open();
|
|
77
85
|
}, leftSection: /* @__PURE__ */ jsx2(IconLivePhoto, {}), children: label }) }),
|
|
78
86
|
/* @__PURE__ */ jsx2(
|
|
@@ -253,8 +253,9 @@ interface IMyButtonViewPDF {
|
|
|
253
253
|
label?: string;
|
|
254
254
|
id?: number;
|
|
255
255
|
src?: string;
|
|
256
|
+
isActionIcon?: boolean;
|
|
256
257
|
}
|
|
257
|
-
declare function MyButtonViewPDF({ id, modalSize, label, src }: IMyButtonViewPDF): react_jsx_runtime.JSX.Element;
|
|
258
|
+
declare function MyButtonViewPDF({ id, modalSize, label, src, isActionIcon }: IMyButtonViewPDF): react_jsx_runtime.JSX.Element;
|
|
258
259
|
|
|
259
260
|
declare function MyCalendar(): react_jsx_runtime.JSX.Element;
|
|
260
261
|
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
useHeaderMegaMenuStore,
|
|
63
63
|
useS_ButtonImport,
|
|
64
64
|
utils_layout_getItemsWithoutLinks
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-G75BBOMI.mjs";
|
|
66
66
|
import "../chunk-AL73DX37.mjs";
|
|
67
67
|
import "../chunk-42OQXQR5.mjs";
|
|
68
68
|
import "../chunk-FWCSY2DS.mjs";
|