@deck9/ui 0.15.3 → 0.15.5
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/src/ui.mjs +340 -331
- package/dist/src/ui.umd.js +3 -3
- package/package.json +1 -1
package/dist/src/ui.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as A, computed as k, openBlock as R, createBlock as W, unref as _, mergeProps as ot, createCommentVNode as M, createElementBlock as
|
|
1
|
+
import { defineComponent as A, computed as k, openBlock as R, createBlock as W, unref as _, mergeProps as ot, createCommentVNode as M, createElementBlock as T, normalizeClass as $, createElementVNode as L, toDisplayString as G, createVNode as F, ref as C, getCurrentInstance as In, onMounted as ee, watch as Q, Fragment as be, withDirectives as An, vModelText as $n, normalizeStyle as Nt, cloneVNode as Mn, h as Oe, inject as he, provide as ye, watchEffect as xe, nextTick as B, onUnmounted as Ne, toRaw as X, shallowRef as Vn, getCurrentScope as Fn, onScopeDispose as Nn, shallowReadonly as me, withCtx as U, renderSlot as ht, Teleport as Bn, Transition as Bt, normalizeProps as jn, guardReactiveProps as zn, resolveDynamicComponent as Hn, isRef as Un, renderList as jt } from "vue";
|
|
2
2
|
import { FontAwesomeIcon as Wn } from "@fortawesome/vue-fontawesome";
|
|
3
3
|
import { library as lt } from "@fortawesome/fontawesome-svg-core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as d from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import * as Se from "@fortawesome/free-brands-svg-icons";
|
|
6
6
|
var zt = "fas", Ht = "numeric-input", Ut = 512, Wt = 512, Ze = [], Kt = "", Gt = "m409.445 111 2.112.004c34.066.146 46.74 3.848 59.517 10.681 13.037 6.973 23.268 17.204 30.24 30.241l.415.782c6.705 12.782 10.271 25.9 10.271 60.847v72.002c-.15 34.066-3.852 46.74-10.685 59.517-6.973 13.037-17.204 23.268-30.241 30.24l-.782.415C457.51 382.434 444.392 386 409.445 386h-306.89l-2.112-.004c-34.066-.146-46.74-3.848-59.517-10.681-13.037-6.973-23.268-17.204-30.24-30.241l-.415-.782C3.566 331.51 0 318.392 0 283.445v-69.89c0-35.66 3.713-48.592 10.685-61.629 6.973-13.037 17.204-23.268 30.241-30.24l.782-.415C54.49 114.566 67.608 111 102.555 111h306.89Zm.806 36H102.555l-2.387.005c-22.69.089-31.789 1.488-39.667 5.128l-.523.246c-.696.332-1.385.683-2.074 1.052-6.764 3.617-11.856 8.71-15.473 15.473l-.282.533c-4.492 8.62-6.116 17.401-6.148 43.312v71.502l.012 3.09c.161 24.044 1.9 32.308 6.418 40.755 3.617 6.764 8.71 11.856 15.473 15.473l.533.282c8.62 4.492 17.401 6.116 43.312 6.149h307.696c27.078 0 35.763-1.677 44.651-6.43 6.764-3.618 11.856-8.71 15.473-15.474l.282-.533c4.492-8.62 6.116-17.401 6.149-43.312v-70.696c0-27.078-1.677-35.763-6.43-44.651-3.618-6.764-8.71-11.856-15.474-15.473l-.533-.282c-8.62-4.492-17.401-6.116-43.312-6.149Zm-164.715 19c11.682 0 22.013 1.976 30.994 5.929 8.98 3.952 16.005 9.38 21.074 16.284 5.07 6.904 7.578 14.797 7.527 23.677.103 8.829-2.92 16.066-9.07 21.713-6.15 5.646-13.935 8.983-23.353 10.01v1.231c12.764 1.386 22.362 5.274 28.794 11.665 6.433 6.39 9.598 14.411 9.496 24.061.051 9.24-2.715 17.427-8.299 24.562-5.584 7.135-13.33 12.73-23.236 16.785-9.907 4.055-21.319 6.083-34.236 6.083-12.454 0-23.506-2.143-33.156-6.43-9.65-4.285-17.227-10.201-22.734-17.747-5.506-7.545-8.286-16.22-8.337-26.025h43.23c.051 3.029.99 5.737 2.817 8.124 1.827 2.386 4.336 4.247 7.527 5.582 3.19 1.334 6.845 2.002 10.962 2.002 3.962 0 7.462-.706 10.498-2.118 3.037-1.411 5.404-3.375 7.102-5.89 1.699-2.515 2.522-5.39 2.47-8.623.052-3.183-.913-6.006-2.894-8.47-1.982-2.464-4.748-4.389-8.299-5.775-3.55-1.386-7.642-2.079-12.274-2.079h-16.057v-29.566h16.057c4.271 0 8.041-.693 11.31-2.08 3.267-1.385 5.815-3.31 7.642-5.774s2.714-5.287 2.663-8.47c.051-3.08-.695-5.8-2.239-8.161-1.544-2.361-3.692-4.21-6.446-5.544-2.753-1.334-5.93-2.002-9.533-2.002-3.912 0-7.398.693-10.46 2.08-3.063 1.385-5.468 3.31-7.218 5.774s-2.65 5.287-2.702 8.47h-41.068c.051-9.65 2.715-18.172 7.99-25.563 5.275-7.392 12.518-13.192 21.73-17.401 9.212-4.21 19.788-6.314 31.728-6.314Zm-133.074 0c12.615 0 23.55 2.017 32.807 6.05 9.257 4.033 16.41 9.698 21.462 16.994 5.051 7.296 7.577 15.851 7.577 25.665 0 6.063-1.257 12.087-3.77 18.073-2.512 5.986-7.025 12.601-13.538 19.846-6.513 7.245-15.77 15.877-27.77 25.896l-14.768 12.331v.925H176V326H55.077v-30.829l58.77-48.709c3.897-3.237 7.243-6.28 10.038-9.133 2.794-2.851 4.948-5.793 6.461-8.824 1.513-3.032 2.27-6.397 2.27-10.097 0-4.059-.86-7.527-2.578-10.404-1.717-2.877-4.09-5.1-7.115-6.667-3.026-1.567-6.513-2.35-10.461-2.35-3.95 0-7.424.796-10.424 2.389-3 1.593-5.32 3.93-6.961 7.013-1.641 3.083-2.462 6.834-2.462 11.253H52c0-11.099 2.487-20.655 7.462-28.67 4.974-8.016 12-14.182 21.076-18.498 9.077-4.316 19.718-6.474 31.924-6.474Z";
|
|
7
7
|
const yt = {
|
|
@@ -21,106 +21,115 @@ const yt = {
|
|
|
21
21
|
aliases: Ze
|
|
22
22
|
};
|
|
23
23
|
lt.add(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
24
|
+
d.faAlignCenter,
|
|
25
|
+
d.faAlignLeft,
|
|
26
|
+
d.faAlignRight,
|
|
27
|
+
d.faArrowRight,
|
|
28
|
+
d.faArrowUp19,
|
|
29
|
+
d.faAsterisk,
|
|
30
|
+
d.faAt,
|
|
31
|
+
d.faBold,
|
|
32
|
+
d.faBolt,
|
|
33
|
+
d.faCalendar,
|
|
34
|
+
d.faChartPie,
|
|
35
|
+
d.faCheck,
|
|
36
|
+
d.faCheckCircle,
|
|
37
|
+
d.faChevronDown,
|
|
38
|
+
d.faChevronLeft,
|
|
39
|
+
d.faChevronRight,
|
|
40
|
+
d.faChevronUp,
|
|
41
|
+
d.faCircleCheck,
|
|
42
|
+
d.faCircleNodes,
|
|
43
|
+
d.faCircleNotch,
|
|
44
|
+
d.faClipboard,
|
|
45
|
+
d.faCloudDownload,
|
|
46
|
+
d.faCloudUpload,
|
|
47
|
+
d.faCode,
|
|
48
|
+
d.faCodeBranch,
|
|
49
|
+
d.faCodeFork,
|
|
50
|
+
d.faCog,
|
|
51
|
+
d.faCompass,
|
|
52
|
+
d.faCrown,
|
|
53
|
+
d.faDiagramProject,
|
|
54
|
+
d.faDoorOpen,
|
|
55
|
+
d.faDotCircle,
|
|
56
|
+
d.faEllipsis,
|
|
57
|
+
d.faEllipsisVertical,
|
|
58
|
+
d.faEnvelope,
|
|
59
|
+
d.faExclamationTriangle,
|
|
60
|
+
d.faExternalLink,
|
|
61
|
+
d.faEye,
|
|
62
|
+
d.faEyeDropper,
|
|
63
|
+
d.faEyeSlash,
|
|
64
|
+
d.faFileLines,
|
|
65
|
+
d.faFilePdf,
|
|
66
|
+
d.faFileUpload,
|
|
67
|
+
d.faFileVideo,
|
|
68
|
+
d.faFileWaveform,
|
|
69
|
+
d.faFilter,
|
|
70
|
+
d.faFilter,
|
|
71
|
+
d.faFingerprint,
|
|
72
|
+
d.faFont,
|
|
73
|
+
d.faGears,
|
|
74
|
+
d.faGlobe,
|
|
75
|
+
d.faGripHorizontal,
|
|
76
|
+
d.faGripVertical,
|
|
77
|
+
d.faHandPointRight,
|
|
78
|
+
d.faHandPointRight,
|
|
79
|
+
d.faHashtag,
|
|
80
|
+
d.faHeading,
|
|
81
|
+
d.faHeart,
|
|
82
|
+
d.faImage,
|
|
83
|
+
d.faInfoCircle,
|
|
84
|
+
d.faItalic,
|
|
85
|
+
d.faLayerGroup,
|
|
86
|
+
d.faLink,
|
|
87
|
+
d.faLinkSlash,
|
|
88
|
+
d.faList,
|
|
89
|
+
d.faListOl,
|
|
90
|
+
d.faListUl,
|
|
91
|
+
d.faLocationArrow,
|
|
92
|
+
d.faLocationCrosshairs,
|
|
93
|
+
d.faLock,
|
|
94
|
+
d.faLockOpen,
|
|
95
|
+
d.faMedal,
|
|
96
|
+
d.faMessage,
|
|
97
|
+
d.faMicrochip,
|
|
98
|
+
d.faPencilAlt,
|
|
99
|
+
d.faPenToSquare,
|
|
100
|
+
d.faPhone,
|
|
101
|
+
d.faPlayCircle,
|
|
102
|
+
d.faPlus,
|
|
103
|
+
d.faPlusCircle,
|
|
104
|
+
d.faPoo,
|
|
105
|
+
d.faPuzzlePiece,
|
|
106
|
+
d.faQuestion,
|
|
107
|
+
d.faQuoteLeft,
|
|
108
|
+
d.faQuoteRight,
|
|
109
|
+
d.faReply,
|
|
110
|
+
d.faReplyAll,
|
|
111
|
+
d.faRightLong,
|
|
112
|
+
d.faRobot,
|
|
113
|
+
d.faSave,
|
|
114
|
+
d.faShield,
|
|
115
|
+
d.faSignal,
|
|
116
|
+
d.faSignature,
|
|
117
|
+
d.faSignature,
|
|
118
|
+
d.faSquareCheck,
|
|
119
|
+
d.faStar,
|
|
120
|
+
d.faStrikethrough,
|
|
121
|
+
d.faTerminal,
|
|
122
|
+
d.faTextSlash,
|
|
123
|
+
d.faTimes,
|
|
124
|
+
d.faTrash,
|
|
125
|
+
d.faTree,
|
|
126
|
+
d.faTrophy,
|
|
127
|
+
d.faTurnDown,
|
|
128
|
+
d.faUnderline,
|
|
129
|
+
d.faUpload,
|
|
130
|
+
d.faUser,
|
|
131
|
+
d.faUserShield,
|
|
132
|
+
d.faWandMagicSparkles,
|
|
124
133
|
// Brands
|
|
125
134
|
Se.faTwitter,
|
|
126
135
|
Se.faInstagram,
|
|
@@ -200,14 +209,14 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
|
|
|
200
209
|
function i() {
|
|
201
210
|
o.isDisabled || l("onClick");
|
|
202
211
|
}
|
|
203
|
-
return (u, c) => (R(),
|
|
212
|
+
return (u, c) => (R(), T("button", {
|
|
204
213
|
class: $(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out", n.value]),
|
|
205
214
|
type: "button",
|
|
206
215
|
"aria-label": u.label,
|
|
207
216
|
tabindex: u.isDisabled ? "-1" : void 0,
|
|
208
217
|
onClick: i
|
|
209
218
|
}, [
|
|
210
|
-
|
|
219
|
+
L("div", {
|
|
211
220
|
class: $(!u.isLoading || "invisible")
|
|
212
221
|
}, [
|
|
213
222
|
u.icon && u.iconPosition === "left" ? (R(), W(z, {
|
|
@@ -215,14 +224,14 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
|
|
|
215
224
|
name: u.icon,
|
|
216
225
|
class: $(r.value)
|
|
217
226
|
}, null, 8, ["name", "class"])) : M("", !0),
|
|
218
|
-
|
|
227
|
+
L("span", null, G(u.label), 1),
|
|
219
228
|
u.icon && u.iconPosition === "right" ? (R(), W(z, {
|
|
220
229
|
key: 1,
|
|
221
230
|
name: u.icon,
|
|
222
231
|
class: $(r.value)
|
|
223
232
|
}, null, 8, ["name", "class"])) : M("", !0)
|
|
224
233
|
], 2),
|
|
225
|
-
u.isLoading ? (R(),
|
|
234
|
+
u.isLoading ? (R(), T("span", Xn, [
|
|
226
235
|
F(z, {
|
|
227
236
|
class: "animate-spin",
|
|
228
237
|
name: "circle-notch"
|
|
@@ -231,12 +240,12 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
|
|
|
231
240
|
], 10, qn));
|
|
232
241
|
}
|
|
233
242
|
});
|
|
234
|
-
let
|
|
243
|
+
let Le;
|
|
235
244
|
const Yn = new Uint8Array(16);
|
|
236
245
|
function Qn() {
|
|
237
|
-
if (!
|
|
246
|
+
if (!Le && (Le = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Le))
|
|
238
247
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
239
|
-
return
|
|
248
|
+
return Le(Yn);
|
|
240
249
|
}
|
|
241
250
|
const V = [];
|
|
242
251
|
for (let e = 0; e < 256; ++e)
|
|
@@ -276,9 +285,9 @@ const eo = { class: "relative flex items-start" }, to = { class: "flex items-cen
|
|
|
276
285
|
const l = t, o = (n) => {
|
|
277
286
|
l("update:modelValue", n.target.checked);
|
|
278
287
|
};
|
|
279
|
-
return (n, r) => (R(),
|
|
280
|
-
|
|
281
|
-
|
|
288
|
+
return (n, r) => (R(), T("div", eo, [
|
|
289
|
+
L("div", to, [
|
|
290
|
+
L("input", {
|
|
282
291
|
class: "h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",
|
|
283
292
|
type: "checkbox",
|
|
284
293
|
checked: n.modelValue,
|
|
@@ -286,12 +295,12 @@ const eo = { class: "relative flex items-start" }, to = { class: "flex items-cen
|
|
|
286
295
|
id: n.id
|
|
287
296
|
}, null, 40, no)
|
|
288
297
|
]),
|
|
289
|
-
|
|
290
|
-
|
|
298
|
+
L("div", oo, [
|
|
299
|
+
L("label", {
|
|
291
300
|
for: n.id,
|
|
292
301
|
class: "font-medium text-grey-700 dark:text-grey-200 casual-25"
|
|
293
302
|
}, G(n.label), 9, lo),
|
|
294
|
-
n.description ? (R(),
|
|
303
|
+
n.description ? (R(), T("p", ro, G(n.description), 1)) : M("", !0)
|
|
295
304
|
])
|
|
296
305
|
]));
|
|
297
306
|
}
|
|
@@ -477,13 +486,13 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
|
|
|
477
486
|
}
|
|
478
487
|
);
|
|
479
488
|
const i = l, { inputClasses: u, disabledClasses: c, textSizeClasses: a } = rt(o), s = k(() => o.type === "color" ? "text" : o.type), {
|
|
480
|
-
isSupported:
|
|
489
|
+
isSupported: f,
|
|
481
490
|
open: v,
|
|
482
|
-
sRGBHex:
|
|
491
|
+
sRGBHex: p
|
|
483
492
|
} = so(), g = () => {
|
|
484
493
|
v();
|
|
485
494
|
};
|
|
486
|
-
Q(
|
|
495
|
+
Q(p, (y) => {
|
|
487
496
|
r.value = y, i("update:modelValue", y);
|
|
488
497
|
});
|
|
489
498
|
const m = function(y) {
|
|
@@ -502,10 +511,10 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
|
|
|
502
511
|
focus: () => {
|
|
503
512
|
o.isDisabled || h.value.focus();
|
|
504
513
|
}
|
|
505
|
-
}), (y, x) => (R(),
|
|
514
|
+
}), (y, x) => (R(), T("div", {
|
|
506
515
|
class: $(["relative", [y.block ? "w-full block" : "inline-block"]])
|
|
507
516
|
}, [
|
|
508
|
-
|
|
517
|
+
L("input", ot({
|
|
509
518
|
class: ["relative mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [_(u), _(a), _(c)]],
|
|
510
519
|
placeholder: y.placeholder,
|
|
511
520
|
type: s.value,
|
|
@@ -516,9 +525,9 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
|
|
|
516
525
|
ref: n,
|
|
517
526
|
onInput: m
|
|
518
527
|
}), null, 16, Eo),
|
|
519
|
-
y.type === "color" ? (R(),
|
|
520
|
-
|
|
521
|
-
An(
|
|
528
|
+
y.type === "color" ? (R(), T(be, { key: 0 }, [
|
|
529
|
+
L("label", Do, [
|
|
530
|
+
An(L("input", {
|
|
522
531
|
class: "invisible",
|
|
523
532
|
type: "color",
|
|
524
533
|
"onUpdate:modelValue": x[0] || (x[0] = (w) => r.value = w),
|
|
@@ -526,12 +535,12 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
|
|
|
526
535
|
}, null, 544), [
|
|
527
536
|
[$n, r.value]
|
|
528
537
|
]),
|
|
529
|
-
|
|
538
|
+
L("span", {
|
|
530
539
|
class: "border-1 absolute inset-0 block rounded border border-grey-600/25 bg-clip-border shadow",
|
|
531
540
|
style: Nt(`background-color: ${r.value}`)
|
|
532
541
|
}, null, 4)
|
|
533
542
|
]),
|
|
534
|
-
_(
|
|
543
|
+
_(f) && y.showColorPicker ? (R(), T("button", {
|
|
535
544
|
key: 0,
|
|
536
545
|
type: "button",
|
|
537
546
|
class: "absolute inset-y-2 right-2 h-7 w-7 rounded-full hover:bg-grey-200",
|
|
@@ -542,7 +551,7 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
|
|
|
542
551
|
name: "eyedropper"
|
|
543
552
|
})
|
|
544
553
|
])) : M("", !0)
|
|
545
|
-
], 64)) : y.icon ? (R(),
|
|
554
|
+
], 64)) : y.icon ? (R(), T("span", {
|
|
546
555
|
key: 1,
|
|
547
556
|
class: $(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4", _(a)])
|
|
548
557
|
}, [
|
|
@@ -550,7 +559,7 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
|
|
|
550
559
|
], 2)) : M("", !0)
|
|
551
560
|
], 2));
|
|
552
561
|
}
|
|
553
|
-
}), Po = { class: "inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20" },
|
|
562
|
+
}), Po = { class: "inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20" }, Lo = ["for"], To = {
|
|
554
563
|
key: 0,
|
|
555
564
|
class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
|
|
556
565
|
}, Pr = /* @__PURE__ */ A({
|
|
@@ -561,9 +570,9 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
|
|
|
561
570
|
description: {}
|
|
562
571
|
},
|
|
563
572
|
setup(e) {
|
|
564
|
-
return (t, l) => (R(),
|
|
565
|
-
|
|
566
|
-
t.description ? (R(),
|
|
573
|
+
return (t, l) => (R(), T("span", Po, [
|
|
574
|
+
L("label", { for: t.id }, G(t.label), 9, Lo),
|
|
575
|
+
t.description ? (R(), T("span", To, G(t.description), 1)) : M("", !0)
|
|
567
576
|
]));
|
|
568
577
|
}
|
|
569
578
|
});
|
|
@@ -595,22 +604,22 @@ function Qe({ props: e, attrs: t, slots: l, slot: o, name: n }) {
|
|
|
595
604
|
var r, i;
|
|
596
605
|
let { as: u, ...c } = it(e, ["unmount", "static"]), a = (r = l.default) == null ? void 0 : r.call(l, o), s = {};
|
|
597
606
|
if (o) {
|
|
598
|
-
let
|
|
599
|
-
for (let [
|
|
600
|
-
typeof g == "boolean" && (
|
|
601
|
-
|
|
607
|
+
let f = !1, v = [];
|
|
608
|
+
for (let [p, g] of Object.entries(o))
|
|
609
|
+
typeof g == "boolean" && (f = !0), g === !0 && v.push(p);
|
|
610
|
+
f && (s["data-headlessui-state"] = v.join(" "));
|
|
602
611
|
}
|
|
603
612
|
if (u === "template") {
|
|
604
613
|
if (a = Qt(a ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
|
|
605
|
-
let [
|
|
606
|
-
if (!Ao(
|
|
614
|
+
let [f, ...v] = a ?? [];
|
|
615
|
+
if (!Ao(f) || v.length > 0)
|
|
607
616
|
throw new Error(['Passing props on "template"!', "", `The current component <${n} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(c).concat(Object.keys(t)).map((m) => m.trim()).filter((m, h, b) => b.indexOf(m) === h).sort((m, h) => m.localeCompare(h)).map((m) => ` - ${m}`).join(`
|
|
608
617
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => ` - ${m}`).join(`
|
|
609
618
|
`)].join(`
|
|
610
619
|
`));
|
|
611
|
-
let
|
|
612
|
-
for (let m in
|
|
613
|
-
m.startsWith("on") && (g.props || (g.props = {}), g.props[m] =
|
|
620
|
+
let p = Zt((i = f.props) != null ? i : {}, c), g = Mn(f, p);
|
|
621
|
+
for (let m in p)
|
|
622
|
+
m.startsWith("on") && (g.props || (g.props = {}), g.props[m] = p[m]);
|
|
614
623
|
return g;
|
|
615
624
|
}
|
|
616
625
|
return Array.isArray(a) && a.length === 1 ? a[0] : a;
|
|
@@ -847,11 +856,11 @@ function Xo(e, t, { sorted: l = !0, relativeTo: o = null, skipElements: n = [] }
|
|
|
847
856
|
if (t & 8)
|
|
848
857
|
return u.length - 1;
|
|
849
858
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
850
|
-
})(), s = t & 32 ? { preventScroll: !0 } : {},
|
|
859
|
+
})(), s = t & 32 ? { preventScroll: !0 } : {}, f = 0, v = u.length, p;
|
|
851
860
|
do {
|
|
852
|
-
if (
|
|
861
|
+
if (f >= v || f + v <= 0)
|
|
853
862
|
return 0;
|
|
854
|
-
let g = a +
|
|
863
|
+
let g = a + f;
|
|
855
864
|
if (t & 16)
|
|
856
865
|
g = (g + v) % v;
|
|
857
866
|
else {
|
|
@@ -860,11 +869,11 @@ function Xo(e, t, { sorted: l = !0, relativeTo: o = null, skipElements: n = [] }
|
|
|
860
869
|
if (g >= v)
|
|
861
870
|
return 1;
|
|
862
871
|
}
|
|
863
|
-
|
|
864
|
-
} while (
|
|
865
|
-
return t & 6 && Go(
|
|
872
|
+
p = u[g], p == null || p.focus(s), f += c;
|
|
873
|
+
} while (p !== i.activeElement);
|
|
874
|
+
return t & 6 && Go(p) && p.select(), 2;
|
|
866
875
|
}
|
|
867
|
-
function
|
|
876
|
+
function Te(e, t, l) {
|
|
868
877
|
st.isServer || xe((o) => {
|
|
869
878
|
document.addEventListener(e, t, l), o(() => document.removeEventListener(e, t, l));
|
|
870
879
|
});
|
|
@@ -894,15 +903,15 @@ function an(e, t, l = k(() => !0)) {
|
|
|
894
903
|
return !ze(u, je.Loose) && u.tabIndex !== -1 && r.preventDefault(), t(r, u);
|
|
895
904
|
}
|
|
896
905
|
let n = C(null);
|
|
897
|
-
|
|
906
|
+
Te("pointerdown", (r) => {
|
|
898
907
|
var i, u;
|
|
899
908
|
l.value && (n.value = ((u = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : u[0]) || r.target);
|
|
900
|
-
}, !0),
|
|
909
|
+
}, !0), Te("mousedown", (r) => {
|
|
901
910
|
var i, u;
|
|
902
911
|
l.value && (n.value = ((u = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : u[0]) || r.target);
|
|
903
|
-
}, !0),
|
|
912
|
+
}, !0), Te("click", (r) => {
|
|
904
913
|
n.value && (o(r, () => n.value), n.value = null);
|
|
905
|
-
}, !0),
|
|
914
|
+
}, !0), Te("touchend", (r) => o(r, () => r.target instanceof HTMLElement ? r.target : null), !0), Yo("blur", (r) => o(r, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
906
915
|
}
|
|
907
916
|
var dt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(dt || {});
|
|
908
917
|
let sn = A({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: l }) {
|
|
@@ -976,12 +985,12 @@ function Jo({ slot: e = C({}), name: t = "Description", props: l = {} } = {}) {
|
|
|
976
985
|
A({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${J()}` } }, setup(e, { attrs: t, slots: l }) {
|
|
977
986
|
let o = Zo();
|
|
978
987
|
return ee(() => Ne(o.register(e.id))), () => {
|
|
979
|
-
let { name: n = "Description", slot: r = C({}), props: i = {} } = o, { id: u, ...c } = e, a = { ...Object.entries(i).reduce((s, [
|
|
988
|
+
let { name: n = "Description", slot: r = C({}), props: i = {} } = o, { id: u, ...c } = e, a = { ...Object.entries(i).reduce((s, [f, v]) => Object.assign(s, { [f]: _(v) }), {}), id: u };
|
|
980
989
|
return j({ ourProps: a, theirProps: c, slot: r.value, attrs: t, slots: l, name: n });
|
|
981
990
|
};
|
|
982
991
|
} });
|
|
983
992
|
let Pt = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
984
|
-
function
|
|
993
|
+
function Lt(e) {
|
|
985
994
|
var t, l;
|
|
986
995
|
let o = (t = e.innerText) != null ? t : "", n = e.cloneNode(!0);
|
|
987
996
|
if (!(n instanceof HTMLElement))
|
|
@@ -1002,14 +1011,14 @@ function el(e) {
|
|
|
1002
1011
|
let r = document.getElementById(n);
|
|
1003
1012
|
if (r) {
|
|
1004
1013
|
let i = r.getAttribute("aria-label");
|
|
1005
|
-
return typeof i == "string" ? i.trim() :
|
|
1014
|
+
return typeof i == "string" ? i.trim() : Lt(r).trim();
|
|
1006
1015
|
}
|
|
1007
1016
|
return null;
|
|
1008
1017
|
}).filter(Boolean);
|
|
1009
1018
|
if (o.length > 0)
|
|
1010
1019
|
return o.join(", ");
|
|
1011
1020
|
}
|
|
1012
|
-
return
|
|
1021
|
+
return Lt(e).trim();
|
|
1013
1022
|
}
|
|
1014
1023
|
function vn(e) {
|
|
1015
1024
|
let t = C(""), l = C("");
|
|
@@ -1041,18 +1050,18 @@ function De(e) {
|
|
|
1041
1050
|
return t;
|
|
1042
1051
|
}
|
|
1043
1052
|
let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => tl }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: l, emit: o }) {
|
|
1044
|
-
let n = C(1), r = C(null), i = C(null), u = C(null), c = C([]), a = C(""), s = C(null),
|
|
1053
|
+
let n = C(1), r = C(null), i = C(null), u = C(null), c = C([]), a = C(""), s = C(null), f = C(1);
|
|
1045
1054
|
function v(x = (w) => w) {
|
|
1046
1055
|
let w = s.value !== null ? c.value[s.value] : null, S = ct(x(c.value.slice()), (O) => E(O.dataRef.domRef)), P = w ? S.indexOf(w) : null;
|
|
1047
1056
|
return P === -1 && (P = null), { options: S, activeOptionIndex: P };
|
|
1048
1057
|
}
|
|
1049
|
-
let
|
|
1058
|
+
let p = k(() => e.multiple ? 1 : 0), [g, m] = fn(k(() => e.modelValue), (x) => o("update:modelValue", x), k(() => e.defaultValue)), h = k(() => g.value === void 0 ? K(p.value, { 1: [], 0: void 0 }) : g.value), b = { listboxState: n, value: h, mode: p, compare(x, w) {
|
|
1050
1059
|
if (typeof e.by == "string") {
|
|
1051
1060
|
let S = e.by;
|
|
1052
1061
|
return (x == null ? void 0 : x[S]) === (w == null ? void 0 : w[S]);
|
|
1053
1062
|
}
|
|
1054
1063
|
return e.by(x, w);
|
|
1055
|
-
}, orientation: k(() => e.horizontal ? "horizontal" : "vertical"), labelRef: r, buttonRef: i, optionsRef: u, disabled: k(() => e.disabled), options: c, searchQuery: a, activeOptionIndex: s, activationTrigger:
|
|
1064
|
+
}, orientation: k(() => e.horizontal ? "horizontal" : "vertical"), labelRef: r, buttonRef: i, optionsRef: u, disabled: k(() => e.disabled), options: c, searchQuery: a, activeOptionIndex: s, activationTrigger: f, closeListbox() {
|
|
1056
1065
|
e.disabled || n.value !== 1 && (n.value = 1, s.value = null);
|
|
1057
1066
|
}, openListbox() {
|
|
1058
1067
|
e.disabled || n.value !== 0 && (n.value = 0);
|
|
@@ -1060,14 +1069,14 @@ let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
1060
1069
|
if (e.disabled || n.value === 1)
|
|
1061
1070
|
return;
|
|
1062
1071
|
let P = v(), O = en(x === I.Specific ? { focus: I.Specific, id: w } : { focus: x }, { resolveItems: () => P.options, resolveActiveIndex: () => P.activeOptionIndex, resolveId: (N) => N.id, resolveDisabled: (N) => N.dataRef.disabled });
|
|
1063
|
-
a.value = "", s.value = O,
|
|
1072
|
+
a.value = "", s.value = O, f.value = S ?? 1, c.value = P.options;
|
|
1064
1073
|
}, search(x) {
|
|
1065
1074
|
if (e.disabled || n.value === 1)
|
|
1066
1075
|
return;
|
|
1067
1076
|
let w = a.value !== "" ? 0 : 1;
|
|
1068
1077
|
a.value += x.toLowerCase();
|
|
1069
1078
|
let S = (s.value !== null ? c.value.slice(s.value + w).concat(c.value.slice(0, s.value + w)) : c.value).find((O) => O.dataRef.textValue.startsWith(a.value) && !O.dataRef.disabled), P = S ? c.value.indexOf(S) : -1;
|
|
1070
|
-
P === -1 || P === s.value || (s.value = P,
|
|
1079
|
+
P === -1 || P === s.value || (s.value = P, f.value = 1);
|
|
1071
1080
|
}, clearSearch() {
|
|
1072
1081
|
e.disabled || n.value !== 1 && a.value !== "" && (a.value = "");
|
|
1073
1082
|
}, registerOption(x, w) {
|
|
@@ -1078,11 +1087,11 @@ let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
1078
1087
|
let P = S.findIndex((O) => O.id === x);
|
|
1079
1088
|
return P !== -1 && S.splice(P, 1), S;
|
|
1080
1089
|
});
|
|
1081
|
-
c.value = w.options, s.value = w.activeOptionIndex,
|
|
1090
|
+
c.value = w.options, s.value = w.activeOptionIndex, f.value = 1;
|
|
1082
1091
|
}, theirOnChange(x) {
|
|
1083
1092
|
e.disabled || m(x);
|
|
1084
1093
|
}, select(x) {
|
|
1085
|
-
e.disabled || m(K(
|
|
1094
|
+
e.disabled || m(K(p.value, { 0: () => x, 1: () => {
|
|
1086
1095
|
let w = X(b.value.value).slice(), S = X(x), P = w.findIndex((O) => b.compare(S, X(O)));
|
|
1087
1096
|
return P === -1 ? w.push(S) : w.splice(P, 1), w;
|
|
1088
1097
|
} }));
|
|
@@ -1163,8 +1172,8 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
1163
1172
|
let c = at(k(() => ({ as: e.as, type: t.type })), n.buttonRef);
|
|
1164
1173
|
return () => {
|
|
1165
1174
|
var a, s;
|
|
1166
|
-
let
|
|
1167
|
-
return j({ ourProps: g, theirProps:
|
|
1175
|
+
let f = { open: n.listboxState.value === 0, disabled: n.disabled.value, value: n.value.value }, { id: v, ...p } = e, g = { ref: n.buttonRef, id: v, type: c.value, "aria-haspopup": "listbox", "aria-controls": (a = E(n.optionsRef)) == null ? void 0 : a.id, "aria-expanded": n.listboxState.value === 0, "aria-labelledby": n.labelRef.value ? [(s = E(n.labelRef)) == null ? void 0 : s.id, v].join(" ") : void 0, disabled: n.disabled.value === !0 ? !0 : void 0, onKeydown: r, onKeyup: i, onClick: u };
|
|
1176
|
+
return j({ ourProps: g, theirProps: p, slot: f, attrs: t, slots: l, name: "ListboxButton" });
|
|
1168
1177
|
};
|
|
1169
1178
|
} }), sl = A({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-listbox-options-${J()}` } }, setup(e, { attrs: t, slots: l, expose: o }) {
|
|
1170
1179
|
let n = De("ListboxOptions"), r = C(null);
|
|
@@ -1210,9 +1219,9 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
1210
1219
|
}
|
|
1211
1220
|
let u = nn(), c = k(() => u !== null ? (u.value & te.Open) === te.Open : n.listboxState.value === 0);
|
|
1212
1221
|
return () => {
|
|
1213
|
-
var a, s,
|
|
1214
|
-
let
|
|
1215
|
-
return j({ ourProps: h, theirProps: m, slot:
|
|
1222
|
+
var a, s, f, v;
|
|
1223
|
+
let p = { open: n.listboxState.value === 0 }, { id: g, ...m } = e, h = { "aria-activedescendant": n.activeOptionIndex.value === null || (a = n.options.value[n.activeOptionIndex.value]) == null ? void 0 : a.id, "aria-multiselectable": n.mode.value === 1 ? !0 : void 0, "aria-labelledby": (v = (s = E(n.labelRef)) == null ? void 0 : s.id) != null ? v : (f = E(n.buttonRef)) == null ? void 0 : f.id, "aria-orientation": n.orientation.value, id: g, onKeydown: i, role: "listbox", tabIndex: 0, ref: n.optionsRef };
|
|
1224
|
+
return j({ ourProps: h, theirProps: m, slot: p, attrs: t, slots: l, features: Re.RenderStrategy | Re.Static, visible: c.value, name: "ListboxOptions" });
|
|
1216
1225
|
};
|
|
1217
1226
|
} }), ul = A({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-listbox.option-${J()}` } }, setup(e, { slots: t, attrs: l, expose: o }) {
|
|
1218
1227
|
let n = De("ListboxOption"), r = C(null);
|
|
@@ -1238,7 +1247,7 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
1238
1247
|
return (y = (b = E(r)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
|
|
1239
1248
|
});
|
|
1240
1249
|
});
|
|
1241
|
-
function
|
|
1250
|
+
function f(b) {
|
|
1242
1251
|
if (e.disabled)
|
|
1243
1252
|
return b.preventDefault();
|
|
1244
1253
|
n.select(e.value), n.mode.value === 0 && (n.closeListbox(), B(() => {
|
|
@@ -1251,18 +1260,18 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
1251
1260
|
return n.goToOption(I.Nothing);
|
|
1252
1261
|
n.goToOption(I.Specific, e.id);
|
|
1253
1262
|
}
|
|
1254
|
-
let
|
|
1263
|
+
let p = pn();
|
|
1255
1264
|
function g(b) {
|
|
1256
|
-
|
|
1265
|
+
p.update(b);
|
|
1257
1266
|
}
|
|
1258
1267
|
function m(b) {
|
|
1259
|
-
|
|
1268
|
+
p.wasMoved(b) && (e.disabled || i.value || n.goToOption(I.Specific, e.id, 0));
|
|
1260
1269
|
}
|
|
1261
1270
|
function h(b) {
|
|
1262
|
-
|
|
1271
|
+
p.wasMoved(b) && (e.disabled || i.value && n.goToOption(I.Nothing));
|
|
1263
1272
|
}
|
|
1264
1273
|
return () => {
|
|
1265
|
-
let { disabled: b } = e, y = { active: i.value, selected: u.value, disabled: b }, { id: x, value: w, disabled: S, ...P } = e, O = { id: x, ref: r, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick:
|
|
1274
|
+
let { disabled: b } = e, y = { active: i.value, selected: u.value, disabled: b }, { id: x, value: w, disabled: S, ...P } = e, O = { id: x, ref: r, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick: f, onFocus: v, onPointerenter: g, onMouseenter: g, onPointermove: m, onMousemove: m, onPointerleave: h, onMouseleave: h };
|
|
1266
1275
|
return j({ ourProps: O, theirProps: P, slot: y, attrs: l, slots: t, name: "ListboxOption" });
|
|
1267
1276
|
};
|
|
1268
1277
|
} });
|
|
@@ -1281,37 +1290,37 @@ function He(e) {
|
|
|
1281
1290
|
}
|
|
1282
1291
|
let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: l }) {
|
|
1283
1292
|
let o = C(1), n = C(null), r = C(null), i = C([]), u = C(""), c = C(null), a = C(1);
|
|
1284
|
-
function s(v = (
|
|
1285
|
-
let
|
|
1293
|
+
function s(v = (p) => p) {
|
|
1294
|
+
let p = c.value !== null ? i.value[c.value] : null, g = ct(v(i.value.slice()), (h) => E(h.dataRef.domRef)), m = p ? g.indexOf(p) : null;
|
|
1286
1295
|
return m === -1 && (m = null), { items: g, activeItemIndex: m };
|
|
1287
1296
|
}
|
|
1288
|
-
let
|
|
1297
|
+
let f = { menuState: o, buttonRef: n, itemsRef: r, items: i, searchQuery: u, activeItemIndex: c, activationTrigger: a, closeMenu: () => {
|
|
1289
1298
|
o.value = 1, c.value = null;
|
|
1290
|
-
}, openMenu: () => o.value = 0, goToItem(v,
|
|
1291
|
-
let m = s(), h = en(v === I.Specific ? { focus: I.Specific, id:
|
|
1299
|
+
}, openMenu: () => o.value = 0, goToItem(v, p, g) {
|
|
1300
|
+
let m = s(), h = en(v === I.Specific ? { focus: I.Specific, id: p } : { focus: v }, { resolveItems: () => m.items, resolveActiveIndex: () => m.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
|
|
1292
1301
|
u.value = "", c.value = h, a.value = g ?? 1, i.value = m.items;
|
|
1293
1302
|
}, search(v) {
|
|
1294
|
-
let
|
|
1303
|
+
let p = u.value !== "" ? 0 : 1;
|
|
1295
1304
|
u.value += v.toLowerCase();
|
|
1296
|
-
let g = (c.value !== null ? i.value.slice(c.value +
|
|
1305
|
+
let g = (c.value !== null ? i.value.slice(c.value + p).concat(i.value.slice(0, c.value + p)) : i.value).find((h) => h.dataRef.textValue.startsWith(u.value) && !h.dataRef.disabled), m = g ? i.value.indexOf(g) : -1;
|
|
1297
1306
|
m === -1 || m === c.value || (c.value = m, a.value = 1);
|
|
1298
1307
|
}, clearSearch() {
|
|
1299
1308
|
u.value = "";
|
|
1300
|
-
}, registerItem(v,
|
|
1301
|
-
let g = s((m) => [...m, { id: v, dataRef:
|
|
1309
|
+
}, registerItem(v, p) {
|
|
1310
|
+
let g = s((m) => [...m, { id: v, dataRef: p }]);
|
|
1302
1311
|
i.value = g.items, c.value = g.activeItemIndex, a.value = 1;
|
|
1303
1312
|
}, unregisterItem(v) {
|
|
1304
|
-
let
|
|
1313
|
+
let p = s((g) => {
|
|
1305
1314
|
let m = g.findIndex((h) => h.id === v);
|
|
1306
1315
|
return m !== -1 && g.splice(m, 1), g;
|
|
1307
1316
|
});
|
|
1308
|
-
i.value =
|
|
1317
|
+
i.value = p.items, c.value = p.activeItemIndex, a.value = 1;
|
|
1309
1318
|
} };
|
|
1310
|
-
return an([n, r], (v,
|
|
1319
|
+
return an([n, r], (v, p) => {
|
|
1311
1320
|
var g;
|
|
1312
|
-
|
|
1313
|
-
}, k(() => o.value === 0)), ye(bn,
|
|
1314
|
-
let v = { open: o.value === 0, close:
|
|
1321
|
+
f.closeMenu(), ze(p, je.Loose) || (v.preventDefault(), (g = E(n)) == null || g.focus());
|
|
1322
|
+
}, k(() => o.value === 0)), ye(bn, f), on(k(() => K(o.value, { 0: te.Open, 1: te.Closed }))), () => {
|
|
1323
|
+
let v = { open: o.value === 0, close: f.closeMenu };
|
|
1315
1324
|
return j({ ourProps: {}, theirProps: e, slot: v, slots: t, attrs: l, name: "Menu" });
|
|
1316
1325
|
};
|
|
1317
1326
|
} }), ml = A({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-menu-button-${J()}` } }, setup(e, { attrs: t, slots: l, expose: o }) {
|
|
@@ -1354,8 +1363,8 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1354
1363
|
let c = at(k(() => ({ as: e.as, type: t.type })), n.buttonRef);
|
|
1355
1364
|
return () => {
|
|
1356
1365
|
var a;
|
|
1357
|
-
let s = { open: n.menuState.value === 0 }, { id:
|
|
1358
|
-
return j({ ourProps:
|
|
1366
|
+
let s = { open: n.menuState.value === 0 }, { id: f, ...v } = e, p = { ref: n.buttonRef, id: f, type: c.value, "aria-haspopup": "menu", "aria-controls": (a = E(n.itemsRef)) == null ? void 0 : a.id, "aria-expanded": n.menuState.value === 0, onKeydown: r, onKeyup: i, onClick: u };
|
|
1367
|
+
return j({ ourProps: p, theirProps: v, slot: s, attrs: t, slots: l, name: "MenuButton" });
|
|
1359
1368
|
};
|
|
1360
1369
|
} }), vl = A({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-menu-items-${J()}` } }, setup(e, { attrs: t, slots: l, expose: o }) {
|
|
1361
1370
|
let n = He("MenuItems"), r = C(null);
|
|
@@ -1365,7 +1374,7 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1365
1374
|
s.setAttribute("role", "none");
|
|
1366
1375
|
} });
|
|
1367
1376
|
function i(s) {
|
|
1368
|
-
var
|
|
1377
|
+
var f;
|
|
1369
1378
|
switch (r.value && clearTimeout(r.value), s.key) {
|
|
1370
1379
|
case D.Space:
|
|
1371
1380
|
if (n.searchQuery.value !== "")
|
|
@@ -1373,7 +1382,7 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1373
1382
|
case D.Enter:
|
|
1374
1383
|
if (s.preventDefault(), s.stopPropagation(), n.activeItemIndex.value !== null) {
|
|
1375
1384
|
let v = n.items.value[n.activeItemIndex.value];
|
|
1376
|
-
(
|
|
1385
|
+
(f = E(v.dataRef.domRef)) == null || f.click();
|
|
1377
1386
|
}
|
|
1378
1387
|
n.closeMenu(), rn(E(n.buttonRef));
|
|
1379
1388
|
break;
|
|
@@ -1410,8 +1419,8 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1410
1419
|
}
|
|
1411
1420
|
let c = nn(), a = k(() => c !== null ? (c.value & te.Open) === te.Open : n.menuState.value === 0);
|
|
1412
1421
|
return () => {
|
|
1413
|
-
var s,
|
|
1414
|
-
let v = { open: n.menuState.value === 0 }, { id:
|
|
1422
|
+
var s, f;
|
|
1423
|
+
let v = { open: n.menuState.value === 0 }, { id: p, ...g } = e, m = { "aria-activedescendant": n.activeItemIndex.value === null || (s = n.items.value[n.activeItemIndex.value]) == null ? void 0 : s.id, "aria-labelledby": (f = E(n.buttonRef)) == null ? void 0 : f.id, id: p, onKeydown: i, onKeyup: u, role: "menu", tabIndex: 0, ref: n.itemsRef };
|
|
1415
1424
|
return j({ ourProps: m, theirProps: g, slot: v, attrs: t, slots: l, features: Re.RenderStrategy | Re.Static, visible: a.value, name: "MenuItems" });
|
|
1416
1425
|
};
|
|
1417
1426
|
} }), gl = A({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-menu-item-${J()}` } }, setup(e, { slots: t, attrs: l, expose: o }) {
|
|
@@ -1436,19 +1445,19 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1436
1445
|
return n.goToItem(I.Nothing);
|
|
1437
1446
|
n.goToItem(I.Specific, e.id);
|
|
1438
1447
|
}
|
|
1439
|
-
let
|
|
1448
|
+
let f = pn();
|
|
1440
1449
|
function v(m) {
|
|
1441
|
-
|
|
1450
|
+
f.update(m);
|
|
1442
1451
|
}
|
|
1443
|
-
function
|
|
1444
|
-
|
|
1452
|
+
function p(m) {
|
|
1453
|
+
f.wasMoved(m) && (e.disabled || i.value || n.goToItem(I.Specific, e.id, 0));
|
|
1445
1454
|
}
|
|
1446
1455
|
function g(m) {
|
|
1447
|
-
|
|
1456
|
+
f.wasMoved(m) && (e.disabled || i.value && n.goToItem(I.Nothing));
|
|
1448
1457
|
}
|
|
1449
1458
|
return () => {
|
|
1450
1459
|
let { disabled: m } = e, h = { active: i.value, disabled: m, close: n.closeMenu }, { id: b, ...y } = e;
|
|
1451
|
-
return j({ ourProps: { id: b, ref: r, role: "menuitem", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, disabled: void 0, onClick: a, onFocus: s, onPointerenter: v, onMouseenter: v, onPointermove:
|
|
1460
|
+
return j({ ourProps: { id: b, ref: r, role: "menuitem", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, disabled: void 0, onClick: a, onFocus: s, onPointerenter: v, onMouseenter: v, onPointermove: p, onMousemove: p, onPointerleave: g, onMouseleave: g }, theirProps: { ...l, ...y }, slot: h, attrs: l, slots: t, name: "MenuItem" });
|
|
1452
1461
|
};
|
|
1453
1462
|
} }), hn = Symbol("LabelContext");
|
|
1454
1463
|
function yn() {
|
|
@@ -1472,7 +1481,7 @@ function bl({ slot: e = {}, name: t = "Label", props: l = {} } = {}) {
|
|
|
1472
1481
|
A({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-label-${J()}` } }, setup(e, { slots: t, attrs: l }) {
|
|
1473
1482
|
let o = yn();
|
|
1474
1483
|
return ee(() => Ne(o.register(e.id))), () => {
|
|
1475
|
-
let { name: n = "Label", slot: r = {}, props: i = {} } = o, { id: u, passive: c, ...a } = e, s = { ...Object.entries(i).reduce((
|
|
1484
|
+
let { name: n = "Label", slot: r = {}, props: i = {} } = o, { id: u, passive: c, ...a } = e, s = { ...Object.entries(i).reduce((f, [v, p]) => Object.assign(f, { [v]: _(p) }), {}), id: u };
|
|
1476
1485
|
return c && (delete s.onClick, delete s.htmlFor, delete a.onClick), j({ ourProps: s, theirProps: a, slot: r, attrs: l, slots: t, name: n });
|
|
1477
1486
|
};
|
|
1478
1487
|
} });
|
|
@@ -1491,12 +1500,12 @@ let hl = A({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: {
|
|
|
1491
1500
|
function c() {
|
|
1492
1501
|
u(!i.value);
|
|
1493
1502
|
}
|
|
1494
|
-
let a = C(null), s = r === null ? a : r.switchRef,
|
|
1503
|
+
let a = C(null), s = r === null ? a : r.switchRef, f = at(k(() => ({ as: e.as, type: l.type })), s);
|
|
1495
1504
|
n({ el: s, $el: s });
|
|
1496
1505
|
function v(h) {
|
|
1497
1506
|
h.preventDefault(), c();
|
|
1498
1507
|
}
|
|
1499
|
-
function
|
|
1508
|
+
function p(h) {
|
|
1500
1509
|
h.key === D.Space ? (h.preventDefault(), c()) : h.key === D.Enter && Qo(h.currentTarget);
|
|
1501
1510
|
}
|
|
1502
1511
|
function g(h) {
|
|
@@ -1519,7 +1528,7 @@ let hl = A({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: {
|
|
|
1519
1528
|
};
|
|
1520
1529
|
}, { immediate: !0 });
|
|
1521
1530
|
}), () => {
|
|
1522
|
-
let { id: h, name: b, value: y, form: x, ...w } = e, S = { checked: i.value }, P = { id: h, ref: s, role: "switch", type:
|
|
1531
|
+
let { id: h, name: b, value: y, form: x, ...w } = e, S = { checked: i.value }, P = { id: h, ref: s, role: "switch", type: f.value, tabIndex: 0, "aria-checked": i.value, "aria-labelledby": r == null ? void 0 : r.labelledby.value, "aria-describedby": r == null ? void 0 : r.describedby.value, onClick: v, onKeyup: p, onKeypress: g };
|
|
1523
1532
|
return Oe(be, [b != null && i.value != null ? Oe(sn, Jt({ features: dt.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: i.value, form: x, name: b, value: y })) : null, j({ ourProps: P, theirProps: { ...l, ...it(w, ["modelValue", "defaultChecked"]) }, slot: S, attrs: l, slots: o, name: "Switch" })]);
|
|
1524
1533
|
};
|
|
1525
1534
|
} });
|
|
@@ -1535,7 +1544,7 @@ const $e = Math.min, ue = Math.max, Me = Math.round, Ie = Math.floor, ae = (e) =
|
|
|
1535
1544
|
start: "end",
|
|
1536
1545
|
end: "start"
|
|
1537
1546
|
};
|
|
1538
|
-
function
|
|
1547
|
+
function Tt(e, t, l) {
|
|
1539
1548
|
return ue(e, $e(t, l));
|
|
1540
1549
|
}
|
|
1541
1550
|
function Ue(e, t) {
|
|
@@ -1624,48 +1633,48 @@ function It(e, t, l) {
|
|
|
1624
1633
|
reference: o,
|
|
1625
1634
|
floating: n
|
|
1626
1635
|
} = e;
|
|
1627
|
-
const r = Ke(t), i = Sn(t), u = kn(i), c = ce(t), a = r === "y", s = o.x + o.width / 2 - n.width / 2,
|
|
1628
|
-
let
|
|
1636
|
+
const r = Ke(t), i = Sn(t), u = kn(i), c = ce(t), a = r === "y", s = o.x + o.width / 2 - n.width / 2, f = o.y + o.height / 2 - n.height / 2, v = o[u] / 2 - n[u] / 2;
|
|
1637
|
+
let p;
|
|
1629
1638
|
switch (c) {
|
|
1630
1639
|
case "top":
|
|
1631
|
-
|
|
1640
|
+
p = {
|
|
1632
1641
|
x: s,
|
|
1633
1642
|
y: o.y - n.height
|
|
1634
1643
|
};
|
|
1635
1644
|
break;
|
|
1636
1645
|
case "bottom":
|
|
1637
|
-
|
|
1646
|
+
p = {
|
|
1638
1647
|
x: s,
|
|
1639
1648
|
y: o.y + o.height
|
|
1640
1649
|
};
|
|
1641
1650
|
break;
|
|
1642
1651
|
case "right":
|
|
1643
|
-
|
|
1652
|
+
p = {
|
|
1644
1653
|
x: o.x + o.width,
|
|
1645
|
-
y:
|
|
1654
|
+
y: f
|
|
1646
1655
|
};
|
|
1647
1656
|
break;
|
|
1648
1657
|
case "left":
|
|
1649
|
-
|
|
1658
|
+
p = {
|
|
1650
1659
|
x: o.x - n.width,
|
|
1651
|
-
y:
|
|
1660
|
+
y: f
|
|
1652
1661
|
};
|
|
1653
1662
|
break;
|
|
1654
1663
|
default:
|
|
1655
|
-
|
|
1664
|
+
p = {
|
|
1656
1665
|
x: o.x,
|
|
1657
1666
|
y: o.y
|
|
1658
1667
|
};
|
|
1659
1668
|
}
|
|
1660
1669
|
switch (We(t)) {
|
|
1661
1670
|
case "start":
|
|
1662
|
-
|
|
1671
|
+
p[i] -= v * (l && a ? -1 : 1);
|
|
1663
1672
|
break;
|
|
1664
1673
|
case "end":
|
|
1665
|
-
|
|
1674
|
+
p[i] += v * (l && a ? -1 : 1);
|
|
1666
1675
|
break;
|
|
1667
1676
|
}
|
|
1668
|
-
return
|
|
1677
|
+
return p;
|
|
1669
1678
|
}
|
|
1670
1679
|
const El = async (e, t, l) => {
|
|
1671
1680
|
const {
|
|
@@ -1680,8 +1689,8 @@ const El = async (e, t, l) => {
|
|
|
1680
1689
|
strategy: n
|
|
1681
1690
|
}), {
|
|
1682
1691
|
x: s,
|
|
1683
|
-
y:
|
|
1684
|
-
} = It(a, o, c), v = o,
|
|
1692
|
+
y: f
|
|
1693
|
+
} = It(a, o, c), v = o, p = {}, g = 0;
|
|
1685
1694
|
for (let m = 0; m < u.length; m++) {
|
|
1686
1695
|
const {
|
|
1687
1696
|
name: h,
|
|
@@ -1693,11 +1702,11 @@ const El = async (e, t, l) => {
|
|
|
1693
1702
|
reset: S
|
|
1694
1703
|
} = await b({
|
|
1695
1704
|
x: s,
|
|
1696
|
-
y:
|
|
1705
|
+
y: f,
|
|
1697
1706
|
initialPlacement: o,
|
|
1698
1707
|
placement: v,
|
|
1699
1708
|
strategy: n,
|
|
1700
|
-
middlewareData:
|
|
1709
|
+
middlewareData: p,
|
|
1701
1710
|
rects: a,
|
|
1702
1711
|
platform: i,
|
|
1703
1712
|
elements: {
|
|
@@ -1705,10 +1714,10 @@ const El = async (e, t, l) => {
|
|
|
1705
1714
|
floating: t
|
|
1706
1715
|
}
|
|
1707
1716
|
});
|
|
1708
|
-
if (s = y ?? s,
|
|
1709
|
-
...
|
|
1717
|
+
if (s = y ?? s, f = x ?? f, p = {
|
|
1718
|
+
...p,
|
|
1710
1719
|
[h]: {
|
|
1711
|
-
...
|
|
1720
|
+
...p[h],
|
|
1712
1721
|
...w
|
|
1713
1722
|
}
|
|
1714
1723
|
}, S && g <= 50) {
|
|
@@ -1718,17 +1727,17 @@ const El = async (e, t, l) => {
|
|
|
1718
1727
|
strategy: n
|
|
1719
1728
|
}) : S.rects), {
|
|
1720
1729
|
x: s,
|
|
1721
|
-
y:
|
|
1730
|
+
y: f
|
|
1722
1731
|
} = It(a, v, c)), m = -1;
|
|
1723
1732
|
continue;
|
|
1724
1733
|
}
|
|
1725
1734
|
}
|
|
1726
1735
|
return {
|
|
1727
1736
|
x: s,
|
|
1728
|
-
y:
|
|
1737
|
+
y: f,
|
|
1729
1738
|
placement: v,
|
|
1730
1739
|
strategy: n,
|
|
1731
|
-
middlewareData:
|
|
1740
|
+
middlewareData: p
|
|
1732
1741
|
};
|
|
1733
1742
|
};
|
|
1734
1743
|
async function Cn(e, t) {
|
|
@@ -1744,15 +1753,15 @@ async function Cn(e, t) {
|
|
|
1744
1753
|
} = e, {
|
|
1745
1754
|
boundary: a = "clippingAncestors",
|
|
1746
1755
|
rootBoundary: s = "viewport",
|
|
1747
|
-
elementContext:
|
|
1756
|
+
elementContext: f = "floating",
|
|
1748
1757
|
altBoundary: v = !1,
|
|
1749
|
-
padding:
|
|
1750
|
-
} = Ue(t, e), g = Rl(
|
|
1758
|
+
padding: p = 0
|
|
1759
|
+
} = Ue(t, e), g = Rl(p), h = u[v ? f === "floating" ? "reference" : "floating" : f], b = Fe(await r.getClippingRect({
|
|
1751
1760
|
element: (l = await (r.isElement == null ? void 0 : r.isElement(h))) == null || l ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(u.floating)),
|
|
1752
1761
|
boundary: a,
|
|
1753
1762
|
rootBoundary: s,
|
|
1754
1763
|
strategy: c
|
|
1755
|
-
})), y =
|
|
1764
|
+
})), y = f === "floating" ? {
|
|
1756
1765
|
...i.floating,
|
|
1757
1766
|
x: o,
|
|
1758
1767
|
y: n
|
|
@@ -1789,9 +1798,9 @@ const Dl = function(e) {
|
|
|
1789
1798
|
elements: a
|
|
1790
1799
|
} = t, {
|
|
1791
1800
|
mainAxis: s = !0,
|
|
1792
|
-
crossAxis:
|
|
1801
|
+
crossAxis: f = !0,
|
|
1793
1802
|
fallbackPlacements: v,
|
|
1794
|
-
fallbackStrategy:
|
|
1803
|
+
fallbackStrategy: p = "bestFit",
|
|
1795
1804
|
fallbackAxisSideDirection: g = "none",
|
|
1796
1805
|
flipAlignment: m = !0,
|
|
1797
1806
|
...h
|
|
@@ -1802,7 +1811,7 @@ const Dl = function(e) {
|
|
|
1802
1811
|
!v && g !== "none" && w.push(...Cl(u, m, g, x));
|
|
1803
1812
|
const S = [u, ...w], P = await Cn(t, h), O = [];
|
|
1804
1813
|
let N = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
1805
|
-
if (s && O.push(P[b]),
|
|
1814
|
+
if (s && O.push(P[b]), f) {
|
|
1806
1815
|
const se = wl(n, i, x);
|
|
1807
1816
|
O.push(P[se[0]], P[se[1]]);
|
|
1808
1817
|
}
|
|
@@ -1824,10 +1833,10 @@ const Dl = function(e) {
|
|
|
1824
1833
|
};
|
|
1825
1834
|
let we = (Pe = N.filter((fe) => fe.overflows[0] <= 0).sort((fe, pe) => fe.overflows[1] - pe.overflows[1])[0]) == null ? void 0 : Pe.placement;
|
|
1826
1835
|
if (!we)
|
|
1827
|
-
switch (
|
|
1836
|
+
switch (p) {
|
|
1828
1837
|
case "bestFit": {
|
|
1829
1838
|
var gt;
|
|
1830
|
-
const fe = (gt = N.map((pe) => [pe.placement, pe.overflows.filter((ke) => ke > 0).reduce((ke,
|
|
1839
|
+
const fe = (gt = N.map((pe) => [pe.placement, pe.overflows.filter((ke) => ke > 0).reduce((ke, Tn) => ke + Tn, 0)]).sort((pe, ke) => pe[1] - ke[1])[0]) == null ? void 0 : gt[0];
|
|
1831
1840
|
fe && (we = fe);
|
|
1832
1841
|
break;
|
|
1833
1842
|
}
|
|
@@ -1851,27 +1860,27 @@ async function _l(e, t) {
|
|
|
1851
1860
|
placement: l,
|
|
1852
1861
|
platform: o,
|
|
1853
1862
|
elements: n
|
|
1854
|
-
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), i = ce(l), u = We(l), c = Ke(l) === "y", a = ["left", "top"].includes(i) ? -1 : 1, s = r && c ? -1 : 1,
|
|
1863
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), i = ce(l), u = We(l), c = Ke(l) === "y", a = ["left", "top"].includes(i) ? -1 : 1, s = r && c ? -1 : 1, f = Ue(t, e);
|
|
1855
1864
|
let {
|
|
1856
1865
|
mainAxis: v,
|
|
1857
|
-
crossAxis:
|
|
1866
|
+
crossAxis: p,
|
|
1858
1867
|
alignmentAxis: g
|
|
1859
|
-
} = typeof
|
|
1860
|
-
mainAxis:
|
|
1868
|
+
} = typeof f == "number" ? {
|
|
1869
|
+
mainAxis: f,
|
|
1861
1870
|
crossAxis: 0,
|
|
1862
1871
|
alignmentAxis: null
|
|
1863
1872
|
} : {
|
|
1864
1873
|
mainAxis: 0,
|
|
1865
1874
|
crossAxis: 0,
|
|
1866
1875
|
alignmentAxis: null,
|
|
1867
|
-
...
|
|
1876
|
+
...f
|
|
1868
1877
|
};
|
|
1869
|
-
return u && typeof g == "number" && (
|
|
1870
|
-
x:
|
|
1878
|
+
return u && typeof g == "number" && (p = u === "end" ? g * -1 : g), c ? {
|
|
1879
|
+
x: p * s,
|
|
1871
1880
|
y: v * a
|
|
1872
1881
|
} : {
|
|
1873
1882
|
x: v * a,
|
|
1874
|
-
y:
|
|
1883
|
+
y: p * s
|
|
1875
1884
|
};
|
|
1876
1885
|
}
|
|
1877
1886
|
const Pl = function(e) {
|
|
@@ -1896,7 +1905,7 @@ const Pl = function(e) {
|
|
|
1896
1905
|
};
|
|
1897
1906
|
}
|
|
1898
1907
|
};
|
|
1899
|
-
},
|
|
1908
|
+
}, Ll = function(e) {
|
|
1900
1909
|
return e === void 0 && (e = {}), {
|
|
1901
1910
|
name: "shift",
|
|
1902
1911
|
options: e,
|
|
@@ -1924,20 +1933,20 @@ const Pl = function(e) {
|
|
|
1924
1933
|
} = Ue(e, t), a = {
|
|
1925
1934
|
x: l,
|
|
1926
1935
|
y: o
|
|
1927
|
-
}, s = await Cn(t, c),
|
|
1928
|
-
let
|
|
1936
|
+
}, s = await Cn(t, c), f = Ke(ce(n)), v = wn(f);
|
|
1937
|
+
let p = a[v], g = a[f];
|
|
1929
1938
|
if (r) {
|
|
1930
|
-
const h = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", y =
|
|
1931
|
-
|
|
1939
|
+
const h = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", y = p + s[h], x = p - s[b];
|
|
1940
|
+
p = Tt(y, p, x);
|
|
1932
1941
|
}
|
|
1933
1942
|
if (i) {
|
|
1934
|
-
const h =
|
|
1935
|
-
g =
|
|
1943
|
+
const h = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", y = g + s[h], x = g - s[b];
|
|
1944
|
+
g = Tt(y, g, x);
|
|
1936
1945
|
}
|
|
1937
1946
|
const m = u.fn({
|
|
1938
1947
|
...t,
|
|
1939
|
-
[v]:
|
|
1940
|
-
[
|
|
1948
|
+
[v]: p,
|
|
1949
|
+
[f]: g
|
|
1941
1950
|
});
|
|
1942
1951
|
return {
|
|
1943
1952
|
...m,
|
|
@@ -1981,7 +1990,7 @@ function _e(e) {
|
|
|
1981
1990
|
} = q(e);
|
|
1982
1991
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + l) && !["inline", "contents"].includes(n);
|
|
1983
1992
|
}
|
|
1984
|
-
function
|
|
1993
|
+
function Tl(e) {
|
|
1985
1994
|
return ["table", "td", "th"].includes(ne(e));
|
|
1986
1995
|
}
|
|
1987
1996
|
function pt(e) {
|
|
@@ -2082,18 +2091,18 @@ function de(e, t, l, o) {
|
|
|
2082
2091
|
let i = ae(1);
|
|
2083
2092
|
t && (o ? oe(o) && (i = ve(o)) : i = ve(e));
|
|
2084
2093
|
const u = $l(r, l, o) ? En(r) : ae(0);
|
|
2085
|
-
let c = (n.left + u.x) / i.x, a = (n.top + u.y) / i.y, s = n.width / i.x,
|
|
2094
|
+
let c = (n.left + u.x) / i.x, a = (n.top + u.y) / i.y, s = n.width / i.x, f = n.height / i.y;
|
|
2086
2095
|
if (r) {
|
|
2087
|
-
const v = H(r),
|
|
2096
|
+
const v = H(r), p = o && oe(o) ? H(o) : o;
|
|
2088
2097
|
let g = v.frameElement;
|
|
2089
|
-
for (; g && o &&
|
|
2098
|
+
for (; g && o && p !== v; ) {
|
|
2090
2099
|
const m = ve(g), h = g.getBoundingClientRect(), b = q(g), y = h.left + (g.clientLeft + parseFloat(b.paddingLeft)) * m.x, x = h.top + (g.clientTop + parseFloat(b.paddingTop)) * m.y;
|
|
2091
|
-
c *= m.x, a *= m.y, s *= m.x,
|
|
2100
|
+
c *= m.x, a *= m.y, s *= m.x, f *= m.y, c += y, a += x, g = H(g).frameElement;
|
|
2092
2101
|
}
|
|
2093
2102
|
}
|
|
2094
2103
|
return Fe({
|
|
2095
2104
|
width: s,
|
|
2096
|
-
height:
|
|
2105
|
+
height: f,
|
|
2097
2106
|
x: c,
|
|
2098
2107
|
y: a
|
|
2099
2108
|
});
|
|
@@ -2207,8 +2216,8 @@ function zl(e) {
|
|
|
2207
2216
|
strategy: n
|
|
2208
2217
|
} = e;
|
|
2209
2218
|
const i = [...l === "clippingAncestors" ? jl(t, this._c) : [].concat(l), o], u = i[0], c = i.reduce((a, s) => {
|
|
2210
|
-
const
|
|
2211
|
-
return a.top = ue(
|
|
2219
|
+
const f = $t(t, s, n);
|
|
2220
|
+
return a.top = ue(f.top, a.top), a.right = $e(f.right, a.right), a.bottom = $e(f.bottom, a.bottom), a.left = ue(f.left, a.left), a;
|
|
2212
2221
|
}, $t(t, u, n));
|
|
2213
2222
|
return {
|
|
2214
2223
|
width: c.right - c.left,
|
|
@@ -2255,7 +2264,7 @@ function Pn(e, t) {
|
|
|
2255
2264
|
if (!Z(e))
|
|
2256
2265
|
return l;
|
|
2257
2266
|
let o = Mt(e, t);
|
|
2258
|
-
for (; o &&
|
|
2267
|
+
for (; o && Tl(o) && q(o).position === "static"; )
|
|
2259
2268
|
o = Mt(o, t);
|
|
2260
2269
|
return o && (ne(o) === "html" || ne(o) === "body" && q(o).position === "static" && !pt(o)) ? l : o || Il(e) || l;
|
|
2261
2270
|
}
|
|
@@ -2301,13 +2310,13 @@ function ql(e, t) {
|
|
|
2301
2310
|
const {
|
|
2302
2311
|
left: a,
|
|
2303
2312
|
top: s,
|
|
2304
|
-
width:
|
|
2313
|
+
width: f,
|
|
2305
2314
|
height: v
|
|
2306
2315
|
} = e.getBoundingClientRect();
|
|
2307
|
-
if (u || t(), !
|
|
2316
|
+
if (u || t(), !f || !v)
|
|
2308
2317
|
return;
|
|
2309
|
-
const
|
|
2310
|
-
rootMargin: -
|
|
2318
|
+
const p = Ie(s), g = Ie(n.clientWidth - (a + f)), m = Ie(n.clientHeight - (s + v)), h = Ie(a), y = {
|
|
2319
|
+
rootMargin: -p + "px " + -g + "px " + -m + "px " + -h + "px",
|
|
2311
2320
|
threshold: ue(0, $e(1, c)) || 1
|
|
2312
2321
|
};
|
|
2313
2322
|
let x = !0;
|
|
@@ -2349,14 +2358,14 @@ function Xl(e, t, l, o) {
|
|
|
2349
2358
|
passive: !0
|
|
2350
2359
|
}), r && b.addEventListener("resize", l);
|
|
2351
2360
|
});
|
|
2352
|
-
const
|
|
2353
|
-
let v = -1,
|
|
2354
|
-
i && (
|
|
2361
|
+
const f = a && u ? ql(a, l) : null;
|
|
2362
|
+
let v = -1, p = null;
|
|
2363
|
+
i && (p = new ResizeObserver((b) => {
|
|
2355
2364
|
let [y] = b;
|
|
2356
|
-
y && y.target === a &&
|
|
2357
|
-
|
|
2365
|
+
y && y.target === a && p && (p.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
2366
|
+
p && p.observe(t);
|
|
2358
2367
|
})), l();
|
|
2359
|
-
}), a && !c &&
|
|
2368
|
+
}), a && !c && p.observe(a), p.observe(t));
|
|
2360
2369
|
let g, m = c ? de(e) : null;
|
|
2361
2370
|
c && h();
|
|
2362
2371
|
function h() {
|
|
@@ -2366,10 +2375,10 @@ function Xl(e, t, l, o) {
|
|
|
2366
2375
|
return l(), () => {
|
|
2367
2376
|
s.forEach((b) => {
|
|
2368
2377
|
n && b.removeEventListener("scroll", l), r && b.removeEventListener("resize", l);
|
|
2369
|
-
}),
|
|
2378
|
+
}), f && f(), p && p.disconnect(), p = null, c && cancelAnimationFrame(g);
|
|
2370
2379
|
};
|
|
2371
2380
|
}
|
|
2372
|
-
const Yl =
|
|
2381
|
+
const Yl = Ll, Ql = Dl, Zl = (e, t, l) => {
|
|
2373
2382
|
const o = /* @__PURE__ */ new Map(), n = {
|
|
2374
2383
|
platform: Gl,
|
|
2375
2384
|
...l
|
|
@@ -2392,11 +2401,11 @@ function Vt(e) {
|
|
|
2392
2401
|
}
|
|
2393
2402
|
return e;
|
|
2394
2403
|
}
|
|
2395
|
-
function
|
|
2404
|
+
function Ln(e) {
|
|
2396
2405
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2397
2406
|
}
|
|
2398
2407
|
function Ft(e, t) {
|
|
2399
|
-
const l =
|
|
2408
|
+
const l = Ln(e);
|
|
2400
2409
|
return Math.round(t * l) / l;
|
|
2401
2410
|
}
|
|
2402
2411
|
function er(e, t, l) {
|
|
@@ -2413,23 +2422,23 @@ function er(e, t, l) {
|
|
|
2413
2422
|
}), c = k(() => {
|
|
2414
2423
|
var O;
|
|
2415
2424
|
return (O = _(l.transform)) != null ? O : !0;
|
|
2416
|
-
}), a = k(() => Vt(e.value)), s = k(() => Vt(t.value)),
|
|
2425
|
+
}), a = k(() => Vt(e.value)), s = k(() => Vt(t.value)), f = C(0), v = C(0), p = C(u.value), g = C(i.value), m = Vn({}), h = C(!1), b = k(() => {
|
|
2417
2426
|
const O = {
|
|
2418
|
-
position:
|
|
2427
|
+
position: p.value,
|
|
2419
2428
|
left: "0",
|
|
2420
2429
|
top: "0"
|
|
2421
2430
|
};
|
|
2422
2431
|
if (!s.value)
|
|
2423
2432
|
return O;
|
|
2424
|
-
const N = Ft(s.value,
|
|
2433
|
+
const N = Ft(s.value, f.value), re = Ft(s.value, v.value);
|
|
2425
2434
|
return c.value ? {
|
|
2426
2435
|
...O,
|
|
2427
2436
|
transform: "translate(" + N + "px, " + re + "px)",
|
|
2428
|
-
...
|
|
2437
|
+
...Ln(s.value) >= 1.5 && {
|
|
2429
2438
|
willChange: "transform"
|
|
2430
2439
|
}
|
|
2431
2440
|
} : {
|
|
2432
|
-
position:
|
|
2441
|
+
position: p.value,
|
|
2433
2442
|
left: N + "px",
|
|
2434
2443
|
top: re + "px"
|
|
2435
2444
|
};
|
|
@@ -2441,7 +2450,7 @@ function er(e, t, l) {
|
|
|
2441
2450
|
placement: i.value,
|
|
2442
2451
|
strategy: u.value
|
|
2443
2452
|
}).then((O) => {
|
|
2444
|
-
|
|
2453
|
+
f.value = O.x, v.value = O.y, p.value = O.strategy, g.value = O.placement, m.value = O.middlewareData, h.value = !0;
|
|
2445
2454
|
});
|
|
2446
2455
|
}
|
|
2447
2456
|
function w() {
|
|
@@ -2467,9 +2476,9 @@ function er(e, t, l) {
|
|
|
2467
2476
|
}), Q(n, P, {
|
|
2468
2477
|
flush: "sync"
|
|
2469
2478
|
}), Fn() && Nn(w), {
|
|
2470
|
-
x: me(
|
|
2479
|
+
x: me(f),
|
|
2471
2480
|
y: me(v),
|
|
2472
|
-
strategy: me(
|
|
2481
|
+
strategy: me(p),
|
|
2473
2482
|
placement: me(g),
|
|
2474
2483
|
middlewareData: me(m),
|
|
2475
2484
|
isPositioned: me(h),
|
|
@@ -2477,7 +2486,7 @@ function er(e, t, l) {
|
|
|
2477
2486
|
update: x
|
|
2478
2487
|
};
|
|
2479
2488
|
}
|
|
2480
|
-
const
|
|
2489
|
+
const Lr = /* @__PURE__ */ A({
|
|
2481
2490
|
__name: "MenuContainer",
|
|
2482
2491
|
props: {
|
|
2483
2492
|
position: { default: "left" },
|
|
@@ -2513,7 +2522,7 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2513
2522
|
to: typeof i.usePortal == "string" ? i.usePortal : "body",
|
|
2514
2523
|
disabled: !i.usePortal
|
|
2515
2524
|
}, [
|
|
2516
|
-
|
|
2525
|
+
L("div", {
|
|
2517
2526
|
class: "w-56 z-20",
|
|
2518
2527
|
style: Nt(_(r)),
|
|
2519
2528
|
ref_key: "floating",
|
|
@@ -2550,7 +2559,7 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2550
2559
|
}), tr = {
|
|
2551
2560
|
key: 0,
|
|
2552
2561
|
class: "bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"
|
|
2553
|
-
},
|
|
2562
|
+
}, Tr = /* @__PURE__ */ A({
|
|
2554
2563
|
__name: "MenuLink",
|
|
2555
2564
|
props: {
|
|
2556
2565
|
label: {},
|
|
@@ -2568,8 +2577,8 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2568
2577
|
]])
|
|
2569
2578
|
}, {
|
|
2570
2579
|
default: U(() => [
|
|
2571
|
-
|
|
2572
|
-
t.meta ? (R(),
|
|
2580
|
+
L("span", null, G(t.label), 1),
|
|
2581
|
+
t.meta ? (R(), T("span", tr, G(t.meta), 1)) : M("", !0)
|
|
2573
2582
|
]),
|
|
2574
2583
|
_: 2
|
|
2575
2584
|
}, 1032, ["class"]))
|
|
@@ -2618,24 +2627,24 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2618
2627
|
disabled: c.isDisabled
|
|
2619
2628
|
}, {
|
|
2620
2629
|
default: U(() => [
|
|
2621
|
-
|
|
2630
|
+
L("div", nr, [
|
|
2622
2631
|
F(_(al), {
|
|
2623
2632
|
class: $(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left", [_(r), _(u), _(i)]])
|
|
2624
2633
|
}, {
|
|
2625
2634
|
default: U(() => {
|
|
2626
2635
|
var s;
|
|
2627
2636
|
return [
|
|
2628
|
-
c.icon ? (R(),
|
|
2637
|
+
c.icon ? (R(), T("span", or, [
|
|
2629
2638
|
F(z, {
|
|
2630
2639
|
name: ((s = _(o)) == null ? void 0 : s.icon) ?? c.icon
|
|
2631
2640
|
}, null, 8, ["name"])
|
|
2632
2641
|
])) : M("", !0),
|
|
2633
|
-
_(o) ? (R(),
|
|
2634
|
-
|
|
2642
|
+
_(o) ? (R(), T("span", lr, [
|
|
2643
|
+
L("span", {
|
|
2635
2644
|
innerHTML: _(o).label
|
|
2636
2645
|
}, null, 8, rr)
|
|
2637
|
-
])) : (R(),
|
|
2638
|
-
|
|
2646
|
+
])) : (R(), T("span", ir, G(c.placeholder), 1)),
|
|
2647
|
+
L("span", ar, [
|
|
2639
2648
|
F(z, {
|
|
2640
2649
|
class: "text-grey-400",
|
|
2641
2650
|
name: "chevron-down",
|
|
@@ -2654,24 +2663,24 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2654
2663
|
default: U(() => [
|
|
2655
2664
|
F(_(sl), { class: "absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm" }, {
|
|
2656
2665
|
default: U(() => [
|
|
2657
|
-
(R(!0),
|
|
2666
|
+
(R(!0), T(be, null, jt(c.options, (s) => (R(), W(_(ul), {
|
|
2658
2667
|
as: "template",
|
|
2659
2668
|
key: s.id,
|
|
2660
2669
|
value: s,
|
|
2661
2670
|
disabled: s.disabled
|
|
2662
2671
|
}, {
|
|
2663
|
-
default: U(({ active:
|
|
2664
|
-
|
|
2672
|
+
default: U(({ active: f, selected: v }) => [
|
|
2673
|
+
L("li", {
|
|
2665
2674
|
class: $([
|
|
2666
|
-
|
|
2675
|
+
f ? "text-white bg-blue-500" : "text-grey-900 dark:text-grey-50",
|
|
2667
2676
|
"cursor-default select-none relative py-2 pl-3 pr-12",
|
|
2668
2677
|
{ "opacity-50 bg-grey-100": s.disabled }
|
|
2669
2678
|
])
|
|
2670
2679
|
}, [
|
|
2671
|
-
|
|
2672
|
-
s.disabled && c.disabledBadge ? (R(),
|
|
2680
|
+
L("div", sr, [
|
|
2681
|
+
s.disabled && c.disabledBadge ? (R(), T("span", ur, G(c.disabledBadge), 1)) : M("", !0)
|
|
2673
2682
|
]),
|
|
2674
|
-
|
|
2683
|
+
L("span", {
|
|
2675
2684
|
class: $([
|
|
2676
2685
|
v ? "font-semibold" : "font-normal",
|
|
2677
2686
|
"block truncate"
|
|
@@ -2682,14 +2691,14 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2682
2691
|
class: "inline-block mr-1",
|
|
2683
2692
|
name: s.icon
|
|
2684
2693
|
}, null, 8, ["name"])) : M("", !0),
|
|
2685
|
-
|
|
2694
|
+
L("span", {
|
|
2686
2695
|
innerHTML: s.label
|
|
2687
2696
|
}, null, 8, cr)
|
|
2688
2697
|
], 2),
|
|
2689
|
-
v ? (R(),
|
|
2698
|
+
v ? (R(), T("span", {
|
|
2690
2699
|
key: 0,
|
|
2691
2700
|
class: $([
|
|
2692
|
-
|
|
2701
|
+
f ? "text-blue-100" : "text-blue-500",
|
|
2693
2702
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
2694
2703
|
])
|
|
2695
2704
|
}, [
|
|
@@ -2741,18 +2750,18 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2741
2750
|
margin: `mr-${o[Math.floor(Math.random() * o.length)]}`
|
|
2742
2751
|
};
|
|
2743
2752
|
});
|
|
2744
|
-
return (o, n) => (R(),
|
|
2745
|
-
|
|
2746
|
-
o.avatar ? (R(),
|
|
2747
|
-
o.title ? (R(),
|
|
2753
|
+
return (o, n) => (R(), T("div", dr, [
|
|
2754
|
+
L("div", fr, [
|
|
2755
|
+
o.avatar ? (R(), T("div", pr)) : M("", !0),
|
|
2756
|
+
o.title ? (R(), T("div", mr)) : M("", !0)
|
|
2748
2757
|
]),
|
|
2749
|
-
o.lines > 0 ? (R(),
|
|
2750
|
-
(R(!0),
|
|
2758
|
+
o.lines > 0 ? (R(), T("div", vr, [
|
|
2759
|
+
(R(!0), T(be, null, jt(_(l), (r, i) => (R(), T("div", {
|
|
2751
2760
|
class: $(["h-4 bg-current rounded-lg", r.margin]),
|
|
2752
2761
|
key: i
|
|
2753
2762
|
}, null, 2))), 128))
|
|
2754
2763
|
])) : M("", !0),
|
|
2755
|
-
o.footer ? (R(),
|
|
2764
|
+
o.footer ? (R(), T("div", gr)) : M("", !0)
|
|
2756
2765
|
]));
|
|
2757
2766
|
}
|
|
2758
2767
|
}), $r = /* @__PURE__ */ A({
|
|
@@ -2788,12 +2797,12 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2788
2797
|
"px-4 py-1 text-xs leading-5 mono-100": o.size === "small",
|
|
2789
2798
|
"px-5 py-2 text-sm leading-4 font-medium": o.size === "medium",
|
|
2790
2799
|
"px-8 pr-4 py-3 text-base leading-6 font-medium": o.size === "large"
|
|
2791
|
-
},
|
|
2800
|
+
}, f = {
|
|
2792
2801
|
"pointer-events-none opacity-75 cursor-not-allowed": o.isDisabled
|
|
2793
2802
|
};
|
|
2794
2803
|
return {
|
|
2795
2804
|
...a,
|
|
2796
|
-
...
|
|
2805
|
+
...f,
|
|
2797
2806
|
...s
|
|
2798
2807
|
};
|
|
2799
2808
|
}), r = k(() => {
|
|
@@ -2824,27 +2833,27 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2824
2833
|
function c() {
|
|
2825
2834
|
o.isDisabled || l("onClickSplit");
|
|
2826
2835
|
}
|
|
2827
|
-
return (a, s) => (R(),
|
|
2828
|
-
|
|
2836
|
+
return (a, s) => (R(), T("div", br, [
|
|
2837
|
+
L("button", {
|
|
2829
2838
|
type: "button",
|
|
2830
2839
|
"aria-label": a.label,
|
|
2831
2840
|
tabindex: a.isDisabled ? "-1" : void 0,
|
|
2832
2841
|
class: $(["relative transition duration-150 ease-in-out rounded-l-lg", n.value]),
|
|
2833
2842
|
onClick: u
|
|
2834
2843
|
}, [
|
|
2835
|
-
|
|
2844
|
+
L("div", {
|
|
2836
2845
|
class: $(!a.isLoading || "invisible")
|
|
2837
2846
|
}, [
|
|
2838
|
-
|
|
2847
|
+
L("span", null, G(a.label), 1)
|
|
2839
2848
|
], 2),
|
|
2840
|
-
a.isLoading ? (R(),
|
|
2849
|
+
a.isLoading ? (R(), T("span", yr, [
|
|
2841
2850
|
F(z, {
|
|
2842
2851
|
class: "ml-3 animate-spin",
|
|
2843
2852
|
name: "circle-notch"
|
|
2844
2853
|
})
|
|
2845
2854
|
])) : M("", !0)
|
|
2846
2855
|
], 10, hr),
|
|
2847
|
-
|
|
2856
|
+
L("button", {
|
|
2848
2857
|
type: "button",
|
|
2849
2858
|
class: $(["border-l-white/50 border-l transition duration-150 ease-in-out rounded-r-lg", [n.value, r.value]]),
|
|
2850
2859
|
onClick: c
|
|
@@ -2878,11 +2887,11 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2878
2887
|
"onUpdate:modelValue": o
|
|
2879
2888
|
}, {
|
|
2880
2889
|
default: U(() => [
|
|
2881
|
-
|
|
2890
|
+
L("span", {
|
|
2882
2891
|
class: $(["absolute text-xs text-center text-white inset-x-2", n.modelValue ? "pr-3" : "pl-3"])
|
|
2883
2892
|
}, G(n.modelValue === !0 ? n.onLabel : n.offLabel), 3),
|
|
2884
|
-
|
|
2885
|
-
|
|
2893
|
+
L("span", xr, G(n.label), 1),
|
|
2894
|
+
L("span", {
|
|
2886
2895
|
class: $([n.modelValue ? "translate-x-9" : "translate-x-1", "inline-block w-4 h-4 transition bg-white rounded-full"])
|
|
2887
2896
|
}, null, 2)
|
|
2888
2897
|
]),
|
|
@@ -2902,19 +2911,19 @@ const Tr = /* @__PURE__ */ A({
|
|
|
2902
2911
|
},
|
|
2903
2912
|
emits: ["update:modelValue"],
|
|
2904
2913
|
setup(e, { expose: t, emit: l }) {
|
|
2905
|
-
const o = e, n = l, { inputClasses: r, disabledClasses: i, textSizeClasses: u } = rt(o), c = function(
|
|
2906
|
-
n("update:modelValue", (
|
|
2914
|
+
const o = e, n = l, { inputClasses: r, disabledClasses: i, textSizeClasses: u } = rt(o), c = function(f) {
|
|
2915
|
+
n("update:modelValue", (f == null ? void 0 : f.target).value);
|
|
2907
2916
|
}, a = C(null);
|
|
2908
2917
|
return t({
|
|
2909
2918
|
focus: () => {
|
|
2910
2919
|
o.isDisabled || a.value.focus();
|
|
2911
2920
|
}
|
|
2912
|
-
}), (
|
|
2913
|
-
|
|
2921
|
+
}), (f, v) => (R(), T("div", wr, [
|
|
2922
|
+
L("textarea", ot({
|
|
2914
2923
|
class: ["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [_(r), _(u), _(i)]],
|
|
2915
|
-
tabindex:
|
|
2916
|
-
value:
|
|
2917
|
-
},
|
|
2924
|
+
tabindex: f.isDisabled ? "-1" : void 0,
|
|
2925
|
+
value: f.modelValue ?? ""
|
|
2926
|
+
}, f.$attrs, {
|
|
2918
2927
|
ref_key: "input",
|
|
2919
2928
|
ref: a,
|
|
2920
2929
|
cols: "56",
|
|
@@ -2931,8 +2940,8 @@ export {
|
|
|
2931
2940
|
z as D9Icon,
|
|
2932
2941
|
_r as D9Input,
|
|
2933
2942
|
Pr as D9Label,
|
|
2934
|
-
|
|
2935
|
-
|
|
2943
|
+
Lr as D9Menu,
|
|
2944
|
+
Tr as D9MenuLink,
|
|
2936
2945
|
Ir as D9Select,
|
|
2937
2946
|
Ar as D9Skeleton,
|
|
2938
2947
|
$r as D9Spinner,
|