@pnkx-lib/ui 1.9.41 → 1.9.43
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/style.css +2 -2
- package/es/chunks/Radio-CZubVPdR.js +103 -0
- package/es/chunks/{Switch-5fY0eC69.js → Switch-jt4L5Z_9.js} +18 -61
- package/es/chunks/{index-CqzBrT3-.js → index-noKfPKef.js} +188 -457
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +1 -1
- package/types/fields.d.ts +11 -11
- package/types/index.d.ts +45 -52
- package/types/ui.d.ts +35 -42
- package/es/chunks/Radio-Cy7MuC6V.js +0 -53
@@ -1,5 +1,5 @@
|
|
1
|
-
import { j as jsxRuntimeExports, c as Icon, _ as _extends, d as _typeof, P as PnkxField, C as CheckboxField, u as useForm,
|
2
|
-
import { Button as Button$1, Cascader, Space as Space$1, Card, Skeleton as Skeleton$1, Modal as Modal$1,
|
1
|
+
import { j as jsxRuntimeExports, c as Icon, _ as _extends, d as _typeof, P as PnkxField, C as CheckboxField, u as useForm, e as classNames, I as Input, f as _arrayLikeToArray, h as _unsupportedIterableToArray, w as warningOnce, i as _createClass, k as _classCallCheck, l as _defineProperty, m as _slicedToArray, n as warning$1, o as canUseDom, p as _objectSpread2, q as updateCSS, r as removeCSS, s as _arrayWithHoles, t as _nonIterableRest, v as resetWarned$1, F as FastColor, x as generate, y as presetPrimaryColors, z as presetPalettes, A as _inherits, B as _createSuper, G as _assertThisInitialized, H as _objectWithoutProperties, J as IconContext } from './Switch-jt4L5Z_9.js';
|
2
|
+
import { Button as Button$1, Cascader, Space as Space$1, Card, Skeleton as Skeleton$1, Modal as Modal$1, Badge as Badge$1, Breadcrumb as Breadcrumb$1, Tooltip as Tooltip$1, Divider as Divider$2, Popconfirm as Popconfirm$1, Typography, Table as Table$1, Tabs as Tabs$1, Popover as Popover$1, Col as Col$1, Row as Row$1, Dropdown as Dropdown$1, Flex as Flex$1, Splitter as Splitter$1, Menu as Menu$1, Pagination as Pagination$1, Steps as Steps$1, Tag as Tag$1, Alert as Alert$1, Spin as Spin$1, Drawer as Drawer$1, QRCode as QRCode$1, Result as Result$1, Rate as Rate$1, Segmented as Segmented$1, Statistic as Statistic$1, Timeline as Timeline$1, Tour as Tour$1, Tree as Tree$1, Watermark as Watermark$1, Anchor as Anchor$1, Affix, AutoComplete as AutoComplete$1, Input as Input$1, Collapse, ColorPicker, Empty as Empty$2, Image as Image$1 } from 'antd';
|
3
3
|
import * as React from 'react';
|
4
4
|
import React__default, { version as version$1, isValidElement, useLayoutEffect as useLayoutEffect$1, useEffect, useRef, useMemo as useMemo$1, useCallback, useState, createContext, memo, useReducer, useContext, Component } from 'react';
|
5
5
|
import ReactDOM__default, { unstable_batchedUpdates, createPortal } from 'react-dom';
|
@@ -1709,9 +1709,9 @@ var BarsOutlined = function BarsOutlined(props, ref) {
|
|
1709
1709
|
};
|
1710
1710
|
|
1711
1711
|
/** */
|
1712
|
-
var RefIcon$
|
1712
|
+
var RefIcon$8 = /*#__PURE__*/React.forwardRef(BarsOutlined);
|
1713
1713
|
if (process.env.NODE_ENV !== 'production') {
|
1714
|
-
RefIcon$
|
1714
|
+
RefIcon$8.displayName = 'BarsOutlined';
|
1715
1715
|
}
|
1716
1716
|
|
1717
1717
|
// This icon file is generated automatically.
|
@@ -1725,9 +1725,9 @@ var DeleteOutlined = function DeleteOutlined(props, ref) {
|
|
1725
1725
|
};
|
1726
1726
|
|
1727
1727
|
/** */
|
1728
|
-
var RefIcon$
|
1728
|
+
var RefIcon$7 = /*#__PURE__*/React.forwardRef(DeleteOutlined);
|
1729
1729
|
if (process.env.NODE_ENV !== 'production') {
|
1730
|
-
RefIcon$
|
1730
|
+
RefIcon$7.displayName = 'DeleteOutlined';
|
1731
1731
|
}
|
1732
1732
|
|
1733
1733
|
// This icon file is generated automatically.
|
@@ -1741,9 +1741,9 @@ var EditOutlined = function EditOutlined(props, ref) {
|
|
1741
1741
|
};
|
1742
1742
|
|
1743
1743
|
/** */
|
1744
|
-
var RefIcon$
|
1744
|
+
var RefIcon$6 = /*#__PURE__*/React.forwardRef(EditOutlined);
|
1745
1745
|
if (process.env.NODE_ENV !== 'production') {
|
1746
|
-
RefIcon$
|
1746
|
+
RefIcon$6.displayName = 'EditOutlined';
|
1747
1747
|
}
|
1748
1748
|
|
1749
1749
|
// This icon file is generated automatically.
|
@@ -1757,9 +1757,9 @@ var FilterOutlined = function FilterOutlined(props, ref) {
|
|
1757
1757
|
};
|
1758
1758
|
|
1759
1759
|
/** */
|
1760
|
-
var RefIcon$
|
1760
|
+
var RefIcon$5 = /*#__PURE__*/React.forwardRef(FilterOutlined);
|
1761
1761
|
if (process.env.NODE_ENV !== 'production') {
|
1762
|
-
RefIcon$
|
1762
|
+
RefIcon$5.displayName = 'FilterOutlined';
|
1763
1763
|
}
|
1764
1764
|
|
1765
1765
|
// This icon file is generated automatically.
|
@@ -1773,9 +1773,25 @@ var LeftOutlined = function LeftOutlined(props, ref) {
|
|
1773
1773
|
};
|
1774
1774
|
|
1775
1775
|
/** */
|
1776
|
-
var RefIcon$
|
1776
|
+
var RefIcon$4 = /*#__PURE__*/React.forwardRef(LeftOutlined);
|
1777
1777
|
if (process.env.NODE_ENV !== 'production') {
|
1778
|
-
RefIcon$
|
1778
|
+
RefIcon$4.displayName = 'LeftOutlined';
|
1779
|
+
}
|
1780
|
+
|
1781
|
+
// This icon file is generated automatically.
|
1782
|
+
var LogoutOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z" } }] }, "name": "logout", "theme": "outlined" };
|
1783
|
+
|
1784
|
+
var LogoutOutlined = function LogoutOutlined(props, ref) {
|
1785
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
1786
|
+
ref: ref,
|
1787
|
+
icon: LogoutOutlined$1
|
1788
|
+
}));
|
1789
|
+
};
|
1790
|
+
|
1791
|
+
/** */
|
1792
|
+
var RefIcon$3 = /*#__PURE__*/React.forwardRef(LogoutOutlined);
|
1793
|
+
if (process.env.NODE_ENV !== 'production') {
|
1794
|
+
RefIcon$3.displayName = 'LogoutOutlined';
|
1779
1795
|
}
|
1780
1796
|
|
1781
1797
|
// This icon file is generated automatically.
|
@@ -1789,9 +1805,9 @@ var RightOutlined = function RightOutlined(props, ref) {
|
|
1789
1805
|
};
|
1790
1806
|
|
1791
1807
|
/** */
|
1792
|
-
var RefIcon$
|
1808
|
+
var RefIcon$2 = /*#__PURE__*/React.forwardRef(RightOutlined);
|
1793
1809
|
if (process.env.NODE_ENV !== 'production') {
|
1794
|
-
RefIcon$
|
1810
|
+
RefIcon$2.displayName = 'RightOutlined';
|
1795
1811
|
}
|
1796
1812
|
|
1797
1813
|
// This icon file is generated automatically.
|
@@ -1805,9 +1821,25 @@ var SearchOutlined = function SearchOutlined(props, ref) {
|
|
1805
1821
|
};
|
1806
1822
|
|
1807
1823
|
/** */
|
1808
|
-
var RefIcon = /*#__PURE__*/React.forwardRef(SearchOutlined);
|
1824
|
+
var RefIcon$1 = /*#__PURE__*/React.forwardRef(SearchOutlined);
|
1825
|
+
if (process.env.NODE_ENV !== 'production') {
|
1826
|
+
RefIcon$1.displayName = 'SearchOutlined';
|
1827
|
+
}
|
1828
|
+
|
1829
|
+
// This icon file is generated automatically.
|
1830
|
+
var SettingOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" } }] }, "name": "setting", "theme": "outlined" };
|
1831
|
+
|
1832
|
+
var SettingOutlined = function SettingOutlined(props, ref) {
|
1833
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
1834
|
+
ref: ref,
|
1835
|
+
icon: SettingOutlined$1
|
1836
|
+
}));
|
1837
|
+
};
|
1838
|
+
|
1839
|
+
/** */
|
1840
|
+
var RefIcon = /*#__PURE__*/React.forwardRef(SettingOutlined);
|
1809
1841
|
if (process.env.NODE_ENV !== 'production') {
|
1810
|
-
RefIcon.displayName = '
|
1842
|
+
RefIcon.displayName = 'SettingOutlined';
|
1811
1843
|
}
|
1812
1844
|
|
1813
1845
|
var reactIs = {exports: {}};
|
@@ -6553,29 +6585,33 @@ const DragIcon = ({ stroke, fill }) => /* @__PURE__ */ jsxRuntimeExports.jsx("sv
|
|
6553
6585
|
}
|
6554
6586
|
) });
|
6555
6587
|
|
6556
|
-
const SettingIcon = (
|
6557
|
-
stroke,
|
6558
|
-
fill,
|
6559
|
-
className,
|
6560
|
-
onClick
|
6561
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
6588
|
+
const SettingIcon = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
6562
6589
|
"svg",
|
6563
6590
|
{
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6591
|
+
width: "30",
|
6592
|
+
height: "30",
|
6593
|
+
viewBox: "0 0 30 30",
|
6567
6594
|
fill: "none",
|
6568
|
-
|
6569
|
-
|
6595
|
+
xmlns: "http://www.w3.org/2000/svg",
|
6596
|
+
...props,
|
6570
6597
|
children: [
|
6571
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("rect", {
|
6572
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
6598
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "0.5", y: "0.5", width: "29", height: "29", rx: "14.5", fill: "white" }),
|
6599
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
6600
|
+
"rect",
|
6601
|
+
{
|
6602
|
+
x: "0.5",
|
6603
|
+
y: "0.5",
|
6604
|
+
width: "29",
|
6605
|
+
height: "29",
|
6606
|
+
rx: "14.5",
|
6607
|
+
stroke: props?.stroke || "#D6E6FE"
|
6608
|
+
}
|
6609
|
+
),
|
6573
6610
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
6574
6611
|
"path",
|
6575
6612
|
{
|
6576
|
-
|
6577
|
-
stroke
|
6578
|
-
d: "M16.085 11a1.5 1.5 0 0 1 2.83 0H21v1h-2.085a1.5 1.5 0 0 1-2.83 0H9v-1h5.987M17 11v1h1v-1h-1Zm.5 7a1.5 1.5 0 0 1 1.415 1H21v1h-2.085a1.5 1.5 0 0 1-2.83 0H9v-1h7.085a1.5 1.5 0 0 1 1.415-1Zm-.5 1v1h1v-1h-1Zm4-4v1h-7.085a1.5 1.5 0 0 1-2.83 0H9v-1h2.085a1.5 1.5 0 0 1 2.83 0H21Zm-9 0v1h1v-1h-1Z"
|
6613
|
+
d: "M16.0854 11C16.2913 10.4174 16.8469 10 17.5 10C18.1531 10 18.7087 10.4174 18.9146 11H21V12H18.9146C18.7087 12.5826 18.1531 13 17.5 13C16.8469 13 16.2913 12.5826 16.0854 12C15.6004 12 15.2368 12 14.9943 12C13.6622 12 11.6641 12 9 12V11C11.6611 11 13.6569 11 14.9874 11M17 11V12H18V11H17ZM17.5 18C18.1531 18 18.7087 18.4174 18.9146 19H21V20H18.9146C18.7087 20.5826 18.1531 21 17.5 21C16.8469 21 16.2913 20.5826 16.0854 20H9V19H16.0854C16.2913 18.4174 16.8469 18 17.5 18ZM17 19V20H18V19H17ZM21 15V16H13.9146C13.7087 16.5826 13.1531 17 12.5 17C11.8469 17 11.2913 16.5826 11.0854 16H9V15H11.0854C11.2913 14.4174 11.8469 14 12.5 14C13.1531 14 13.7087 14.4174 13.9146 15H21ZM12 15V16H13V15H12Z",
|
6614
|
+
fill: props?.stroke || "#116DFF"
|
6579
6615
|
}
|
6580
6616
|
)
|
6581
6617
|
]
|
@@ -9783,233 +9819,11 @@ const SettingTable = (props) => {
|
|
9783
9819
|
);
|
9784
9820
|
};
|
9785
9821
|
|
9786
|
-
const containerSearchSelect = "_containerSearchSelect_1f1fs_1";
|
9787
|
-
const inputSearchKey = "_inputSearchKey_1f1fs_8";
|
9788
9822
|
const customBadge = "_customBadge_1f1fs_14";
|
9789
9823
|
const customBadgeActive = "_customBadgeActive_1f1fs_22";
|
9790
|
-
const customContainButtonIcon = "_customContainButtonIcon_1f1fs_31";
|
9791
9824
|
const styles$1 = {
|
9792
|
-
containerSearchSelect: containerSearchSelect,
|
9793
|
-
inputSearchKey: inputSearchKey,
|
9794
9825
|
customBadge: customBadge,
|
9795
|
-
customBadgeActive: customBadgeActive
|
9796
|
-
customContainButtonIcon: customContainButtonIcon
|
9797
|
-
};
|
9798
|
-
|
9799
|
-
class Timer {
|
9800
|
-
timer;
|
9801
|
-
constructor() {
|
9802
|
-
this.timer = null;
|
9803
|
-
}
|
9804
|
-
debounce(func, time) {
|
9805
|
-
if (this.timer) {
|
9806
|
-
clearTimeout(this.timer);
|
9807
|
-
}
|
9808
|
-
this.timer = setTimeout(func, time);
|
9809
|
-
}
|
9810
|
-
}
|
9811
|
-
|
9812
|
-
const SearchIcon = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9813
|
-
"svg",
|
9814
|
-
{
|
9815
|
-
xmlns: "http://www.w3.org/2000/svg",
|
9816
|
-
width: 18,
|
9817
|
-
height: 18,
|
9818
|
-
fill: "none",
|
9819
|
-
...props,
|
9820
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9821
|
-
"path",
|
9822
|
-
{
|
9823
|
-
fill: props?.color || "#116DFF",
|
9824
|
-
fillRule: "evenodd",
|
9825
|
-
d: "M14.854 14.147a.498.498 0 0 1-.704.703l-2.13-2.124a5.5 5.5 0 1 1 .707-.707l2.127 2.128ZM8.5 13a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",
|
9826
|
-
clipRule: "evenodd"
|
9827
|
-
}
|
9828
|
-
)
|
9829
|
-
}
|
9830
|
-
);
|
9831
|
-
|
9832
|
-
const AllowClearIcon = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9833
|
-
"svg",
|
9834
|
-
{
|
9835
|
-
xmlns: "http://www.w3.org/2000/svg",
|
9836
|
-
width: 6,
|
9837
|
-
height: 6,
|
9838
|
-
fill: "none",
|
9839
|
-
...props,
|
9840
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9841
|
-
"path",
|
9842
|
-
{
|
9843
|
-
fill: props?.color || "#116DFF",
|
9844
|
-
fillRule: "evenodd",
|
9845
|
-
d: "M5.2 0 3 2.2.8 0 0 .8 2.2 3 0 5.3l.8.7L3 3.8 5.2 6l.8-.7L3.8 3 6 .8 5.2 0Z",
|
9846
|
-
clipRule: "evenodd"
|
9847
|
-
}
|
9848
|
-
)
|
9849
|
-
}
|
9850
|
-
);
|
9851
|
-
|
9852
|
-
const TrashCanIcon = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9853
|
-
"svg",
|
9854
|
-
{
|
9855
|
-
width: "18",
|
9856
|
-
height: "18",
|
9857
|
-
viewBox: "0 0 24 24",
|
9858
|
-
fill: "none",
|
9859
|
-
xmlns: "http://www.w3.org/2000/svg",
|
9860
|
-
...props,
|
9861
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9862
|
-
"path",
|
9863
|
-
{
|
9864
|
-
d: "M18.893 18.0357L19.393 18.0402V18.0402L18.893 18.0357ZM4.00049 5.5C3.72435 5.5 3.50049 5.72386 3.50049 6C3.50049 6.27614 3.72435 6.5 4.00049 6.5V5.5ZM20.0005 6.5C20.2766 6.5 20.5005 6.27614 20.5005 6C20.5005 5.72386 20.2766 5.5 20.0005 5.5V6.5ZM10.5005 10C10.5005 9.72386 10.2766 9.5 10.0005 9.5C9.72435 9.5 9.50049 9.72386 9.50049 10H10.5005ZM9.50049 18C9.50049 18.2761 9.72435 18.5 10.0005 18.5C10.2766 18.5 10.5005 18.2761 10.5005 18H9.50049ZM14.5005 10C14.5005 9.72386 14.2766 9.5 14.0005 9.5C13.7243 9.5 13.5005 9.72386 13.5005 10H14.5005ZM13.5005 18C13.5005 18.2761 13.7243 18.5 14.0005 18.5C14.2766 18.5 14.5005 18.2761 14.5005 18H13.5005ZM19.0005 6L18.5005 5.99554L18.393 18.0312L18.893 18.0357L19.393 18.0402L19.5005 6.00446L19.0005 6ZM14.8932 22V21.5H9.00049V22V22.5H14.8932V22ZM5.00049 6H4.50049V18H5.00049H5.50049V6H5.00049ZM4.00049 6V6.5H5.00049V6V5.5H4.00049V6ZM5.00049 6V6.5H8.00049V6V5.5H5.00049V6ZM8.00049 6V6.5H16.0005V6V5.5H8.00049V6ZM16.0005 6V6.5H19.0005V6V5.5H16.0005V6ZM19.0005 6V6.5H20.0005V6V5.5H19.0005V6ZM8.00049 5.55556H8.50049C8.50049 3.92176 10.0105 2.5 12.0005 2.5V2V1.5C9.5722 1.5 7.50049 3.262 7.50049 5.55556H8.00049ZM12.0005 2V2.5C13.9905 2.5 15.5005 3.92176 15.5005 5.55556H16.0005H16.5005C16.5005 3.262 14.4288 1.5 12.0005 1.5V2ZM8.00049 5.55556H7.50049V6H8.00049H8.50049V5.55556H8.00049ZM16.0005 5.55556H15.5005V6H16.0005H16.5005V5.55556H16.0005ZM9.00049 22V21.5C7.06749 21.5 5.50049 19.933 5.50049 18H5.00049H4.50049C4.50049 20.4853 6.51521 22.5 9.00049 22.5V22ZM18.893 18.0357L18.393 18.0312C18.3759 19.952 16.814 21.5 14.8932 21.5V22V22.5C17.3628 22.5 19.371 20.5097 19.393 18.0402L18.893 18.0357ZM10.0005 10H9.50049V18H10.0005H10.5005V10H10.0005ZM14.0005 10H13.5005V18H14.0005H14.5005V10H14.0005Z",
|
9865
|
-
fill: props?.color || "#E0E0E0"
|
9866
|
-
}
|
9867
|
-
)
|
9868
|
-
}
|
9869
|
-
);
|
9870
|
-
|
9871
|
-
const RenderFilterFields = (props) => {
|
9872
|
-
const {
|
9873
|
-
control,
|
9874
|
-
handleSubmit,
|
9875
|
-
reset,
|
9876
|
-
isHiddenRemove,
|
9877
|
-
resetToInitialFilters,
|
9878
|
-
isNullFilter
|
9879
|
-
} = props;
|
9880
|
-
const timer = new Timer();
|
9881
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-3 mb-3 ", children: [
|
9882
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
9883
|
-
PnkxField,
|
9884
|
-
{
|
9885
|
-
iconStartInput: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchIcon, {}),
|
9886
|
-
allowClear: {
|
9887
|
-
clearIcon: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "!bg-[#E7F0FF] w-[18px] h-[18px] inline-flex justify-center !items-center rounded-[50%]", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AllowClearIcon, { className: "" }) })
|
9888
|
-
},
|
9889
|
-
className: `!w-[255px] !rounded-[100px] !border-[#BDE3FF] ${styles$1.inputSearchKey}`,
|
9890
|
-
component: Input,
|
9891
|
-
name: "textSearch",
|
9892
|
-
control,
|
9893
|
-
type: "search",
|
9894
|
-
placeholder: "Tìm theo mã, tên thuộc tính",
|
9895
|
-
afterOnChange: () => {
|
9896
|
-
timer.debounce((e) => {
|
9897
|
-
if (handleSubmit) {
|
9898
|
-
handleSubmit(e);
|
9899
|
-
}
|
9900
|
-
}, 300);
|
9901
|
-
}
|
9902
|
-
}
|
9903
|
-
),
|
9904
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
9905
|
-
PnkxField,
|
9906
|
-
{
|
9907
|
-
className: styles$1.containerSearchSelect,
|
9908
|
-
component: Select,
|
9909
|
-
name: "attributeTypeValue",
|
9910
|
-
control,
|
9911
|
-
options: [
|
9912
|
-
{
|
9913
|
-
value: "1",
|
9914
|
-
label: "Loại 1"
|
9915
|
-
},
|
9916
|
-
{
|
9917
|
-
value: "2",
|
9918
|
-
label: "Loại 2"
|
9919
|
-
},
|
9920
|
-
{
|
9921
|
-
value: "3",
|
9922
|
-
label: "Loại 3"
|
9923
|
-
}
|
9924
|
-
],
|
9925
|
-
placeholder: "Loại thuộc tính",
|
9926
|
-
afterOnChange: () => {
|
9927
|
-
timer.debounce((e) => {
|
9928
|
-
if (handleSubmit) {
|
9929
|
-
handleSubmit(e);
|
9930
|
-
}
|
9931
|
-
}, 300);
|
9932
|
-
}
|
9933
|
-
}
|
9934
|
-
),
|
9935
|
-
!isHiddenRemove && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9936
|
-
Button,
|
9937
|
-
{
|
9938
|
-
onClick: () => {
|
9939
|
-
resetToInitialFilters();
|
9940
|
-
if (reset) {
|
9941
|
-
reset();
|
9942
|
-
}
|
9943
|
-
},
|
9944
|
-
className: twMerge(
|
9945
|
-
"!rounded-full items-center",
|
9946
|
-
isNullFilter ? "!border-none !text-[#E0E0E0] !shadow-none !font-light" : "!border-[#FFCDC9] !text-[#DD4338]",
|
9947
|
-
styles$1.customContainButtonIcon
|
9948
|
-
),
|
9949
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(TrashCanIcon, { color: isNullFilter ? "" : "#DD4338" }),
|
9950
|
-
children: "Xoá tất cả"
|
9951
|
-
}
|
9952
|
-
)
|
9953
|
-
] });
|
9954
|
-
};
|
9955
|
-
|
9956
|
-
const Tag = (props) => {
|
9957
|
-
const { children, ...rest } = props;
|
9958
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Tag$1, { ...rest, children: [
|
9959
|
-
" ",
|
9960
|
-
children
|
9961
|
-
] });
|
9962
|
-
};
|
9963
|
-
|
9964
|
-
const TagsFilter = (props) => {
|
9965
|
-
const { items, resetToInitialFilters, reset, setItems, isHiddenRemove } = props;
|
9966
|
-
const handleRemoveTag = (removeIndex) => {
|
9967
|
-
if (!items) return;
|
9968
|
-
const newTags = [
|
9969
|
-
...items.slice(0, removeIndex),
|
9970
|
-
...items.slice(removeIndex + 1)
|
9971
|
-
];
|
9972
|
-
console.log(newTags);
|
9973
|
-
setItems && setItems(newTags);
|
9974
|
-
};
|
9975
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "", children: [
|
9976
|
-
items?.map((tag, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9977
|
-
Tag,
|
9978
|
-
{
|
9979
|
-
closable: {
|
9980
|
-
closeIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(AllowClearIcon, { className: "inline !ml-2", color: "#000624" }),
|
9981
|
-
"aria-label": "Close Button"
|
9982
|
-
},
|
9983
|
-
className: "!pt-[5px] !pb-[5px] !pl-[9px] w-fit !rounded-[100px] !text-[#0F1D40] !text-[14px]",
|
9984
|
-
color: "#C4DEF9",
|
9985
|
-
onClose: (e) => {
|
9986
|
-
e.preventDefault();
|
9987
|
-
handleRemoveTag(index);
|
9988
|
-
},
|
9989
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: tag })
|
9990
|
-
},
|
9991
|
-
index
|
9992
|
-
)),
|
9993
|
-
!isHiddenRemove && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
9994
|
-
Button,
|
9995
|
-
{
|
9996
|
-
onClick: () => {
|
9997
|
-
resetToInitialFilters();
|
9998
|
-
if (reset) {
|
9999
|
-
reset();
|
10000
|
-
}
|
10001
|
-
setItems && setItems([]);
|
10002
|
-
},
|
10003
|
-
className: twMerge(
|
10004
|
-
"!rounded-[100px] !border-[#FFCDC9] !text-[#DD4338]",
|
10005
|
-
styles$1.customContainButtonIcon
|
10006
|
-
),
|
10007
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(TrashCanIcon, { color: "#DD4338" }),
|
10008
|
-
children: "Xoá tất cả"
|
10009
|
-
}
|
10010
|
-
)
|
10011
|
-
] });
|
10012
|
-
};
|
9826
|
+
customBadgeActive: customBadgeActive};
|
10013
9827
|
|
10014
9828
|
const typeColorMap = {
|
10015
9829
|
error: "red",
|
@@ -10022,6 +9836,15 @@ const Badge = ({ type, children, customColor, ...rest }) => {
|
|
10022
9836
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge$1, { color, ...rest, children });
|
10023
9837
|
};
|
10024
9838
|
|
9839
|
+
const groupHeadingButtonItems = [
|
9840
|
+
{ label: "Tất cả", value: 1155, keyActive: 1 },
|
9841
|
+
{ label: "Hoạt động", value: 15, keyActive: 2 },
|
9842
|
+
{ label: "Ngưng hoạt động", value: 16, keyActive: 3 },
|
9843
|
+
{ label: "Tạo mới", value: 12, keyActive: 4 },
|
9844
|
+
{ label: "Chờ duyệt", value: 43, keyActive: 5 },
|
9845
|
+
{ label: "Từ chối duyệt", value: 34, keyActive: 6 },
|
9846
|
+
{ label: "Đã xoá", value: 23, keyActive: 7 }
|
9847
|
+
];
|
10025
9848
|
const ButtonBadge = (props) => {
|
10026
9849
|
const { label, value, active, setKeyActive, keyActive } = props;
|
10027
9850
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
@@ -10045,8 +9868,11 @@ const ButtonBadge = (props) => {
|
|
10045
9868
|
}
|
10046
9869
|
);
|
10047
9870
|
};
|
10048
|
-
const GroupHeadingButton = (
|
10049
|
-
const
|
9871
|
+
const GroupHeadingButton = () => {
|
9872
|
+
const [keyActive, setKeyActive] = useState(1);
|
9873
|
+
const [items, setItems] = useState(
|
9874
|
+
groupHeadingButtonItems
|
9875
|
+
);
|
10050
9876
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "pb-[15px]", children: items?.map((i, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
10051
9877
|
ButtonBadge,
|
10052
9878
|
{
|
@@ -10060,54 +9886,6 @@ const GroupHeadingButton = (props) => {
|
|
10060
9886
|
)) });
|
10061
9887
|
};
|
10062
9888
|
|
10063
|
-
const SearchFiltersForm = ({
|
10064
|
-
initialValues,
|
10065
|
-
renderFilterFields,
|
10066
|
-
onSubmit,
|
10067
|
-
onReset,
|
10068
|
-
classNamesContainer,
|
10069
|
-
classNameWrapperForm,
|
10070
|
-
hideDefaultSubmit,
|
10071
|
-
hideResetButton
|
10072
|
-
}) => {
|
10073
|
-
const { control, handleSubmit, reset, setValue } = useForm({
|
10074
|
-
defaultValues: initialValues
|
10075
|
-
});
|
10076
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { className: classNameWrapperForm, onSubmit: handleSubmit(onSubmit), children: [
|
10077
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNamesContainer, children: renderFilterFields && renderFilterFields({
|
10078
|
-
control,
|
10079
|
-
setValue,
|
10080
|
-
handleSubmit: handleSubmit(onSubmit),
|
10081
|
-
reset
|
10082
|
-
}) }),
|
10083
|
-
!hideDefaultSubmit && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-end gap-2 mb-3", children: [
|
10084
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
10085
|
-
Button,
|
10086
|
-
{
|
10087
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon, {}),
|
10088
|
-
className: "px-3 py-1 ",
|
10089
|
-
color: "blue",
|
10090
|
-
variant: "solid",
|
10091
|
-
htmlType: "submit",
|
10092
|
-
children: "Tìm kiếm"
|
10093
|
-
}
|
10094
|
-
),
|
10095
|
-
!hideResetButton && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
10096
|
-
Button,
|
10097
|
-
{
|
10098
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$3, {}),
|
10099
|
-
className: "px-3 py-1",
|
10100
|
-
onClick: () => {
|
10101
|
-
reset();
|
10102
|
-
onReset?.();
|
10103
|
-
},
|
10104
|
-
children: "Đặt lại"
|
10105
|
-
}
|
10106
|
-
)
|
10107
|
-
] })
|
10108
|
-
] });
|
10109
|
-
};
|
10110
|
-
|
10111
9889
|
const Breadcrumb = (props) => {
|
10112
9890
|
const { containerClassName, breadcrumbClassName, ...restProps } = props;
|
10113
9891
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: containerClassName, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb$1, { className: breadcrumbClassName, ...restProps }) });
|
@@ -10142,10 +9920,6 @@ const Heading = (props) => {
|
|
10142
9920
|
] });
|
10143
9921
|
};
|
10144
9922
|
|
10145
|
-
function hasFalsyFieldsObject(obj) {
|
10146
|
-
return Object.values(obj).every((value) => !value);
|
10147
|
-
}
|
10148
|
-
|
10149
9923
|
const Tooltip = ({ children, ...props }) => {
|
10150
9924
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { ...props, children });
|
10151
9925
|
};
|
@@ -10188,82 +9962,20 @@ const HeadingTable = (props) => {
|
|
10188
9962
|
resetToInitialFilters,
|
10189
9963
|
setOpenStting,
|
10190
9964
|
showSetting,
|
10191
|
-
|
10192
|
-
|
10193
|
-
groupHeadingButtonItems,
|
10194
|
-
tagSearchItems,
|
10195
|
-
setTagSearchItems
|
9965
|
+
renderHeadingSearch,
|
9966
|
+
rightHeadingContent
|
10196
9967
|
} = props;
|
10197
9968
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
10198
9969
|
Heading,
|
10199
9970
|
{
|
10200
9971
|
breadcrumbItems: breadCrumb,
|
10201
9972
|
classNameWrapHeading: "justify-between",
|
10202
|
-
rightContent:
|
10203
|
-
Button,
|
10204
|
-
{
|
10205
|
-
color: "blue",
|
10206
|
-
variant: "solid",
|
10207
|
-
shape: "round",
|
10208
|
-
rootClassName: "transform translate-y-[110%]",
|
10209
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$7, {}),
|
10210
|
-
children: "Thêm mới"
|
10211
|
-
}
|
10212
|
-
),
|
9973
|
+
rightContent: rightHeadingContent,
|
10213
9974
|
children: [
|
10214
|
-
|
10215
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
10216
|
-
SearchFiltersForm,
|
10217
|
-
{
|
10218
|
-
onSubmit: (values) => {
|
10219
|
-
handleSearch({
|
10220
|
-
...filters,
|
10221
|
-
keyword: values?.keyword,
|
10222
|
-
attributeType: values?.attributeType
|
10223
|
-
});
|
10224
|
-
},
|
10225
|
-
initialValues: {
|
10226
|
-
keyword: filters?.keyword,
|
10227
|
-
attributeType: filters?.attributeType
|
10228
|
-
},
|
10229
|
-
classNamesContainer: "flex",
|
10230
|
-
hideDefaultSubmit: true,
|
10231
|
-
renderFilterFields: ({ control, handleSubmit, reset }) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
10232
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
10233
|
-
RenderFilterFields,
|
10234
|
-
{
|
10235
|
-
control,
|
10236
|
-
handleSubmit,
|
10237
|
-
reset,
|
10238
|
-
resetToInitialFilters,
|
10239
|
-
isHiddenRemove: !!tagSearchItems && tagSearchItems?.length > 0,
|
10240
|
-
isNullFilter: hasFalsyFieldsObject(
|
10241
|
-
lodashExports.omit(filters, ["PageIndex", "PageSize"])
|
10242
|
-
)
|
10243
|
-
}
|
10244
|
-
),
|
10245
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
10246
|
-
TagsFilter,
|
10247
|
-
{
|
10248
|
-
items: tagSearchItems,
|
10249
|
-
setItems: setTagSearchItems,
|
10250
|
-
resetToInitialFilters,
|
10251
|
-
isHiddenRemove: !tagSearchItems || tagSearchItems?.length === 0
|
10252
|
-
}
|
10253
|
-
)
|
10254
|
-
] })
|
10255
|
-
}
|
10256
|
-
),
|
10257
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, {}),
|
9975
|
+
renderHeadingSearch(filters, handleSearch, resetToInitialFilters),
|
9976
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, { className: "!my-5 !mb-4" }),
|
10258
9977
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between items-center", children: [
|
10259
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
10260
|
-
GroupHeadingButton,
|
10261
|
-
{
|
10262
|
-
keyActive,
|
10263
|
-
setKeyActive,
|
10264
|
-
items: groupHeadingButtonItems
|
10265
|
-
}
|
10266
|
-
),
|
9978
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(GroupHeadingButton, {}),
|
10267
9979
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
10268
9980
|
IconSettingTable,
|
10269
9981
|
{
|
@@ -10572,6 +10284,8 @@ const tableCss = css`
|
|
10572
10284
|
.ant-table-thead .ant-table-cell {
|
10573
10285
|
background-color: #d6e6fe;
|
10574
10286
|
font-weight: 500;
|
10287
|
+
border-start-start-radius: 0 !important;
|
10288
|
+
border-start-end-radius: 0 !important;
|
10575
10289
|
}
|
10576
10290
|
|
10577
10291
|
.ant-table-thead th.ant-table-column-has-sorters:hover {
|
@@ -10610,11 +10324,10 @@ const Table = ({
|
|
10610
10324
|
setColumns,
|
10611
10325
|
resetToInitialFilters,
|
10612
10326
|
handleSearch,
|
10613
|
-
groupHeadingButtonItems,
|
10614
10327
|
tagSearchItems,
|
10615
10328
|
setTagSearchItems,
|
10616
|
-
|
10617
|
-
|
10329
|
+
renderHeadingSearch,
|
10330
|
+
rightHeadingContent,
|
10618
10331
|
status,
|
10619
10332
|
...rest
|
10620
10333
|
}) => {
|
@@ -10681,7 +10394,7 @@ const Table = ({
|
|
10681
10394
|
{
|
10682
10395
|
title: "Bạn có chắc chắn muốn huỷ chỉnh sửa?",
|
10683
10396
|
onConfirm: cancel,
|
10684
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography
|
10397
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: " Huỷ bỏ" })
|
10685
10398
|
}
|
10686
10399
|
),
|
10687
10400
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { htmlType: "submit", variant: "text", color: "blue", children: "Lưu" })
|
@@ -10691,7 +10404,7 @@ const Table = ({
|
|
10691
10404
|
{
|
10692
10405
|
disabled: editingKey !== "",
|
10693
10406
|
onClick: () => edit(record),
|
10694
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$
|
10407
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$6, {}),
|
10695
10408
|
variant: "text",
|
10696
10409
|
color: "blue"
|
10697
10410
|
}
|
@@ -10701,7 +10414,7 @@ const Table = ({
|
|
10701
10414
|
Button,
|
10702
10415
|
{
|
10703
10416
|
disabled: editingKey !== "",
|
10704
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$
|
10417
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$7, {}),
|
10705
10418
|
variant: "text",
|
10706
10419
|
color: "red"
|
10707
10420
|
}
|
@@ -10754,16 +10467,13 @@ const Table = ({
|
|
10754
10467
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
10755
10468
|
HeadingTable,
|
10756
10469
|
{
|
10470
|
+
rightHeadingContent,
|
10471
|
+
renderHeadingSearch,
|
10757
10472
|
filters,
|
10758
10473
|
handleSearch,
|
10759
10474
|
resetToInitialFilters,
|
10760
10475
|
setOpenStting,
|
10761
|
-
showSetting
|
10762
|
-
groupHeadingButtonItems,
|
10763
|
-
tagSearchItems,
|
10764
|
-
setTagSearchItems,
|
10765
|
-
keyActive,
|
10766
|
-
setKeyActive
|
10476
|
+
showSetting
|
10767
10477
|
}
|
10768
10478
|
),
|
10769
10479
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -10892,6 +10602,54 @@ const Popover = (props) => {
|
|
10892
10602
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: containerClassName, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Popover$1, { className: popoverClassName, ...restProps }) });
|
10893
10603
|
};
|
10894
10604
|
|
10605
|
+
const SearchFiltersForm = ({
|
10606
|
+
initialValues,
|
10607
|
+
renderFilterFields,
|
10608
|
+
onSubmit,
|
10609
|
+
onReset,
|
10610
|
+
classNamesContainer,
|
10611
|
+
classNameWrapperForm,
|
10612
|
+
hideDefaultSubmit,
|
10613
|
+
hideResetButton
|
10614
|
+
}) => {
|
10615
|
+
const { control, handleSubmit, reset, setValue } = useForm({
|
10616
|
+
defaultValues: initialValues
|
10617
|
+
});
|
10618
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { className: classNameWrapperForm, onSubmit: handleSubmit(onSubmit), children: [
|
10619
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNamesContainer, children: renderFilterFields && renderFilterFields({
|
10620
|
+
control,
|
10621
|
+
setValue,
|
10622
|
+
handleSubmit: handleSubmit(onSubmit),
|
10623
|
+
reset
|
10624
|
+
}) }),
|
10625
|
+
!hideDefaultSubmit && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-end gap-2 mb-3", children: [
|
10626
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
10627
|
+
Button,
|
10628
|
+
{
|
10629
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$1, {}),
|
10630
|
+
className: "px-3 py-1 ",
|
10631
|
+
color: "blue",
|
10632
|
+
variant: "solid",
|
10633
|
+
htmlType: "submit",
|
10634
|
+
children: "Tìm kiếm"
|
10635
|
+
}
|
10636
|
+
),
|
10637
|
+
!hideResetButton && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
10638
|
+
Button,
|
10639
|
+
{
|
10640
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$5, {}),
|
10641
|
+
className: "px-3 py-1",
|
10642
|
+
onClick: () => {
|
10643
|
+
reset();
|
10644
|
+
onReset?.();
|
10645
|
+
},
|
10646
|
+
children: "Đặt lại"
|
10647
|
+
}
|
10648
|
+
)
|
10649
|
+
] })
|
10650
|
+
] });
|
10651
|
+
};
|
10652
|
+
|
10895
10653
|
const Container = ({
|
10896
10654
|
children,
|
10897
10655
|
className,
|
@@ -14487,7 +14245,7 @@ function genStyleUtils(config) {
|
|
14487
14245
|
};
|
14488
14246
|
}
|
14489
14247
|
|
14490
|
-
const version = '5.25.
|
14248
|
+
const version = '5.25.1';
|
14491
14249
|
|
14492
14250
|
function isStableColor(color) {
|
14493
14251
|
return color >= 0 && color <= 255;
|
@@ -16702,11 +16460,11 @@ const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
16702
16460
|
onClick: toggle,
|
16703
16461
|
className: classNames(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
|
16704
16462
|
style: zeroWidthTriggerStyle
|
16705
|
-
}, trigger || /*#__PURE__*/React.createElement(RefIcon$
|
16463
|
+
}, trigger || /*#__PURE__*/React.createElement(RefIcon$8, null))) : null;
|
16706
16464
|
const reverseIcon = direction === 'rtl' === !reverseArrow;
|
16707
16465
|
const iconObj = {
|
16708
|
-
expanded: reverseIcon ? /*#__PURE__*/React.createElement(RefIcon$
|
16709
|
-
collapsed: reverseIcon ? /*#__PURE__*/React.createElement(RefIcon$
|
16466
|
+
expanded: reverseIcon ? /*#__PURE__*/React.createElement(RefIcon$2, null) : /*#__PURE__*/React.createElement(RefIcon$4, null),
|
16467
|
+
collapsed: reverseIcon ? /*#__PURE__*/React.createElement(RefIcon$4, null) : /*#__PURE__*/React.createElement(RefIcon$2, null)
|
16710
16468
|
};
|
16711
16469
|
const status = collapsed ? 'collapsed' : 'expanded';
|
16712
16470
|
const defaultTrigger = iconObj[status];
|
@@ -16937,31 +16695,6 @@ const StepsComponent = (props) => {
|
|
16937
16695
|
StepsComponent.Step = Steps$1.Step;
|
16938
16696
|
const Steps = StepsComponent;
|
16939
16697
|
|
16940
|
-
function ArrowLeftStartOnRectangleIcon({
|
16941
|
-
title,
|
16942
|
-
titleId,
|
16943
|
-
...props
|
16944
|
-
}, svgRef) {
|
16945
|
-
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
16946
|
-
xmlns: "http://www.w3.org/2000/svg",
|
16947
|
-
fill: "none",
|
16948
|
-
viewBox: "0 0 24 24",
|
16949
|
-
strokeWidth: 1.5,
|
16950
|
-
stroke: "currentColor",
|
16951
|
-
"aria-hidden": "true",
|
16952
|
-
"data-slot": "icon",
|
16953
|
-
ref: svgRef,
|
16954
|
-
"aria-labelledby": titleId
|
16955
|
-
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
16956
|
-
id: titleId
|
16957
|
-
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
16958
|
-
strokeLinecap: "round",
|
16959
|
-
strokeLinejoin: "round",
|
16960
|
-
d: "M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0-3-3m0 0 3-3m-3 3H15"
|
16961
|
-
}));
|
16962
|
-
}
|
16963
|
-
const ForwardRef$4 = /*#__PURE__*/ React.forwardRef(ArrowLeftStartOnRectangleIcon);
|
16964
|
-
|
16965
16698
|
function ChevronDownIcon({
|
16966
16699
|
title,
|
16967
16700
|
titleId,
|
@@ -16985,7 +16718,7 @@ function ChevronDownIcon({
|
|
16985
16718
|
d: "m19.5 8.25-7.5 7.5-7.5-7.5"
|
16986
16719
|
}));
|
16987
16720
|
}
|
16988
|
-
const ForwardRef$
|
16721
|
+
const ForwardRef$2 = /*#__PURE__*/ React.forwardRef(ChevronDownIcon);
|
16989
16722
|
|
16990
16723
|
function ChevronLeftIcon({
|
16991
16724
|
title,
|
@@ -17010,7 +16743,7 @@ function ChevronLeftIcon({
|
|
17010
16743
|
d: "M15.75 19.5 8.25 12l7.5-7.5"
|
17011
16744
|
}));
|
17012
16745
|
}
|
17013
|
-
const ForwardRef$
|
16746
|
+
const ForwardRef$1 = /*#__PURE__*/ React.forwardRef(ChevronLeftIcon);
|
17014
16747
|
|
17015
16748
|
function ChevronUpIcon({
|
17016
16749
|
title,
|
@@ -17035,36 +16768,7 @@ function ChevronUpIcon({
|
|
17035
16768
|
d: "m4.5 15.75 7.5-7.5 7.5 7.5"
|
17036
16769
|
}));
|
17037
16770
|
}
|
17038
|
-
const ForwardRef
|
17039
|
-
|
17040
|
-
function Cog6ToothIcon({
|
17041
|
-
title,
|
17042
|
-
titleId,
|
17043
|
-
...props
|
17044
|
-
}, svgRef) {
|
17045
|
-
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
17046
|
-
xmlns: "http://www.w3.org/2000/svg",
|
17047
|
-
fill: "none",
|
17048
|
-
viewBox: "0 0 24 24",
|
17049
|
-
strokeWidth: 1.5,
|
17050
|
-
stroke: "currentColor",
|
17051
|
-
"aria-hidden": "true",
|
17052
|
-
"data-slot": "icon",
|
17053
|
-
ref: svgRef,
|
17054
|
-
"aria-labelledby": titleId
|
17055
|
-
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
17056
|
-
id: titleId
|
17057
|
-
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
17058
|
-
strokeLinecap: "round",
|
17059
|
-
strokeLinejoin: "round",
|
17060
|
-
d: "M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"
|
17061
|
-
}), /*#__PURE__*/React.createElement("path", {
|
17062
|
-
strokeLinecap: "round",
|
17063
|
-
strokeLinejoin: "round",
|
17064
|
-
d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
17065
|
-
}));
|
17066
|
-
}
|
17067
|
-
const ForwardRef = /*#__PURE__*/ React.forwardRef(Cog6ToothIcon);
|
16771
|
+
const ForwardRef = /*#__PURE__*/ React.forwardRef(ChevronUpIcon);
|
17068
16772
|
|
17069
16773
|
const userInfo = {
|
17070
16774
|
avatar: "https://img.freepik.com/premium-vector/character-avatar-isolated_729149-194801.jpg?semt=ais_hybrid&w=740",
|
@@ -17075,6 +16779,11 @@ const languageInfo = {
|
|
17075
16779
|
flag: "https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Flag_of_Vietnam.svg/2560px-Flag_of_Vietnam.svg.png",
|
17076
16780
|
label: "Tiếng việt"
|
17077
16781
|
};
|
16782
|
+
css`
|
16783
|
+
.setting-icon {
|
16784
|
+
color: white;
|
16785
|
+
}
|
16786
|
+
`;
|
17078
16787
|
const bottomMenu = [
|
17079
16788
|
{
|
17080
16789
|
key: "user",
|
@@ -17107,7 +16816,7 @@ const bottomMenu = [
|
|
17107
16816
|
},
|
17108
16817
|
{
|
17109
16818
|
key: "settings",
|
17110
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
16819
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon, { style: { color: "white" } }),
|
17111
16820
|
label: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col whitespace-nowrap", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
17112
16821
|
"a",
|
17113
16822
|
{
|
@@ -17120,7 +16829,7 @@ const bottomMenu = [
|
|
17120
16829
|
},
|
17121
16830
|
{
|
17122
16831
|
key: "logout",
|
17123
|
-
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
16832
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$3, { style: { color: "white" } }),
|
17124
16833
|
label: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col whitespace-nowrap", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
17125
16834
|
"a",
|
17126
16835
|
{
|
@@ -17185,6 +16894,20 @@ const Sidebar = ({ children, menu }) => {
|
|
17185
16894
|
)
|
17186
16895
|
}
|
17187
16896
|
),
|
16897
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: !collapse ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-[12px] m-auto flex items-center justify-center w-10 h-10 bg-white", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: "https://pouch.jumpshare.com/preview/hOWXgtQM_x234lxOpA4km_sb9utNoaWZICgdH81HOY8wLadm2DjgwtyWnKwkJ2mlYX-z8bWrjfOrB2uhrRotd2hlUvBN6o9cv6E6pgbM-_s" }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
16898
|
+
Input,
|
16899
|
+
{
|
16900
|
+
className: "h-[40px]",
|
16901
|
+
iconStartInput: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
16902
|
+
"img",
|
16903
|
+
{
|
16904
|
+
className: "w-[20px] h-[20px]",
|
16905
|
+
src: "https://pouch.jumpshare.com/preview/hOWXgtQM_x234lxOpA4km_sb9utNoaWZICgdH81HOY8wLadm2DjgwtyWnKwkJ2mlYX-z8bWrjfOrB2uhrRotd2hlUvBN6o9cv6E6pgbM-_s"
|
16906
|
+
}
|
16907
|
+
),
|
16908
|
+
placeholder: "Tìm kiếm"
|
16909
|
+
}
|
16910
|
+
) }) }),
|
17188
16911
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { className: twMerge("flex flex-1 flex-col px-2"), children: [
|
17189
16912
|
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { role: "list", className: twMerge("-mx-2 space-y-1 relative"), children: menu.map((item) => {
|
17190
16913
|
const isActive = openSubCollapse || [activeMainMenu, pathUrl].includes(item.href) || collapse;
|
@@ -17300,7 +17023,7 @@ const Sidebar = ({ children, menu }) => {
|
|
17300
17023
|
className: twMerge(
|
17301
17024
|
"absolute top-1/19 transform -translate-y-1/2 cursor-pointer bg-[#FFFFFF] z-10 text-[#3078BD] rounded-full w-10 h-10 flex items-center justify-center shadow transition-all duration-300 left-44 sm:left-40 md:left-48 lg:left-70"
|
17302
17025
|
),
|
17303
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ForwardRef$
|
17026
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ForwardRef$1, { className: twMerge("w-4 h-4") })
|
17304
17027
|
}
|
17305
17028
|
),
|
17306
17029
|
openSubCollapse && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
@@ -17354,7 +17077,7 @@ const Sidebar = ({ children, menu }) => {
|
|
17354
17077
|
children: [
|
17355
17078
|
activeMenu.icon,
|
17356
17079
|
activeMenu.name,
|
17357
|
-
openSubmenu === activeMenu.name ? /* @__PURE__ */ jsxRuntimeExports.jsx(ForwardRef
|
17080
|
+
openSubmenu === activeMenu.name ? /* @__PURE__ */ jsxRuntimeExports.jsx(ForwardRef, { className: twMerge("w-4 h-4 ml-auto") }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ForwardRef$2, { className: twMerge("w-4 h-4 ml-auto") })
|
17358
17081
|
]
|
17359
17082
|
}
|
17360
17083
|
),
|
@@ -17386,7 +17109,7 @@ const Sidebar = ({ children, menu }) => {
|
|
17386
17109
|
{
|
17387
17110
|
className: twMerge(
|
17388
17111
|
collapse && openSubCollapse ? "ml-18" : "",
|
17389
|
-
"flex-1 h-screen overflow-y-auto scrollbar-none"
|
17112
|
+
"flex-1 p-4 h-screen overflow-y-auto scrollbar-none"
|
17390
17113
|
),
|
17391
17114
|
children
|
17392
17115
|
}
|
@@ -17394,6 +17117,14 @@ const Sidebar = ({ children, menu }) => {
|
|
17394
17117
|
] });
|
17395
17118
|
};
|
17396
17119
|
|
17120
|
+
const Tag = (props) => {
|
17121
|
+
const { children, ...rest } = props;
|
17122
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Tag$1, { ...rest, children: [
|
17123
|
+
" ",
|
17124
|
+
children
|
17125
|
+
] });
|
17126
|
+
};
|
17127
|
+
|
17397
17128
|
const Alert = (props) => {
|
17398
17129
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { ...props });
|
17399
17130
|
};
|
@@ -17454,9 +17185,9 @@ const Tree = (props) => {
|
|
17454
17185
|
};
|
17455
17186
|
|
17456
17187
|
const Watermark = ({ ...rest }) => {
|
17457
|
-
const { Paragraph } = Typography
|
17188
|
+
const { Paragraph } = Typography;
|
17458
17189
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex$1, { gap: "middle", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Watermark$1, { ...rest, children: [
|
17459
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography
|
17190
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography, { children: [
|
17460
17191
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Paragraph, { children: "The light-speed iteration of the digital world makes products more complex. However, human consciousness and attention resources are limited. Facing this design contradiction, the pursuit of natural interaction will be the consistent direction of Ant Design." }),
|
17461
17192
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Paragraph, { children: "Natural user cognition: According to cognitive psychology, about 80% of external information is obtained through visual channels. The most important visual elements in the interface design, including layout, colors, illustrations, icons, etc., should fully absorb the laws of nature, thereby reducing the user's cognitive cost and bringing authentic and smooth feelings. In some scenarios, opportunely adding other sensory channels such as hearing, touch can create a richer and more natural product experience." }),
|
17462
17193
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Paragraph, { children: "Natural user behavior: In the interaction with the system, the designer should fully understand the relationship between users, system roles, and task objectives, and also contextually organize system functions and services. At the same time, a series of methods such as behavior analysis, artificial intelligence and sensors could be applied to assist users to make effective decisions and reduce extra operations of users, to save users' mental and physical resources and make human-computer interaction more natural." })
|