sakana-element 2.1.2 → 2.1.4

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.
Files changed (66) hide show
  1. package/README.md +81 -79
  2. package/dist/es/Alert-C76ZWSVk.js +19 -0
  3. package/dist/es/Badge-BG-vYP8Y.js +13 -0
  4. package/dist/es/Button-fW_ZOLmT.js +24 -0
  5. package/dist/es/Card-BCBnlVi_.js +12 -0
  6. package/dist/es/{Collapse-l_8qKOBG.js → Collapse-B08VhCVq.js} +2 -2
  7. package/dist/es/{ConfigProvider-BPm3h9RG.js → ConfigProvider-DZO1d5Eq.js} +1 -1
  8. package/dist/es/{Dropdown-ZjZ0qSn2.js → Dropdown-49nf6F8P.js} +11 -11
  9. package/dist/es/{Form-pxRZxseS.js → Form-CGiTDSGI.js} +2 -2
  10. package/dist/es/{Icon-UBaqO2nY.js → Icon-DpJyuj7c.js} +1 -1
  11. package/dist/es/Input-DBPpvf0Y.js +42 -0
  12. package/dist/es/{Loading-BJJBJhg3.js → Loading-DlygqGOv.js} +2 -2
  13. package/dist/es/{Message-CqBKW0c8.js → Message-ganFfLeU.js} +14 -14
  14. package/dist/es/{Notification-CVACM2cj.js → Notification-D4RYHV9o.js} +8 -8
  15. package/dist/es/{Overlay-C1k4Jcl7.js → Overlay-BRDSWspM.js} +1 -1
  16. package/dist/es/{Popconfirm-CW8oRycq.js → Popconfirm-Cop44KwQ.js} +4 -4
  17. package/dist/es/Select-TIoGsqKv.js +133 -0
  18. package/dist/es/Switch-CHjcLtHs.js +34 -0
  19. package/dist/es/{Tooltip-D9rQ4LEg.js → Tooltip-HWx_i2FA.js} +23 -23
  20. package/dist/es/{hooks-DNMt3QPi.js → hooks-CYdEHUVd.js} +6 -5
  21. package/dist/es/index.js +59 -55
  22. package/dist/es/utils-bsCscZfS.js +84 -0
  23. package/dist/index.css +1 -1
  24. package/dist/theme/Alert.css +114 -38
  25. package/dist/theme/Badge.css +208 -0
  26. package/dist/theme/Button.css +365 -105
  27. package/dist/theme/Card.css +112 -0
  28. package/dist/theme/Collapse.css +2 -2
  29. package/dist/theme/Dropdown.css +4 -4
  30. package/dist/theme/Input.css +213 -4
  31. package/dist/theme/Select.css +182 -38
  32. package/dist/theme/Switch.css +56 -0
  33. package/dist/theme/Tooltip.css +10 -10
  34. package/dist/theme/fonts/zpix.woff2 +0 -0
  35. package/dist/theme/index.css +21 -3
  36. package/dist/types/components/Alert/types.d.ts +3 -0
  37. package/dist/types/components/Badge/index.d.ts +27 -0
  38. package/dist/types/components/Badge/types.d.ts +10 -0
  39. package/dist/types/components/Button/constants.d.ts +2 -0
  40. package/dist/types/components/Button/types.d.ts +3 -0
  41. package/dist/types/components/Card/index.d.ts +26 -0
  42. package/dist/types/components/Card/types.d.ts +6 -0
  43. package/dist/types/components/Input/constants.d.ts +3 -0
  44. package/dist/types/components/Input/types.d.ts +2 -0
  45. package/dist/types/components/Select/constants.d.ts +3 -0
  46. package/dist/types/components/Select/index.d.ts +7 -5
  47. package/dist/types/components/Select/types.d.ts +4 -1
  48. package/dist/types/components/Select/useKeyMap.d.ts +1 -1
  49. package/dist/types/components/Switch/types.d.ts +6 -0
  50. package/dist/types/components/Tooltip/useEventsToTriggerNode.d.ts +4 -0
  51. package/dist/types/components/index.d.ts +2 -0
  52. package/dist/types/hooks/useSystemTheme.d.ts +1 -1
  53. package/dist/types/utils/color.d.ts +33 -0
  54. package/dist/types/utils/index.d.ts +1 -0
  55. package/dist/umd/index.css +1 -1
  56. package/dist/umd/index.css.gz +0 -0
  57. package/dist/umd/index.umd.cjs +3 -3
  58. package/dist/umd/index.umd.cjs.gz +0 -0
  59. package/package.json +1 -1
  60. package/dist/es/Alert-C5X-XFGJ.js +0 -15
  61. package/dist/es/Button-DTik2ZP6.js +0 -33
  62. package/dist/es/Input-BJoBaFXa.js +0 -38
  63. package/dist/es/Select-C7mwByXa.js +0 -126
  64. package/dist/es/Switch-CgFPFC3j.js +0 -22
  65. package/dist/es/utils-340oIQ8K.js +0 -59
  66. package/dist/types/components/Tooltip/useEventsToTiggerNode.d.ts +0 -4
@@ -0,0 +1,133 @@
1
+ import { R as e, _ as l, c as t, r as o, w as a } from "./utils-bsCscZfS.js";
2
+ import { defineComponent as i, inject as s, computed as n, createElementBlock as u, openBlock as r, withModifiers as d, normalizeClass as c, renderSlot as p, createVNode as h, unref as v, useSlots as f, ref as g, reactive as m, watchEffect as b, watch as y, onMounted as x, onBeforeUnmount as _, provide as V, normalizeStyle as w, withCtx as I, createCommentVNode as M, createElementVNode as k, Fragment as S, renderList as O, createBlock as L, mergeProps as B, nextTick as z } from "vue";
3
+ import { C as D, D as j, g as C, b as F, s as R, e as $, E, F as H, f as P, y as N, q as W, i as q, G as A, c as T } from "./vendor-DXmGx29U.js";
4
+ import { u as U, c as G, a as K } from "./hooks-CYdEHUVd.js";
5
+ import { P as J } from "./Icon-DpJyuj7c.js";
6
+ import { _ as Q } from "./Input-DBPpvf0Y.js";
7
+ import { T as X } from "./Tooltip-HWx_i2FA.js";
8
+ const Y = Symbol("selectContext"), Z = { modifiers: [{ name: "offset", options: { offset: [0, 9] } }, { name: "sameWidth", enabled: true, fn: ({ state: e2 }) => {
9
+ e2.styles.popper.width = `${e2.rects.reference.width}px`;
10
+ }, phase: "beforeWrite", requires: ["computeStyles"] }] }, ee = /* @__PURE__ */ new Set(["primary", "success", "warning", "danger", "info"]), le = { default: { "item-selected-font-color": "color", "item-selected-bg-color": "light", "item-indicator-color": "color", "item-highlighted-border-color": "color" }, ghost: { "item-selected-font-color": "color", "item-selected-bg-color": "light", "item-indicator-color": "color", "item-highlighted-border-color": "color" } }, te = ["id"], oe = l(i({ name: "PxOption", __name: "Option", props: { value: {}, label: {}, disabled: { type: Boolean, default: false } }, setup(l2) {
11
+ const t2 = l2, o2 = s(Y), a2 = n((() => {
12
+ var _a;
13
+ return ((_a = o2 == null ? void 0 : o2.selectStates.selectedOption) == null ? void 0 : _a.value) === t2.value;
14
+ })), i2 = n((() => D(["label", "value"], ((e2) => j(C(o2, ["highlightedLine", "value", e2]), C(t2, e2))))));
15
+ function f2() {
16
+ t2.disabled || (o2 == null ? void 0 : o2.handleSelect(t2));
17
+ }
18
+ return (l3, s2) => (r(), u("li", { class: c(["px-select__menu-item", { "is-disabled": l3.disabled, "is-selected": a2.value, "is-highlighted": i2.value }]), id: `select-item-${l3.value}`, onClick: d(f2, ["stop"]) }, [p(l3.$slots, "default", {}, (() => {
19
+ var _a, _b;
20
+ return [h(v(e), { vNode: ((_a = v(o2)) == null ? void 0 : _a.renderLabel) ? (_b = v(o2)) == null ? void 0 : _b.renderLabel(t2) : l3.label }, null, 8, ["vNode"])];
21
+ }), true)], 10, te));
22
+ } }), [["__scopeId", "data-v-c5f1823d"]]), ae = { key: 0, class: "px-select__loading" }, ie = { key: 1, class: "px-select__nodata" }, se = { class: "px-select__menu" }, ne = a(l(i({ name: "PxSelect", __name: "Select", props: { modelValue: {}, id: {}, options: { default: () => [] }, placeholder: {}, disabled: { type: Boolean }, clearable: { type: Boolean }, ghost: { type: Boolean }, color: {}, size: {}, renderLabel: {}, filterable: { type: Boolean }, filterMethod: {}, remote: { type: Boolean }, remoteMethod: {} }, emits: ["update:modelValue", "change", "visible-change", "clear", "focus", "blur"], setup(e2, { expose: l2, emit: a2 }) {
23
+ const i2 = e2, s2 = a2, p2 = f(), D2 = g(), te2 = g(), ne2 = g(), ue2 = g(/* @__PURE__ */ new Map()), re = g(i2.options ?? []), de = g(false), ce = Ee(i2.modelValue), pe = m({ inputValue: (ce == null ? void 0 : ce.label) ?? "", selectedOption: ce, mouseHover: false, loading: false, highlightedIndex: -1 }), he = n((() => i2.disabled)), ve = n((() => ee.has(i2.color ?? ""))), fe = n((() => !!i2.color && !ve.value)), ge = n((() => {
24
+ if (!fe.value) return {};
25
+ const e3 = t(i2.color), l3 = i2.ghost ? "ghost" : "default";
26
+ return o(e3, "px-select", le[l3]);
27
+ })), me = n((() => {
28
+ var _a;
29
+ return F((_a = p2 == null ? void 0 : p2.default) == null ? void 0 : _a.call(p2), ((e3) => j(e3.type, oe)));
30
+ })), be = n((() => R(me.value) > 0)), ye = n((() => i2.clearable && pe.mouseHover && "" !== pe.inputValue)), xe = n((() => {
31
+ let e3;
32
+ return e3 = be.value ? [...ue2.value.values()][pe.highlightedIndex] : re.value[pe.highlightedIndex], e3;
33
+ })), _e = n((() => be.value ? $(me.value, ((e3) => {
34
+ var _a, _b, _c;
35
+ return { props: { ...e3.props, disabled: true === ((_a = e3.props) == null ? void 0 : _a.disabled) || !q((_b = e3.props) == null ? void 0 : _b.disabled) && !A((_c = e3.props) == null ? void 0 : _c.disabled) } };
36
+ })) : [])), Ve = n((() => !!i2.filterable && !we.value)), we = n((() => be.value && ue2.value.size > 0 || !be.value && R(re.value) > 0)), Ie = n((() => be.value ? ue2.value.size - 1 : R(re.value) - 1)), Me = n((() => i2.filterable && pe.selectedOption && de.value ? pe.selectedOption.label : i2.placeholder)), ke = n((() => i2.remote ? 300 : 100));
37
+ let Se = E(Ne, ke.value);
38
+ b((() => {
39
+ Se.cancel(), Se = E(Ne, ke.value);
40
+ }));
41
+ const Oe = U().value, { wrapperRef: Le, isFocused: Be, handleBlur: ze, handleFocus: De } = G(ne2), je = (function({ isDropdownVisible: e3, controlVisible: l3, selectStates: t2, highlightedLine: o2, handleSelect: a3, hasData: i3, lastIndex: s3 }) {
42
+ const n2 = /* @__PURE__ */ new Map();
43
+ return n2.set("Enter", (() => {
44
+ e3.value && t2.highlightedIndex >= 0 && o2.value && a3(o2.value), l3(!e3.value);
45
+ })), n2.set("Escape", (() => e3.value && l3(!e3.value))), n2.set("ArrowUp", ((e4) => {
46
+ e4.preventDefault(), i3.value && (-1 !== t2.highlightedIndex && 0 !== t2.highlightedIndex ? t2.highlightedIndex-- : t2.highlightedIndex = s3.value);
47
+ })), n2.set("ArrowDown", ((e4) => {
48
+ e4.preventDefault(), i3.value && (-1 !== t2.highlightedIndex && t2.highlightedIndex !== s3.value ? t2.highlightedIndex++ : t2.highlightedIndex = 0);
49
+ })), n2;
50
+ })({ isDropdownVisible: de, controlVisible: Fe, selectStates: pe, highlightedLine: xe, handleSelect: He, hasData: we, lastIndex: Ie });
51
+ function Ce(e3) {
52
+ Be.value && z((() => ze(new FocusEvent("focus", e3))));
53
+ }
54
+ function Fe(e3) {
55
+ var _a;
56
+ te2.value && ((_a = C(te2, ["value", e3 ? "show" : "hide"])) == null ? void 0 : _a(), i2.filterable && (function(e4) {
57
+ var _a2;
58
+ i2.filterable && (e4 ? (pe.selectedOption && (pe.inputValue = ""), Se()) : pe.inputValue = ((_a2 = pe.selectedOption) == null ? void 0 : _a2.label) || "");
59
+ })(e3), de.value = e3, s2("visible-change", e3), pe.highlightedIndex = -1);
60
+ }
61
+ function Re() {
62
+ he.value || Fe(!de.value);
63
+ }
64
+ function $e() {
65
+ var _a;
66
+ (_a = ne2.value) == null ? void 0 : _a.clear(), pe.inputValue = "", pe.selectedOption = null, s2("clear"), P(["change", "update:modelValue"], ((e3) => s2(e3, "")));
67
+ }
68
+ function Ee(e3) {
69
+ return H(i2.options, ((l3) => l3.value === e3));
70
+ }
71
+ function He(e3) {
72
+ var _a;
73
+ e3.disabled || (pe.inputValue = e3.label, pe.selectedOption = e3, P(["change", "update:modelValue"], ((l3) => s2(l3, e3.value))), Fe(false), (_a = ne2.value) == null ? void 0 : _a.focus());
74
+ }
75
+ function Pe(e3) {
76
+ ue2.value.clear(), P(e3, ((e4) => {
77
+ ue2.value.set(e4.props.value, e4.props);
78
+ }));
79
+ }
80
+ function Ne() {
81
+ const e3 = pe.inputValue;
82
+ pe.highlightedIndex = -1, be.value ? (async function(e4) {
83
+ if (i2.filterable) {
84
+ if (i2.remote && i2.remoteMethod && N(i2.remoteMethod)) return await qe(i2.remoteMethod, e4), void Pe(_e.value);
85
+ if (i2.filterMethod && N(i2.filterMethod)) {
86
+ const l3 = $(i2.filterMethod(e4), "value");
87
+ Pe(F(_e.value, ((e5) => T(l3, C(e5, ["props", "value"])))));
88
+ } else Pe(F(_e.value, ((l3) => T(C(l3, ["props", "label"]), e4))));
89
+ }
90
+ })(e3) : (async function(e4) {
91
+ i2.filterable && (i2.remote && i2.remoteMethod && N(i2.remoteMethod) ? re.value = await qe(i2.remoteMethod, e4) : i2.filterMethod && N(i2.filterMethod) ? re.value = i2.filterMethod(e4) : re.value = F(i2.options, ((l3) => T(l3.label, e4))));
92
+ })(e3);
93
+ }
94
+ function We(e3) {
95
+ var _a;
96
+ je.has(e3.key) && ((_a = je.get(e3.key)) == null ? void 0 : _a(e3));
97
+ }
98
+ async function qe(e3, l3) {
99
+ if (!e3 || !N(e3)) return;
100
+ let t2;
101
+ pe.loading = true;
102
+ try {
103
+ t2 = await e3(l3);
104
+ } catch (e4) {
105
+ t2 = [];
106
+ }
107
+ return t2;
108
+ }
109
+ function Ae() {
110
+ const e3 = Ee(i2.modelValue);
111
+ e3 && (pe.inputValue = e3.label, pe.selectedOption = e3);
112
+ }
113
+ return K(D2, ((e3) => Ce(e3))), y((() => i2.options), ((e3) => {
114
+ re.value = e3 ?? [];
115
+ })), y((() => _e.value), ((e3) => Pe(e3)), { immediate: true }), y((() => i2.modelValue), (() => {
116
+ Ae();
117
+ })), x((() => {
118
+ Ae();
119
+ })), _((() => {
120
+ Se.cancel();
121
+ })), V(Y, { handleSelect: He, selectStates: pe, renderLabel: function(e3) {
122
+ return N(i2.renderLabel) ? i2.renderLabel(e3) : e3.label;
123
+ }, highlightedLine: xe }), l2({ focus: () => {
124
+ var _a;
125
+ (_a = ne2.value) == null ? void 0 : _a.focus();
126
+ }, blur: () => {
127
+ Ce();
128
+ } }), (e3, l3) => (r(), u("div", { ref_key: "selectRef", ref: D2, class: c(["px-select", { "is-disabled": he.value, "is-ghost": e3.ghost, [`px-select--${e3.size}`]: e3.size, [`px-select--${e3.color}`]: ve.value }]), style: w(ge.value), onClick: d(Re, ["stop"]), onMouseenter: l3[2] || (l3[2] = (e4) => pe.mouseHover = true), onMouseleave: l3[3] || (l3[3] = (e4) => pe.mouseHover = false) }, [h(X, { ref_key: "tooltipRef", ref: te2, placement: "bottom-start", "popper-options": v(Z), onClickOutside: l3[1] || (l3[1] = (e4) => Fe(false)), manual: "" }, { default: I((() => [k("div", { ref_key: "inputWrapperRef", ref: Le }, [h(Q, { ref_key: "inputRef", ref: ne2, modelValue: pe.inputValue, "onUpdate:modelValue": l3[0] || (l3[0] = (e4) => pe.inputValue = e4), id: v(Oe), disabled: he.value, ghost: e3.ghost, color: e3.color, size: e3.size, placeholder: e3.filterable ? Me.value : e3.placeholder, readonly: !e3.filterable || !de.value, onFocus: v(De), onBlur: v(ze), onInput: v(Se), onKeydown: We }, { suffix: I((() => [ye.value ? (r(), L(J, { key: 0, icon: "close-box", class: "px-input__clear", onClick: d($e, ["stop"]), onMousedown: d(v(W), ["prevent"]) }, null, 8, ["onMousedown"])) : (r(), L(J, { key: 1, class: c(["header-angle", { "is-active": de.value }]), icon: "chevron-down" }, null, 8, ["class"]))])), _: 1 }, 8, ["modelValue", "id", "disabled", "ghost", "color", "size", "placeholder", "readonly", "onFocus", "onBlur", "onInput"])], 512)])), content: I((() => [pe.loading ? (r(), u("div", ae, [h(J, { icon: "loader", spin: "" })])) : e3.filterable && Ve.value ? (r(), u("div", ie, " No data ")) : M("", true), k("ul", se, [be.value ? (r(true), u(S, { key: 1 }, O(ue2.value, (([e4, l4]) => (r(), L(oe, B({ key: e4, ref_for: true }, l4), null, 16)))), 128)) : (r(true), u(S, { key: 0 }, O(re.value, ((e4) => (r(), L(oe, B({ key: e4.value, ref_for: true }, e4), null, 16)))), 128))])])), _: 1 }, 8, ["popper-options"])], 38));
129
+ } }), [["__scopeId", "data-v-ec41a99d"]])), ue = a(oe);
130
+ export {
131
+ ne as P,
132
+ ue as a
133
+ };
@@ -0,0 +1,34 @@
1
+ import { c as e, w as i } from "./utils-bsCscZfS.js";
2
+ import { defineComponent as c, computed as t, ref as a, onMounted as o, watch as l, createElementBlock as s, openBlock as n, normalizeStyle as r, normalizeClass as u, createElementVNode as v, withKeys as d, unref as p, createCommentVNode as h, toDisplayString as x, createBlock as m } from "vue";
3
+ import { u as f } from "./hooks-CYdEHUVd.js";
4
+ import { P as w } from "./Icon-DpJyuj7c.js";
5
+ const _ = ["id", "name", "disabled", "checked"], k = { class: "px-switch__core" }, y = { class: "px-switch__core-inner" }, b = { key: 0, class: "px-switch__core-inner-text" }, V = { class: "px-switch__core-action" }, C = i(c({ name: "PxSwitch", inheritAttrs: false, __name: "Switch", props: { modelValue: { type: [Boolean, String, Number] }, disabled: { type: Boolean }, activeText: {}, inactiveText: {}, activeValue: { type: [Boolean, String, Number], default: true }, inactiveValue: { type: [Boolean, String, Number], default: false }, name: {}, id: {}, size: {}, type: {}, activeColor: {}, inactiveColor: {}, activeIcon: {}, inactiveIcon: {} }, emits: ["update:modelValue", "change"], setup(i2, { expose: c2, emit: C2 }) {
6
+ const T = i2, g = C2, I = t((() => T.disabled)), S = a(T.modelValue), z = a(), B = f().value, j = t((() => S.value === T.activeValue)), N = t((() => j.value ? T.activeIcon : T.inactiveIcon)), P = t((() => {
7
+ const i3 = {};
8
+ if (T.activeColor) {
9
+ const c3 = e(T.activeColor);
10
+ i3["--px-switch-on-color"] = c3.color, i3["--px-switch-on-border-color"] = c3.dark;
11
+ }
12
+ if (T.inactiveColor) {
13
+ const c3 = e(T.inactiveColor);
14
+ i3["--px-switch-off-color"] = c3.color, i3["--px-switch-off-border-color"] = c3.dark;
15
+ }
16
+ return i3;
17
+ }));
18
+ function $() {
19
+ if (I.value) return;
20
+ const e2 = j.value ? T.inactiveValue : T.activeValue;
21
+ S.value = e2, g("update:modelValue", e2), g("change", e2);
22
+ }
23
+ return o((() => {
24
+ z.value.checked = j.value;
25
+ })), l(j, ((e2) => {
26
+ z.value.checked = e2;
27
+ })), c2({ checked: j, focus: () => {
28
+ var _a;
29
+ (_a = z.value) == null ? void 0 : _a.focus();
30
+ } }), (e2, i3) => (n(), s("div", { class: u(["px-switch", { [`px-switch--${e2.size}`]: e2.size, [`px-switch--${e2.type}`]: e2.type, "is-disabled": I.value, "is-checked": j.value }]), style: r(P.value), onClick: $ }, [v("input", { class: "px-switch__input", type: "checkbox", role: "switch", ref_key: "inputRef", ref: z, id: p(B), name: e2.name, disabled: I.value, checked: j.value, onKeydown: d($, ["enter"]) }, null, 40, _), v("div", k, [v("div", y, [e2.activeText || e2.inactiveText ? (n(), s("span", b, x(j.value ? e2.activeText : e2.inactiveText), 1)) : h("", true)]), v("div", V, [N.value ? (n(), m(w, { key: 0, class: "px-switch__icon", icon: N.value, size: "xs" }, null, 8, ["icon"])) : h("", true)])])], 6));
31
+ } }));
32
+ export {
33
+ C as P
34
+ };
@@ -1,7 +1,7 @@
1
- import { _ as e, w as t } from "./utils-340oIQ8K.js";
2
- import { onMounted as o, watch as a, onUnmounted as i, defineComponent as l, ref as r, computed as n, watchEffect as u, createElementBlock as s, openBlock as v, mergeProps as c, toHandlers as p, renderSlot as d, createVNode as f, unref as g, Transition as m, withCtx as h, createCommentVNode as _, createElementVNode as k, createTextVNode as y, toDisplayString as T } from "vue";
3
- import { createPopper as b } from "@popperjs/core";
4
- import { u as x, a as w } from "./hooks-DNMt3QPi.js";
1
+ import { _ as e, w as t } from "./utils-bsCscZfS.js";
2
+ import { onMounted as a, watch as o, onUnmounted as i, defineComponent as l, ref as r, computed as n, watchEffect as u, createElementBlock as s, openBlock as v, mergeProps as c, toHandlers as p, renderSlot as d, createVNode as f, unref as g, Transition as m, withCtx as h, createCommentVNode as b, createElementVNode as _, createTextVNode as k, toDisplayString as y } from "vue";
3
+ import { createPopper as T } from "@popperjs/core";
4
+ import { u as x, a as w } from "./hooks-CYdEHUVd.js";
5
5
  import { H as j, f as B, E, v as L } from "./vendor-DXmGx29U.js";
6
6
  const N = ["aria-describedby"], R = ["id"], $ = e(l({ name: "PxTooltip", __name: "Tooltip", props: { content: {}, trigger: { default: "hover" }, placement: { default: "bottom" }, manual: { type: Boolean }, disabled: { type: Boolean }, popperOptions: {}, transition: { default: "fade" }, showTimeout: { default: 0 }, hideTimeout: { default: 200 }, virtualRef: {}, virtualTriggering: { type: Boolean } }, emits: ["visible-change", "click-outside"], setup(e2, { expose: t2, emit: l2 }) {
7
7
  const $2 = e2, O2 = l2, P = r(false), A = x("px-tooltip"), D = r({}), H = r({}), I = r({}), M = r(), q = r(), z = r(), C = n((() => $2.virtualTriggering ? $2.virtualRef : z.value)), F = n((() => ({ placement: $2.placement, modifiers: [{ name: "offset", options: { offset: [0, 9] } }], ...$2.popperOptions }))), G = n((() => "hover" === $2.trigger ? $2.showTimeout : 0)), J = n((() => "hover" === $2.trigger ? $2.hideTimeout : 0));
@@ -29,45 +29,45 @@ const N = ["aria-describedby"], R = ["id"], $ = e(l({ name: "PxTooltip", __name:
29
29
  function ee() {
30
30
  D.value = {}, H.value = {}, I.value = {}, Y();
31
31
  }
32
- const te = U, oe = () => {
32
+ const te = U, ae = () => {
33
33
  K == null ? void 0 : K.cancel(), X(false);
34
34
  };
35
- return a(P, ((e3) => {
36
- e3 && C.value && q.value && (S = b(C.value, q.value, F.value));
37
- }), { flush: "post" }), a((() => $2.manual), ((e3) => {
35
+ return o(P, ((e3) => {
36
+ e3 && C.value && q.value && (S = T(C.value, q.value, F.value));
37
+ }), { flush: "post" }), o((() => $2.manual), ((e3) => {
38
38
  e3 ? ee() : Y();
39
- })), a((() => $2.trigger), (() => {
39
+ })), o((() => $2.trigger), (() => {
40
40
  K == null ? void 0 : K.cancel(), P.value = false, O2("visible-change", false), ee();
41
41
  })), u((() => {
42
- $2.manual || Y(), K = E(L(X, null, true), G.value), Q = E(L(X, null, false), J.value);
42
+ $2.manual || Y(), K == null ? void 0 : K.cancel(), Q == null ? void 0 : Q.cancel(), K = E(L(X, null, true), G.value), Q = E(L(X, null, false), J.value);
43
43
  })), w(M, (() => {
44
44
  O2("click-outside"), "hover" === $2.trigger || $2.manual || P.value && V();
45
45
  })), (function(e3, t3, l3) {
46
46
  let r2, n2;
47
47
  const u2 = /* @__PURE__ */ new Map(), s2 = () => {
48
48
  const e4 = t3.value;
49
- e4 && j(e4) && B(l3.value, ((t4, o2) => {
50
- u2.set(o2, t4), e4.addEventListener(o2, t4);
49
+ e4 && j(e4) && B(l3.value, ((t4, a2) => {
50
+ u2.set(a2, t4), e4.addEventListener(a2, t4);
51
51
  }));
52
52
  }, v2 = (e4) => {
53
- const o2 = e4 ?? t3.value;
54
- o2 && j(o2) && B(["mouseenter", "click", "contextmenu"], ((e5) => u2.has(e5) && o2.removeEventListener(e5, u2.get(e5))));
53
+ const a2 = e4 ?? t3.value;
54
+ a2 && j(a2) && B(["mouseenter", "click", "contextmenu"], ((e5) => u2.has(e5) && a2.removeEventListener(e5, u2.get(e5))));
55
55
  };
56
- o((() => {
57
- n2 = a((() => e3.virtualRef), ((t4, o2) => {
58
- e3.virtualTriggering && (j(o2) && v2(o2), j(t4) && s2());
59
- }), { immediate: true }), r2 = a(l3, (() => {
56
+ a((() => {
57
+ n2 = o((() => e3.virtualRef), ((t4, a2) => {
58
+ e3.virtualTriggering && (j(a2) && v2(a2), j(t4) && s2());
59
+ }), { immediate: true }), r2 = o(l3, (() => {
60
60
  e3.virtualTriggering && (v2(), s2(), K == null ? void 0 : K.cancel(), X(false));
61
61
  }), { deep: true });
62
62
  })), i((() => {
63
63
  r2 == null ? void 0 : r2(), n2 == null ? void 0 : n2();
64
64
  }));
65
65
  })($2, C, D), i((() => {
66
- Z();
67
- })), t2({ show: te, hide: oe, toggle: () => {
68
- P.value ? oe() : te();
69
- } }), (e3, t3) => (v(), s("div", c({ class: "px-tooltip", ref_key: "containerNode", ref: M }, p(H.value, true)), [e3.virtualTriggering ? d(e3.$slots, "default", { key: 1 }, void 0, true) : (v(), s("div", c({ key: 0, class: "px-tooltip__trigger", ref_key: "_triggerNode", ref: z }, p(D.value, true), { "aria-describedby": P.value ? g(A) : void 0 }), [d(e3.$slots, "default", {}, void 0, true)], 16, N)), f(m, { name: e3.transition, onAfterLeave: Z }, { default: h((() => [P.value ? (v(), s("div", c({ key: 0, class: "px-tooltip__popper", ref_key: "popperNode", ref: q }, p(I.value, true), { id: g(A), role: "tooltip" }), [d(e3.$slots, "content", {}, (() => [y(T(e3.content), 1)]), true), t3[0] || (t3[0] = k("div", { id: "arrow", "data-popper-arrow": "" }, null, -1))], 16, R)) : _("", true)])), _: 3 }, 8, ["name"])], 16));
70
- } }), [["__scopeId", "data-v-77c52c17"]]), O = t($);
66
+ Z(), K == null ? void 0 : K.cancel(), Q == null ? void 0 : Q.cancel();
67
+ })), t2({ show: te, hide: ae, toggle: () => {
68
+ P.value ? ae() : te();
69
+ } }), (e3, t3) => (v(), s("div", c({ class: "px-tooltip", ref_key: "containerNode", ref: M }, p(H.value, true)), [e3.virtualTriggering ? d(e3.$slots, "default", { key: 1 }, void 0, true) : (v(), s("div", c({ key: 0, class: "px-tooltip__trigger", ref_key: "_triggerNode", ref: z }, p(D.value, true), { "aria-describedby": P.value ? g(A) : void 0 }), [d(e3.$slots, "default", {}, void 0, true)], 16, N)), f(m, { name: e3.transition, onAfterLeave: Z }, { default: h((() => [P.value ? (v(), s("div", c({ key: 0, class: "px-tooltip__popper", ref_key: "popperNode", ref: q }, p(I.value, true), { id: g(A), role: "tooltip" }), [d(e3.$slots, "content", {}, (() => [k(y(e3.content), 1)]), true), t3[0] || (t3[0] = _("div", { id: "arrow", "data-popper-arrow": "" }, null, -1))], 16, R)) : b("", true)])), _: 3 }, 8, ["name"])], 16));
70
+ } }), [["__scopeId", "data-v-4e2bfb45"]]), O = t($);
71
71
  export {
72
72
  O as P,
73
73
  $ as T
@@ -39,9 +39,10 @@ function L(e2, { afterBlur: t2, beforeBlur: n2, afterFocus: a2 } = {}) {
39
39
  v(n2) && n2(e3) || e3.relatedTarget && (null == (a3 = s2.value) ? void 0 : a3.contains(e3.relatedTarget)) || (d2.value = false, l2("blur", e3), null == t2 || t2());
40
40
  } };
41
41
  }
42
- const y = { prefix: Math.floor(1e4 * Math.random()), current: 0 };
43
- function k(e2 = "er") {
44
- return d((() => `${e2}-${y.prefix}-${y.current++}`));
42
+ const k = { prefix: Math.floor(1e4 * Math.random()), current: 0 };
43
+ function y(e2 = "er") {
44
+ const t2 = `${e2}-${k.prefix}-${k.current++}`;
45
+ return u(t2);
45
46
  }
46
47
  function E(e2) {
47
48
  const t2 = d((() => e2.getLastBottomOffset())), n2 = d((() => e2.offset + t2.value)), a2 = d((() => n2.value + e2.boxHeight.value));
@@ -61,7 +62,7 @@ function M() {
61
62
  }, t2.addEventListener ? t2.addEventListener("change", a2) : t2.addListener(a2));
62
63
  })), c((() => {
63
64
  t2 && a2 && (t2.removeEventListener ? t2.removeEventListener("change", a2) : t2.removeListener(a2));
64
- })), { prefersDark: e2, prefers: u("light") };
65
+ })), { prefersDark: e2, prefers: d((() => e2.value ? "dark" : "light")) };
65
66
  }
66
67
  const B = "px-theme", I = "px-dark", T = u("system"), F = u(false);
67
68
  function O(e2) {
@@ -100,5 +101,5 @@ export {
100
101
  p as f,
101
102
  M as g,
102
103
  D as h,
103
- k as u
104
+ y as u
104
105
  };
package/dist/es/index.js CHANGED
@@ -1,77 +1,81 @@
1
- import { P as e } from "./Alert-C5X-XFGJ.js";
2
- import { a as o, P as t } from "./Button-DTik2ZP6.js";
3
- import { P as l, a as r } from "./Collapse-l_8qKOBG.js";
4
- import { P as c, p as C } from "./ConfigProvider-BPm3h9RG.js";
5
- import { E, u } from "./ConfigProvider-BPm3h9RG.js";
6
- import { P as I, a as s } from "./Dropdown-ZjZ0qSn2.js";
7
- import { P as p, a as Z } from "./Form-pxRZxseS.js";
8
- import { u as u2 } from "./Form-pxRZxseS.js";
9
- import { a as A, r as b } from "./Icon-UBaqO2nY.js";
10
- import { d, i } from "./Icon-UBaqO2nY.js";
11
- import { P as B } from "./Input-BJoBaFXa.js";
12
- import { P as G } from "./Loading-BJJBJhg3.js";
13
- import { v, L, v as v2 } from "./Loading-BJJBJhg3.js";
14
- import { P as y, a as w } from "./Message-CqBKW0c8.js";
15
- import { m } from "./Message-CqBKW0c8.js";
16
- import { P as W } from "./Notification-CVACM2cj.js";
17
- import { a, n } from "./Notification-CVACM2cj.js";
18
- import { P as X } from "./Popconfirm-CW8oRycq.js";
19
- import { P as H, a as f } from "./Select-C7mwByXa.js";
20
- import { P as S } from "./Switch-CgFPFC3j.js";
21
- import { P as x } from "./Tooltip-D9rQ4LEg.js";
22
- import { f as Y } from "./vendor-DXmGx29U.js";
1
+ import { P as e } from "./Alert-C76ZWSVk.js";
2
+ import { P as o } from "./Badge-BG-vYP8Y.js";
3
+ import { a as t, P as l } from "./Button-fW_ZOLmT.js";
4
+ import { P as r } from "./Card-BCBnlVi_.js";
5
+ import { P as c, a as C } from "./Collapse-B08VhCVq.js";
6
+ import { P as I, p as s } from "./ConfigProvider-DZO1d5Eq.js";
7
+ import { E, u } from "./ConfigProvider-DZO1d5Eq.js";
8
+ import { P as p, a as Z } from "./Dropdown-49nf6F8P.js";
9
+ import { P as A, a as b } from "./Form-CGiTDSGI.js";
10
+ import { u as u2 } from "./Form-CGiTDSGI.js";
11
+ import { a as B, r as G } from "./Icon-DpJyuj7c.js";
12
+ import { d, i } from "./Icon-DpJyuj7c.js";
13
+ import { P as y } from "./Input-DBPpvf0Y.js";
14
+ import { P as w } from "./Loading-DlygqGOv.js";
15
+ import { v, L, v as v2 } from "./Loading-DlygqGOv.js";
16
+ import { P as W, a as X } from "./Message-ganFfLeU.js";
17
+ import { m } from "./Message-ganFfLeU.js";
18
+ import { P as f } from "./Notification-D4RYHV9o.js";
19
+ import { a, n } from "./Notification-D4RYHV9o.js";
20
+ import { P as H } from "./Popconfirm-Cop44KwQ.js";
21
+ import { P as S, a as x } from "./Select-TIoGsqKv.js";
22
+ import { P as Y } from "./Switch-CHjcLtHs.js";
23
+ import { P as k } from "./Tooltip-HWx_i2FA.js";
24
+ import { f as K } from "./vendor-DXmGx29U.js";
23
25
  import "vue";
24
- import { g, h } from "./hooks-DNMt3QPi.js";
25
- const K = [o, t, A, l, r, e, x, X, I, s, y, W, B, w, G, S, H, f, p, Z, c], k = { name: "ja", el: { colorpicker: { confirm: "OK", clear: "クリア" }, datepicker: { now: "現在", today: "今日", cancel: "キャンセル", clear: "クリア", confirm: "OK", selectDate: "日付を選択", selectTime: "時間を選択", startDate: "開始日", startTime: "開始時間", endDate: "終了日", endTime: "終了時間", prevYear: "前年", nextYear: "翌年", prevMonth: "前月", nextMonth: "翌月", year: "年", month1: "1月", month2: "2月", month3: "3月", month4: "4月", month5: "5月", month6: "6月", month7: "7月", month8: "8月", month9: "9月", month10: "10月", month11: "11月", month12: "12月", weeks: { sun: "日", mon: "月", tue: "火", wed: "水", thu: "木", fri: "金", sat: "土" }, months: { jan: "1月", feb: "2月", mar: "3月", apr: "4月", may: "5月", jun: "6月", jul: "7月", aug: "8月", sep: "9月", oct: "10月", nov: "11月", dec: "12月" } }, select: { loading: "ロード中", noMatch: "データなし", noData: "データなし", placeholder: "選択してください" }, cascader: { noMatch: "データなし", loading: "ロード中", placeholder: "選択してください", noData: "データなし" }, pagination: { goto: "", pagesize: "件/ページ", total: "総計 {total} 件", pageClassifier: "ページ目へ", page: "Page", prev: "Go to previous page", next: "Go to next page", currentPage: "page {pager}", prevPages: "Previous {pager} pages", nextPages: "Next {pager} pages" }, messagebox: { title: "メッセージ", confirm: "OK", cancel: "キャンセル", error: "正しくない入力" }, upload: { deleteTip: "Delキーを押して削除する", delete: "削除する", preview: "プレビュー", continue: "続行する" }, table: { emptyText: "データなし", confirmFilter: "確認", resetFilter: "初期化", clearFilter: "すべて", sumText: "合計" }, tour: { next: "次へ", previous: "前へ", finish: "ツアー終了" }, tree: { emptyText: "データなし" }, transfer: { noMatch: "データなし", noData: "データなし", titles: ["リスト 1", "リスト 2"], filterPlaceholder: "キーワードを入力", noCheckedFormat: "総計 {total} 件", hasCheckedFormat: "{checked}/{total} を選択した" }, image: { error: "失敗" }, pageHeader: { title: "戻る" }, popconfirm: { confirmButtonText: "はい", cancelButtonText: "いいえ" }, carousel: { leftArrow: "Carousel arrow left", rightArrow: "Carousel arrow right", indicator: "Carousel switch to index {index}" } } }, F = { name: "ko", el: { colorpicker: { confirm: "확인", clear: "초기화", defaultLabel: "색상 선택기", description: "현재 색상은 {color}입니다. Enter 키를 눌러 새 색상을 선택합니다." }, datepicker: { now: "지금", today: "오늘", cancel: "취소", clear: "초기화", confirm: "확인", dateTablePrompt: "화살표 키를 사용하고 Enter를 눌러 날짜를 선택하십시오.", monthTablePrompt: "화살표 키를 사용하고 Enter를 눌러 월을 선택합니다.", yearTablePrompt: "화살표 키를 사용하고 Enter 키를 눌러 연도를 선택합니다.", selectDate: "날짜 선택", selectTime: "시간 선택", startDate: "시작 날짜", startTime: "시작 시간", endDate: "종료 날짜", endTime: "종료 시간", prevYear: "지난해", nextYear: "다음해", prevMonth: "지난달", nextMonth: "다음달", year: "년", month1: "1월", month2: "2월", month3: "3월", month4: "4월", month5: "5월", month6: "6월", month7: "7월", month8: "8월", month9: "9월", month10: "10월", month11: "11월", month12: "12월", weeks: { sun: "일", mon: "월", tue: "화", wed: "수", thu: "목", fri: "금", sat: "토" }, months: { jan: "1월", feb: "2월", mar: "3월", apr: "4월", may: "5월", jun: "6월", jul: "7월", aug: "8월", sep: "9월", oct: "10월", nov: "11월", dec: "12월" } }, inputNumber: { decrease: "값 증가", increase: "값 감소" }, select: { loading: "불러오는 중", noMatch: "검색된 데이터 없음", noData: "데이터 없음", placeholder: "선택" }, dropdown: { toggleDropdown: "드롭다운 전환" }, cascader: { noMatch: "검색된 데이터 없음", loading: "불러오는 중", placeholder: "선택", noData: "데이터 없음" }, pagination: { goto: "", pagesize: "건/페이지", total: "총 {total} 건", pageClassifier: "페이지로", page: "페이지", prev: "이전 페이지로 이동", next: "다음 페이지로 이동", currentPage: "페이지 {pager}", prevPages: "이전 {pager} 페이지", nextPages: "다음 {pager} 페이지", deprecationWarning: "더 이상 사용되지 않는 동작이 감지되었습니다. 자세한 내용은 el-pagination 문서를 참조하세요." }, dialog: { close: "대화 상자 닫기" }, drawer: { close: "대화 상자 닫기" }, messagebox: { title: "메시지", confirm: "확인", cancel: "취소", error: "올바르지 않은 입력", close: "대화 상자 닫기" }, upload: { deleteTip: "Delete 키를 눌러 삭제", delete: "삭제", preview: "미리보기", continue: "계속하기" }, slider: { defaultLabel: "{min}과 {max} 사이의 슬라이더", defaultRangeStartLabel: "시작 값 선택", defaultRangeEndLabel: "종료 값 선택" }, table: { emptyText: "데이터 없음", confirmFilter: "확인", resetFilter: "초기화", clearFilter: "전체", sumText: "합계" }, tour: { next: "다음", previous: "이전", finish: "종료" }, tree: { emptyText: "데이터 없음" }, transfer: { noMatch: "검색된 데이터 없음", noData: "데이터 없음", titles: ["리스트 1", "리스트 2"], filterPlaceholder: "검색어를 입력하세요", noCheckedFormat: "총 {total} 건", hasCheckedFormat: "{checked}/{total} 선택됨" }, image: { error: "불러오기 실패" }, pageHeader: { title: "뒤로" }, popconfirm: { confirmButtonText: "예", cancelButtonText: "아니오" }, carousel: { leftArrow: "Carousel arrow left", rightArrow: "Carousel arrow right", indicator: "Carousel switch to index {index}" } } }, R = { name: "zh-cn", el: { colorpicker: { confirm: "确定", clear: "清空" }, datepicker: { now: "此刻", today: "今天", cancel: "取消", clear: "清空", confirm: "确定", selectDate: "选择日期", selectTime: "选择时间", startDate: "开始日期", startTime: "开始时间", endDate: "结束日期", endTime: "结束时间", prevYear: "前一年", nextYear: "后一年", prevMonth: "上个月", nextMonth: "下个月", year: "年", month1: "1 月", month2: "2 月", month3: "3 月", month4: "4 月", month5: "5 月", month6: "6 月", month7: "7 月", month8: "8 月", month9: "9 月", month10: "10 月", month11: "11 月", month12: "12 月", weeks: { sun: "日", mon: "一", tue: "二", wed: "三", thu: "四", fri: "五", sat: "六" }, months: { jan: "一月", feb: "二月", mar: "三月", apr: "四月", may: "五月", jun: "六月", jul: "七月", aug: "八月", sep: "九月", oct: "十月", nov: "十一月", dec: "十二月" } }, select: { loading: "加载中", noMatch: "无匹配数据", noData: "无数据", placeholder: "请选择" }, cascader: { noMatch: "无匹配数据", loading: "加载中", placeholder: "请选择", noData: "暂无数据" }, pagination: { goto: "前往", pagesize: "条/页", total: "共 {total} 条", pageClassifier: "页", page: "页", prev: "上一页", next: "下一页", currentPage: "第 {pager} 页", prevPages: "向前 {pager} 页", nextPages: "向后 {pager} 页", deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档" }, messagebox: { title: "提示", confirm: "确定", cancel: "取消", error: "输入的数据不合法!" }, upload: { deleteTip: "按 delete 键可删除", delete: "删除", preview: "查看图片", continue: "继续上传" }, table: { emptyText: "暂无数据", confirmFilter: "筛选", resetFilter: "重置", clearFilter: "全部", sumText: "合计" }, tour: { next: "下一步", previous: "上一步", finish: "结束导览" }, tree: { emptyText: "暂无数据" }, transfer: { noMatch: "无匹配数据", noData: "无数据", titles: ["列表 1", "列表 2"], filterPlaceholder: "请输入搜索内容", noCheckedFormat: "共 {total} 项", hasCheckedFormat: "已选 {checked}/{total} 项" }, image: { error: "加载失败" }, pageHeader: { title: "返回" }, popconfirm: { confirmButtonText: "确定", cancelButtonText: "取消" }, carousel: { leftArrow: "上一张幻灯片", rightArrow: "下一张幻灯片", indicator: "幻灯片切换至索引 {index}" } } }, Q = { name: "zh-tw", el: { colorpicker: { confirm: "確認", clear: "清空", defaultLabel: "色彩選擇器", description: "目前色彩為 {color}。按一下 Enter 以選擇新色彩。" }, datepicker: { now: "現在", today: "今天", cancel: "取消", clear: "清空", confirm: "確認", dateTablePrompt: "使用方向鍵與 Enter 鍵以選擇日期", monthTablePrompt: "使用方向鍵與 Enter 鍵以選擇月份", yearTablePrompt: "使用方向鍵與 Enter 鍵以選擇年份", selectedDate: "已選日期", selectDate: "選擇日期", selectTime: "選擇時間", startDate: "開始日期", startTime: "開始時間", endDate: "結束日期", endTime: "結束時間", prevYear: "前一年", nextYear: "後一年", prevMonth: "上個月", nextMonth: "下個月", year: "年", month1: "1 月", month2: "2 月", month3: "3 月", month4: "4 月", month5: "5 月", month6: "6 月", month7: "7 月", month8: "8 月", month9: "9 月", month10: "10 月", month11: "11 月", month12: "12 月", weeks: { sun: "日", mon: "一", tue: "二", wed: "三", thu: "四", fri: "五", sat: "六" }, weeksFull: { sun: "星期日", mon: "星期一", tue: "星期二", wed: "星期三", thu: "星期四", fri: "星期五", sat: "星期六" }, months: { jan: "一月", feb: "二月", mar: "三月", apr: "四月", may: "五月", jun: "六月", jul: "七月", aug: "八月", sep: "九月", oct: "十月", nov: "十一月", dec: "十二月" } }, inputNumber: { decrease: "減少數值", increase: "增加數值" }, select: { loading: "載入中", noMatch: "無相符資料", noData: "無資料", placeholder: "請選擇" }, dropdown: { toggleDropdown: "切換下拉選單" }, cascader: { noMatch: "無相符資料", loading: "載入中", placeholder: "請選擇", noData: "無資料" }, pagination: { goto: "前往", pagesize: "項/頁", total: "共 {total} 項", pageClassifier: "頁", page: "頁", prev: "上一頁", next: "下一頁", currentPage: "第 {pager} 頁", prevPages: "向前 {pager} 頁", nextPages: "向后 {pager} 頁", deprecationWarning: "偵測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊" }, dialog: { close: "關閉此對話框" }, drawer: { close: "關閉此對話框" }, messagebox: { title: "提示", confirm: "確定", cancel: "取消", error: "輸入的資料不符規定!", close: "關閉此對話框" }, upload: { deleteTip: "按一下 Delete 鍵以刪除", delete: "刪除", preview: "查看圖片", continue: "繼續上傳" }, slider: { defaultLabel: "滑桿介於 {min} 至 {max}", defaultRangeStartLabel: "選擇起始值", defaultRangeEndLabel: "選擇結束值" }, table: { emptyText: "暫無資料", confirmFilter: "篩選", resetFilter: "重置", clearFilter: "全部", sumText: "合計" }, tour: { next: "下一步", previous: "上一步", finish: "結束導覽" }, tree: { emptyText: "暫無資料" }, transfer: { noMatch: "無相符資料", noData: "無資料", titles: ["列表 1", "列表 2"], filterPlaceholder: "請輸入搜尋內容", noCheckedFormat: "共 {total} 項", hasCheckedFormat: "已選 {checked}/{total} 項" }, image: { error: "載入失敗" }, pageHeader: { title: "返回" }, popconfirm: { confirmButtonText: "確認", cancelButtonText: "取消" }, carousel: { leftArrow: "上一張投影片", rightArrow: "下一張投影片", indicator: "投影片切換至索引 {index}" } } };
26
- if (b(), "undefined" != typeof CSS && "paintWorklet" in CSS) try {
26
+ import { g, h } from "./hooks-CYdEHUVd.js";
27
+ const F = [o, t, l, r, B, c, C, e, k, H, p, Z, W, f, y, X, w, Y, S, x, A, b, I], R = { name: "ja", el: { colorpicker: { confirm: "OK", clear: "クリア" }, datepicker: { now: "現在", today: "今日", cancel: "キャンセル", clear: "クリア", confirm: "OK", selectDate: "日付を選択", selectTime: "時間を選択", startDate: "開始日", startTime: "開始時間", endDate: "終了日", endTime: "終了時間", prevYear: "前年", nextYear: "翌年", prevMonth: "前月", nextMonth: "翌月", year: "年", month1: "1月", month2: "2月", month3: "3月", month4: "4月", month5: "5月", month6: "6月", month7: "7月", month8: "8月", month9: "9月", month10: "10月", month11: "11月", month12: "12月", weeks: { sun: "日", mon: "月", tue: "火", wed: "水", thu: "木", fri: "金", sat: "土" }, months: { jan: "1月", feb: "2月", mar: "3月", apr: "4月", may: "5月", jun: "6月", jul: "7月", aug: "8月", sep: "9月", oct: "10月", nov: "11月", dec: "12月" } }, select: { loading: "ロード中", noMatch: "データなし", noData: "データなし", placeholder: "選択してください" }, cascader: { noMatch: "データなし", loading: "ロード中", placeholder: "選択してください", noData: "データなし" }, pagination: { goto: "", pagesize: "件/ページ", total: "総計 {total} 件", pageClassifier: "ページ目へ", page: "Page", prev: "Go to previous page", next: "Go to next page", currentPage: "page {pager}", prevPages: "Previous {pager} pages", nextPages: "Next {pager} pages" }, messagebox: { title: "メッセージ", confirm: "OK", cancel: "キャンセル", error: "正しくない入力" }, upload: { deleteTip: "Delキーを押して削除する", delete: "削除する", preview: "プレビュー", continue: "続行する" }, table: { emptyText: "データなし", confirmFilter: "確認", resetFilter: "初期化", clearFilter: "すべて", sumText: "合計" }, tour: { next: "次へ", previous: "前へ", finish: "ツアー終了" }, tree: { emptyText: "データなし" }, transfer: { noMatch: "データなし", noData: "データなし", titles: ["リスト 1", "リスト 2"], filterPlaceholder: "キーワードを入力", noCheckedFormat: "総計 {total} 件", hasCheckedFormat: "{checked}/{total} を選択した" }, image: { error: "失敗" }, pageHeader: { title: "戻る" }, popconfirm: { confirmButtonText: "はい", cancelButtonText: "いいえ" }, carousel: { leftArrow: "Carousel arrow left", rightArrow: "Carousel arrow right", indicator: "Carousel switch to index {index}" } } }, Q = { name: "ko", el: { colorpicker: { confirm: "확인", clear: "초기화", defaultLabel: "색상 선택기", description: "현재 색상은 {color}입니다. Enter 키를 눌러 새 색상을 선택합니다." }, datepicker: { now: "지금", today: "오늘", cancel: "취소", clear: "초기화", confirm: "확인", dateTablePrompt: "화살표 키를 사용하고 Enter를 눌러 날짜를 선택하십시오.", monthTablePrompt: "화살표 키를 사용하고 Enter를 눌러 월을 선택합니다.", yearTablePrompt: "화살표 키를 사용하고 Enter 키를 눌러 연도를 선택합니다.", selectDate: "날짜 선택", selectTime: "시간 선택", startDate: "시작 날짜", startTime: "시작 시간", endDate: "종료 날짜", endTime: "종료 시간", prevYear: "지난해", nextYear: "다음해", prevMonth: "지난달", nextMonth: "다음달", year: "년", month1: "1월", month2: "2월", month3: "3월", month4: "4월", month5: "5월", month6: "6월", month7: "7월", month8: "8월", month9: "9월", month10: "10월", month11: "11월", month12: "12월", weeks: { sun: "일", mon: "월", tue: "화", wed: "수", thu: "목", fri: "금", sat: "토" }, months: { jan: "1월", feb: "2월", mar: "3월", apr: "4월", may: "5월", jun: "6월", jul: "7월", aug: "8월", sep: "9월", oct: "10월", nov: "11월", dec: "12월" } }, inputNumber: { decrease: "값 증가", increase: "값 감소" }, select: { loading: "불러오는 중", noMatch: "검색된 데이터 없음", noData: "데이터 없음", placeholder: "선택" }, dropdown: { toggleDropdown: "드롭다운 전환" }, cascader: { noMatch: "검색된 데이터 없음", loading: "불러오는 중", placeholder: "선택", noData: "데이터 없음" }, pagination: { goto: "", pagesize: "건/페이지", total: "총 {total} 건", pageClassifier: "페이지로", page: "페이지", prev: "이전 페이지로 이동", next: "다음 페이지로 이동", currentPage: "페이지 {pager}", prevPages: "이전 {pager} 페이지", nextPages: "다음 {pager} 페이지", deprecationWarning: "더 이상 사용되지 않는 동작이 감지되었습니다. 자세한 내용은 el-pagination 문서를 참조하세요." }, dialog: { close: "대화 상자 닫기" }, drawer: { close: "대화 상자 닫기" }, messagebox: { title: "메시지", confirm: "확인", cancel: "취소", error: "올바르지 않은 입력", close: "대화 상자 닫기" }, upload: { deleteTip: "Delete 키를 눌러 삭제", delete: "삭제", preview: "미리보기", continue: "계속하기" }, slider: { defaultLabel: "{min}과 {max} 사이의 슬라이더", defaultRangeStartLabel: "시작 값 선택", defaultRangeEndLabel: "종료 값 선택" }, table: { emptyText: "데이터 없음", confirmFilter: "확인", resetFilter: "초기화", clearFilter: "전체", sumText: "합계" }, tour: { next: "다음", previous: "이전", finish: "종료" }, tree: { emptyText: "데이터 없음" }, transfer: { noMatch: "검색된 데이터 없음", noData: "데이터 없음", titles: ["리스트 1", "리스트 2"], filterPlaceholder: "검색어를 입력하세요", noCheckedFormat: "총 {total} 건", hasCheckedFormat: "{checked}/{total} 선택됨" }, image: { error: "불러오기 실패" }, pageHeader: { title: "뒤로" }, popconfirm: { confirmButtonText: "예", cancelButtonText: "아니오" }, carousel: { leftArrow: "Carousel arrow left", rightArrow: "Carousel arrow right", indicator: "Carousel switch to index {index}" } } }, V = { name: "zh-cn", el: { colorpicker: { confirm: "确定", clear: "清空" }, datepicker: { now: "此刻", today: "今天", cancel: "取消", clear: "清空", confirm: "确定", selectDate: "选择日期", selectTime: "选择时间", startDate: "开始日期", startTime: "开始时间", endDate: "结束日期", endTime: "结束时间", prevYear: "前一年", nextYear: "后一年", prevMonth: "上个月", nextMonth: "下个月", year: "年", month1: "1 月", month2: "2 月", month3: "3 月", month4: "4 月", month5: "5 月", month6: "6 月", month7: "7 月", month8: "8 月", month9: "9 月", month10: "10 月", month11: "11 月", month12: "12 月", weeks: { sun: "日", mon: "一", tue: "二", wed: "三", thu: "四", fri: "五", sat: "六" }, months: { jan: "一月", feb: "二月", mar: "三月", apr: "四月", may: "五月", jun: "六月", jul: "七月", aug: "八月", sep: "九月", oct: "十月", nov: "十一月", dec: "十二月" } }, select: { loading: "加载中", noMatch: "无匹配数据", noData: "无数据", placeholder: "请选择" }, cascader: { noMatch: "无匹配数据", loading: "加载中", placeholder: "请选择", noData: "暂无数据" }, pagination: { goto: "前往", pagesize: "条/页", total: "共 {total} 条", pageClassifier: "页", page: "页", prev: "上一页", next: "下一页", currentPage: "第 {pager} 页", prevPages: "向前 {pager} 页", nextPages: "向后 {pager} 页", deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档" }, messagebox: { title: "提示", confirm: "确定", cancel: "取消", error: "输入的数据不合法!" }, upload: { deleteTip: "按 delete 键可删除", delete: "删除", preview: "查看图片", continue: "继续上传" }, table: { emptyText: "暂无数据", confirmFilter: "筛选", resetFilter: "重置", clearFilter: "全部", sumText: "合计" }, tour: { next: "下一步", previous: "上一步", finish: "结束导览" }, tree: { emptyText: "暂无数据" }, transfer: { noMatch: "无匹配数据", noData: "无数据", titles: ["列表 1", "列表 2"], filterPlaceholder: "请输入搜索内容", noCheckedFormat: "共 {total} 项", hasCheckedFormat: "已选 {checked}/{total} 项" }, image: { error: "加载失败" }, pageHeader: { title: "返回" }, popconfirm: { confirmButtonText: "确定", cancelButtonText: "取消" }, carousel: { leftArrow: "上一张幻灯片", rightArrow: "下一张幻灯片", indicator: "幻灯片切换至索引 {index}" } } }, N = { name: "zh-tw", el: { colorpicker: { confirm: "確認", clear: "清空", defaultLabel: "色彩選擇器", description: "目前色彩為 {color}。按一下 Enter 以選擇新色彩。" }, datepicker: { now: "現在", today: "今天", cancel: "取消", clear: "清空", confirm: "確認", dateTablePrompt: "使用方向鍵與 Enter 鍵以選擇日期", monthTablePrompt: "使用方向鍵與 Enter 鍵以選擇月份", yearTablePrompt: "使用方向鍵與 Enter 鍵以選擇年份", selectedDate: "已選日期", selectDate: "選擇日期", selectTime: "選擇時間", startDate: "開始日期", startTime: "開始時間", endDate: "結束日期", endTime: "結束時間", prevYear: "前一年", nextYear: "後一年", prevMonth: "上個月", nextMonth: "下個月", year: "年", month1: "1 月", month2: "2 月", month3: "3 月", month4: "4 月", month5: "5 月", month6: "6 月", month7: "7 月", month8: "8 月", month9: "9 月", month10: "10 月", month11: "11 月", month12: "12 月", weeks: { sun: "日", mon: "一", tue: "二", wed: "三", thu: "四", fri: "五", sat: "六" }, weeksFull: { sun: "星期日", mon: "星期一", tue: "星期二", wed: "星期三", thu: "星期四", fri: "星期五", sat: "星期六" }, months: { jan: "一月", feb: "二月", mar: "三月", apr: "四月", may: "五月", jun: "六月", jul: "七月", aug: "八月", sep: "九月", oct: "十月", nov: "十一月", dec: "十二月" } }, inputNumber: { decrease: "減少數值", increase: "增加數值" }, select: { loading: "載入中", noMatch: "無相符資料", noData: "無資料", placeholder: "請選擇" }, dropdown: { toggleDropdown: "切換下拉選單" }, cascader: { noMatch: "無相符資料", loading: "載入中", placeholder: "請選擇", noData: "無資料" }, pagination: { goto: "前往", pagesize: "項/頁", total: "共 {total} 項", pageClassifier: "頁", page: "頁", prev: "上一頁", next: "下一頁", currentPage: "第 {pager} 頁", prevPages: "向前 {pager} 頁", nextPages: "向后 {pager} 頁", deprecationWarning: "偵測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊" }, dialog: { close: "關閉此對話框" }, drawer: { close: "關閉此對話框" }, messagebox: { title: "提示", confirm: "確定", cancel: "取消", error: "輸入的資料不符規定!", close: "關閉此對話框" }, upload: { deleteTip: "按一下 Delete 鍵以刪除", delete: "刪除", preview: "查看圖片", continue: "繼續上傳" }, slider: { defaultLabel: "滑桿介於 {min} 至 {max}", defaultRangeStartLabel: "選擇起始值", defaultRangeEndLabel: "選擇結束值" }, table: { emptyText: "暫無資料", confirmFilter: "篩選", resetFilter: "重置", clearFilter: "全部", sumText: "合計" }, tour: { next: "下一步", previous: "上一步", finish: "結束導覽" }, tree: { emptyText: "暫無資料" }, transfer: { noMatch: "無相符資料", noData: "無資料", titles: ["列表 1", "列表 2"], filterPlaceholder: "請輸入搜尋內容", noCheckedFormat: "共 {total} 項", hasCheckedFormat: "已選 {checked}/{total} 項" }, image: { error: "載入失敗" }, pageHeader: { title: "返回" }, popconfirm: { confirmButtonText: "確認", cancelButtonText: "取消" }, carousel: { leftArrow: "上一張投影片", rightArrow: "下一張投影片", indicator: "投影片切換至索引 {index}" } } };
28
+ if (G(), "undefined" != typeof CSS && "paintWorklet" in CSS) try {
27
29
  CSS.paintWorklet.addModule(new URL("data:text/javascript;base64,LyoqCiAqIENTUyBIb3VkaW5pIFBhaW50IFdvcmtsZXQgLSBQaXhlbCBCb3JkZXIKICoKICogQ3JlYXRlcyBhdXRoZW50aWMgcGl4ZWxhdGVkIGJvcmRlcnMgZm9yIHJldHJvIFVJIGFlc3RoZXRpYwogKgogKiBDdXN0b20gUHJvcGVydGllczoKICogLSAtLXB4LWJvcmRlci1jb2xvcjogQm9yZGVyIGNvbG9yIChkZWZhdWx0OiAjMDAwMDAwKQogKiAtIC0tcHgtYm9yZGVyLXdpZHRoOiBCb3JkZXIgd2lkdGggaW4gcGl4ZWxzIChkZWZhdWx0OiAyKQogKiAtIC0tcHgtYm9yZGVyLXBpeGVsLXNpemU6IFNpemUgb2YgZWFjaCBwaXhlbCBibG9jayAoZGVmYXVsdDogMikKICovCgpjbGFzcyBQaXhlbEJvcmRlclBhaW50ZXIgewogIHN0YXRpYyBnZXQgaW5wdXRQcm9wZXJ0aWVzKCkgewogICAgcmV0dXJuIFsnLS1weC1ib3JkZXItY29sb3InLCAnLS1weC1ib3JkZXItd2lkdGgnLCAnLS1weC1ib3JkZXItcGl4ZWwtc2l6ZSddOwogIH0KCiAgcGFpbnQoY3R4LCBzaXplLCBwcm9wZXJ0aWVzKSB7CiAgICAvLyBHZXQgY3VzdG9tIHByb3BlcnR5IHZhbHVlcwogICAgY29uc3QgYm9yZ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hhID0gMTsKICAgIGZvciAobGV0IHggPSBzaGFkb3dPZmZzZXQ7IHggPCB3aWR0aDsgeCArPSBwaXhlbFNpemUpIHsKICAgICAgZm9yIChsZXQgeSA9IGhlaWdodDsgeSA8IGhlaWdodCArIHNoYWRvd09mZnNldDsgeSArPSBwaXhlbFNpemUpIHsKICAgICAgICBjb25zdCBkaXN0YW5jZSA9IHkgLSBoZWlnaHQ7CiAgICAgICAgaWYgKGRpc3RhbmNlIDwgc2hhZG93T2Zmc2V0KSB7CiAgICAgICAgICBjdHguZ2xvYmFsQWxwaGEgPSAxIC0gZGlzdGFuY2UgLyBzaGFkb3dPZmZzZXQ7CiAgICAgICAgICBjdHguZmlsbFJlY3QoeCwgeSwgcGl4ZWxTaXplLCBwaXhlbFNpemUpOwogICAgICAgIH0KICAgICAgfQogICAgfQoKICAgIC8vIERyYXcgY29ybmVyIHNoYWRvdwogICAgY3R4Lmdsb2JhbEFscGhhID0gMC41OwogICAgZm9yIChsZXQgeCA9IHdpZHRoOyB4IDwgd2lkdGggKyBzaGFkb3dPZmZzZXQ7IHggKz0gcGl4ZWxTaXplKSB7CiAgICAgIGZvciAobGV0IHkgPSBoZWlnaHQ7IHkgPCBoZWlnaHQgKyBzaGFkb3dPZmZzZXQ7IHkgKz0gcGl4ZWxTaXplKSB7CiAgICAgICAgY3R4LmZpbGxSZWN0KHgsIHksIHBpeGVsU2l6ZSwgcGl4ZWxTaXplKTsKICAgICAgfQogICAgfQoKICAgIGN0eC5nbG9iYWxBbHBoYSA9IDE7CiAgfQp9CgovLyBSZWdpc3RlciB0aGUgcGFpbnQgd29ya2xldApyZWdpc3RlclBhaW50KCdwaXhlbC1zaGFkb3cnLCBQaXhlbFNoYWRvd1BhaW50ZXIpOwo=", import.meta.url).href);
28
30
  } catch (e2) {
29
31
  }
30
- const V = /* @__PURE__ */ (function(e2) {
32
+ const D = /* @__PURE__ */ (function(e2) {
31
33
  return (a2, o2) => {
32
- Y(e2, ((e3) => a2.use(e3))), o2 && C(o2, a2, true);
34
+ K(e2, ((e3) => a2.use(e3))), o2 && s(o2, a2, true);
33
35
  };
34
- })(K);
36
+ })(F);
35
37
  export {
36
38
  e as PxAlert,
37
- o as PxButton,
38
- t as PxButtonGroup,
39
- l as PxCollapse,
40
- r as PxCollapseItem,
41
- c as PxConfigProvider,
42
- I as PxDropdown,
43
- s as PxDropdownItem,
44
- p as PxForm,
45
- Z as PxFormItem,
46
- A as PxIcon,
47
- B as PxInput,
48
- G as PxLoading,
39
+ o as PxBadge,
40
+ t as PxButton,
41
+ l as PxButtonGroup,
42
+ r as PxCard,
43
+ c as PxCollapse,
44
+ C as PxCollapseItem,
45
+ I as PxConfigProvider,
46
+ p as PxDropdown,
47
+ Z as PxDropdownItem,
48
+ A as PxForm,
49
+ b as PxFormItem,
50
+ B as PxIcon,
51
+ y as PxInput,
52
+ w as PxLoading,
49
53
  v as PxLoadingDirective,
50
54
  L as PxLoadingService,
51
- y as PxMessage,
52
- w as PxMessageBox,
53
- W as PxNotification,
54
- f as PxOption,
55
- X as PxPopconfirm,
56
- H as PxSelect,
57
- S as PxSwitch,
58
- x as PxTooltip,
59
- V as default,
55
+ W as PxMessage,
56
+ X as PxMessageBox,
57
+ f as PxNotification,
58
+ x as PxOption,
59
+ H as PxPopconfirm,
60
+ S as PxSelect,
61
+ Y as PxSwitch,
62
+ k as PxTooltip,
63
+ D as default,
60
64
  d as defaultPixelIcons,
61
65
  E as en,
62
66
  i as iconSizeMap,
63
- k as ja,
64
- F as ko,
67
+ R as ja,
68
+ Q as ko,
65
69
  m as messageTypes,
66
70
  a as notificationPosition,
67
71
  n as notificationTypes,
68
- C as provideGlobalConfig,
69
- b as registerDefaultPixelIcons,
72
+ s as provideGlobalConfig,
73
+ G as registerDefaultPixelIcons,
70
74
  u2 as useFormItem,
71
75
  u as useGlobalConfig,
72
76
  g as useSystemTheme,
73
77
  h as useTheme,
74
78
  v2 as vLoading,
75
- R as zhCn,
76
- Q as zhTw
79
+ V as zhCn,
80
+ N as zhTw
77
81
  };
@@ -0,0 +1,84 @@
1
+ import { h as o, d as e, y as r } from "./vendor-DXmGx29U.js";
2
+ import { defineComponent as n } from "vue";
3
+ function t(o2, e2) {
4
+ const r2 = parseInt(o2.replace("#", ""), 16);
5
+ return `#${(Math.max(0, (r2 >> 16) - Math.round(2.55 * e2)) << 16 | Math.max(0, (r2 >> 8 & 255) - Math.round(2.55 * e2)) << 8 | Math.max(0, (255 & r2) - Math.round(2.55 * e2))).toString(16).padStart(6, "0")}`;
6
+ }
7
+ function c(o2, e2) {
8
+ const r2 = parseInt(o2.replace("#", ""), 16);
9
+ return `#${(Math.min(255, (r2 >> 16) + Math.round(2.55 * e2)) << 16 | Math.min(255, (r2 >> 8 & 255) + Math.round(2.55 * e2)) << 8 | Math.min(255, (255 & r2) + Math.round(2.55 * e2))).toString(16).padStart(6, "0")}`;
10
+ }
11
+ function a(o2) {
12
+ const e2 = parseInt(o2.replace("#", ""), 16);
13
+ return (0.299 * (e2 >> 16) + 0.587 * (e2 >> 8 & 255) + 0.114 * (255 & e2)) / 255 > 0.6 ? "#1e1e2e" : "#ffffff";
14
+ }
15
+ function s(o2) {
16
+ return { color: o2, dark: t(o2, 15), light: c(o2, 35), contrast: a(o2), transparent: "transparent" };
17
+ }
18
+ function i(o2, e2, r2) {
19
+ const n2 = {};
20
+ for (const [t2, c2] of Object.entries(r2)) n2[`--${e2}-${t2}`] = o2[c2];
21
+ return n2;
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 f(o2, e2) {
25
+ }
26
+ const u = { 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(o2) {
28
+ return o2 in u ? u[o2] : o2;
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"]), p = /^on/i, m = /^\s*javascript\s*:/i;
31
+ function g(o2) {
32
+ if (!o2 || "string" != typeof o2) return "";
33
+ if ("undefined" == typeof DOMParser) return "";
34
+ const e2 = new DOMParser().parseFromString(o2, "image/svg+xml");
35
+ return e2.querySelector("parsererror") ? "" : (b(e2.documentElement), e2.documentElement.outerHTML);
36
+ }
37
+ function b(o2) {
38
+ const e2 = Array.from(o2.children);
39
+ for (const o3 of e2) {
40
+ const e3 = o3.tagName.toLowerCase();
41
+ if (h.has(e3)) {
42
+ for (const e4 of Array.from(o3.attributes)) (p.test(e4.name) || "href" === e4.name && m.test(e4.value) || "xlink:href" === e4.name && m.test(e4.value)) && o3.removeAttribute(e4.name);
43
+ b(o3);
44
+ } else o3.remove();
45
+ }
46
+ }
47
+ const x = /* @__PURE__ */ new Map();
48
+ function v(o2) {
49
+ for (const [e2, r2] of Object.entries(o2)) x.set(e2, g(r2));
50
+ }
51
+ function w(o2) {
52
+ return x.get(o2);
53
+ }
54
+ const k = (o2) => (o2.install = (e2) => {
55
+ const r2 = o2.name;
56
+ e2.component(r2, o2);
57
+ }, o2), M = (o2, e2) => (o2.install = (r2) => {
58
+ r2.config.globalProperties[e2] = o2;
59
+ }, o2);
60
+ function y(r2, n2 = "px") {
61
+ return r2 ? o(r2) || ((o2) => !!e(o2) && !Number.isNaN(Number(o2)))(r2) ? `${r2}${n2}` : e(r2) ? r2 : void 0 : "";
62
+ }
63
+ const N = /* @__PURE__ */ new Map([["info", "info-box"], ["success", "check"], ["warning", "warning-box"], ["danger", "close-box"], ["error", "close-box"]]), S = n({ props: { vNode: { type: [String, Object, Function], required: true } }, setup: (o2) => () => r(o2.vNode) ? o2.vNode() : o2.vNode }), O = (o2, e2) => {
64
+ const r2 = o2.__vccOpts || o2;
65
+ for (const [o3, n2] of e2) r2[o3] = n2;
66
+ return r2;
67
+ };
68
+ export {
69
+ S as R,
70
+ l as S,
71
+ O as _,
72
+ d as a,
73
+ v as b,
74
+ s as c,
75
+ f as d,
76
+ y as e,
77
+ M as f,
78
+ w as g,
79
+ c as l,
80
+ i as r,
81
+ g as s,
82
+ N as t,
83
+ k as w
84
+ };