@hotelinking/ui 1.19.0 → 1.19.2
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/style.css +3 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +707 -708
- package/package.json +2 -2
- package/dist/index.css +0 -3
package/dist/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as g, createBlock as
|
|
1
|
+
import { openBlock as g, createBlock as oe, resolveDynamicComponent as yn, normalizeClass as R, createElementBlock as x, createVNode as S, renderSlot as Ie, ref as w, createElementVNode as c, cloneVNode as xn, h as q, Fragment as Z, inject as ne, provide as ie, onMounted as U, watchEffect as ee, nextTick as le, computed as y, defineComponent as A, toRaw as H, watch as be, onUnmounted as se, Teleport as wn, reactive as Sn, unref as C, shallowRef as kn, withCtx as Y, createTextVNode as ye, toDisplayString as O, Transition as Ot, renderList as ue, createCommentVNode as W, withDirectives as G, vModelDynamic as $n, vShow as re, withModifiers as ht, vModelText as Cn, resolveComponent as Oe, vModelCheckbox as _n } from "vue";
|
|
2
2
|
import V from "dayjs";
|
|
3
3
|
import On from "vue3-apexcharts";
|
|
4
4
|
const Dn = { name: "uiIcon" }, ve = /* @__PURE__ */ Object.assign(Dn, {
|
|
@@ -17,7 +17,7 @@ const Dn = { name: "uiIcon" }, ve = /* @__PURE__ */ Object.assign(Dn, {
|
|
|
17
17
|
color: { type: String, default: "primary" }
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
|
-
return (t,
|
|
20
|
+
return (t, l) => (g(), oe(yn(e.icon), {
|
|
21
21
|
class: R({
|
|
22
22
|
"h-4 w-4": e.size === "normal",
|
|
23
23
|
"h-6 w-6": e.size === "big",
|
|
@@ -69,7 +69,7 @@ const Dn = { name: "uiIcon" }, ve = /* @__PURE__ */ Object.assign(Dn, {
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
setup(e) {
|
|
72
|
-
return (t,
|
|
72
|
+
return (t, l) => (g(), x("button", {
|
|
73
73
|
disabled: e.disabled,
|
|
74
74
|
class: R([{
|
|
75
75
|
"bg-indigo-600 hover:bg-indigo-800": e.color === "primary",
|
|
@@ -118,13 +118,13 @@ const Dn = { name: "uiIcon" }, ve = /* @__PURE__ */ Object.assign(Dn, {
|
|
|
118
118
|
},
|
|
119
119
|
emits: ["checkboxChanged"],
|
|
120
120
|
setup(e, { emit: t }) {
|
|
121
|
-
const
|
|
122
|
-
|
|
121
|
+
const l = e, r = w(l.check), n = () => {
|
|
122
|
+
l.disabled || (r.value = !r.value, t("checkboxChanged", {
|
|
123
123
|
checked: r.value,
|
|
124
|
-
value:
|
|
124
|
+
value: l.value
|
|
125
125
|
}));
|
|
126
126
|
};
|
|
127
|
-
return (
|
|
127
|
+
return (o, a) => (g(), x("div", En, [
|
|
128
128
|
c("div", Pn, [
|
|
129
129
|
c("input", {
|
|
130
130
|
checked: e.check,
|
|
@@ -137,28 +137,28 @@ const Dn = { name: "uiIcon" }, ve = /* @__PURE__ */ Object.assign(Dn, {
|
|
|
137
137
|
]),
|
|
138
138
|
c("div", Rn, [
|
|
139
139
|
c("span", jn, [
|
|
140
|
-
Ie(
|
|
140
|
+
Ie(o.$slots, "default")
|
|
141
141
|
])
|
|
142
142
|
])
|
|
143
143
|
]));
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
|
-
function K(e, t, ...
|
|
146
|
+
function K(e, t, ...l) {
|
|
147
147
|
if (e in t) {
|
|
148
148
|
let n = t[e];
|
|
149
|
-
return typeof n == "function" ? n(...
|
|
149
|
+
return typeof n == "function" ? n(...l) : n;
|
|
150
150
|
}
|
|
151
151
|
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((n) => `"${n}"`).join(", ")}.`);
|
|
152
152
|
throw Error.captureStackTrace && Error.captureStackTrace(r, K), r;
|
|
153
153
|
}
|
|
154
154
|
var me = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(me || {}), xe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(xe || {});
|
|
155
|
-
function B({ visible: e = !0, features: t = 0, ourProps:
|
|
156
|
-
var
|
|
157
|
-
let a = Tt(r,
|
|
155
|
+
function B({ visible: e = !0, features: t = 0, ourProps: l, theirProps: r, ...n }) {
|
|
156
|
+
var o;
|
|
157
|
+
let a = Tt(r, l), i = Object.assign(n, { props: a });
|
|
158
158
|
if (e || t & 2 && a.static)
|
|
159
159
|
return Xe(i);
|
|
160
160
|
if (t & 1) {
|
|
161
|
-
let s = (
|
|
161
|
+
let s = (o = a.unmount) == null || o ? 0 : 1;
|
|
162
162
|
return K(s, { [0]() {
|
|
163
163
|
return null;
|
|
164
164
|
}, [1]() {
|
|
@@ -167,9 +167,9 @@ function B({ visible: e = !0, features: t = 0, ourProps: o, theirProps: r, ...n
|
|
|
167
167
|
}
|
|
168
168
|
return Xe(i);
|
|
169
169
|
}
|
|
170
|
-
function Xe({ props: e, attrs: t, slots:
|
|
171
|
-
var
|
|
172
|
-
let { as: i, ...s } = Ae(e, ["unmount", "static"]), u = (
|
|
170
|
+
function Xe({ props: e, attrs: t, slots: l, slot: r, name: n }) {
|
|
171
|
+
var o, a;
|
|
172
|
+
let { as: i, ...s } = Ae(e, ["unmount", "static"]), u = (o = l.default) == null ? void 0 : o.call(l, r), d = {};
|
|
173
173
|
if (r) {
|
|
174
174
|
let m = !1, v = [];
|
|
175
175
|
for (let [p, b] of Object.entries(r))
|
|
@@ -201,34 +201,34 @@ function Tt(...e) {
|
|
|
201
201
|
return {};
|
|
202
202
|
if (e.length === 1)
|
|
203
203
|
return e[0];
|
|
204
|
-
let t = {},
|
|
204
|
+
let t = {}, l = {};
|
|
205
205
|
for (let r of e)
|
|
206
206
|
for (let n in r)
|
|
207
|
-
n.startsWith("on") && typeof r[n] == "function" ? (
|
|
207
|
+
n.startsWith("on") && typeof r[n] == "function" ? (l[n] != null || (l[n] = []), l[n].push(r[n])) : t[n] = r[n];
|
|
208
208
|
if (t.disabled || t["aria-disabled"])
|
|
209
|
-
return Object.assign(t, Object.fromEntries(Object.keys(
|
|
210
|
-
for (let r in
|
|
211
|
-
Object.assign(t, { [r](n, ...
|
|
212
|
-
let a =
|
|
209
|
+
return Object.assign(t, Object.fromEntries(Object.keys(l).map((r) => [r, void 0])));
|
|
210
|
+
for (let r in l)
|
|
211
|
+
Object.assign(t, { [r](n, ...o) {
|
|
212
|
+
let a = l[r];
|
|
213
213
|
for (let i of a) {
|
|
214
214
|
if (n instanceof Event && n.defaultPrevented)
|
|
215
215
|
return;
|
|
216
|
-
i(n, ...
|
|
216
|
+
i(n, ...o);
|
|
217
217
|
}
|
|
218
218
|
} });
|
|
219
219
|
return t;
|
|
220
220
|
}
|
|
221
221
|
function Et(e) {
|
|
222
222
|
let t = Object.assign({}, e);
|
|
223
|
-
for (let
|
|
224
|
-
t[
|
|
223
|
+
for (let l in t)
|
|
224
|
+
t[l] === void 0 && delete t[l];
|
|
225
225
|
return t;
|
|
226
226
|
}
|
|
227
227
|
function Ae(e, t = []) {
|
|
228
|
-
let
|
|
228
|
+
let l = Object.assign({}, e);
|
|
229
229
|
for (let r of t)
|
|
230
|
-
r in
|
|
231
|
-
return
|
|
230
|
+
r in l && delete l[r];
|
|
231
|
+
return l;
|
|
232
232
|
}
|
|
233
233
|
function Fn(e) {
|
|
234
234
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
@@ -246,32 +246,32 @@ function Hn(e) {
|
|
|
246
246
|
}
|
|
247
247
|
var I = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(I || {});
|
|
248
248
|
function Pt(e, t) {
|
|
249
|
-
let
|
|
250
|
-
if (
|
|
249
|
+
let l = t.resolveItems();
|
|
250
|
+
if (l.length <= 0)
|
|
251
251
|
return null;
|
|
252
|
-
let r = t.resolveActiveIndex(), n = r ?? -1,
|
|
252
|
+
let r = t.resolveActiveIndex(), n = r ?? -1, o = (() => {
|
|
253
253
|
switch (e.focus) {
|
|
254
254
|
case 0:
|
|
255
|
-
return
|
|
255
|
+
return l.findIndex((a) => !t.resolveDisabled(a));
|
|
256
256
|
case 1: {
|
|
257
|
-
let a =
|
|
258
|
-
return a === -1 ? a :
|
|
257
|
+
let a = l.slice().reverse().findIndex((i, s, u) => n !== -1 && u.length - s - 1 >= n ? !1 : !t.resolveDisabled(i));
|
|
258
|
+
return a === -1 ? a : l.length - 1 - a;
|
|
259
259
|
}
|
|
260
260
|
case 2:
|
|
261
|
-
return
|
|
261
|
+
return l.findIndex((a, i) => i <= n ? !1 : !t.resolveDisabled(a));
|
|
262
262
|
case 3: {
|
|
263
|
-
let a =
|
|
264
|
-
return a === -1 ? a :
|
|
263
|
+
let a = l.slice().reverse().findIndex((i) => !t.resolveDisabled(i));
|
|
264
|
+
return a === -1 ? a : l.length - 1 - a;
|
|
265
265
|
}
|
|
266
266
|
case 4:
|
|
267
|
-
return
|
|
267
|
+
return l.findIndex((a) => t.resolveId(a) === e.id);
|
|
268
268
|
case 5:
|
|
269
269
|
return null;
|
|
270
270
|
default:
|
|
271
271
|
Hn(e);
|
|
272
272
|
}
|
|
273
273
|
})();
|
|
274
|
-
return
|
|
274
|
+
return o === -1 ? r : o;
|
|
275
275
|
}
|
|
276
276
|
function k(e) {
|
|
277
277
|
var t;
|
|
@@ -291,20 +291,20 @@ function st(e) {
|
|
|
291
291
|
function bt(e, t) {
|
|
292
292
|
if (e)
|
|
293
293
|
return e;
|
|
294
|
-
let
|
|
295
|
-
if (typeof
|
|
294
|
+
let l = t ?? "button";
|
|
295
|
+
if (typeof l == "string" && l.toLowerCase() === "button")
|
|
296
296
|
return "button";
|
|
297
297
|
}
|
|
298
298
|
function ut(e, t) {
|
|
299
|
-
let
|
|
299
|
+
let l = w(bt(e.value.type, e.value.as));
|
|
300
300
|
return U(() => {
|
|
301
|
-
|
|
301
|
+
l.value = bt(e.value.type, e.value.as);
|
|
302
302
|
}), ee(() => {
|
|
303
303
|
var r;
|
|
304
|
-
|
|
305
|
-
}),
|
|
304
|
+
l.value || k(t) && k(t) instanceof HTMLButtonElement && !((r = k(t)) != null && r.hasAttribute("type")) && (l.value = "button");
|
|
305
|
+
}), l;
|
|
306
306
|
}
|
|
307
|
-
var Yn = Object.defineProperty, Un = (e, t,
|
|
307
|
+
var Yn = Object.defineProperty, Un = (e, t, l) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, yt = (e, t, l) => (Un(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
308
308
|
let qn = class {
|
|
309
309
|
constructor() {
|
|
310
310
|
yt(this, "current", this.detect()), yt(this, "currentId", 0);
|
|
@@ -340,28 +340,28 @@ function Se(e) {
|
|
|
340
340
|
}
|
|
341
341
|
return document;
|
|
342
342
|
}
|
|
343
|
-
function Rt({ container: e, accept: t, walk:
|
|
343
|
+
function Rt({ container: e, accept: t, walk: l, enabled: r }) {
|
|
344
344
|
ee(() => {
|
|
345
345
|
let n = e.value;
|
|
346
346
|
if (!n || r !== void 0 && !r.value)
|
|
347
347
|
return;
|
|
348
|
-
let
|
|
349
|
-
if (!
|
|
348
|
+
let o = Se(e);
|
|
349
|
+
if (!o)
|
|
350
350
|
return;
|
|
351
|
-
let a = Object.assign((s) => t(s), { acceptNode: t }), i =
|
|
351
|
+
let a = Object.assign((s) => t(s), { acceptNode: t }), i = o.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, a, !1);
|
|
352
352
|
for (; i.nextNode(); )
|
|
353
|
-
|
|
353
|
+
l(i.currentNode);
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
let et = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
357
357
|
var pe = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(pe || {}), jt = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(jt || {}), zn = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(zn || {});
|
|
358
358
|
function It(e = document.body) {
|
|
359
|
-
return e == null ? [] : Array.from(e.querySelectorAll(et)).sort((t,
|
|
359
|
+
return e == null ? [] : Array.from(e.querySelectorAll(et)).sort((t, l) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (l.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
360
360
|
}
|
|
361
361
|
var dt = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(dt || {});
|
|
362
362
|
function ct(e, t = 0) {
|
|
363
|
-
var
|
|
364
|
-
return e === ((
|
|
363
|
+
var l;
|
|
364
|
+
return e === ((l = Se(e)) == null ? void 0 : l.body) ? !1 : K(t, { [0]() {
|
|
365
365
|
return e.matches(et);
|
|
366
366
|
}, [1]() {
|
|
367
367
|
let r = e;
|
|
@@ -375,7 +375,7 @@ function ct(e, t = 0) {
|
|
|
375
375
|
}
|
|
376
376
|
function At(e) {
|
|
377
377
|
let t = Se(e);
|
|
378
|
-
|
|
378
|
+
le(() => {
|
|
379
379
|
t && !ct(t.activeElement, 0) && we(e);
|
|
380
380
|
});
|
|
381
381
|
}
|
|
@@ -390,24 +390,24 @@ function we(e) {
|
|
|
390
390
|
}
|
|
391
391
|
let Kn = ["textarea", "input"].join(",");
|
|
392
392
|
function Jn(e) {
|
|
393
|
-
var t,
|
|
394
|
-
return (
|
|
393
|
+
var t, l;
|
|
394
|
+
return (l = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, Kn)) != null ? l : !1;
|
|
395
395
|
}
|
|
396
|
-
function ft(e, t = (
|
|
397
|
-
return e.slice().sort((
|
|
398
|
-
let n = t(
|
|
399
|
-
if (n === null ||
|
|
396
|
+
function ft(e, t = (l) => l) {
|
|
397
|
+
return e.slice().sort((l, r) => {
|
|
398
|
+
let n = t(l), o = t(r);
|
|
399
|
+
if (n === null || o === null)
|
|
400
400
|
return 0;
|
|
401
|
-
let a = n.compareDocumentPosition(
|
|
401
|
+
let a = n.compareDocumentPosition(o);
|
|
402
402
|
return a & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : a & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
function Gn(e, t) {
|
|
406
406
|
return Re(It(), t, { relativeTo: e });
|
|
407
407
|
}
|
|
408
|
-
function Re(e, t, { sorted:
|
|
409
|
-
var
|
|
410
|
-
let a = (
|
|
408
|
+
function Re(e, t, { sorted: l = !0, relativeTo: r = null, skipElements: n = [] } = {}) {
|
|
409
|
+
var o;
|
|
410
|
+
let a = (o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? o : document, i = Array.isArray(e) ? l ? ft(e) : e : It(e);
|
|
411
411
|
n.length > 0 && i.length > 1 && (i = i.filter((b) => !n.includes(b))), r = r ?? a.activeElement;
|
|
412
412
|
let s = (() => {
|
|
413
413
|
if (t & 5)
|
|
@@ -442,21 +442,21 @@ function Re(e, t, { sorted: o = !0, relativeTo: r = null, skipElements: n = [] }
|
|
|
442
442
|
} while (p !== a.activeElement);
|
|
443
443
|
return t & 6 && Jn(p) && p.select(), 2;
|
|
444
444
|
}
|
|
445
|
-
function xt(e, t,
|
|
445
|
+
function xt(e, t, l) {
|
|
446
446
|
Be.isServer || ee((r) => {
|
|
447
|
-
document.addEventListener(e, t,
|
|
447
|
+
document.addEventListener(e, t, l), r(() => document.removeEventListener(e, t, l));
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
|
-
function Ft(e, t,
|
|
450
|
+
function Ft(e, t, l) {
|
|
451
451
|
Be.isServer || ee((r) => {
|
|
452
|
-
window.addEventListener(e, t,
|
|
452
|
+
window.addEventListener(e, t, l), r(() => window.removeEventListener(e, t, l));
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
function vt(e, t,
|
|
456
|
-
function r(
|
|
457
|
-
if (!
|
|
455
|
+
function vt(e, t, l = y(() => !0)) {
|
|
456
|
+
function r(o, a) {
|
|
457
|
+
if (!l.value || o.defaultPrevented)
|
|
458
458
|
return;
|
|
459
|
-
let i = a(
|
|
459
|
+
let i = a(o);
|
|
460
460
|
if (i === null || !i.getRootNode().contains(i))
|
|
461
461
|
return;
|
|
462
462
|
let s = function u(d) {
|
|
@@ -466,56 +466,56 @@ function vt(e, t, o = y(() => !0)) {
|
|
|
466
466
|
if (u === null)
|
|
467
467
|
continue;
|
|
468
468
|
let d = u instanceof HTMLElement ? u : k(u);
|
|
469
|
-
if (d != null && d.contains(i) ||
|
|
469
|
+
if (d != null && d.contains(i) || o.composed && o.composedPath().includes(d))
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
return !ct(i, dt.Loose) && i.tabIndex !== -1 &&
|
|
472
|
+
return !ct(i, dt.Loose) && i.tabIndex !== -1 && o.preventDefault(), t(o, i);
|
|
473
473
|
}
|
|
474
474
|
let n = w(null);
|
|
475
|
-
xt("mousedown", (
|
|
475
|
+
xt("mousedown", (o) => {
|
|
476
476
|
var a, i;
|
|
477
|
-
|
|
478
|
-
}, !0), xt("click", (
|
|
479
|
-
n.value && (r(
|
|
480
|
-
}, !0), Ft("blur", (
|
|
477
|
+
l.value && (n.value = ((i = (a = o.composedPath) == null ? void 0 : a.call(o)) == null ? void 0 : i[0]) || o.target);
|
|
478
|
+
}, !0), xt("click", (o) => {
|
|
479
|
+
n.value && (r(o, () => n.value), n.value = null);
|
|
480
|
+
}, !0), Ft("blur", (o) => r(o, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
481
481
|
}
|
|
482
482
|
var De = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(De || {});
|
|
483
|
-
let je = A({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs:
|
|
483
|
+
let je = A({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: l }) {
|
|
484
484
|
return () => {
|
|
485
|
-
let { features: r, ...n } = e,
|
|
486
|
-
return B({ ourProps:
|
|
485
|
+
let { features: r, ...n } = e, o = { "aria-hidden": (r & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
486
|
+
return B({ ourProps: o, theirProps: n, slot: {}, attrs: l, slots: t, name: "Hidden" });
|
|
487
487
|
};
|
|
488
488
|
} });
|
|
489
|
-
function Bt(e = {}, t = null,
|
|
489
|
+
function Bt(e = {}, t = null, l = []) {
|
|
490
490
|
for (let [r, n] of Object.entries(e))
|
|
491
|
-
Ht(
|
|
492
|
-
return
|
|
491
|
+
Ht(l, Nt(t, r), n);
|
|
492
|
+
return l;
|
|
493
493
|
}
|
|
494
494
|
function Nt(e, t) {
|
|
495
495
|
return e ? e + "[" + t + "]" : t;
|
|
496
496
|
}
|
|
497
|
-
function Ht(e, t,
|
|
498
|
-
if (Array.isArray(
|
|
499
|
-
for (let [r, n] of
|
|
497
|
+
function Ht(e, t, l) {
|
|
498
|
+
if (Array.isArray(l))
|
|
499
|
+
for (let [r, n] of l.entries())
|
|
500
500
|
Ht(e, Nt(t, r.toString()), n);
|
|
501
501
|
else
|
|
502
|
-
|
|
502
|
+
l instanceof Date ? e.push([t, l.toISOString()]) : typeof l == "boolean" ? e.push([t, l ? "1" : "0"]) : typeof l == "string" ? e.push([t, l]) : typeof l == "number" ? e.push([t, `${l}`]) : l == null ? e.push([t, ""]) : Bt(l, t, e);
|
|
503
503
|
}
|
|
504
504
|
function Xn(e) {
|
|
505
505
|
var t;
|
|
506
|
-
let
|
|
507
|
-
if (
|
|
508
|
-
for (let r of
|
|
506
|
+
let l = (t = e == null ? void 0 : e.form) != null ? t : e.closest("form");
|
|
507
|
+
if (l) {
|
|
508
|
+
for (let r of l.elements)
|
|
509
509
|
if (r.tagName === "INPUT" && r.type === "submit" || r.tagName === "BUTTON" && r.type === "submit" || r.nodeName === "INPUT" && r.type === "image") {
|
|
510
510
|
r.click();
|
|
511
511
|
return;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function Vt(e, t,
|
|
516
|
-
let r = w(
|
|
517
|
-
return [y(() => n.value ? e.value : r.value), function(
|
|
518
|
-
return n.value || (r.value =
|
|
515
|
+
function Vt(e, t, l) {
|
|
516
|
+
let r = w(l == null ? void 0 : l.value), n = y(() => e.value !== void 0);
|
|
517
|
+
return [y(() => n.value ? e.value : r.value), function(o) {
|
|
518
|
+
return n.value || (r.value = o), t == null ? void 0 : t(o);
|
|
519
519
|
}];
|
|
520
520
|
}
|
|
521
521
|
function wt(e) {
|
|
@@ -524,8 +524,8 @@ function wt(e) {
|
|
|
524
524
|
function Yt() {
|
|
525
525
|
let e = w([-1, -1]);
|
|
526
526
|
return { wasMoved(t) {
|
|
527
|
-
let
|
|
528
|
-
return e.value[0] ===
|
|
527
|
+
let l = wt(t);
|
|
528
|
+
return e.value[0] === l[0] && e.value[1] === l[1] ? !1 : (e.value = l, !0);
|
|
529
529
|
}, update(t) {
|
|
530
530
|
e.value = wt(t);
|
|
531
531
|
} };
|
|
@@ -540,54 +540,54 @@ function Zn() {
|
|
|
540
540
|
return Ut() || Qn();
|
|
541
541
|
}
|
|
542
542
|
function Ne() {
|
|
543
|
-
let e = [], t = { addEventListener(
|
|
544
|
-
return
|
|
545
|
-
}, requestAnimationFrame(...
|
|
546
|
-
let r = requestAnimationFrame(...
|
|
543
|
+
let e = [], t = { addEventListener(l, r, n, o) {
|
|
544
|
+
return l.addEventListener(r, n, o), t.add(() => l.removeEventListener(r, n, o));
|
|
545
|
+
}, requestAnimationFrame(...l) {
|
|
546
|
+
let r = requestAnimationFrame(...l);
|
|
547
547
|
t.add(() => cancelAnimationFrame(r));
|
|
548
|
-
}, nextFrame(...
|
|
548
|
+
}, nextFrame(...l) {
|
|
549
549
|
t.requestAnimationFrame(() => {
|
|
550
|
-
t.requestAnimationFrame(...
|
|
550
|
+
t.requestAnimationFrame(...l);
|
|
551
551
|
});
|
|
552
|
-
}, setTimeout(...
|
|
553
|
-
let r = setTimeout(...
|
|
552
|
+
}, setTimeout(...l) {
|
|
553
|
+
let r = setTimeout(...l);
|
|
554
554
|
t.add(() => clearTimeout(r));
|
|
555
|
-
}, style(
|
|
556
|
-
let
|
|
557
|
-
return Object.assign(
|
|
558
|
-
Object.assign(
|
|
555
|
+
}, style(l, r, n) {
|
|
556
|
+
let o = l.style.getPropertyValue(r);
|
|
557
|
+
return Object.assign(l.style, { [r]: n }), this.add(() => {
|
|
558
|
+
Object.assign(l.style, { [r]: o });
|
|
559
559
|
});
|
|
560
|
-
}, group(
|
|
560
|
+
}, group(l) {
|
|
561
561
|
let r = Ne();
|
|
562
|
-
return
|
|
563
|
-
}, add(
|
|
564
|
-
return e.push(
|
|
565
|
-
let r = e.indexOf(
|
|
562
|
+
return l(r), this.add(() => r.dispose());
|
|
563
|
+
}, add(l) {
|
|
564
|
+
return e.push(l), () => {
|
|
565
|
+
let r = e.indexOf(l);
|
|
566
566
|
if (r >= 0)
|
|
567
567
|
for (let n of e.splice(r, 1))
|
|
568
568
|
n();
|
|
569
569
|
};
|
|
570
570
|
}, dispose() {
|
|
571
|
-
for (let
|
|
572
|
-
|
|
571
|
+
for (let l of e.splice(0))
|
|
572
|
+
l();
|
|
573
573
|
} };
|
|
574
574
|
return t;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function el(e, t) {
|
|
577
577
|
return e === t;
|
|
578
578
|
}
|
|
579
|
-
var
|
|
579
|
+
var tl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(tl || {}), nl = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(nl || {}), ll = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(ll || {});
|
|
580
580
|
let qt = Symbol("ComboboxContext");
|
|
581
581
|
function Me(e) {
|
|
582
582
|
let t = ne(qt, null);
|
|
583
583
|
if (t === null) {
|
|
584
|
-
let
|
|
585
|
-
throw Error.captureStackTrace && Error.captureStackTrace(
|
|
584
|
+
let l = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
|
|
585
|
+
throw Error.captureStackTrace && Error.captureStackTrace(l, Me), l;
|
|
586
586
|
}
|
|
587
587
|
return t;
|
|
588
588
|
}
|
|
589
|
-
let
|
|
590
|
-
let n = w(1),
|
|
589
|
+
let ol = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => el }, 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 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: l, emit: r }) {
|
|
590
|
+
let n = w(1), o = w(null), a = w(null), i = w(null), s = w(null), u = w({ static: !1, hold: !1 }), d = w([]), m = w(null), v = w(1), p = w(!1);
|
|
591
591
|
function b(_ = (E) => E) {
|
|
592
592
|
let E = m.value !== null ? d.value[m.value] : null, L = ft(_(d.value.slice()), (j) => k(j.dataRef.domRef)), T = E ? L.indexOf(E) : null;
|
|
593
593
|
return T === -1 && (T = null), { options: L, activeOptionIndex: T };
|
|
@@ -598,7 +598,7 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
598
598
|
return (_ == null ? void 0 : _[L]) === (E == null ? void 0 : E[L]);
|
|
599
599
|
}
|
|
600
600
|
return e.by(_, E);
|
|
601
|
-
}, defaultValue: y(() => e.defaultValue), nullable: f, inputRef: a, labelRef:
|
|
601
|
+
}, defaultValue: y(() => e.defaultValue), nullable: f, inputRef: a, labelRef: o, buttonRef: i, optionsRef: s, disabled: y(() => e.disabled), options: d, change(_) {
|
|
602
602
|
M(_);
|
|
603
603
|
}, activeOptionIndex: y(() => {
|
|
604
604
|
if (p.value && m.value === null && d.value.length > 0) {
|
|
@@ -681,23 +681,23 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
681
681
|
}, { immediate: !0 });
|
|
682
682
|
}), () => {
|
|
683
683
|
let { name: _, disabled: E, form: L, ...T } = e, j = { open: n.value === 0, disabled: E, activeIndex: D.activeOptionIndex.value, activeOption: X.value, value: $.value };
|
|
684
|
-
return q(Z, [..._ != null && $.value != null ? Bt({ [_]: $.value }).map(([N, de]) => q(je, Et({ features: De.Hidden, key: N, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: L, name: N, value: de }))) : [], B({ theirProps: { ...
|
|
684
|
+
return q(Z, [..._ != null && $.value != null ? Bt({ [_]: $.value }).map(([N, de]) => q(je, Et({ features: De.Hidden, key: N, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: L, name: N, value: de }))) : [], B({ theirProps: { ...l, ...Ae(T, ["modelValue", "defaultValue", "nullable", "multiple", "onUpdate:modelValue", "by"]) }, ourProps: {}, slot: j, slots: t, attrs: l, name: "Combobox" })]);
|
|
685
685
|
};
|
|
686
|
-
} }),
|
|
686
|
+
} }), rl = A({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-combobox-label-${te()}` } }, setup(e, { attrs: t, slots: l }) {
|
|
687
687
|
let r = Me("ComboboxLabel");
|
|
688
688
|
function n() {
|
|
689
|
-
var
|
|
690
|
-
(
|
|
689
|
+
var o;
|
|
690
|
+
(o = k(r.inputRef)) == null || o.focus({ preventScroll: !0 });
|
|
691
691
|
}
|
|
692
692
|
return () => {
|
|
693
|
-
let
|
|
694
|
-
return B({ ourProps: s, theirProps: i, slot:
|
|
693
|
+
let o = { open: r.comboboxState.value === 0, disabled: r.disabled.value }, { id: a, ...i } = e, s = { id: a, ref: r.labelRef, onClick: n };
|
|
694
|
+
return B({ ourProps: s, theirProps: i, slot: o, attrs: t, slots: l, name: "ComboboxLabel" });
|
|
695
695
|
};
|
|
696
|
-
} }),
|
|
696
|
+
} }), al = A({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-combobox-button-${te()}` } }, setup(e, { attrs: t, slots: l, expose: r }) {
|
|
697
697
|
let n = Me("ComboboxButton");
|
|
698
698
|
r({ el: n.buttonRef, $el: n.buttonRef });
|
|
699
|
-
function
|
|
700
|
-
n.disabled.value || (n.comboboxState.value === 0 ? n.closeCombobox() : (s.preventDefault(), n.openCombobox()),
|
|
699
|
+
function o(s) {
|
|
700
|
+
n.disabled.value || (n.comboboxState.value === 0 ? n.closeCombobox() : (s.preventDefault(), n.openCombobox()), le(() => {
|
|
701
701
|
var u;
|
|
702
702
|
return (u = k(n.inputRef)) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
703
703
|
}));
|
|
@@ -705,15 +705,15 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
705
705
|
function a(s) {
|
|
706
706
|
switch (s.key) {
|
|
707
707
|
case P.ArrowDown:
|
|
708
|
-
s.preventDefault(), s.stopPropagation(), n.comboboxState.value === 1 && n.openCombobox(),
|
|
708
|
+
s.preventDefault(), s.stopPropagation(), n.comboboxState.value === 1 && n.openCombobox(), le(() => {
|
|
709
709
|
var u;
|
|
710
710
|
return (u = n.inputRef.value) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
711
711
|
});
|
|
712
712
|
return;
|
|
713
713
|
case P.ArrowUp:
|
|
714
|
-
s.preventDefault(), s.stopPropagation(), n.comboboxState.value === 1 && (n.openCombobox(),
|
|
714
|
+
s.preventDefault(), s.stopPropagation(), n.comboboxState.value === 1 && (n.openCombobox(), le(() => {
|
|
715
715
|
n.value.value || n.goToOption(I.Last);
|
|
716
|
-
})),
|
|
716
|
+
})), le(() => {
|
|
717
717
|
var u;
|
|
718
718
|
return (u = n.inputRef.value) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
719
719
|
});
|
|
@@ -721,7 +721,7 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
721
721
|
case P.Escape:
|
|
722
722
|
if (n.comboboxState.value !== 0)
|
|
723
723
|
return;
|
|
724
|
-
s.preventDefault(), n.optionsRef.value && !n.optionsPropsRef.value.static && s.stopPropagation(), n.closeCombobox(),
|
|
724
|
+
s.preventDefault(), n.optionsRef.value && !n.optionsPropsRef.value.static && s.stopPropagation(), n.closeCombobox(), le(() => {
|
|
725
725
|
var u;
|
|
726
726
|
return (u = n.inputRef.value) == null ? void 0 : u.focus({ preventScroll: !0 });
|
|
727
727
|
});
|
|
@@ -731,26 +731,26 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
731
731
|
let i = ut(y(() => ({ as: e.as, type: t.type })), n.buttonRef);
|
|
732
732
|
return () => {
|
|
733
733
|
var s, u;
|
|
734
|
-
let d = { open: n.comboboxState.value === 0, disabled: n.disabled.value, value: n.value.value }, { id: m, ...v } = e, p = { ref: n.buttonRef, id: m, type: i.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (s = k(n.optionsRef)) == null ? void 0 : s.id, "aria-expanded": n.disabled.value ? void 0 : n.comboboxState.value === 0, "aria-labelledby": n.labelRef.value ? [(u = k(n.labelRef)) == null ? void 0 : u.id, m].join(" ") : void 0, disabled: n.disabled.value === !0 ? !0 : void 0, onKeydown: a, onClick:
|
|
735
|
-
return B({ ourProps: p, theirProps: v, slot: d, attrs: t, slots:
|
|
734
|
+
let d = { open: n.comboboxState.value === 0, disabled: n.disabled.value, value: n.value.value }, { id: m, ...v } = e, p = { ref: n.buttonRef, id: m, type: i.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (s = k(n.optionsRef)) == null ? void 0 : s.id, "aria-expanded": n.disabled.value ? void 0 : n.comboboxState.value === 0, "aria-labelledby": n.labelRef.value ? [(u = k(n.labelRef)) == null ? void 0 : u.id, m].join(" ") : void 0, disabled: n.disabled.value === !0 ? !0 : void 0, onKeydown: a, onClick: o };
|
|
735
|
+
return B({ ourProps: p, theirProps: v, slot: d, attrs: t, slots: l, name: "ComboboxButton" });
|
|
736
736
|
};
|
|
737
|
-
} }),
|
|
738
|
-
let
|
|
739
|
-
n({ el:
|
|
737
|
+
} }), il = A({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: () => `headlessui-combobox-input-${te()}` } }, emits: { change: (e) => !0 }, setup(e, { emit: t, attrs: l, slots: r, expose: n }) {
|
|
738
|
+
let o = Me("ComboboxInput"), a = { value: !1 };
|
|
739
|
+
n({ el: o.inputRef, $el: o.inputRef });
|
|
740
740
|
let i = y(() => {
|
|
741
741
|
var f;
|
|
742
|
-
let $ =
|
|
743
|
-
return k(
|
|
742
|
+
let $ = o.value.value;
|
|
743
|
+
return k(o.inputRef) ? typeof e.displayValue < "u" && $ !== void 0 ? (f = e.displayValue($)) != null ? f : "" : typeof $ == "string" ? $ : "" : "";
|
|
744
744
|
});
|
|
745
745
|
U(() => {
|
|
746
|
-
be([i,
|
|
746
|
+
be([i, o.comboboxState], ([f, $], [M, D]) => {
|
|
747
747
|
if (a.value)
|
|
748
748
|
return;
|
|
749
|
-
let X = k(
|
|
749
|
+
let X = k(o.inputRef);
|
|
750
750
|
X && (D === 0 && $ === 1 || f !== M) && (X.value = f);
|
|
751
|
-
}, { immediate: !0 }), be([
|
|
751
|
+
}, { immediate: !0 }), be([o.comboboxState], ([f], [$]) => {
|
|
752
752
|
if (f === 0 && $ === 1) {
|
|
753
|
-
let M = k(
|
|
753
|
+
let M = k(o.inputRef);
|
|
754
754
|
if (!M)
|
|
755
755
|
return;
|
|
756
756
|
let D = M.value, { selectionStart: X, selectionEnd: Q, selectionDirection: _ } = M;
|
|
@@ -764,62 +764,62 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
764
764
|
}
|
|
765
765
|
function m() {
|
|
766
766
|
Ne().nextFrame(() => {
|
|
767
|
-
s.value = !1, u.value && (
|
|
767
|
+
s.value = !1, u.value && (o.openCombobox(), t("change", u.value), u.value = null);
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
770
|
function v(f) {
|
|
771
771
|
switch (a.value = !0, f.key) {
|
|
772
772
|
case P.Backspace:
|
|
773
773
|
case P.Delete:
|
|
774
|
-
if (
|
|
774
|
+
if (o.mode.value !== 0 || !o.nullable.value)
|
|
775
775
|
return;
|
|
776
776
|
let $ = f.currentTarget;
|
|
777
777
|
requestAnimationFrame(() => {
|
|
778
778
|
if ($.value === "") {
|
|
779
|
-
|
|
780
|
-
let M = k(
|
|
781
|
-
M && (M.scrollTop = 0),
|
|
779
|
+
o.change(null);
|
|
780
|
+
let M = k(o.optionsRef);
|
|
781
|
+
M && (M.scrollTop = 0), o.goToOption(I.Nothing);
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
break;
|
|
785
785
|
case P.Enter:
|
|
786
|
-
if (a.value = !1,
|
|
786
|
+
if (a.value = !1, o.comboboxState.value !== 0 || s.value)
|
|
787
787
|
return;
|
|
788
|
-
if (f.preventDefault(), f.stopPropagation(),
|
|
789
|
-
|
|
788
|
+
if (f.preventDefault(), f.stopPropagation(), o.activeOptionIndex.value === null) {
|
|
789
|
+
o.closeCombobox();
|
|
790
790
|
return;
|
|
791
791
|
}
|
|
792
|
-
|
|
792
|
+
o.selectActiveOption(), o.mode.value === 0 && o.closeCombobox();
|
|
793
793
|
break;
|
|
794
794
|
case P.ArrowDown:
|
|
795
|
-
return a.value = !1, f.preventDefault(), f.stopPropagation(), K(
|
|
795
|
+
return a.value = !1, f.preventDefault(), f.stopPropagation(), K(o.comboboxState.value, { [0]: () => o.goToOption(I.Next), [1]: () => o.openCombobox() });
|
|
796
796
|
case P.ArrowUp:
|
|
797
|
-
return a.value = !1, f.preventDefault(), f.stopPropagation(), K(
|
|
798
|
-
|
|
799
|
-
|
|
797
|
+
return a.value = !1, f.preventDefault(), f.stopPropagation(), K(o.comboboxState.value, { [0]: () => o.goToOption(I.Previous), [1]: () => {
|
|
798
|
+
o.openCombobox(), le(() => {
|
|
799
|
+
o.value.value || o.goToOption(I.Last);
|
|
800
800
|
});
|
|
801
801
|
} });
|
|
802
802
|
case P.Home:
|
|
803
803
|
if (f.shiftKey)
|
|
804
804
|
break;
|
|
805
|
-
return a.value = !1, f.preventDefault(), f.stopPropagation(),
|
|
805
|
+
return a.value = !1, f.preventDefault(), f.stopPropagation(), o.goToOption(I.First);
|
|
806
806
|
case P.PageUp:
|
|
807
|
-
return a.value = !1, f.preventDefault(), f.stopPropagation(),
|
|
807
|
+
return a.value = !1, f.preventDefault(), f.stopPropagation(), o.goToOption(I.First);
|
|
808
808
|
case P.End:
|
|
809
809
|
if (f.shiftKey)
|
|
810
810
|
break;
|
|
811
|
-
return a.value = !1, f.preventDefault(), f.stopPropagation(),
|
|
811
|
+
return a.value = !1, f.preventDefault(), f.stopPropagation(), o.goToOption(I.Last);
|
|
812
812
|
case P.PageDown:
|
|
813
|
-
return a.value = !1, f.preventDefault(), f.stopPropagation(),
|
|
813
|
+
return a.value = !1, f.preventDefault(), f.stopPropagation(), o.goToOption(I.Last);
|
|
814
814
|
case P.Escape:
|
|
815
|
-
if (a.value = !1,
|
|
815
|
+
if (a.value = !1, o.comboboxState.value !== 0)
|
|
816
816
|
return;
|
|
817
|
-
f.preventDefault(),
|
|
817
|
+
f.preventDefault(), o.optionsRef.value && !o.optionsPropsRef.value.static && f.stopPropagation(), o.closeCombobox();
|
|
818
818
|
break;
|
|
819
819
|
case P.Tab:
|
|
820
|
-
if (a.value = !1,
|
|
820
|
+
if (a.value = !1, o.comboboxState.value !== 0)
|
|
821
821
|
return;
|
|
822
|
-
|
|
822
|
+
o.mode.value === 0 && o.selectActiveOption(), o.closeCombobox();
|
|
823
823
|
break;
|
|
824
824
|
}
|
|
825
825
|
}
|
|
@@ -828,22 +828,22 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
828
828
|
u.value = f;
|
|
829
829
|
return;
|
|
830
830
|
}
|
|
831
|
-
|
|
831
|
+
o.openCombobox(), t("change", f);
|
|
832
832
|
}
|
|
833
833
|
function b() {
|
|
834
834
|
a.value = !1;
|
|
835
835
|
}
|
|
836
836
|
let h = y(() => {
|
|
837
837
|
var f, $, M, D;
|
|
838
|
-
return (D = (M = ($ = e.defaultValue) != null ? $ :
|
|
838
|
+
return (D = (M = ($ = e.defaultValue) != null ? $ : o.defaultValue.value !== void 0 ? (f = e.displayValue) == null ? void 0 : f.call(e, o.defaultValue.value) : null) != null ? M : o.defaultValue.value) != null ? D : "";
|
|
839
839
|
});
|
|
840
840
|
return () => {
|
|
841
841
|
var f, $, M, D, X, Q;
|
|
842
|
-
let _ = { open:
|
|
843
|
-
return B({ ourProps: N, theirProps: j, slot: _, attrs:
|
|
842
|
+
let _ = { open: o.comboboxState.value === 0 }, { id: E, displayValue: L, onChange: T, ...j } = e, N = { "aria-controls": (f = o.optionsRef.value) == null ? void 0 : f.id, "aria-expanded": o.disabled.value ? void 0 : o.comboboxState.value === 0, "aria-activedescendant": o.activeOptionIndex.value === null || ($ = o.options.value[o.activeOptionIndex.value]) == null ? void 0 : $.id, "aria-labelledby": (X = (M = k(o.labelRef)) == null ? void 0 : M.id) != null ? X : (D = k(o.buttonRef)) == null ? void 0 : D.id, "aria-autocomplete": "list", id: E, onCompositionstart: d, onCompositionend: m, onKeydown: v, onInput: p, onBlur: b, role: "combobox", type: (Q = l.type) != null ? Q : "text", tabIndex: 0, ref: o.inputRef, defaultValue: h.value, disabled: o.disabled.value === !0 ? !0 : void 0 };
|
|
843
|
+
return B({ ourProps: N, theirProps: j, slot: _, attrs: l, slots: r, features: me.RenderStrategy | me.Static, name: "ComboboxInput" });
|
|
844
844
|
};
|
|
845
|
-
} }),
|
|
846
|
-
let n = Me("ComboboxOptions"),
|
|
845
|
+
} }), sl = A({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: t, slots: l, expose: r }) {
|
|
846
|
+
let n = Me("ComboboxOptions"), o = `headlessui-combobox-options-${te()}`;
|
|
847
847
|
r({ el: n.optionsRef, $el: n.optionsRef }), ee(() => {
|
|
848
848
|
n.optionsPropsRef.value.static = e.static;
|
|
849
849
|
}), ee(() => {
|
|
@@ -856,15 +856,15 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
856
856
|
s.setAttribute("role", "none");
|
|
857
857
|
} }), () => {
|
|
858
858
|
var s, u, d;
|
|
859
|
-
let m = { open: n.comboboxState.value === 0 }, v = { "aria-labelledby": (d = (s = k(n.labelRef)) == null ? void 0 : s.id) != null ? d : (u = k(n.buttonRef)) == null ? void 0 : u.id, id:
|
|
860
|
-
return B({ ourProps: v, theirProps: p, slot: m, attrs: t, slots:
|
|
859
|
+
let m = { open: n.comboboxState.value === 0 }, v = { "aria-labelledby": (d = (s = k(n.labelRef)) == null ? void 0 : s.id) != null ? d : (u = k(n.buttonRef)) == null ? void 0 : u.id, id: o, ref: n.optionsRef, role: "listbox", "aria-multiselectable": n.mode.value === 1 ? !0 : void 0 }, p = Ae(e, ["hold"]);
|
|
860
|
+
return B({ ourProps: v, theirProps: p, slot: m, attrs: t, slots: l, features: me.RenderStrategy | me.Static, visible: i.value, name: "ComboboxOptions" });
|
|
861
861
|
};
|
|
862
|
-
} }),
|
|
863
|
-
let n = Me("ComboboxOption"),
|
|
862
|
+
} }), ul = A({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: l, expose: r }) {
|
|
863
|
+
let n = Me("ComboboxOption"), o = `headlessui-combobox-option-${te()}`, a = w(null);
|
|
864
864
|
r({ el: a, $el: a });
|
|
865
|
-
let i = y(() => n.activeOptionIndex.value !== null ? n.options.value[n.activeOptionIndex.value].id ===
|
|
866
|
-
U(() => n.registerOption(
|
|
867
|
-
n.comboboxState.value === 0 && i.value && n.activationTrigger.value !== 0 &&
|
|
865
|
+
let i = y(() => n.activeOptionIndex.value !== null ? n.options.value[n.activeOptionIndex.value].id === o : !1), s = y(() => K(n.mode.value, { [0]: () => n.compare(H(n.value.value), H(e.value)), [1]: () => H(n.value.value).some((f) => n.compare(H(f), H(e.value))) })), u = y(() => ({ disabled: e.disabled, value: e.value, domRef: a }));
|
|
866
|
+
U(() => n.registerOption(o, u)), se(() => n.unregisterOption(o)), ee(() => {
|
|
867
|
+
n.comboboxState.value === 0 && i.value && n.activationTrigger.value !== 0 && le(() => {
|
|
868
868
|
var f, $;
|
|
869
869
|
return ($ = (f = k(a)) == null ? void 0 : f.scrollIntoView) == null ? void 0 : $.call(f, { block: "nearest" });
|
|
870
870
|
});
|
|
@@ -872,7 +872,7 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
872
872
|
function d(f) {
|
|
873
873
|
if (e.disabled)
|
|
874
874
|
return f.preventDefault();
|
|
875
|
-
n.selectOption(
|
|
875
|
+
n.selectOption(o), n.mode.value === 0 && n.closeCombobox(), Zn() || requestAnimationFrame(() => {
|
|
876
876
|
var $;
|
|
877
877
|
return ($ = k(n.inputRef)) == null ? void 0 : $.focus();
|
|
878
878
|
});
|
|
@@ -880,33 +880,33 @@ let lo = A({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
880
880
|
function m() {
|
|
881
881
|
if (e.disabled)
|
|
882
882
|
return n.goToOption(I.Nothing);
|
|
883
|
-
n.goToOption(I.Specific,
|
|
883
|
+
n.goToOption(I.Specific, o);
|
|
884
884
|
}
|
|
885
885
|
let v = Yt();
|
|
886
886
|
function p(f) {
|
|
887
887
|
v.update(f);
|
|
888
888
|
}
|
|
889
889
|
function b(f) {
|
|
890
|
-
v.wasMoved(f) && (e.disabled || i.value || n.goToOption(I.Specific,
|
|
890
|
+
v.wasMoved(f) && (e.disabled || i.value || n.goToOption(I.Specific, o, 0));
|
|
891
891
|
}
|
|
892
892
|
function h(f) {
|
|
893
893
|
v.wasMoved(f) && (e.disabled || i.value && (n.optionsPropsRef.value.hold || n.goToOption(I.Nothing)));
|
|
894
894
|
}
|
|
895
895
|
return () => {
|
|
896
|
-
let { disabled: f } = e, $ = { active: i.value, selected: s.value, disabled: f }, M = { id:
|
|
897
|
-
return B({ ourProps: M, theirProps: e, slot: $, attrs:
|
|
896
|
+
let { disabled: f } = e, $ = { active: i.value, selected: s.value, disabled: f }, M = { id: o, ref: a, role: "option", tabIndex: f === !0 ? void 0 : -1, "aria-disabled": f === !0 ? !0 : void 0, "aria-selected": s.value, disabled: void 0, onClick: d, onFocus: m, onPointerenter: p, onMouseenter: p, onPointermove: b, onMousemove: b, onPointerleave: h, onMouseleave: h };
|
|
897
|
+
return B({ ourProps: M, theirProps: e, slot: $, attrs: l, slots: t, name: "ComboboxOption" });
|
|
898
898
|
};
|
|
899
899
|
} });
|
|
900
900
|
var Le = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Le || {});
|
|
901
|
-
function
|
|
901
|
+
function dl() {
|
|
902
902
|
let e = w(0);
|
|
903
903
|
return Ft("keydown", (t) => {
|
|
904
904
|
t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
|
|
905
905
|
}), e;
|
|
906
906
|
}
|
|
907
|
-
function zt(e, t,
|
|
907
|
+
function zt(e, t, l, r) {
|
|
908
908
|
Be.isServer || ee((n) => {
|
|
909
|
-
e = e ?? window, e.addEventListener(t,
|
|
909
|
+
e = e ?? window, e.addEventListener(t, l, r), n(() => e.removeEventListener(t, l, r));
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
912
|
function Wt(e) {
|
|
@@ -914,7 +914,7 @@ function Wt(e) {
|
|
|
914
914
|
throw t;
|
|
915
915
|
}));
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function cl(e) {
|
|
918
918
|
function t() {
|
|
919
919
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
920
920
|
}
|
|
@@ -926,21 +926,21 @@ function Kt(e) {
|
|
|
926
926
|
if (typeof e == "function")
|
|
927
927
|
return new Set(e());
|
|
928
928
|
let t = /* @__PURE__ */ new Set();
|
|
929
|
-
for (let
|
|
930
|
-
let r = k(
|
|
929
|
+
for (let l of e.value) {
|
|
930
|
+
let r = k(l);
|
|
931
931
|
r instanceof HTMLElement && t.add(r);
|
|
932
932
|
}
|
|
933
933
|
return t;
|
|
934
934
|
}
|
|
935
935
|
var Jt = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(Jt || {});
|
|
936
|
-
let Ee = Object.assign(A({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: w(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots:
|
|
936
|
+
let Ee = Object.assign(A({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: w(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: l, expose: r }) {
|
|
937
937
|
let n = w(null);
|
|
938
938
|
r({ el: n, $el: n });
|
|
939
|
-
let
|
|
940
|
-
U(() => a.value = !0), se(() => a.value = !1),
|
|
941
|
-
let i =
|
|
942
|
-
|
|
943
|
-
let s =
|
|
939
|
+
let o = y(() => Se(n)), a = w(!1);
|
|
940
|
+
U(() => a.value = !0), se(() => a.value = !1), vl({ ownerDocument: o }, y(() => a.value && !!(e.features & 16)));
|
|
941
|
+
let i = pl({ ownerDocument: o, container: n, initialFocus: y(() => e.initialFocus) }, y(() => a.value && !!(e.features & 2)));
|
|
942
|
+
ml({ ownerDocument: o, container: n, containers: e.containers, previousActiveElement: i }, y(() => a.value && !!(e.features & 8)));
|
|
943
|
+
let s = dl();
|
|
944
944
|
function u(p) {
|
|
945
945
|
let b = k(n);
|
|
946
946
|
b && ((h) => h())(() => {
|
|
@@ -967,49 +967,49 @@ let Ee = Object.assign(A({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
967
967
|
}
|
|
968
968
|
return () => {
|
|
969
969
|
let p = {}, b = { ref: n, onKeydown: m, onFocusout: v }, { features: h, initialFocus: f, containers: $, ...M } = e;
|
|
970
|
-
return q(Z, [!!(h & 4) && q(je, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: De.Focusable }), B({ ourProps: b, theirProps: { ...t, ...M }, slot: p, attrs: t, slots:
|
|
970
|
+
return q(Z, [!!(h & 4) && q(je, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: De.Focusable }), B({ ourProps: b, theirProps: { ...t, ...M }, slot: p, attrs: t, slots: l, name: "FocusTrap" }), !!(h & 4) && q(je, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: De.Focusable })]);
|
|
971
971
|
};
|
|
972
972
|
} }), { features: Jt }), $e = [];
|
|
973
|
-
|
|
973
|
+
cl(() => {
|
|
974
974
|
function e(t) {
|
|
975
|
-
t.target instanceof HTMLElement && t.target !== document.body && $e[0] !== t.target && ($e.unshift(t.target), $e = $e.filter((
|
|
975
|
+
t.target instanceof HTMLElement && t.target !== document.body && $e[0] !== t.target && ($e.unshift(t.target), $e = $e.filter((l) => l != null && l.isConnected), $e.splice(10));
|
|
976
976
|
}
|
|
977
977
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
978
978
|
});
|
|
979
|
-
function
|
|
979
|
+
function fl(e) {
|
|
980
980
|
let t = w($e.slice());
|
|
981
|
-
return be([e], ([
|
|
982
|
-
r === !0 &&
|
|
981
|
+
return be([e], ([l], [r]) => {
|
|
982
|
+
r === !0 && l === !1 ? Wt(() => {
|
|
983
983
|
t.value.splice(0);
|
|
984
|
-
}) : r === !1 &&
|
|
984
|
+
}) : r === !1 && l === !0 && (t.value = $e.slice());
|
|
985
985
|
}, { flush: "post" }), () => {
|
|
986
|
-
var
|
|
987
|
-
return (
|
|
986
|
+
var l;
|
|
987
|
+
return (l = t.value.find((r) => r != null && r.isConnected)) != null ? l : null;
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
|
-
function
|
|
991
|
-
let
|
|
990
|
+
function vl({ ownerDocument: e }, t) {
|
|
991
|
+
let l = fl(t);
|
|
992
992
|
U(() => {
|
|
993
993
|
ee(() => {
|
|
994
994
|
var r, n;
|
|
995
|
-
t.value || ((r = e.value) == null ? void 0 : r.activeElement) === ((n = e.value) == null ? void 0 : n.body) && we(
|
|
995
|
+
t.value || ((r = e.value) == null ? void 0 : r.activeElement) === ((n = e.value) == null ? void 0 : n.body) && we(l());
|
|
996
996
|
}, { flush: "post" });
|
|
997
997
|
}), se(() => {
|
|
998
|
-
t.value && we(
|
|
998
|
+
t.value && we(l());
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1002
|
-
let n = w(null),
|
|
1003
|
-
return U(() =>
|
|
1004
|
-
be([t,
|
|
1001
|
+
function pl({ ownerDocument: e, container: t, initialFocus: l }, r) {
|
|
1002
|
+
let n = w(null), o = w(!1);
|
|
1003
|
+
return U(() => o.value = !0), se(() => o.value = !1), U(() => {
|
|
1004
|
+
be([t, l, r], (a, i) => {
|
|
1005
1005
|
if (a.every((u, d) => (i == null ? void 0 : i[d]) === u) || !r.value)
|
|
1006
1006
|
return;
|
|
1007
1007
|
let s = k(t);
|
|
1008
1008
|
s && Wt(() => {
|
|
1009
1009
|
var u, d;
|
|
1010
|
-
if (!
|
|
1010
|
+
if (!o.value)
|
|
1011
1011
|
return;
|
|
1012
|
-
let m = k(
|
|
1012
|
+
let m = k(l), v = (u = e.value) == null ? void 0 : u.activeElement;
|
|
1013
1013
|
if (m) {
|
|
1014
1014
|
if (m === v) {
|
|
1015
1015
|
n.value = v;
|
|
@@ -1024,12 +1024,12 @@ function mo({ ownerDocument: e, container: t, initialFocus: o }, r) {
|
|
|
1024
1024
|
}, { immediate: !0, flush: "post" });
|
|
1025
1025
|
}), n;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
var
|
|
1029
|
-
zt((
|
|
1027
|
+
function ml({ ownerDocument: e, container: t, containers: l, previousActiveElement: r }, n) {
|
|
1028
|
+
var o;
|
|
1029
|
+
zt((o = e.value) == null ? void 0 : o.defaultView, "focus", (a) => {
|
|
1030
1030
|
if (!n.value)
|
|
1031
1031
|
return;
|
|
1032
|
-
let i = Kt(
|
|
1032
|
+
let i = Kt(l);
|
|
1033
1033
|
k(t) instanceof HTMLElement && i.add(k(t));
|
|
1034
1034
|
let s = r.value;
|
|
1035
1035
|
if (!s)
|
|
@@ -1039,21 +1039,21 @@ function go({ ownerDocument: e, container: t, containers: o, previousActiveEleme
|
|
|
1039
1039
|
}, !0);
|
|
1040
1040
|
}
|
|
1041
1041
|
function Gt(e, t) {
|
|
1042
|
-
for (let
|
|
1043
|
-
if (
|
|
1042
|
+
for (let l of e)
|
|
1043
|
+
if (l.contains(t))
|
|
1044
1044
|
return !0;
|
|
1045
1045
|
return !1;
|
|
1046
1046
|
}
|
|
1047
1047
|
let Qe = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Map();
|
|
1048
1048
|
function St(e, t = w(!0)) {
|
|
1049
|
-
ee((
|
|
1049
|
+
ee((l) => {
|
|
1050
1050
|
var r;
|
|
1051
1051
|
if (!t.value)
|
|
1052
1052
|
return;
|
|
1053
1053
|
let n = k(e);
|
|
1054
1054
|
if (!n)
|
|
1055
1055
|
return;
|
|
1056
|
-
|
|
1056
|
+
l(function() {
|
|
1057
1057
|
var a;
|
|
1058
1058
|
if (!n)
|
|
1059
1059
|
return;
|
|
@@ -1063,37 +1063,37 @@ function St(e, t = w(!0)) {
|
|
|
1063
1063
|
let s = Qe.get(n);
|
|
1064
1064
|
s && (s["aria-hidden"] === null ? n.removeAttribute("aria-hidden") : n.setAttribute("aria-hidden", s["aria-hidden"]), n.inert = s.inert, Qe.delete(n));
|
|
1065
1065
|
});
|
|
1066
|
-
let
|
|
1067
|
-
Pe.set(n,
|
|
1066
|
+
let o = (r = Pe.get(n)) != null ? r : 0;
|
|
1067
|
+
Pe.set(n, o + 1), o === 0 && (Qe.set(n, { "aria-hidden": n.getAttribute("aria-hidden"), inert: n.inert }), n.setAttribute("aria-hidden", "true"), n.inert = !0);
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
1070
|
let Xt = Symbol("ForcePortalRootContext");
|
|
1071
|
-
function
|
|
1071
|
+
function gl() {
|
|
1072
1072
|
return ne(Xt, !1);
|
|
1073
1073
|
}
|
|
1074
|
-
let tt = A({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs:
|
|
1074
|
+
let tt = A({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: l }) {
|
|
1075
1075
|
return ie(Xt, e.force), () => {
|
|
1076
1076
|
let { force: r, ...n } = e;
|
|
1077
|
-
return B({ theirProps: n, ourProps: {}, slot: {}, slots: t, attrs:
|
|
1077
|
+
return B({ theirProps: n, ourProps: {}, slot: {}, slots: t, attrs: l, name: "ForcePortalRoot" });
|
|
1078
1078
|
};
|
|
1079
1079
|
} });
|
|
1080
|
-
function
|
|
1080
|
+
function hl(e) {
|
|
1081
1081
|
let t = Se(e);
|
|
1082
1082
|
if (!t) {
|
|
1083
1083
|
if (e === null)
|
|
1084
1084
|
return null;
|
|
1085
1085
|
throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
|
|
1086
1086
|
}
|
|
1087
|
-
let
|
|
1088
|
-
if (
|
|
1089
|
-
return
|
|
1087
|
+
let l = t.getElementById("headlessui-portal-root");
|
|
1088
|
+
if (l)
|
|
1089
|
+
return l;
|
|
1090
1090
|
let r = t.createElement("div");
|
|
1091
1091
|
return r.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(r);
|
|
1092
1092
|
}
|
|
1093
|
-
let Qt = A({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs:
|
|
1094
|
-
let r = w(null), n = y(() => Se(r)),
|
|
1093
|
+
let Qt = A({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: l }) {
|
|
1094
|
+
let r = w(null), n = y(() => Se(r)), o = gl(), a = ne(Zt, null), i = w(o === !0 || a == null ? hl(r.value) : a.resolveTarget());
|
|
1095
1095
|
ee(() => {
|
|
1096
|
-
|
|
1096
|
+
o || a != null && (i.value = a.resolveTarget());
|
|
1097
1097
|
});
|
|
1098
1098
|
let s = ne(nt, null);
|
|
1099
1099
|
return U(() => {
|
|
@@ -1107,155 +1107,155 @@ let Qt = A({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
1107
1107
|
if (i.value === null)
|
|
1108
1108
|
return null;
|
|
1109
1109
|
let u = { ref: r, "data-headlessui-portal": "" };
|
|
1110
|
-
return q(wn, { to: i.value }, B({ ourProps: u, theirProps: e, slot: {}, attrs:
|
|
1110
|
+
return q(wn, { to: i.value }, B({ ourProps: u, theirProps: e, slot: {}, attrs: l, slots: t, name: "Portal" }));
|
|
1111
1111
|
};
|
|
1112
1112
|
} }), nt = Symbol("PortalParentContext");
|
|
1113
|
-
function
|
|
1113
|
+
function bl() {
|
|
1114
1114
|
let e = ne(nt, null), t = w([]);
|
|
1115
|
-
function o
|
|
1116
|
-
return t.value.push(
|
|
1115
|
+
function l(o) {
|
|
1116
|
+
return t.value.push(o), e && e.register(o), () => r(o);
|
|
1117
1117
|
}
|
|
1118
|
-
function r(
|
|
1119
|
-
let a = t.value.indexOf(
|
|
1120
|
-
a !== -1 && t.value.splice(a, 1), e && e.unregister(
|
|
1118
|
+
function r(o) {
|
|
1119
|
+
let a = t.value.indexOf(o);
|
|
1120
|
+
a !== -1 && t.value.splice(a, 1), e && e.unregister(o);
|
|
1121
1121
|
}
|
|
1122
|
-
let n = { register:
|
|
1123
|
-
return [t, A({ name: "PortalWrapper", setup(
|
|
1122
|
+
let n = { register: l, unregister: r, portals: t };
|
|
1123
|
+
return [t, A({ name: "PortalWrapper", setup(o, { slots: a }) {
|
|
1124
1124
|
return ie(nt, n), () => {
|
|
1125
1125
|
var i;
|
|
1126
1126
|
return (i = a.default) == null ? void 0 : i.call(a);
|
|
1127
1127
|
};
|
|
1128
1128
|
} })];
|
|
1129
1129
|
}
|
|
1130
|
-
let Zt = Symbol("PortalGroupContext"),
|
|
1130
|
+
let Zt = Symbol("PortalGroupContext"), yl = A({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: l }) {
|
|
1131
1131
|
let r = Sn({ resolveTarget() {
|
|
1132
1132
|
return e.target;
|
|
1133
1133
|
} });
|
|
1134
1134
|
return ie(Zt, r), () => {
|
|
1135
|
-
let { target: n, ...
|
|
1136
|
-
return B({ theirProps:
|
|
1135
|
+
let { target: n, ...o } = e;
|
|
1136
|
+
return B({ theirProps: o, ourProps: {}, slot: {}, attrs: t, slots: l, name: "PortalGroup" });
|
|
1137
1137
|
};
|
|
1138
1138
|
} }), en = Symbol("StackContext");
|
|
1139
|
-
var
|
|
1140
|
-
function
|
|
1139
|
+
var lt = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(lt || {});
|
|
1140
|
+
function xl() {
|
|
1141
1141
|
return ne(en, () => {
|
|
1142
1142
|
});
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1145
|
-
let n =
|
|
1146
|
-
function
|
|
1144
|
+
function wl({ type: e, enabled: t, element: l, onUpdate: r }) {
|
|
1145
|
+
let n = xl();
|
|
1146
|
+
function o(...a) {
|
|
1147
1147
|
r == null || r(...a), n(...a);
|
|
1148
1148
|
}
|
|
1149
1149
|
U(() => {
|
|
1150
1150
|
be(t, (a, i) => {
|
|
1151
|
-
a ?
|
|
1151
|
+
a ? o(0, e, l) : i === !0 && o(1, e, l);
|
|
1152
1152
|
}, { immediate: !0, flush: "sync" });
|
|
1153
1153
|
}), se(() => {
|
|
1154
|
-
t.value &&
|
|
1155
|
-
}), ie(en,
|
|
1154
|
+
t.value && o(1, e, l);
|
|
1155
|
+
}), ie(en, o);
|
|
1156
1156
|
}
|
|
1157
1157
|
let tn = Symbol("DescriptionContext");
|
|
1158
|
-
function
|
|
1158
|
+
function Sl() {
|
|
1159
1159
|
let e = ne(tn, null);
|
|
1160
1160
|
if (e === null)
|
|
1161
1161
|
throw new Error("Missing parent");
|
|
1162
1162
|
return e;
|
|
1163
1163
|
}
|
|
1164
|
-
function nn({ slot: e = w({}), name: t = "Description", props:
|
|
1164
|
+
function nn({ slot: e = w({}), name: t = "Description", props: l = {} } = {}) {
|
|
1165
1165
|
let r = w([]);
|
|
1166
|
-
function n(
|
|
1167
|
-
return r.value.push(
|
|
1168
|
-
let a = r.value.indexOf(
|
|
1166
|
+
function n(o) {
|
|
1167
|
+
return r.value.push(o), () => {
|
|
1168
|
+
let a = r.value.indexOf(o);
|
|
1169
1169
|
a !== -1 && r.value.splice(a, 1);
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
|
-
return ie(tn, { register: n, slot: e, name: t, props:
|
|
1172
|
+
return ie(tn, { register: n, slot: e, name: t, props: l }), y(() => r.value.length > 0 ? r.value.join(" ") : void 0);
|
|
1173
1173
|
}
|
|
1174
|
-
A({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${te()}` } }, setup(e, { attrs: t, slots:
|
|
1175
|
-
let r =
|
|
1174
|
+
A({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${te()}` } }, setup(e, { attrs: t, slots: l }) {
|
|
1175
|
+
let r = Sl();
|
|
1176
1176
|
return U(() => se(r.register(e.id))), () => {
|
|
1177
|
-
let { name: n = "Description", slot:
|
|
1178
|
-
return B({ ourProps: u, theirProps: s, slot:
|
|
1177
|
+
let { name: n = "Description", slot: o = w({}), props: a = {} } = r, { id: i, ...s } = e, u = { ...Object.entries(a).reduce((d, [m, v]) => Object.assign(d, { [m]: C(v) }), {}), id: i };
|
|
1178
|
+
return B({ ourProps: u, theirProps: s, slot: o.value, attrs: t, slots: l, name: n });
|
|
1179
1179
|
};
|
|
1180
1180
|
} });
|
|
1181
|
-
function
|
|
1181
|
+
function kl(e) {
|
|
1182
1182
|
let t = kn(e.getSnapshot());
|
|
1183
1183
|
return se(e.subscribe(() => {
|
|
1184
1184
|
t.value = e.getSnapshot();
|
|
1185
1185
|
})), t;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
let
|
|
1187
|
+
function $l(e, t) {
|
|
1188
|
+
let l = e(), r = /* @__PURE__ */ new Set();
|
|
1189
1189
|
return { getSnapshot() {
|
|
1190
|
-
return
|
|
1190
|
+
return l;
|
|
1191
1191
|
}, subscribe(n) {
|
|
1192
1192
|
return r.add(n), () => r.delete(n);
|
|
1193
|
-
}, dispatch(n, ...
|
|
1194
|
-
let a = t[n].call(
|
|
1195
|
-
a && (
|
|
1193
|
+
}, dispatch(n, ...o) {
|
|
1194
|
+
let a = t[n].call(l, ...o);
|
|
1195
|
+
a && (l = a, r.forEach((i) => i()));
|
|
1196
1196
|
} };
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function Cl() {
|
|
1199
1199
|
let e;
|
|
1200
1200
|
return { before({ doc: t }) {
|
|
1201
|
-
var
|
|
1201
|
+
var l;
|
|
1202
1202
|
let r = t.documentElement;
|
|
1203
|
-
e = ((
|
|
1204
|
-
}, after({ doc: t, d:
|
|
1205
|
-
let r = t.documentElement, n = r.clientWidth - r.offsetWidth,
|
|
1206
|
-
|
|
1203
|
+
e = ((l = t.defaultView) != null ? l : window).innerWidth - r.clientWidth;
|
|
1204
|
+
}, after({ doc: t, d: l }) {
|
|
1205
|
+
let r = t.documentElement, n = r.clientWidth - r.offsetWidth, o = e - n;
|
|
1206
|
+
l.style(r, "paddingRight", `${o}px`);
|
|
1207
1207
|
} };
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function _l() {
|
|
1210
1210
|
if (!Ut())
|
|
1211
1211
|
return {};
|
|
1212
1212
|
let e;
|
|
1213
1213
|
return { before() {
|
|
1214
1214
|
e = window.pageYOffset;
|
|
1215
|
-
}, after({ doc: t, d:
|
|
1215
|
+
}, after({ doc: t, d: l, meta: r }) {
|
|
1216
1216
|
function n(a) {
|
|
1217
1217
|
return r.containers.flatMap((i) => i()).some((i) => i.contains(a));
|
|
1218
1218
|
}
|
|
1219
|
-
|
|
1220
|
-
let
|
|
1221
|
-
|
|
1219
|
+
l.style(t.body, "marginTop", `-${e}px`), window.scrollTo(0, 0);
|
|
1220
|
+
let o = null;
|
|
1221
|
+
l.addEventListener(t, "click", (a) => {
|
|
1222
1222
|
if (a.target instanceof HTMLElement)
|
|
1223
1223
|
try {
|
|
1224
1224
|
let i = a.target.closest("a");
|
|
1225
1225
|
if (!i)
|
|
1226
1226
|
return;
|
|
1227
1227
|
let { hash: s } = new URL(i.href), u = t.querySelector(s);
|
|
1228
|
-
u && !n(u) && (
|
|
1228
|
+
u && !n(u) && (o = u);
|
|
1229
1229
|
} catch {
|
|
1230
1230
|
}
|
|
1231
|
-
}, !0),
|
|
1231
|
+
}, !0), l.addEventListener(t, "touchmove", (a) => {
|
|
1232
1232
|
a.target instanceof HTMLElement && !n(a.target) && a.preventDefault();
|
|
1233
|
-
}, { passive: !1 }),
|
|
1234
|
-
window.scrollTo(0, window.pageYOffset + e),
|
|
1233
|
+
}, { passive: !1 }), l.add(() => {
|
|
1234
|
+
window.scrollTo(0, window.pageYOffset + e), o && o.isConnected && (o.scrollIntoView({ block: "nearest" }), o = null);
|
|
1235
1235
|
});
|
|
1236
1236
|
} };
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Ol() {
|
|
1239
1239
|
return { before({ doc: e, d: t }) {
|
|
1240
1240
|
t.style(e.documentElement, "overflow", "hidden");
|
|
1241
1241
|
} };
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function Dl(e) {
|
|
1244
1244
|
let t = {};
|
|
1245
|
-
for (let
|
|
1246
|
-
Object.assign(t,
|
|
1245
|
+
for (let l of e)
|
|
1246
|
+
Object.assign(t, l(t));
|
|
1247
1247
|
return t;
|
|
1248
1248
|
}
|
|
1249
|
-
let Ce =
|
|
1250
|
-
var
|
|
1251
|
-
let r = (
|
|
1249
|
+
let Ce = $l(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
1250
|
+
var l;
|
|
1251
|
+
let r = (l = this.get(e)) != null ? l : { doc: e, count: 0, d: Ne(), meta: /* @__PURE__ */ new Set() };
|
|
1252
1252
|
return r.count++, r.meta.add(t), this.set(e, r), this;
|
|
1253
1253
|
}, POP(e, t) {
|
|
1254
|
-
let
|
|
1255
|
-
return
|
|
1256
|
-
}, SCROLL_PREVENT({ doc: e, d: t, meta:
|
|
1257
|
-
let r = { doc: e, d: t, meta:
|
|
1258
|
-
n.forEach(({ before:
|
|
1254
|
+
let l = this.get(e);
|
|
1255
|
+
return l && (l.count--, l.meta.delete(t)), this;
|
|
1256
|
+
}, SCROLL_PREVENT({ doc: e, d: t, meta: l }) {
|
|
1257
|
+
let r = { doc: e, d: t, meta: Dl(l) }, n = [_l(), Cl(), Ol()];
|
|
1258
|
+
n.forEach(({ before: o }) => o == null ? void 0 : o(r)), n.forEach(({ after: o }) => o == null ? void 0 : o(r));
|
|
1259
1259
|
}, SCROLL_ALLOW({ d: e }) {
|
|
1260
1260
|
e.dispose();
|
|
1261
1261
|
}, TEARDOWN({ doc: e }) {
|
|
@@ -1263,60 +1263,60 @@ let Ce = Co(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
|
1263
1263
|
} });
|
|
1264
1264
|
Ce.subscribe(() => {
|
|
1265
1265
|
let e = Ce.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
1266
|
-
for (let [
|
|
1267
|
-
t.set(
|
|
1268
|
-
for (let
|
|
1269
|
-
let r = t.get(
|
|
1270
|
-
(n && !r || !n && r) && Ce.dispatch(
|
|
1266
|
+
for (let [l] of e)
|
|
1267
|
+
t.set(l, l.documentElement.style.overflow);
|
|
1268
|
+
for (let l of e.values()) {
|
|
1269
|
+
let r = t.get(l.doc) === "hidden", n = l.count !== 0;
|
|
1270
|
+
(n && !r || !n && r) && Ce.dispatch(l.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", l), l.count === 0 && Ce.dispatch("TEARDOWN", l);
|
|
1271
1271
|
}
|
|
1272
1272
|
});
|
|
1273
|
-
function
|
|
1274
|
-
let r =
|
|
1275
|
-
let
|
|
1276
|
-
return
|
|
1273
|
+
function Ml(e, t, l) {
|
|
1274
|
+
let r = kl(Ce), n = y(() => {
|
|
1275
|
+
let o = e.value ? r.value.get(e.value) : void 0;
|
|
1276
|
+
return o ? o.count > 0 : !1;
|
|
1277
1277
|
});
|
|
1278
|
-
return be([e, t], ([
|
|
1279
|
-
if (!
|
|
1278
|
+
return be([e, t], ([o, a], [i], s) => {
|
|
1279
|
+
if (!o || !a)
|
|
1280
1280
|
return;
|
|
1281
|
-
Ce.dispatch("PUSH",
|
|
1281
|
+
Ce.dispatch("PUSH", o, l);
|
|
1282
1282
|
let u = !1;
|
|
1283
1283
|
s(() => {
|
|
1284
|
-
u || (Ce.dispatch("POP", i ??
|
|
1284
|
+
u || (Ce.dispatch("POP", i ?? o, l), u = !0);
|
|
1285
1285
|
});
|
|
1286
1286
|
}, { immediate: !0 }), n;
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1289
|
-
let
|
|
1288
|
+
function Tl({ defaultContainers: e = [], portals: t } = {}) {
|
|
1289
|
+
let l = w(null), r = Se(l);
|
|
1290
1290
|
function n() {
|
|
1291
|
-
var
|
|
1291
|
+
var o;
|
|
1292
1292
|
let a = [];
|
|
1293
1293
|
for (let i of e)
|
|
1294
1294
|
i !== null && (i instanceof HTMLElement ? a.push(i) : "value" in i && i.value instanceof HTMLElement && a.push(i.value));
|
|
1295
1295
|
if (t != null && t.value)
|
|
1296
1296
|
for (let i of t.value)
|
|
1297
1297
|
a.push(i);
|
|
1298
|
-
for (let i of (
|
|
1299
|
-
i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (i.contains(k(
|
|
1298
|
+
for (let i of (o = r == null ? void 0 : r.querySelectorAll("html > *, body > *")) != null ? o : [])
|
|
1299
|
+
i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (i.contains(k(l)) || a.some((s) => i.contains(s)) || a.push(i));
|
|
1300
1300
|
return a;
|
|
1301
1301
|
}
|
|
1302
|
-
return { resolveContainers: n, contains(
|
|
1303
|
-
return n().some((a) => a.contains(
|
|
1304
|
-
}, mainTreeNodeRef:
|
|
1305
|
-
return q(je, { features: De.Hidden, ref:
|
|
1302
|
+
return { resolveContainers: n, contains(o) {
|
|
1303
|
+
return n().some((a) => a.contains(o));
|
|
1304
|
+
}, mainTreeNodeRef: l, MainTreeNode() {
|
|
1305
|
+
return q(je, { features: De.Hidden, ref: l });
|
|
1306
1306
|
} };
|
|
1307
1307
|
}
|
|
1308
|
-
var
|
|
1309
|
-
let
|
|
1308
|
+
var El = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(El || {});
|
|
1309
|
+
let ot = Symbol("DialogContext");
|
|
1310
1310
|
function He(e) {
|
|
1311
|
-
let t = ne(
|
|
1311
|
+
let t = ne(ot, null);
|
|
1312
1312
|
if (t === null) {
|
|
1313
|
-
let
|
|
1314
|
-
throw Error.captureStackTrace && Error.captureStackTrace(
|
|
1313
|
+
let l = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
1314
|
+
throw Error.captureStackTrace && Error.captureStackTrace(l, He), l;
|
|
1315
1315
|
}
|
|
1316
1316
|
return t;
|
|
1317
1317
|
}
|
|
1318
|
-
let ze = "DC8F892D-2EBD-447C-A4C8-A03058436FF4",
|
|
1319
|
-
var
|
|
1318
|
+
let ze = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Pl = A({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: ze }, initialFocus: { type: Object, default: null }, id: { type: String, default: () => `headlessui-dialog-${te()}` } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: l, slots: r, expose: n }) {
|
|
1319
|
+
var o;
|
|
1320
1320
|
let a = w(!1);
|
|
1321
1321
|
U(() => {
|
|
1322
1322
|
a.value = !0;
|
|
@@ -1326,7 +1326,7 @@ let ze = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Lo = A({ name: "Dialog", inheri
|
|
|
1326
1326
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
1327
1327
|
if (typeof u.value != "boolean")
|
|
1328
1328
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${u.value === ze ? void 0 : e.open}`);
|
|
1329
|
-
let v = y(() => a.value && u.value ? 0 : 1), p = y(() => v.value === 0), b = y(() => i.value > 1), h = ne(
|
|
1329
|
+
let v = y(() => a.value && u.value ? 0 : 1), p = y(() => v.value === 0), b = y(() => i.value > 1), h = ne(ot, null) !== null, [f, $] = bl(), { resolveContainers: M, mainTreeNodeRef: D, MainTreeNode: X } = Tl({ portals: f, defaultContainers: [y(() => {
|
|
1330
1330
|
var F;
|
|
1331
1331
|
return (F = ae.panelRef.value) != null ? F : d.value;
|
|
1332
1332
|
})] }), Q = y(() => b.value ? "parent" : "leaf"), _ = y(() => s !== null ? (s.value & z.Closing) === z.Closing : !1), E = y(() => h || _.value ? !1 : p.value), L = y(() => {
|
|
@@ -1338,26 +1338,26 @@ let ze = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Lo = A({ name: "Dialog", inheri
|
|
|
1338
1338
|
var F, J, ce;
|
|
1339
1339
|
return (ce = Array.from((J = (F = m.value) == null ? void 0 : F.querySelectorAll("[data-headlessui-portal]")) != null ? J : []).find((fe) => fe.contains(k(D)) && fe instanceof HTMLElement)) != null ? ce : null;
|
|
1340
1340
|
});
|
|
1341
|
-
St(j, T),
|
|
1341
|
+
St(j, T), wl({ type: "Dialog", enabled: y(() => v.value === 0), element: d, onUpdate: (F, J) => {
|
|
1342
1342
|
if (J === "Dialog")
|
|
1343
|
-
return K(F, { [
|
|
1343
|
+
return K(F, { [lt.Add]: () => i.value += 1, [lt.Remove]: () => i.value -= 1 });
|
|
1344
1344
|
} });
|
|
1345
1345
|
let N = nn({ name: "DialogDescription", slot: y(() => ({ open: u.value })) }), de = w(null), ae = { titleId: de, panelRef: w(null), dialogState: v, setTitleId(F) {
|
|
1346
1346
|
de.value !== F && (de.value = F);
|
|
1347
1347
|
}, close() {
|
|
1348
1348
|
t("close", !1);
|
|
1349
1349
|
} };
|
|
1350
|
-
ie(
|
|
1350
|
+
ie(ot, ae);
|
|
1351
1351
|
let Te = y(() => !(!p.value || b.value));
|
|
1352
1352
|
vt(M, (F, J) => {
|
|
1353
|
-
ae.close(),
|
|
1353
|
+
ae.close(), le(() => J == null ? void 0 : J.focus());
|
|
1354
1354
|
}, Te);
|
|
1355
1355
|
let ge = y(() => !(b.value || v.value !== 0));
|
|
1356
|
-
zt((
|
|
1356
|
+
zt((o = m.value) == null ? void 0 : o.defaultView, "keydown", (F) => {
|
|
1357
1357
|
ge.value && (F.defaultPrevented || F.key === P.Escape && (F.preventDefault(), F.stopPropagation(), ae.close()));
|
|
1358
1358
|
});
|
|
1359
1359
|
let _e = y(() => !(_.value || v.value !== 0 || h));
|
|
1360
|
-
return
|
|
1360
|
+
return Ml(m, _e, (F) => {
|
|
1361
1361
|
var J;
|
|
1362
1362
|
return { containers: [...(J = F.containers) != null ? J : [], M] };
|
|
1363
1363
|
}), ee((F) => {
|
|
@@ -1374,71 +1374,71 @@ let ze = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Lo = A({ name: "Dialog", inheri
|
|
|
1374
1374
|
});
|
|
1375
1375
|
ce.observe(J), F(() => ce.disconnect());
|
|
1376
1376
|
}), () => {
|
|
1377
|
-
let { id: F, open: J, initialFocus: ce, ...fe } = e, qe = { ...
|
|
1378
|
-
return q(tt, { force: !0 }, () => [q(Qt, () => q(
|
|
1377
|
+
let { id: F, open: J, initialFocus: ce, ...fe } = e, qe = { ...l, ref: d, id: F, role: "dialog", "aria-modal": v.value === 0 ? !0 : void 0, "aria-labelledby": de.value, "aria-describedby": N.value }, he = { open: v.value === 0 };
|
|
1378
|
+
return q(tt, { force: !0 }, () => [q(Qt, () => q(yl, { target: d.value }, () => q(tt, { force: !1 }, () => q(Ee, { initialFocus: ce, containers: M, features: p.value ? K(Q.value, { parent: Ee.features.RestoreFocus, leaf: Ee.features.All & ~Ee.features.FocusLock }) : Ee.features.None }, () => q($, {}, () => B({ ourProps: qe, theirProps: { ...fe, ...l }, slot: he, attrs: l, slots: r, visible: v.value === 0, features: me.RenderStrategy | me.Static, name: "Dialog" })))))), q(X)]);
|
|
1379
1379
|
};
|
|
1380
1380
|
} });
|
|
1381
|
-
A({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${te()}` } }, setup(e, { attrs: t, slots:
|
|
1381
|
+
A({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${te()}` } }, setup(e, { attrs: t, slots: l }) {
|
|
1382
1382
|
let r = He("DialogOverlay");
|
|
1383
|
-
function n(
|
|
1384
|
-
|
|
1383
|
+
function n(o) {
|
|
1384
|
+
o.target === o.currentTarget && (o.preventDefault(), o.stopPropagation(), r.close());
|
|
1385
1385
|
}
|
|
1386
1386
|
return () => {
|
|
1387
|
-
let { id:
|
|
1388
|
-
return B({ ourProps: { id:
|
|
1387
|
+
let { id: o, ...a } = e;
|
|
1388
|
+
return B({ ourProps: { id: o, "aria-hidden": !0, onClick: n }, theirProps: a, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: l, name: "DialogOverlay" });
|
|
1389
1389
|
};
|
|
1390
1390
|
} });
|
|
1391
|
-
A({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${te()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots:
|
|
1392
|
-
let n = He("DialogBackdrop"),
|
|
1393
|
-
return r({ el:
|
|
1391
|
+
A({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${te()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: l, expose: r }) {
|
|
1392
|
+
let n = He("DialogBackdrop"), o = w(null);
|
|
1393
|
+
return r({ el: o, $el: o }), U(() => {
|
|
1394
1394
|
if (n.panelRef.value === null)
|
|
1395
1395
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
1396
1396
|
}), () => {
|
|
1397
|
-
let { id: a, ...i } = e, s = { id: a, ref:
|
|
1398
|
-
return q(tt, { force: !0 }, () => q(Qt, () => B({ ourProps: s, theirProps: { ...t, ...i }, slot: { open: n.dialogState.value === 0 }, attrs: t, slots:
|
|
1397
|
+
let { id: a, ...i } = e, s = { id: a, ref: o, "aria-hidden": !0 };
|
|
1398
|
+
return q(tt, { force: !0 }, () => q(Qt, () => B({ ourProps: s, theirProps: { ...t, ...i }, slot: { open: n.dialogState.value === 0 }, attrs: t, slots: l, name: "DialogBackdrop" })));
|
|
1399
1399
|
};
|
|
1400
1400
|
} });
|
|
1401
|
-
let
|
|
1401
|
+
let Ll = A({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${te()}` } }, setup(e, { attrs: t, slots: l, expose: r }) {
|
|
1402
1402
|
let n = He("DialogPanel");
|
|
1403
1403
|
r({ el: n.panelRef, $el: n.panelRef });
|
|
1404
|
-
function
|
|
1404
|
+
function o(a) {
|
|
1405
1405
|
a.stopPropagation();
|
|
1406
1406
|
}
|
|
1407
1407
|
return () => {
|
|
1408
|
-
let { id: a, ...i } = e, s = { id: a, ref: n.panelRef, onClick:
|
|
1409
|
-
return B({ ourProps: s, theirProps: i, slot: { open: n.dialogState.value === 0 }, attrs: t, slots:
|
|
1408
|
+
let { id: a, ...i } = e, s = { id: a, ref: n.panelRef, onClick: o };
|
|
1409
|
+
return B({ ourProps: s, theirProps: i, slot: { open: n.dialogState.value === 0 }, attrs: t, slots: l, name: "DialogPanel" });
|
|
1410
1410
|
};
|
|
1411
|
-
} }),
|
|
1411
|
+
} }), Rl = A({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${te()}` } }, setup(e, { attrs: t, slots: l }) {
|
|
1412
1412
|
let r = He("DialogTitle");
|
|
1413
1413
|
return U(() => {
|
|
1414
1414
|
r.setTitleId(e.id), se(() => r.setTitleId(null));
|
|
1415
1415
|
}), () => {
|
|
1416
|
-
let { id: n, ...
|
|
1417
|
-
return B({ ourProps: { id: n }, theirProps:
|
|
1416
|
+
let { id: n, ...o } = e;
|
|
1417
|
+
return B({ ourProps: { id: n }, theirProps: o, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: l, name: "DialogTitle" });
|
|
1418
1418
|
};
|
|
1419
1419
|
} }), kt = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
1420
1420
|
function $t(e) {
|
|
1421
|
-
var t,
|
|
1421
|
+
var t, l;
|
|
1422
1422
|
let r = (t = e.innerText) != null ? t : "", n = e.cloneNode(!0);
|
|
1423
1423
|
if (!(n instanceof HTMLElement))
|
|
1424
1424
|
return r;
|
|
1425
|
-
let
|
|
1425
|
+
let o = !1;
|
|
1426
1426
|
for (let i of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
|
|
1427
|
-
i.remove(),
|
|
1428
|
-
let a =
|
|
1427
|
+
i.remove(), o = !0;
|
|
1428
|
+
let a = o ? (l = n.innerText) != null ? l : "" : r;
|
|
1429
1429
|
return kt.test(a) && (a = a.replace(kt, "")), a;
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function jl(e) {
|
|
1432
1432
|
let t = e.getAttribute("aria-label");
|
|
1433
1433
|
if (typeof t == "string")
|
|
1434
1434
|
return t.trim();
|
|
1435
|
-
let
|
|
1436
|
-
if (
|
|
1437
|
-
let r =
|
|
1438
|
-
let
|
|
1439
|
-
if (
|
|
1440
|
-
let a =
|
|
1441
|
-
return typeof a == "string" ? a.trim() : $t(
|
|
1435
|
+
let l = e.getAttribute("aria-labelledby");
|
|
1436
|
+
if (l) {
|
|
1437
|
+
let r = l.split(" ").map((n) => {
|
|
1438
|
+
let o = document.getElementById(n);
|
|
1439
|
+
if (o) {
|
|
1440
|
+
let a = o.getAttribute("aria-label");
|
|
1441
|
+
return typeof a == "string" ? a.trim() : $t(o).trim();
|
|
1442
1442
|
}
|
|
1443
1443
|
return null;
|
|
1444
1444
|
}).filter(Boolean);
|
|
@@ -1447,39 +1447,39 @@ function Io(e) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return $t(e).trim();
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1451
|
-
let t = w(""),
|
|
1450
|
+
function Il(e) {
|
|
1451
|
+
let t = w(""), l = w("");
|
|
1452
1452
|
return () => {
|
|
1453
1453
|
let r = k(e);
|
|
1454
1454
|
if (!r)
|
|
1455
1455
|
return "";
|
|
1456
1456
|
let n = r.innerText;
|
|
1457
1457
|
if (t.value === n)
|
|
1458
|
-
return
|
|
1459
|
-
let
|
|
1460
|
-
return t.value = n,
|
|
1458
|
+
return l.value;
|
|
1459
|
+
let o = jl(r).trim().toLowerCase();
|
|
1460
|
+
return t.value = n, l.value = o, o;
|
|
1461
1461
|
};
|
|
1462
1462
|
}
|
|
1463
|
-
var
|
|
1464
|
-
function
|
|
1463
|
+
var Al = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Al || {}), Fl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Fl || {});
|
|
1464
|
+
function Bl(e) {
|
|
1465
1465
|
requestAnimationFrame(() => requestAnimationFrame(e));
|
|
1466
1466
|
}
|
|
1467
|
-
let
|
|
1467
|
+
let ln = Symbol("MenuContext");
|
|
1468
1468
|
function Ke(e) {
|
|
1469
|
-
let t = ne(
|
|
1469
|
+
let t = ne(ln, null);
|
|
1470
1470
|
if (t === null) {
|
|
1471
|
-
let
|
|
1472
|
-
throw Error.captureStackTrace && Error.captureStackTrace(
|
|
1471
|
+
let l = new Error(`<${e} /> is missing a parent <Menu /> component.`);
|
|
1472
|
+
throw Error.captureStackTrace && Error.captureStackTrace(l, Ke), l;
|
|
1473
1473
|
}
|
|
1474
1474
|
return t;
|
|
1475
1475
|
}
|
|
1476
|
-
let
|
|
1477
|
-
let r = w(1), n = w(null),
|
|
1476
|
+
let Nl = A({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: l }) {
|
|
1477
|
+
let r = w(1), n = w(null), o = w(null), a = w([]), i = w(""), s = w(null), u = w(1);
|
|
1478
1478
|
function d(v = (p) => p) {
|
|
1479
1479
|
let p = s.value !== null ? a.value[s.value] : null, b = ft(v(a.value.slice()), (f) => k(f.dataRef.domRef)), h = p ? b.indexOf(p) : null;
|
|
1480
1480
|
return h === -1 && (h = null), { items: b, activeItemIndex: h };
|
|
1481
1481
|
}
|
|
1482
|
-
let m = { menuState: r, buttonRef: n, itemsRef:
|
|
1482
|
+
let m = { menuState: r, buttonRef: n, itemsRef: o, items: a, searchQuery: i, activeItemIndex: s, activationTrigger: u, closeMenu: () => {
|
|
1483
1483
|
r.value = 1, s.value = null;
|
|
1484
1484
|
}, openMenu: () => r.value = 0, goToItem(v, p, b) {
|
|
1485
1485
|
let h = d(), f = Pt(v === I.Specific ? { focus: I.Specific, id: p } : { focus: v }, { resolveItems: () => h.items, resolveActiveIndex: () => h.activeItemIndex, resolveId: ($) => $.id, resolveDisabled: ($) => $.dataRef.disabled });
|
|
@@ -1501,28 +1501,28 @@ let Ho = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1501
1501
|
});
|
|
1502
1502
|
a.value = p.items, s.value = p.activeItemIndex, u.value = 1;
|
|
1503
1503
|
} };
|
|
1504
|
-
return vt([n,
|
|
1504
|
+
return vt([n, o], (v, p) => {
|
|
1505
1505
|
var b;
|
|
1506
1506
|
m.closeMenu(), ct(p, dt.Loose) || (v.preventDefault(), (b = k(n)) == null || b.focus());
|
|
1507
|
-
}, y(() => r.value === 0)), ie(
|
|
1507
|
+
}, y(() => r.value === 0)), ie(ln, m), st(y(() => K(r.value, { [0]: z.Open, [1]: z.Closed }))), () => {
|
|
1508
1508
|
let v = { open: r.value === 0, close: m.closeMenu };
|
|
1509
|
-
return B({ ourProps: {}, theirProps: e, slot: v, slots: t, attrs:
|
|
1509
|
+
return B({ ourProps: {}, theirProps: e, slot: v, slots: t, attrs: l, name: "Menu" });
|
|
1510
1510
|
};
|
|
1511
|
-
} }),
|
|
1511
|
+
} }), Hl = A({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-menu-button-${te()}` } }, setup(e, { attrs: t, slots: l, expose: r }) {
|
|
1512
1512
|
let n = Ke("MenuButton");
|
|
1513
1513
|
r({ el: n.buttonRef, $el: n.buttonRef });
|
|
1514
|
-
function
|
|
1514
|
+
function o(u) {
|
|
1515
1515
|
switch (u.key) {
|
|
1516
1516
|
case P.Space:
|
|
1517
1517
|
case P.Enter:
|
|
1518
1518
|
case P.ArrowDown:
|
|
1519
|
-
u.preventDefault(), u.stopPropagation(), n.openMenu(),
|
|
1519
|
+
u.preventDefault(), u.stopPropagation(), n.openMenu(), le(() => {
|
|
1520
1520
|
var d;
|
|
1521
1521
|
(d = k(n.itemsRef)) == null || d.focus({ preventScroll: !0 }), n.goToItem(I.First);
|
|
1522
1522
|
});
|
|
1523
1523
|
break;
|
|
1524
1524
|
case P.ArrowUp:
|
|
1525
|
-
u.preventDefault(), u.stopPropagation(), n.openMenu(),
|
|
1525
|
+
u.preventDefault(), u.stopPropagation(), n.openMenu(), le(() => {
|
|
1526
1526
|
var d;
|
|
1527
1527
|
(d = k(n.itemsRef)) == null || d.focus({ preventScroll: !0 }), n.goToItem(I.Last);
|
|
1528
1528
|
});
|
|
@@ -1537,10 +1537,10 @@ let Ho = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
function i(u) {
|
|
1540
|
-
e.disabled || (n.menuState.value === 0 ? (n.closeMenu(),
|
|
1540
|
+
e.disabled || (n.menuState.value === 0 ? (n.closeMenu(), le(() => {
|
|
1541
1541
|
var d;
|
|
1542
1542
|
return (d = k(n.buttonRef)) == null ? void 0 : d.focus({ preventScroll: !0 });
|
|
1543
|
-
})) : (u.preventDefault(), n.openMenu(),
|
|
1543
|
+
})) : (u.preventDefault(), n.openMenu(), Bl(() => {
|
|
1544
1544
|
var d;
|
|
1545
1545
|
return (d = k(n.itemsRef)) == null ? void 0 : d.focus({ preventScroll: !0 });
|
|
1546
1546
|
})));
|
|
@@ -1548,11 +1548,11 @@ let Ho = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1548
1548
|
let s = ut(y(() => ({ as: e.as, type: t.type })), n.buttonRef);
|
|
1549
1549
|
return () => {
|
|
1550
1550
|
var u;
|
|
1551
|
-
let d = { open: n.menuState.value === 0 }, { id: m, ...v } = e, p = { ref: n.buttonRef, id: m, type: s.value, "aria-haspopup": "menu", "aria-controls": (u = k(n.itemsRef)) == null ? void 0 : u.id, "aria-expanded": e.disabled ? void 0 : n.menuState.value === 0, onKeydown:
|
|
1552
|
-
return B({ ourProps: p, theirProps: v, slot: d, attrs: t, slots:
|
|
1551
|
+
let d = { open: n.menuState.value === 0 }, { id: m, ...v } = e, p = { ref: n.buttonRef, id: m, type: s.value, "aria-haspopup": "menu", "aria-controls": (u = k(n.itemsRef)) == null ? void 0 : u.id, "aria-expanded": e.disabled ? void 0 : n.menuState.value === 0, onKeydown: o, onKeyup: a, onClick: i };
|
|
1552
|
+
return B({ ourProps: p, theirProps: v, slot: d, attrs: t, slots: l, name: "MenuButton" });
|
|
1553
1553
|
};
|
|
1554
|
-
} }),
|
|
1555
|
-
let n = Ke("MenuItems"),
|
|
1554
|
+
} }), 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-${te()}` } }, setup(e, { attrs: t, slots: l, expose: r }) {
|
|
1555
|
+
let n = Ke("MenuItems"), o = w(null);
|
|
1556
1556
|
r({ el: n.itemsRef, $el: n.itemsRef }), Rt({ container: y(() => k(n.itemsRef)), enabled: y(() => n.menuState.value === 0), accept(d) {
|
|
1557
1557
|
return d.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : d.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
1558
1558
|
}, walk(d) {
|
|
@@ -1560,7 +1560,7 @@ let Ho = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1560
1560
|
} });
|
|
1561
1561
|
function a(d) {
|
|
1562
1562
|
var m;
|
|
1563
|
-
switch (
|
|
1563
|
+
switch (o.value && clearTimeout(o.value), d.key) {
|
|
1564
1564
|
case P.Space:
|
|
1565
1565
|
if (n.searchQuery.value !== "")
|
|
1566
1566
|
return d.preventDefault(), d.stopPropagation(), n.search(d.key);
|
|
@@ -1582,16 +1582,16 @@ let Ho = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1582
1582
|
case P.PageDown:
|
|
1583
1583
|
return d.preventDefault(), d.stopPropagation(), n.goToItem(I.Last);
|
|
1584
1584
|
case P.Escape:
|
|
1585
|
-
d.preventDefault(), d.stopPropagation(), n.closeMenu(),
|
|
1585
|
+
d.preventDefault(), d.stopPropagation(), n.closeMenu(), le(() => {
|
|
1586
1586
|
var v;
|
|
1587
1587
|
return (v = k(n.buttonRef)) == null ? void 0 : v.focus({ preventScroll: !0 });
|
|
1588
1588
|
});
|
|
1589
1589
|
break;
|
|
1590
1590
|
case P.Tab:
|
|
1591
|
-
d.preventDefault(), d.stopPropagation(), n.closeMenu(),
|
|
1591
|
+
d.preventDefault(), d.stopPropagation(), n.closeMenu(), le(() => Gn(k(n.buttonRef), d.shiftKey ? pe.Previous : pe.Next));
|
|
1592
1592
|
break;
|
|
1593
1593
|
default:
|
|
1594
|
-
d.key.length === 1 && (n.search(d.key),
|
|
1594
|
+
d.key.length === 1 && (n.search(d.key), o.value = setTimeout(() => n.clearSearch(), 350));
|
|
1595
1595
|
break;
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
@@ -1606,18 +1606,18 @@ let Ho = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1606
1606
|
return () => {
|
|
1607
1607
|
var d, m;
|
|
1608
1608
|
let v = { open: n.menuState.value === 0 }, { id: p, ...b } = e, h = { "aria-activedescendant": n.activeItemIndex.value === null || (d = n.items.value[n.activeItemIndex.value]) == null ? void 0 : d.id, "aria-labelledby": (m = k(n.buttonRef)) == null ? void 0 : m.id, id: p, onKeydown: a, onKeyup: i, role: "menu", tabIndex: 0, ref: n.itemsRef };
|
|
1609
|
-
return B({ ourProps: h, theirProps: b, slot: v, attrs: t, slots:
|
|
1609
|
+
return B({ ourProps: h, theirProps: b, slot: v, attrs: t, slots: l, features: me.RenderStrategy | me.Static, visible: u.value, name: "MenuItems" });
|
|
1610
1610
|
};
|
|
1611
|
-
} }),
|
|
1612
|
-
let n = Ke("MenuItem"),
|
|
1613
|
-
r({ el:
|
|
1614
|
-
let a = y(() => n.activeItemIndex.value !== null ? n.items.value[n.activeItemIndex.value].id === e.id : !1), i =
|
|
1611
|
+
} }), Yl = A({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-menu-item-${te()}` } }, setup(e, { slots: t, attrs: l, expose: r }) {
|
|
1612
|
+
let n = Ke("MenuItem"), o = w(null);
|
|
1613
|
+
r({ el: o, $el: o });
|
|
1614
|
+
let a = y(() => n.activeItemIndex.value !== null ? n.items.value[n.activeItemIndex.value].id === e.id : !1), i = Il(o), s = y(() => ({ disabled: e.disabled, get textValue() {
|
|
1615
1615
|
return i();
|
|
1616
|
-
}, domRef:
|
|
1616
|
+
}, domRef: o }));
|
|
1617
1617
|
U(() => n.registerItem(e.id, s)), se(() => n.unregisterItem(e.id)), ee(() => {
|
|
1618
|
-
n.menuState.value === 0 && a.value && n.activationTrigger.value !== 0 &&
|
|
1618
|
+
n.menuState.value === 0 && a.value && n.activationTrigger.value !== 0 && le(() => {
|
|
1619
1619
|
var h, f;
|
|
1620
|
-
return (f = (h = k(
|
|
1620
|
+
return (f = (h = k(o)) == null ? void 0 : h.scrollIntoView) == null ? void 0 : f.call(h, { block: "nearest" });
|
|
1621
1621
|
});
|
|
1622
1622
|
});
|
|
1623
1623
|
function u(h) {
|
|
@@ -1642,47 +1642,47 @@ let Ho = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1642
1642
|
}
|
|
1643
1643
|
return () => {
|
|
1644
1644
|
let { disabled: h } = e, f = { active: a.value, disabled: h, close: n.closeMenu }, { id: $, ...M } = e;
|
|
1645
|
-
return B({ ourProps: { id: $, ref:
|
|
1645
|
+
return B({ ourProps: { id: $, ref: o, role: "menuitem", tabIndex: h === !0 ? void 0 : -1, "aria-disabled": h === !0 ? !0 : void 0, disabled: void 0, onClick: u, onFocus: d, onPointerenter: v, onMouseenter: v, onPointermove: p, onMousemove: p, onPointerleave: b, onMouseleave: b }, theirProps: { ...l, ...M }, slot: f, attrs: l, slots: t, name: "MenuItem" });
|
|
1646
1646
|
};
|
|
1647
|
-
} }),
|
|
1647
|
+
} }), on = Symbol("LabelContext");
|
|
1648
1648
|
function rn() {
|
|
1649
|
-
let e = ne(
|
|
1649
|
+
let e = ne(on, null);
|
|
1650
1650
|
if (e === null) {
|
|
1651
1651
|
let t = new Error("You used a <Label /> component, but it is not inside a parent.");
|
|
1652
1652
|
throw Error.captureStackTrace && Error.captureStackTrace(t, rn), t;
|
|
1653
1653
|
}
|
|
1654
1654
|
return e;
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function Ul({ slot: e = {}, name: t = "Label", props: l = {} } = {}) {
|
|
1657
1657
|
let r = w([]);
|
|
1658
|
-
function n(
|
|
1659
|
-
return r.value.push(
|
|
1660
|
-
let a = r.value.indexOf(
|
|
1658
|
+
function n(o) {
|
|
1659
|
+
return r.value.push(o), () => {
|
|
1660
|
+
let a = r.value.indexOf(o);
|
|
1661
1661
|
a !== -1 && r.value.splice(a, 1);
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
|
-
return ie(
|
|
1664
|
+
return ie(on, { register: n, slot: e, name: t, props: l }), y(() => r.value.length > 0 ? r.value.join(" ") : void 0);
|
|
1665
1665
|
}
|
|
1666
|
-
let
|
|
1666
|
+
let ql = A({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-label-${te()}` } }, setup(e, { slots: t, attrs: l }) {
|
|
1667
1667
|
let r = rn();
|
|
1668
1668
|
return U(() => se(r.register(e.id))), () => {
|
|
1669
|
-
let { name: n = "Label", slot:
|
|
1670
|
-
return s && (delete d.onClick, delete d.htmlFor, delete u.onClick), B({ ourProps: d, theirProps: u, slot:
|
|
1669
|
+
let { name: n = "Label", slot: o = {}, props: a = {} } = r, { id: i, passive: s, ...u } = e, d = { ...Object.entries(a).reduce((m, [v, p]) => Object.assign(m, { [v]: C(p) }), {}), id: i };
|
|
1670
|
+
return s && (delete d.onClick, delete d.htmlFor, delete u.onClick), B({ ourProps: d, theirProps: u, slot: o, attrs: l, slots: t, name: n });
|
|
1671
1671
|
};
|
|
1672
|
-
} }), an = Symbol("GroupContext"),
|
|
1673
|
-
let r = w(null), n =
|
|
1672
|
+
} }), an = Symbol("GroupContext"), zl = A({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: l }) {
|
|
1673
|
+
let r = w(null), n = Ul({ name: "SwitchLabel", props: { htmlFor: y(() => {
|
|
1674
1674
|
var a;
|
|
1675
1675
|
return (a = r.value) == null ? void 0 : a.id;
|
|
1676
1676
|
}), onClick(a) {
|
|
1677
1677
|
r.value && (a.currentTarget.tagName === "LABEL" && a.preventDefault(), r.value.click(), r.value.focus({ preventScroll: !0 }));
|
|
1678
|
-
} } }),
|
|
1679
|
-
return ie(an, { switchRef: r, labelledby: n, describedby:
|
|
1680
|
-
} }),
|
|
1681
|
-
let
|
|
1678
|
+
} } }), o = nn({ name: "SwitchDescription" });
|
|
1679
|
+
return ie(an, { switchRef: r, labelledby: n, describedby: o }), () => B({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: l, name: "SwitchGroup" });
|
|
1680
|
+
} }), Wl = A({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: !0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, value: { type: String, optional: !0 }, id: { type: String, default: () => `headlessui-switch-${te()}` } }, inheritAttrs: !1, setup(e, { emit: t, attrs: l, slots: r, expose: n }) {
|
|
1681
|
+
let o = ne(an, null), [a, i] = Vt(y(() => e.modelValue), (f) => t("update:modelValue", f), y(() => e.defaultChecked));
|
|
1682
1682
|
function s() {
|
|
1683
1683
|
i(!a.value);
|
|
1684
1684
|
}
|
|
1685
|
-
let u = w(null), d =
|
|
1685
|
+
let u = w(null), d = o === null ? u : o.switchRef, m = ut(y(() => ({ as: e.as, type: l.type })), d);
|
|
1686
1686
|
n({ el: d, $el: d });
|
|
1687
1687
|
function v(f) {
|
|
1688
1688
|
f.preventDefault(), s();
|
|
@@ -1710,15 +1710,15 @@ let zo = A({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1710
1710
|
};
|
|
1711
1711
|
}, { immediate: !0 });
|
|
1712
1712
|
}), () => {
|
|
1713
|
-
let { id: f, name: $, value: M, form: D, ...X } = e, Q = { checked: a.value }, _ = { id: f, ref: d, role: "switch", type: m.value, tabIndex: 0, "aria-checked": a.value, "aria-labelledby":
|
|
1714
|
-
return q(Z, [$ != null && a.value != null ? q(je, Et({ features: De.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: a.value, form: D, name: $, value: M })) : null, B({ ourProps: _, theirProps: { ...
|
|
1713
|
+
let { id: f, name: $, value: M, form: D, ...X } = e, Q = { checked: a.value }, _ = { id: f, ref: d, role: "switch", type: m.value, tabIndex: 0, "aria-checked": a.value, "aria-labelledby": o == null ? void 0 : o.labelledby.value, "aria-describedby": o == null ? void 0 : o.describedby.value, onClick: v, onKeyup: p, onKeypress: b };
|
|
1714
|
+
return q(Z, [$ != null && a.value != null ? q(je, Et({ features: De.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: a.value, form: D, name: $, value: M })) : null, B({ ourProps: _, theirProps: { ...l, ...Ae(X, ["modelValue", "defaultChecked"]) }, slot: Q, attrs: l, slots: r, name: "Switch" })]);
|
|
1715
1715
|
};
|
|
1716
|
-
} }),
|
|
1717
|
-
function
|
|
1716
|
+
} }), Kl = ql;
|
|
1717
|
+
function Jl(e) {
|
|
1718
1718
|
let t = { called: !1 };
|
|
1719
|
-
return (...
|
|
1719
|
+
return (...l) => {
|
|
1720
1720
|
if (!t.called)
|
|
1721
|
-
return t.called = !0, e(...
|
|
1721
|
+
return t.called = !0, e(...l);
|
|
1722
1722
|
};
|
|
1723
1723
|
}
|
|
1724
1724
|
function Ze(e, ...t) {
|
|
@@ -1728,38 +1728,38 @@ function We(e, ...t) {
|
|
|
1728
1728
|
e && t.length > 0 && e.classList.remove(...t);
|
|
1729
1729
|
}
|
|
1730
1730
|
var rt = ((e) => (e.Finished = "finished", e.Cancelled = "cancelled", e))(rt || {});
|
|
1731
|
-
function
|
|
1732
|
-
let
|
|
1731
|
+
function Gl(e, t) {
|
|
1732
|
+
let l = Ne();
|
|
1733
1733
|
if (!e)
|
|
1734
|
-
return
|
|
1735
|
-
let { transitionDuration: r, transitionDelay: n } = getComputedStyle(e), [
|
|
1734
|
+
return l.dispose;
|
|
1735
|
+
let { transitionDuration: r, transitionDelay: n } = getComputedStyle(e), [o, a] = [r, n].map((i) => {
|
|
1736
1736
|
let [s = 0] = i.split(",").filter(Boolean).map((u) => u.includes("ms") ? parseFloat(u) : parseFloat(u) * 1e3).sort((u, d) => d - u);
|
|
1737
1737
|
return s;
|
|
1738
1738
|
});
|
|
1739
|
-
return
|
|
1739
|
+
return o !== 0 ? l.setTimeout(() => t("finished"), o + a) : t("finished"), l.add(() => t("cancelled")), l.dispose;
|
|
1740
1740
|
}
|
|
1741
|
-
function Ct(e, t,
|
|
1742
|
-
let a = Ne(), i =
|
|
1741
|
+
function Ct(e, t, l, r, n, o) {
|
|
1742
|
+
let a = Ne(), i = o !== void 0 ? Jl(o) : () => {
|
|
1743
1743
|
};
|
|
1744
|
-
return We(e, ...n), Ze(e, ...t, ...
|
|
1745
|
-
We(e, ...
|
|
1746
|
-
}), a.add(() => We(e, ...t, ...
|
|
1744
|
+
return We(e, ...n), Ze(e, ...t, ...l), a.nextFrame(() => {
|
|
1745
|
+
We(e, ...l), Ze(e, ...r), a.add(Gl(e, (s) => (We(e, ...r, ...t), Ze(e, ...n), i(s))));
|
|
1746
|
+
}), a.add(() => We(e, ...t, ...l, ...r, ...n)), a.add(() => i("cancelled")), a.dispose;
|
|
1747
1747
|
}
|
|
1748
1748
|
function ke(e = "") {
|
|
1749
1749
|
return e.split(" ").filter((t) => t.trim().length > 1);
|
|
1750
1750
|
}
|
|
1751
1751
|
let pt = Symbol("TransitionContext");
|
|
1752
|
-
var
|
|
1753
|
-
function
|
|
1752
|
+
var Xl = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Xl || {});
|
|
1753
|
+
function Ql() {
|
|
1754
1754
|
return ne(pt, null) !== null;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Zl() {
|
|
1757
1757
|
let e = ne(pt, null);
|
|
1758
1758
|
if (e === null)
|
|
1759
1759
|
throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
1760
1760
|
return e;
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function eo() {
|
|
1763
1763
|
let e = ne(mt, null);
|
|
1764
1764
|
if (e === null)
|
|
1765
1765
|
throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
@@ -1770,41 +1770,41 @@ function Je(e) {
|
|
|
1770
1770
|
return "children" in e ? Je(e.children) : e.value.filter(({ state: t }) => t === "visible").length > 0;
|
|
1771
1771
|
}
|
|
1772
1772
|
function sn(e) {
|
|
1773
|
-
let t = w([]),
|
|
1774
|
-
U(() =>
|
|
1775
|
-
function r(
|
|
1776
|
-
let i = t.value.findIndex(({ id: s }) => s ===
|
|
1773
|
+
let t = w([]), l = w(!1);
|
|
1774
|
+
U(() => l.value = !0), se(() => l.value = !1);
|
|
1775
|
+
function r(o, a = xe.Hidden) {
|
|
1776
|
+
let i = t.value.findIndex(({ id: s }) => s === o);
|
|
1777
1777
|
i !== -1 && (K(a, { [xe.Unmount]() {
|
|
1778
1778
|
t.value.splice(i, 1);
|
|
1779
1779
|
}, [xe.Hidden]() {
|
|
1780
1780
|
t.value[i].state = "hidden";
|
|
1781
|
-
} }), !Je(t) &&
|
|
1781
|
+
} }), !Je(t) && l.value && (e == null || e()));
|
|
1782
1782
|
}
|
|
1783
|
-
function n(
|
|
1784
|
-
let a = t.value.find(({ id: i }) => i ===
|
|
1785
|
-
return a ? a.state !== "visible" && (a.state = "visible") : t.value.push({ id:
|
|
1783
|
+
function n(o) {
|
|
1784
|
+
let a = t.value.find(({ id: i }) => i === o);
|
|
1785
|
+
return a ? a.state !== "visible" && (a.state = "visible") : t.value.push({ id: o, state: "visible" }), () => r(o, xe.Unmount);
|
|
1786
1786
|
}
|
|
1787
1787
|
return { children: t, register: n, unregister: r };
|
|
1788
1788
|
}
|
|
1789
|
-
let un = me.RenderStrategy, at = A({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs:
|
|
1790
|
-
let
|
|
1789
|
+
let un = me.RenderStrategy, at = A({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: l, slots: r, expose: n }) {
|
|
1790
|
+
let o = w(0);
|
|
1791
1791
|
function a() {
|
|
1792
|
-
|
|
1792
|
+
o.value |= z.Opening, t("beforeEnter");
|
|
1793
1793
|
}
|
|
1794
1794
|
function i() {
|
|
1795
|
-
|
|
1795
|
+
o.value &= ~z.Opening, t("afterEnter");
|
|
1796
1796
|
}
|
|
1797
1797
|
function s() {
|
|
1798
|
-
|
|
1798
|
+
o.value |= z.Closing, t("beforeLeave");
|
|
1799
1799
|
}
|
|
1800
1800
|
function u() {
|
|
1801
|
-
|
|
1801
|
+
o.value &= ~z.Closing, t("afterLeave");
|
|
1802
1802
|
}
|
|
1803
|
-
if (!
|
|
1803
|
+
if (!Ql() && Vn())
|
|
1804
1804
|
return () => q(dn, { ...e, onBeforeEnter: a, onAfterEnter: i, onBeforeLeave: s, onAfterLeave: u }, r);
|
|
1805
1805
|
let d = w(null), m = y(() => e.unmount ? xe.Unmount : xe.Hidden);
|
|
1806
1806
|
n({ el: d, $el: d });
|
|
1807
|
-
let { show: v, appear: p } =
|
|
1807
|
+
let { show: v, appear: p } = Zl(), { register: b, unregister: h } = eo(), f = w(v.value ? "visible" : "hidden"), $ = { value: !0 }, M = te(), D = { value: !1 }, X = sn(() => {
|
|
1808
1808
|
!D.value && f.value !== "hidden" && (f.value = "hidden", h(M), u());
|
|
1809
1809
|
});
|
|
1810
1810
|
U(() => {
|
|
@@ -1841,29 +1841,29 @@ let un = me.RenderStrategy, at = A({ props: { as: { type: [Object, String], defa
|
|
|
1841
1841
|
be([v], (ae, Te, ge) => {
|
|
1842
1842
|
de(ge), $.value = !1;
|
|
1843
1843
|
}, { immediate: !0 });
|
|
1844
|
-
}), ie(mt, X), st(y(() => K(f.value, { visible: z.Open, hidden: z.Closed }) |
|
|
1845
|
-
let { appear: ae, show: Te, enter: ge, enterFrom: _e, enterTo: F, entered: J, leave: ce, leaveFrom: fe, leaveTo: qe, ...he } = e, hn = { ref: d }, bn = { ...he, ...p.value && v.value && Be.isServer ? { class: R([
|
|
1846
|
-
return B({ theirProps: bn, ourProps: hn, slot: {}, slots: r, attrs:
|
|
1844
|
+
}), ie(mt, X), st(y(() => K(f.value, { visible: z.Open, hidden: z.Closed }) | o.value)), () => {
|
|
1845
|
+
let { appear: ae, show: Te, enter: ge, enterFrom: _e, enterTo: F, entered: J, leave: ce, leaveFrom: fe, leaveTo: qe, ...he } = e, hn = { ref: d }, bn = { ...he, ...p.value && v.value && Be.isServer ? { class: R([l.class, he.class, ...Q, ..._]) } : {} };
|
|
1846
|
+
return B({ theirProps: bn, ourProps: hn, slot: {}, slots: r, attrs: l, features: un, visible: f.value === "visible", name: "TransitionChild" });
|
|
1847
1847
|
};
|
|
1848
|
-
} }),
|
|
1849
|
-
let n = Fe(),
|
|
1848
|
+
} }), to = at, dn = A({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: l, slots: r }) {
|
|
1849
|
+
let n = Fe(), o = y(() => e.show === null && n !== null ? (n.value & z.Open) === z.Open : e.show);
|
|
1850
1850
|
ee(() => {
|
|
1851
|
-
if (![!0, !1].includes(
|
|
1851
|
+
if (![!0, !1].includes(o.value))
|
|
1852
1852
|
throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
|
|
1853
1853
|
});
|
|
1854
|
-
let a = w(
|
|
1854
|
+
let a = w(o.value ? "visible" : "hidden"), i = sn(() => {
|
|
1855
1855
|
a.value = "hidden";
|
|
1856
|
-
}), s = w(!0), u = { show:
|
|
1856
|
+
}), s = w(!0), u = { show: o, appear: y(() => e.appear || !s.value) };
|
|
1857
1857
|
return U(() => {
|
|
1858
1858
|
ee(() => {
|
|
1859
|
-
s.value = !1,
|
|
1859
|
+
s.value = !1, o.value ? a.value = "visible" : Je(i) || (a.value = "hidden");
|
|
1860
1860
|
});
|
|
1861
1861
|
}), ie(mt, i), ie(pt, u), () => {
|
|
1862
1862
|
let d = Ae(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), m = { unmount: e.unmount };
|
|
1863
|
-
return B({ ourProps: { ...m, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [q(
|
|
1863
|
+
return B({ ourProps: { ...m, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [q(to, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...l, ...m, ...d }, r.default)] }, attrs: {}, features: un, visible: a.value === "visible", name: "Transition" });
|
|
1864
1864
|
};
|
|
1865
1865
|
} });
|
|
1866
|
-
function
|
|
1866
|
+
function no(e, t) {
|
|
1867
1867
|
return g(), x("svg", {
|
|
1868
1868
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1869
1869
|
fill: "none",
|
|
@@ -1911,7 +1911,7 @@ function gt(e, t) {
|
|
|
1911
1911
|
})
|
|
1912
1912
|
]);
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function lo(e, t) {
|
|
1915
1915
|
return g(), x("svg", {
|
|
1916
1916
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1917
1917
|
fill: "none",
|
|
@@ -1927,7 +1927,7 @@ function ll(e, t) {
|
|
|
1927
1927
|
})
|
|
1928
1928
|
]);
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1930
|
+
function oo(e, t) {
|
|
1931
1931
|
return g(), x("svg", {
|
|
1932
1932
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1933
1933
|
fill: "none",
|
|
@@ -1959,7 +1959,7 @@ function fn(e, t) {
|
|
|
1959
1959
|
})
|
|
1960
1960
|
]);
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function ro(e, t) {
|
|
1963
1963
|
return g(), x("svg", {
|
|
1964
1964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1965
1965
|
fill: "none",
|
|
@@ -1975,7 +1975,7 @@ function al(e, t) {
|
|
|
1975
1975
|
})
|
|
1976
1976
|
]);
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1978
|
+
function ao(e, t) {
|
|
1979
1979
|
return g(), x("svg", {
|
|
1980
1980
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1981
1981
|
fill: "none",
|
|
@@ -2007,7 +2007,7 @@ function Ge(e, t) {
|
|
|
2007
2007
|
})
|
|
2008
2008
|
]);
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function io(e, t) {
|
|
2011
2011
|
return g(), x("svg", {
|
|
2012
2012
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2013
2013
|
fill: "none",
|
|
@@ -2023,7 +2023,7 @@ function sl(e, t) {
|
|
|
2023
2023
|
})
|
|
2024
2024
|
]);
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2026
|
+
function so(e, t) {
|
|
2027
2027
|
return g(), x("svg", {
|
|
2028
2028
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2029
2029
|
fill: "none",
|
|
@@ -2087,9 +2087,9 @@ function it(e, t) {
|
|
|
2087
2087
|
})
|
|
2088
2088
|
]);
|
|
2089
2089
|
}
|
|
2090
|
-
const
|
|
2090
|
+
const uo = { class: "py-1" }, co = ["onClick"], fo = {
|
|
2091
2091
|
name: "uiDropdown"
|
|
2092
|
-
}, pn = /* @__PURE__ */ Object.assign(
|
|
2092
|
+
}, pn = /* @__PURE__ */ Object.assign(fo, {
|
|
2093
2093
|
props: {
|
|
2094
2094
|
/**
|
|
2095
2095
|
* Array de elementos que componen el dropdown
|
|
@@ -2116,22 +2116,22 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2116
2116
|
},
|
|
2117
2117
|
emits: ["optionSelected"],
|
|
2118
2118
|
setup(e, { emit: t }) {
|
|
2119
|
-
const
|
|
2120
|
-
let
|
|
2121
|
-
return
|
|
2122
|
-
}), n = (
|
|
2123
|
-
|
|
2119
|
+
const l = e, r = y(() => {
|
|
2120
|
+
let o = l.items.find((a) => a.active === !0);
|
|
2121
|
+
return o ? o.name : l.label;
|
|
2122
|
+
}), n = (o) => {
|
|
2123
|
+
l.disabled || t("optionSelected", o.value);
|
|
2124
2124
|
};
|
|
2125
|
-
return (
|
|
2125
|
+
return (o, a) => (g(), oe(C(Nl), {
|
|
2126
2126
|
as: "div",
|
|
2127
2127
|
class: R(["relative inline-block text-left", { "opacity-25": e.disabled }])
|
|
2128
2128
|
}, {
|
|
2129
2129
|
default: Y(() => [
|
|
2130
2130
|
c("div", null, [
|
|
2131
|
-
S(C(
|
|
2131
|
+
S(C(Hl), { class: "inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, {
|
|
2132
2132
|
default: Y(() => [
|
|
2133
2133
|
ye(O(r.value) + " ", 1),
|
|
2134
|
-
S(C(
|
|
2134
|
+
S(C(lo), {
|
|
2135
2135
|
"aria-hidden": "true",
|
|
2136
2136
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
2137
2137
|
})
|
|
@@ -2148,13 +2148,13 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2148
2148
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
2149
2149
|
}, {
|
|
2150
2150
|
default: Y(() => [
|
|
2151
|
-
e.disabled ? W("", !0) : (g(),
|
|
2151
|
+
e.disabled ? W("", !0) : (g(), oe(C(Vl), {
|
|
2152
2152
|
key: 0,
|
|
2153
2153
|
class: R([{ "right-0": e.position === "right", "left-0": e.position === "left" }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])
|
|
2154
2154
|
}, {
|
|
2155
2155
|
default: Y(() => [
|
|
2156
|
-
c("div",
|
|
2157
|
-
(g(!0), x(Z, null, ue(e.items, (i, s) => (g(),
|
|
2156
|
+
c("div", uo, [
|
|
2157
|
+
(g(!0), x(Z, null, ue(e.items, (i, s) => (g(), oe(C(Yl), { key: s }, {
|
|
2158
2158
|
default: Y(() => [
|
|
2159
2159
|
c("a", {
|
|
2160
2160
|
onClick: (u) => n(i),
|
|
@@ -2162,7 +2162,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2162
2162
|
i.active ? "bg-gray-100 text-gray-900" : "text-gray-700",
|
|
2163
2163
|
"block px-4 py-2 text-sm cursor-pointer"
|
|
2164
2164
|
])
|
|
2165
|
-
}, O(i.name), 11,
|
|
2165
|
+
}, O(i.name), 11, co)
|
|
2166
2166
|
]),
|
|
2167
2167
|
_: 2
|
|
2168
2168
|
}, 1024))), 128))
|
|
@@ -2177,21 +2177,21 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2177
2177
|
_: 1
|
|
2178
2178
|
}, 8, ["class"]));
|
|
2179
2179
|
}
|
|
2180
|
-
}),
|
|
2180
|
+
}), vo = { class: "flex justify-between" }, po = {
|
|
2181
2181
|
key: 0,
|
|
2182
2182
|
class: "block text-sm font-medium text-gray-700"
|
|
2183
|
-
},
|
|
2183
|
+
}, mo = {
|
|
2184
2184
|
key: 1,
|
|
2185
2185
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
2186
|
-
},
|
|
2186
|
+
}, go = {
|
|
2187
2187
|
key: 0,
|
|
2188
2188
|
class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm"
|
|
2189
|
-
},
|
|
2189
|
+
}, ho = ["disabled", "name", "placeholder", "type"], bo = {
|
|
2190
2190
|
key: 1,
|
|
2191
2191
|
class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"
|
|
2192
|
-
},
|
|
2192
|
+
}, yo = {
|
|
2193
2193
|
name: "uiInput"
|
|
2194
|
-
},
|
|
2194
|
+
}, xo = /* @__PURE__ */ Object.assign(yo, {
|
|
2195
2195
|
props: {
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Texto sobre el campo
|
|
@@ -2256,18 +2256,18 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2256
2256
|
},
|
|
2257
2257
|
emits: ["inputChanged"],
|
|
2258
2258
|
setup(e, { emit: t }) {
|
|
2259
|
-
const
|
|
2260
|
-
t("inputChanged", { value:
|
|
2261
|
-
}, n = w(
|
|
2262
|
-
return (
|
|
2263
|
-
c("div",
|
|
2264
|
-
e.label ? (g(), x("label",
|
|
2265
|
-
e.optional ? (g(), x("span",
|
|
2259
|
+
const l = e, r = (o) => {
|
|
2260
|
+
t("inputChanged", { value: o.target.value, name: o.target.name });
|
|
2261
|
+
}, n = w(l.value);
|
|
2262
|
+
return (o, a) => (g(), x("div", null, [
|
|
2263
|
+
c("div", vo, [
|
|
2264
|
+
e.label ? (g(), x("label", po, O(e.label), 1)) : W("", !0),
|
|
2265
|
+
e.optional ? (g(), x("span", mo, O(e.optional), 1)) : W("", !0)
|
|
2266
2266
|
]),
|
|
2267
2267
|
c("div", {
|
|
2268
2268
|
class: R([{ "mt-1": e.label }, "relative flex"])
|
|
2269
2269
|
}, [
|
|
2270
|
-
e.addOn ? (g(), x("span",
|
|
2270
|
+
e.addOn ? (g(), x("span", go, O(e.addOn), 1)) : W("", !0),
|
|
2271
2271
|
G(c("input", {
|
|
2272
2272
|
"onUpdate:modelValue": a[0] || (a[0] = (i) => n.value = i),
|
|
2273
2273
|
class: R([{
|
|
@@ -2288,10 +2288,10 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2288
2288
|
placeholder: e.placeholder,
|
|
2289
2289
|
type: e.type,
|
|
2290
2290
|
onInput: r
|
|
2291
|
-
}, null, 42,
|
|
2291
|
+
}, null, 42, ho), [
|
|
2292
2292
|
[$n, n.value]
|
|
2293
2293
|
]),
|
|
2294
|
-
e.icon ? (g(), x("div",
|
|
2294
|
+
e.icon ? (g(), x("div", bo, [
|
|
2295
2295
|
S(ve, {
|
|
2296
2296
|
icon: e.icon,
|
|
2297
2297
|
color: e.color
|
|
@@ -2309,7 +2309,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2309
2309
|
[re, e.color === "warning"]
|
|
2310
2310
|
]),
|
|
2311
2311
|
G(S(ve, {
|
|
2312
|
-
icon: C(
|
|
2312
|
+
icon: C(ao),
|
|
2313
2313
|
color: "red"
|
|
2314
2314
|
}, null, 8, ["icon"]), [
|
|
2315
2315
|
[re, e.color === "danger"]
|
|
@@ -2335,18 +2335,18 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2335
2335
|
])
|
|
2336
2336
|
]));
|
|
2337
2337
|
}
|
|
2338
|
-
}),
|
|
2338
|
+
}), wo = { class: "flex justify-between" }, So = {
|
|
2339
2339
|
key: 0,
|
|
2340
2340
|
class: "block text-sm font-medium text-gray-700"
|
|
2341
|
-
},
|
|
2341
|
+
}, ko = {
|
|
2342
2342
|
key: 1,
|
|
2343
2343
|
class: "text-[10px] text-gray-500 uppercase"
|
|
2344
|
-
}, $
|
|
2344
|
+
}, $o = ["onDrop"], Co = { class: "space-y-1 flex flex-col items-center justify-center" }, _o = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, Oo = {
|
|
2345
2345
|
for: "file-upload",
|
|
2346
2346
|
class: "relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500"
|
|
2347
|
-
},
|
|
2347
|
+
}, Do = ["accept"], Mo = { class: "pl-1" }, To = { class: "text-xs text-gray-500 pb-4" }, Eo = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Po = {
|
|
2348
2348
|
name: "uiInputFile"
|
|
2349
|
-
},
|
|
2349
|
+
}, Lo = /* @__PURE__ */ Object.assign(Po, {
|
|
2350
2350
|
props: {
|
|
2351
2351
|
name: String,
|
|
2352
2352
|
label: String,
|
|
@@ -2358,21 +2358,21 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2358
2358
|
accept: String,
|
|
2359
2359
|
icon: {
|
|
2360
2360
|
type: Function,
|
|
2361
|
-
default:
|
|
2361
|
+
default: no
|
|
2362
2362
|
}
|
|
2363
2363
|
},
|
|
2364
2364
|
emits: ["filesUploaded"],
|
|
2365
2365
|
setup(e, { emit: t }) {
|
|
2366
|
-
const
|
|
2366
|
+
const l = e, r = w(""), n = (a) => {
|
|
2367
2367
|
let s = a.dataTransfer.files;
|
|
2368
|
-
t("filesUploaded", s),
|
|
2369
|
-
},
|
|
2370
|
-
t("filesUploaded", a.target.files),
|
|
2368
|
+
t("filesUploaded", s), l.filename = s[0].name;
|
|
2369
|
+
}, o = (a) => {
|
|
2370
|
+
t("filesUploaded", a.target.files), l.filename = a.target.files[0].name;
|
|
2371
2371
|
};
|
|
2372
2372
|
return (a, i) => (g(), x("div", null, [
|
|
2373
|
-
c("div",
|
|
2374
|
-
e.label ? (g(), x("label",
|
|
2375
|
-
e.optional ? (g(), x("span",
|
|
2373
|
+
c("div", wo, [
|
|
2374
|
+
e.label ? (g(), x("label", So, O(e.label), 1)) : W("", !0),
|
|
2375
|
+
e.optional ? (g(), x("span", ko, O(e.optional), 1)) : W("", !0)
|
|
2376
2376
|
]),
|
|
2377
2377
|
c("div", {
|
|
2378
2378
|
class: R([
|
|
@@ -2387,7 +2387,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2387
2387
|
}, ["prevent"])),
|
|
2388
2388
|
onDrop: ht(n, ["prevent"])
|
|
2389
2389
|
}, [
|
|
2390
|
-
c("div",
|
|
2390
|
+
c("div", Co, [
|
|
2391
2391
|
S(ve, {
|
|
2392
2392
|
icon: e.icon,
|
|
2393
2393
|
size: "massive",
|
|
@@ -2395,8 +2395,8 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2395
2395
|
"aria-hidden": "true",
|
|
2396
2396
|
class: "mb-4"
|
|
2397
2397
|
}, null, 8, ["icon"]),
|
|
2398
|
-
c("div",
|
|
2399
|
-
c("label",
|
|
2398
|
+
c("div", _o, [
|
|
2399
|
+
c("label", Oo, [
|
|
2400
2400
|
c("span", null, O(e.placeholder), 1),
|
|
2401
2401
|
c("input", {
|
|
2402
2402
|
id: "file-upload",
|
|
@@ -2404,18 +2404,18 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2404
2404
|
type: "file",
|
|
2405
2405
|
class: "sr-only",
|
|
2406
2406
|
accept: e.accept,
|
|
2407
|
-
onChange:
|
|
2408
|
-
}, null, 40,
|
|
2407
|
+
onChange: o
|
|
2408
|
+
}, null, 40, Do)
|
|
2409
2409
|
]),
|
|
2410
|
-
c("p",
|
|
2410
|
+
c("p", Mo, O(e.dragAndDrop), 1)
|
|
2411
2411
|
]),
|
|
2412
|
-
c("p",
|
|
2412
|
+
c("p", To, O(e.fileTypesAndSizes), 1),
|
|
2413
2413
|
G(c("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, O(r.value), 513), [
|
|
2414
2414
|
[re, r.value !== ""]
|
|
2415
2415
|
])
|
|
2416
2416
|
])
|
|
2417
|
-
], 42, $
|
|
2418
|
-
G(c("p",
|
|
2417
|
+
], 42, $o),
|
|
2418
|
+
G(c("p", Eo, [
|
|
2419
2419
|
S(ve, {
|
|
2420
2420
|
icon: C(Ve),
|
|
2421
2421
|
color: "red",
|
|
@@ -2427,9 +2427,9 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2427
2427
|
])
|
|
2428
2428
|
]));
|
|
2429
2429
|
}
|
|
2430
|
-
}),
|
|
2430
|
+
}), Ro = { class: "relative mt-1" }, jo = {
|
|
2431
2431
|
name: "uiSelect"
|
|
2432
|
-
},
|
|
2432
|
+
}, Io = /* @__PURE__ */ Object.assign(jo, {
|
|
2433
2433
|
props: {
|
|
2434
2434
|
/**
|
|
2435
2435
|
* Array de Items del select
|
|
@@ -2449,10 +2449,10 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2449
2449
|
},
|
|
2450
2450
|
emits: ["selectChanged"],
|
|
2451
2451
|
setup(e, { emit: t }) {
|
|
2452
|
-
const
|
|
2452
|
+
const l = e, r = w(""), n = w(l.select), o = y(() => r.value === "" ? l.items : l.items.filter((i) => i.name.toLowerCase().includes(r.value.toLowerCase()))), a = () => {
|
|
2453
2453
|
t("selectChanged", n.value);
|
|
2454
2454
|
};
|
|
2455
|
-
return (i, s) => (g(),
|
|
2455
|
+
return (i, s) => (g(), oe(C(ol), {
|
|
2456
2456
|
modelValue: n.value,
|
|
2457
2457
|
"onUpdate:modelValue": [
|
|
2458
2458
|
s[1] || (s[1] = (u) => n.value = u),
|
|
@@ -2462,33 +2462,33 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2462
2462
|
onClick: s[2] || (s[2] = (u) => a())
|
|
2463
2463
|
}, {
|
|
2464
2464
|
default: Y(() => [
|
|
2465
|
-
S(C(
|
|
2465
|
+
S(C(rl), { class: "block text-sm font-medium text-gray-700" }, {
|
|
2466
2466
|
default: Y(() => [
|
|
2467
2467
|
ye(O(e.label), 1)
|
|
2468
2468
|
]),
|
|
2469
2469
|
_: 1
|
|
2470
2470
|
}),
|
|
2471
|
-
c("div",
|
|
2472
|
-
S(C(
|
|
2471
|
+
c("div", Ro, [
|
|
2472
|
+
S(C(il), {
|
|
2473
2473
|
"display-value": (u) => u == null ? void 0 : u.name,
|
|
2474
2474
|
class: "w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm",
|
|
2475
2475
|
onChange: s[0] || (s[0] = (u) => r.value = u.target.value)
|
|
2476
2476
|
}, null, 8, ["display-value"]),
|
|
2477
|
-
S(C(
|
|
2477
|
+
S(C(al), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, {
|
|
2478
2478
|
default: Y(() => [
|
|
2479
|
-
S(C(
|
|
2479
|
+
S(C(ro), {
|
|
2480
2480
|
"aria-hidden": "true",
|
|
2481
2481
|
class: "h-5 w-5 text-gray-400"
|
|
2482
2482
|
})
|
|
2483
2483
|
]),
|
|
2484
2484
|
_: 1
|
|
2485
2485
|
}),
|
|
2486
|
-
|
|
2486
|
+
o.value.length > 0 ? (g(), oe(C(sl), {
|
|
2487
2487
|
key: 0,
|
|
2488
2488
|
class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"
|
|
2489
2489
|
}, {
|
|
2490
2490
|
default: Y(() => [
|
|
2491
|
-
(g(!0), x(Z, null, ue(
|
|
2491
|
+
(g(!0), x(Z, null, ue(o.value, (u) => (g(), oe(C(ul), {
|
|
2492
2492
|
key: u.id,
|
|
2493
2493
|
value: u,
|
|
2494
2494
|
as: "template"
|
|
@@ -2527,9 +2527,9 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2527
2527
|
_: 1
|
|
2528
2528
|
}, 8, ["modelValue"]));
|
|
2529
2529
|
}
|
|
2530
|
-
}),
|
|
2530
|
+
}), Ao = {
|
|
2531
2531
|
name: "uiTag"
|
|
2532
|
-
}, mn = /* @__PURE__ */ Object.assign(
|
|
2532
|
+
}, mn = /* @__PURE__ */ Object.assign(Ao, {
|
|
2533
2533
|
props: {
|
|
2534
2534
|
/**
|
|
2535
2535
|
* Color del tag
|
|
@@ -2540,7 +2540,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
},
|
|
2542
2542
|
setup(e) {
|
|
2543
|
-
return (t,
|
|
2543
|
+
return (t, l) => (g(), x("span", {
|
|
2544
2544
|
class: R([{
|
|
2545
2545
|
"bg-indigo-100 text-indigo-800 border border-indigo-200": e.color === "primary",
|
|
2546
2546
|
"bg-red-100 text-red-800 border border-red-200": e.color === "danger",
|
|
@@ -2553,12 +2553,12 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2553
2553
|
Ie(t.$slots, "default")
|
|
2554
2554
|
], 2));
|
|
2555
2555
|
}
|
|
2556
|
-
}),
|
|
2556
|
+
}), Fo = {
|
|
2557
2557
|
key: 0,
|
|
2558
2558
|
class: "block text-sm font-medium text-gray-700"
|
|
2559
|
-
},
|
|
2559
|
+
}, Bo = ["disabled", "placeholder"], No = {
|
|
2560
2560
|
name: "uiTextArea"
|
|
2561
|
-
},
|
|
2561
|
+
}, Ho = /* @__PURE__ */ Object.assign(No, {
|
|
2562
2562
|
props: {
|
|
2563
2563
|
/**
|
|
2564
2564
|
* Nombre del Campo de texto
|
|
@@ -2593,11 +2593,11 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2593
2593
|
},
|
|
2594
2594
|
emits: ["inputChanged"],
|
|
2595
2595
|
setup(e, { emit: t }) {
|
|
2596
|
-
const
|
|
2597
|
-
t("inputChanged", { value:
|
|
2598
|
-
}, n = w(
|
|
2599
|
-
return (
|
|
2600
|
-
e.label ? (g(), x("label",
|
|
2596
|
+
const l = e, r = (o) => {
|
|
2597
|
+
t("inputChanged", { value: o.target.value, name: o.target.value });
|
|
2598
|
+
}, n = w(l.value);
|
|
2599
|
+
return (o, a) => (g(), x("div", null, [
|
|
2600
|
+
e.label ? (g(), x("label", Fo, O(e.label), 1)) : W("", !0),
|
|
2601
2601
|
c("div", {
|
|
2602
2602
|
class: R({ "mt-1": e.label })
|
|
2603
2603
|
}, [
|
|
@@ -2618,7 +2618,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2618
2618
|
"text-green-400": e.color === "success"
|
|
2619
2619
|
}]),
|
|
2620
2620
|
onChange: r
|
|
2621
|
-
}, null, 42,
|
|
2621
|
+
}, null, 42, Bo), [
|
|
2622
2622
|
[Cn, n.value]
|
|
2623
2623
|
])
|
|
2624
2624
|
], 2),
|
|
@@ -2641,12 +2641,12 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2641
2641
|
])
|
|
2642
2642
|
]));
|
|
2643
2643
|
}
|
|
2644
|
-
}),
|
|
2644
|
+
}), Vo = { class: "text-sm font-medium text-gray-900" }, Yo = {
|
|
2645
2645
|
key: 0,
|
|
2646
2646
|
class: "text-sm text-gray-500 ml-2"
|
|
2647
|
-
},
|
|
2647
|
+
}, Uo = {
|
|
2648
2648
|
name: "uiToggle"
|
|
2649
|
-
},
|
|
2649
|
+
}, qo = /* @__PURE__ */ Object.assign(Uo, {
|
|
2650
2650
|
props: {
|
|
2651
2651
|
/**
|
|
2652
2652
|
* Item del toggle
|
|
@@ -2671,19 +2671,19 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2671
2671
|
}
|
|
2672
2672
|
},
|
|
2673
2673
|
setup(e) {
|
|
2674
|
-
const
|
|
2675
|
-
return (r, n) => (g(),
|
|
2674
|
+
const l = w(e.checked);
|
|
2675
|
+
return (r, n) => (g(), oe(C(zl), {
|
|
2676
2676
|
as: "div",
|
|
2677
2677
|
class: "flex items-center relative"
|
|
2678
2678
|
}, {
|
|
2679
2679
|
default: Y(() => [
|
|
2680
|
-
S(C(
|
|
2680
|
+
S(C(Wl), {
|
|
2681
2681
|
disabled: e.disabled,
|
|
2682
|
-
onClick: n[0] || (n[0] = (
|
|
2683
|
-
modelValue:
|
|
2684
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
2682
|
+
onClick: n[0] || (n[0] = (o) => r.$emit("toggleChanged", { item: e.item, active: !l.value })),
|
|
2683
|
+
modelValue: l.value,
|
|
2684
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => l.value = o),
|
|
2685
2685
|
class: R([
|
|
2686
|
-
|
|
2686
|
+
l.value ? "bg-indigo-600" : "bg-gray-200",
|
|
2687
2687
|
"relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
|
2688
2688
|
])
|
|
2689
2689
|
}, {
|
|
@@ -2691,7 +2691,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2691
2691
|
c("span", {
|
|
2692
2692
|
"aria-hidden": "true",
|
|
2693
2693
|
class: R([
|
|
2694
|
-
|
|
2694
|
+
l.value ? "translate-x-5" : "translate-x-0",
|
|
2695
2695
|
e.disabled ? "bg-gray-300" : "",
|
|
2696
2696
|
"pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"
|
|
2697
2697
|
])
|
|
@@ -2699,28 +2699,28 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2699
2699
|
]),
|
|
2700
2700
|
_: 1
|
|
2701
2701
|
}, 8, ["disabled", "modelValue", "class"]),
|
|
2702
|
-
S(C(
|
|
2702
|
+
S(C(Kl), {
|
|
2703
2703
|
as: "span",
|
|
2704
2704
|
class: "ml-3"
|
|
2705
2705
|
}, {
|
|
2706
2706
|
default: Y(() => [
|
|
2707
|
-
c("span",
|
|
2708
|
-
e.item.subtitle ? (g(), x("span",
|
|
2707
|
+
c("span", Vo, O(e.item.title), 1),
|
|
2708
|
+
e.item.subtitle ? (g(), x("span", Yo, O(e.item.subtitle), 1)) : W("", !0)
|
|
2709
2709
|
]),
|
|
2710
2710
|
_: 1
|
|
2711
2711
|
}),
|
|
2712
2712
|
e.item.action ? (g(), x("span", {
|
|
2713
2713
|
key: 0,
|
|
2714
2714
|
class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5",
|
|
2715
|
-
onClick: n[2] || (n[2] = (
|
|
2715
|
+
onClick: n[2] || (n[2] = (o) => r.$emit("actionClicked", e.item))
|
|
2716
2716
|
}, O(e.item.action), 1)) : W("", !0)
|
|
2717
2717
|
]),
|
|
2718
2718
|
_: 1
|
|
2719
2719
|
}));
|
|
2720
2720
|
}
|
|
2721
|
-
}),
|
|
2721
|
+
}), zo = { class: "flex flex-col" }, Wo = { class: "flex" }, Ko = { class: "flex-shrink-0" }, Jo = { class: "ml-3" }, Go = { class: "mt-4" }, Xo = { class: "-mx-2 -my-1.5 flex" }, Qo = ["onClick"], Zo = {
|
|
2722
2722
|
name: "uiAlert"
|
|
2723
|
-
}, er = /* @__PURE__ */ Object.assign(
|
|
2723
|
+
}, er = /* @__PURE__ */ Object.assign(Zo, {
|
|
2724
2724
|
props: {
|
|
2725
2725
|
/**
|
|
2726
2726
|
* Acciones que se pueden hacer en la notificación
|
|
@@ -2743,7 +2743,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2743
2743
|
}
|
|
2744
2744
|
},
|
|
2745
2745
|
setup(e) {
|
|
2746
|
-
return (t,
|
|
2746
|
+
return (t, l) => (g(), x("div", zo, [
|
|
2747
2747
|
c("div", {
|
|
2748
2748
|
class: R([{
|
|
2749
2749
|
"bg-indigo-50 border-indigo-400": e.type === "info",
|
|
@@ -2752,30 +2752,30 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2752
2752
|
"bg-green-50 border-green-400": e.type === "success"
|
|
2753
2753
|
}, "p-4 border-l-4"])
|
|
2754
2754
|
}, [
|
|
2755
|
-
c("div",
|
|
2756
|
-
c("div",
|
|
2757
|
-
e.type === "info" ? (g(),
|
|
2755
|
+
c("div", Wo, [
|
|
2756
|
+
c("div", Ko, [
|
|
2757
|
+
e.type === "info" ? (g(), oe(C(vn), {
|
|
2758
2758
|
key: 0,
|
|
2759
2759
|
class: "h-8 w-8 text-indigo-400",
|
|
2760
2760
|
"aria-hidden": "true"
|
|
2761
2761
|
})) : W("", !0),
|
|
2762
|
-
e.type === "danger" ? (g(),
|
|
2762
|
+
e.type === "danger" ? (g(), oe(C(Ve), {
|
|
2763
2763
|
key: 1,
|
|
2764
2764
|
class: "h-8 w-8 text-red-400",
|
|
2765
2765
|
"aria-hidden": "true"
|
|
2766
2766
|
})) : W("", !0),
|
|
2767
|
-
e.type === "warning" ? (g(),
|
|
2767
|
+
e.type === "warning" ? (g(), oe(C(Ge), {
|
|
2768
2768
|
key: 2,
|
|
2769
2769
|
class: "h-8 w-8 text-yellow-400",
|
|
2770
2770
|
"aria-hidden": "true"
|
|
2771
2771
|
})) : W("", !0),
|
|
2772
|
-
e.type === "success" ? (g(),
|
|
2772
|
+
e.type === "success" ? (g(), oe(C(cn), {
|
|
2773
2773
|
key: 3,
|
|
2774
2774
|
class: "h-8 w-8 text-green-400",
|
|
2775
2775
|
"aria-hidden": "true"
|
|
2776
2776
|
})) : W("", !0)
|
|
2777
2777
|
]),
|
|
2778
|
-
c("div",
|
|
2778
|
+
c("div", Jo, [
|
|
2779
2779
|
c("h3", {
|
|
2780
2780
|
class: R([{
|
|
2781
2781
|
"text-red-800": e.type === "danger",
|
|
@@ -2792,10 +2792,10 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2792
2792
|
}, [
|
|
2793
2793
|
Ie(t.$slots, "default")
|
|
2794
2794
|
], 2),
|
|
2795
|
-
c("div",
|
|
2796
|
-
c("div",
|
|
2795
|
+
c("div", Go, [
|
|
2796
|
+
c("div", Xo, [
|
|
2797
2797
|
(g(!0), x(Z, null, ue(e.actions, (r, n) => (g(), x("button", {
|
|
2798
|
-
onClick: (
|
|
2798
|
+
onClick: (o) => t.$emit("alertEvent", r.event),
|
|
2799
2799
|
type: "button",
|
|
2800
2800
|
key: n,
|
|
2801
2801
|
class: R([
|
|
@@ -2807,7 +2807,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2807
2807
|
},
|
|
2808
2808
|
"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
2809
2809
|
])
|
|
2810
|
-
}, O(r.name), 11,
|
|
2810
|
+
}, O(r.name), 11, Qo))), 128))
|
|
2811
2811
|
])
|
|
2812
2812
|
])
|
|
2813
2813
|
])
|
|
@@ -2821,7 +2821,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2821
2821
|
}, nr = {
|
|
2822
2822
|
role: "list",
|
|
2823
2823
|
class: "flex items-center space-x-4 text-xs"
|
|
2824
|
-
},
|
|
2824
|
+
}, lr = { key: 0 }, or = ["onClick"], rr = {
|
|
2825
2825
|
key: 1,
|
|
2826
2826
|
class: "flex items-center"
|
|
2827
2827
|
}, ar = ["onClick", "aria-current"], ir = {
|
|
@@ -2835,27 +2835,27 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2835
2835
|
required: !0
|
|
2836
2836
|
},
|
|
2837
2837
|
setup(e) {
|
|
2838
|
-
return (t,
|
|
2838
|
+
return (t, l) => (g(), x("nav", tr, [
|
|
2839
2839
|
c("ol", nr, [
|
|
2840
2840
|
(g(!0), x(Z, null, ue(e.pages, (r, n) => (g(), x("li", { key: n }, [
|
|
2841
|
-
n === 0 ? (g(), x("div",
|
|
2841
|
+
n === 0 ? (g(), x("div", lr, [
|
|
2842
2842
|
c("p", {
|
|
2843
|
-
onClick: (
|
|
2843
|
+
onClick: (o) => t.$emit("breadCrumbClicked", r.routeName),
|
|
2844
2844
|
class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"
|
|
2845
2845
|
}, [
|
|
2846
|
-
S(C(
|
|
2846
|
+
S(C(so), {
|
|
2847
2847
|
class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4",
|
|
2848
2848
|
"aria-hidden": "true"
|
|
2849
2849
|
}),
|
|
2850
2850
|
c("span", null, O(r.name), 1)
|
|
2851
|
-
], 8,
|
|
2851
|
+
], 8, or)
|
|
2852
2852
|
])) : (g(), x("div", rr, [
|
|
2853
2853
|
S(C(fn), {
|
|
2854
2854
|
class: "flex-shrink-0 h-3 w-3 text-gray-400",
|
|
2855
2855
|
"aria-hidden": "true"
|
|
2856
2856
|
}),
|
|
2857
2857
|
c("span", {
|
|
2858
|
-
onClick: (
|
|
2858
|
+
onClick: (o) => t.$emit("breadCrumbClicked", r.routeName),
|
|
2859
2859
|
class: R(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !r.current }]),
|
|
2860
2860
|
"aria-current": r.current ? "page" : ""
|
|
2861
2861
|
}, O(r.name), 11, ar)
|
|
@@ -2884,11 +2884,11 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2884
2884
|
logo: String
|
|
2885
2885
|
},
|
|
2886
2886
|
setup(e) {
|
|
2887
|
-
return (t,
|
|
2887
|
+
return (t, l) => {
|
|
2888
2888
|
var r;
|
|
2889
2889
|
return g(), x("div", {
|
|
2890
2890
|
class: "rounded-lg bg-white shadow p-6 cursor-pointer",
|
|
2891
|
-
onClick:
|
|
2891
|
+
onClick: l[0] || (l[0] = (n) => t.$emit("cardSelected", { id: e.id, name: e.name, type: e.type, tags: e.tags }))
|
|
2892
2892
|
}, [
|
|
2893
2893
|
c("div", ur, [
|
|
2894
2894
|
c("img", {
|
|
@@ -2901,7 +2901,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2901
2901
|
])
|
|
2902
2902
|
]),
|
|
2903
2903
|
((r = e.tags) == null ? void 0 : r.length) > 0 ? (g(), x("div", vr, [
|
|
2904
|
-
(g(!0), x(Z, null, ue(e.tags, (n) => (g(),
|
|
2904
|
+
(g(!0), x(Z, null, ue(e.tags, (n) => (g(), oe(mn, {
|
|
2905
2905
|
class: "my-1 mr-1",
|
|
2906
2906
|
key: n.name,
|
|
2907
2907
|
color: n.color
|
|
@@ -2934,12 +2934,12 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2934
2934
|
},
|
|
2935
2935
|
emits: ["filterSelected"],
|
|
2936
2936
|
setup(e, { emit: t }) {
|
|
2937
|
-
const
|
|
2937
|
+
const l = e, r = (o) => {
|
|
2938
2938
|
n.value.forEach((a) => {
|
|
2939
|
-
a.value !==
|
|
2940
|
-
}), t("filterSelected",
|
|
2941
|
-
}, n = w(
|
|
2942
|
-
return (
|
|
2939
|
+
a.value !== o ? a.active = !1 : a.active = !0;
|
|
2940
|
+
}), t("filterSelected", o);
|
|
2941
|
+
}, n = w(l.items);
|
|
2942
|
+
return (o, a) => (g(), oe(pn, {
|
|
2943
2943
|
onOptionSelected: a[0] || (a[0] = (i) => r(i)),
|
|
2944
2944
|
position: e.position,
|
|
2945
2945
|
items: n.value,
|
|
@@ -2967,18 +2967,18 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
2967
2967
|
},
|
|
2968
2968
|
emits: ["modalAction"],
|
|
2969
2969
|
setup(e, { emit: t }) {
|
|
2970
|
-
const
|
|
2971
|
-
t("modalAction", { modal:
|
|
2970
|
+
const l = e, r = (n) => {
|
|
2971
|
+
t("modalAction", { modal: l.modalName, action: n });
|
|
2972
2972
|
};
|
|
2973
|
-
return (n,
|
|
2973
|
+
return (n, o) => (g(), oe(C(dn), {
|
|
2974
2974
|
as: "template",
|
|
2975
2975
|
show: e.open
|
|
2976
2976
|
}, {
|
|
2977
2977
|
default: Y(() => [
|
|
2978
|
-
S(C(
|
|
2978
|
+
S(C(Pl), {
|
|
2979
2979
|
as: "div",
|
|
2980
2980
|
class: "relative z-10",
|
|
2981
|
-
onClose:
|
|
2981
|
+
onClose: o[1] || (o[1] = (a) => r("close"))
|
|
2982
2982
|
}, {
|
|
2983
2983
|
default: Y(() => [
|
|
2984
2984
|
S(C(at), {
|
|
@@ -3007,13 +3007,13 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
3007
3007
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
3008
3008
|
}, {
|
|
3009
3009
|
default: Y(() => [
|
|
3010
|
-
S(C(
|
|
3010
|
+
S(C(Ll), { class: "relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6" }, {
|
|
3011
3011
|
default: Y(() => [
|
|
3012
3012
|
c("div", wr, [
|
|
3013
3013
|
c("button", {
|
|
3014
3014
|
type: "button",
|
|
3015
3015
|
class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",
|
|
3016
|
-
onClick:
|
|
3016
|
+
onClick: o[0] || (o[0] = (a) => r("close"))
|
|
3017
3017
|
}, [
|
|
3018
3018
|
Sr,
|
|
3019
3019
|
S(ve, {
|
|
@@ -3049,7 +3049,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
3049
3049
|
}, null, 512), [
|
|
3050
3050
|
[re, e.type === "warning"]
|
|
3051
3051
|
]),
|
|
3052
|
-
G(S(C(
|
|
3052
|
+
G(S(C(io), {
|
|
3053
3053
|
class: "h-6 w-6 text-indigo-600",
|
|
3054
3054
|
"aria-hidden": "true"
|
|
3055
3055
|
}, null, 512), [
|
|
@@ -3057,7 +3057,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
3057
3057
|
])
|
|
3058
3058
|
], 2),
|
|
3059
3059
|
c("div", $r, [
|
|
3060
|
-
S(C(
|
|
3060
|
+
S(C(Rl), {
|
|
3061
3061
|
as: "h3",
|
|
3062
3062
|
class: "text-lg font-medium leading-6 text-gray-900"
|
|
3063
3063
|
}, {
|
|
@@ -3114,7 +3114,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
3114
3114
|
}
|
|
3115
3115
|
},
|
|
3116
3116
|
setup(e) {
|
|
3117
|
-
const t = e,
|
|
3117
|
+
const t = e, l = y(() => t.show);
|
|
3118
3118
|
return (r, n) => (g(), x("div", {
|
|
3119
3119
|
"aria-live": "assertive",
|
|
3120
3120
|
class: R([{ fixed: e.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])
|
|
@@ -3129,7 +3129,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
3129
3129
|
"leave-to-class": "opacity-0"
|
|
3130
3130
|
}, {
|
|
3131
3131
|
default: Y(() => [
|
|
3132
|
-
|
|
3132
|
+
l.value ? (g(), x("div", Er, [
|
|
3133
3133
|
c("div", Pr, [
|
|
3134
3134
|
c("div", Lr, [
|
|
3135
3135
|
c("div", Rr, [
|
|
@@ -3166,7 +3166,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
3166
3166
|
c("button", {
|
|
3167
3167
|
class: "bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
|
|
3168
3168
|
type: "button",
|
|
3169
|
-
onClick: n[0] || (n[0] = (
|
|
3169
|
+
onClick: n[0] || (n[0] = (o) => r.$emit("closeNotification"))
|
|
3170
3170
|
}, [
|
|
3171
3171
|
Br,
|
|
3172
3172
|
S(C(it), {
|
|
@@ -3197,7 +3197,7 @@ const dl = { class: "py-1" }, cl = ["onClick"], fl = {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
},
|
|
3199
3199
|
setup(e) {
|
|
3200
|
-
return (t,
|
|
3200
|
+
return (t, l) => (g(), x("ul", Vr, [
|
|
3201
3201
|
(g(!0), x(Z, null, ue(e.tasks, (r) => (g(), x("li", {
|
|
3202
3202
|
key: r.id,
|
|
3203
3203
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
@@ -3239,29 +3239,29 @@ function Zr(e) {
|
|
|
3239
3239
|
}
|
|
3240
3240
|
var ea = { exports: {} };
|
|
3241
3241
|
(function(e, t) {
|
|
3242
|
-
(function(
|
|
3242
|
+
(function(l, r) {
|
|
3243
3243
|
e.exports = r(V);
|
|
3244
|
-
})(Ye, function(
|
|
3244
|
+
})(Ye, function(l) {
|
|
3245
3245
|
function r(a) {
|
|
3246
3246
|
return a && typeof a == "object" && "default" in a ? a : { default: a };
|
|
3247
3247
|
}
|
|
3248
|
-
var n = r(
|
|
3248
|
+
var n = r(l), o = { name: "es", monthsShort: "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"), weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"), months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), weekStart: 1, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un día", dd: "%d días", M: "un mes", MM: "%d meses", y: "un año", yy: "%d años" }, ordinal: function(a) {
|
|
3249
3249
|
return a + "º";
|
|
3250
3250
|
} };
|
|
3251
|
-
return n.default.locale(
|
|
3251
|
+
return n.default.locale(o, null, !0), o;
|
|
3252
3252
|
});
|
|
3253
3253
|
})(ea);
|
|
3254
3254
|
var ta = { exports: {} };
|
|
3255
3255
|
(function(e, t) {
|
|
3256
|
-
(function(
|
|
3256
|
+
(function(l, r) {
|
|
3257
3257
|
e.exports = r(V);
|
|
3258
|
-
})(Ye, function(
|
|
3258
|
+
})(Ye, function(l) {
|
|
3259
3259
|
function r(s) {
|
|
3260
3260
|
return s && typeof s == "object" && "default" in s ? s : { default: s };
|
|
3261
3261
|
}
|
|
3262
|
-
var n = r(
|
|
3262
|
+
var n = r(l), o = { s: "ein paar Sekunden", m: ["eine Minute", "einer Minute"], mm: "%d Minuten", h: ["eine Stunde", "einer Stunde"], hh: "%d Stunden", d: ["ein Tag", "einem Tag"], dd: ["%d Tage", "%d Tagen"], M: ["ein Monat", "einem Monat"], MM: ["%d Monate", "%d Monaten"], y: ["ein Jahr", "einem Jahr"], yy: ["%d Jahre", "%d Jahren"] };
|
|
3263
3263
|
function a(s, u, d) {
|
|
3264
|
-
var m =
|
|
3264
|
+
var m = o[d];
|
|
3265
3265
|
return Array.isArray(m) && (m = m[u ? 0 : 1]), m.replace("%d", s);
|
|
3266
3266
|
}
|
|
3267
3267
|
var i = { name: "de", weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"), ordinal: function(s) {
|
|
@@ -3272,37 +3272,37 @@ var ta = { exports: {} };
|
|
|
3272
3272
|
})(ta);
|
|
3273
3273
|
var na = { exports: {} };
|
|
3274
3274
|
(function(e, t) {
|
|
3275
|
-
(function(
|
|
3275
|
+
(function(l, r) {
|
|
3276
3276
|
e.exports = r();
|
|
3277
3277
|
})(Ye, function() {
|
|
3278
|
-
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
|
3279
|
-
var r = ["th", "st", "nd", "rd"], n =
|
|
3280
|
-
return "[" +
|
|
3278
|
+
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(l) {
|
|
3279
|
+
var r = ["th", "st", "nd", "rd"], n = l % 100;
|
|
3280
|
+
return "[" + l + (r[(n - 20) % 10] || r[n] || r[0]) + "]";
|
|
3281
3281
|
} };
|
|
3282
3282
|
});
|
|
3283
3283
|
})(na);
|
|
3284
|
-
var
|
|
3284
|
+
var la = { exports: {} };
|
|
3285
3285
|
(function(e, t) {
|
|
3286
|
-
(function(
|
|
3286
|
+
(function(l, r) {
|
|
3287
3287
|
e.exports = r(V);
|
|
3288
|
-
})(Ye, function(
|
|
3288
|
+
})(Ye, function(l) {
|
|
3289
3289
|
function r(a) {
|
|
3290
3290
|
return a && typeof a == "object" && "default" in a ? a : { default: a };
|
|
3291
3291
|
}
|
|
3292
|
-
var n = r(
|
|
3292
|
+
var n = r(l), o = { name: "fr", weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, ordinal: function(a) {
|
|
3293
3293
|
return "" + a + (a === 1 ? "er" : "");
|
|
3294
3294
|
} };
|
|
3295
|
-
return n.default.locale(
|
|
3295
|
+
return n.default.locale(o, null, !0), o;
|
|
3296
3296
|
});
|
|
3297
|
-
})(
|
|
3297
|
+
})(la);
|
|
3298
3298
|
const Ue = (e, t) => {
|
|
3299
|
-
const
|
|
3299
|
+
const l = e.__vccOpts || e;
|
|
3300
3300
|
for (const [r, n] of t)
|
|
3301
|
-
|
|
3302
|
-
return
|
|
3303
|
-
},
|
|
3301
|
+
l[r] = n;
|
|
3302
|
+
return l;
|
|
3303
|
+
}, oa = {
|
|
3304
3304
|
name: "dateSelector",
|
|
3305
|
-
components: { ChevronLeftIcon:
|
|
3305
|
+
components: { ChevronLeftIcon: oo, ChevronRightIcon: fn },
|
|
3306
3306
|
computed: {
|
|
3307
3307
|
currentDate() {
|
|
3308
3308
|
return V(this.selectedDate).locale("es").format("DD MMM. YYYY");
|
|
@@ -3316,18 +3316,18 @@ const Ue = (e, t) => {
|
|
|
3316
3316
|
},
|
|
3317
3317
|
methods: {
|
|
3318
3318
|
selectDate(e, t) {
|
|
3319
|
-
let
|
|
3320
|
-
t === "previous" && (e === "day" && (
|
|
3319
|
+
let l;
|
|
3320
|
+
t === "previous" && (e === "day" && (l = V(this.selectedDate).subtract(1, "day")), e === "month" && (l = V(this.selectedDate).subtract(1, "month")), e === "year" && (l = V(this.selectedDate).subtract(1, "year"))), t === "next" && (e === "day" && (l = V(this.selectedDate).add(1, "day")), e === "month" && (l = V(this.selectedDate).add(1, "month")), e === "year" && (l = V(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", l);
|
|
3321
3321
|
}
|
|
3322
3322
|
}
|
|
3323
3323
|
}, ra = { class: "dateSelector flex items-center text-white flex-row" }, aa = { class: "pagination flex items-center my-1 md:my-0" }, ia = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, sa = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
3324
|
-
function ua(e, t,
|
|
3324
|
+
function ua(e, t, l, r, n, o) {
|
|
3325
3325
|
const a = Oe("ChevronLeftIcon"), i = Oe("ChevronRightIcon");
|
|
3326
3326
|
return g(), x("div", ra, [
|
|
3327
3327
|
c("div", aa, [
|
|
3328
3328
|
c("div", {
|
|
3329
3329
|
class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
3330
|
-
onClick: t[0] || (t[0] = (s) =>
|
|
3330
|
+
onClick: t[0] || (t[0] = (s) => o.selectDate("year", "previous"))
|
|
3331
3331
|
}, [
|
|
3332
3332
|
S(a, { class: "h-4" }),
|
|
3333
3333
|
S(a, { class: "h-4 -ml-3" }),
|
|
@@ -3335,36 +3335,36 @@ function ua(e, t, o, r, n, l) {
|
|
|
3335
3335
|
]),
|
|
3336
3336
|
c("div", {
|
|
3337
3337
|
class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
3338
|
-
onClick: t[1] || (t[1] = (s) =>
|
|
3338
|
+
onClick: t[1] || (t[1] = (s) => o.selectDate("month", "previous"))
|
|
3339
3339
|
}, [
|
|
3340
3340
|
S(a, { class: "h-4" }),
|
|
3341
3341
|
S(a, { class: "h-4 -ml-3" })
|
|
3342
3342
|
]),
|
|
3343
3343
|
c("div", {
|
|
3344
3344
|
class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
3345
|
-
onClick: t[2] || (t[2] = (s) =>
|
|
3345
|
+
onClick: t[2] || (t[2] = (s) => o.selectDate("day", "previous"))
|
|
3346
3346
|
}, [
|
|
3347
3347
|
S(a, { class: "h-4" })
|
|
3348
3348
|
])
|
|
3349
3349
|
]),
|
|
3350
|
-
c("div", ia, O(
|
|
3350
|
+
c("div", ia, O(o.currentDate), 1),
|
|
3351
3351
|
c("div", sa, [
|
|
3352
3352
|
c("div", {
|
|
3353
3353
|
class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
3354
|
-
onClick: t[3] || (t[3] = (s) =>
|
|
3354
|
+
onClick: t[3] || (t[3] = (s) => o.selectDate("day", "next"))
|
|
3355
3355
|
}, [
|
|
3356
3356
|
S(i, { class: "h-4" })
|
|
3357
3357
|
]),
|
|
3358
3358
|
c("div", {
|
|
3359
3359
|
class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
3360
|
-
onClick: t[4] || (t[4] = (s) =>
|
|
3360
|
+
onClick: t[4] || (t[4] = (s) => o.selectDate("month", "next"))
|
|
3361
3361
|
}, [
|
|
3362
3362
|
S(i, { class: "h-4" }),
|
|
3363
3363
|
S(i, { class: "h-4 -ml-3" })
|
|
3364
3364
|
]),
|
|
3365
3365
|
c("div", {
|
|
3366
3366
|
class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
3367
|
-
onClick: t[5] || (t[5] = (s) =>
|
|
3367
|
+
onClick: t[5] || (t[5] = (s) => o.selectDate("year", "next"))
|
|
3368
3368
|
}, [
|
|
3369
3369
|
S(i, { class: "h-4" }),
|
|
3370
3370
|
S(i, { class: "h-4 -ml-3" }),
|
|
@@ -3373,16 +3373,16 @@ function ua(e, t, o, r, n, l) {
|
|
|
3373
3373
|
])
|
|
3374
3374
|
]);
|
|
3375
3375
|
}
|
|
3376
|
-
const da = /* @__PURE__ */ Ue(
|
|
3376
|
+
const da = /* @__PURE__ */ Ue(oa, [["render", ua]]);
|
|
3377
3377
|
var gn = { exports: {} };
|
|
3378
3378
|
(function(e, t) {
|
|
3379
|
-
(function(
|
|
3379
|
+
(function(l, r) {
|
|
3380
3380
|
e.exports = r();
|
|
3381
3381
|
})(Ye, function() {
|
|
3382
|
-
return function(
|
|
3382
|
+
return function(l, r, n) {
|
|
3383
3383
|
r.prototype.isToday = function() {
|
|
3384
|
-
var
|
|
3385
|
-
return this.format(
|
|
3384
|
+
var o = "YYYY-MM-DD", a = n();
|
|
3385
|
+
return this.format(o) === a.format(o);
|
|
3386
3386
|
};
|
|
3387
3387
|
};
|
|
3388
3388
|
});
|
|
@@ -3405,19 +3405,19 @@ const fa = /* @__PURE__ */ Zr(ca), va = {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
}
|
|
3407
3407
|
}, pa = { class: "text-xs" }, ma = { class: "font-bold text-lg" }, ga = { class: "text-xs font-medium" };
|
|
3408
|
-
function ha(e, t,
|
|
3408
|
+
function ha(e, t, l, r, n, o) {
|
|
3409
3409
|
return g(), x("div", {
|
|
3410
3410
|
class: R([
|
|
3411
3411
|
"day select-none text-center",
|
|
3412
3412
|
{
|
|
3413
|
-
"bg-indigo-200 text-white":
|
|
3414
|
-
"bg-[#0ff] text-white":
|
|
3413
|
+
"bg-indigo-200 text-white": o.currentDay.isWeekend,
|
|
3414
|
+
"bg-[#0ff] text-white": o.currentDay.isToday
|
|
3415
3415
|
}
|
|
3416
3416
|
])
|
|
3417
3417
|
}, [
|
|
3418
|
-
c("p", pa, O(
|
|
3419
|
-
c("p", ma, O(
|
|
3420
|
-
c("p", ga, O(
|
|
3418
|
+
c("p", pa, O(o.currentDay.dayName), 1),
|
|
3419
|
+
c("p", ma, O(o.currentDay.day), 1),
|
|
3420
|
+
c("p", ga, O(o.currentDay.month), 1)
|
|
3421
3421
|
], 2);
|
|
3422
3422
|
}
|
|
3423
3423
|
const ba = /* @__PURE__ */ Ue(va, [["render", ha]]), ya = {
|
|
@@ -3440,18 +3440,18 @@ const ba = /* @__PURE__ */ Ue(va, [["render", ha]]), ya = {
|
|
|
3440
3440
|
}
|
|
3441
3441
|
}
|
|
3442
3442
|
}, xa = { class: "priceDay" };
|
|
3443
|
-
function wa(e, t,
|
|
3443
|
+
function wa(e, t, l, r, n, o) {
|
|
3444
3444
|
return g(), x("div", xa, [
|
|
3445
3445
|
c("div", {
|
|
3446
3446
|
class: R([
|
|
3447
3447
|
{
|
|
3448
|
-
"bg-indigo-200 text-white":
|
|
3449
|
-
"bg-green-300 text-white":
|
|
3450
|
-
"bg-yellow-300 text-white":
|
|
3448
|
+
"bg-indigo-200 text-white": o.currentDay.isWeekend,
|
|
3449
|
+
"bg-green-300 text-white": l.price.price > l.basePrice,
|
|
3450
|
+
"bg-yellow-300 text-white": l.price.price < l.basePrice
|
|
3451
3451
|
},
|
|
3452
3452
|
"select-none text-center rounded-lg p-1"
|
|
3453
3453
|
])
|
|
3454
|
-
}, O(
|
|
3454
|
+
}, O(o.currentDay.price) + O(l.currency), 3)
|
|
3455
3455
|
]);
|
|
3456
3456
|
}
|
|
3457
3457
|
const Sa = /* @__PURE__ */ Ue(ya, [["render", wa]]), ka = {
|
|
@@ -3492,7 +3492,7 @@ const Sa = /* @__PURE__ */ Ue(ya, [["render", wa]]), ka = {
|
|
|
3492
3492
|
V(e).isBefore(this.today) || (this.date = e, this.$emit("dateChanged", this.date));
|
|
3493
3493
|
},
|
|
3494
3494
|
getSelectionBasePrice(e) {
|
|
3495
|
-
let t = this.category.selectionPrices.find((
|
|
3495
|
+
let t = this.category.selectionPrices.find((l) => V(l.date).isSame(e.date));
|
|
3496
3496
|
return t ? t.price : e.price;
|
|
3497
3497
|
},
|
|
3498
3498
|
changeCategoryBulkPrices() {
|
|
@@ -3561,7 +3561,7 @@ const Sa = /* @__PURE__ */ Ue(ya, [["render", wa]]), ka = {
|
|
|
3561
3561
|
colspan: "2",
|
|
3562
3562
|
class: "pl-4"
|
|
3563
3563
|
};
|
|
3564
|
-
function Xa(e, t,
|
|
3564
|
+
function Xa(e, t, l, r, n, o) {
|
|
3565
3565
|
var d, m;
|
|
3566
3566
|
const a = Oe("DateSelector"), i = Oe("Day"), s = Oe("uiButton"), u = Oe("Price");
|
|
3567
3567
|
return g(), x("div", $a, [
|
|
@@ -3574,10 +3574,10 @@ function Xa(e, t, o, r, n, l) {
|
|
|
3574
3574
|
c("th", Ta, [
|
|
3575
3575
|
S(a, {
|
|
3576
3576
|
selectedDate: e.date,
|
|
3577
|
-
onDateSelected: t[0] || (t[0] = (v) =>
|
|
3577
|
+
onDateSelected: t[0] || (t[0] = (v) => o.changeDate(v))
|
|
3578
3578
|
}, null, 8, ["selectedDate"])
|
|
3579
3579
|
]),
|
|
3580
|
-
(g(!0), x(Z, null, ue(
|
|
3580
|
+
(g(!0), x(Z, null, ue(o.days, (v, p) => (g(), x("th", {
|
|
3581
3581
|
scope: "col",
|
|
3582
3582
|
key: p,
|
|
3583
3583
|
class: "text-sm font-semibold text-gray-900 p-0"
|
|
@@ -3594,7 +3594,7 @@ function Xa(e, t, o, r, n, l) {
|
|
|
3594
3594
|
S(s, {
|
|
3595
3595
|
class: "ml-4",
|
|
3596
3596
|
size: "small",
|
|
3597
|
-
onClick:
|
|
3597
|
+
onClick: o.changeCategoryBulkPrices
|
|
3598
3598
|
}, {
|
|
3599
3599
|
default: Y(() => [
|
|
3600
3600
|
ye("Cambiar precios en bloque ")
|
|
@@ -3605,39 +3605,39 @@ function Xa(e, t, o, r, n, l) {
|
|
|
3605
3605
|
]),
|
|
3606
3606
|
c("tr", null, [
|
|
3607
3607
|
La,
|
|
3608
|
-
(g(!0), x(Z, null, ue(
|
|
3608
|
+
(g(!0), x(Z, null, ue(l.category.selectionPrices, (v, p) => (g(), x("td", {
|
|
3609
3609
|
key: p,
|
|
3610
3610
|
class: "p-0"
|
|
3611
3611
|
}, [
|
|
3612
3612
|
S(u, {
|
|
3613
|
-
onClick: (b) =>
|
|
3613
|
+
onClick: (b) => o.changeCategorySelectionPrice(v),
|
|
3614
3614
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",
|
|
3615
3615
|
price: v,
|
|
3616
|
-
currency:
|
|
3616
|
+
currency: l.currency.symbol,
|
|
3617
3617
|
isBasePrice: !0
|
|
3618
3618
|
}, null, 8, ["onClick", "price", "currency"])
|
|
3619
3619
|
]))), 128))
|
|
3620
3620
|
]),
|
|
3621
3621
|
c("tr", null, [
|
|
3622
3622
|
Ra,
|
|
3623
|
-
(g(!0), x(Z, null, ue(
|
|
3623
|
+
(g(!0), x(Z, null, ue(l.category.upgradePrices, (v, p) => (g(), x("td", {
|
|
3624
3624
|
key: p,
|
|
3625
3625
|
class: "p-0"
|
|
3626
3626
|
}, [
|
|
3627
3627
|
S(u, {
|
|
3628
|
-
onClick: (b) =>
|
|
3628
|
+
onClick: (b) => o.changeCategoryUpgradePrice(v),
|
|
3629
3629
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",
|
|
3630
3630
|
price: v,
|
|
3631
|
-
currency:
|
|
3631
|
+
currency: l.currency.symbol,
|
|
3632
3632
|
isBasePrice: !0
|
|
3633
3633
|
}, null, 8, ["onClick", "price", "currency"])
|
|
3634
3634
|
]))), 128))
|
|
3635
3635
|
]),
|
|
3636
3636
|
c("tr", null, [
|
|
3637
3637
|
c("th", ja, [
|
|
3638
|
-
((d = e.selectedRooms) == null ? void 0 : d.length) > 0 && ((m =
|
|
3639
|
-
(g(!0), x(Z, null, ue(
|
|
3640
|
-
onClick: (b) =>
|
|
3638
|
+
((d = e.selectedRooms) == null ? void 0 : d.length) > 0 && ((m = l.actions) == null ? void 0 : m.length) > 0 ? (g(), x("div", Ia, [
|
|
3639
|
+
(g(!0), x(Z, null, ue(l.actions, (v, p) => (g(), x("button", {
|
|
3640
|
+
onClick: (b) => o.tableAction({ action: v.id, items: e.selectedRooms }),
|
|
3641
3641
|
key: p,
|
|
3642
3642
|
type: "button",
|
|
3643
3643
|
class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"
|
|
@@ -3651,9 +3651,9 @@ function Xa(e, t, o, r, n, l) {
|
|
|
3651
3651
|
c("input", {
|
|
3652
3652
|
type: "checkbox",
|
|
3653
3653
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",
|
|
3654
|
-
checked:
|
|
3655
|
-
indeterminate:
|
|
3656
|
-
onChange: t[1] || (t[1] = (v) => e.selectedRooms = v.target.checked ?
|
|
3654
|
+
checked: o.indeterminate || e.selectedRooms.length === l.rooms.length,
|
|
3655
|
+
indeterminate: o.indeterminate,
|
|
3656
|
+
onChange: t[1] || (t[1] = (v) => e.selectedRooms = v.target.checked ? l.rooms.map((p) => p.name) : [])
|
|
3657
3657
|
}, null, 40, Na),
|
|
3658
3658
|
Ha
|
|
3659
3659
|
]),
|
|
@@ -3661,7 +3661,7 @@ function Xa(e, t, o, r, n, l) {
|
|
|
3661
3661
|
Ya,
|
|
3662
3662
|
Ua
|
|
3663
3663
|
]),
|
|
3664
|
-
(g(!0), x(Z, null, ue(
|
|
3664
|
+
(g(!0), x(Z, null, ue(l.rooms, (v) => (g(), x("tr", {
|
|
3665
3665
|
key: v.name,
|
|
3666
3666
|
class: "even:bg-gray-100"
|
|
3667
3667
|
}, [
|
|
@@ -3684,11 +3684,11 @@ function Xa(e, t, o, r, n, l) {
|
|
|
3684
3684
|
key: b
|
|
3685
3685
|
}, [
|
|
3686
3686
|
S(u, {
|
|
3687
|
-
onClick: (h) =>
|
|
3687
|
+
onClick: (h) => o.changeRoomPrice(p),
|
|
3688
3688
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
3689
3689
|
price: p,
|
|
3690
|
-
currency:
|
|
3691
|
-
basePrice:
|
|
3690
|
+
currency: l.currency.symbol,
|
|
3691
|
+
basePrice: o.getSelectionBasePrice(p)
|
|
3692
3692
|
}, null, 8, ["onClick", "price", "currency", "basePrice"])
|
|
3693
3693
|
]))), 128))
|
|
3694
3694
|
]))), 128))
|
|
@@ -3705,37 +3705,37 @@ const Za = { class: "chart-selector flex flex-row items-center justify-center" }
|
|
|
3705
3705
|
}, ti = /* @__PURE__ */ Object.assign(ei, {
|
|
3706
3706
|
emits: ["rangeSelected"],
|
|
3707
3707
|
setup(e, { emit: t }) {
|
|
3708
|
-
let
|
|
3708
|
+
let l = w("24h");
|
|
3709
3709
|
const r = (n) => {
|
|
3710
|
-
|
|
3710
|
+
l.value = n, t("rangeSelected", n);
|
|
3711
3711
|
};
|
|
3712
|
-
return (n,
|
|
3712
|
+
return (n, o) => (g(), x("ul", Za, [
|
|
3713
3713
|
c("li", {
|
|
3714
|
-
class: R({ selected: C(
|
|
3715
|
-
onClick:
|
|
3714
|
+
class: R({ selected: C(l) === "24h" }),
|
|
3715
|
+
onClick: o[0] || (o[0] = (a) => r("24h"))
|
|
3716
3716
|
}, " 24H ", 2),
|
|
3717
3717
|
c("li", {
|
|
3718
|
-
class: R({ selected: C(
|
|
3719
|
-
onClick:
|
|
3718
|
+
class: R({ selected: C(l) === "7d" }),
|
|
3719
|
+
onClick: o[1] || (o[1] = (a) => r("7d"))
|
|
3720
3720
|
}, "7D", 2),
|
|
3721
3721
|
c("li", {
|
|
3722
|
-
class: R({ selected: C(
|
|
3723
|
-
onClick:
|
|
3722
|
+
class: R({ selected: C(l) === "1m" }),
|
|
3723
|
+
onClick: o[2] || (o[2] = (a) => r("1m"))
|
|
3724
3724
|
}, "1M", 2),
|
|
3725
3725
|
c("li", {
|
|
3726
|
-
class: R({ selected: C(
|
|
3727
|
-
onClick:
|
|
3726
|
+
class: R({ selected: C(l) === "3m" }),
|
|
3727
|
+
onClick: o[3] || (o[3] = (a) => r("3m"))
|
|
3728
3728
|
}, "3M", 2)
|
|
3729
3729
|
]));
|
|
3730
3730
|
}
|
|
3731
|
-
}), ni = /* @__PURE__ */ Ue(ti, [["__scopeId", "data-v-e8fe3015"]]),
|
|
3731
|
+
}), ni = /* @__PURE__ */ Ue(ti, [["__scopeId", "data-v-e8fe3015"]]), li = {
|
|
3732
3732
|
toolbar: {
|
|
3733
3733
|
show: !1
|
|
3734
3734
|
},
|
|
3735
3735
|
zoom: {
|
|
3736
3736
|
enabled: !1
|
|
3737
3737
|
}
|
|
3738
|
-
},
|
|
3738
|
+
}, oi = [
|
|
3739
3739
|
"#715aff",
|
|
3740
3740
|
"#00ffff",
|
|
3741
3741
|
"#aba9ba"
|
|
@@ -3754,13 +3754,12 @@ const Za = { class: "chart-selector flex flex-row items-center justify-center" }
|
|
|
3754
3754
|
size: 8
|
|
3755
3755
|
}
|
|
3756
3756
|
}, si = {
|
|
3757
|
-
chart:
|
|
3758
|
-
colors:
|
|
3757
|
+
chart: li,
|
|
3758
|
+
colors: oi,
|
|
3759
3759
|
stroke: ri,
|
|
3760
3760
|
dataLabels: ai,
|
|
3761
3761
|
markers: ii
|
|
3762
|
-
}
|
|
3763
|
-
const ui = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, di = { class: "chart-header flex flex-row justify-between" }, ci = { class: "text-sm font-medium text-gray-500 truncate" }, fi = { class: "chart-content" }, vi = {
|
|
3762
|
+
}, ui = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, di = { class: "chart-header flex flex-row justify-between" }, ci = { class: "text-sm font-medium text-gray-500 truncate" }, fi = { class: "chart-content" }, vi = {
|
|
3764
3763
|
name: "uiChart"
|
|
3765
3764
|
}, pi = /* @__PURE__ */ Object.assign(vi, {
|
|
3766
3765
|
props: {
|
|
@@ -3780,7 +3779,7 @@ const ui = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg
|
|
|
3780
3779
|
},
|
|
3781
3780
|
emits: ["selectedRange", "chartUpdated"],
|
|
3782
3781
|
setup(e, { emit: t }) {
|
|
3783
|
-
const
|
|
3782
|
+
const l = e, r = y(() => ({ ...l.options, ...si })), n = y(() => l.series), o = () => t("chartUpdated");
|
|
3784
3783
|
return (a, i) => (g(), x("div", ui, [
|
|
3785
3784
|
c("div", di, [
|
|
3786
3785
|
c("div", ci, O(e.title), 1),
|
|
@@ -3795,7 +3794,7 @@ const ui = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg
|
|
|
3795
3794
|
width: "100%",
|
|
3796
3795
|
height: "100%",
|
|
3797
3796
|
options: r.value,
|
|
3798
|
-
onUpdated:
|
|
3797
|
+
onUpdated: o,
|
|
3799
3798
|
onMounted: a.emitEvent
|
|
3800
3799
|
}, null, 8, ["type", "series", "options", "onMounted"])
|
|
3801
3800
|
])
|
|
@@ -3806,12 +3805,12 @@ const ui = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg
|
|
|
3806
3805
|
uiIcon: ve,
|
|
3807
3806
|
uiCheckbox: An,
|
|
3808
3807
|
uiDropdown: pn,
|
|
3809
|
-
uiInput:
|
|
3810
|
-
uiInputFile:
|
|
3811
|
-
uiSelect:
|
|
3808
|
+
uiInput: xo,
|
|
3809
|
+
uiInputFile: Lo,
|
|
3810
|
+
uiSelect: Io,
|
|
3812
3811
|
uiTag: mn,
|
|
3813
|
-
uiTextArea:
|
|
3814
|
-
uiToggle:
|
|
3812
|
+
uiTextArea: Ho,
|
|
3813
|
+
uiToggle: qo,
|
|
3815
3814
|
uiAlert: er,
|
|
3816
3815
|
uiBreadcrumbs: sr,
|
|
3817
3816
|
uiCard: mr,
|