@vue/devtools-ui 7.3.5 → 7.3.7
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 +2 -1
- package/dist/index.js +402 -321
- package/dist/style.css +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +1 -1
- package/dist/types/src/components/CodeBlock.d.ts +37 -0
- package/dist/types/src/components/DarkToggle.d.ts +1 -1
- package/dist/types/src/components/index.d.ts +4 -1
- package/dist/types/src/composables/shiki.d.ts +10 -0
- package/dist/uno.css +1 -0
- package/package.json +7 -5
- package/dist/vendor-BtJ-3rRj.cjs +0 -1
- package/dist/vendor-XKDuzWDy.js +0 -731
package/dist/index.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
// @unocss-include
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { Dropdown as
|
|
5
|
-
import { vTooltip as
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { Dropdown as ae, VClosePopper as Y, Tooltip as re } from "floating-vue";
|
|
5
|
+
import { vTooltip as Pt } from "floating-vue";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { openBlock as d, createElementBlock as f, createElementVNode as m, defineComponent as y, useAttrs as ne, computed as k, useSlots as q, createBlock as w, resolveDynamicComponent as X, mergeProps as D, withCtx as g, renderSlot as v, unref as b, createCommentVNode as $, normalizeClass as h, ref as S, onMounted as E, createVNode as _, Transition as H, normalizeStyle as N, toDisplayString as V, h as le, render as U, normalizeProps as G, guardReactiveProps as J, nextTick as W, watchEffect as P, Teleport as Q, createTextVNode as B, withDirectives as A, isRef as O, vModelDynamic as se, provide as ie, createSlots as Z, inject as de, Fragment as z, renderList as F, withModifiers as ue, shallowRef as ce } from "vue";
|
|
8
|
+
import { useColorMode as pe, useVModel as T, useScrollLock as me, onKeyStroke as ee, refDebounced as fe, refWithControl as ge, useToggle as ve, useElementSize as be } from "@vueuse/core";
|
|
9
|
+
import { i as he } from "./ic-icons-data-stfsGcEC.js";
|
|
10
|
+
import { createHighlighterCore as ye } from "shiki/core";
|
|
11
|
+
import ke from "shiki/wasm";
|
|
12
|
+
const j = (n, o) => {
|
|
9
13
|
const e = n.__vccOpts || n;
|
|
10
|
-
for (const [
|
|
11
|
-
e[
|
|
14
|
+
for (const [s, t] of o)
|
|
15
|
+
e[s] = t;
|
|
12
16
|
return e;
|
|
13
|
-
},
|
|
17
|
+
}, we = {}, $e = { class: "h-3 w-3 $ui-inline-fcc" }, _e = /* @__PURE__ */ m("svg", {
|
|
14
18
|
class: "animate-spin",
|
|
15
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16
20
|
fill: "none",
|
|
@@ -29,13 +33,13 @@ const A = (n, a) => {
|
|
|
29
33
|
fill: "currentColor",
|
|
30
34
|
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"
|
|
31
35
|
})
|
|
32
|
-
], -1),
|
|
33
|
-
|
|
36
|
+
], -1), Ce = [
|
|
37
|
+
_e
|
|
34
38
|
];
|
|
35
|
-
function
|
|
36
|
-
return d(),
|
|
39
|
+
function Ve(n, o) {
|
|
40
|
+
return d(), f("div", $e, Ce);
|
|
37
41
|
}
|
|
38
|
-
const
|
|
42
|
+
const te = /* @__PURE__ */ j(we, [["render", Ve]]), Be = { key: 2 }, M = /* @__PURE__ */ y({
|
|
39
43
|
inheritAttrs: !1,
|
|
40
44
|
__name: "Button",
|
|
41
45
|
props: {
|
|
@@ -48,16 +52,16 @@ const Z = /* @__PURE__ */ A(ve, [["render", ke]]), we = { key: 2 }, M = /* @__PU
|
|
|
48
52
|
outlined: { type: Boolean, default: !1 }
|
|
49
53
|
},
|
|
50
54
|
emits: ["click"],
|
|
51
|
-
setup(n, { emit:
|
|
52
|
-
const e = n,
|
|
53
|
-
function
|
|
55
|
+
setup(n, { emit: o }) {
|
|
56
|
+
const e = n, s = o, t = ne(), l = k(() => t.to ? "router-link" : t.href ? "a" : "button"), r = k(() => e.loading || e.disabled);
|
|
57
|
+
function i(u) {
|
|
54
58
|
if (r.value) {
|
|
55
|
-
|
|
59
|
+
u.preventDefault(), u.stopPropagation(), u.stopImmediatePropagation();
|
|
56
60
|
return;
|
|
57
61
|
}
|
|
58
|
-
|
|
62
|
+
s("click", u);
|
|
59
63
|
}
|
|
60
|
-
const
|
|
64
|
+
const a = {
|
|
61
65
|
common: {
|
|
62
66
|
default: "active:bg-primary-100-darker dark:active:bg-gray-800-darker",
|
|
63
67
|
primary: "active:bg-primary-500-darker",
|
|
@@ -94,12 +98,12 @@ const Z = /* @__PURE__ */ A(ve, [["render", ke]]), we = { key: 2 }, M = /* @__PU
|
|
|
94
98
|
info: "hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",
|
|
95
99
|
success: "hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"
|
|
96
100
|
}
|
|
97
|
-
}, c =
|
|
98
|
-
return (
|
|
101
|
+
}, c = q(), p = k(() => e.flat ? a.flat[e.type] : e.outlined ? a.outlined[e.type] : a.normal[e.type]);
|
|
102
|
+
return (u, C) => (d(), w(X(l.value), D(u.$attrs, {
|
|
99
103
|
role: "button",
|
|
100
104
|
"aria-disabled": r.value,
|
|
101
105
|
class: ["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition", [
|
|
102
|
-
[
|
|
106
|
+
[a.common[e.type]],
|
|
103
107
|
{
|
|
104
108
|
"rounded-full": e.round === "full",
|
|
105
109
|
"$ui-base-br": e.round === "normal",
|
|
@@ -107,36 +111,36 @@ const Z = /* @__PURE__ */ A(ve, [["render", ke]]), we = { key: 2 }, M = /* @__PU
|
|
|
107
111
|
"bg-transparent": e.flat || e.outlined
|
|
108
112
|
},
|
|
109
113
|
[
|
|
110
|
-
|
|
111
|
-
|
|
114
|
+
u.outlined ? "b-1 $ui-border-base active:ring-3 shadow-sm" : "border-none",
|
|
115
|
+
u.size === "mini" ? "px1 text-3 h5.5" : "px3.5 text-3.5 h8",
|
|
112
116
|
p.value
|
|
113
117
|
]
|
|
114
118
|
]],
|
|
115
|
-
onClickCapture:
|
|
119
|
+
onClickCapture: i
|
|
116
120
|
}), {
|
|
117
|
-
default:
|
|
118
|
-
|
|
121
|
+
default: g(() => [
|
|
122
|
+
u.loading ? (d(), w(te, {
|
|
119
123
|
key: 0,
|
|
120
124
|
class: "mt0.5 h-full w3"
|
|
121
|
-
})) :
|
|
125
|
+
})) : v(u.$slots, "icon", {
|
|
122
126
|
key: 1,
|
|
123
127
|
class: "h-full w3 $ui-inline-fcc"
|
|
124
128
|
}),
|
|
125
|
-
b(c).default ? (d(),
|
|
126
|
-
|
|
129
|
+
b(c).default ? (d(), f("div", Be, [
|
|
130
|
+
v(u.$slots, "default")
|
|
127
131
|
])) : $("", !0),
|
|
128
|
-
|
|
132
|
+
v(u.$slots, "icon-right")
|
|
129
133
|
]),
|
|
130
134
|
_: 3
|
|
131
135
|
}, 16, ["aria-disabled", "class"]));
|
|
132
136
|
}
|
|
133
|
-
}),
|
|
134
|
-
function
|
|
135
|
-
return d(),
|
|
136
|
-
|
|
137
|
+
}), Te = {}, De = { class: "mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs" };
|
|
138
|
+
function Me(n, o) {
|
|
139
|
+
return d(), f("span", De, [
|
|
140
|
+
v(n.$slots, "default")
|
|
137
141
|
]);
|
|
138
142
|
}
|
|
139
|
-
const
|
|
143
|
+
const vt = /* @__PURE__ */ j(Te, [["render", Me]]), R = /* @__PURE__ */ y({
|
|
140
144
|
__name: "Icon",
|
|
141
145
|
props: {
|
|
142
146
|
icon: {},
|
|
@@ -144,11 +148,11 @@ const at = /* @__PURE__ */ A($e, [["render", Ve]]), E = /* @__PURE__ */ y({
|
|
|
144
148
|
action: { type: Boolean, default: !1 }
|
|
145
149
|
},
|
|
146
150
|
setup(n) {
|
|
147
|
-
return (
|
|
148
|
-
class: h(["$ui-base", [
|
|
151
|
+
return (o, e) => (d(), w(X(o.inline ? "span" : "div"), {
|
|
152
|
+
class: h(["$ui-base", [o.icon, o.action ? "cursor-pointer hover:op50" : ""]])
|
|
149
153
|
}, null, 8, ["class"]));
|
|
150
154
|
}
|
|
151
|
-
}),
|
|
155
|
+
}), Se = /* @__PURE__ */ y({
|
|
152
156
|
__name: "Notification",
|
|
153
157
|
props: {
|
|
154
158
|
message: {},
|
|
@@ -159,50 +163,50 @@ const at = /* @__PURE__ */ A($e, [["render", Ve]]), E = /* @__PURE__ */ y({
|
|
|
159
163
|
onClose: {}
|
|
160
164
|
},
|
|
161
165
|
setup(n) {
|
|
162
|
-
const
|
|
166
|
+
const o = n, e = {
|
|
163
167
|
success: "i-carbon-checkmark",
|
|
164
168
|
info: "i-material-symbols-light-info",
|
|
165
169
|
warning: "i-carbon-warning",
|
|
166
170
|
error: "i-carbon-close"
|
|
167
|
-
},
|
|
171
|
+
}, s = {
|
|
168
172
|
success: "text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",
|
|
169
173
|
info: "text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",
|
|
170
174
|
warning: "text-amber-4 border-amber-2 dark:border-amber-4",
|
|
171
175
|
error: "text-red-4 border-red-2 dark:border-red-4"
|
|
172
176
|
}, t = S(!1);
|
|
173
|
-
|
|
177
|
+
E(() => {
|
|
174
178
|
t.value = !0, setTimeout(() => {
|
|
175
179
|
t.value = !1;
|
|
176
|
-
},
|
|
180
|
+
}, o.duration);
|
|
177
181
|
});
|
|
178
|
-
const l = k(() =>
|
|
179
|
-
return (r,
|
|
182
|
+
const l = k(() => o.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
|
|
183
|
+
return (r, i) => (d(), f("div", {
|
|
180
184
|
class: h(["fixed left-0 right-0 $ui-z-max-override text-center", [
|
|
181
185
|
{ "top-0": r.placement.startsWith("top") },
|
|
182
186
|
{ "bottom-0": r.placement.startsWith("bottom") }
|
|
183
187
|
]])
|
|
184
188
|
}, [
|
|
185
|
-
_(
|
|
189
|
+
_(H, {
|
|
186
190
|
"enter-from-class": l.value,
|
|
187
191
|
"leave-to-class": l.value,
|
|
188
|
-
onAfterLeave:
|
|
189
|
-
var
|
|
190
|
-
t.value || (
|
|
192
|
+
onAfterLeave: i[0] || (i[0] = () => {
|
|
193
|
+
var a;
|
|
194
|
+
t.value || (a = r.onClose) == null || a.call(r);
|
|
191
195
|
})
|
|
192
196
|
}, {
|
|
193
|
-
default:
|
|
194
|
-
t.value ? (d(),
|
|
197
|
+
default: g(() => [
|
|
198
|
+
t.value ? (d(), f("div", {
|
|
195
199
|
key: 0,
|
|
196
200
|
class: "flex transition-all duration-300",
|
|
197
|
-
style:
|
|
201
|
+
style: N({ justifyContent: r.placement.includes("right") ? "right" : r.placement.includes("left") ? "left" : "center" })
|
|
198
202
|
}, [
|
|
199
203
|
m("div", {
|
|
200
|
-
class: h(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [r.classes,
|
|
204
|
+
class: h(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [r.classes, s[r.type]]])
|
|
201
205
|
}, [
|
|
202
206
|
m("div", {
|
|
203
207
|
class: h(e[r.type])
|
|
204
208
|
}, null, 2),
|
|
205
|
-
m("div", null,
|
|
209
|
+
m("div", null, V(r.message), 1)
|
|
206
210
|
], 2)
|
|
207
211
|
], 4)) : $("", !0)
|
|
208
212
|
]),
|
|
@@ -211,31 +215,31 @@ const at = /* @__PURE__ */ A($e, [["render", Ve]]), E = /* @__PURE__ */ y({
|
|
|
211
215
|
], 2));
|
|
212
216
|
}
|
|
213
217
|
});
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
|
|
218
|
+
function bt(n) {
|
|
219
|
+
const o = document.createElement("div");
|
|
220
|
+
o.classList.add("$ui-z-max-override", "fixed"), document.body.appendChild(o);
|
|
217
221
|
const e = n.onClose;
|
|
218
|
-
function
|
|
219
|
-
|
|
222
|
+
function s() {
|
|
223
|
+
U(null, o);
|
|
220
224
|
}
|
|
221
225
|
n.onClose = () => {
|
|
222
|
-
|
|
226
|
+
s(), e == null || e(), document.body.removeChild(o);
|
|
223
227
|
};
|
|
224
|
-
const t =
|
|
225
|
-
|
|
228
|
+
const t = le(Se, n);
|
|
229
|
+
U(t, o);
|
|
226
230
|
}
|
|
227
|
-
const
|
|
228
|
-
function
|
|
229
|
-
const
|
|
231
|
+
const Ie = "__vue-devtools-theme__";
|
|
232
|
+
function Pe(n = {}) {
|
|
233
|
+
const o = pe({
|
|
230
234
|
...n,
|
|
231
|
-
storageKey:
|
|
235
|
+
storageKey: Ie
|
|
232
236
|
});
|
|
233
237
|
return {
|
|
234
|
-
colorMode:
|
|
235
|
-
isDark: k(() =>
|
|
238
|
+
colorMode: o,
|
|
239
|
+
isDark: k(() => o.value === "dark")
|
|
236
240
|
};
|
|
237
241
|
}
|
|
238
|
-
const
|
|
242
|
+
const ze = { class: "$ui-dark-toggle-vtr" }, ht = /* @__PURE__ */ y({
|
|
239
243
|
__name: "DarkToggle",
|
|
240
244
|
props: {
|
|
241
245
|
isDark: { type: Boolean, default: !1 },
|
|
@@ -243,54 +247,54 @@ const De = { class: "$ui-dark-toggle-vtr" }, rt = /* @__PURE__ */ y({
|
|
|
243
247
|
animationDuration: { default: 400 }
|
|
244
248
|
},
|
|
245
249
|
setup(n) {
|
|
246
|
-
const
|
|
250
|
+
const o = n, e = T(o, "isDark"), { colorMode: s } = Pe({
|
|
247
251
|
initialValue: e.value ? "dark" : "light",
|
|
248
|
-
onChanged: (
|
|
249
|
-
e.value =
|
|
252
|
+
onChanged: (i) => {
|
|
253
|
+
e.value = i === "dark";
|
|
250
254
|
}
|
|
251
255
|
}), t = k({
|
|
252
|
-
get: () =>
|
|
253
|
-
set: (
|
|
256
|
+
get: () => s.value === "dark",
|
|
257
|
+
set: (i) => s.value = i ? "dark" : "light"
|
|
254
258
|
}), l = document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
255
|
-
function r(
|
|
256
|
-
if (!l || !
|
|
259
|
+
function r(i) {
|
|
260
|
+
if (!l || !i || !o.animation) {
|
|
257
261
|
t.value = !t.value;
|
|
258
262
|
return;
|
|
259
263
|
}
|
|
260
|
-
const
|
|
261
|
-
Math.max(
|
|
264
|
+
const a = i.clientX, c = i.clientY, p = Math.hypot(
|
|
265
|
+
Math.max(a, innerWidth - a),
|
|
262
266
|
Math.max(c, innerHeight - c)
|
|
263
267
|
);
|
|
264
268
|
document.startViewTransition(async () => {
|
|
265
|
-
t.value = !t.value, await
|
|
269
|
+
t.value = !t.value, await W();
|
|
266
270
|
}).ready.then(() => {
|
|
267
|
-
const
|
|
268
|
-
`circle(0px at ${
|
|
269
|
-
`circle(${p}px at ${
|
|
271
|
+
const C = [
|
|
272
|
+
`circle(0px at ${a}px ${c}px)`,
|
|
273
|
+
`circle(${p}px at ${a}px ${c}px)`
|
|
270
274
|
];
|
|
271
275
|
document.documentElement.animate(
|
|
272
276
|
{
|
|
273
|
-
clipPath: t.value ? [...
|
|
277
|
+
clipPath: t.value ? [...C].reverse() : C
|
|
274
278
|
},
|
|
275
279
|
{
|
|
276
|
-
duration:
|
|
280
|
+
duration: o.animationDuration,
|
|
277
281
|
easing: "ease-in",
|
|
278
282
|
pseudoElement: t.value ? "::view-transition-old(root)" : "::view-transition-new(root)"
|
|
279
283
|
}
|
|
280
284
|
);
|
|
281
285
|
});
|
|
282
286
|
}
|
|
283
|
-
return (
|
|
284
|
-
|
|
287
|
+
return (i, a) => (d(), f("span", ze, [
|
|
288
|
+
v(i.$slots, "default", G(J({ mode: b(s), isDark: t.value, toggle: r })))
|
|
285
289
|
]));
|
|
286
290
|
}
|
|
287
|
-
}),
|
|
288
|
-
function
|
|
289
|
-
return d(),
|
|
290
|
-
|
|
291
|
+
}), Ee = {}, Le = { class: "$ui-base border $ui-border-base rounded shadow-sm" };
|
|
292
|
+
function Fe(n, o) {
|
|
293
|
+
return d(), f("div", Le, [
|
|
294
|
+
v(n.$slots, "default")
|
|
291
295
|
]);
|
|
292
296
|
}
|
|
293
|
-
const
|
|
297
|
+
const yt = /* @__PURE__ */ j(Ee, [["render", Fe]]), oe = /* @__PURE__ */ y({
|
|
294
298
|
__name: "Overlay",
|
|
295
299
|
props: {
|
|
296
300
|
dim: { type: Boolean },
|
|
@@ -298,19 +302,19 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
298
302
|
position: { default: "fixed" }
|
|
299
303
|
},
|
|
300
304
|
setup(n) {
|
|
301
|
-
return (
|
|
305
|
+
return (o, e) => (d(), f("div", {
|
|
302
306
|
class: h(["left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base", [
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
307
|
+
o.dim ? "bg-opacity-50!" : "bg-opacity-0!",
|
|
308
|
+
o.blur ? "backdrop-blur-sm" : "",
|
|
309
|
+
o.position
|
|
306
310
|
]])
|
|
307
311
|
}, [
|
|
308
|
-
|
|
312
|
+
v(o.$slots, "default")
|
|
309
313
|
], 2));
|
|
310
314
|
}
|
|
311
|
-
}),
|
|
312
|
-
|
|
313
|
-
],
|
|
315
|
+
}), Re = { class: "h7.5 w-full $ui-fbc" }, He = { class: "text-4.5" }, Ne = /* @__PURE__ */ m("div", { class: "i-carbon-close" }, null, -1), We = [
|
|
316
|
+
Ne
|
|
317
|
+
], Ae = { class: "content transition-all transition-duration-300" }, Oe = { class: "footer h8 w-full transition-all transition-duration-300 delay-250" }, je = { class: "$ui-fcc" }, xe = /* @__PURE__ */ y({
|
|
314
318
|
__name: "Dialog",
|
|
315
319
|
props: {
|
|
316
320
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -325,67 +329,67 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
325
329
|
position: {}
|
|
326
330
|
},
|
|
327
331
|
emits: ["close", "update:modelValue"],
|
|
328
|
-
setup(n, { emit:
|
|
329
|
-
const e = n, t = T(e, "modelValue",
|
|
330
|
-
|
|
332
|
+
setup(n, { emit: o }) {
|
|
333
|
+
const e = n, t = T(e, "modelValue", o, { passive: !0 }), l = me(() => window.document.documentElement);
|
|
334
|
+
P(() => {
|
|
331
335
|
t.value ? l.value = !0 : l.value = !1;
|
|
332
336
|
});
|
|
333
337
|
function r() {
|
|
334
338
|
t.value && e.autoClose && (t.value = !1);
|
|
335
339
|
}
|
|
336
|
-
|
|
340
|
+
ee("Escape", () => {
|
|
337
341
|
r();
|
|
338
342
|
});
|
|
339
|
-
const
|
|
340
|
-
return
|
|
343
|
+
const i = S(!1);
|
|
344
|
+
return E(() => i.value = !0), (a, c) => i.value || a.mountTo === "body" ? (d(), w(Q, {
|
|
341
345
|
key: 0,
|
|
342
|
-
to:
|
|
346
|
+
to: a.mountTo
|
|
343
347
|
}, [
|
|
344
|
-
_(
|
|
348
|
+
_(H, {
|
|
345
349
|
"enter-from-class": "opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0",
|
|
346
350
|
"enter-to-class": "opacity-100 [&_.modal]:scale-100",
|
|
347
351
|
"leave-from-class": "opacity-100 [&_.modal]:scale-100",
|
|
348
352
|
"leave-to-class": "opacity-0 [&_.modal]:scale-95"
|
|
349
353
|
}, {
|
|
350
|
-
default:
|
|
351
|
-
b(t) ? (d(), w(
|
|
354
|
+
default: g(() => [
|
|
355
|
+
b(t) ? (d(), w(oe, {
|
|
352
356
|
key: 0,
|
|
353
|
-
dim:
|
|
354
|
-
blur:
|
|
355
|
-
position:
|
|
357
|
+
dim: a.dim,
|
|
358
|
+
blur: a.blur,
|
|
359
|
+
position: a.position
|
|
356
360
|
}, {
|
|
357
|
-
default:
|
|
361
|
+
default: g(() => [
|
|
358
362
|
m("div", {
|
|
359
363
|
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",
|
|
360
|
-
style:
|
|
364
|
+
style: N({
|
|
361
365
|
width: e.width,
|
|
362
366
|
height: e.height
|
|
363
367
|
})
|
|
364
368
|
}, [
|
|
365
|
-
m("div",
|
|
366
|
-
m("div",
|
|
367
|
-
|
|
368
|
-
B(
|
|
369
|
+
m("div", Re, [
|
|
370
|
+
m("div", He, [
|
|
371
|
+
v(a.$slots, "title", {}, () => [
|
|
372
|
+
B(V(e.title), 1)
|
|
369
373
|
])
|
|
370
374
|
]),
|
|
371
|
-
|
|
375
|
+
a.closable ? (d(), f("div", {
|
|
372
376
|
key: 0,
|
|
373
377
|
class: "h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",
|
|
374
378
|
onClick: r
|
|
375
|
-
},
|
|
379
|
+
}, We)) : $("", !0)
|
|
376
380
|
]),
|
|
377
|
-
m("div",
|
|
378
|
-
|
|
381
|
+
m("div", Ae, [
|
|
382
|
+
v(a.$slots, "default")
|
|
379
383
|
]),
|
|
380
|
-
m("div",
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
m("div",
|
|
384
|
+
m("div", Oe, [
|
|
385
|
+
v(a.$slots, "footer", {}, () => [
|
|
386
|
+
v(a.$slots, "footer", {}, () => [
|
|
387
|
+
m("div", je, [
|
|
384
388
|
_(M, {
|
|
385
389
|
type: "primary",
|
|
386
390
|
onClick: r
|
|
387
391
|
}, {
|
|
388
|
-
default:
|
|
392
|
+
default: g(() => [
|
|
389
393
|
B(" close ")
|
|
390
394
|
]),
|
|
391
395
|
_: 1
|
|
@@ -403,10 +407,10 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
403
407
|
})
|
|
404
408
|
], 8, ["to"])) : $("", !0);
|
|
405
409
|
}
|
|
406
|
-
}),
|
|
410
|
+
}), Ue = ["type", "placeholder", "disabled"], Ke = {
|
|
407
411
|
key: 3,
|
|
408
412
|
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"
|
|
409
|
-
},
|
|
413
|
+
}, L = "transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500", Ye = /* @__PURE__ */ y({
|
|
410
414
|
__name: "Input",
|
|
411
415
|
props: {
|
|
412
416
|
modelValue: {},
|
|
@@ -422,71 +426,71 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
422
426
|
type: { default: "text" }
|
|
423
427
|
},
|
|
424
428
|
emits: ["update:modelValue", "updateFocused", "keyTab"],
|
|
425
|
-
setup(n, { emit:
|
|
426
|
-
const e = n,
|
|
427
|
-
onChanged(
|
|
428
|
-
|
|
429
|
+
setup(n, { emit: o }) {
|
|
430
|
+
const e = n, s = o, t = T(e, "modelValue", s), l = fe(k(() => e.loading), e.loadingDebounceTime), r = ge(!1, {
|
|
431
|
+
onChanged(u) {
|
|
432
|
+
s("updateFocused", u);
|
|
429
433
|
}
|
|
430
|
-
}),
|
|
434
|
+
}), i = k(() => e.variant === "flat" || e.variant === "warning" || e.disabled || e.readonly), a = k(() => e.disabled || l.value), c = S();
|
|
431
435
|
let p = !1;
|
|
432
|
-
return
|
|
433
|
-
l.value && r.value ? p = !0 : !l.value && p && (p = !1,
|
|
436
|
+
return P(() => {
|
|
437
|
+
l.value && r.value ? p = !0 : !l.value && p && (p = !1, W(() => {
|
|
434
438
|
r.value = !0;
|
|
435
439
|
}));
|
|
436
|
-
}),
|
|
440
|
+
}), E(() => {
|
|
437
441
|
e.autoFocus && (r.value = !0);
|
|
438
|
-
}),
|
|
439
|
-
var
|
|
440
|
-
r.value && ((
|
|
441
|
-
}), (
|
|
442
|
+
}), P(() => {
|
|
443
|
+
var u;
|
|
444
|
+
r.value && ((u = c.value) == null || u.focus());
|
|
445
|
+
}), (u, C) => (d(), f("div", {
|
|
442
446
|
class: h(["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", [
|
|
443
447
|
{
|
|
444
|
-
"border-none bg-transparent group":
|
|
445
|
-
"cursor-not-allowed opacity-50":
|
|
446
|
-
accent:
|
|
448
|
+
"border-none bg-transparent group": u.variant === "flat",
|
|
449
|
+
"cursor-not-allowed opacity-50": a.value,
|
|
450
|
+
accent: u.variant === "accent",
|
|
447
451
|
focused: b(r)
|
|
448
452
|
},
|
|
449
453
|
[
|
|
450
|
-
|
|
454
|
+
u.variant === "warning" ? "border-warning-500 dark:border-warning-300" : "border-primary-100 dark:border-gray-700"
|
|
451
455
|
]
|
|
452
456
|
]]),
|
|
453
|
-
onClick:
|
|
457
|
+
onClick: C[2] || (C[2] = () => {
|
|
454
458
|
r.value = !0;
|
|
455
459
|
})
|
|
456
460
|
}, [
|
|
457
|
-
|
|
461
|
+
u.leftIcon ? (d(), f("div", {
|
|
458
462
|
key: 0,
|
|
459
|
-
class: h(
|
|
463
|
+
class: h(L)
|
|
460
464
|
}, [
|
|
461
|
-
_(
|
|
465
|
+
_(R, { icon: u.leftIcon }, null, 8, ["icon"])
|
|
462
466
|
])) : $("", !0),
|
|
463
|
-
|
|
467
|
+
A(m("input", {
|
|
464
468
|
ref_key: "inputRef",
|
|
465
469
|
ref: c,
|
|
466
|
-
"onUpdate:modelValue":
|
|
470
|
+
"onUpdate:modelValue": C[0] || (C[0] = (x) => O(t) ? t.value = x : null),
|
|
467
471
|
class: "$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",
|
|
468
|
-
type:
|
|
469
|
-
placeholder:
|
|
470
|
-
disabled:
|
|
471
|
-
onBlur:
|
|
472
|
-
}, null, 40,
|
|
473
|
-
[
|
|
472
|
+
type: u.type,
|
|
473
|
+
placeholder: u.placeholder,
|
|
474
|
+
disabled: a.value || u.readonly,
|
|
475
|
+
onBlur: C[1] || (C[1] = (x) => r.value = !1)
|
|
476
|
+
}, null, 40, Ue), [
|
|
477
|
+
[se, b(t)]
|
|
474
478
|
]),
|
|
475
|
-
b(l) ? (d(),
|
|
479
|
+
b(l) ? (d(), f("div", {
|
|
476
480
|
key: 1,
|
|
477
|
-
class: h(
|
|
481
|
+
class: h(L)
|
|
478
482
|
}, [
|
|
479
|
-
_(
|
|
480
|
-
])) :
|
|
483
|
+
_(te)
|
|
484
|
+
])) : u.rightIcon ? (d(), f("div", {
|
|
481
485
|
key: 2,
|
|
482
|
-
class: h(
|
|
486
|
+
class: h(L)
|
|
483
487
|
}, [
|
|
484
|
-
_(
|
|
488
|
+
_(R, { icon: u.rightIcon }, null, 8, ["icon"])
|
|
485
489
|
])) : $("", !0),
|
|
486
|
-
|
|
490
|
+
i.value ? $("", !0) : (d(), f("div", Ke))
|
|
487
491
|
], 2));
|
|
488
492
|
}
|
|
489
|
-
}),
|
|
493
|
+
}), qe = { class: "$ui-base" }, kt = /* @__PURE__ */ y({
|
|
490
494
|
__name: "FormField",
|
|
491
495
|
props: {
|
|
492
496
|
modelValue: {},
|
|
@@ -496,40 +500,40 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
496
500
|
placeholder: {}
|
|
497
501
|
},
|
|
498
502
|
emits: ["update:modelValue"],
|
|
499
|
-
setup(n, { emit:
|
|
500
|
-
const e = n, t = T(e, "modelValue",
|
|
503
|
+
setup(n, { emit: o }) {
|
|
504
|
+
const e = n, t = T(e, "modelValue", o), l = S(!1), r = k(() => e.message && e.message.length && e.showMessage), i = {
|
|
501
505
|
normal: "color-gray-600 dark:color-gray-400",
|
|
502
506
|
warning: "color-warning-500 dark:color-warning-200",
|
|
503
507
|
danger: "color-danger-500 dark:color-danger-200",
|
|
504
508
|
success: "color-primary-700 dark:color-primary-500"
|
|
505
|
-
},
|
|
509
|
+
}, a = {
|
|
506
510
|
warning: "i-bx:bxs-error",
|
|
507
511
|
danger: "i-ic-round-error",
|
|
508
512
|
success: "i-ep:success-filled"
|
|
509
513
|
};
|
|
510
|
-
return (c, p) => (d(),
|
|
511
|
-
_(
|
|
514
|
+
return (c, p) => (d(), f("div", qe, [
|
|
515
|
+
_(Ye, {
|
|
512
516
|
modelValue: b(t),
|
|
513
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
517
|
+
"onUpdate:modelValue": p[0] || (p[0] = (u) => O(t) ? t.value = u : null),
|
|
514
518
|
placeholder: c.placeholder,
|
|
515
|
-
onUpdateFocused: p[1] || (p[1] = (
|
|
519
|
+
onUpdateFocused: p[1] || (p[1] = (u) => l.value = u)
|
|
516
520
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
517
521
|
m("div", {
|
|
518
522
|
class: h(["mt2 $ui-base text-3.5", [
|
|
519
|
-
|
|
523
|
+
i[c.status],
|
|
520
524
|
{ "opacity-65": !l.value }
|
|
521
525
|
]])
|
|
522
526
|
}, [
|
|
523
|
-
c.status !== "normal" && r.value ? (d(), w(
|
|
527
|
+
c.status !== "normal" && r.value ? (d(), w(R, {
|
|
524
528
|
key: 0,
|
|
525
529
|
inline: "",
|
|
526
|
-
icon:
|
|
530
|
+
icon: a[c.status]
|
|
527
531
|
}, null, 8, ["icon"])) : $("", !0),
|
|
528
|
-
B(" " +
|
|
532
|
+
B(" " + V(r.value ? c.message : ""), 1)
|
|
529
533
|
], 2)
|
|
530
534
|
]));
|
|
531
535
|
}
|
|
532
|
-
}),
|
|
536
|
+
}), Xe = { class: "overflow-hidden rounded-lg shadow-lg" }, Ge = /* @__PURE__ */ m("div", { class: "p2 opacity-40" }, " Empty... ", -1), Je = /* @__PURE__ */ y({
|
|
533
537
|
__name: "Dropdown",
|
|
534
538
|
props: {
|
|
535
539
|
label: {},
|
|
@@ -544,8 +548,8 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
544
548
|
},
|
|
545
549
|
emits: ["update:visible"],
|
|
546
550
|
setup(n) {
|
|
547
|
-
const
|
|
548
|
-
return
|
|
551
|
+
const o = n;
|
|
552
|
+
return ie("$ui-dropdown-disabled", k(() => o.disabled)), (e, s) => (d(), w(b(ae), {
|
|
549
553
|
disabled: e.disabled,
|
|
550
554
|
class: "inline-block w-auto",
|
|
551
555
|
shown: e.shown,
|
|
@@ -553,36 +557,36 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
553
557
|
distance: e.distance + 6,
|
|
554
558
|
placement: e.placement,
|
|
555
559
|
skidding: e.skidding,
|
|
556
|
-
"onUpdate:shown":
|
|
557
|
-
onClick:
|
|
560
|
+
"onUpdate:shown": s[0] || (s[0] = (t) => e.$emit("update:visible", t)),
|
|
561
|
+
onClick: s[1] || (s[1] = (t) => {
|
|
558
562
|
t.stopPropagation();
|
|
559
563
|
})
|
|
560
564
|
}, {
|
|
561
|
-
popper:
|
|
562
|
-
m("div",
|
|
563
|
-
|
|
564
|
-
|
|
565
|
+
popper: g(({ hide: t }) => [
|
|
566
|
+
m("div", Xe, [
|
|
567
|
+
v(e.$slots, "popper", G(J({ hide: t })), () => [
|
|
568
|
+
Ge
|
|
565
569
|
])
|
|
566
570
|
])
|
|
567
571
|
]),
|
|
568
|
-
default:
|
|
569
|
-
|
|
572
|
+
default: g(() => [
|
|
573
|
+
v(e.$slots, "default", {}, () => [
|
|
570
574
|
_(M, D({
|
|
571
575
|
...e.buttonProps,
|
|
572
576
|
disabled: e.disabled
|
|
573
|
-
}, { class: e.buttonClass }),
|
|
574
|
-
icon:
|
|
575
|
-
|
|
577
|
+
}, { class: e.buttonClass }), Z({
|
|
578
|
+
icon: g(() => [
|
|
579
|
+
v(e.$slots, "button-icon")
|
|
576
580
|
]),
|
|
577
|
-
"icon-right":
|
|
578
|
-
|
|
581
|
+
"icon-right": g(() => [
|
|
582
|
+
v(e.$slots, "button-icon-right")
|
|
579
583
|
]),
|
|
580
584
|
_: 2
|
|
581
585
|
}, [
|
|
582
586
|
e.label ? {
|
|
583
587
|
name: "default",
|
|
584
|
-
fn:
|
|
585
|
-
B(
|
|
588
|
+
fn: g(() => [
|
|
589
|
+
B(V(e.label), 1)
|
|
586
590
|
]),
|
|
587
591
|
key: "0"
|
|
588
592
|
} : void 0
|
|
@@ -592,7 +596,7 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
592
596
|
_: 3
|
|
593
597
|
}, 8, ["disabled", "shown", "triggers", "distance", "placement", "skidding"]));
|
|
594
598
|
}
|
|
595
|
-
}),
|
|
599
|
+
}), wt = /* @__PURE__ */ y({
|
|
596
600
|
__name: "DropdownButton",
|
|
597
601
|
props: {
|
|
598
602
|
type: {},
|
|
@@ -605,26 +609,26 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
605
609
|
keepOpen: { type: Boolean, default: !1 }
|
|
606
610
|
},
|
|
607
611
|
setup(n) {
|
|
608
|
-
const
|
|
609
|
-
return (
|
|
610
|
-
...
|
|
612
|
+
const o = n, e = de("$ui-dropdown-disabled", void 0);
|
|
613
|
+
return (s, t) => A((d(), w(M, D({
|
|
614
|
+
...o,
|
|
611
615
|
round: !1
|
|
612
616
|
}, {
|
|
613
617
|
disabled: b(e),
|
|
614
618
|
class: "w-full justify-start transition-colors not-action:bg-transparent!"
|
|
615
619
|
}), {
|
|
616
|
-
icon:
|
|
617
|
-
|
|
620
|
+
icon: g(() => [
|
|
621
|
+
v(s.$slots, "icon")
|
|
618
622
|
]),
|
|
619
|
-
default:
|
|
620
|
-
|
|
623
|
+
default: g(() => [
|
|
624
|
+
v(s.$slots, "default")
|
|
621
625
|
]),
|
|
622
626
|
_: 3
|
|
623
627
|
}, 16, ["disabled"])), [
|
|
624
|
-
[b(
|
|
628
|
+
[b(Y)]
|
|
625
629
|
]);
|
|
626
630
|
}
|
|
627
|
-
}),
|
|
631
|
+
}), Qe = { class: "$ui-fec gap2.5" }, $t = /* @__PURE__ */ y({
|
|
628
632
|
__name: "Confirm",
|
|
629
633
|
props: {
|
|
630
634
|
modelValue: { type: Boolean },
|
|
@@ -638,57 +642,57 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
638
642
|
autoClose: { type: Boolean, default: !0 }
|
|
639
643
|
},
|
|
640
644
|
emits: ["update:modelValue", "confirm", "cancel", "close"],
|
|
641
|
-
setup(n, { emit:
|
|
642
|
-
const e = n,
|
|
643
|
-
|
|
644
|
-
t.value ||
|
|
645
|
+
setup(n, { emit: o }) {
|
|
646
|
+
const e = n, s = o, t = T(e, "modelValue", s);
|
|
647
|
+
P(() => {
|
|
648
|
+
t.value || s("close");
|
|
645
649
|
});
|
|
646
650
|
function l(r = !1) {
|
|
647
651
|
(e.autoClose || r) && (t.value = !1);
|
|
648
652
|
}
|
|
649
|
-
return (r,
|
|
653
|
+
return (r, i) => (d(), w(xe, {
|
|
650
654
|
modelValue: b(t),
|
|
651
|
-
"onUpdate:modelValue":
|
|
655
|
+
"onUpdate:modelValue": i[2] || (i[2] = (a) => O(t) ? t.value = a : null),
|
|
652
656
|
width: r.width,
|
|
653
657
|
height: r.height,
|
|
654
658
|
title: r.title,
|
|
655
659
|
closable: !1
|
|
656
660
|
}, {
|
|
657
|
-
footer:
|
|
658
|
-
m("div",
|
|
661
|
+
footer: g(() => [
|
|
662
|
+
m("div", Qe, [
|
|
659
663
|
_(M, {
|
|
660
|
-
onClick:
|
|
661
|
-
|
|
664
|
+
onClick: i[0] || (i[0] = () => {
|
|
665
|
+
s("cancel"), l(!0);
|
|
662
666
|
})
|
|
663
667
|
}, {
|
|
664
|
-
default:
|
|
665
|
-
B(
|
|
668
|
+
default: g(() => [
|
|
669
|
+
B(V(r.cancelText), 1)
|
|
666
670
|
]),
|
|
667
671
|
_: 1
|
|
668
672
|
}),
|
|
669
673
|
_(M, {
|
|
670
674
|
loading: r.loading,
|
|
671
675
|
type: "primary",
|
|
672
|
-
onClick:
|
|
673
|
-
|
|
676
|
+
onClick: i[1] || (i[1] = () => {
|
|
677
|
+
s("confirm"), l();
|
|
674
678
|
})
|
|
675
679
|
}, {
|
|
676
|
-
default:
|
|
677
|
-
B(
|
|
680
|
+
default: g(() => [
|
|
681
|
+
B(V(r.confirmText), 1)
|
|
678
682
|
]),
|
|
679
683
|
_: 1
|
|
680
684
|
}, 8, ["loading"])
|
|
681
685
|
])
|
|
682
686
|
]),
|
|
683
|
-
default:
|
|
684
|
-
|
|
685
|
-
B(
|
|
687
|
+
default: g(() => [
|
|
688
|
+
v(r.$slots, "default", { class: "h-auto w-auto" }, () => [
|
|
689
|
+
B(V(r.content), 1)
|
|
686
690
|
])
|
|
687
691
|
]),
|
|
688
692
|
_: 3
|
|
689
693
|
}, 8, ["modelValue", "width", "height", "title"]));
|
|
690
694
|
}
|
|
691
|
-
}),
|
|
695
|
+
}), Ze = { class: "m1 min-w-35 w-auto flex flex-col" }, et = ["onClick"], tt = /* @__PURE__ */ m("div", { class: "i-mdi-chevron-down" }, null, -1), _t = /* @__PURE__ */ y({
|
|
692
696
|
__name: "Select",
|
|
693
697
|
props: {
|
|
694
698
|
modelValue: {},
|
|
@@ -701,82 +705,82 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
701
705
|
buttonProps: { default: () => ({}) }
|
|
702
706
|
},
|
|
703
707
|
emits: ["update:modelValue"],
|
|
704
|
-
setup(n, { emit:
|
|
705
|
-
const e = n,
|
|
708
|
+
setup(n, { emit: o }) {
|
|
709
|
+
const e = n, s = o, t = q(), l = k({
|
|
706
710
|
get: () => e.modelValue,
|
|
707
|
-
set: (
|
|
711
|
+
set: (a) => s("update:modelValue", a)
|
|
708
712
|
}), r = k(() => {
|
|
709
|
-
const
|
|
710
|
-
return
|
|
713
|
+
const a = e.options.find((c) => c.value === l.value);
|
|
714
|
+
return a != null && a.label ? e.labelRenderer(a.label) : e.placeholder;
|
|
711
715
|
});
|
|
712
|
-
function
|
|
713
|
-
e.multiple ? l.value = l.value.includes(
|
|
716
|
+
function i(a) {
|
|
717
|
+
e.multiple ? l.value = l.value.includes(a.value) ? l.value.filter((c) => c !== a.value) : [...l.value, a.value] : l.value = a.value;
|
|
714
718
|
}
|
|
715
|
-
return (
|
|
716
|
-
buttonProps:
|
|
717
|
-
disabled:
|
|
718
|
-
}),
|
|
719
|
-
popper:
|
|
720
|
-
m("div",
|
|
721
|
-
b(t).item ? (d(!0),
|
|
719
|
+
return (a, c) => (d(), w(Je, D({ label: r.value }, {
|
|
720
|
+
buttonProps: a.buttonProps,
|
|
721
|
+
disabled: a.disabled
|
|
722
|
+
}), Z({
|
|
723
|
+
popper: g(() => [
|
|
724
|
+
m("div", Ze, [
|
|
725
|
+
b(t).item ? (d(!0), f(z, { key: 0 }, F(a.options, (p) => (d(), f("div", {
|
|
722
726
|
key: p.value,
|
|
723
727
|
class: "cursor-pointer",
|
|
724
|
-
onClick: (
|
|
728
|
+
onClick: (u) => i(p)
|
|
725
729
|
}, [
|
|
726
|
-
|
|
730
|
+
v(a.$slots, "item", D({ ref_for: !0 }, {
|
|
727
731
|
item: p,
|
|
728
|
-
active:
|
|
729
|
-
disabled:
|
|
732
|
+
active: a.multiple ? l.value.includes(p.value) : p.value === l.value,
|
|
733
|
+
disabled: a.disabled
|
|
730
734
|
}))
|
|
731
|
-
], 8,
|
|
735
|
+
], 8, et))), 128)) : (d(!0), f(z, { key: 1 }, F(a.options, (p) => A((d(), w(M, {
|
|
732
736
|
key: p.value,
|
|
733
|
-
disabled:
|
|
737
|
+
disabled: a.disabled,
|
|
734
738
|
round: "normal",
|
|
735
739
|
class: h(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!", {
|
|
736
|
-
active:
|
|
740
|
+
active: a.multiple ? l.value.includes(p.value) : p.value === l.value
|
|
737
741
|
}]),
|
|
738
|
-
onClick: (
|
|
742
|
+
onClick: (u) => i(p)
|
|
739
743
|
}, {
|
|
740
|
-
default:
|
|
741
|
-
B(
|
|
744
|
+
default: g(() => [
|
|
745
|
+
B(V(p.label), 1)
|
|
742
746
|
]),
|
|
743
747
|
_: 2
|
|
744
748
|
}, 1032, ["disabled", "class", "onClick"])), [
|
|
745
|
-
[b(
|
|
749
|
+
[b(Y), a.autoClose]
|
|
746
750
|
])), 128))
|
|
747
751
|
])
|
|
748
752
|
]),
|
|
749
|
-
"button-icon-right":
|
|
750
|
-
|
|
753
|
+
"button-icon-right": g(() => [
|
|
754
|
+
tt
|
|
751
755
|
]),
|
|
752
756
|
_: 2
|
|
753
757
|
}, [
|
|
754
758
|
b(t).button ? {
|
|
755
759
|
name: "default",
|
|
756
|
-
fn:
|
|
757
|
-
|
|
760
|
+
fn: g(() => [
|
|
761
|
+
v(a.$slots, "button")
|
|
758
762
|
]),
|
|
759
763
|
key: "0"
|
|
760
764
|
} : void 0
|
|
761
765
|
]), 1040, ["label"]));
|
|
762
766
|
}
|
|
763
|
-
}),
|
|
767
|
+
}), Ct = /* @__PURE__ */ y({
|
|
764
768
|
__name: "Switch",
|
|
765
769
|
props: {
|
|
766
770
|
modelValue: { type: Boolean },
|
|
767
771
|
disabled: { type: Boolean }
|
|
768
772
|
},
|
|
769
773
|
emits: ["update:modelValue"],
|
|
770
|
-
setup(n, { emit:
|
|
771
|
-
const t = T(n, "modelValue",
|
|
772
|
-
return (r,
|
|
774
|
+
setup(n, { emit: o }) {
|
|
775
|
+
const t = T(n, "modelValue", o), l = ve(t);
|
|
776
|
+
return (r, i) => (d(), f("div", {
|
|
773
777
|
class: h([[
|
|
774
778
|
r.disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
775
779
|
], "$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),
|
|
776
780
|
role: "checkbox",
|
|
777
|
-
onClick:
|
|
781
|
+
onClick: i[0] || (i[0] = (a) => !r.disabled && b(l)())
|
|
778
782
|
}, [
|
|
779
|
-
|
|
783
|
+
v(r.$slots, "default"),
|
|
780
784
|
m("div", {
|
|
781
785
|
class: h([{
|
|
782
786
|
selected: b(t)
|
|
@@ -791,20 +795,20 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
791
795
|
], 2)
|
|
792
796
|
], 2));
|
|
793
797
|
}
|
|
794
|
-
}),
|
|
798
|
+
}), Vt = /* @__PURE__ */ y({
|
|
795
799
|
__name: "Checkbox",
|
|
796
800
|
props: {
|
|
797
801
|
modelValue: { type: Boolean },
|
|
798
802
|
variant: { default: "normal" }
|
|
799
803
|
},
|
|
800
804
|
emits: ["update:modelValue"],
|
|
801
|
-
setup(n, { emit:
|
|
802
|
-
const t = T(n, "modelValue",
|
|
803
|
-
return (l, r) => (d(),
|
|
805
|
+
setup(n, { emit: o }) {
|
|
806
|
+
const t = T(n, "modelValue", o);
|
|
807
|
+
return (l, r) => (d(), f("div", {
|
|
804
808
|
class: h(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out", [
|
|
805
809
|
b(t) ? l.variant === "normal" ? "bg-primary-500 border-primary-200 dark:border-primary-100" : "bg-accent-500 border-accent-200 dark:border-accent-100" : ""
|
|
806
810
|
]]),
|
|
807
|
-
onClick: r[0] || (r[0] = (
|
|
811
|
+
onClick: r[0] || (r[0] = (i) => t.value = !b(t))
|
|
808
812
|
}, [
|
|
809
813
|
m("div", {
|
|
810
814
|
class: h([[
|
|
@@ -813,7 +817,7 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
813
817
|
}, null, 2)
|
|
814
818
|
], 2));
|
|
815
819
|
}
|
|
816
|
-
}),
|
|
820
|
+
}), Bt = /* @__PURE__ */ y({
|
|
817
821
|
__name: "Drawer",
|
|
818
822
|
props: {
|
|
819
823
|
modelValue: { type: Boolean },
|
|
@@ -830,8 +834,8 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
830
834
|
position: {}
|
|
831
835
|
},
|
|
832
836
|
emits: ["update:modelValue", "close"],
|
|
833
|
-
setup(n, { emit:
|
|
834
|
-
const e = n,
|
|
837
|
+
setup(n, { emit: o }) {
|
|
838
|
+
const e = n, s = o, { height: t } = be(() => typeof e.top == "string" ? document.querySelector(e.top) : e.top, void 0, { box: "border-box" }), l = T(e, "modelValue", s), r = {
|
|
835
839
|
left: {
|
|
836
840
|
class: "left-0 h-full b-r",
|
|
837
841
|
transition: "[&_.drawer]:translate-x--100%"
|
|
@@ -849,20 +853,20 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
849
853
|
transition: "[&_.drawer]:translate-y-100%"
|
|
850
854
|
}
|
|
851
855
|
};
|
|
852
|
-
|
|
856
|
+
ee("Escape", () => {
|
|
853
857
|
e.closable && (l.value = !1);
|
|
854
858
|
});
|
|
855
|
-
const
|
|
856
|
-
return
|
|
859
|
+
const i = k(() => r[e.placement]), a = S(!1);
|
|
860
|
+
return E(() => a.value = !0), (c, p) => a.value || c.mountTo === "body" ? (d(), w(Q, {
|
|
857
861
|
key: 0,
|
|
858
862
|
to: c.mountTo
|
|
859
863
|
}, [
|
|
860
|
-
_(
|
|
861
|
-
"enter-from-class": `${
|
|
862
|
-
"leave-to-class": `${
|
|
864
|
+
_(H, {
|
|
865
|
+
"enter-from-class": `${i.value.transition}`,
|
|
866
|
+
"leave-to-class": `${i.value.transition}`
|
|
863
867
|
}, {
|
|
864
|
-
default:
|
|
865
|
-
b(l) ? (d(), w(
|
|
868
|
+
default: g(() => [
|
|
869
|
+
b(l) ? (d(), w(oe, {
|
|
866
870
|
key: 0,
|
|
867
871
|
class: h({
|
|
868
872
|
"pointer-events-none": c.permanent
|
|
@@ -870,24 +874,24 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
870
874
|
dim: c.dim,
|
|
871
875
|
blur: c.blur,
|
|
872
876
|
position: c.position,
|
|
873
|
-
onClick: p[2] || (p[2] = (
|
|
877
|
+
onClick: p[2] || (p[2] = (u) => c.closeOutside && c.closable && (l.value = !1))
|
|
874
878
|
}, {
|
|
875
|
-
default:
|
|
879
|
+
default: g(() => [
|
|
876
880
|
m("div", {
|
|
877
|
-
class: h([[
|
|
878
|
-
style:
|
|
881
|
+
class: h([[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"]),
|
|
882
|
+
style: N({
|
|
879
883
|
top: c.placement === "bottom" ? "auto" : `${b(t)}px`,
|
|
880
884
|
height: ["top", "bottom"].includes(c.placement) ? "auto" : `calc(100% - ${b(t)}px)`
|
|
881
885
|
}),
|
|
882
|
-
onClick: p[1] || (p[1] =
|
|
886
|
+
onClick: p[1] || (p[1] = ue(() => {
|
|
883
887
|
}, ["stop"]))
|
|
884
888
|
}, [
|
|
885
|
-
c.closable ? (d(),
|
|
889
|
+
c.closable ? (d(), f("div", {
|
|
886
890
|
key: 0,
|
|
887
891
|
class: "i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",
|
|
888
|
-
onClick: p[0] || (p[0] = (
|
|
892
|
+
onClick: p[0] || (p[0] = (u) => l.value = !1)
|
|
889
893
|
})) : $("", !0),
|
|
890
|
-
|
|
894
|
+
v(c.$slots, "default")
|
|
891
895
|
], 6)
|
|
892
896
|
]),
|
|
893
897
|
_: 3
|
|
@@ -897,7 +901,7 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
897
901
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
898
902
|
], 8, ["to"])) : $("", !0);
|
|
899
903
|
}
|
|
900
|
-
}),
|
|
904
|
+
}), Tt = /* @__PURE__ */ y({
|
|
901
905
|
__name: "Tooltip",
|
|
902
906
|
props: {
|
|
903
907
|
trigger: {},
|
|
@@ -908,59 +912,136 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
|
|
|
908
912
|
shown: { type: Boolean }
|
|
909
913
|
},
|
|
910
914
|
setup(n) {
|
|
911
|
-
return (
|
|
912
|
-
disabled:
|
|
913
|
-
placement:
|
|
914
|
-
},
|
|
915
|
-
popper:
|
|
916
|
-
|
|
915
|
+
return (o, e) => (d(), w(b(re), D({
|
|
916
|
+
disabled: o.disabled,
|
|
917
|
+
placement: o.placement
|
|
918
|
+
}, o.$attrs), {
|
|
919
|
+
popper: g(() => [
|
|
920
|
+
v(o.$slots, "popper")
|
|
917
921
|
]),
|
|
918
|
-
default:
|
|
919
|
-
|
|
922
|
+
default: g(() => [
|
|
923
|
+
v(o.$slots, "default")
|
|
920
924
|
]),
|
|
921
925
|
_: 3
|
|
922
926
|
}, 16, ["disabled", "placement"]));
|
|
923
927
|
}
|
|
924
|
-
}),
|
|
928
|
+
}), ot = ["innerHTML"], Dt = /* @__PURE__ */ y({
|
|
925
929
|
__name: "IcIcon",
|
|
926
930
|
props: {
|
|
927
931
|
name: {}
|
|
928
932
|
},
|
|
929
933
|
setup(n) {
|
|
930
|
-
const
|
|
931
|
-
return (
|
|
932
|
-
(d(),
|
|
934
|
+
const o = n, e = k(() => he[o.name] ?? "");
|
|
935
|
+
return (s, t) => (d(), f("div", null, [
|
|
936
|
+
(d(), f("svg", {
|
|
933
937
|
class: "custom-svg h-1em w-1em",
|
|
934
938
|
xmlns: "http://www.w3.org/2000/svg",
|
|
935
939
|
viewBox: "0 0 24 24",
|
|
936
940
|
innerHTML: e.value
|
|
937
|
-
}, null, 8,
|
|
941
|
+
}, null, 8, ot))
|
|
938
942
|
]));
|
|
939
943
|
}
|
|
944
|
+
}), I = ce();
|
|
945
|
+
let K = null;
|
|
946
|
+
function at(n, o = "text") {
|
|
947
|
+
var s;
|
|
948
|
+
!K && !I.value && (K = ye({
|
|
949
|
+
themes: [
|
|
950
|
+
import("shiki/themes/vitesse-dark.mjs"),
|
|
951
|
+
import("shiki/themes/vitesse-light.mjs")
|
|
952
|
+
],
|
|
953
|
+
langs: [
|
|
954
|
+
import("shiki/langs/json.mjs"),
|
|
955
|
+
import("shiki/langs/yaml.mjs"),
|
|
956
|
+
import("shiki/langs/css.mjs"),
|
|
957
|
+
import("shiki/langs/javascript.mjs"),
|
|
958
|
+
import("shiki/langs/typescript.mjs"),
|
|
959
|
+
import("shiki/langs/vue.mjs"),
|
|
960
|
+
import("shiki/langs/vue-html.mjs"),
|
|
961
|
+
import("shiki/langs/html.mjs"),
|
|
962
|
+
import("shiki/langs/diff.mjs"),
|
|
963
|
+
import("shiki/langs/shellscript.mjs")
|
|
964
|
+
],
|
|
965
|
+
loadWasm: ke
|
|
966
|
+
}).then((t) => {
|
|
967
|
+
I.value = t;
|
|
968
|
+
}));
|
|
969
|
+
const e = (s = I.value) == null ? void 0 : s.getLoadedLanguages().includes(o);
|
|
970
|
+
return e ? {
|
|
971
|
+
code: I.value.codeToHtml(n, {
|
|
972
|
+
lang: o,
|
|
973
|
+
themes: {
|
|
974
|
+
dark: "vitesse-dark",
|
|
975
|
+
light: "vitesse-light"
|
|
976
|
+
}
|
|
977
|
+
}),
|
|
978
|
+
supported: !0
|
|
979
|
+
} : {
|
|
980
|
+
code: n,
|
|
981
|
+
supported: e
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
const rt = ["innerHTML"], nt = { class: "shiki" }, lt = ["textContent"], st = /* @__PURE__ */ m("br", null, null, -1), Mt = /* @__PURE__ */ y({
|
|
985
|
+
__name: "CodeBlock",
|
|
986
|
+
props: {
|
|
987
|
+
code: {},
|
|
988
|
+
lang: {},
|
|
989
|
+
lines: { type: Boolean, default: !0 },
|
|
990
|
+
transformRendered: {}
|
|
991
|
+
},
|
|
992
|
+
emits: ["loaded"],
|
|
993
|
+
setup(n, { emit: o }) {
|
|
994
|
+
const e = n, s = o, t = k(() => {
|
|
995
|
+
const l = e.lang === "text" ? { code: e.code, supported: !1 } : at(e.code, e.lang) || { code: e.code, supported: !1 };
|
|
996
|
+
return l.supported && e.transformRendered && (l.code = e.transformRendered(l.code)), l.supported && W(() => s("loaded")), l;
|
|
997
|
+
});
|
|
998
|
+
return (l, r) => l.lang && t.value.supported ? (d(), f("pre", {
|
|
999
|
+
key: 0,
|
|
1000
|
+
class: h(["code-block", l.lines ? "code-block-lines" : ""]),
|
|
1001
|
+
innerHTML: t.value.code
|
|
1002
|
+
}, null, 10, rt)) : (d(), f("pre", {
|
|
1003
|
+
key: 1,
|
|
1004
|
+
class: h(["code-block", l.lines ? "code-block-lines" : ""])
|
|
1005
|
+
}, [
|
|
1006
|
+
m("pre", nt, [
|
|
1007
|
+
m("code", null, [
|
|
1008
|
+
(d(!0), f(z, null, F(l.code.split(`
|
|
1009
|
+
`), (i, a) => (d(), f(z, { key: a }, [
|
|
1010
|
+
m("span", {
|
|
1011
|
+
class: "line",
|
|
1012
|
+
textContent: V(i)
|
|
1013
|
+
}, null, 8, lt),
|
|
1014
|
+
st
|
|
1015
|
+
], 64))), 128))
|
|
1016
|
+
])
|
|
1017
|
+
])
|
|
1018
|
+
], 2));
|
|
1019
|
+
}
|
|
940
1020
|
});
|
|
941
1021
|
export {
|
|
942
|
-
|
|
943
|
-
|
|
1022
|
+
Ie as THEME_KEY,
|
|
1023
|
+
vt as VueBadge,
|
|
944
1024
|
M as VueButton,
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
1025
|
+
yt as VueCard,
|
|
1026
|
+
Vt as VueCheckbox,
|
|
1027
|
+
Mt as VueCodeBlock,
|
|
1028
|
+
$t as VueConfirm,
|
|
1029
|
+
ht as VueDarkToggle,
|
|
1030
|
+
xe as VueDialog,
|
|
1031
|
+
Bt as VueDrawer,
|
|
1032
|
+
Je as VueDropdown,
|
|
1033
|
+
wt as VueDropdownButton,
|
|
1034
|
+
kt as VueFormField,
|
|
1035
|
+
Dt as VueIcIcon,
|
|
1036
|
+
R as VueIcon,
|
|
1037
|
+
Ye as VueInput,
|
|
1038
|
+
te as VueLoadingIndicator,
|
|
1039
|
+
Se as VueNotification,
|
|
1040
|
+
oe as VueOverlay,
|
|
1041
|
+
_t as VueSelect,
|
|
1042
|
+
Ct as VueSwitch,
|
|
1043
|
+
Tt as VueTooltip,
|
|
1044
|
+
bt as showVueNotification,
|
|
1045
|
+
Pe as useDevToolsColorMode,
|
|
1046
|
+
Pt as vTooltip
|
|
966
1047
|
};
|