@pnkx-lib/ui 1.1.17 → 1.1.18
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-BohCHsd5.js +2268 -0
- package/dist/chunks/{Steps-BpS9WTjP.js → Steps-CNDzmXyL.js} +51 -49
- package/dist/chunks/Switch-Dy3JDxO_.js +14946 -0
- package/dist/fields/index.js +9 -10
- package/dist/index.js +18 -18
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/Checkbox-CXb4qF1Z.js +0 -142
- package/dist/chunks/Switch-DAZukdDR.js +0 -17067
@@ -1,4 +1,4 @@
|
|
1
|
-
import { j as O,
|
1
|
+
import { j as O, I as Rt, _ as Nt, u as ds, c as ft, a as hs } from "./AntdIcon-BohCHsd5.js";
|
2
2
|
import { Button as vs, Cascader as gs, Space as Ot, Card as to, Skeleton as ta, Table as ps, Empty as ms, Modal as bs, Tooltip as ys, Tabs as Ss, Popover as xs, Badge as Cs, Col as Es, Row as ws, Dropdown as Ts, Breadcrumb as Os, Flex as _s, Splitter as ra, Menu as It, Pagination as Ps, Steps as na } from "antd";
|
3
3
|
import * as g from "react";
|
4
4
|
import Ae, { useEffect as Ue, useContext as Ke, createContext as oa, version as ks, isValidElement as $s, useRef as Fe, useLayoutEffect as As, useState as ro } from "react";
|
@@ -928,42 +928,8 @@ var gc = function(t) {
|
|
928
928
|
return r;
|
929
929
|
}, va = gc({
|
930
930
|
key: "css"
|
931
|
-
}), mc = va.cx, bc = va.css
|
932
|
-
|
933
|
-
ref: r,
|
934
|
-
icon: yc
|
935
|
-
}));
|
936
|
-
}, ga = /* @__PURE__ */ g.forwardRef(Sc);
|
937
|
-
process.env.NODE_ENV !== "production" && (ga.displayName = "BarsOutlined");
|
938
|
-
var xc = { 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" }, Cc = function(t, r) {
|
939
|
-
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
940
|
-
ref: r,
|
941
|
-
icon: xc
|
942
|
-
}));
|
943
|
-
}, pa = /* @__PURE__ */ g.forwardRef(Cc);
|
944
|
-
process.env.NODE_ENV !== "production" && (pa.displayName = "FilterOutlined");
|
945
|
-
var Ec = { 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" }, wc = function(t, r) {
|
946
|
-
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
947
|
-
ref: r,
|
948
|
-
icon: Ec
|
949
|
-
}));
|
950
|
-
}, Ur = /* @__PURE__ */ g.forwardRef(wc);
|
951
|
-
process.env.NODE_ENV !== "production" && (Ur.displayName = "LeftOutlined");
|
952
|
-
var Tc = { 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" }, Oc = function(t, r) {
|
953
|
-
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
954
|
-
ref: r,
|
955
|
-
icon: Tc
|
956
|
-
}));
|
957
|
-
}, Kr = /* @__PURE__ */ g.forwardRef(Oc);
|
958
|
-
process.env.NODE_ENV !== "production" && (Kr.displayName = "RightOutlined");
|
959
|
-
var _c = { 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" }, Pc = function(t, r) {
|
960
|
-
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
961
|
-
ref: r,
|
962
|
-
icon: _c
|
963
|
-
}));
|
964
|
-
}, ma = /* @__PURE__ */ g.forwardRef(Pc);
|
965
|
-
process.env.NODE_ENV !== "production" && (ma.displayName = "SearchOutlined");
|
966
|
-
const Xt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(ta.Input, { size: "small", block: !0, active: !0 }, r)), kc = ({ type: e, skeletonButtonCount: t }) => e === "table" ? /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
931
|
+
}), mc = va.cx, bc = va.css;
|
932
|
+
const Xt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(ta.Input, { size: "small", block: !0, active: !0 }, r)), yc = ({ type: e, skeletonButtonCount: t }) => e === "table" ? /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
967
933
|
/* @__PURE__ */ O.jsxs(
|
968
934
|
"div",
|
969
935
|
{
|
@@ -980,14 +946,14 @@ const Xt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(
|
|
980
946
|
}
|
981
947
|
),
|
982
948
|
/* @__PURE__ */ O.jsx(to, { children: /* @__PURE__ */ O.jsx(Ot, { direction: "vertical", size: "middle", style: { width: "100%" }, children: Xt(10) }) }),
|
983
|
-
/* @__PURE__ */ O.jsx("div", { style: {
|
984
|
-
] }) : /* @__PURE__ */ O.jsx(to, { children: /* @__PURE__ */ O.jsx("div", { style: { display: "grid", rowGap: 8 }, children: Xt(3) }) }),
|
949
|
+
/* @__PURE__ */ O.jsx("div", { style: { ...Sc.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ O.jsx(ta.Input, { size: "small", active: !0 }) })
|
950
|
+
] }) : /* @__PURE__ */ O.jsx(to, { children: /* @__PURE__ */ O.jsx("div", { style: { display: "grid", rowGap: 8 }, children: Xt(3) }) }), Sc = {
|
985
951
|
rightAlign: {
|
986
952
|
display: "flex",
|
987
953
|
justifyContent: "flex-end",
|
988
954
|
width: "100%"
|
989
955
|
}
|
990
|
-
},
|
956
|
+
}, xc = bc`
|
991
957
|
.ant-table-cell::before {
|
992
958
|
display: none !important;
|
993
959
|
}
|
@@ -1049,7 +1015,7 @@ const Xt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(
|
|
1049
1015
|
x.closest("a") || C == null || C(p);
|
1050
1016
|
};
|
1051
1017
|
}
|
1052
|
-
return r ? /* @__PURE__ */ O.jsx(
|
1018
|
+
return r ? /* @__PURE__ */ O.jsx(yc, { type: "table" }) : /* @__PURE__ */ O.jsx(
|
1053
1019
|
ps,
|
1054
1020
|
{
|
1055
1021
|
rowKey: f,
|
@@ -1066,7 +1032,7 @@ const Xt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(
|
|
1066
1032
|
emptyText: /* @__PURE__ */ O.jsx(ms, {})
|
1067
1033
|
},
|
1068
1034
|
rowClassName: (p, C) => `table-row-${C % 2 === 0 ? "even" : "odd"}`,
|
1069
|
-
className: mc(
|
1035
|
+
className: mc(xc, d),
|
1070
1036
|
...m
|
1071
1037
|
}
|
1072
1038
|
);
|
@@ -1085,8 +1051,8 @@ const Xt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(
|
|
1085
1051
|
}
|
1086
1052
|
}, o = () => t, c = { setState: n, getState: o, getInitialState: () => l, subscribe: (s) => (r.add(s), () => r.delete(s)) }, l = t = e(n, o, c);
|
1087
1053
|
return c;
|
1088
|
-
},
|
1089
|
-
function
|
1054
|
+
}, Cc = (e) => e ? vo(e) : vo, Ec = (e) => e;
|
1055
|
+
function wc(e, t = Ec) {
|
1090
1056
|
const r = Ae.useSyncExternalStore(
|
1091
1057
|
e.subscribe,
|
1092
1058
|
() => t(e.getState()),
|
@@ -1095,9 +1061,9 @@ function Rc(e, t = jc) {
|
|
1095
1061
|
return Ae.useDebugValue(r), r;
|
1096
1062
|
}
|
1097
1063
|
const go = (e) => {
|
1098
|
-
const t =
|
1064
|
+
const t = Cc(e), r = (n) => wc(t, n);
|
1099
1065
|
return Object.assign(r, t), r;
|
1100
|
-
},
|
1066
|
+
}, Tc = (e) => e ? go(e) : go, Oc = Tc((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 go = (e) => {
|
|
1108
1074
|
...n
|
1109
1075
|
}) => {
|
1110
1076
|
var c;
|
1111
|
-
const { activeTabKey: o, setActiveTabKey: a } =
|
1077
|
+
const { activeTabKey: o, setActiveTabKey: a } = Oc(), i = (r == null ? void 0 : r.toString()) || ((c = e[0]) == null ? void 0 : c.key);
|
1112
1078
|
return Ue(() => {
|
1113
1079
|
!o && i && a(i);
|
1114
1080
|
}, [o, i, a]), /* @__PURE__ */ O.jsx(
|
@@ -1125,7 +1091,43 @@ const go = (e) => {
|
|
1125
1091
|
}, Sd = (e) => {
|
1126
1092
|
const { containerClassName: t, popoverClassName: r, ...n } = e;
|
1127
1093
|
return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(xs, { className: r, ...n }) });
|
1128
|
-
}
|
1094
|
+
};
|
1095
|
+
var _c = { 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" }, Pc = function(t, r) {
|
1096
|
+
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
1097
|
+
ref: r,
|
1098
|
+
icon: _c
|
1099
|
+
}));
|
1100
|
+
}, ga = /* @__PURE__ */ g.forwardRef(Pc);
|
1101
|
+
process.env.NODE_ENV !== "production" && (ga.displayName = "BarsOutlined");
|
1102
|
+
var kc = { 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" }, $c = function(t, r) {
|
1103
|
+
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
1104
|
+
ref: r,
|
1105
|
+
icon: kc
|
1106
|
+
}));
|
1107
|
+
}, pa = /* @__PURE__ */ g.forwardRef($c);
|
1108
|
+
process.env.NODE_ENV !== "production" && (pa.displayName = "FilterOutlined");
|
1109
|
+
var Ac = { 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" }, Mc = function(t, r) {
|
1110
|
+
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
1111
|
+
ref: r,
|
1112
|
+
icon: Ac
|
1113
|
+
}));
|
1114
|
+
}, Ur = /* @__PURE__ */ g.forwardRef(Mc);
|
1115
|
+
process.env.NODE_ENV !== "production" && (Ur.displayName = "LeftOutlined");
|
1116
|
+
var jc = { 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" }, Rc = function(t, r) {
|
1117
|
+
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
1118
|
+
ref: r,
|
1119
|
+
icon: jc
|
1120
|
+
}));
|
1121
|
+
}, Kr = /* @__PURE__ */ g.forwardRef(Rc);
|
1122
|
+
process.env.NODE_ENV !== "production" && (Kr.displayName = "RightOutlined");
|
1123
|
+
var Nc = { 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" }, Ic = function(t, r) {
|
1124
|
+
return /* @__PURE__ */ g.createElement(Rt, Nt({}, t, {
|
1125
|
+
ref: r,
|
1126
|
+
icon: Nc
|
1127
|
+
}));
|
1128
|
+
}, ma = /* @__PURE__ */ g.forwardRef(Ic);
|
1129
|
+
process.env.NODE_ENV !== "production" && (ma.displayName = "SearchOutlined");
|
1130
|
+
const xd = ({
|
1129
1131
|
initialValues: e,
|
1130
1132
|
renderFilterFields: t,
|
1131
1133
|
onSubmit: r,
|
@@ -5860,7 +5862,7 @@ export {
|
|
5860
5862
|
md as M,
|
5861
5863
|
Sd as P,
|
5862
5864
|
Td as R,
|
5863
|
-
|
5865
|
+
yc as S,
|
5864
5866
|
pd as T,
|
5865
5867
|
bd as a,
|
5866
5868
|
yd as b,
|