@pnkx-lib/ui 1.1.8 → 1.1.9
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/chunks/AntdIcon-OM3ycq04.js +2263 -0
- package/dist/chunks/{Sidebar-QaBrSIFu.js → Sidebar-Biqbo1mS.js} +51 -49
- package/dist/chunks/Switch-DKxIhHNw.js +14946 -0
- package/dist/fields/index.js +9 -10
- package/dist/index.js +19 -19
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/Checkbox-DMRMEXmZ.js +0 -142
- package/dist/chunks/Switch-D8Nh_AP-.js +0 -17062
@@ -1,4 +1,4 @@
|
|
1
|
-
import { j as E,
|
1
|
+
import { j as E, I as Ut, _ as Gt, u as cc, c as bt, a as lc } from "./AntdIcon-OM3ycq04.js";
|
2
2
|
import { Button as uc, Cascader as fc, Space as It, Card as _a, Skeleton as Mo, Table as dc, Empty as hc, Modal as mc, Tooltip as pc, Tabs as vc, Popover as gc, Badge as yc, Col as bc, Row as xc, Dropdown as Sc, Breadcrumb as Cc, Flex as Ec, Splitter as No, Menu as Xt, Pagination as wc, Steps as Lo } from "antd";
|
3
3
|
import * as h from "react";
|
4
4
|
import Re, { useEffect as Je, useContext as Ze, createContext as Io, version as kc, isValidElement as Pc, useRef as Ke, useLayoutEffect as Tc, useState as ht } from "react";
|
@@ -928,42 +928,8 @@ var fl = function(t) {
|
|
928
928
|
return r;
|
929
929
|
}, Xo = fl({
|
930
930
|
key: "css"
|
931
|
-
}), hl = Xo.cx, ml = Xo.css
|
932
|
-
|
933
|
-
ref: r,
|
934
|
-
icon: pl
|
935
|
-
}));
|
936
|
-
}, Ko = /* @__PURE__ */ h.forwardRef(vl);
|
937
|
-
process.env.NODE_ENV !== "production" && (Ko.displayName = "BarsOutlined");
|
938
|
-
var gl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z" } }] }, name: "filter", theme: "outlined" }, yl = function(t, r) {
|
939
|
-
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
940
|
-
ref: r,
|
941
|
-
icon: gl
|
942
|
-
}));
|
943
|
-
}, qo = /* @__PURE__ */ h.forwardRef(yl);
|
944
|
-
process.env.NODE_ENV !== "production" && (qo.displayName = "FilterOutlined");
|
945
|
-
var bl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, xl = function(t, r) {
|
946
|
-
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
947
|
-
ref: r,
|
948
|
-
icon: bl
|
949
|
-
}));
|
950
|
-
}, pn = /* @__PURE__ */ h.forwardRef(xl);
|
951
|
-
process.env.NODE_ENV !== "production" && (pn.displayName = "LeftOutlined");
|
952
|
-
var Sl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Cl = function(t, r) {
|
953
|
-
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
954
|
-
ref: r,
|
955
|
-
icon: Sl
|
956
|
-
}));
|
957
|
-
}, vn = /* @__PURE__ */ h.forwardRef(Cl);
|
958
|
-
process.env.NODE_ENV !== "production" && (vn.displayName = "RightOutlined");
|
959
|
-
var El = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, wl = function(t, r) {
|
960
|
-
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
961
|
-
ref: r,
|
962
|
-
icon: El
|
963
|
-
}));
|
964
|
-
}, Yo = /* @__PURE__ */ h.forwardRef(wl);
|
965
|
-
process.env.NODE_ENV !== "production" && (Yo.displayName = "SearchOutlined");
|
966
|
-
const ar = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ E.jsx(Mo.Input, { size: "small", block: !0, active: !0 }, r)), kl = ({ type: e, skeletonButtonCount: t }) => e === "table" ? /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
931
|
+
}), hl = Xo.cx, ml = Xo.css;
|
932
|
+
const ar = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ E.jsx(Mo.Input, { size: "small", block: !0, active: !0 }, r)), pl = ({ type: e, skeletonButtonCount: t }) => e === "table" ? /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
967
933
|
/* @__PURE__ */ E.jsxs(
|
968
934
|
"div",
|
969
935
|
{
|
@@ -980,14 +946,14 @@ const ar = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ E.jsx(
|
|
980
946
|
}
|
981
947
|
),
|
982
948
|
/* @__PURE__ */ E.jsx(_a, { children: /* @__PURE__ */ E.jsx(It, { direction: "vertical", size: "middle", style: { width: "100%" }, children: ar(10) }) }),
|
983
|
-
/* @__PURE__ */ E.jsx("div", { style: { ...
|
984
|
-
] }) : /* @__PURE__ */ E.jsx(_a, { children: /* @__PURE__ */ E.jsx("div", { style: { display: "grid", rowGap: 8 }, children: ar(3) }) }),
|
949
|
+
/* @__PURE__ */ E.jsx("div", { style: { ...vl.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ E.jsx(Mo.Input, { size: "small", active: !0 }) })
|
950
|
+
] }) : /* @__PURE__ */ E.jsx(_a, { children: /* @__PURE__ */ E.jsx("div", { style: { display: "grid", rowGap: 8 }, children: ar(3) }) }), vl = {
|
985
951
|
rightAlign: {
|
986
952
|
display: "flex",
|
987
953
|
justifyContent: "flex-end",
|
988
954
|
width: "100%"
|
989
955
|
}
|
990
|
-
},
|
956
|
+
}, gl = ml`
|
991
957
|
.ant-table-cell::before {
|
992
958
|
display: none !important;
|
993
959
|
}
|
@@ -1049,7 +1015,7 @@ const ar = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ E.jsx(
|
|
1049
1015
|
C.closest("a") || x == null || x(b);
|
1050
1016
|
};
|
1051
1017
|
}
|
1052
|
-
return r ? /* @__PURE__ */ E.jsx(
|
1018
|
+
return r ? /* @__PURE__ */ E.jsx(pl, { type: "table" }) : /* @__PURE__ */ E.jsx(
|
1053
1019
|
dc,
|
1054
1020
|
{
|
1055
1021
|
rowKey: d,
|
@@ -1066,7 +1032,7 @@ const ar = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ E.jsx(
|
|
1066
1032
|
emptyText: /* @__PURE__ */ E.jsx(hc, {})
|
1067
1033
|
},
|
1068
1034
|
rowClassName: (b, x) => `table-row-${x % 2 === 0 ? "even" : "odd"}`,
|
1069
|
-
className: hl(
|
1035
|
+
className: hl(gl, f),
|
1070
1036
|
...y
|
1071
1037
|
}
|
1072
1038
|
);
|
@@ -1085,8 +1051,8 @@ const ar = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ E.jsx(
|
|
1085
1051
|
}
|
1086
1052
|
}, a = () => t, c = { setState: n, getState: a, getInitialState: () => l, subscribe: (s) => (r.add(s), () => r.delete(s)) }, l = t = e(n, a, c);
|
1087
1053
|
return c;
|
1088
|
-
},
|
1089
|
-
function
|
1054
|
+
}, yl = (e) => e ? za(e) : za, bl = (e) => e;
|
1055
|
+
function xl(e, t = bl) {
|
1090
1056
|
const r = Re.useSyncExternalStore(
|
1091
1057
|
e.subscribe,
|
1092
1058
|
() => t(e.getState()),
|
@@ -1095,9 +1061,9 @@ function _l(e, t = Ol) {
|
|
1095
1061
|
return Re.useDebugValue(r), r;
|
1096
1062
|
}
|
1097
1063
|
const Ba = (e) => {
|
1098
|
-
const t =
|
1064
|
+
const t = yl(e), r = (n) => xl(t, n);
|
1099
1065
|
return Object.assign(r, t), r;
|
1100
|
-
},
|
1066
|
+
}, Sl = (e) => e ? Ba(e) : Ba, Cl = Sl((e) => ({
|
1101
1067
|
activeTabKey: void 0,
|
1102
1068
|
// giá trị mặc định
|
1103
1069
|
setActiveTabKey: (t) => e({ activeTabKey: t })
|
@@ -1108,7 +1074,7 @@ const Ba = (e) => {
|
|
1108
1074
|
...n
|
1109
1075
|
}) => {
|
1110
1076
|
var c;
|
1111
|
-
const { activeTabKey: a, setActiveTabKey: o } =
|
1077
|
+
const { activeTabKey: a, setActiveTabKey: o } = Cl(), i = (r == null ? void 0 : r.toString()) || ((c = e[0]) == null ? void 0 : c.key);
|
1112
1078
|
return Je(() => {
|
1113
1079
|
!a && i && o(i);
|
1114
1080
|
}, [a, i, o]), /* @__PURE__ */ E.jsx(
|
@@ -1125,7 +1091,43 @@ const Ba = (e) => {
|
|
1125
1091
|
}, Vm = (e) => {
|
1126
1092
|
const { containerClassName: t, popoverClassName: r, ...n } = e;
|
1127
1093
|
return /* @__PURE__ */ E.jsx("div", { className: t, children: /* @__PURE__ */ E.jsx(gc, { className: r, ...n }) });
|
1128
|
-
}
|
1094
|
+
};
|
1095
|
+
var El = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, wl = function(t, r) {
|
1096
|
+
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
1097
|
+
ref: r,
|
1098
|
+
icon: El
|
1099
|
+
}));
|
1100
|
+
}, Ko = /* @__PURE__ */ h.forwardRef(wl);
|
1101
|
+
process.env.NODE_ENV !== "production" && (Ko.displayName = "BarsOutlined");
|
1102
|
+
var kl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z" } }] }, name: "filter", theme: "outlined" }, Pl = function(t, r) {
|
1103
|
+
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
1104
|
+
ref: r,
|
1105
|
+
icon: kl
|
1106
|
+
}));
|
1107
|
+
}, qo = /* @__PURE__ */ h.forwardRef(Pl);
|
1108
|
+
process.env.NODE_ENV !== "production" && (qo.displayName = "FilterOutlined");
|
1109
|
+
var Tl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, $l = function(t, r) {
|
1110
|
+
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
1111
|
+
ref: r,
|
1112
|
+
icon: Tl
|
1113
|
+
}));
|
1114
|
+
}, pn = /* @__PURE__ */ h.forwardRef($l);
|
1115
|
+
process.env.NODE_ENV !== "production" && (pn.displayName = "LeftOutlined");
|
1116
|
+
var Ol = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, _l = function(t, r) {
|
1117
|
+
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
1118
|
+
ref: r,
|
1119
|
+
icon: Ol
|
1120
|
+
}));
|
1121
|
+
}, vn = /* @__PURE__ */ h.forwardRef(_l);
|
1122
|
+
process.env.NODE_ENV !== "production" && (vn.displayName = "RightOutlined");
|
1123
|
+
var Rl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, jl = function(t, r) {
|
1124
|
+
return /* @__PURE__ */ h.createElement(Ut, Gt({}, t, {
|
1125
|
+
ref: r,
|
1126
|
+
icon: Rl
|
1127
|
+
}));
|
1128
|
+
}, Yo = /* @__PURE__ */ h.forwardRef(jl);
|
1129
|
+
process.env.NODE_ENV !== "production" && (Yo.displayName = "SearchOutlined");
|
1130
|
+
const Wm = ({
|
1129
1131
|
initialValues: e,
|
1130
1132
|
renderFilterFields: t,
|
1131
1133
|
onSubmit: r,
|
@@ -7588,7 +7590,7 @@ export {
|
|
7588
7590
|
Hm as M,
|
7589
7591
|
Vm as P,
|
7590
7592
|
Km as R,
|
7591
|
-
|
7593
|
+
pl as S,
|
7592
7594
|
Fm as T,
|
7593
7595
|
zm as a,
|
7594
7596
|
Bm as b,
|