sakana-element 2.2.0 → 2.4.0
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/README.md +98 -25
- package/dist/es/{Alert-C76ZWSVk.js → Alert-DfLsJvQD.js} +2 -2
- package/dist/es/Avatar-Ci4OKsv7.js +9 -0
- package/dist/es/{Badge-CoFWwBwv.js → Badge-B4wEToK6.js} +2 -2
- package/dist/es/{Breadcrumb-BtrwTVKW.js → Breadcrumb-BFzww8jd.js} +2 -2
- package/dist/es/{Button-S_31-UWJ.js → Button-DbFviVWb.js} +3 -3
- package/dist/es/{Card-DcW6nHYD.js → Card-ClRqKkc_.js} +2 -2
- package/dist/es/ChatBubble-DFEV_lVI.js +9 -0
- package/dist/es/Checkbox-l86YI3Fr.js +51 -0
- package/dist/es/{Collapse-DsS7M-m3.js → Collapse-B67v6RSE.js} +4 -4
- package/dist/es/{ConfigProvider-BgIewHXP.js → ConfigProvider-BCoGbcS5.js} +2 -2
- package/dist/es/Diff-BLiniLom.js +64 -0
- package/dist/es/Divider-DDSOHv8G.js +9 -0
- package/dist/es/Drawer-apeXw6EO.js +40 -0
- package/dist/es/Dropdown-By9qIErf.js +104 -0
- package/dist/es/{FileInput-BQ59woas.js → FileInput-CZ5jTfB_.js} +3 -3
- package/dist/es/Filter-B_1zU4Dq.js +40 -0
- package/dist/es/Form-B_XDnSjK.js +123 -0
- package/dist/es/{Icon-DpJyuj7c.js → Icon-D6qRB3pq.js} +1 -1
- package/dist/es/Indicator-C6Ip4dpP.js +9 -0
- package/dist/es/{Input-CiE4bPJN.js → Input-bThwBbNZ.js} +7 -7
- package/dist/es/Kbd-DXNjs7at.js +13 -0
- package/dist/es/{Link-B9B2APZq.js → Link-08Ee61Fv.js} +1 -1
- package/dist/es/{Loading-BW99pE5N.js → Loading-ByI9mjss.js} +13 -13
- package/dist/es/Message-CGG-lV5I.js +152 -0
- package/dist/es/Notification-B4clKY5h.js +69 -0
- package/dist/es/{Overlay-BRDSWspM.js → Overlay-6iPenJB1.js} +1 -1
- package/dist/es/Pixelate-A8J7jxDW.js +39 -0
- package/dist/es/Popconfirm-gcHGcOTz.js +23 -0
- package/dist/es/Progress-DFUBJQ4X.js +12 -0
- package/dist/es/Radio-CLBa1XIM.js +33 -0
- package/dist/es/Resizable-BWrFr2oj.js +151 -0
- package/dist/es/{Select-Dwqv8isB.js → Select-BtLqds1d.js} +20 -20
- package/dist/es/Skeleton-CGUQv3nQ.js +15 -0
- package/dist/es/{Switch-B1Gnv1tB.js → Switch-CZJ-S77_.js} +3 -3
- package/dist/es/Table-lHbxiyGq.js +10 -0
- package/dist/es/Tooltip-CdPqNYdn.js +74 -0
- package/dist/es/Validator-7ZT_nXDZ.js +40 -0
- package/dist/es/hooks-pU4JmsO3.js +171 -0
- package/dist/es/index.js +107 -70
- package/dist/es/utils-BXICIEsD.js +139 -0
- package/dist/es/{vendor-DXmGx29U.js → vendor-DrBJKLFW.js} +254 -210
- package/dist/index.css +1 -1
- package/dist/theme/Avatar.css +13 -43
- package/dist/theme/Badge.css +151 -151
- package/dist/theme/Breadcrumb.css +46 -4
- package/dist/theme/Button.css +72 -8
- package/dist/theme/Card.css +177 -93
- package/dist/theme/ChatBubble.css +218 -0
- package/dist/theme/Checkbox.css +604 -0
- package/dist/theme/Collapse.css +96 -96
- package/dist/theme/Diff.css +110 -0
- package/dist/theme/Divider.css +150 -0
- package/dist/theme/Drawer.css +206 -0
- package/dist/theme/Dropdown.css +359 -75
- package/dist/theme/FileInput.css +32 -0
- package/dist/theme/Filter.css +598 -0
- package/dist/theme/Indicator.css +159 -0
- package/dist/theme/Input.css +414 -406
- package/dist/theme/Kbd.css +104 -0
- package/dist/theme/Link.css +22 -3
- package/dist/theme/Loading.css +50 -12
- package/dist/theme/Message.css +250 -41
- package/dist/theme/Notification.css +232 -42
- package/dist/theme/Popconfirm.css +23 -7
- package/dist/theme/Progress.css +278 -0
- package/dist/theme/Radio.css +492 -0
- package/dist/theme/Resizable.css +95 -0
- package/dist/theme/Select.css +198 -88
- package/dist/theme/Skeleton.css +192 -0
- package/dist/theme/Switch.css +22 -3
- package/dist/theme/Table.css +680 -0
- package/dist/theme/Tooltip.css +150 -26
- package/dist/theme/Validator.css +25 -0
- package/dist/types/components/Avatar/types.d.ts +0 -2
- package/dist/types/components/ChatBubble/constants.d.ts +2 -0
- package/dist/types/components/ChatBubble/index.d.ts +27 -0
- package/dist/types/components/ChatBubble/types.d.ts +10 -0
- package/dist/types/components/Checkbox/constants.d.ts +5 -0
- package/dist/types/components/Checkbox/index.d.ts +94 -0
- package/dist/types/components/Checkbox/types.d.ts +46 -0
- package/dist/types/components/Collapse/index.d.ts +5 -5
- package/dist/types/components/Diff/constants.d.ts +4 -0
- package/dist/types/components/Diff/index.d.ts +67 -0
- package/dist/types/components/Diff/types.d.ts +29 -0
- package/dist/types/components/Divider/index.d.ts +30 -0
- package/dist/types/components/Divider/types.d.ts +10 -0
- package/dist/types/components/Drawer/constants.d.ts +1 -0
- package/dist/types/components/Drawer/index.d.ts +72 -0
- package/dist/types/components/Drawer/types.d.ts +20 -0
- package/dist/types/components/Dropdown/index.d.ts +13 -3
- package/dist/types/components/Dropdown/types.d.ts +3 -0
- package/dist/types/components/Dropdown/useDropdownKeyboard.d.ts +8 -0
- package/dist/types/components/FileInput/index.d.ts +5 -5
- package/dist/types/components/Filter/constants.d.ts +5 -0
- package/dist/types/components/Filter/index.d.ts +59 -0
- package/dist/types/components/Filter/types.d.ts +38 -0
- package/dist/types/components/Indicator/constants.d.ts +2 -0
- package/dist/types/components/Indicator/index.d.ts +28 -0
- package/dist/types/components/Indicator/types.d.ts +10 -0
- package/dist/types/components/Input/index.d.ts +10 -10
- package/dist/types/components/Kbd/constants.d.ts +3 -0
- package/dist/types/components/Kbd/index.d.ts +24 -0
- package/dist/types/components/Kbd/types.d.ts +10 -0
- package/dist/types/components/Message/methods.d.ts +2 -0
- package/dist/types/components/Message/types.d.ts +7 -1
- package/dist/types/components/MessageBox/types.d.ts +14 -2
- package/dist/types/components/Notification/methods.d.ts +3 -0
- package/dist/types/components/Notification/types.d.ts +8 -2
- package/dist/types/components/Pixelate/constants.d.ts +2 -0
- package/dist/types/components/Pixelate/index.d.ts +71 -0
- package/dist/types/components/Pixelate/types.d.ts +23 -0
- package/dist/types/components/Popconfirm/index.d.ts +18 -9
- package/dist/types/components/Popconfirm/types.d.ts +2 -1
- package/dist/types/components/Progress/constants.d.ts +2 -0
- package/dist/types/components/Progress/index.d.ts +50 -0
- package/dist/types/components/Progress/types.d.ts +22 -0
- package/dist/types/components/Radio/constants.d.ts +5 -0
- package/dist/types/components/Radio/index.d.ts +88 -0
- package/dist/types/components/Radio/types.d.ts +43 -0
- package/dist/types/components/Resizable/constants.d.ts +3 -0
- package/dist/types/components/Resizable/index.d.ts +135 -0
- package/dist/types/components/Resizable/types.d.ts +52 -0
- package/dist/types/components/Select/index.d.ts +32 -23
- package/dist/types/components/Skeleton/index.d.ts +36 -0
- package/dist/types/components/Skeleton/types.d.ts +12 -0
- package/dist/types/components/Switch/index.d.ts +5 -5
- package/dist/types/components/Table/index.d.ts +27 -0
- package/dist/types/components/Table/types.d.ts +20 -0
- package/dist/types/components/Tooltip/index.d.ts +9 -3
- package/dist/types/components/Tooltip/types.d.ts +7 -0
- package/dist/types/components/Validator/index.d.ts +52 -0
- package/dist/types/components/Validator/types.d.ts +13 -0
- package/dist/types/components/index.d.ts +15 -0
- package/dist/types/hooks/index.d.ts +3 -1
- package/dist/types/hooks/useDraggable.d.ts +7 -0
- package/dist/types/hooks/useFocusTrap.d.ts +5 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/instance-management.d.ts +40 -0
- package/dist/types/utils/pixelate.d.ts +10 -0
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +4 -4
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +59 -59
- package/dist/es/Avatar-CxsRW-wl.js +0 -9
- package/dist/es/Dropdown-GcomGMAI.js +0 -40
- package/dist/es/Form-j90EzLXU.js +0 -122
- package/dist/es/Message-DCNnTUje.js +0 -123
- package/dist/es/Notification-CBzY5904.js +0 -58
- package/dist/es/Popconfirm-DF6d2ORS.js +0 -23
- package/dist/es/Tooltip-k6gKnMyt.js +0 -74
- package/dist/es/hooks-BaG7l8K5.js +0 -116
- package/dist/es/utils-bsCscZfS.js +0 -84
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { isRef as e, watch as t, onMounted as n, onBeforeUnmount as o, unref as a, getCurrentInstance as r, useSlots as l, watchEffect as u, ref as s, inject as i, computed as c, onUnmounted as d } from "vue";
|
|
2
|
+
import { f as m, y as v, k as f, z as p, I as h, J as g, a as E } from "./vendor-DrBJKLFW.js";
|
|
3
|
+
function L(r2, l2, u2) {
|
|
4
|
+
e(r2) ? t(r2, ((e2, t2) => {
|
|
5
|
+
null == t2 || t2.removeEventListener(l2, u2), null == e2 || e2.addEventListener(l2, u2);
|
|
6
|
+
})) : n((() => null == r2 ? void 0 : r2.addEventListener(l2, u2))), o((() => {
|
|
7
|
+
var e2;
|
|
8
|
+
return null == (e2 = a(r2)) ? void 0 : e2.removeEventListener(l2, u2);
|
|
9
|
+
}));
|
|
10
|
+
}
|
|
11
|
+
function w(e2, t2) {
|
|
12
|
+
L(document, "click", ((n2) => {
|
|
13
|
+
e2.value && n2.target && (e2.value.contains(n2.target) || t2(n2));
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
const y = (e2, t2) => m(e2, ((e3) => {
|
|
17
|
+
v(t2) && t2(e3), e3.children && y(e3.children, t2);
|
|
18
|
+
}));
|
|
19
|
+
function x() {
|
|
20
|
+
var e2, t2;
|
|
21
|
+
const n2 = /* @__PURE__ */ new Map(), o2 = r(), a2 = null == (t2 = null == (e2 = l()) ? void 0 : e2.default) ? void 0 : t2.call(e2);
|
|
22
|
+
u((() => {
|
|
23
|
+
(null == o2 ? void 0 : o2.props.disabled) ? y(a2 ?? [], ((e3) => {
|
|
24
|
+
(null == e3 ? void 0 : e3.props) && (n2.set(e3, f(e3.props)), e3.props = p(null == e3 ? void 0 : e3.props, { style: { cursor: "not-allowed", color: "var(--px-text-color-placeholder)" } }));
|
|
25
|
+
})) : y(a2 ?? [], ((e3) => {
|
|
26
|
+
n2.has(e3) && (e3.props = n2.get(e3));
|
|
27
|
+
}));
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
function k(e2, n2, a2 = {}) {
|
|
31
|
+
let r2 = 0, l2 = 0, u2 = 0, s2 = 0, i2 = false;
|
|
32
|
+
function c2(e3) {
|
|
33
|
+
0 === e3.button && (i2 = true, u2 = e3.clientX - r2, s2 = e3.clientY - l2, document.addEventListener("mousemove", d2), document.addEventListener("mouseup", m2), e3.preventDefault());
|
|
34
|
+
}
|
|
35
|
+
function d2(t2) {
|
|
36
|
+
if (!i2) return;
|
|
37
|
+
const n3 = e2.value;
|
|
38
|
+
if (!n3) return;
|
|
39
|
+
let o2 = t2.clientX - u2, c3 = t2.clientY - s2;
|
|
40
|
+
if (a2.constrainToViewport) {
|
|
41
|
+
const e3 = n3.getBoundingClientRect(), t3 = document.documentElement.clientWidth, a3 = document.documentElement.clientHeight, u3 = e3.left - r2, s3 = e3.top - l2, i3 = -u3, d3 = t3 - u3 - e3.width, m3 = -s3, v3 = a3 - s3 - e3.height;
|
|
42
|
+
o2 = Math.max(i3, Math.min(d3, o2)), c3 = Math.max(m3, Math.min(v3, c3));
|
|
43
|
+
}
|
|
44
|
+
r2 = o2, l2 = c3, n3.style.transform = `translate(${r2}px, ${l2}px)`;
|
|
45
|
+
}
|
|
46
|
+
function m2() {
|
|
47
|
+
i2 = false, document.removeEventListener("mousemove", d2), document.removeEventListener("mouseup", m2);
|
|
48
|
+
}
|
|
49
|
+
function v2(e3) {
|
|
50
|
+
null == e3 || e3.removeEventListener("mousedown", c2);
|
|
51
|
+
}
|
|
52
|
+
return t(n2, ((e3, t2) => {
|
|
53
|
+
var n3;
|
|
54
|
+
v2(t2), i2 && (i2 = false, document.removeEventListener("mousemove", d2), document.removeEventListener("mouseup", m2)), null == (n3 = e3) || n3.addEventListener("mousedown", c2);
|
|
55
|
+
}), { immediate: true }), o((() => {
|
|
56
|
+
v2(n2.value), document.removeEventListener("mousemove", d2), document.removeEventListener("mouseup", m2);
|
|
57
|
+
})), { reset: function() {
|
|
58
|
+
const t2 = e2.value;
|
|
59
|
+
r2 = 0, l2 = 0, t2 && (t2.style.transform = "");
|
|
60
|
+
} };
|
|
61
|
+
}
|
|
62
|
+
function b(e2, { afterBlur: t2, beforeBlur: n2, afterFocus: o2 } = {}) {
|
|
63
|
+
const a2 = r(), { emit: l2 } = a2, u2 = s(), i2 = s(false);
|
|
64
|
+
return L(u2, "click", (() => {
|
|
65
|
+
var t3;
|
|
66
|
+
null == (t3 = e2.value) || t3.focus();
|
|
67
|
+
})), { wrapperRef: u2, isFocused: i2, handleFocus: (e3) => {
|
|
68
|
+
i2.value || (i2.value = true, l2("focus", e3), null == o2 || o2());
|
|
69
|
+
}, handleBlur: (e3) => {
|
|
70
|
+
var o3;
|
|
71
|
+
v(n2) && n2(e3) || e3.relatedTarget && (null == (o3 = u2.value) ? void 0 : o3.contains(e3.relatedTarget)) || (i2.value = false, l2("blur", e3), null == t2 || t2());
|
|
72
|
+
} };
|
|
73
|
+
}
|
|
74
|
+
const M = ["a[href]", "button:not([disabled])", "input:not([disabled])", "textarea:not([disabled])", "select:not([disabled])", '[tabindex]:not([tabindex="-1"])'].join(", ");
|
|
75
|
+
function D(e2) {
|
|
76
|
+
let t2 = null, n2 = false;
|
|
77
|
+
function a2(t3) {
|
|
78
|
+
if (!n2 || "Tab" !== t3.key) return;
|
|
79
|
+
const o2 = e2.value;
|
|
80
|
+
if (!o2) return;
|
|
81
|
+
const a3 = Array.from(o2.querySelectorAll(M)).filter(((e3) => null !== e3.offsetParent));
|
|
82
|
+
if (0 === a3.length) return void t3.preventDefault();
|
|
83
|
+
const r3 = a3[0], l2 = a3[a3.length - 1];
|
|
84
|
+
t3.shiftKey ? document.activeElement !== r3 && o2.contains(document.activeElement) || (t3.preventDefault(), l2.focus()) : document.activeElement !== l2 && o2.contains(document.activeElement) || (t3.preventDefault(), r3.focus());
|
|
85
|
+
}
|
|
86
|
+
function r2() {
|
|
87
|
+
n2 && (n2 = false, document.removeEventListener("keydown", a2), t2 && "function" == typeof t2.focus && t2.focus(), t2 = null);
|
|
88
|
+
}
|
|
89
|
+
return o((() => {
|
|
90
|
+
r2();
|
|
91
|
+
})), { activate: function() {
|
|
92
|
+
n2 || (t2 = document.activeElement, n2 = true, document.addEventListener("keydown", a2));
|
|
93
|
+
}, deactivate: r2 };
|
|
94
|
+
}
|
|
95
|
+
const T = { prefix: Math.floor(1e4 * Math.random()), current: 0 };
|
|
96
|
+
function B(e2 = "er") {
|
|
97
|
+
const t2 = `${e2}-${T.prefix}-${T.current++}`;
|
|
98
|
+
return s(t2);
|
|
99
|
+
}
|
|
100
|
+
const I = { name: "en", el: { select: { loading: "Loading", noMatch: "No matching data", noData: "No data", placeholder: "Select" }, dropdown: { toggleDropdown: "Toggle Dropdown" }, messagebox: { title: "Message", confirm: "OK", cancel: "Cancel", error: "Illegal input", close: "Close this dialog" }, popconfirm: { confirmButtonText: "Yes", cancelButtonText: "No" } } };
|
|
101
|
+
function S(e2) {
|
|
102
|
+
{
|
|
103
|
+
const e3 = i(h, s(g({ locale: I.name, messages: { en: I.el } })));
|
|
104
|
+
return c((() => {
|
|
105
|
+
return t2 = a(e3), E(t2, "install");
|
|
106
|
+
var t2;
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function $(e2) {
|
|
111
|
+
const t2 = c((() => e2.getLastBottomOffset())), n2 = c((() => e2.offset + t2.value)), o2 = c((() => n2.value + e2.boxHeight.value));
|
|
112
|
+
return { topOffset: n2, bottomOffset: o2 };
|
|
113
|
+
}
|
|
114
|
+
const O = s(0);
|
|
115
|
+
function j(e2 = 2e3) {
|
|
116
|
+
const t2 = s(e2), n2 = c((() => O.value + t2.value));
|
|
117
|
+
return { initialValue: t2, currentZIndex: n2, nextZIndex: () => (O.value++, n2.value) };
|
|
118
|
+
}
|
|
119
|
+
function C() {
|
|
120
|
+
const e2 = s(false);
|
|
121
|
+
let t2 = null, o2 = null;
|
|
122
|
+
return n((() => {
|
|
123
|
+
"undefined" != typeof window && (t2 = window.matchMedia("(prefers-color-scheme: dark)"), e2.value = t2.matches, o2 = (t3) => {
|
|
124
|
+
e2.value = t3.matches;
|
|
125
|
+
}, t2.addEventListener ? t2.addEventListener("change", o2) : t2.addListener(o2));
|
|
126
|
+
})), d((() => {
|
|
127
|
+
t2 && o2 && (t2.removeEventListener ? t2.removeEventListener("change", o2) : t2.removeListener(o2));
|
|
128
|
+
})), { prefersDark: e2, prefers: c((() => e2.value ? "dark" : "light")) };
|
|
129
|
+
}
|
|
130
|
+
const F = "px-theme", N = "px-dark", Y = s("system"), A = s(false);
|
|
131
|
+
function H(e2) {
|
|
132
|
+
"undefined" != typeof document && (e2 ? document.documentElement.classList.add(N) : document.documentElement.classList.remove(N));
|
|
133
|
+
}
|
|
134
|
+
function K(e2) {
|
|
135
|
+
return "system" === e2 ? "undefined" != typeof window && window.matchMedia("(prefers-color-scheme: dark)").matches : "dark" === e2;
|
|
136
|
+
}
|
|
137
|
+
let R = false;
|
|
138
|
+
function V() {
|
|
139
|
+
if (!R && "undefined" != typeof window) {
|
|
140
|
+
!(function() {
|
|
141
|
+
if ("undefined" == typeof window) return;
|
|
142
|
+
const e4 = localStorage.getItem(F);
|
|
143
|
+
e4 && ["light", "dark", "system"].includes(e4) ? Y.value = e4 : Y.value = "system", A.value = K(Y.value), H(A.value);
|
|
144
|
+
})(), R = true;
|
|
145
|
+
const e3 = window.matchMedia("(prefers-color-scheme: dark)"), t2 = (e4) => {
|
|
146
|
+
"system" === Y.value && (A.value = e4.matches, H(A.value));
|
|
147
|
+
};
|
|
148
|
+
e3.addEventListener ? e3.addEventListener("change", t2) : e3.addListener(t2);
|
|
149
|
+
}
|
|
150
|
+
const e2 = (e3) => {
|
|
151
|
+
Y.value = e3, A.value = K(e3), H(A.value), "undefined" != typeof localStorage && localStorage.setItem(F, e3);
|
|
152
|
+
};
|
|
153
|
+
return { theme: c((() => Y.value)), isDark: c((() => A.value)), setTheme: e2, toggleTheme: () => {
|
|
154
|
+
const t2 = A.value ? "light" : "dark";
|
|
155
|
+
e2(t2);
|
|
156
|
+
} };
|
|
157
|
+
}
|
|
158
|
+
export {
|
|
159
|
+
j as a,
|
|
160
|
+
L as b,
|
|
161
|
+
w as c,
|
|
162
|
+
x as d,
|
|
163
|
+
b as e,
|
|
164
|
+
$ as f,
|
|
165
|
+
S as g,
|
|
166
|
+
D as h,
|
|
167
|
+
k as i,
|
|
168
|
+
C as j,
|
|
169
|
+
V as k,
|
|
170
|
+
B as u
|
|
171
|
+
};
|
package/dist/es/index.js
CHANGED
|
@@ -1,91 +1,128 @@
|
|
|
1
|
-
import { P as g } from "./Alert-
|
|
2
|
-
import { P as
|
|
3
|
-
import { P as
|
|
4
|
-
import { P as
|
|
5
|
-
import { a as
|
|
6
|
-
import { P as e } from "./Card-
|
|
7
|
-
import { P as
|
|
8
|
-
import { P as
|
|
9
|
-
import {
|
|
10
|
-
import { P as
|
|
11
|
-
import {
|
|
12
|
-
import { P as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { P as
|
|
17
|
-
import { P as H } from "./
|
|
18
|
-
import { P as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { P as Q } from "./
|
|
23
|
-
import {
|
|
24
|
-
import { P as
|
|
25
|
-
import { P as
|
|
26
|
-
import { P as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
1
|
+
import { P as g } from "./Alert-DfLsJvQD.js";
|
|
2
|
+
import { P as o } from "./Avatar-Ci4OKsv7.js";
|
|
3
|
+
import { P as I } from "./Badge-B4wEToK6.js";
|
|
4
|
+
import { P as C, a as l } from "./Breadcrumb-BFzww8jd.js";
|
|
5
|
+
import { a as s, P as Z } from "./Button-DbFviVWb.js";
|
|
6
|
+
import { P as e } from "./Card-ClRqKkc_.js";
|
|
7
|
+
import { P as c } from "./ChatBubble-DFEV_lVI.js";
|
|
8
|
+
import { P as p, a as A } from "./Checkbox-l86YI3Fr.js";
|
|
9
|
+
import { P as B, a as r } from "./Collapse-B67v6RSE.js";
|
|
10
|
+
import { P as b, p as G } from "./ConfigProvider-BCoGbcS5.js";
|
|
11
|
+
import { E, u } from "./ConfigProvider-BCoGbcS5.js";
|
|
12
|
+
import { P as y } from "./Diff-BLiniLom.js";
|
|
13
|
+
import { P as W } from "./Divider-DDSOHv8G.js";
|
|
14
|
+
import { P as X } from "./Drawer-apeXw6EO.js";
|
|
15
|
+
import { P as w, a as h } from "./Dropdown-By9qIErf.js";
|
|
16
|
+
import { P as S } from "./FileInput-CZ5jTfB_.js";
|
|
17
|
+
import { P as H, a as K } from "./Filter-B_1zU4Dq.js";
|
|
18
|
+
import { P as Y, a as f } from "./Form-B_XDnSjK.js";
|
|
19
|
+
import { u as u2 } from "./Form-B_XDnSjK.js";
|
|
20
|
+
import { a as R, r as V } from "./Icon-D6qRB3pq.js";
|
|
21
|
+
import { d, i } from "./Icon-D6qRB3pq.js";
|
|
22
|
+
import { P as Q } from "./Indicator-C6Ip4dpP.js";
|
|
23
|
+
import { P as x } from "./Input-bThwBbNZ.js";
|
|
24
|
+
import { P as N } from "./Kbd-DXNjs7at.js";
|
|
25
|
+
import { P as F } from "./Link-08Ee61Fv.js";
|
|
26
|
+
import { P, a as D } from "./Loading-ByI9mjss.js";
|
|
27
|
+
import { v, L, v as v2 } from "./Loading-ByI9mjss.js";
|
|
28
|
+
import { P as J, a as z } from "./Message-CGG-lV5I.js";
|
|
29
|
+
import { m } from "./Message-CGG-lV5I.js";
|
|
30
|
+
import { P as U } from "./Notification-B4clKY5h.js";
|
|
31
|
+
import { a, n } from "./Notification-B4clKY5h.js";
|
|
32
|
+
import { P as T } from "./Pixelate-A8J7jxDW.js";
|
|
33
|
+
import { P as M } from "./Popconfirm-gcHGcOTz.js";
|
|
34
|
+
import { P as O } from "./Progress-DFUBJQ4X.js";
|
|
35
|
+
import { P as q, a as $ } from "./Radio-CLBa1XIM.js";
|
|
36
|
+
import { P as _, a as gg, b as og } from "./Resizable-BWrFr2oj.js";
|
|
37
|
+
import { P as Ig, a as Cg } from "./Select-BtLqds1d.js";
|
|
38
|
+
import { P as ag } from "./Skeleton-CGUQv3nQ.js";
|
|
39
|
+
import { P as lg } from "./Switch-CZJ-S77_.js";
|
|
40
|
+
import { P as mg } from "./Table-lHbxiyGq.js";
|
|
41
|
+
import { t } from "./Table-lHbxiyGq.js";
|
|
42
|
+
import { P as sg } from "./Tooltip-CdPqNYdn.js";
|
|
43
|
+
import { P as Zg } from "./Validator-7ZT_nXDZ.js";
|
|
44
|
+
import { f as eg } from "./vendor-DrBJKLFW.js";
|
|
29
45
|
import "vue";
|
|
30
|
-
import {
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
46
|
+
import { j, k } from "./hooks-pU4JmsO3.js";
|
|
47
|
+
const cg = [g, o, I, C, l, s, Z, e, c, p, A, B, r, b, y, W, X, w, h, S, H, K, Y, f, R, Q, x, N, F, P, D, J, z, U, Ig, T, M, O, q, $, _, gg, og, Cg, ag, lg, mg, sg, Zg], pg = { name: "ja", el: { select: { loading: "ロード中", noMatch: "データなし", noData: "データなし", placeholder: "選択してください" }, dropdown: { toggleDropdown: "ドロップダウン切替" }, messagebox: { title: "メッセージ", confirm: "OK", cancel: "キャンセル", error: "正しくない入力", close: "このダイアログを閉じる" }, popconfirm: { confirmButtonText: "はい", cancelButtonText: "いいえ" } } }, dg = { name: "ko", el: { select: { loading: "불러오는 중", noMatch: "검색된 데이터 없음", noData: "데이터 없음", placeholder: "선택" }, dropdown: { toggleDropdown: "드롭다운 전환" }, messagebox: { title: "메시지", confirm: "확인", cancel: "취소", error: "올바르지 않은 입력", close: "대화 상자 닫기" }, popconfirm: { confirmButtonText: "예", cancelButtonText: "아니오" } } }, Ag = { name: "zh-cn", el: { select: { loading: "加载中", noMatch: "无匹配数据", noData: "无数据", placeholder: "请选择" }, dropdown: { toggleDropdown: "切换下拉菜单" }, messagebox: { title: "提示", confirm: "确定", cancel: "取消", error: "输入的数据不合法!", close: "关闭此对话框" }, popconfirm: { confirmButtonText: "确定", cancelButtonText: "取消" } } }, ig = { name: "zh-tw", el: { select: { loading: "載入中", noMatch: "無相符資料", noData: "無資料", placeholder: "請選擇" }, dropdown: { toggleDropdown: "切換下拉選單" }, messagebox: { title: "提示", confirm: "確定", cancel: "取消", error: "輸入的資料不符規定!", close: "關閉此對話框" }, popconfirm: { confirmButtonText: "確認", cancelButtonText: "取消" } } };
|
|
48
|
+
if (V(), "undefined" != typeof CSS && "paintWorklet" in CSS) try {
|
|
33
49
|
CSS.paintWorklet.addModule(new URL("data:text/javascript;base64,LyoqCiAqIENTUyBIb3VkaW5pIFBhaW50IFdvcmtsZXQgLSBQaXhlbCBCb3JkZXIKICoKICogQ3JlYXRlcyBhdXRoZW50aWMgcGl4ZWxhdGVkIGJvcmRlcnMgZm9yIHJldHJvIFVJIGFlc3RoZXRpYwogKgogKiBDdXN0b20gUHJvcGVydGllczoKICogLSAtLXB4LWJvcmRlci1jb2xvcjogQm9yZGVyIGNvbG9yIChkZWZhdWx0OiAjMDAwMDAwKQogKiAtIC0tcHgtYm9yZGVyLXdpZHRoOiBCb3JkZXIgd2lkdGggaW4gcGl4ZWxzIChkZWZhdWx0OiAyKQogKiAtIC0tcHgtYm9yZGVyLXBpeGVsLXNpemU6IFNpemUgb2YgZWFjaCBwaXhlbCBibG9jayAoZGVmYXVsdDogMikKICovCgpjbGFzcyBQaXhlbEJvcmRlclBhaW50ZXIgewogIHN0YXRpYyBnZXQgaW5wdXRQcm9wZXJ0aWVzKCkgewogICAgcmV0dXJu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ya2xldApyZWdpc3RlclBhaW50KCdwaXhlbC1zaGFkb3cnLCBQaXhlbFNoYWRvd1BhaW50ZXIpOwo=", import.meta.url).href);
|
|
34
50
|
} catch (g2) {
|
|
35
51
|
}
|
|
36
|
-
const
|
|
37
|
-
return (
|
|
38
|
-
|
|
52
|
+
const tg = /* @__PURE__ */ (function(g2) {
|
|
53
|
+
return (o2, I2) => {
|
|
54
|
+
eg(g2, ((g3) => o2.use(g3))), I2 && G(I2, o2, true);
|
|
39
55
|
};
|
|
40
|
-
})(
|
|
56
|
+
})(cg);
|
|
41
57
|
export {
|
|
42
58
|
g as PxAlert,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
59
|
+
o as PxAvatar,
|
|
60
|
+
I as PxBadge,
|
|
61
|
+
C as PxBreadcrumb,
|
|
46
62
|
l as PxBreadcrumbItem,
|
|
47
|
-
|
|
48
|
-
|
|
63
|
+
s as PxButton,
|
|
64
|
+
Z as PxButtonGroup,
|
|
49
65
|
e as PxCard,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
w as
|
|
60
|
-
|
|
61
|
-
S as
|
|
66
|
+
c as PxChatBubble,
|
|
67
|
+
p as PxCheckbox,
|
|
68
|
+
A as PxCheckboxGroup,
|
|
69
|
+
B as PxCollapse,
|
|
70
|
+
r as PxCollapseItem,
|
|
71
|
+
b as PxConfigProvider,
|
|
72
|
+
y as PxDiff,
|
|
73
|
+
W as PxDivider,
|
|
74
|
+
X as PxDrawer,
|
|
75
|
+
w as PxDropdown,
|
|
76
|
+
h as PxDropdownItem,
|
|
77
|
+
S as PxFileInput,
|
|
78
|
+
H as PxFilter,
|
|
79
|
+
K as PxFilterItem,
|
|
80
|
+
Y as PxForm,
|
|
81
|
+
f as PxFormItem,
|
|
82
|
+
R as PxIcon,
|
|
83
|
+
Q as PxIndicator,
|
|
84
|
+
x as PxInput,
|
|
85
|
+
N as PxKbd,
|
|
86
|
+
F as PxLink,
|
|
87
|
+
P as PxLoading,
|
|
62
88
|
v as PxLoadingDirective,
|
|
63
|
-
|
|
89
|
+
D as PxLoadingIndicator,
|
|
64
90
|
L as PxLoadingService,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
91
|
+
J as PxMessage,
|
|
92
|
+
z as PxMessageBox,
|
|
93
|
+
U as PxNotification,
|
|
94
|
+
Ig as PxOption,
|
|
95
|
+
T as PxPixelate,
|
|
96
|
+
M as PxPopconfirm,
|
|
97
|
+
O as PxProgress,
|
|
98
|
+
q as PxRadio,
|
|
99
|
+
$ as PxRadioGroup,
|
|
100
|
+
_ as PxResizableGroup,
|
|
101
|
+
gg as PxResizableHandle,
|
|
102
|
+
og as PxResizablePanel,
|
|
103
|
+
Cg as PxSelect,
|
|
104
|
+
ag as PxSkeleton,
|
|
105
|
+
lg as PxSwitch,
|
|
106
|
+
mg as PxTable,
|
|
107
|
+
sg as PxTooltip,
|
|
108
|
+
Zg as PxValidator,
|
|
109
|
+
tg as default,
|
|
74
110
|
d as defaultPixelIcons,
|
|
75
111
|
E as en,
|
|
76
112
|
i as iconSizeMap,
|
|
77
|
-
|
|
78
|
-
|
|
113
|
+
pg as ja,
|
|
114
|
+
dg as ko,
|
|
79
115
|
m as messageTypes,
|
|
80
116
|
a as notificationPosition,
|
|
81
117
|
n as notificationTypes,
|
|
82
|
-
|
|
83
|
-
|
|
118
|
+
G as provideGlobalConfig,
|
|
119
|
+
V as registerDefaultPixelIcons,
|
|
120
|
+
t as tableSize,
|
|
84
121
|
u2 as useFormItem,
|
|
85
122
|
u as useGlobalConfig,
|
|
86
|
-
|
|
87
|
-
|
|
123
|
+
j as useSystemTheme,
|
|
124
|
+
k as useTheme,
|
|
88
125
|
v2 as vLoading,
|
|
89
|
-
|
|
90
|
-
|
|
126
|
+
Ag as zhCn,
|
|
127
|
+
ig as zhTw
|
|
91
128
|
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { h as e, d as t, y as o } from "./vendor-DrBJKLFW.js";
|
|
2
|
+
import { defineComponent as r } from "vue";
|
|
3
|
+
function n(e2, t2) {
|
|
4
|
+
const o2 = parseInt(e2.replace("#", ""), 16);
|
|
5
|
+
return `#${(Math.max(0, (o2 >> 16) - Math.round(2.55 * t2)) << 16 | Math.max(0, (o2 >> 8 & 255) - Math.round(2.55 * t2)) << 8 | Math.max(0, (255 & o2) - Math.round(2.55 * t2))).toString(16).padStart(6, "0")}`;
|
|
6
|
+
}
|
|
7
|
+
function a(e2, t2) {
|
|
8
|
+
const o2 = parseInt(e2.replace("#", ""), 16);
|
|
9
|
+
return `#${(Math.min(255, (o2 >> 16) + Math.round(2.55 * t2)) << 16 | Math.min(255, (o2 >> 8 & 255) + Math.round(2.55 * t2)) << 8 | Math.min(255, (255 & o2) + Math.round(2.55 * t2))).toString(16).padStart(6, "0")}`;
|
|
10
|
+
}
|
|
11
|
+
function c(e2) {
|
|
12
|
+
const t2 = parseInt(e2.replace("#", ""), 16);
|
|
13
|
+
return (0.299 * (t2 >> 16) + 0.587 * (t2 >> 8 & 255) + 0.114 * (255 & t2)) / 255 > 0.6 ? "#1e1e2e" : "#ffffff";
|
|
14
|
+
}
|
|
15
|
+
function s(e2) {
|
|
16
|
+
return { color: e2, dark: n(e2, 15), light: a(e2, 35), contrast: c(e2), transparent: "transparent" };
|
|
17
|
+
}
|
|
18
|
+
function i(e2, t2, o2) {
|
|
19
|
+
const r2 = {};
|
|
20
|
+
for (const [n2, a2] of Object.entries(o2)) r2[`--${t2}-${n2}`] = e2[a2];
|
|
21
|
+
return r2;
|
|
22
|
+
}
|
|
23
|
+
const l = { outline: { "text-color": "color", "bg-color": "transparent", "border-color": "color", "shadow-color": "transparent" }, dash: { "text-color": "color", "bg-color": "light", "border-color": "color", "shadow-color": "transparent" }, default: { "text-color": "contrast", "bg-color": "color", "border-color": "dark", "shadow-color": "dark" } };
|
|
24
|
+
function u(e2, t2) {
|
|
25
|
+
}
|
|
26
|
+
const f = { spinner: "loader", loading: "loader", "eye-slash": "eye-closed", "eye-off": "eye-closed", xmark: "close", x: "close", times: "close", "circle-xmark": "close-box", "x-circle": "close-box", "times-circle": "close-box", error: "close-box", "circle-info": "info-box", "info-circle": "info-box", info: "info-box", "check-circle": "check", "circle-check": "check", success: "check", "circle-exclamation": "warning-box", "exclamation-circle": "warning-box", warning: "warning-box", "angle-down": "chevron-down", "caret-down": "chevron-down", "angle-up": "chevron-up", "caret-up": "chevron-up", "angle-left": "chevron-left", "caret-left": "chevron-left", "angle-right": "chevron-right", "caret-right": "chevron-right", "question-circle": "info-box", "circle-question": "info-box", help: "info-box", question: "info-box", gear: "sliders", cog: "sliders", settings: "sliders", star: "bookmark", "star-solid": "bookmark" };
|
|
27
|
+
function d(e2) {
|
|
28
|
+
return e2 in f ? f[e2] : e2;
|
|
29
|
+
}
|
|
30
|
+
const h = /* @__PURE__ */ new Set(["svg", "path", "rect", "circle", "ellipse", "line", "polyline", "polygon", "g", "defs", "clipPath", "mask", "title", "desc", "linearGradient", "radialGradient", "stop", "symbol", "use"]), g = /^on/i, p = /^\s*javascript\s*:/i;
|
|
31
|
+
function m(e2) {
|
|
32
|
+
if (!e2 || "string" != typeof e2) return "";
|
|
33
|
+
if ("undefined" == typeof DOMParser) return "";
|
|
34
|
+
const t2 = new DOMParser().parseFromString(e2, "image/svg+xml");
|
|
35
|
+
return t2.querySelector("parsererror") ? "" : (b(t2.documentElement), t2.documentElement.outerHTML);
|
|
36
|
+
}
|
|
37
|
+
function b(e2) {
|
|
38
|
+
const t2 = Array.from(e2.children);
|
|
39
|
+
for (const e3 of t2) {
|
|
40
|
+
const t3 = e3.tagName.toLowerCase();
|
|
41
|
+
if (h.has(t3)) {
|
|
42
|
+
for (const t4 of Array.from(e3.attributes)) (g.test(t4.name) || "href" === t4.name && p.test(t4.value) || "xlink:href" === t4.name && p.test(t4.value)) && e3.removeAttribute(t4.name);
|
|
43
|
+
b(e3);
|
|
44
|
+
} else e3.remove();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const x = /* @__PURE__ */ new Map();
|
|
48
|
+
function M(e2) {
|
|
49
|
+
for (const [t2, o2] of Object.entries(e2)) x.set(t2, m(o2));
|
|
50
|
+
}
|
|
51
|
+
function v(e2) {
|
|
52
|
+
return x.get(e2);
|
|
53
|
+
}
|
|
54
|
+
const w = (e2) => (e2.install = (t2) => {
|
|
55
|
+
const o2 = e2.name;
|
|
56
|
+
t2.component(o2, e2);
|
|
57
|
+
}, e2), y = (e2, t2) => (e2.install = (o2) => {
|
|
58
|
+
o2.config.globalProperties[t2] = e2;
|
|
59
|
+
}, e2);
|
|
60
|
+
function k(e2, t2) {
|
|
61
|
+
for (; e2.length >= t2; ) e2[0].props.onDestroy();
|
|
62
|
+
}
|
|
63
|
+
function S(e2) {
|
|
64
|
+
let t2 = false, o2 = 0;
|
|
65
|
+
const r2 = (t3) => {
|
|
66
|
+
var _a;
|
|
67
|
+
"Escape" === t3.code && ((_a = e2()) == null ? void 0 : _a.handler.close());
|
|
68
|
+
};
|
|
69
|
+
return { register() {
|
|
70
|
+
o2++, t2 || (document.addEventListener("keydown", r2), t2 = true);
|
|
71
|
+
}, unregister() {
|
|
72
|
+
o2--, o2 <= 0 && (document.removeEventListener("keydown", r2), t2 = false, o2 = 0);
|
|
73
|
+
} };
|
|
74
|
+
}
|
|
75
|
+
function N(e2, t2, o2, r2) {
|
|
76
|
+
if (0 === r2.length) return [e2, t2, o2];
|
|
77
|
+
let n2 = 1 / 0, a2 = r2[0];
|
|
78
|
+
for (const c2 of r2) {
|
|
79
|
+
const r3 = (e2 - c2[0]) ** 2 + (t2 - c2[1]) ** 2 + (o2 - c2[2]) ** 2;
|
|
80
|
+
if (0 === r3) return c2;
|
|
81
|
+
r3 < n2 && (n2 = r3, a2 = c2);
|
|
82
|
+
}
|
|
83
|
+
return a2;
|
|
84
|
+
}
|
|
85
|
+
function $(e2, t2, o2) {
|
|
86
|
+
const r2 = e2.getContext("2d");
|
|
87
|
+
if (!r2) return;
|
|
88
|
+
const { pixelSize: n2, grayscale: a2 = false, palette: c2, background: s2 = "#FFFFFF" } = o2, i2 = t2.naturalWidth, l2 = t2.naturalHeight;
|
|
89
|
+
e2.width = i2, e2.height = l2, r2.drawImage(t2, 0, 0, i2, l2);
|
|
90
|
+
const u2 = r2.getImageData(0, 0, i2, l2).data, f2 = Math.max(1, Math.round(n2)), d2 = c2 ? (function(e3) {
|
|
91
|
+
return e3.map(((e4) => "string" == typeof e4 ? (function(e5) {
|
|
92
|
+
const t3 = e5.replace("#", "");
|
|
93
|
+
return [parseInt(t3.substring(0, 2), 16), parseInt(t3.substring(2, 4), 16), parseInt(t3.substring(4, 6), 16)];
|
|
94
|
+
})(e4) : e4));
|
|
95
|
+
})(c2) : null;
|
|
96
|
+
r2.fillStyle = s2, r2.fillRect(0, 0, i2, l2);
|
|
97
|
+
for (let e3 = 0; e3 < l2; e3 += f2) for (let t3 = 0; t3 < i2; t3 += f2) {
|
|
98
|
+
const o3 = Math.min(f2, i2 - t3), n3 = Math.min(f2, l2 - e3);
|
|
99
|
+
let c3 = 0, s3 = 0, h2 = 0, g2 = 0;
|
|
100
|
+
for (let r3 = 0; r3 < n3; r3++) for (let n4 = 0; n4 < o3; n4++) {
|
|
101
|
+
const o4 = 4 * ((e3 + r3) * i2 + (t3 + n4));
|
|
102
|
+
c3 += u2[o4], s3 += u2[o4 + 1], h2 += u2[o4 + 2], g2++;
|
|
103
|
+
}
|
|
104
|
+
let p2 = Math.round(c3 / g2), m2 = Math.round(s3 / g2), b2 = Math.round(h2 / g2);
|
|
105
|
+
a2 && (p2 = m2 = b2 = Math.round(0.299 * p2 + 0.587 * m2 + 0.114 * b2)), d2 && ([p2, m2, b2] = N(p2, m2, b2, d2)), r2.fillStyle = `rgb(${p2},${m2},${b2})`, r2.fillRect(t3, e3, o3, n3);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function F(o2, r2 = "px") {
|
|
109
|
+
return o2 ? e(o2) || ((e2) => !!t(e2) && !Number.isNaN(Number(e2)))(o2) ? `${o2}${r2}` : t(o2) ? o2 : void 0 : "";
|
|
110
|
+
}
|
|
111
|
+
function I(e2, t2, o2) {
|
|
112
|
+
return Math.max(t2, Math.min(o2, e2));
|
|
113
|
+
}
|
|
114
|
+
const j = /* @__PURE__ */ new Map([["info", "info-box"], ["success", "check"], ["warning", "warning-box"], ["danger", "close-box"], ["error", "close-box"]]), O = r({ props: { vNode: { type: [String, Object, Function], required: true } }, setup: (e2) => () => o(e2.vNode) ? e2.vNode() : e2.vNode }), q = (e2, t2) => {
|
|
115
|
+
const o2 = e2.__vccOpts || e2;
|
|
116
|
+
for (const [e3, r2] of t2) o2[e3] = r2;
|
|
117
|
+
return o2;
|
|
118
|
+
};
|
|
119
|
+
export {
|
|
120
|
+
O as R,
|
|
121
|
+
l as S,
|
|
122
|
+
q as _,
|
|
123
|
+
I as a,
|
|
124
|
+
F as b,
|
|
125
|
+
s as c,
|
|
126
|
+
u as d,
|
|
127
|
+
d as e,
|
|
128
|
+
M as f,
|
|
129
|
+
v as g,
|
|
130
|
+
k as h,
|
|
131
|
+
S as i,
|
|
132
|
+
y as j,
|
|
133
|
+
a as l,
|
|
134
|
+
$ as p,
|
|
135
|
+
i as r,
|
|
136
|
+
m as s,
|
|
137
|
+
j as t,
|
|
138
|
+
w
|
|
139
|
+
};
|