@pnkx-lib/ui 1.9.334 → 1.9.335
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/es/ui/ExportFile.js
CHANGED
|
@@ -37,19 +37,25 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
37
37
|
RefIcon.displayName = 'LoadingOutlined';
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const ExportFile = ({
|
|
40
|
+
const ExportFile = ({
|
|
41
|
+
loading,
|
|
42
|
+
children,
|
|
43
|
+
control,
|
|
44
|
+
watch
|
|
45
|
+
}) => {
|
|
46
|
+
const isShowChid = watch("export");
|
|
41
47
|
return /* @__PURE__ */ jsx("div", { children: loading ? /* @__PURE__ */ jsxs("div", { className: "text-center mt-4", children: [
|
|
42
48
|
/* @__PURE__ */ jsx(Spin, { indicator: /* @__PURE__ */ jsx(RefIcon, { spin: true }), size: "large" }),
|
|
43
49
|
/* @__PURE__ */ jsx("p", { className: "text-sm mt-2", children: "Vui lòng chờ trong giây lát. Chúng tôi đang chuẩn bị file của bạn!" })
|
|
44
50
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
51
|
/* @__PURE__ */ jsx("p", { className: "text-sm", children: "Chọn kiểu export file" }),
|
|
46
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-
|
|
52
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-2", children: [
|
|
47
53
|
/* @__PURE__ */ jsx(
|
|
48
54
|
PnkxField,
|
|
49
55
|
{
|
|
50
56
|
name: "export",
|
|
51
57
|
control,
|
|
52
|
-
className: "!flex-col !flex",
|
|
58
|
+
className: "!flex-col !flex gap-2",
|
|
53
59
|
options: [
|
|
54
60
|
{ label: "Export toàn bộ bản ghi", value: "all" },
|
|
55
61
|
{ label: "Export theo bộ lọc", value: "filter" }
|
|
@@ -57,9 +63,12 @@ const ExportFile = ({ loading, children, control }) => {
|
|
|
57
63
|
component: RadioGroup
|
|
58
64
|
}
|
|
59
65
|
),
|
|
60
|
-
children
|
|
66
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-2", children: [
|
|
67
|
+
" ",
|
|
68
|
+
isShowChid === "filter" && children
|
|
69
|
+
] })
|
|
61
70
|
] }),
|
|
62
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2
|
|
71
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
63
72
|
/* @__PURE__ */ jsx(RefIcon$1, { className: "!text-[#1677FF] mt-1 text-[24px]" }),
|
|
64
73
|
/* @__PURE__ */ jsx("p", { className: "text-[14px] font-[400]", children: "Lưu ý: Hệ thống sẽ xuất file dưới định dạng .xlsx (Excel). Vui lòng đảm bảo thiết bị của bạn hỗ trợ đọc định dạng này trước khi tiếp tục." })
|
|
65
74
|
] })
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ interface ExportFileProps {
|
|
|
3
3
|
loading?: boolean;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
control: Control<any>;
|
|
6
|
+
watch: any;
|
|
6
7
|
}
|
|
7
|
-
export declare const ExportFile: ({ loading, children, control }: ExportFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ExportFile: ({ loading, children, control, watch, }: ExportFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|