@vue/devtools-ui 7.0.26 → 7.1.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/dist/index.cjs +1 -1
- package/dist/index.js +876 -694
- package/dist/types/src/components/Badge.d.ts +1 -1
- package/dist/types/src/components/Button.d.ts +2 -2
- package/dist/types/src/components/Card.d.ts +1 -1
- package/dist/types/src/components/Checkbox.d.ts +2 -2
- package/dist/types/src/components/Confirm.d.ts +2 -2
- package/dist/types/src/components/DarkToggle.d.ts +2 -2
- package/dist/types/src/components/Dialog.d.ts +2 -2
- package/dist/types/src/components/Drawer.d.ts +2 -2
- package/dist/types/src/components/Dropdown.d.ts +1 -1
- package/dist/types/src/components/DropdownButton.d.ts +1 -1
- package/dist/types/src/components/FormField.d.ts +2 -2
- package/dist/types/src/components/Icon.d.ts +1 -1
- package/dist/types/src/components/Input.d.ts +2 -2
- package/dist/types/src/components/LoadingIndicator.d.ts +1 -1
- package/dist/types/src/components/Notification.d.ts +2 -2
- package/dist/types/src/components/Overlay.d.ts +1 -1
- package/dist/types/src/components/Select.d.ts +1 -1
- package/dist/types/src/components/Switch.d.ts +2 -2
- package/dist/types/src/components/Tooltip.d.ts +1 -1
- package/package.json +9 -8
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
2
|
|
|
3
|
-
import { Dropdown as
|
|
4
|
-
import { VTooltip as
|
|
5
|
-
import { openBlock as
|
|
6
|
-
const
|
|
3
|
+
import { Dropdown as He, VClosePopper as Ve, Tooltip as Je } from "floating-vue";
|
|
4
|
+
import { VTooltip as Wn } from "floating-vue";
|
|
5
|
+
import { openBlock as g, createElementBlock as S, createElementVNode as b, defineComponent as O, useAttrs as Ue, computed as k, useSlots as Be, createBlock as j, resolveDynamicComponent as Ae, mergeProps as Q, withCtx as h, renderSlot as w, unref as _, createCommentVNode as E, normalizeClass as B, ref as D, watch as F, customRef as De, isRef as Z, getCurrentScope as Ke, onScopeDispose as Ge, toRef as Ye, readonly as Oe, onMounted as Y, nextTick as ee, getCurrentInstance as de, shallowRef as qe, watchEffect as X, normalizeProps as fe, guardReactiveProps as pe, Teleport as Me, createVNode as x, Transition as me, normalizeStyle as ve, createTextVNode as I, toDisplayString as H, withDirectives as ge, vModelDynamic as Xe, provide as Qe, createSlots as Te, inject as Ze, Fragment as we, renderList as _e, withModifiers as et, h as tt, render as $e } from "vue";
|
|
6
|
+
const ye = (e, n) => {
|
|
7
7
|
const t = e.__vccOpts || e;
|
|
8
|
-
for (const [
|
|
9
|
-
t[
|
|
8
|
+
for (const [u, r] of n)
|
|
9
|
+
t[u] = r;
|
|
10
10
|
return t;
|
|
11
|
-
},
|
|
11
|
+
}, nt = {}, ot = { class: "h-3 w-3 $ui-inline-fcc" }, rt = /* @__PURE__ */ b("svg", {
|
|
12
12
|
class: "animate-spin",
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
fill: "none",
|
|
@@ -27,13 +27,13 @@ const ge = (e, o) => {
|
|
|
27
27
|
fill: "currentColor",
|
|
28
28
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
29
29
|
})
|
|
30
|
-
], -1),
|
|
31
|
-
|
|
30
|
+
], -1), at = [
|
|
31
|
+
rt
|
|
32
32
|
];
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function lt(e, n) {
|
|
34
|
+
return g(), S("div", ot, at);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const je = /* @__PURE__ */ ye(nt, [["render", lt]]), st = { key: 2 }, G = /* @__PURE__ */ O({
|
|
37
37
|
inheritAttrs: !1,
|
|
38
38
|
__name: "Button",
|
|
39
39
|
props: {
|
|
@@ -46,16 +46,16 @@ const Oe = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, K = /* @__
|
|
|
46
46
|
outlined: { type: Boolean, default: !1 }
|
|
47
47
|
},
|
|
48
48
|
emits: ["click"],
|
|
49
|
-
setup(e, { emit:
|
|
50
|
-
const t = e,
|
|
51
|
-
function
|
|
52
|
-
if (
|
|
53
|
-
|
|
49
|
+
setup(e, { emit: n }) {
|
|
50
|
+
const t = e, u = n, r = Ue(), l = k(() => r.to ? "router-link" : r.href ? "a" : "button"), a = k(() => t.loading || t.disabled);
|
|
51
|
+
function i(o) {
|
|
52
|
+
if (a.value) {
|
|
53
|
+
o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation();
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
u("click", o);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const s = {
|
|
59
59
|
common: {
|
|
60
60
|
default: "active:bg-primary-100-darker dark:active:bg-gray-800-darker",
|
|
61
61
|
primary: "active:bg-primary-500-darker",
|
|
@@ -92,49 +92,49 @@ const Oe = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, K = /* @__
|
|
|
92
92
|
info: "hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",
|
|
93
93
|
success: "hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"
|
|
94
94
|
}
|
|
95
|
-
}, c =
|
|
96
|
-
return (
|
|
95
|
+
}, c = Be(), f = k(() => t.flat ? s.flat[t.type] : t.outlined ? s.outlined[t.type] : s.normal[t.type]);
|
|
96
|
+
return (o, d) => (g(), j(Ae(l.value), Q(o.$attrs, {
|
|
97
97
|
role: "button",
|
|
98
|
-
"aria-disabled":
|
|
98
|
+
"aria-disabled": a.value,
|
|
99
99
|
class: ["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition", [
|
|
100
|
-
[
|
|
100
|
+
[s.common[t.type]],
|
|
101
101
|
{
|
|
102
102
|
"rounded-full": t.round === "full",
|
|
103
103
|
"$ui-base-br": t.round === "normal",
|
|
104
|
-
"opacity-50 cursor-not-allowed":
|
|
104
|
+
"opacity-50 cursor-not-allowed": a.value,
|
|
105
105
|
"bg-transparent": t.flat || t.outlined
|
|
106
106
|
},
|
|
107
107
|
[
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
o.outlined ? "b-1 $ui-border-base active:ring-3 shadow-sm" : "border-none",
|
|
109
|
+
o.size === "mini" ? "px1 text-3 h5.5" : "px3.5 text-3.5 h8",
|
|
110
|
+
f.value
|
|
111
111
|
]
|
|
112
112
|
]],
|
|
113
|
-
onClickCapture:
|
|
113
|
+
onClickCapture: i
|
|
114
114
|
}), {
|
|
115
|
-
default:
|
|
116
|
-
|
|
115
|
+
default: h(() => [
|
|
116
|
+
o.loading ? (g(), j(je, {
|
|
117
117
|
key: 0,
|
|
118
118
|
class: "mt0.5 h-full w3"
|
|
119
|
-
})) : w(
|
|
119
|
+
})) : w(o.$slots, "icon", {
|
|
120
120
|
key: 1,
|
|
121
121
|
class: "h-full w3 $ui-inline-fcc"
|
|
122
122
|
}),
|
|
123
|
-
|
|
124
|
-
w(
|
|
123
|
+
_(c).default ? (g(), S("div", st, [
|
|
124
|
+
w(o.$slots, "default")
|
|
125
125
|
])) : E("", !0),
|
|
126
|
-
w(
|
|
126
|
+
w(o.$slots, "icon-right")
|
|
127
127
|
]),
|
|
128
128
|
_: 3
|
|
129
129
|
}, 16, ["aria-disabled", "class"]));
|
|
130
130
|
}
|
|
131
|
-
}),
|
|
132
|
-
function
|
|
133
|
-
return
|
|
131
|
+
}), it = {}, ut = { class: "mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs" };
|
|
132
|
+
function ct(e, n) {
|
|
133
|
+
return g(), S("span", ut, [
|
|
134
134
|
w(e.$slots, "default")
|
|
135
135
|
]);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const Cn = /* @__PURE__ */ ye(it, [["render", ct]]), ce = /* @__PURE__ */ O({
|
|
138
138
|
__name: "Icon",
|
|
139
139
|
props: {
|
|
140
140
|
icon: {},
|
|
@@ -142,256 +142,256 @@ const io = /* @__PURE__ */ ge(rt, [["render", lt]]), ue = /* @__PURE__ */ T({
|
|
|
142
142
|
action: { type: Boolean, default: !1 }
|
|
143
143
|
},
|
|
144
144
|
setup(e) {
|
|
145
|
-
return (
|
|
146
|
-
class:
|
|
145
|
+
return (n, t) => (g(), j(Ae(n.inline ? "span" : "div"), {
|
|
146
|
+
class: B(["$ui-base", [n.icon, n.action ? "cursor-pointer hover:op50" : ""]])
|
|
147
147
|
}, null, 8, ["class"]));
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
|
-
function
|
|
151
|
-
return
|
|
150
|
+
function se(e) {
|
|
151
|
+
return Ke() ? (Ge(e), !0) : !1;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
for (const [
|
|
155
|
-
|
|
153
|
+
function dt(e, n, { enumerable: t = !1, unwrap: u = !0 } = {}) {
|
|
154
|
+
for (const [r, l] of Object.entries(n))
|
|
155
|
+
r !== "value" && (Z(l) && u ? Object.defineProperty(e, r, {
|
|
156
156
|
get() {
|
|
157
157
|
return l.value;
|
|
158
158
|
},
|
|
159
|
-
set(
|
|
160
|
-
l.value =
|
|
159
|
+
set(a) {
|
|
160
|
+
l.value = a;
|
|
161
161
|
},
|
|
162
162
|
enumerable: t
|
|
163
|
-
}) : Object.defineProperty(e,
|
|
163
|
+
}) : Object.defineProperty(e, r, { value: l, enumerable: t }));
|
|
164
164
|
return e;
|
|
165
165
|
}
|
|
166
166
|
function N(e) {
|
|
167
|
-
return typeof e == "function" ? e() :
|
|
167
|
+
return typeof e == "function" ? e() : _(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const Pe = typeof window < "u" && typeof document < "u";
|
|
170
170
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
171
|
-
const
|
|
172
|
-
}, ke = /* @__PURE__ */
|
|
173
|
-
function
|
|
174
|
-
var e,
|
|
175
|
-
return
|
|
171
|
+
const ft = (e) => typeof e < "u", pt = Object.prototype.toString, mt = (e) => pt.call(e) === "[object Object]", ae = () => {
|
|
172
|
+
}, ke = /* @__PURE__ */ vt();
|
|
173
|
+
function vt() {
|
|
174
|
+
var e, n;
|
|
175
|
+
return Pe && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
function t(...
|
|
179
|
-
return new Promise((
|
|
180
|
-
Promise.resolve(e(() =>
|
|
177
|
+
function Ee(e, n) {
|
|
178
|
+
function t(...u) {
|
|
179
|
+
return new Promise((r, l) => {
|
|
180
|
+
Promise.resolve(e(() => n.apply(this, u), { fn: n, thisArg: this, args: u })).then(r).catch(l);
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
return t;
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
function
|
|
187
|
-
let t,
|
|
188
|
-
const l = (
|
|
189
|
-
clearTimeout(
|
|
185
|
+
const Ne = (e) => e();
|
|
186
|
+
function gt(e, n = {}) {
|
|
187
|
+
let t, u, r = ae;
|
|
188
|
+
const l = (i) => {
|
|
189
|
+
clearTimeout(i), r(), r = ae;
|
|
190
190
|
};
|
|
191
|
-
return (
|
|
192
|
-
const
|
|
193
|
-
return t && l(t),
|
|
194
|
-
|
|
195
|
-
t && l(t),
|
|
191
|
+
return (i) => {
|
|
192
|
+
const s = N(e), c = N(n.maxWait);
|
|
193
|
+
return t && l(t), s <= 0 || c !== void 0 && c <= 0 ? (u && (l(u), u = null), Promise.resolve(i())) : new Promise((f, o) => {
|
|
194
|
+
r = n.rejectOnCancel ? o : f, c && !u && (u = setTimeout(() => {
|
|
195
|
+
t && l(t), u = null, f(i());
|
|
196
196
|
}, c)), t = setTimeout(() => {
|
|
197
|
-
|
|
198
|
-
},
|
|
197
|
+
u && l(u), u = null, f(i());
|
|
198
|
+
}, s);
|
|
199
199
|
});
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
const
|
|
202
|
+
function yt(e = Ne) {
|
|
203
|
+
const n = D(!0);
|
|
204
204
|
function t() {
|
|
205
|
-
|
|
205
|
+
n.value = !1;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
207
|
+
function u() {
|
|
208
|
+
n.value = !0;
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
|
|
210
|
+
const r = (...l) => {
|
|
211
|
+
n.value && e(...l);
|
|
212
212
|
};
|
|
213
|
-
return { isActive:
|
|
213
|
+
return { isActive: Oe(n), pause: t, resume: u, eventFilter: r };
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function bt(e) {
|
|
216
216
|
return e || de();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function xe(...e) {
|
|
219
219
|
if (e.length !== 1)
|
|
220
|
-
return
|
|
221
|
-
const
|
|
222
|
-
return typeof
|
|
220
|
+
return Ye(...e);
|
|
221
|
+
const n = e[0];
|
|
222
|
+
return typeof n == "function" ? Oe(De(() => ({ get: n, set: ae }))) : D(n);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
return
|
|
226
|
-
|
|
224
|
+
function ht(e, n = 200, t = {}) {
|
|
225
|
+
return Ee(
|
|
226
|
+
gt(n, t),
|
|
227
227
|
e
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
},
|
|
234
|
-
return
|
|
230
|
+
function wt(e, n = 200, t = {}) {
|
|
231
|
+
const u = D(e.value), r = ht(() => {
|
|
232
|
+
u.value = e.value;
|
|
233
|
+
}, n, t);
|
|
234
|
+
return F(e, () => r()), u;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
let t = e,
|
|
238
|
-
const l =
|
|
236
|
+
function _t(e, n = {}) {
|
|
237
|
+
let t = e, u, r;
|
|
238
|
+
const l = De((d, m) => (u = d, r = m, {
|
|
239
239
|
get() {
|
|
240
|
-
return
|
|
240
|
+
return a();
|
|
241
241
|
},
|
|
242
|
-
set(
|
|
243
|
-
|
|
242
|
+
set(p) {
|
|
243
|
+
i(p);
|
|
244
244
|
}
|
|
245
245
|
}));
|
|
246
|
-
function
|
|
247
|
-
return
|
|
246
|
+
function a(d = !0) {
|
|
247
|
+
return d && u(), t;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
var
|
|
251
|
-
if (
|
|
249
|
+
function i(d, m = !0) {
|
|
250
|
+
var p, v;
|
|
251
|
+
if (d === t)
|
|
252
252
|
return;
|
|
253
|
-
const
|
|
254
|
-
((
|
|
253
|
+
const $ = t;
|
|
254
|
+
((p = n.onBeforeChange) == null ? void 0 : p.call(n, d, $)) !== !1 && (t = d, (v = n.onChanged) == null || v.call(n, d, $), m && r());
|
|
255
255
|
}
|
|
256
|
-
return
|
|
256
|
+
return dt(
|
|
257
257
|
l,
|
|
258
258
|
{
|
|
259
|
-
get:
|
|
260
|
-
set:
|
|
261
|
-
untrackedGet: () =>
|
|
262
|
-
silentSet: (
|
|
263
|
-
peek: () =>
|
|
264
|
-
lay: (
|
|
259
|
+
get: a,
|
|
260
|
+
set: i,
|
|
261
|
+
untrackedGet: () => a(!1),
|
|
262
|
+
silentSet: (d) => i(d, !1),
|
|
263
|
+
peek: () => a(!1),
|
|
264
|
+
lay: (d) => i(d, !1)
|
|
265
265
|
},
|
|
266
266
|
{ enumerable: !0 }
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function $t(e, n, t = {}) {
|
|
270
270
|
const {
|
|
271
|
-
eventFilter:
|
|
272
|
-
...
|
|
271
|
+
eventFilter: u = Ne,
|
|
272
|
+
...r
|
|
273
273
|
} = t;
|
|
274
|
-
return
|
|
274
|
+
return F(
|
|
275
275
|
e,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
Ee(
|
|
277
|
+
u,
|
|
278
|
+
n
|
|
279
279
|
),
|
|
280
|
-
|
|
280
|
+
r
|
|
281
281
|
);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function kt(e, n, t = {}) {
|
|
284
284
|
const {
|
|
285
|
-
eventFilter:
|
|
286
|
-
...
|
|
287
|
-
} = t, { eventFilter: l, pause:
|
|
288
|
-
return { stop:
|
|
285
|
+
eventFilter: u,
|
|
286
|
+
...r
|
|
287
|
+
} = t, { eventFilter: l, pause: a, resume: i, isActive: s } = yt(u);
|
|
288
|
+
return { stop: $t(
|
|
289
289
|
e,
|
|
290
|
-
|
|
290
|
+
n,
|
|
291
291
|
{
|
|
292
|
-
...
|
|
292
|
+
...r,
|
|
293
293
|
eventFilter: l
|
|
294
294
|
}
|
|
295
|
-
), pause:
|
|
295
|
+
), pause: a, resume: i, isActive: s };
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
297
|
+
function be(e, n = !0, t) {
|
|
298
|
+
bt() ? Y(e, t) : n ? e() : ee(e);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function St(e = !1, n = {}) {
|
|
301
301
|
const {
|
|
302
302
|
truthyValue: t = !0,
|
|
303
|
-
falsyValue:
|
|
304
|
-
} =
|
|
305
|
-
function
|
|
303
|
+
falsyValue: u = !1
|
|
304
|
+
} = n, r = Z(e), l = D(e);
|
|
305
|
+
function a(i) {
|
|
306
306
|
if (arguments.length)
|
|
307
|
-
return l.value =
|
|
307
|
+
return l.value = i, l.value;
|
|
308
308
|
{
|
|
309
|
-
const
|
|
310
|
-
return l.value = l.value ===
|
|
309
|
+
const s = N(t);
|
|
310
|
+
return l.value = l.value === s ? N(u) : s, l.value;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
return
|
|
313
|
+
return r ? a : [l, a];
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
var
|
|
315
|
+
function z(e) {
|
|
316
|
+
var n;
|
|
317
317
|
const t = N(e);
|
|
318
|
-
return (
|
|
318
|
+
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
319
319
|
}
|
|
320
|
-
const J =
|
|
321
|
-
function
|
|
322
|
-
let
|
|
323
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t,
|
|
324
|
-
return
|
|
325
|
-
Array.isArray(t) || (t = [t]), Array.isArray(
|
|
326
|
-
const l = [],
|
|
327
|
-
l.forEach((
|
|
328
|
-
},
|
|
329
|
-
() => [
|
|
330
|
-
([
|
|
331
|
-
if (
|
|
320
|
+
const J = Pe ? window : void 0;
|
|
321
|
+
function le(...e) {
|
|
322
|
+
let n, t, u, r;
|
|
323
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, u, r] = e, n = J) : [n, t, u, r] = e, !n)
|
|
324
|
+
return ae;
|
|
325
|
+
Array.isArray(t) || (t = [t]), Array.isArray(u) || (u = [u]);
|
|
326
|
+
const l = [], a = () => {
|
|
327
|
+
l.forEach((f) => f()), l.length = 0;
|
|
328
|
+
}, i = (f, o, d, m) => (f.addEventListener(o, d, m), () => f.removeEventListener(o, d, m)), s = F(
|
|
329
|
+
() => [z(n), N(r)],
|
|
330
|
+
([f, o]) => {
|
|
331
|
+
if (a(), !f)
|
|
332
332
|
return;
|
|
333
|
-
const
|
|
333
|
+
const d = mt(o) ? { ...o } : o;
|
|
334
334
|
l.push(
|
|
335
|
-
...t.flatMap((m) =>
|
|
335
|
+
...t.flatMap((m) => u.map((p) => i(f, m, p, d)))
|
|
336
336
|
);
|
|
337
337
|
},
|
|
338
338
|
{ immediate: !0, flush: "post" }
|
|
339
339
|
), c = () => {
|
|
340
|
-
|
|
340
|
+
s(), a();
|
|
341
341
|
};
|
|
342
|
-
return
|
|
342
|
+
return se(c), c;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
return typeof e == "function" ? e : typeof e == "string" ? (
|
|
344
|
+
function Ct(e) {
|
|
345
|
+
return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
let
|
|
349
|
-
e.length === 3 ? (
|
|
347
|
+
function Le(...e) {
|
|
348
|
+
let n, t, u = {};
|
|
349
|
+
e.length === 3 ? (n = e[0], t = e[1], u = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, t = e[0], u = e[1]) : (n = e[0], t = e[1]) : (n = !0, t = e[0]);
|
|
350
350
|
const {
|
|
351
|
-
target:
|
|
351
|
+
target: r = J,
|
|
352
352
|
eventName: l = "keydown",
|
|
353
|
-
passive:
|
|
354
|
-
dedupe:
|
|
355
|
-
} =
|
|
356
|
-
return
|
|
357
|
-
|
|
358
|
-
},
|
|
353
|
+
passive: a = !1,
|
|
354
|
+
dedupe: i = !1
|
|
355
|
+
} = u, s = Ct(n);
|
|
356
|
+
return le(r, l, (f) => {
|
|
357
|
+
f.repeat && N(i) || s(f) && t(f);
|
|
358
|
+
}, a);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
const e =
|
|
362
|
-
return
|
|
360
|
+
function Vt() {
|
|
361
|
+
const e = D(!1), n = de();
|
|
362
|
+
return n && Y(() => {
|
|
363
363
|
e.value = !0;
|
|
364
|
-
},
|
|
364
|
+
}, n), e;
|
|
365
365
|
}
|
|
366
366
|
function We(e) {
|
|
367
|
-
const
|
|
368
|
-
return
|
|
367
|
+
const n = Vt();
|
|
368
|
+
return k(() => (n.value, !!e()));
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
const { window: t = J } =
|
|
372
|
-
let
|
|
373
|
-
const l =
|
|
370
|
+
function Bt(e, n = {}) {
|
|
371
|
+
const { window: t = J } = n, u = We(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
372
|
+
let r;
|
|
373
|
+
const l = D(!1), a = (c) => {
|
|
374
374
|
l.value = c.matches;
|
|
375
|
-
},
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
|
|
375
|
+
}, i = () => {
|
|
376
|
+
r && ("removeEventListener" in r ? r.removeEventListener("change", a) : r.removeListener(a));
|
|
377
|
+
}, s = X(() => {
|
|
378
|
+
u.value && (i(), r = t.matchMedia(N(e)), "addEventListener" in r ? r.addEventListener("change", a) : r.addListener(a), l.value = r.matches);
|
|
379
379
|
});
|
|
380
|
-
return
|
|
381
|
-
|
|
380
|
+
return se(() => {
|
|
381
|
+
s(), i(), r = void 0;
|
|
382
382
|
}), l;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function At(e) {
|
|
385
385
|
return JSON.parse(JSON.stringify(e));
|
|
386
386
|
}
|
|
387
|
-
const
|
|
388
|
-
function
|
|
389
|
-
return oe in
|
|
387
|
+
const ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, oe = "__vueuse_ssr_handlers__", Dt = /* @__PURE__ */ Ot();
|
|
388
|
+
function Ot() {
|
|
389
|
+
return oe in ne || (ne[oe] = ne[oe] || {}), ne[oe];
|
|
390
390
|
}
|
|
391
|
-
function Fe(e,
|
|
392
|
-
return
|
|
391
|
+
function Fe(e, n) {
|
|
392
|
+
return Dt[e] || n;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Mt(e) {
|
|
395
395
|
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
396
396
|
}
|
|
397
397
|
const Tt = {
|
|
@@ -427,315 +427,497 @@ const Tt = {
|
|
|
427
427
|
read: (e) => new Date(e),
|
|
428
428
|
write: (e) => e.toISOString()
|
|
429
429
|
}
|
|
430
|
-
},
|
|
431
|
-
function
|
|
432
|
-
var
|
|
430
|
+
}, Se = "vueuse-storage";
|
|
431
|
+
function jt(e, n, t, u = {}) {
|
|
432
|
+
var r;
|
|
433
433
|
const {
|
|
434
434
|
flush: l = "pre",
|
|
435
|
-
deep:
|
|
436
|
-
listenToStorageChanges:
|
|
437
|
-
writeDefaults:
|
|
435
|
+
deep: a = !0,
|
|
436
|
+
listenToStorageChanges: i = !0,
|
|
437
|
+
writeDefaults: s = !0,
|
|
438
438
|
mergeDefaults: c = !1,
|
|
439
|
-
shallow:
|
|
440
|
-
window:
|
|
441
|
-
eventFilter:
|
|
442
|
-
onError: m = (
|
|
443
|
-
console.error(
|
|
439
|
+
shallow: f,
|
|
440
|
+
window: o = J,
|
|
441
|
+
eventFilter: d,
|
|
442
|
+
onError: m = (y) => {
|
|
443
|
+
console.error(y);
|
|
444
444
|
},
|
|
445
|
-
initOnMounted:
|
|
446
|
-
} =
|
|
445
|
+
initOnMounted: p
|
|
446
|
+
} = u, v = (f ? qe : D)(typeof n == "function" ? n() : n);
|
|
447
447
|
if (!t)
|
|
448
448
|
try {
|
|
449
449
|
t = Fe("getDefaultStorage", () => {
|
|
450
|
-
var
|
|
451
|
-
return (
|
|
450
|
+
var y;
|
|
451
|
+
return (y = J) == null ? void 0 : y.localStorage;
|
|
452
452
|
})();
|
|
453
|
-
} catch (
|
|
454
|
-
m(
|
|
453
|
+
} catch (y) {
|
|
454
|
+
m(y);
|
|
455
455
|
}
|
|
456
456
|
if (!t)
|
|
457
|
-
return
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
() =>
|
|
461
|
-
{ flush: l, deep:
|
|
457
|
+
return v;
|
|
458
|
+
const $ = N(n), V = Mt($), T = (r = u.serializer) != null ? r : Tt[V], { pause: A, resume: C } = kt(
|
|
459
|
+
v,
|
|
460
|
+
() => W(v.value),
|
|
461
|
+
{ flush: l, deep: a, eventFilter: d }
|
|
462
462
|
);
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}),
|
|
466
|
-
function
|
|
467
|
-
|
|
463
|
+
o && i && be(() => {
|
|
464
|
+
le(o, "storage", L), le(o, Se, te), p && L();
|
|
465
|
+
}), p || L();
|
|
466
|
+
function P(y, M) {
|
|
467
|
+
o && o.dispatchEvent(new CustomEvent(Se, {
|
|
468
468
|
detail: {
|
|
469
469
|
key: e,
|
|
470
|
-
oldValue:
|
|
471
|
-
newValue:
|
|
470
|
+
oldValue: y,
|
|
471
|
+
newValue: M,
|
|
472
472
|
storageArea: t
|
|
473
473
|
}
|
|
474
474
|
}));
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function W(y) {
|
|
477
477
|
try {
|
|
478
|
-
const
|
|
479
|
-
if (
|
|
480
|
-
|
|
478
|
+
const M = t.getItem(e);
|
|
479
|
+
if (y == null)
|
|
480
|
+
P(M, null), t.removeItem(e);
|
|
481
481
|
else {
|
|
482
|
-
const
|
|
483
|
-
|
|
482
|
+
const R = T.write(y);
|
|
483
|
+
M !== R && (t.setItem(e, R), P(M, R));
|
|
484
484
|
}
|
|
485
|
-
} catch (
|
|
486
|
-
m(
|
|
485
|
+
} catch (M) {
|
|
486
|
+
m(M);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
const
|
|
491
|
-
if (
|
|
492
|
-
return
|
|
493
|
-
if (!
|
|
494
|
-
const
|
|
495
|
-
return typeof c == "function" ? c(
|
|
489
|
+
function K(y) {
|
|
490
|
+
const M = y ? y.newValue : t.getItem(e);
|
|
491
|
+
if (M == null)
|
|
492
|
+
return s && $ != null && t.setItem(e, T.write($)), $;
|
|
493
|
+
if (!y && c) {
|
|
494
|
+
const R = T.read(M);
|
|
495
|
+
return typeof c == "function" ? c(R, $) : V === "object" && !Array.isArray(R) ? { ...$, ...R } : R;
|
|
496
496
|
} else
|
|
497
|
-
return typeof
|
|
497
|
+
return typeof M != "string" ? M : T.read(M);
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
if (!(
|
|
501
|
-
if (
|
|
502
|
-
|
|
499
|
+
function L(y) {
|
|
500
|
+
if (!(y && y.storageArea !== t)) {
|
|
501
|
+
if (y && y.key == null) {
|
|
502
|
+
v.value = $;
|
|
503
503
|
return;
|
|
504
504
|
}
|
|
505
|
-
if (!(
|
|
506
|
-
|
|
505
|
+
if (!(y && y.key !== e)) {
|
|
506
|
+
A();
|
|
507
507
|
try {
|
|
508
|
-
(
|
|
509
|
-
} catch (
|
|
510
|
-
m(
|
|
508
|
+
(y == null ? void 0 : y.newValue) !== T.write(v.value) && (v.value = K(y));
|
|
509
|
+
} catch (M) {
|
|
510
|
+
m(M);
|
|
511
511
|
} finally {
|
|
512
|
-
|
|
512
|
+
y ? ee(C) : C();
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
|
|
517
|
+
function te(y) {
|
|
518
|
+
L(y.detail);
|
|
519
519
|
}
|
|
520
|
-
return
|
|
520
|
+
return v;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return
|
|
522
|
+
function Pt(e) {
|
|
523
|
+
return Bt("(prefers-color-scheme: dark)", e);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Et(e = {}) {
|
|
526
526
|
const {
|
|
527
|
-
selector:
|
|
527
|
+
selector: n = "html",
|
|
528
528
|
attribute: t = "class",
|
|
529
|
-
initialValue:
|
|
530
|
-
window:
|
|
529
|
+
initialValue: u = "auto",
|
|
530
|
+
window: r = J,
|
|
531
531
|
storage: l,
|
|
532
|
-
storageKey:
|
|
533
|
-
listenToStorageChanges:
|
|
534
|
-
storageRef:
|
|
532
|
+
storageKey: a = "vueuse-color-scheme",
|
|
533
|
+
listenToStorageChanges: i = !0,
|
|
534
|
+
storageRef: s,
|
|
535
535
|
emitAuto: c,
|
|
536
|
-
disableTransition:
|
|
537
|
-
} = e,
|
|
536
|
+
disableTransition: f = !0
|
|
537
|
+
} = e, o = {
|
|
538
538
|
auto: "",
|
|
539
539
|
light: "light",
|
|
540
540
|
dark: "dark",
|
|
541
541
|
...e.modes || {}
|
|
542
|
-
},
|
|
542
|
+
}, d = Pt({ window: r }), m = k(() => d.value ? "dark" : "light"), p = s || (a == null ? xe(u) : jt(a, u, l, { window: r, listenToStorageChanges: i })), v = k(() => p.value === "auto" ? m.value : p.value), $ = Fe(
|
|
543
543
|
"updateHTMLAttrs",
|
|
544
|
-
(C,
|
|
545
|
-
const
|
|
546
|
-
if (!
|
|
544
|
+
(C, P, W) => {
|
|
545
|
+
const K = typeof C == "string" ? r == null ? void 0 : r.document.querySelector(C) : z(C);
|
|
546
|
+
if (!K)
|
|
547
547
|
return;
|
|
548
|
-
let
|
|
549
|
-
if (
|
|
550
|
-
const
|
|
551
|
-
Object.values(
|
|
552
|
-
|
|
548
|
+
let L;
|
|
549
|
+
if (f && (L = r.document.createElement("style"), L.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), r.document.head.appendChild(L)), P === "class") {
|
|
550
|
+
const te = W.split(/\s/g);
|
|
551
|
+
Object.values(o).flatMap((y) => (y || "").split(/\s/g)).filter(Boolean).forEach((y) => {
|
|
552
|
+
te.includes(y) ? K.classList.add(y) : K.classList.remove(y);
|
|
553
553
|
});
|
|
554
554
|
} else
|
|
555
|
-
|
|
556
|
-
|
|
555
|
+
K.setAttribute(P, W);
|
|
556
|
+
f && (r.getComputedStyle(L).opacity, document.head.removeChild(L));
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
|
-
function
|
|
560
|
-
var
|
|
561
|
-
|
|
559
|
+
function V(C) {
|
|
560
|
+
var P;
|
|
561
|
+
$(n, t, (P = o[C]) != null ? P : C);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
e.onChanged ? e.onChanged(C,
|
|
563
|
+
function T(C) {
|
|
564
|
+
e.onChanged ? e.onChanged(C, V) : V(C);
|
|
565
565
|
}
|
|
566
|
-
|
|
567
|
-
const
|
|
566
|
+
F(v, T, { flush: "post", immediate: !0 }), be(() => T(v.value));
|
|
567
|
+
const A = k({
|
|
568
568
|
get() {
|
|
569
|
-
return c ?
|
|
569
|
+
return c ? p.value : v.value;
|
|
570
570
|
},
|
|
571
571
|
set(C) {
|
|
572
|
-
|
|
572
|
+
p.value = C;
|
|
573
573
|
}
|
|
574
574
|
});
|
|
575
575
|
try {
|
|
576
|
-
return Object.assign(
|
|
576
|
+
return Object.assign(A, { store: p, system: m, state: v });
|
|
577
577
|
} catch {
|
|
578
|
-
return
|
|
578
|
+
return A;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
const { window:
|
|
581
|
+
function Nt(e, n, t = {}) {
|
|
582
|
+
const { window: u = J, ...r } = t;
|
|
583
583
|
let l;
|
|
584
|
-
const
|
|
584
|
+
const a = We(() => u && "ResizeObserver" in u), i = () => {
|
|
585
585
|
l && (l.disconnect(), l = void 0);
|
|
586
|
-
},
|
|
587
|
-
|
|
588
|
-
(
|
|
589
|
-
if (
|
|
590
|
-
l = new ResizeObserver(
|
|
591
|
-
for (const
|
|
592
|
-
|
|
586
|
+
}, s = k(() => Array.isArray(e) ? e.map((o) => z(o)) : [z(e)]), c = F(
|
|
587
|
+
s,
|
|
588
|
+
(o) => {
|
|
589
|
+
if (i(), a.value && u) {
|
|
590
|
+
l = new ResizeObserver(n);
|
|
591
|
+
for (const d of o)
|
|
592
|
+
d && l.observe(d, r);
|
|
593
593
|
}
|
|
594
594
|
},
|
|
595
595
|
{ immediate: !0, flush: "post" }
|
|
596
|
-
),
|
|
597
|
-
|
|
596
|
+
), f = () => {
|
|
597
|
+
i(), c();
|
|
598
598
|
};
|
|
599
|
-
return
|
|
600
|
-
isSupported:
|
|
601
|
-
stop:
|
|
599
|
+
return se(f), {
|
|
600
|
+
isSupported: a,
|
|
601
|
+
stop: f
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
const { window:
|
|
606
|
-
var
|
|
607
|
-
return (
|
|
608
|
-
}),
|
|
604
|
+
function xt(e, n = { width: 0, height: 0 }, t = {}) {
|
|
605
|
+
const { window: u = J, box: r = "content-box" } = t, l = k(() => {
|
|
606
|
+
var o, d;
|
|
607
|
+
return (d = (o = z(e)) == null ? void 0 : o.namespaceURI) == null ? void 0 : d.includes("svg");
|
|
608
|
+
}), a = D(n.width), i = D(n.height), { stop: s } = Nt(
|
|
609
609
|
e,
|
|
610
|
-
([
|
|
611
|
-
const
|
|
612
|
-
if (
|
|
613
|
-
const m =
|
|
610
|
+
([o]) => {
|
|
611
|
+
const d = r === "border-box" ? o.borderBoxSize : r === "content-box" ? o.contentBoxSize : o.devicePixelContentBoxSize;
|
|
612
|
+
if (u && l.value) {
|
|
613
|
+
const m = z(e);
|
|
614
614
|
if (m) {
|
|
615
|
-
const
|
|
616
|
-
|
|
615
|
+
const p = u.getComputedStyle(m);
|
|
616
|
+
a.value = Number.parseFloat(p.width), i.value = Number.parseFloat(p.height);
|
|
617
617
|
}
|
|
618
|
-
} else if (
|
|
619
|
-
const m = Array.isArray(
|
|
620
|
-
|
|
618
|
+
} else if (d) {
|
|
619
|
+
const m = Array.isArray(d) ? d : [d];
|
|
620
|
+
a.value = m.reduce((p, { inlineSize: v }) => p + v, 0), i.value = m.reduce((p, { blockSize: v }) => p + v, 0);
|
|
621
621
|
} else
|
|
622
|
-
|
|
622
|
+
a.value = o.contentRect.width, i.value = o.contentRect.height;
|
|
623
623
|
},
|
|
624
624
|
t
|
|
625
625
|
);
|
|
626
|
-
|
|
627
|
-
const
|
|
628
|
-
|
|
626
|
+
be(() => {
|
|
627
|
+
const o = z(e);
|
|
628
|
+
o && (a.value = "offsetWidth" in o ? o.offsetWidth : n.width, i.value = "offsetHeight" in o ? o.offsetHeight : n.height);
|
|
629
629
|
});
|
|
630
|
-
const c =
|
|
631
|
-
() =>
|
|
632
|
-
(
|
|
633
|
-
|
|
630
|
+
const c = F(
|
|
631
|
+
() => z(e),
|
|
632
|
+
(o) => {
|
|
633
|
+
a.value = o ? n.width : 0, i.value = o ? n.height : 0;
|
|
634
634
|
}
|
|
635
635
|
);
|
|
636
|
-
function
|
|
637
|
-
|
|
636
|
+
function f() {
|
|
637
|
+
s(), c();
|
|
638
638
|
}
|
|
639
639
|
return {
|
|
640
|
-
width:
|
|
641
|
-
height:
|
|
642
|
-
stop:
|
|
640
|
+
width: a,
|
|
641
|
+
height: i,
|
|
642
|
+
stop: f
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function ie(e) {
|
|
646
646
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
const
|
|
650
|
-
if (
|
|
648
|
+
function Re(e) {
|
|
649
|
+
const n = window.getComputedStyle(e);
|
|
650
|
+
if (n.overflowX === "scroll" || n.overflowY === "scroll" || n.overflowX === "auto" && e.clientWidth < e.scrollWidth || n.overflowY === "auto" && e.clientHeight < e.scrollHeight)
|
|
651
651
|
return !0;
|
|
652
652
|
{
|
|
653
653
|
const t = e.parentNode;
|
|
654
|
-
return !t || t.tagName === "BODY" ? !1 :
|
|
654
|
+
return !t || t.tagName === "BODY" ? !1 : Re(t);
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
const
|
|
659
|
-
return
|
|
657
|
+
function Lt(e) {
|
|
658
|
+
const n = e || window.event, t = n.target;
|
|
659
|
+
return Re(t) ? !1 : n.touches.length > 1 ? !0 : (n.preventDefault && n.preventDefault(), !1);
|
|
660
660
|
}
|
|
661
|
-
const
|
|
662
|
-
function
|
|
663
|
-
const t =
|
|
664
|
-
let
|
|
665
|
-
|
|
666
|
-
const
|
|
667
|
-
if (
|
|
668
|
-
const
|
|
669
|
-
|
|
661
|
+
const re = /* @__PURE__ */ new WeakMap();
|
|
662
|
+
function Wt(e, n = !1) {
|
|
663
|
+
const t = D(n);
|
|
664
|
+
let u = null;
|
|
665
|
+
F(xe(e), (a) => {
|
|
666
|
+
const i = ie(N(a));
|
|
667
|
+
if (i) {
|
|
668
|
+
const s = i;
|
|
669
|
+
re.get(s) || re.set(s, s.style.overflow), t.value && (s.style.overflow = "hidden");
|
|
670
670
|
}
|
|
671
671
|
}, {
|
|
672
672
|
immediate: !0
|
|
673
673
|
});
|
|
674
|
-
const
|
|
675
|
-
const
|
|
676
|
-
!
|
|
677
|
-
|
|
674
|
+
const r = () => {
|
|
675
|
+
const a = ie(N(e));
|
|
676
|
+
!a || t.value || (ke && (u = le(
|
|
677
|
+
a,
|
|
678
678
|
"touchmove",
|
|
679
|
-
(
|
|
680
|
-
|
|
679
|
+
(i) => {
|
|
680
|
+
Lt(i);
|
|
681
681
|
},
|
|
682
682
|
{ passive: !1 }
|
|
683
|
-
)),
|
|
683
|
+
)), a.style.overflow = "hidden", t.value = !0);
|
|
684
684
|
}, l = () => {
|
|
685
|
-
var
|
|
686
|
-
const
|
|
687
|
-
!
|
|
685
|
+
var a;
|
|
686
|
+
const i = ie(N(e));
|
|
687
|
+
!i || !t.value || (ke && (u == null || u()), i.style.overflow = (a = re.get(i)) != null ? a : "", re.delete(i), t.value = !1);
|
|
688
688
|
};
|
|
689
|
-
return
|
|
689
|
+
return se(l), k({
|
|
690
690
|
get() {
|
|
691
691
|
return t.value;
|
|
692
692
|
},
|
|
693
|
-
set(
|
|
694
|
-
|
|
693
|
+
set(a) {
|
|
694
|
+
a ? r() : l();
|
|
695
695
|
}
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
|
-
function U(e,
|
|
699
|
-
var
|
|
698
|
+
function U(e, n, t, u = {}) {
|
|
699
|
+
var r, l, a;
|
|
700
700
|
const {
|
|
701
|
-
clone:
|
|
702
|
-
passive:
|
|
701
|
+
clone: i = !1,
|
|
702
|
+
passive: s = !1,
|
|
703
703
|
eventName: c,
|
|
704
|
-
deep:
|
|
705
|
-
defaultValue:
|
|
706
|
-
shouldEmit:
|
|
707
|
-
} =
|
|
708
|
-
let
|
|
709
|
-
|
|
710
|
-
const
|
|
711
|
-
|
|
704
|
+
deep: f = !1,
|
|
705
|
+
defaultValue: o,
|
|
706
|
+
shouldEmit: d
|
|
707
|
+
} = u, m = de(), p = t || (m == null ? void 0 : m.emit) || ((r = m == null ? void 0 : m.$emit) == null ? void 0 : r.bind(m)) || ((a = (l = m == null ? void 0 : m.proxy) == null ? void 0 : l.$emit) == null ? void 0 : a.bind(m == null ? void 0 : m.proxy));
|
|
708
|
+
let v = c;
|
|
709
|
+
n || (n = "modelValue"), v = v || `update:${n.toString()}`;
|
|
710
|
+
const $ = (A) => i ? typeof i == "function" ? i(A) : At(A) : A, V = () => ft(e[n]) ? $(e[n]) : o, T = (A) => {
|
|
711
|
+
d ? d(A) && p(v, A) : p(v, A);
|
|
712
712
|
};
|
|
713
|
-
if (
|
|
714
|
-
const
|
|
715
|
-
let
|
|
716
|
-
return
|
|
717
|
-
() => e[
|
|
718
|
-
(
|
|
719
|
-
|
|
713
|
+
if (s) {
|
|
714
|
+
const A = V(), C = D(A);
|
|
715
|
+
let P = !1;
|
|
716
|
+
return F(
|
|
717
|
+
() => e[n],
|
|
718
|
+
(W) => {
|
|
719
|
+
P || (P = !0, C.value = $(W), ee(() => P = !1));
|
|
720
720
|
}
|
|
721
|
-
),
|
|
721
|
+
), F(
|
|
722
722
|
C,
|
|
723
|
-
(
|
|
724
|
-
!
|
|
723
|
+
(W) => {
|
|
724
|
+
!P && (W !== e[n] || f) && T(W);
|
|
725
725
|
},
|
|
726
|
-
{ deep:
|
|
726
|
+
{ deep: f }
|
|
727
727
|
), C;
|
|
728
728
|
} else
|
|
729
|
-
return
|
|
729
|
+
return k({
|
|
730
730
|
get() {
|
|
731
|
-
return
|
|
731
|
+
return V();
|
|
732
732
|
},
|
|
733
|
-
set(
|
|
734
|
-
|
|
733
|
+
set(A) {
|
|
734
|
+
T(A);
|
|
735
735
|
}
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
|
|
738
|
+
var Ft = Object.create, ze = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, he = Object.getOwnPropertyNames, zt = Object.getPrototypeOf, It = Object.prototype.hasOwnProperty, Ht = (e, n) => function() {
|
|
739
|
+
return e && (n = (0, e[he(e)[0]])(e = 0)), n;
|
|
740
|
+
}, Jt = (e, n) => function() {
|
|
741
|
+
return n || (0, e[he(e)[0]])((n = { exports: {} }).exports, n), n.exports;
|
|
742
|
+
}, Ut = (e, n, t, u) => {
|
|
743
|
+
if (n && typeof n == "object" || typeof n == "function")
|
|
744
|
+
for (let r of he(n))
|
|
745
|
+
!It.call(e, r) && r !== t && ze(e, r, { get: () => n[r], enumerable: !(u = Rt(n, r)) || u.enumerable });
|
|
746
|
+
return e;
|
|
747
|
+
}, Kt = (e, n, t) => (t = e != null ? Ft(zt(e)) : {}, Ut(
|
|
748
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
749
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
750
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
751
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
752
|
+
n || !e || !e.__esModule ? ze(t, "default", { value: e, enumerable: !0 }) : t,
|
|
753
|
+
e
|
|
754
|
+
)), q = Ht({
|
|
755
|
+
"../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js"() {
|
|
756
|
+
}
|
|
757
|
+
}), Gt = Jt({
|
|
758
|
+
"../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js"(e, n) {
|
|
759
|
+
q(), n.exports = u;
|
|
760
|
+
function t(l) {
|
|
761
|
+
return l instanceof Buffer ? Buffer.from(l) : new l.constructor(l.buffer.slice(), l.byteOffset, l.length);
|
|
762
|
+
}
|
|
763
|
+
function u(l) {
|
|
764
|
+
if (l = l || {}, l.circles)
|
|
765
|
+
return r(l);
|
|
766
|
+
return l.proto ? s : i;
|
|
767
|
+
function a(c, f) {
|
|
768
|
+
for (var o = Object.keys(c), d = new Array(o.length), m = 0; m < o.length; m++) {
|
|
769
|
+
var p = o[m], v = c[p];
|
|
770
|
+
typeof v != "object" || v === null ? d[p] = v : v instanceof Date ? d[p] = new Date(v) : ArrayBuffer.isView(v) ? d[p] = t(v) : d[p] = f(v);
|
|
771
|
+
}
|
|
772
|
+
return d;
|
|
773
|
+
}
|
|
774
|
+
function i(c) {
|
|
775
|
+
if (typeof c != "object" || c === null)
|
|
776
|
+
return c;
|
|
777
|
+
if (c instanceof Date)
|
|
778
|
+
return new Date(c);
|
|
779
|
+
if (Array.isArray(c))
|
|
780
|
+
return a(c, i);
|
|
781
|
+
if (c instanceof Map)
|
|
782
|
+
return new Map(a(Array.from(c), i));
|
|
783
|
+
if (c instanceof Set)
|
|
784
|
+
return new Set(a(Array.from(c), i));
|
|
785
|
+
var f = {};
|
|
786
|
+
for (var o in c)
|
|
787
|
+
if (Object.hasOwnProperty.call(c, o) !== !1) {
|
|
788
|
+
var d = c[o];
|
|
789
|
+
typeof d != "object" || d === null ? f[o] = d : d instanceof Date ? f[o] = new Date(d) : d instanceof Map ? f[o] = new Map(a(Array.from(d), i)) : d instanceof Set ? f[o] = new Set(a(Array.from(d), i)) : ArrayBuffer.isView(d) ? f[o] = t(d) : f[o] = i(d);
|
|
790
|
+
}
|
|
791
|
+
return f;
|
|
792
|
+
}
|
|
793
|
+
function s(c) {
|
|
794
|
+
if (typeof c != "object" || c === null)
|
|
795
|
+
return c;
|
|
796
|
+
if (c instanceof Date)
|
|
797
|
+
return new Date(c);
|
|
798
|
+
if (Array.isArray(c))
|
|
799
|
+
return a(c, s);
|
|
800
|
+
if (c instanceof Map)
|
|
801
|
+
return new Map(a(Array.from(c), s));
|
|
802
|
+
if (c instanceof Set)
|
|
803
|
+
return new Set(a(Array.from(c), s));
|
|
804
|
+
var f = {};
|
|
805
|
+
for (var o in c) {
|
|
806
|
+
var d = c[o];
|
|
807
|
+
typeof d != "object" || d === null ? f[o] = d : d instanceof Date ? f[o] = new Date(d) : d instanceof Map ? f[o] = new Map(a(Array.from(d), s)) : d instanceof Set ? f[o] = new Set(a(Array.from(d), s)) : ArrayBuffer.isView(d) ? f[o] = t(d) : f[o] = s(d);
|
|
808
|
+
}
|
|
809
|
+
return f;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
function r(l) {
|
|
813
|
+
var a = [], i = [];
|
|
814
|
+
return l.proto ? f : c;
|
|
815
|
+
function s(o, d) {
|
|
816
|
+
for (var m = Object.keys(o), p = new Array(m.length), v = 0; v < m.length; v++) {
|
|
817
|
+
var $ = m[v], V = o[$];
|
|
818
|
+
if (typeof V != "object" || V === null)
|
|
819
|
+
p[$] = V;
|
|
820
|
+
else if (V instanceof Date)
|
|
821
|
+
p[$] = new Date(V);
|
|
822
|
+
else if (ArrayBuffer.isView(V))
|
|
823
|
+
p[$] = t(V);
|
|
824
|
+
else {
|
|
825
|
+
var T = a.indexOf(V);
|
|
826
|
+
T !== -1 ? p[$] = i[T] : p[$] = d(V);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
return p;
|
|
830
|
+
}
|
|
831
|
+
function c(o) {
|
|
832
|
+
if (typeof o != "object" || o === null)
|
|
833
|
+
return o;
|
|
834
|
+
if (o instanceof Date)
|
|
835
|
+
return new Date(o);
|
|
836
|
+
if (Array.isArray(o))
|
|
837
|
+
return s(o, c);
|
|
838
|
+
if (o instanceof Map)
|
|
839
|
+
return new Map(s(Array.from(o), c));
|
|
840
|
+
if (o instanceof Set)
|
|
841
|
+
return new Set(s(Array.from(o), c));
|
|
842
|
+
var d = {};
|
|
843
|
+
a.push(o), i.push(d);
|
|
844
|
+
for (var m in o)
|
|
845
|
+
if (Object.hasOwnProperty.call(o, m) !== !1) {
|
|
846
|
+
var p = o[m];
|
|
847
|
+
if (typeof p != "object" || p === null)
|
|
848
|
+
d[m] = p;
|
|
849
|
+
else if (p instanceof Date)
|
|
850
|
+
d[m] = new Date(p);
|
|
851
|
+
else if (p instanceof Map)
|
|
852
|
+
d[m] = new Map(s(Array.from(p), c));
|
|
853
|
+
else if (p instanceof Set)
|
|
854
|
+
d[m] = new Set(s(Array.from(p), c));
|
|
855
|
+
else if (ArrayBuffer.isView(p))
|
|
856
|
+
d[m] = t(p);
|
|
857
|
+
else {
|
|
858
|
+
var v = a.indexOf(p);
|
|
859
|
+
v !== -1 ? d[m] = i[v] : d[m] = c(p);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
return a.pop(), i.pop(), d;
|
|
863
|
+
}
|
|
864
|
+
function f(o) {
|
|
865
|
+
if (typeof o != "object" || o === null)
|
|
866
|
+
return o;
|
|
867
|
+
if (o instanceof Date)
|
|
868
|
+
return new Date(o);
|
|
869
|
+
if (Array.isArray(o))
|
|
870
|
+
return s(o, f);
|
|
871
|
+
if (o instanceof Map)
|
|
872
|
+
return new Map(s(Array.from(o), f));
|
|
873
|
+
if (o instanceof Set)
|
|
874
|
+
return new Set(s(Array.from(o), f));
|
|
875
|
+
var d = {};
|
|
876
|
+
a.push(o), i.push(d);
|
|
877
|
+
for (var m in o) {
|
|
878
|
+
var p = o[m];
|
|
879
|
+
if (typeof p != "object" || p === null)
|
|
880
|
+
d[m] = p;
|
|
881
|
+
else if (p instanceof Date)
|
|
882
|
+
d[m] = new Date(p);
|
|
883
|
+
else if (p instanceof Map)
|
|
884
|
+
d[m] = new Map(s(Array.from(p), f));
|
|
885
|
+
else if (p instanceof Set)
|
|
886
|
+
d[m] = new Set(s(Array.from(p), f));
|
|
887
|
+
else if (ArrayBuffer.isView(p))
|
|
888
|
+
d[m] = t(p);
|
|
889
|
+
else {
|
|
890
|
+
var v = a.indexOf(p);
|
|
891
|
+
v !== -1 ? d[m] = i[v] : d[m] = f(p);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
return a.pop(), i.pop(), d;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
q();
|
|
900
|
+
q();
|
|
901
|
+
var Ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
902
|
+
typeof Ce.chrome < "u" && Ce.chrome.devtools;
|
|
903
|
+
typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("electron");
|
|
904
|
+
q();
|
|
905
|
+
var Yt = Kt(Gt(), 1);
|
|
906
|
+
(0, Yt.default)({ circles: !0 });
|
|
907
|
+
q();
|
|
908
|
+
var qt = "__vue-devtools-theme__";
|
|
909
|
+
q();
|
|
910
|
+
function Xt(e = {}) {
|
|
911
|
+
const n = Et({
|
|
912
|
+
...e,
|
|
913
|
+
storageKey: qt
|
|
914
|
+
});
|
|
915
|
+
return {
|
|
916
|
+
colorMode: n,
|
|
917
|
+
isDark: k(() => n.value === "dark")
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
const Qt = { class: "$ui-dark-toggle-vtr" }, Vn = /* @__PURE__ */ O({
|
|
739
921
|
__name: "DarkToggle",
|
|
740
922
|
props: {
|
|
741
923
|
isDark: { type: Boolean, default: !1 },
|
|
@@ -743,72 +925,72 @@ const Wt = { class: "$ui-dark-toggle-vtr" }, uo = /* @__PURE__ */ T({
|
|
|
743
925
|
animationDuration: { default: 400 }
|
|
744
926
|
},
|
|
745
927
|
setup(e) {
|
|
746
|
-
const
|
|
928
|
+
const n = e, t = U(n, "isDark"), { colorMode: u } = Xt({
|
|
747
929
|
initialValue: t.value ? "dark" : "light",
|
|
748
|
-
onChanged: (
|
|
749
|
-
t.value =
|
|
930
|
+
onChanged: (i) => {
|
|
931
|
+
t.value = i === "dark";
|
|
750
932
|
}
|
|
751
|
-
}),
|
|
752
|
-
get: () =>
|
|
753
|
-
set: (
|
|
933
|
+
}), r = k({
|
|
934
|
+
get: () => u.value === "dark",
|
|
935
|
+
set: (i) => u.value = i ? "dark" : "light"
|
|
754
936
|
}), l = document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
755
|
-
function
|
|
756
|
-
if (!l || !
|
|
757
|
-
|
|
937
|
+
function a(i) {
|
|
938
|
+
if (!l || !i || !n.animation) {
|
|
939
|
+
r.value = !r.value;
|
|
758
940
|
return;
|
|
759
941
|
}
|
|
760
|
-
const
|
|
761
|
-
Math.max(
|
|
942
|
+
const s = i.clientX, c = i.clientY, f = Math.hypot(
|
|
943
|
+
Math.max(s, innerWidth - s),
|
|
762
944
|
Math.max(c, innerHeight - c)
|
|
763
945
|
);
|
|
764
946
|
document.startViewTransition(async () => {
|
|
765
|
-
|
|
947
|
+
r.value = !r.value, await ee();
|
|
766
948
|
}).ready.then(() => {
|
|
767
|
-
const
|
|
768
|
-
`circle(0px at ${
|
|
769
|
-
`circle(${
|
|
949
|
+
const d = [
|
|
950
|
+
`circle(0px at ${s}px ${c}px)`,
|
|
951
|
+
`circle(${f}px at ${s}px ${c}px)`
|
|
770
952
|
];
|
|
771
953
|
document.documentElement.animate(
|
|
772
954
|
{
|
|
773
|
-
clipPath:
|
|
955
|
+
clipPath: r.value ? [...d].reverse() : d
|
|
774
956
|
},
|
|
775
957
|
{
|
|
776
|
-
duration:
|
|
958
|
+
duration: n.animationDuration,
|
|
777
959
|
easing: "ease-in",
|
|
778
|
-
pseudoElement:
|
|
960
|
+
pseudoElement: r.value ? "::view-transition-old(root)" : "::view-transition-new(root)"
|
|
779
961
|
}
|
|
780
962
|
);
|
|
781
963
|
});
|
|
782
964
|
}
|
|
783
|
-
return (
|
|
784
|
-
w(
|
|
965
|
+
return (i, s) => (g(), S("span", Qt, [
|
|
966
|
+
w(i.$slots, "default", fe(pe({ mode: _(u), isDark: r.value, toggle: a })))
|
|
785
967
|
]));
|
|
786
968
|
}
|
|
787
|
-
}),
|
|
788
|
-
function
|
|
789
|
-
return
|
|
969
|
+
}), Zt = {}, en = { class: "$ui-base border $ui-border-base rounded shadow-sm" };
|
|
970
|
+
function tn(e, n) {
|
|
971
|
+
return g(), S("div", en, [
|
|
790
972
|
w(e.$slots, "default")
|
|
791
973
|
]);
|
|
792
974
|
}
|
|
793
|
-
const
|
|
975
|
+
const Bn = /* @__PURE__ */ ye(Zt, [["render", tn]]), Ie = /* @__PURE__ */ O({
|
|
794
976
|
__name: "Overlay",
|
|
795
977
|
props: {
|
|
796
978
|
dim: { type: Boolean },
|
|
797
979
|
blur: { type: Boolean }
|
|
798
980
|
},
|
|
799
981
|
setup(e) {
|
|
800
|
-
return (
|
|
801
|
-
class:
|
|
802
|
-
|
|
803
|
-
|
|
982
|
+
return (n, t) => (g(), S("div", {
|
|
983
|
+
class: B(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base", [
|
|
984
|
+
n.dim ? "bg-opacity-50!" : "bg-opacity-0!",
|
|
985
|
+
n.blur ? "backdrop-blur-sm" : ""
|
|
804
986
|
]])
|
|
805
987
|
}, [
|
|
806
|
-
w(
|
|
988
|
+
w(n.$slots, "default")
|
|
807
989
|
], 2));
|
|
808
990
|
}
|
|
809
|
-
}),
|
|
810
|
-
|
|
811
|
-
],
|
|
991
|
+
}), nn = { class: "h7.5 w-full $ui-fbc" }, on = { class: "text-4.5" }, rn = /* @__PURE__ */ b("div", { class: "i-carbon-close" }, null, -1), an = [
|
|
992
|
+
rn
|
|
993
|
+
], ln = { class: "content transition-all transition-duration-300" }, sn = { class: "footer h8 w-full transition-all transition-duration-300 delay-250" }, un = { class: "$ui-fcc" }, cn = /* @__PURE__ */ O({
|
|
812
994
|
__name: "Dialog",
|
|
813
995
|
props: {
|
|
814
996
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -822,66 +1004,66 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
822
1004
|
blur: { type: Boolean }
|
|
823
1005
|
},
|
|
824
1006
|
emits: ["close", "update:modelValue"],
|
|
825
|
-
setup(e, { emit:
|
|
826
|
-
const t = e,
|
|
1007
|
+
setup(e, { emit: n }) {
|
|
1008
|
+
const t = e, r = U(t, "modelValue", n, { passive: !0 }), l = Wt(() => window.document.documentElement);
|
|
827
1009
|
X(() => {
|
|
828
|
-
|
|
1010
|
+
r.value ? l.value = !0 : l.value = !1;
|
|
829
1011
|
});
|
|
830
|
-
function
|
|
831
|
-
|
|
1012
|
+
function a() {
|
|
1013
|
+
r.value && t.autoClose && (r.value = !1);
|
|
832
1014
|
}
|
|
833
|
-
|
|
834
|
-
|
|
1015
|
+
Le("Escape", () => {
|
|
1016
|
+
a();
|
|
835
1017
|
});
|
|
836
|
-
const
|
|
837
|
-
return Y(() =>
|
|
1018
|
+
const i = D(!1);
|
|
1019
|
+
return Y(() => i.value = !0), (s, c) => i.value || s.mountTo === "body" ? (g(), j(Me, {
|
|
838
1020
|
key: 0,
|
|
839
|
-
to:
|
|
1021
|
+
to: s.mountTo
|
|
840
1022
|
}, [
|
|
841
|
-
|
|
1023
|
+
x(me, {
|
|
842
1024
|
"enter-from-class": "opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0",
|
|
843
1025
|
"enter-to-class": "opacity-100 [&_.modal]:scale-100",
|
|
844
1026
|
"leave-from-class": "opacity-100 [&_.modal]:scale-100",
|
|
845
1027
|
"leave-to-class": "opacity-0 [&_.modal]:scale-95"
|
|
846
1028
|
}, {
|
|
847
|
-
default:
|
|
848
|
-
|
|
1029
|
+
default: h(() => [
|
|
1030
|
+
_(r) ? (g(), j(Ie, {
|
|
849
1031
|
key: 0,
|
|
850
|
-
dim:
|
|
851
|
-
blur:
|
|
1032
|
+
dim: s.dim,
|
|
1033
|
+
blur: s.blur
|
|
852
1034
|
}, {
|
|
853
|
-
default:
|
|
1035
|
+
default: h(() => [
|
|
854
1036
|
b("div", {
|
|
855
1037
|
class: "modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",
|
|
856
|
-
style:
|
|
1038
|
+
style: ve({
|
|
857
1039
|
width: t.width,
|
|
858
1040
|
height: t.height
|
|
859
1041
|
})
|
|
860
1042
|
}, [
|
|
861
|
-
b("div",
|
|
862
|
-
b("div",
|
|
863
|
-
w(
|
|
1043
|
+
b("div", nn, [
|
|
1044
|
+
b("div", on, [
|
|
1045
|
+
w(s.$slots, "title", {}, () => [
|
|
864
1046
|
I(H(t.title), 1)
|
|
865
1047
|
])
|
|
866
1048
|
]),
|
|
867
|
-
|
|
1049
|
+
s.closable ? (g(), S("div", {
|
|
868
1050
|
key: 0,
|
|
869
1051
|
class: "h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",
|
|
870
|
-
onClick:
|
|
871
|
-
},
|
|
1052
|
+
onClick: a
|
|
1053
|
+
}, an)) : E("", !0)
|
|
872
1054
|
]),
|
|
873
|
-
b("div",
|
|
874
|
-
w(
|
|
1055
|
+
b("div", ln, [
|
|
1056
|
+
w(s.$slots, "default")
|
|
875
1057
|
]),
|
|
876
|
-
b("div",
|
|
877
|
-
w(
|
|
878
|
-
w(
|
|
879
|
-
b("div",
|
|
880
|
-
|
|
1058
|
+
b("div", sn, [
|
|
1059
|
+
w(s.$slots, "footer", {}, () => [
|
|
1060
|
+
w(s.$slots, "footer", {}, () => [
|
|
1061
|
+
b("div", un, [
|
|
1062
|
+
x(G, {
|
|
881
1063
|
type: "primary",
|
|
882
|
-
onClick:
|
|
1064
|
+
onClick: a
|
|
883
1065
|
}, {
|
|
884
|
-
default:
|
|
1066
|
+
default: h(() => [
|
|
885
1067
|
I(" close ")
|
|
886
1068
|
]),
|
|
887
1069
|
_: 1
|
|
@@ -899,10 +1081,10 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
899
1081
|
})
|
|
900
1082
|
], 8, ["to"])) : E("", !0);
|
|
901
1083
|
}
|
|
902
|
-
}),
|
|
1084
|
+
}), dn = ["type", "placeholder", "disabled"], fn = {
|
|
903
1085
|
key: 3,
|
|
904
1086
|
class: "pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"
|
|
905
|
-
},
|
|
1087
|
+
}, ue = "transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500", pn = /* @__PURE__ */ O({
|
|
906
1088
|
__name: "Input",
|
|
907
1089
|
props: {
|
|
908
1090
|
modelValue: {},
|
|
@@ -918,71 +1100,71 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
918
1100
|
type: { default: "text" }
|
|
919
1101
|
},
|
|
920
1102
|
emits: ["update:modelValue", "updateFocused", "keyTab"],
|
|
921
|
-
setup(e, { emit:
|
|
922
|
-
const t = e,
|
|
923
|
-
onChanged(
|
|
924
|
-
|
|
1103
|
+
setup(e, { emit: n }) {
|
|
1104
|
+
const t = e, u = n, r = U(t, "modelValue", u), l = wt(k(() => t.loading), t.loadingDebounceTime), a = _t(!1, {
|
|
1105
|
+
onChanged(o) {
|
|
1106
|
+
u("updateFocused", o);
|
|
925
1107
|
}
|
|
926
|
-
}),
|
|
927
|
-
let
|
|
1108
|
+
}), i = k(() => t.variant === "flat" || t.variant === "warning" || t.disabled || t.readonly), s = k(() => t.disabled || l.value), c = D();
|
|
1109
|
+
let f = !1;
|
|
928
1110
|
return X(() => {
|
|
929
|
-
l.value &&
|
|
930
|
-
|
|
1111
|
+
l.value && a.value ? f = !0 : !l.value && f && (f = !1, ee(() => {
|
|
1112
|
+
a.value = !0;
|
|
931
1113
|
}));
|
|
932
1114
|
}), Y(() => {
|
|
933
|
-
t.autoFocus && (
|
|
1115
|
+
t.autoFocus && (a.value = !0);
|
|
934
1116
|
}), X(() => {
|
|
935
|
-
var
|
|
936
|
-
|
|
937
|
-
}), (
|
|
938
|
-
class:
|
|
1117
|
+
var o;
|
|
1118
|
+
a.value && ((o = c.value) == null || o.focus());
|
|
1119
|
+
}), (o, d) => (g(), S("div", {
|
|
1120
|
+
class: B(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100", [
|
|
939
1121
|
{
|
|
940
|
-
"border-none bg-transparent group":
|
|
941
|
-
"cursor-not-allowed opacity-50":
|
|
942
|
-
accent:
|
|
943
|
-
focused:
|
|
1122
|
+
"border-none bg-transparent group": o.variant === "flat",
|
|
1123
|
+
"cursor-not-allowed opacity-50": s.value,
|
|
1124
|
+
accent: o.variant === "accent",
|
|
1125
|
+
focused: _(a)
|
|
944
1126
|
},
|
|
945
1127
|
[
|
|
946
|
-
|
|
1128
|
+
o.variant === "warning" ? "border-warning-500 dark:border-warning-300" : "border-primary-100 dark:border-gray-700"
|
|
947
1129
|
]
|
|
948
1130
|
]]),
|
|
949
|
-
onClick:
|
|
950
|
-
|
|
1131
|
+
onClick: d[2] || (d[2] = () => {
|
|
1132
|
+
a.value = !0;
|
|
951
1133
|
})
|
|
952
1134
|
}, [
|
|
953
|
-
|
|
1135
|
+
o.leftIcon ? (g(), S("div", {
|
|
954
1136
|
key: 0,
|
|
955
|
-
class:
|
|
1137
|
+
class: B(ue)
|
|
956
1138
|
}, [
|
|
957
|
-
|
|
1139
|
+
x(ce, { icon: o.leftIcon }, null, 8, ["icon"])
|
|
958
1140
|
])) : E("", !0),
|
|
959
|
-
|
|
1141
|
+
ge(b("input", {
|
|
960
1142
|
ref_key: "inputRef",
|
|
961
1143
|
ref: c,
|
|
962
|
-
"onUpdate:modelValue":
|
|
1144
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => Z(r) ? r.value = m : null),
|
|
963
1145
|
class: "$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",
|
|
964
|
-
type:
|
|
965
|
-
placeholder:
|
|
966
|
-
disabled:
|
|
967
|
-
onBlur:
|
|
968
|
-
}, null, 40,
|
|
969
|
-
[
|
|
1146
|
+
type: o.type,
|
|
1147
|
+
placeholder: o.placeholder,
|
|
1148
|
+
disabled: s.value || o.readonly,
|
|
1149
|
+
onBlur: d[1] || (d[1] = (m) => a.value = !1)
|
|
1150
|
+
}, null, 40, dn), [
|
|
1151
|
+
[Xe, _(r)]
|
|
970
1152
|
]),
|
|
971
|
-
|
|
1153
|
+
_(l) ? (g(), S("div", {
|
|
972
1154
|
key: 1,
|
|
973
|
-
class:
|
|
1155
|
+
class: B(ue)
|
|
974
1156
|
}, [
|
|
975
|
-
|
|
976
|
-
])) :
|
|
1157
|
+
x(je)
|
|
1158
|
+
])) : o.rightIcon ? (g(), S("div", {
|
|
977
1159
|
key: 2,
|
|
978
|
-
class:
|
|
1160
|
+
class: B(ue)
|
|
979
1161
|
}, [
|
|
980
|
-
|
|
1162
|
+
x(ce, { icon: o.rightIcon }, null, 8, ["icon"])
|
|
981
1163
|
])) : E("", !0),
|
|
982
|
-
|
|
1164
|
+
i.value ? E("", !0) : (g(), S("div", fn))
|
|
983
1165
|
], 2));
|
|
984
1166
|
}
|
|
985
|
-
}),
|
|
1167
|
+
}), mn = { class: "$ui-base" }, An = /* @__PURE__ */ O({
|
|
986
1168
|
__name: "FormField",
|
|
987
1169
|
props: {
|
|
988
1170
|
modelValue: {},
|
|
@@ -992,40 +1174,40 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
992
1174
|
placeholder: {}
|
|
993
1175
|
},
|
|
994
1176
|
emits: ["update:modelValue"],
|
|
995
|
-
setup(e, { emit:
|
|
996
|
-
const t = e,
|
|
1177
|
+
setup(e, { emit: n }) {
|
|
1178
|
+
const t = e, r = U(t, "modelValue", n), l = D(!1), a = k(() => t.message && t.message.length && t.showMessage), i = {
|
|
997
1179
|
normal: "color-gray-600 dark:color-gray-400",
|
|
998
1180
|
warning: "color-warning-500 dark:color-warning-200",
|
|
999
1181
|
danger: "color-danger-500 dark:color-danger-200",
|
|
1000
1182
|
success: "color-primary-700 dark:color-primary-500"
|
|
1001
|
-
},
|
|
1183
|
+
}, s = {
|
|
1002
1184
|
warning: "i-bx:bxs-error",
|
|
1003
1185
|
danger: "i-ic-round-error",
|
|
1004
1186
|
success: "i-ep:success-filled"
|
|
1005
1187
|
};
|
|
1006
|
-
return (c,
|
|
1007
|
-
|
|
1008
|
-
modelValue:
|
|
1009
|
-
"onUpdate:modelValue":
|
|
1188
|
+
return (c, f) => (g(), S("div", mn, [
|
|
1189
|
+
x(pn, {
|
|
1190
|
+
modelValue: _(r),
|
|
1191
|
+
"onUpdate:modelValue": f[0] || (f[0] = (o) => Z(r) ? r.value = o : null),
|
|
1010
1192
|
placeholder: c.placeholder,
|
|
1011
|
-
onUpdateFocused:
|
|
1193
|
+
onUpdateFocused: f[1] || (f[1] = (o) => l.value = o)
|
|
1012
1194
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1013
1195
|
b("div", {
|
|
1014
|
-
class:
|
|
1015
|
-
|
|
1196
|
+
class: B(["mt2 $ui-base text-3.5", [
|
|
1197
|
+
i[c.status],
|
|
1016
1198
|
{ "opacity-65": !l.value }
|
|
1017
1199
|
]])
|
|
1018
1200
|
}, [
|
|
1019
|
-
c.status !== "normal" &&
|
|
1201
|
+
c.status !== "normal" && a.value ? (g(), j(ce, {
|
|
1020
1202
|
key: 0,
|
|
1021
1203
|
inline: "",
|
|
1022
|
-
icon:
|
|
1204
|
+
icon: s[c.status]
|
|
1023
1205
|
}, null, 8, ["icon"])) : E("", !0),
|
|
1024
|
-
I(" " + H(
|
|
1206
|
+
I(" " + H(a.value ? c.message : ""), 1)
|
|
1025
1207
|
], 2)
|
|
1026
1208
|
]));
|
|
1027
1209
|
}
|
|
1028
|
-
}),
|
|
1210
|
+
}), vn = { class: "overflow-hidden rounded-lg shadow-lg" }, gn = /* @__PURE__ */ b("div", { class: "p2 opacity-40" }, " Empty... ", -1), yn = /* @__PURE__ */ O({
|
|
1029
1211
|
__name: "Dropdown",
|
|
1030
1212
|
props: {
|
|
1031
1213
|
label: {},
|
|
@@ -1040,8 +1222,8 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1040
1222
|
},
|
|
1041
1223
|
emits: ["update:visible"],
|
|
1042
1224
|
setup(e) {
|
|
1043
|
-
const
|
|
1044
|
-
return
|
|
1225
|
+
const n = e;
|
|
1226
|
+
return Qe("$ui-dropdown-disabled", k(() => n.disabled)), (t, u) => (g(), j(_(He), {
|
|
1045
1227
|
disabled: t.disabled,
|
|
1046
1228
|
class: "inline-block w-auto",
|
|
1047
1229
|
shown: t.shown,
|
|
@@ -1049,35 +1231,35 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1049
1231
|
distance: t.distance + 6,
|
|
1050
1232
|
placement: t.placement,
|
|
1051
1233
|
skidding: t.skidding,
|
|
1052
|
-
"onUpdate:shown":
|
|
1053
|
-
onClick:
|
|
1054
|
-
|
|
1234
|
+
"onUpdate:shown": u[0] || (u[0] = (r) => t.$emit("update:visible", r)),
|
|
1235
|
+
onClick: u[1] || (u[1] = (r) => {
|
|
1236
|
+
r.stopPropagation();
|
|
1055
1237
|
})
|
|
1056
1238
|
}, {
|
|
1057
|
-
popper:
|
|
1058
|
-
b("div",
|
|
1059
|
-
w(t.$slots, "popper",
|
|
1060
|
-
|
|
1239
|
+
popper: h(({ hide: r }) => [
|
|
1240
|
+
b("div", vn, [
|
|
1241
|
+
w(t.$slots, "popper", fe(pe({ hide: r })), () => [
|
|
1242
|
+
gn
|
|
1061
1243
|
])
|
|
1062
1244
|
])
|
|
1063
1245
|
]),
|
|
1064
|
-
default:
|
|
1246
|
+
default: h(() => [
|
|
1065
1247
|
w(t.$slots, "default", {}, () => [
|
|
1066
|
-
|
|
1248
|
+
x(G, Q({
|
|
1067
1249
|
...t.buttonProps,
|
|
1068
1250
|
disabled: t.disabled
|
|
1069
|
-
}, { class: t.buttonClass }),
|
|
1070
|
-
icon:
|
|
1251
|
+
}, { class: t.buttonClass }), Te({
|
|
1252
|
+
icon: h(() => [
|
|
1071
1253
|
w(t.$slots, "button-icon")
|
|
1072
1254
|
]),
|
|
1073
|
-
"icon-right":
|
|
1255
|
+
"icon-right": h(() => [
|
|
1074
1256
|
w(t.$slots, "button-icon-right")
|
|
1075
1257
|
]),
|
|
1076
1258
|
_: 2
|
|
1077
1259
|
}, [
|
|
1078
1260
|
t.label ? {
|
|
1079
1261
|
name: "default",
|
|
1080
|
-
fn:
|
|
1262
|
+
fn: h(() => [
|
|
1081
1263
|
I(H(t.label), 1)
|
|
1082
1264
|
]),
|
|
1083
1265
|
key: "0"
|
|
@@ -1088,7 +1270,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1088
1270
|
_: 3
|
|
1089
1271
|
}, 8, ["disabled", "shown", "triggers", "distance", "placement", "skidding"]));
|
|
1090
1272
|
}
|
|
1091
|
-
}),
|
|
1273
|
+
}), Dn = /* @__PURE__ */ O({
|
|
1092
1274
|
__name: "DropdownButton",
|
|
1093
1275
|
props: {
|
|
1094
1276
|
type: {},
|
|
@@ -1101,26 +1283,26 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1101
1283
|
keepOpen: { type: Boolean, default: !1 }
|
|
1102
1284
|
},
|
|
1103
1285
|
setup(e) {
|
|
1104
|
-
const
|
|
1105
|
-
return (
|
|
1106
|
-
...
|
|
1286
|
+
const n = e, t = Ze("$ui-dropdown-disabled", void 0);
|
|
1287
|
+
return (u, r) => ge((g(), j(G, Q({
|
|
1288
|
+
...n,
|
|
1107
1289
|
round: !1
|
|
1108
1290
|
}, {
|
|
1109
|
-
disabled:
|
|
1291
|
+
disabled: _(t),
|
|
1110
1292
|
class: "w-full justify-start transition-colors not-action:bg-transparent!"
|
|
1111
1293
|
}), {
|
|
1112
|
-
icon:
|
|
1113
|
-
w(
|
|
1294
|
+
icon: h(() => [
|
|
1295
|
+
w(u.$slots, "icon")
|
|
1114
1296
|
]),
|
|
1115
|
-
default:
|
|
1116
|
-
w(
|
|
1297
|
+
default: h(() => [
|
|
1298
|
+
w(u.$slots, "default")
|
|
1117
1299
|
]),
|
|
1118
1300
|
_: 3
|
|
1119
1301
|
}, 16, ["disabled"])), [
|
|
1120
|
-
[
|
|
1302
|
+
[_(Ve)]
|
|
1121
1303
|
]);
|
|
1122
1304
|
}
|
|
1123
|
-
}),
|
|
1305
|
+
}), bn = { class: "$ui-fec gap2.5" }, On = /* @__PURE__ */ O({
|
|
1124
1306
|
__name: "Confirm",
|
|
1125
1307
|
props: {
|
|
1126
1308
|
modelValue: { type: Boolean },
|
|
@@ -1134,57 +1316,57 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1134
1316
|
autoClose: { type: Boolean, default: !0 }
|
|
1135
1317
|
},
|
|
1136
1318
|
emits: ["update:modelValue", "confirm", "cancel", "close"],
|
|
1137
|
-
setup(e, { emit:
|
|
1138
|
-
const t = e,
|
|
1319
|
+
setup(e, { emit: n }) {
|
|
1320
|
+
const t = e, u = n, r = U(t, "modelValue", u);
|
|
1139
1321
|
X(() => {
|
|
1140
|
-
|
|
1322
|
+
r.value || u("close");
|
|
1141
1323
|
});
|
|
1142
|
-
function l(
|
|
1143
|
-
(t.autoClose ||
|
|
1324
|
+
function l(a = !1) {
|
|
1325
|
+
(t.autoClose || a) && (r.value = !1);
|
|
1144
1326
|
}
|
|
1145
|
-
return (
|
|
1146
|
-
modelValue:
|
|
1147
|
-
"onUpdate:modelValue":
|
|
1148
|
-
width:
|
|
1149
|
-
height:
|
|
1150
|
-
title:
|
|
1327
|
+
return (a, i) => (g(), j(cn, {
|
|
1328
|
+
modelValue: _(r),
|
|
1329
|
+
"onUpdate:modelValue": i[2] || (i[2] = (s) => Z(r) ? r.value = s : null),
|
|
1330
|
+
width: a.width,
|
|
1331
|
+
height: a.height,
|
|
1332
|
+
title: a.title,
|
|
1151
1333
|
closable: !1
|
|
1152
1334
|
}, {
|
|
1153
|
-
footer:
|
|
1154
|
-
b("div",
|
|
1155
|
-
|
|
1156
|
-
onClick:
|
|
1157
|
-
|
|
1335
|
+
footer: h(() => [
|
|
1336
|
+
b("div", bn, [
|
|
1337
|
+
x(G, {
|
|
1338
|
+
onClick: i[0] || (i[0] = () => {
|
|
1339
|
+
u("cancel"), l(!0);
|
|
1158
1340
|
})
|
|
1159
1341
|
}, {
|
|
1160
|
-
default:
|
|
1161
|
-
I(H(
|
|
1342
|
+
default: h(() => [
|
|
1343
|
+
I(H(a.cancelText), 1)
|
|
1162
1344
|
]),
|
|
1163
1345
|
_: 1
|
|
1164
1346
|
}),
|
|
1165
|
-
|
|
1166
|
-
loading:
|
|
1347
|
+
x(G, {
|
|
1348
|
+
loading: a.loading,
|
|
1167
1349
|
type: "primary",
|
|
1168
|
-
onClick:
|
|
1169
|
-
|
|
1350
|
+
onClick: i[1] || (i[1] = () => {
|
|
1351
|
+
u("confirm"), l();
|
|
1170
1352
|
})
|
|
1171
1353
|
}, {
|
|
1172
|
-
default:
|
|
1173
|
-
I(H(
|
|
1354
|
+
default: h(() => [
|
|
1355
|
+
I(H(a.confirmText), 1)
|
|
1174
1356
|
]),
|
|
1175
1357
|
_: 1
|
|
1176
1358
|
}, 8, ["loading"])
|
|
1177
1359
|
])
|
|
1178
1360
|
]),
|
|
1179
|
-
default:
|
|
1180
|
-
w(
|
|
1181
|
-
I(H(
|
|
1361
|
+
default: h(() => [
|
|
1362
|
+
w(a.$slots, "default", { class: "h-auto w-auto" }, () => [
|
|
1363
|
+
I(H(a.content), 1)
|
|
1182
1364
|
])
|
|
1183
1365
|
]),
|
|
1184
1366
|
_: 3
|
|
1185
1367
|
}, 8, ["modelValue", "width", "height", "title"]));
|
|
1186
1368
|
}
|
|
1187
|
-
}),
|
|
1369
|
+
}), hn = { class: "m1 min-w-35 w-auto flex flex-col" }, wn = ["onClick"], _n = /* @__PURE__ */ b("div", { class: "i-mdi-chevron-down" }, null, -1), Mn = /* @__PURE__ */ O({
|
|
1188
1370
|
__name: "Select",
|
|
1189
1371
|
props: {
|
|
1190
1372
|
modelValue: {},
|
|
@@ -1197,119 +1379,119 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1197
1379
|
buttonProps: { default: () => ({}) }
|
|
1198
1380
|
},
|
|
1199
1381
|
emits: ["update:modelValue"],
|
|
1200
|
-
setup(e, { emit:
|
|
1201
|
-
const t = e,
|
|
1382
|
+
setup(e, { emit: n }) {
|
|
1383
|
+
const t = e, u = n, r = Be(), l = k({
|
|
1202
1384
|
get: () => t.modelValue,
|
|
1203
|
-
set: (
|
|
1204
|
-
}),
|
|
1205
|
-
const
|
|
1206
|
-
return
|
|
1385
|
+
set: (s) => u("update:modelValue", s)
|
|
1386
|
+
}), a = k(() => {
|
|
1387
|
+
const s = t.options.find((c) => c.value === l.value);
|
|
1388
|
+
return s != null && s.label ? t.labelRenderer(s.label) : t.placeholder;
|
|
1207
1389
|
});
|
|
1208
|
-
function s
|
|
1209
|
-
t.multiple ? l.value = l.value.includes(
|
|
1390
|
+
function i(s) {
|
|
1391
|
+
t.multiple ? l.value = l.value.includes(s.value) ? l.value.filter((c) => c !== s.value) : [...l.value, s.value] : l.value = s.value;
|
|
1210
1392
|
}
|
|
1211
|
-
return (
|
|
1212
|
-
buttonProps:
|
|
1213
|
-
disabled:
|
|
1214
|
-
}),
|
|
1215
|
-
popper:
|
|
1216
|
-
b("div",
|
|
1217
|
-
|
|
1218
|
-
key:
|
|
1393
|
+
return (s, c) => (g(), j(yn, Q({ label: a.value }, {
|
|
1394
|
+
buttonProps: s.buttonProps,
|
|
1395
|
+
disabled: s.disabled
|
|
1396
|
+
}), Te({
|
|
1397
|
+
popper: h(() => [
|
|
1398
|
+
b("div", hn, [
|
|
1399
|
+
_(r).item ? (g(!0), S(we, { key: 0 }, _e(s.options, (f) => (g(), S("div", {
|
|
1400
|
+
key: f.value,
|
|
1219
1401
|
class: "cursor-pointer",
|
|
1220
|
-
onClick: (
|
|
1402
|
+
onClick: (o) => i(f)
|
|
1221
1403
|
}, [
|
|
1222
|
-
w(
|
|
1223
|
-
item:
|
|
1224
|
-
active:
|
|
1225
|
-
disabled:
|
|
1404
|
+
w(s.$slots, "item", fe(pe({
|
|
1405
|
+
item: f,
|
|
1406
|
+
active: s.multiple ? l.value.includes(f.value) : f.value === l.value,
|
|
1407
|
+
disabled: s.disabled
|
|
1226
1408
|
})))
|
|
1227
|
-
], 8,
|
|
1228
|
-
key:
|
|
1229
|
-
disabled:
|
|
1409
|
+
], 8, wn))), 128)) : (g(!0), S(we, { key: 1 }, _e(s.options, (f) => ge((g(), j(G, {
|
|
1410
|
+
key: f.value,
|
|
1411
|
+
disabled: s.disabled,
|
|
1230
1412
|
round: "normal",
|
|
1231
|
-
class:
|
|
1232
|
-
active:
|
|
1413
|
+
class: B(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!", {
|
|
1414
|
+
active: s.multiple ? l.value.includes(f.value) : f.value === l.value
|
|
1233
1415
|
}]),
|
|
1234
|
-
onClick: (
|
|
1416
|
+
onClick: (o) => i(f)
|
|
1235
1417
|
}, {
|
|
1236
|
-
default:
|
|
1237
|
-
I(H(
|
|
1418
|
+
default: h(() => [
|
|
1419
|
+
I(H(f.label), 1)
|
|
1238
1420
|
]),
|
|
1239
1421
|
_: 2
|
|
1240
1422
|
}, 1032, ["disabled", "class", "onClick"])), [
|
|
1241
|
-
[
|
|
1423
|
+
[_(Ve), s.autoClose]
|
|
1242
1424
|
])), 128))
|
|
1243
1425
|
])
|
|
1244
1426
|
]),
|
|
1245
|
-
"button-icon-right":
|
|
1246
|
-
|
|
1427
|
+
"button-icon-right": h(() => [
|
|
1428
|
+
_n
|
|
1247
1429
|
]),
|
|
1248
1430
|
_: 2
|
|
1249
1431
|
}, [
|
|
1250
|
-
|
|
1432
|
+
_(r).button ? {
|
|
1251
1433
|
name: "default",
|
|
1252
|
-
fn:
|
|
1253
|
-
w(
|
|
1434
|
+
fn: h(() => [
|
|
1435
|
+
w(s.$slots, "button")
|
|
1254
1436
|
]),
|
|
1255
1437
|
key: "0"
|
|
1256
1438
|
} : void 0
|
|
1257
1439
|
]), 1040, ["label"]));
|
|
1258
1440
|
}
|
|
1259
|
-
}),
|
|
1441
|
+
}), Tn = /* @__PURE__ */ O({
|
|
1260
1442
|
__name: "Switch",
|
|
1261
1443
|
props: {
|
|
1262
1444
|
modelValue: { type: Boolean },
|
|
1263
1445
|
disabled: { type: Boolean }
|
|
1264
1446
|
},
|
|
1265
1447
|
emits: ["update:modelValue"],
|
|
1266
|
-
setup(e, { emit:
|
|
1267
|
-
const
|
|
1268
|
-
return (
|
|
1269
|
-
class:
|
|
1270
|
-
|
|
1448
|
+
setup(e, { emit: n }) {
|
|
1449
|
+
const r = U(e, "modelValue", n), l = St(r);
|
|
1450
|
+
return (a, i) => (g(), S("div", {
|
|
1451
|
+
class: B([[
|
|
1452
|
+
a.disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
1271
1453
|
], "$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),
|
|
1272
1454
|
role: "checkbox",
|
|
1273
|
-
onClick:
|
|
1455
|
+
onClick: i[0] || (i[0] = (s) => !a.disabled && _(l)())
|
|
1274
1456
|
}, [
|
|
1275
|
-
w(
|
|
1457
|
+
w(a.$slots, "default"),
|
|
1276
1458
|
b("div", {
|
|
1277
|
-
class:
|
|
1278
|
-
selected:
|
|
1459
|
+
class: B([{
|
|
1460
|
+
selected: _(r)
|
|
1279
1461
|
}, "group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])
|
|
1280
1462
|
}, [
|
|
1281
1463
|
b("div", {
|
|
1282
|
-
class:
|
|
1283
|
-
{ "group-hover:opacity-75 group-active:scale-85": !
|
|
1284
|
-
{ "opacity-65":
|
|
1464
|
+
class: B(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white", [
|
|
1465
|
+
{ "group-hover:opacity-75 group-active:scale-85": !a.disabled },
|
|
1466
|
+
{ "opacity-65": a.disabled }
|
|
1285
1467
|
]])
|
|
1286
1468
|
}, null, 2)
|
|
1287
1469
|
], 2)
|
|
1288
1470
|
], 2));
|
|
1289
1471
|
}
|
|
1290
|
-
}),
|
|
1472
|
+
}), jn = /* @__PURE__ */ O({
|
|
1291
1473
|
__name: "Checkbox",
|
|
1292
1474
|
props: {
|
|
1293
1475
|
modelValue: { type: Boolean },
|
|
1294
1476
|
variant: { default: "normal" }
|
|
1295
1477
|
},
|
|
1296
1478
|
emits: ["update:modelValue"],
|
|
1297
|
-
setup(e, { emit:
|
|
1298
|
-
const
|
|
1299
|
-
return (l,
|
|
1300
|
-
class:
|
|
1301
|
-
|
|
1479
|
+
setup(e, { emit: n }) {
|
|
1480
|
+
const r = U(e, "modelValue", n);
|
|
1481
|
+
return (l, a) => (g(), S("div", {
|
|
1482
|
+
class: B(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out", [
|
|
1483
|
+
_(r) ? l.variant === "normal" ? "bg-primary-500 border-primary-200 dark:border-primary-100" : "bg-accent-500 border-accent-200 dark:border-accent-100" : ""
|
|
1302
1484
|
]]),
|
|
1303
|
-
onClick:
|
|
1485
|
+
onClick: a[0] || (a[0] = (i) => r.value = !_(r))
|
|
1304
1486
|
}, [
|
|
1305
1487
|
b("div", {
|
|
1306
|
-
class:
|
|
1307
|
-
|
|
1488
|
+
class: B([[
|
|
1489
|
+
_(r) ? "opacity-100" : "opacity-0"
|
|
1308
1490
|
], "h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])
|
|
1309
1491
|
}, null, 2)
|
|
1310
1492
|
], 2));
|
|
1311
1493
|
}
|
|
1312
|
-
}),
|
|
1494
|
+
}), Pn = /* @__PURE__ */ O({
|
|
1313
1495
|
__name: "Drawer",
|
|
1314
1496
|
props: {
|
|
1315
1497
|
modelValue: { type: Boolean },
|
|
@@ -1325,8 +1507,8 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1325
1507
|
blur: { type: Boolean }
|
|
1326
1508
|
},
|
|
1327
1509
|
emits: ["update:modelValue", "close"],
|
|
1328
|
-
setup(e, { emit:
|
|
1329
|
-
const t = e,
|
|
1510
|
+
setup(e, { emit: n }) {
|
|
1511
|
+
const t = e, u = n, { height: r } = xt(() => typeof t.top == "string" ? document.querySelector(t.top) : t.top, void 0, { box: "border-box" }), l = U(t, "modelValue", u), a = {
|
|
1330
1512
|
left: {
|
|
1331
1513
|
class: "left-0 h-full b-r",
|
|
1332
1514
|
transition: "[&_.drawer]:translate-x--100%"
|
|
@@ -1344,42 +1526,42 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1344
1526
|
transition: "[&_.drawer]:translate-y-100%"
|
|
1345
1527
|
}
|
|
1346
1528
|
};
|
|
1347
|
-
|
|
1529
|
+
Le("Escape", () => {
|
|
1348
1530
|
t.closable && (l.value = !1);
|
|
1349
1531
|
});
|
|
1350
|
-
const
|
|
1351
|
-
return Y(() =>
|
|
1532
|
+
const i = k(() => a[t.placement]), s = D(!1);
|
|
1533
|
+
return Y(() => s.value = !0), (c, f) => s.value || c.mountTo === "body" ? (g(), j(Me, {
|
|
1352
1534
|
key: 0,
|
|
1353
1535
|
to: c.mountTo
|
|
1354
1536
|
}, [
|
|
1355
|
-
|
|
1356
|
-
"enter-from-class": `${
|
|
1357
|
-
"leave-to-class": `${
|
|
1537
|
+
x(me, {
|
|
1538
|
+
"enter-from-class": `${i.value.transition}`,
|
|
1539
|
+
"leave-to-class": `${i.value.transition}`
|
|
1358
1540
|
}, {
|
|
1359
|
-
default:
|
|
1360
|
-
|
|
1541
|
+
default: h(() => [
|
|
1542
|
+
_(l) ? (g(), j(Ie, {
|
|
1361
1543
|
key: 0,
|
|
1362
|
-
class:
|
|
1544
|
+
class: B({
|
|
1363
1545
|
"pointer-events-none": c.permanent
|
|
1364
1546
|
}),
|
|
1365
1547
|
dim: c.dim,
|
|
1366
1548
|
blur: c.blur,
|
|
1367
|
-
onClick:
|
|
1549
|
+
onClick: f[2] || (f[2] = (o) => c.closeOutside && c.closable && (l.value = !1))
|
|
1368
1550
|
}, {
|
|
1369
|
-
default:
|
|
1551
|
+
default: h(() => [
|
|
1370
1552
|
b("div", {
|
|
1371
|
-
class:
|
|
1372
|
-
style:
|
|
1373
|
-
top: c.placement === "bottom" ? "auto" : `${
|
|
1374
|
-
height: ["top", "bottom"].includes(c.placement) ? "auto" : `calc(100% - ${
|
|
1553
|
+
class: B([[i.value.class, c.contentClass ?? "", c.contentBlur ? "$ui-glass-effect" : "$ui-bg-base"], "drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),
|
|
1554
|
+
style: ve({
|
|
1555
|
+
top: c.placement === "bottom" ? "auto" : `${_(r)}px`,
|
|
1556
|
+
height: ["top", "bottom"].includes(c.placement) ? "auto" : `calc(100% - ${_(r)}px)`
|
|
1375
1557
|
}),
|
|
1376
|
-
onClick:
|
|
1558
|
+
onClick: f[1] || (f[1] = et(() => {
|
|
1377
1559
|
}, ["stop"]))
|
|
1378
1560
|
}, [
|
|
1379
|
-
c.closable ? (
|
|
1561
|
+
c.closable ? (g(), S("div", {
|
|
1380
1562
|
key: 0,
|
|
1381
1563
|
class: "i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",
|
|
1382
|
-
onClick:
|
|
1564
|
+
onClick: f[0] || (f[0] = (o) => l.value = !1)
|
|
1383
1565
|
})) : E("", !0),
|
|
1384
1566
|
w(c.$slots, "default")
|
|
1385
1567
|
], 6)
|
|
@@ -1391,7 +1573,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1391
1573
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1392
1574
|
], 8, ["to"])) : E("", !0);
|
|
1393
1575
|
}
|
|
1394
|
-
}),
|
|
1576
|
+
}), $n = /* @__PURE__ */ O({
|
|
1395
1577
|
__name: "Notification",
|
|
1396
1578
|
props: {
|
|
1397
1579
|
message: {},
|
|
@@ -1402,50 +1584,50 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1402
1584
|
onClose: {}
|
|
1403
1585
|
},
|
|
1404
1586
|
setup(e) {
|
|
1405
|
-
const
|
|
1587
|
+
const n = e, t = {
|
|
1406
1588
|
success: "i-carbon-checkmark",
|
|
1407
1589
|
info: "i-material-symbols-light-info",
|
|
1408
1590
|
warning: "i-carbon-warning",
|
|
1409
1591
|
error: "i-carbon-close"
|
|
1410
|
-
},
|
|
1592
|
+
}, u = {
|
|
1411
1593
|
success: "text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",
|
|
1412
1594
|
info: "text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",
|
|
1413
1595
|
warning: "text-amber-4 border-amber-2 dark:border-amber-4",
|
|
1414
1596
|
error: "text-red-4 border-red-2 dark:border-red-4"
|
|
1415
|
-
},
|
|
1597
|
+
}, r = D(!1);
|
|
1416
1598
|
Y(() => {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
},
|
|
1599
|
+
r.value = !0, setTimeout(() => {
|
|
1600
|
+
r.value = !1;
|
|
1601
|
+
}, n.duration);
|
|
1420
1602
|
});
|
|
1421
|
-
const l =
|
|
1422
|
-
return (
|
|
1423
|
-
class:
|
|
1424
|
-
{ "top-0":
|
|
1425
|
-
{ "bottom-0":
|
|
1603
|
+
const l = k(() => n.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
|
|
1604
|
+
return (a, i) => (g(), S("div", {
|
|
1605
|
+
class: B(["fixed left-0 right-0 $ui-z-max-override text-center", [
|
|
1606
|
+
{ "top-0": a.placement.startsWith("top") },
|
|
1607
|
+
{ "bottom-0": a.placement.startsWith("bottom") }
|
|
1426
1608
|
]])
|
|
1427
1609
|
}, [
|
|
1428
|
-
|
|
1610
|
+
x(me, {
|
|
1429
1611
|
"enter-from-class": l.value,
|
|
1430
1612
|
"leave-to-class": l.value,
|
|
1431
|
-
onAfterLeave:
|
|
1432
|
-
var
|
|
1433
|
-
|
|
1613
|
+
onAfterLeave: i[0] || (i[0] = () => {
|
|
1614
|
+
var s;
|
|
1615
|
+
r.value || (s = a.onClose) == null || s.call(a);
|
|
1434
1616
|
})
|
|
1435
1617
|
}, {
|
|
1436
|
-
default:
|
|
1437
|
-
|
|
1618
|
+
default: h(() => [
|
|
1619
|
+
r.value ? (g(), S("div", {
|
|
1438
1620
|
key: 0,
|
|
1439
1621
|
class: "flex transition-all duration-300",
|
|
1440
|
-
style:
|
|
1622
|
+
style: ve({ justifyContent: a.placement.includes("right") ? "right" : a.placement.includes("left") ? "left" : "center" })
|
|
1441
1623
|
}, [
|
|
1442
1624
|
b("div", {
|
|
1443
|
-
class:
|
|
1625
|
+
class: B(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [a.classes, u[a.type]]])
|
|
1444
1626
|
}, [
|
|
1445
1627
|
b("div", {
|
|
1446
|
-
class:
|
|
1628
|
+
class: B(t[a.type])
|
|
1447
1629
|
}, null, 2),
|
|
1448
|
-
b("div", null, H(
|
|
1630
|
+
b("div", null, H(a.message), 1)
|
|
1449
1631
|
], 2)
|
|
1450
1632
|
], 4)) : E("", !0)
|
|
1451
1633
|
]),
|
|
@@ -1453,7 +1635,7 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1453
1635
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
1454
1636
|
], 2));
|
|
1455
1637
|
}
|
|
1456
|
-
}),
|
|
1638
|
+
}), En = /* @__PURE__ */ O({
|
|
1457
1639
|
__name: "Tooltip",
|
|
1458
1640
|
props: {
|
|
1459
1641
|
trigger: {},
|
|
@@ -1464,53 +1646,53 @@ const co = /* @__PURE__ */ ge(Ft, [["render", Rt]]), Re = /* @__PURE__ */ T({
|
|
|
1464
1646
|
shown: { type: Boolean }
|
|
1465
1647
|
},
|
|
1466
1648
|
setup(e) {
|
|
1467
|
-
return (
|
|
1468
|
-
disabled:
|
|
1469
|
-
placement:
|
|
1470
|
-
},
|
|
1471
|
-
popper:
|
|
1472
|
-
w(
|
|
1649
|
+
return (n, t) => (g(), j(_(Je), Q({
|
|
1650
|
+
disabled: n.disabled,
|
|
1651
|
+
placement: n.placement
|
|
1652
|
+
}, n.$attrs), {
|
|
1653
|
+
popper: h(() => [
|
|
1654
|
+
w(n.$slots, "popper")
|
|
1473
1655
|
]),
|
|
1474
|
-
default:
|
|
1475
|
-
w(
|
|
1656
|
+
default: h(() => [
|
|
1657
|
+
w(n.$slots, "default")
|
|
1476
1658
|
]),
|
|
1477
1659
|
_: 3
|
|
1478
1660
|
}, 16, ["disabled", "placement"]));
|
|
1479
1661
|
}
|
|
1480
1662
|
});
|
|
1481
|
-
function
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1663
|
+
function Nn(e) {
|
|
1664
|
+
const n = document.createElement("div");
|
|
1665
|
+
n.classList.add("$ui-z-max-override", "fixed"), document.body.appendChild(n);
|
|
1484
1666
|
const t = e.onClose;
|
|
1485
|
-
function
|
|
1486
|
-
|
|
1667
|
+
function u() {
|
|
1668
|
+
$e(null, n);
|
|
1487
1669
|
}
|
|
1488
1670
|
e.onClose = () => {
|
|
1489
|
-
|
|
1671
|
+
u(), t == null || t(), document.body.removeChild(n);
|
|
1490
1672
|
};
|
|
1491
|
-
const
|
|
1492
|
-
|
|
1673
|
+
const r = tt($n, e);
|
|
1674
|
+
$e(r, n);
|
|
1493
1675
|
}
|
|
1494
1676
|
export {
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1677
|
+
Wn as VTooltip,
|
|
1678
|
+
Cn as VueBadge,
|
|
1679
|
+
G as VueButton,
|
|
1680
|
+
Bn as VueCard,
|
|
1681
|
+
jn as VueCheckbox,
|
|
1682
|
+
On as VueConfirm,
|
|
1683
|
+
Vn as VueDarkToggle,
|
|
1684
|
+
cn as VueDialog,
|
|
1685
|
+
Pn as VueDrawer,
|
|
1686
|
+
yn as VueDropdown,
|
|
1687
|
+
Dn as VueDropdownButton,
|
|
1688
|
+
An as VueFormField,
|
|
1689
|
+
ce as VueIcon,
|
|
1690
|
+
pn as VueInput,
|
|
1691
|
+
je as VueLoadingIndicator,
|
|
1692
|
+
$n as VueNotification,
|
|
1693
|
+
Ie as VueOverlay,
|
|
1694
|
+
Mn as VueSelect,
|
|
1695
|
+
Tn as VueSwitch,
|
|
1696
|
+
En as VueTooltip,
|
|
1697
|
+
Nn as showVueNotification
|
|
1516
1698
|
};
|