@pnkx-lib/ui 1.9.462 → 1.9.464
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/chunks/{AntdIcon-D_ySRKRj.js → AntdIcon-KP2HuB_x.js} +3 -3
- package/es/chunks/CloseCircleFilled-4jnV3XJV.js +36 -0
- package/es/chunks/{CloseOutlined-B3y9Maz0.js → CloseOutlined-DdLJZQvZ.js} +1 -1
- package/es/chunks/{DownOutlined-BlKl-wuu.js → DownOutlined-Cl95zPIN.js} +1 -1
- package/es/chunks/{InboxOutlined-CLTSIXAX.js → InboxOutlined-W7xl_mLq.js} +1 -1
- package/es/chunks/LoadingOutlined-C5-PNVpb.js +20 -0
- package/es/chunks/{createSuper-C90IQ42g.js → createSuper-CnOp-EUR.js} +1 -1
- package/es/chunks/{index-t0ynpS_n.js → index-xdC7i8zM.js} +2 -2
- package/es/chunks/toArray-GtzhUyP3.js +4562 -0
- package/es/fields/DatePicker.js +3 -3
- package/es/fields/Select.js +2 -2
- package/es/fields/Upload.js +1 -1
- package/es/index.js +1 -0
- package/es/ui/BreadcrumbHeading.js +2 -2
- package/es/ui/ExportFile.js +7 -22
- package/es/ui/GenericUploadModal.js +11586 -0
- package/es/ui/Heading.js +2 -2
- package/es/ui/ImportFile.js +4 -37
- package/es/ui/Layout.js +12 -4362
- package/es/ui/SearchFilterForm.js +1 -1
- package/es/ui/Sidebar/index.js +2 -2
- package/es/ui/UploadComponent.js +1 -1
- package/es/ui/UploadMultiple.js +1 -1
- package/es/ui/index.js +1 -0
- package/package.json +1 -1
- package/types/components/ui/GenericUploadModal.d.ts +32 -0
- package/types/components/ui/index.d.ts +1 -0
- package/types/ui/GenericUploadModal.d.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { c as classNames } from '../chunks/index-xdC7i8zM.js';
|
|
3
3
|
import { Breadcrumb } from './Breadcrumb.js';
|
|
4
4
|
import { u as useBreadcrumb } from '../chunks/useBreadcrumb-DEKhv1-Z.js';
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ const BreadcrumbHeading = (props) => {
|
|
|
7
7
|
const { menu, customBreadcum, ...restProps } = props;
|
|
8
8
|
const mappingBreadcrumb = useBreadcrumb(menu, customBreadcum);
|
|
9
9
|
//! Render
|
|
10
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
10
|
+
return /* @__PURE__ */ jsx("div", { className: classNames("flex justify-between items-center"), children: /* @__PURE__ */ jsx(Breadcrumb, { items: mappingBreadcrumb, ...restProps }) });
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { BreadcrumbHeading };
|
package/es/ui/ExportFile.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { Spin } from './Spin.js';
|
|
3
|
-
import {
|
|
4
|
-
import * as React from 'react';
|
|
3
|
+
import { R as RefIcon$1 } from '../chunks/LoadingOutlined-C5-PNVpb.js';
|
|
5
4
|
import { PnkxField } from '../fields/PnkxField.js';
|
|
6
5
|
import { RadioGroup } from '../fields/Radio.js';
|
|
6
|
+
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-KP2HuB_x.js';
|
|
7
|
+
import * as React from 'react';
|
|
7
8
|
|
|
8
9
|
// This icon file is generated automatically.
|
|
9
10
|
var InfoCircleFilled$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "info-circle", "theme": "filled" };
|
|
@@ -16,25 +17,9 @@ var InfoCircleFilled = function InfoCircleFilled(props, ref) {
|
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
/** */
|
|
19
|
-
var RefIcon
|
|
20
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
21
|
-
RefIcon$1.displayName = 'InfoCircleFilled';
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// This icon file is generated automatically.
|
|
25
|
-
var LoadingOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
|
26
|
-
|
|
27
|
-
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
28
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
29
|
-
ref: ref,
|
|
30
|
-
icon: LoadingOutlined$1
|
|
31
|
-
}));
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/** */
|
|
35
|
-
var RefIcon = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
20
|
+
var RefIcon = /*#__PURE__*/React.forwardRef(InfoCircleFilled);
|
|
36
21
|
if (process.env.NODE_ENV !== 'production') {
|
|
37
|
-
RefIcon.displayName = '
|
|
22
|
+
RefIcon.displayName = 'InfoCircleFilled';
|
|
38
23
|
}
|
|
39
24
|
|
|
40
25
|
const ExportFile = ({
|
|
@@ -45,7 +30,7 @@ const ExportFile = ({
|
|
|
45
30
|
}) => {
|
|
46
31
|
const isShowChid = watch("export");
|
|
47
32
|
return /* @__PURE__ */ jsx("div", { children: loading ? /* @__PURE__ */ jsxs("div", { className: "text-center mt-4", children: [
|
|
48
|
-
/* @__PURE__ */ jsx(Spin, { indicator: /* @__PURE__ */ jsx(RefIcon, { spin: true }), size: "large" }),
|
|
33
|
+
/* @__PURE__ */ jsx(Spin, { indicator: /* @__PURE__ */ jsx(RefIcon$1, { spin: true }), size: "large" }),
|
|
49
34
|
/* @__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!" })
|
|
50
35
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51
36
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-[#5C657D] mt-4", children: "Chọn kiểu export file" }),
|
|
@@ -70,7 +55,7 @@ const ExportFile = ({
|
|
|
70
55
|
] })
|
|
71
56
|
] }),
|
|
72
57
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
73
|
-
/* @__PURE__ */ jsx(RefIcon
|
|
58
|
+
/* @__PURE__ */ jsx(RefIcon, { className: "!text-[#1677FF] mt-1 text-[24px]" }),
|
|
74
59
|
/* @__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." })
|
|
75
60
|
] })
|
|
76
61
|
] }) });
|