@glimstone/vue 4.2.8 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/InfoHelpCard.vue.d.ts +1 -1
- package/dist/InfoVersionCard.vue.d.ts +1 -1
- package/dist/Select-ohRK0e4y.js +514 -0
- package/dist/Select.js +1 -467
- package/dist/Selector.vue.d.ts +4 -3
- package/dist/SelectorSegment.vue.d.ts +3 -1
- package/dist/index.js +343 -307
- package/dist/info.d.ts +3 -1
- package/package.json +2 -2
- package/dist/TipWrap-rNAEgvb0.js +0 -51
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { n as
|
|
4
|
-
import { Fragment as b, Teleport as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createTextVNode as O, createVNode as k, defineComponent as A, h as
|
|
5
|
-
import { COLOR_NAMES_DE as
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./Select-ohRK0e4y.js";
|
|
2
|
+
import { a as i, c as a, d as o, f as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v } from "./glyphs-CYhs4mrY.js";
|
|
3
|
+
import { n as ee, r as y, t as te } from "./fieldName-DBygJJfe.js";
|
|
4
|
+
import { Fragment as b, Teleport as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createTextVNode as O, createVNode as k, defineComponent as A, h as ne, inject as re, mergeModels as j, mergeProps as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as ie, onMounted as F, onScopeDispose as I, onUnmounted as ae, onUpdated as oe, openBlock as L, provide as se, ref as R, renderList as z, renderSlot as B, resolveDynamicComponent as V, shallowReactive as ce, shallowRef as H, toDisplayString as U, unref as W, useAttrs as le, useId as ue, useModel as G, useSlots as de, vModelDynamic as fe, vModelText as pe, vShow as me, watch as K, watchEffect as he, withCtx as q, withDirectives as J, withKeys as ge, withModifiers as Y } from "vue";
|
|
5
|
+
import { COLOR_NAMES_DE as _e, COLOR_PICKER_TEXT as ve, COPIED_MS as ye, DEFAULT_MOTION as be, DEFAULT_SHAPE as xe, GLIMSTONE_VERSION as Se, MARKS as Ce, PATH_ROOM_PX as we, TOAST_MARKS as Te, WIDE_QUERY as Ee, applyAccent as De, applyMotion as Oe, applyRainbow as ke, applyShape as Ae, attachNumberSteppers as je, badgeClassName as Me, buttonView as Ne, claimMenu as Pe, closeMenuOutside as Fe, colorPicker as Ie, copyText as Le, countSelector as Re, createSignInFlow as ze, fieldWidthClass as Be, floatColorPicker as Ve, focusFirstField as He, focusFirstMenuRow as Ue, focusMenuRow as We, focusTreeRow as Ge, focusedAsker as Ke, getLabelMode as qe, hueVars as Je, isMenuHead as Ye, keepReadmeFit as Xe, labelModeChanged as Ze, mailHref as Qe, mediaMatches as $e, menuIsOpen as et, menuMove as tt, menuRowView as nt, meterView as rt, narrowerThan as it, nearestColorName as at, normalizeHex as ot, offersMail as st, openInBrowser as ct, pillClassName as lt, placeMenu as ut, placeSubmenu as dt, pressRowControl as ft, progressView as pt, rainbowState as mt, readmePartClass as ht, readmePartLabel as gt, readmeSoon as _t, readmeUnitClass as vt, resetBlocked as yt, returnFocus as bt, roveSelector as xt, rovedIndex as St, runUpdateCheck as Ct, segmentView as wt, selectorAxis as Tt, selectorFlex as Et, selectorTabId as Dt, selectorTabId as Ot, selectorView as kt, setLabelMode as At, shake as jt, showRefusal as Mt, sidebarRowView as Nt, signInBlocked as Pt, signInStage as Ft, softBreaks as It, stackWindow as Lt, subscribeLabelMode as Rt, subscribeMedia as zt, subscribeRainbow as Bt, syncNumberSteppers as Vt, tableCellClass as Ht, takePageHue as Ut, textFieldClass as Wt, tidyMenu as Gt, toggleSelection as Kt, trapDialogKeys as qt, treeRows as Jt, treeStep as Yt, updateFace as Xt, updateStage as Zt, versionLink as X, watchSelectorFit as Qt, windowFocusTarget as $t, windowFoot as en } from "@glimstone/core";
|
|
6
6
|
// src/IconTipButton.vue
|
|
7
7
|
var tn = /* @__PURE__ */ A({
|
|
8
8
|
inheritAttrs: !1,
|
|
@@ -17,13 +17,13 @@ var tn = /* @__PURE__ */ A({
|
|
|
17
17
|
type: { default: "button" }
|
|
18
18
|
},
|
|
19
19
|
setup(r) {
|
|
20
|
-
let i = r, a =
|
|
21
|
-
return (
|
|
20
|
+
let i = r, a = e(() => i.tip, () => i.disabled);
|
|
21
|
+
return (e, i) => (L(), T(b, null, [k(W(t), {
|
|
22
22
|
on: r.disabled,
|
|
23
23
|
show: W(a).show,
|
|
24
24
|
hide: W(a).hide
|
|
25
25
|
}, {
|
|
26
|
-
default: q(() => [(L(), C(V(r.href && !r.disabled ? "a" : "button"), M(
|
|
26
|
+
default: q(() => [(L(), C(V(r.href && !r.disabled ? "a" : "button"), M(e.$attrs, {
|
|
27
27
|
ref: (e) => W(a).trigger.value = e,
|
|
28
28
|
href: r.disabled ? void 0 : r.href,
|
|
29
29
|
type: r.href && !r.disabled ? void 0 : r.type,
|
|
@@ -35,7 +35,7 @@ var tn = /* @__PURE__ */ A({
|
|
|
35
35
|
onFocus: W(a).showOnFocus,
|
|
36
36
|
onBlur: W(a).hide
|
|
37
37
|
}), {
|
|
38
|
-
default: q(() => [B(
|
|
38
|
+
default: q(() => [B(e.$slots, "default")]),
|
|
39
39
|
_: 3
|
|
40
40
|
}, 16, [
|
|
41
41
|
"href",
|
|
@@ -53,7 +53,7 @@ var tn = /* @__PURE__ */ A({
|
|
|
53
53
|
"on",
|
|
54
54
|
"show",
|
|
55
55
|
"hide"
|
|
56
|
-
]), k(
|
|
56
|
+
]), k(n, { state: W(a) }, null, 8, ["state"])], 64));
|
|
57
57
|
}
|
|
58
58
|
}), nn = ["disabled"], rn = /* @__PURE__ */ A({
|
|
59
59
|
__name: "Badge",
|
|
@@ -137,16 +137,16 @@ var tn = /* @__PURE__ */ A({
|
|
|
137
137
|
// src/engines.ts
|
|
138
138
|
function sn(e) {
|
|
139
139
|
let t = H(qe(e));
|
|
140
|
-
return I(
|
|
140
|
+
return I(Rt(() => t.value = qe(e))), S({
|
|
141
141
|
get: () => t.value,
|
|
142
142
|
set: (t) => {
|
|
143
|
-
|
|
143
|
+
At(e, t), Ze();
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
function cn() {
|
|
148
148
|
let e = H(mt());
|
|
149
|
-
return I(
|
|
149
|
+
return I(Bt(() => e.value = mt())), S({
|
|
150
150
|
get: () => e.value,
|
|
151
151
|
set: (e) => ke(e)
|
|
152
152
|
});
|
|
@@ -165,14 +165,14 @@ function un(e, t) {
|
|
|
165
165
|
}), I(() => r.disconnect()), n;
|
|
166
166
|
}
|
|
167
167
|
function dn() {
|
|
168
|
-
let e = un("data-shape", () => document.documentElement.getAttribute("data-shape") ??
|
|
168
|
+
let e = un("data-shape", () => document.documentElement.getAttribute("data-shape") ?? xe);
|
|
169
169
|
return S({
|
|
170
170
|
get: () => e.value,
|
|
171
171
|
set: Ae
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
function fn() {
|
|
175
|
-
let e = un("data-motion", () => document.documentElement.getAttribute("data-motion") ??
|
|
175
|
+
let e = un("data-motion", () => document.documentElement.getAttribute("data-motion") ?? be);
|
|
176
176
|
return S({
|
|
177
177
|
get: () => e.value,
|
|
178
178
|
set: Oe
|
|
@@ -224,12 +224,12 @@ var mn = {
|
|
|
224
224
|
},
|
|
225
225
|
setup(r, { expose: i }) {
|
|
226
226
|
let a = r, o = sn("buttons"), s = H(!1);
|
|
227
|
-
|
|
227
|
+
he((e) => {
|
|
228
228
|
if (a.compactBelow === void 0) return void (s.value = !1);
|
|
229
229
|
let t = it(a.compactBelow), n = () => s.value = $e(t);
|
|
230
|
-
n(), e(
|
|
230
|
+
n(), e(zt(t, n));
|
|
231
231
|
});
|
|
232
|
-
let c = S(() => a.glyph ?? (a.labelKey ?
|
|
232
|
+
let c = S(() => a.glyph ?? (a.labelKey ? d(a.labelKey) : void 0) ?? (a.variant === "chip" ? h : void 0)), l = S(() => Ne({
|
|
233
233
|
mode: o.value,
|
|
234
234
|
label: a.label,
|
|
235
235
|
hasGlyph: !!c.value || a.busy,
|
|
@@ -242,26 +242,26 @@ var mn = {
|
|
|
242
242
|
title: a.title,
|
|
243
243
|
hueIndex: a.hueIndex,
|
|
244
244
|
stage: a.stage
|
|
245
|
-
})),
|
|
246
|
-
function
|
|
245
|
+
})), u = S(() => !!a.href && !a.disabled), f = e(() => l.value.tip, () => a.disabled), p = H(null);
|
|
246
|
+
function m(e) {
|
|
247
247
|
p.value = e, f.trigger.value = p.value;
|
|
248
248
|
}
|
|
249
249
|
function g(e) {
|
|
250
|
-
l.value.pageHue &&
|
|
250
|
+
l.value.pageHue && Ut(e.currentTarget), f.show();
|
|
251
251
|
}
|
|
252
252
|
function _(e) {
|
|
253
|
-
l.value.pageHue &&
|
|
253
|
+
l.value.pageHue && Ut(e.currentTarget), f.showOnFocus();
|
|
254
254
|
}
|
|
255
|
-
return i({ el: p }), (
|
|
255
|
+
return i({ el: p }), (e, i) => (L(), T(b, null, [k(W(t), {
|
|
256
256
|
on: r.disabled && !!l.value.tip,
|
|
257
257
|
show: W(f).show,
|
|
258
258
|
hide: W(f).hide
|
|
259
259
|
}, {
|
|
260
|
-
default: q(() => [(L(), C(V(
|
|
261
|
-
ref:
|
|
262
|
-
href:
|
|
263
|
-
type:
|
|
264
|
-
disabled:
|
|
260
|
+
default: q(() => [(L(), C(V(u.value ? "a" : "button"), M(e.$attrs, {
|
|
261
|
+
ref: m,
|
|
262
|
+
href: u.value ? r.href : void 0,
|
|
263
|
+
type: u.value ? void 0 : r.type,
|
|
264
|
+
disabled: u.value ? void 0 : r.disabled,
|
|
265
265
|
"aria-busy": r.busy || void 0,
|
|
266
266
|
"aria-describedby": W(f).describedBy.value,
|
|
267
267
|
style: l.value.style,
|
|
@@ -272,10 +272,10 @@ var mn = {
|
|
|
272
272
|
onBlur: W(f).hide
|
|
273
273
|
}), {
|
|
274
274
|
default: q(() => [
|
|
275
|
-
B(
|
|
275
|
+
B(e.$slots, "before"),
|
|
276
276
|
l.value.showGlyph ? (L(), T("span", mn, [r.busy ? (L(), T("span", hn)) : (L(), C(V(c.value), { key: 1 }))])) : w("", !0),
|
|
277
277
|
E("span", { class: N(l.value.labelClass) }, U(r.label), 3),
|
|
278
|
-
B(
|
|
278
|
+
B(e.$slots, "after")
|
|
279
279
|
]),
|
|
280
280
|
_: 3
|
|
281
281
|
}, 16, [
|
|
@@ -294,7 +294,7 @@ var mn = {
|
|
|
294
294
|
"on",
|
|
295
295
|
"show",
|
|
296
296
|
"hide"
|
|
297
|
-
]), k(
|
|
297
|
+
]), k(n, { state: W(f) }, null, 8, ["state"])], 64));
|
|
298
298
|
}
|
|
299
299
|
}), gn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ A({
|
|
300
300
|
__name: "InfoBubble",
|
|
@@ -305,14 +305,14 @@ var mn = {
|
|
|
305
305
|
default: !1
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
|
-
setup(
|
|
309
|
-
let r =
|
|
310
|
-
return (
|
|
308
|
+
setup(t) {
|
|
309
|
+
let r = t, i = e(() => r.tip);
|
|
310
|
+
return (e, r) => (L(), T(b, null, [E("span", {
|
|
311
311
|
ref: (e) => W(i).trigger.value = e,
|
|
312
|
-
"aria-label":
|
|
312
|
+
"aria-label": t.tip,
|
|
313
313
|
"aria-describedby": W(i).describedBy.value,
|
|
314
314
|
tabindex: "0",
|
|
315
|
-
class: N(
|
|
315
|
+
class: N(t.onAccent ? "glim-info-icon glim-info-icon--on-accent" : "glim-info-icon"),
|
|
316
316
|
onMouseenter: r[0] ||= (...e) => W(i).show && W(i).show(...e),
|
|
317
317
|
onMouseleave: r[1] ||= (...e) => W(i).hide && W(i).hide(...e),
|
|
318
318
|
onFocus: r[2] ||= (...e) => W(i).showOnFocus && W(i).showOnFocus(...e),
|
|
@@ -344,7 +344,7 @@ var mn = {
|
|
|
344
344
|
"stroke-width": "1.3",
|
|
345
345
|
"stroke-linecap": "round"
|
|
346
346
|
})
|
|
347
|
-
], -1)]], 42, gn), k(
|
|
347
|
+
], -1)]], 42, gn), k(n, { state: W(i) }, null, 8, ["state"])], 64));
|
|
348
348
|
}
|
|
349
349
|
}), _n = {
|
|
350
350
|
key: 0,
|
|
@@ -424,7 +424,7 @@ var mn = {
|
|
|
424
424
|
disabled: e.disabled,
|
|
425
425
|
class: N(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
426
426
|
onClick: i[0] ||= (e) => r.value = !r.value
|
|
427
|
-
}, [E("span", bn, [k(W(
|
|
427
|
+
}, [E("span", bn, [k(W(f))]), n.value ? w("", !0) : (L(), T("span", xn, U(e.label), 1))], 10, yn));
|
|
428
428
|
}
|
|
429
429
|
}), Cn = { class: "glim-picker-foot" }, wn = {
|
|
430
430
|
key: 0,
|
|
@@ -435,7 +435,7 @@ var mn = {
|
|
|
435
435
|
anchor: { default: null },
|
|
436
436
|
names: {
|
|
437
437
|
type: [Array, Boolean],
|
|
438
|
-
default: () =>
|
|
438
|
+
default: () => _e
|
|
439
439
|
},
|
|
440
440
|
text: {}
|
|
441
441
|
}, {
|
|
@@ -449,21 +449,21 @@ var mn = {
|
|
|
449
449
|
], ["update:modelValue"]),
|
|
450
450
|
setup(e, { emit: t }) {
|
|
451
451
|
let n = e, r = G(e, "modelValue"), i = t, a = {
|
|
452
|
-
...
|
|
452
|
+
...ve,
|
|
453
453
|
...n.text
|
|
454
|
-
}, o = H(null), s = H(null), c = R(ot(r.value) ?? "#000000"), l = R(c.value), u = S(() => n.names === !1 ? null : at(c.value, n.names)),
|
|
454
|
+
}, o = H(null), s = H(null), c = R(ot(r.value) ?? "#000000"), l = R(c.value), u = S(() => n.names === !1 ? null : at(c.value, n.names)), d = Ie(c.value, (e) => {
|
|
455
455
|
c.value = e, l.value = e, i("input", e);
|
|
456
456
|
}, { text: a }), p;
|
|
457
457
|
F(() => {
|
|
458
|
-
s.value.appendChild(
|
|
459
|
-
}),
|
|
458
|
+
s.value.appendChild(d.el), n.anchor && o.value && (p = Ve(o.value, n.anchor, () => i("close")), d.focus());
|
|
459
|
+
}), ie(() => p?.()), K(r, (e) => {
|
|
460
460
|
let t = ot(e);
|
|
461
|
-
t && (c.value = t, l.value = t,
|
|
461
|
+
t && (c.value = t, l.value = t, d.setValue(t));
|
|
462
462
|
});
|
|
463
463
|
function m(e) {
|
|
464
464
|
l.value = e.target.value;
|
|
465
465
|
let t = ot(l.value);
|
|
466
|
-
t && (c.value = t,
|
|
466
|
+
t && (c.value = t, d.setValue(t), i("input", t));
|
|
467
467
|
}
|
|
468
468
|
function h() {
|
|
469
469
|
r.value = c.value, i("apply", c.value, u.value), n.anchor && (n.anchor.focus(), i("close"));
|
|
@@ -504,7 +504,7 @@ var mn = {
|
|
|
504
504
|
E("div", En, [k(Z, {
|
|
505
505
|
label: a.apply,
|
|
506
506
|
"label-key": "apply",
|
|
507
|
-
glyph: W(
|
|
507
|
+
glyph: W(f),
|
|
508
508
|
tone: "accent",
|
|
509
509
|
onClick: h
|
|
510
510
|
}, null, 8, ["label", "glyph"])])
|
|
@@ -556,7 +556,7 @@ var mn = {
|
|
|
556
556
|
key: 0,
|
|
557
557
|
label: e.closeLabel,
|
|
558
558
|
"label-key": "common.close",
|
|
559
|
-
glyph: W(
|
|
559
|
+
glyph: W(h),
|
|
560
560
|
class: "glim-modal-close",
|
|
561
561
|
onClick: n[0] ||= (e) => r("cancel")
|
|
562
562
|
}, null, 8, ["label", "glyph"]))]),
|
|
@@ -566,7 +566,7 @@ var mn = {
|
|
|
566
566
|
ref: a,
|
|
567
567
|
label: e.cancelLabel,
|
|
568
568
|
"label-key": "common.cancel",
|
|
569
|
-
glyph: W(
|
|
569
|
+
glyph: W(_),
|
|
570
570
|
onClick: n[1] ||= (e) => r("cancel")
|
|
571
571
|
}, null, 8, ["label", "glyph"]), k(Z, {
|
|
572
572
|
label: e.confirmLabel,
|
|
@@ -628,7 +628,7 @@ var mn = {
|
|
|
628
628
|
},
|
|
629
629
|
emits: ["pick"],
|
|
630
630
|
setup(e, { emit: t }) {
|
|
631
|
-
let n = e,
|
|
631
|
+
let n = e, r = t, a = S(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : Ye(e) ? {
|
|
632
632
|
kind: "head",
|
|
633
633
|
head: e
|
|
634
634
|
} : {
|
|
@@ -643,9 +643,9 @@ var mn = {
|
|
|
643
643
|
tabindex: "-1",
|
|
644
644
|
class: "glim-menu-head-edit",
|
|
645
645
|
"data-row": n,
|
|
646
|
-
onClick: (e) =>
|
|
646
|
+
onClick: (e) => r("pick", n)
|
|
647
647
|
}, {
|
|
648
|
-
default: q(() => [(L(), C(V(t.head.edit.glyph ?? W(
|
|
648
|
+
default: q(() => [(L(), C(V(t.head.edit.glyph ?? W(u))))]),
|
|
649
649
|
_: 2
|
|
650
650
|
}, 1032, [
|
|
651
651
|
"tip",
|
|
@@ -662,16 +662,16 @@ var mn = {
|
|
|
662
662
|
disabled: t.item.disabled,
|
|
663
663
|
class: N(["glim-menu-item", { "glim-menu-item--current": t.view.current }]),
|
|
664
664
|
"data-row": n,
|
|
665
|
-
onClick: (e) =>
|
|
665
|
+
onClick: (e) => r("pick", n)
|
|
666
666
|
}, [
|
|
667
|
-
t.view.lead === "box" ? (L(), T("span", Bn, [k(W(
|
|
667
|
+
t.view.lead === "box" ? (L(), T("span", Bn, [k(W(f))])) : t.view.lead === "dot" ? (L(), T("span", {
|
|
668
668
|
key: 1,
|
|
669
669
|
class: "glim-menu-dot",
|
|
670
670
|
style: P({ backgroundColor: t.item.color }),
|
|
671
671
|
"aria-hidden": "true"
|
|
672
672
|
}, null, 4)) : (L(), T("span", Vn, [t.view.lead === "glyph" ? (L(), C(V(t.item.glyph), { key: 0 })) : w("", !0)])),
|
|
673
673
|
E("span", Hn, U(t.item.label), 1),
|
|
674
|
-
t.view.end === "submenu" ? (L(), T("span", Un, [k(W(
|
|
674
|
+
t.view.end === "submenu" ? (L(), T("span", Un, [k(W(i))])) : t.view.end === "tick" ? (L(), T("span", Wn, [k(W(f))])) : t.view.end === "shortcut" ? (L(), C(In, {
|
|
675
675
|
key: 5,
|
|
676
676
|
class: "glim-menu-end"
|
|
677
677
|
}, {
|
|
@@ -699,15 +699,15 @@ var mn = {
|
|
|
699
699
|
let n = e, r = t, i = H(null), a = H(null), o = Ke(), s = R({
|
|
700
700
|
left: n.x,
|
|
701
701
|
top: n.y
|
|
702
|
-
}), c = H(null), l = R(null), u = S(() =>
|
|
702
|
+
}), c = H(null), l = R(null), u = S(() => Gt(n.items)), d = S(() => {
|
|
703
703
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
704
704
|
return e && e !== "-" && !Ye(e) && e.sub ? e : null;
|
|
705
|
-
}), f = S(() => d.value?.sub ?
|
|
705
|
+
}), f = S(() => d.value?.sub ? Gt(d.value.sub) : null), p = () => ({
|
|
706
706
|
width: innerWidth,
|
|
707
707
|
height: innerHeight
|
|
708
708
|
});
|
|
709
709
|
function m(e) {
|
|
710
|
-
r("close"), e &&
|
|
710
|
+
r("close"), e && bt(n.opener ?? o);
|
|
711
711
|
}
|
|
712
712
|
function h() {
|
|
713
713
|
let e = i.value;
|
|
@@ -728,7 +728,7 @@ var mn = {
|
|
|
728
728
|
a.value,
|
|
729
729
|
n.opener
|
|
730
730
|
], () => m(!1)), i.value && Ue(i.value);
|
|
731
|
-
}),
|
|
731
|
+
}), ae(() => {
|
|
732
732
|
g?.(), _?.();
|
|
733
733
|
}), K(c, (e) => {
|
|
734
734
|
l.value = null;
|
|
@@ -747,7 +747,7 @@ var mn = {
|
|
|
747
747
|
focus: !0
|
|
748
748
|
} : (nt(n).staysOpen || m(!0), n.onSelect?.()));
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function ee(e, t) {
|
|
751
751
|
if (e.key === "Tab") return m(!1);
|
|
752
752
|
let n = e.currentTarget, a = tt(e.key, getComputedStyle(n).direction === "rtl");
|
|
753
753
|
if (!a) return;
|
|
@@ -762,7 +762,7 @@ var mn = {
|
|
|
762
762
|
focus: !0
|
|
763
763
|
} : r("step", a === "in" ? 1 : -1);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function y(e) {
|
|
766
766
|
let t = e.target.closest("[data-row]");
|
|
767
767
|
if (!t) return;
|
|
768
768
|
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !Ye(r) && !!r.sub && !r.disabled;
|
|
@@ -782,8 +782,8 @@ var mn = {
|
|
|
782
782
|
left: `${s.value.left}px`,
|
|
783
783
|
top: `${s.value.top}px`
|
|
784
784
|
}),
|
|
785
|
-
onKeydown: n[1] ||= (e) =>
|
|
786
|
-
onMouseover:
|
|
785
|
+
onKeydown: n[1] ||= (e) => ee(e, !1),
|
|
786
|
+
onMouseover: y,
|
|
787
787
|
onContextmenu: n[2] ||= Y(() => {}, ["prevent"])
|
|
788
788
|
}, [k(Kn, {
|
|
789
789
|
entries: u.value,
|
|
@@ -801,7 +801,7 @@ var mn = {
|
|
|
801
801
|
left: `${l.value?.left ?? 0}px`,
|
|
802
802
|
top: `${l.value?.top ?? 0}px`
|
|
803
803
|
}),
|
|
804
|
-
onKeydown: n[4] ||= (e) =>
|
|
804
|
+
onKeydown: n[4] ||= (e) => ee(e, !0),
|
|
805
805
|
onContextmenu: n[5] ||= Y(() => {}, ["prevent"])
|
|
806
806
|
}, [k(Kn, {
|
|
807
807
|
entries: f.value,
|
|
@@ -825,10 +825,10 @@ var mn = {
|
|
|
825
825
|
emits: ["copy"],
|
|
826
826
|
setup(e, { emit: t }) {
|
|
827
827
|
let n = e, r = t, i = y(() => n.label), a = R(!1), o = H(null), s;
|
|
828
|
-
|
|
829
|
-
async function
|
|
828
|
+
ie(() => clearTimeout(s));
|
|
829
|
+
async function c() {
|
|
830
830
|
let e = await Le(n.value);
|
|
831
|
-
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1,
|
|
831
|
+
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, ye)) : (o.value?.focus(), o.value?.select());
|
|
832
832
|
}
|
|
833
833
|
return (t, n) => (L(), T("span", { class: N(["glim-copy", W(Be)(e.width)]) }, [
|
|
834
834
|
E("input", {
|
|
@@ -843,9 +843,9 @@ var mn = {
|
|
|
843
843
|
k(Z, {
|
|
844
844
|
label: a.value ? e.text.copied : e.text.copy,
|
|
845
845
|
"label-key": a.value ? "copied" : "copy",
|
|
846
|
-
glyph: a.value ? W(
|
|
846
|
+
glyph: a.value ? W(f) : W(l),
|
|
847
847
|
variant: "icon",
|
|
848
|
-
onClick:
|
|
848
|
+
onClick: c
|
|
849
849
|
}, null, 8, [
|
|
850
850
|
"label",
|
|
851
851
|
"label-key",
|
|
@@ -901,8 +901,8 @@ var mn = {
|
|
|
901
901
|
},
|
|
902
902
|
setup(e) {
|
|
903
903
|
let t = e;
|
|
904
|
-
|
|
905
|
-
let n =
|
|
904
|
+
se(te, S(() => t.label));
|
|
905
|
+
let n = re(ee, !1), r = H(null);
|
|
906
906
|
return (t, i) => (L(), T("div", {
|
|
907
907
|
ref_key: "row",
|
|
908
908
|
ref: r,
|
|
@@ -933,7 +933,7 @@ var mn = {
|
|
|
933
933
|
__name: "FieldRowGroup",
|
|
934
934
|
props: { columns: {} },
|
|
935
935
|
setup(e) {
|
|
936
|
-
return
|
|
936
|
+
return se(ee, !0), (t, n) => (L(), T("div", {
|
|
937
937
|
class: "glim-field-row-group",
|
|
938
938
|
style: P(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
939
939
|
}, [B(t.$slots, "default")], 4));
|
|
@@ -977,7 +977,7 @@ var mn = {
|
|
|
977
977
|
...t.$attrs,
|
|
978
978
|
class: void 0,
|
|
979
979
|
style: void 0
|
|
980
|
-
}, { class: "glim-glyph-field-input" }), null, 16, lr), [[
|
|
980
|
+
}, { class: "glim-glyph-field-input" }), null, 16, lr), [[pe, r.value]]),
|
|
981
981
|
B(t.$slots, "after")
|
|
982
982
|
], 6));
|
|
983
983
|
}
|
|
@@ -1018,7 +1018,7 @@ var mn = {
|
|
|
1018
1018
|
},
|
|
1019
1019
|
setup(e) {
|
|
1020
1020
|
function t(e) {
|
|
1021
|
-
|
|
1021
|
+
Ut(e.currentTarget);
|
|
1022
1022
|
}
|
|
1023
1023
|
return (n, r) => e.absent ? (L(), T("span", fr)) : (L(), C(tn, {
|
|
1024
1024
|
key: 1,
|
|
@@ -1068,11 +1068,11 @@ var mn = {
|
|
|
1068
1068
|
},
|
|
1069
1069
|
emits: ["linkClick"],
|
|
1070
1070
|
setup(e, { emit: t }) {
|
|
1071
|
-
let n = e, r = t, i = S(() =>
|
|
1071
|
+
let n = e, r = t, i = S(() => _t(n.parts)), a = H(null), o = S(() => n.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (i.value ? n.soonLabel : "")), s;
|
|
1072
1072
|
K([a, o], () => {
|
|
1073
1073
|
s?.(), s = a.value ? Xe(a.value) : void 0;
|
|
1074
1074
|
}, { flush: "post" }), I(() => s?.());
|
|
1075
|
-
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) =>
|
|
1075
|
+
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) => gt(e, c(e)), u = (e) => i.value ? "span" : e.href ? "a" : "button", d = (e) => i.value ? { "aria-disabled": !0 } : e.href ? {
|
|
1076
1076
|
href: e.href,
|
|
1077
1077
|
target: "_blank",
|
|
1078
1078
|
rel: "noreferrer noopener",
|
|
@@ -1084,7 +1084,7 @@ var mn = {
|
|
|
1084
1084
|
return (t, n) => (L(), T("div", {
|
|
1085
1085
|
ref_key: "root",
|
|
1086
1086
|
ref: a,
|
|
1087
|
-
class: N(W(
|
|
1087
|
+
class: N(W(vt)(e.brand, e.parts.length, e.note, i.value))
|
|
1088
1088
|
}, [
|
|
1089
1089
|
(L(!0), T(b, null, z(e.parts, (n, r) => (L(), C(V(u(n)), M({ key: r }, { ref_for: !0 }, d(n), {
|
|
1090
1090
|
"aria-label": l(n),
|
|
@@ -1175,7 +1175,10 @@ var mn = {
|
|
|
1175
1175
|
manualGlyph: {},
|
|
1176
1176
|
onBugReport: {},
|
|
1177
1177
|
bugGlyph: {},
|
|
1178
|
-
openUrl: {
|
|
1178
|
+
openUrl: {
|
|
1179
|
+
type: Function,
|
|
1180
|
+
default: ct
|
|
1181
|
+
},
|
|
1179
1182
|
hueIndex: {}
|
|
1180
1183
|
},
|
|
1181
1184
|
setup(e) {
|
|
@@ -1265,13 +1268,16 @@ var mn = {
|
|
|
1265
1268
|
rows: {},
|
|
1266
1269
|
updateCheck: {},
|
|
1267
1270
|
onReleaseNotes: {},
|
|
1268
|
-
openUrl: {
|
|
1271
|
+
openUrl: {
|
|
1272
|
+
type: Function,
|
|
1273
|
+
default: ct
|
|
1274
|
+
},
|
|
1269
1275
|
hueIndex: {}
|
|
1270
1276
|
},
|
|
1271
1277
|
setup(e) {
|
|
1272
|
-
let t = e, n =
|
|
1278
|
+
let t = e, n = de(), r = S(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = H({ kind: "idle" }), a = H(0), o = S(() => t.updateCheck && Xt(i.value, t.updateCheck.text));
|
|
1273
1279
|
function s() {
|
|
1274
|
-
|
|
1280
|
+
Ct(t.updateCheck, i.value, (e) => {
|
|
1275
1281
|
i.value = e, e.kind === "failed" && a.value++;
|
|
1276
1282
|
});
|
|
1277
1283
|
}
|
|
@@ -1306,7 +1312,7 @@ var mn = {
|
|
|
1306
1312
|
label: o.value.label,
|
|
1307
1313
|
"label-key": o.value.labelKey,
|
|
1308
1314
|
tone: o.value.tone,
|
|
1309
|
-
stage: W(
|
|
1315
|
+
stage: W(Zt)(e.updateCheck.text, o.value.label),
|
|
1310
1316
|
busy: i.value.kind === "busy",
|
|
1311
1317
|
class: N(a.value > 0 ? "glim-shake" : ""),
|
|
1312
1318
|
onClick: s
|
|
@@ -1364,7 +1370,7 @@ var mn = {
|
|
|
1364
1370
|
mono: { type: Boolean }
|
|
1365
1371
|
},
|
|
1366
1372
|
setup(e) {
|
|
1367
|
-
let t = e, n =
|
|
1373
|
+
let t = e, n = le(), r = S(() => !!n.onClick), i = S(() => ["glim-list-row-name", { "glim-list-row-name--mono": t.mono }]);
|
|
1368
1374
|
function a(e) {
|
|
1369
1375
|
e.preventDefault(), e.currentTarget.click();
|
|
1370
1376
|
}
|
|
@@ -1373,7 +1379,7 @@ var mn = {
|
|
|
1373
1379
|
"aria-label": e.name,
|
|
1374
1380
|
tabindex: r.value ? 0 : void 0,
|
|
1375
1381
|
class: N(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
1376
|
-
onKeydown: [
|
|
1382
|
+
onKeydown: [ge(Y(a, ["self"]), ["enter"]), ge(Y(a, ["self"]), ["space"])]
|
|
1377
1383
|
}, [
|
|
1378
1384
|
t.$slots.tile ? (L(), T("span", Rr, [B(t.$slots, "tile")])) : w("", !0),
|
|
1379
1385
|
E("span", { class: N(i.value) }, [E("span", zr, U(e.name), 1), e.tip ? (L(), T("span", {
|
|
@@ -1486,20 +1492,20 @@ var mn = {
|
|
|
1486
1492
|
},
|
|
1487
1493
|
valueText: {}
|
|
1488
1494
|
},
|
|
1489
|
-
setup(
|
|
1490
|
-
let r =
|
|
1495
|
+
setup(t) {
|
|
1496
|
+
let r = t, i = S(() => rt(r.value, {
|
|
1491
1497
|
size: r.size,
|
|
1492
1498
|
threshold: r.threshold,
|
|
1493
1499
|
quiet: r.quiet
|
|
1494
|
-
})), a = S(() => i.value.percent === null), o =
|
|
1495
|
-
return (
|
|
1500
|
+
})), a = S(() => i.value.percent === null), o = e(() => r.valueText);
|
|
1501
|
+
return (e, r) => (L(), T(b, null, [E("span", M(e.$attrs, {
|
|
1496
1502
|
ref: (e) => W(o).trigger.value = e,
|
|
1497
1503
|
role: a.value ? "progressbar" : "meter",
|
|
1498
|
-
"aria-label":
|
|
1504
|
+
"aria-label": t.label,
|
|
1499
1505
|
"aria-valuemin": a.value ? void 0 : 0,
|
|
1500
1506
|
"aria-valuemax": a.value ? void 0 : 100,
|
|
1501
1507
|
"aria-valuenow": i.value.percent ?? void 0,
|
|
1502
|
-
"aria-valuetext":
|
|
1508
|
+
"aria-valuetext": t.valueText,
|
|
1503
1509
|
"aria-busy": a.value || void 0,
|
|
1504
1510
|
class: i.value.className,
|
|
1505
1511
|
onMouseenter: r[0] ||= (...e) => W(o).show && W(o).show(...e),
|
|
@@ -1507,7 +1513,7 @@ var mn = {
|
|
|
1507
1513
|
}), [E("span", {
|
|
1508
1514
|
class: "glim-meter-fill",
|
|
1509
1515
|
style: P(i.value.width ? { width: i.value.width } : void 0)
|
|
1510
|
-
}, null, 4)], 16, Gr), k(
|
|
1516
|
+
}, null, 4)], 16, Gr), k(n, { state: W(o) }, null, 8, ["state"])], 64));
|
|
1511
1517
|
}
|
|
1512
1518
|
}), qr = { class: "glim-num-wrap" }, Jr = ["aria-label"], Yr = /* @__PURE__ */ A({
|
|
1513
1519
|
inheritAttrs: !1,
|
|
@@ -1518,10 +1524,10 @@ var mn = {
|
|
|
1518
1524
|
},
|
|
1519
1525
|
emits: ["update:modelValue"],
|
|
1520
1526
|
setup(e) {
|
|
1521
|
-
let t = G(e, "modelValue"), n =
|
|
1527
|
+
let t = G(e, "modelValue"), n = le(), r = y(() => n["aria-label"]), i = H(null), a;
|
|
1522
1528
|
F(() => {
|
|
1523
1529
|
o(t.value), a = je(i.value);
|
|
1524
|
-
}),
|
|
1530
|
+
}), ie(() => a?.());
|
|
1525
1531
|
function o(e) {
|
|
1526
1532
|
let t = i.value;
|
|
1527
1533
|
t && (t.value === "" ? null : t.valueAsNumber) !== e && (t.value = e === null ? "" : String(e));
|
|
@@ -1534,7 +1540,7 @@ var mn = {
|
|
|
1534
1540
|
() => n.disabled,
|
|
1535
1541
|
() => n.readonly
|
|
1536
1542
|
], () => {
|
|
1537
|
-
o(t.value), i.value &&
|
|
1543
|
+
o(t.value), i.value && Vt(i.value);
|
|
1538
1544
|
}, { flush: "post" });
|
|
1539
1545
|
function s(e) {
|
|
1540
1546
|
let n = e.target;
|
|
@@ -1573,7 +1579,7 @@ var mn = {
|
|
|
1573
1579
|
}),
|
|
1574
1580
|
emits: ["update:modelValue"],
|
|
1575
1581
|
setup(e, { expose: t }) {
|
|
1576
|
-
let n = e, r = G(e, "modelValue"), i = R(!1), a =
|
|
1582
|
+
let n = e, r = G(e, "modelValue"), i = R(!1), a = le(), o = y(() => a["aria-label"]), s = S(() => Be(n.width)), c = H(null);
|
|
1577
1583
|
return t({ input: c }), (t, n) => (L(), T("span", {
|
|
1578
1584
|
class: N([
|
|
1579
1585
|
"glim-secret",
|
|
@@ -1596,13 +1602,13 @@ var mn = {
|
|
|
1596
1602
|
disabled: e.disabled,
|
|
1597
1603
|
type: i.value ? "text" : "password",
|
|
1598
1604
|
class: "glim-input"
|
|
1599
|
-
}), null, 16, Xr), [[
|
|
1605
|
+
}), null, 16, Xr), [[fe, r.value]]), k(tn, M(e.eyeAttrs, {
|
|
1600
1606
|
tip: i.value ? e.text.hide : e.text.show,
|
|
1601
1607
|
class: "glim-secret-eye",
|
|
1602
1608
|
disabled: e.disabled,
|
|
1603
1609
|
onClick: n[1] ||= (e) => i.value = !i.value
|
|
1604
1610
|
}), {
|
|
1605
|
-
default: q(() => [(L(), C(V(i.value ? W(
|
|
1611
|
+
default: q(() => [(L(), C(V(i.value ? W(g) : W(p))))]),
|
|
1606
1612
|
_: 1
|
|
1607
1613
|
}, 16, ["tip", "disabled"])], 6));
|
|
1608
1614
|
}
|
|
@@ -1627,13 +1633,13 @@ var mn = {
|
|
|
1627
1633
|
}),
|
|
1628
1634
|
emits: /*@__PURE__*/ j(["picked"], ["update:modelValue"]),
|
|
1629
1635
|
setup(e, { expose: t, emit: n }) {
|
|
1630
|
-
let r = e,
|
|
1636
|
+
let r = e, i = G(e, "modelValue"), o = n, s = y(() => r.label), c = H(null);
|
|
1631
1637
|
t({ input: c });
|
|
1632
1638
|
let l = H(null), u = R(!1), d = new ResizeObserver(([e]) => u.value = e.contentRect.width < we);
|
|
1633
|
-
F(() => d.observe(l.value)),
|
|
1639
|
+
F(() => d.observe(l.value)), ie(() => d.disconnect());
|
|
1634
1640
|
async function f() {
|
|
1635
|
-
let e = await r.pick(
|
|
1636
|
-
c.value?.focus(), e && (
|
|
1641
|
+
let e = await r.pick(i.value);
|
|
1642
|
+
c.value?.focus(), e && (i.value = e, o("picked", e));
|
|
1637
1643
|
}
|
|
1638
1644
|
return (t, n) => (L(), T("span", {
|
|
1639
1645
|
ref_key: "box",
|
|
@@ -1647,7 +1653,7 @@ var mn = {
|
|
|
1647
1653
|
}, [J(E("input", M({
|
|
1648
1654
|
ref_key: "input",
|
|
1649
1655
|
ref: c,
|
|
1650
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1656
|
+
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
1651
1657
|
type: "text",
|
|
1652
1658
|
spellcheck: "false",
|
|
1653
1659
|
autocomplete: "off",
|
|
@@ -1659,11 +1665,11 @@ var mn = {
|
|
|
1659
1665
|
}, {
|
|
1660
1666
|
disabled: e.disabled,
|
|
1661
1667
|
class: "glim-input glim-input--mono"
|
|
1662
|
-
}), null, 16, Qr), [[
|
|
1668
|
+
}), null, 16, Qr), [[pe, i.value]]), k(Z, M(e.buttonAttrs, {
|
|
1663
1669
|
variant: "icon",
|
|
1664
1670
|
label: e.text.pick,
|
|
1665
1671
|
"label-key": null,
|
|
1666
|
-
glyph: e.glyph ?? W(
|
|
1672
|
+
glyph: e.glyph ?? W(a),
|
|
1667
1673
|
compact: e.compact || u.value,
|
|
1668
1674
|
disabled: e.disabled,
|
|
1669
1675
|
onClick: f
|
|
@@ -1720,7 +1726,7 @@ var mn = {
|
|
|
1720
1726
|
return (t, n) => (L(), T("span", {
|
|
1721
1727
|
class: N(["glim-rowmark", { "glim-rowmark--on": e.on }]),
|
|
1722
1728
|
"aria-hidden": "true"
|
|
1723
|
-
}, [k(W(
|
|
1729
|
+
}, [k(W(f))], 2));
|
|
1724
1730
|
}
|
|
1725
1731
|
}), ri = [
|
|
1726
1732
|
"href",
|
|
@@ -1739,6 +1745,7 @@ var mn = {
|
|
|
1739
1745
|
"aria-pressed",
|
|
1740
1746
|
"aria-label",
|
|
1741
1747
|
"aria-describedby",
|
|
1748
|
+
"aria-hidden",
|
|
1742
1749
|
"disabled",
|
|
1743
1750
|
"tabindex"
|
|
1744
1751
|
], ai = ["id"], oi = /* @__PURE__ */ A({
|
|
@@ -1750,28 +1757,28 @@ var mn = {
|
|
|
1750
1757
|
on: { type: Boolean },
|
|
1751
1758
|
disabled: { type: Boolean },
|
|
1752
1759
|
roved: { type: Boolean },
|
|
1760
|
+
listed: { type: Boolean },
|
|
1753
1761
|
share: {},
|
|
1754
1762
|
squeezed: { type: Boolean },
|
|
1763
|
+
cut: { type: Boolean },
|
|
1755
1764
|
orientation: {},
|
|
1756
1765
|
size: {},
|
|
1757
1766
|
variant: {},
|
|
1758
1767
|
equalWidth: { type: Boolean },
|
|
1759
1768
|
buttonHeight: { type: Boolean },
|
|
1760
|
-
pairsOnPhone: { type: Boolean },
|
|
1761
1769
|
hue: { type: Boolean },
|
|
1762
1770
|
hueOffset: {},
|
|
1763
1771
|
panelId: {}
|
|
1764
1772
|
},
|
|
1765
1773
|
emits: ["select"],
|
|
1766
1774
|
setup(r, { emit: i }) {
|
|
1767
|
-
let a = r, o = i, s = S(() =>
|
|
1775
|
+
let a = r, o = i, s = S(() => wt({
|
|
1768
1776
|
strip: a.strip,
|
|
1769
1777
|
orientation: a.orientation,
|
|
1770
1778
|
size: a.size,
|
|
1771
1779
|
variant: a.variant,
|
|
1772
1780
|
equalWidth: a.equalWidth,
|
|
1773
1781
|
buttonHeight: a.buttonHeight,
|
|
1774
|
-
pairsOnPhone: a.pairsOnPhone,
|
|
1775
1782
|
hue: a.hue,
|
|
1776
1783
|
hueOffset: a.hueOffset,
|
|
1777
1784
|
index: a.index,
|
|
@@ -1783,8 +1790,9 @@ var mn = {
|
|
|
1783
1790
|
on: a.on,
|
|
1784
1791
|
disabled: a.disabled,
|
|
1785
1792
|
dim: a.item.dim,
|
|
1786
|
-
squeezed: a.squeezed
|
|
1787
|
-
|
|
1793
|
+
squeezed: a.squeezed,
|
|
1794
|
+
cut: a.cut
|
|
1795
|
+
})), c = e(() => s.value.tip, () => a.disabled), l = ue(), u = S(() => a.disabled && !!s.value.tip), d = S(() => u.value ? l : c.describedBy.value), f = S(() => a.strip.kind === "tab"), p = S(() => ({
|
|
1788
1796
|
...s.value.style,
|
|
1789
1797
|
...a.share
|
|
1790
1798
|
}));
|
|
@@ -1794,7 +1802,7 @@ var mn = {
|
|
|
1794
1802
|
function h(e) {
|
|
1795
1803
|
e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), o("select"));
|
|
1796
1804
|
}
|
|
1797
|
-
return (
|
|
1805
|
+
return (e, i) => (L(), T(b, null, [r.orientation === "vertical" ? (L(), T("a", M({ key: 0 }, r.item.attrs, {
|
|
1798
1806
|
ref: m,
|
|
1799
1807
|
href: r.item.href,
|
|
1800
1808
|
"data-sel-id": r.item.id,
|
|
@@ -1814,7 +1822,7 @@ var mn = {
|
|
|
1814
1822
|
key: 1,
|
|
1815
1823
|
"data-sel-label": "",
|
|
1816
1824
|
class: N(s.value.labelClass)
|
|
1817
|
-
}, U(r.item.label), 3))], 16, ri)) : (L(), T(b, { key: 1 }, [k(W(
|
|
1825
|
+
}, U(r.item.label), 3))], 16, ri)) : (L(), T(b, { key: 1 }, [k(W(t), M({
|
|
1818
1826
|
on: u.value,
|
|
1819
1827
|
show: W(c).show,
|
|
1820
1828
|
hide: W(c).hide
|
|
@@ -1823,7 +1831,7 @@ var mn = {
|
|
|
1823
1831
|
ref: m,
|
|
1824
1832
|
type: "button",
|
|
1825
1833
|
"data-sel-id": r.item.id,
|
|
1826
|
-
id: r.panelId && f.value ? W(
|
|
1834
|
+
id: r.panelId && f.value ? W(Ot)(r.panelId, r.item.id) : void 0,
|
|
1827
1835
|
role: r.strip.kind === "toggle" ? void 0 : r.strip.kind,
|
|
1828
1836
|
"aria-selected": f.value ? r.on : void 0,
|
|
1829
1837
|
"aria-controls": r.panelId && f.value && r.on ? r.panelId : void 0,
|
|
@@ -1831,8 +1839,9 @@ var mn = {
|
|
|
1831
1839
|
"aria-pressed": r.strip.kind === "toggle" ? r.on : void 0,
|
|
1832
1840
|
"aria-label": s.value.ariaLabel,
|
|
1833
1841
|
"aria-describedby": d.value,
|
|
1842
|
+
"aria-hidden": r.listed || void 0,
|
|
1834
1843
|
disabled: r.disabled,
|
|
1835
|
-
tabindex: r.roved ? 0 : -1,
|
|
1844
|
+
tabindex: r.roved && !r.listed ? 0 : -1,
|
|
1836
1845
|
class: s.value.className,
|
|
1837
1846
|
style: p.value,
|
|
1838
1847
|
onClick: i[4] ||= (e) => o("select"),
|
|
@@ -1854,13 +1863,16 @@ var mn = {
|
|
|
1854
1863
|
key: 0,
|
|
1855
1864
|
id: W(l),
|
|
1856
1865
|
hidden: ""
|
|
1857
|
-
}, U(s.value.tip), 9, ai)) : w("", !0)], 64)), k(
|
|
1866
|
+
}, U(s.value.tip), 9, ai)) : w("", !0)], 64)), k(n, { state: W(c) }, null, 8, ["state"])], 64));
|
|
1858
1867
|
}
|
|
1859
1868
|
}), si = [
|
|
1860
1869
|
"role",
|
|
1861
1870
|
"aria-label",
|
|
1862
1871
|
"aria-orientation"
|
|
1863
|
-
], ci =
|
|
1872
|
+
], ci = {
|
|
1873
|
+
key: 0,
|
|
1874
|
+
class: "glim-sel-list"
|
|
1875
|
+
}, li = /* @__PURE__ */ A({
|
|
1864
1876
|
__name: "Selector",
|
|
1865
1877
|
props: {
|
|
1866
1878
|
items: {},
|
|
@@ -1904,115 +1916,122 @@ var mn = {
|
|
|
1904
1916
|
},
|
|
1905
1917
|
emits: ["update:modelValue", "press"],
|
|
1906
1918
|
setup(e, { emit: t }) {
|
|
1907
|
-
let n = e,
|
|
1908
|
-
function
|
|
1919
|
+
let n = e, i = t, a = S(() => n.modelValue);
|
|
1920
|
+
function o(e) {
|
|
1909
1921
|
let t = H($e(e));
|
|
1910
|
-
return I(
|
|
1922
|
+
return I(zt(e, () => t.value = $e(e))), t;
|
|
1911
1923
|
}
|
|
1912
|
-
let
|
|
1913
|
-
mode:
|
|
1924
|
+
let s = y(() => n.label), c = S(() => n.inline || n.label === void 0 && s.value !== void 0), l = sn(Tt(n.size, n.orientation)), u = o(Ee), d = S(() => kt({
|
|
1925
|
+
mode: l.value,
|
|
1914
1926
|
select: n.select === "many" ? "many" : "one",
|
|
1915
1927
|
activation: n.activation,
|
|
1916
1928
|
orientation: n.orientation,
|
|
1917
1929
|
size: n.size,
|
|
1918
1930
|
variant: n.variant,
|
|
1919
1931
|
equalWidth: n.equalWidth,
|
|
1920
|
-
inline:
|
|
1932
|
+
inline: c.value,
|
|
1921
1933
|
fit: n.fit,
|
|
1922
|
-
pairsOnPhone: n.pairsOnPhone,
|
|
1923
1934
|
hue: n.hue,
|
|
1924
1935
|
hueOffset: n.hueOffset,
|
|
1925
|
-
desktop: l.value,
|
|
1926
1936
|
wide: u.value,
|
|
1927
1937
|
items: n.items.map((e) => ({
|
|
1928
1938
|
hasGlyph: !!e.glyph,
|
|
1929
1939
|
iconOnly: !!e.iconOnly
|
|
1930
1940
|
}))
|
|
1931
|
-
})), f = H(null), p = H(null), m =
|
|
1932
|
-
function
|
|
1941
|
+
})), f = H(null), p = H(null), m = S(() => n.items.map((e) => e.label).join("\n")), h = S(() => n.items.map((e) => n.disabled || e.disabled ? "1" : "0").join(""));
|
|
1942
|
+
function g(e, t) {
|
|
1933
1943
|
K([f, e], (e, n, r) => {
|
|
1934
1944
|
if (!f.value) return;
|
|
1935
1945
|
let i = t(f.value);
|
|
1936
1946
|
i && r(i);
|
|
1937
1947
|
}, { flush: "post" });
|
|
1938
1948
|
}
|
|
1939
|
-
|
|
1949
|
+
g(() => d.value.counted, (e) => d.value.counted ? Re(e) : void 0), g(() => [
|
|
1950
|
+
n.orientation,
|
|
1940
1951
|
d.value.pinWidth,
|
|
1941
|
-
n.
|
|
1942
|
-
|
|
1952
|
+
n.fit,
|
|
1953
|
+
d.value.canSqueeze,
|
|
1954
|
+
d.value.canList,
|
|
1955
|
+
c.value,
|
|
1956
|
+
m.value,
|
|
1943
1957
|
h.value,
|
|
1944
|
-
g.value,
|
|
1945
1958
|
n.size,
|
|
1946
1959
|
d.value.mode
|
|
1947
1960
|
].join("|"), (e) => {
|
|
1948
|
-
if (
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1961
|
+
if (n.orientation === "vertical") {
|
|
1962
|
+
p.value = null;
|
|
1963
|
+
return;
|
|
1964
|
+
}
|
|
1965
|
+
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
1966
|
+
return Qt(e, {
|
|
1967
|
+
pinWidth: t,
|
|
1968
|
+
fit: n.fit,
|
|
1969
|
+
canSqueeze: r,
|
|
1970
|
+
canList: i
|
|
1952
1971
|
}, (e) => p.value = e);
|
|
1953
|
-
}), _(() => [
|
|
1954
|
-
d.value.canSqueeze,
|
|
1955
|
-
h.value,
|
|
1956
|
-
g.value,
|
|
1957
|
-
n.size
|
|
1958
|
-
].join("|"), (e) => {
|
|
1959
|
-
if (!d.value.canSqueeze) m.value = "even";
|
|
1960
|
-
else return Zt(e, (e) => m.value = e);
|
|
1961
1972
|
});
|
|
1962
|
-
let
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1973
|
+
let _ = S(() => Et({
|
|
1974
|
+
layout: p.value,
|
|
1975
|
+
inline: c.value,
|
|
1976
|
+
fit: n.fit
|
|
1977
|
+
})), v = S(() => p.value?.fit === "list"), ee = S(() => n.items.map((e, t) => ({
|
|
1978
|
+
value: String(e.id),
|
|
1979
|
+
label: e.label,
|
|
1980
|
+
glyph: e.glyph,
|
|
1981
|
+
disabled: D.value[t]
|
|
1982
|
+
}))), te = S(() => a.value === null ? null : String(a.value)), x = S(() => n.select === "many"), E = (e) => x.value ? (a.value ?? []).includes(e) : a.value === e, D = S(() => n.items.map((e) => n.disabled || !!e.disabled)), O = S(() => St(D.value, n.items.findIndex((e) => E(e.id))));
|
|
1983
|
+
function A(e) {
|
|
1984
|
+
i("press", e);
|
|
1985
|
+
let t = x.value ? Kt(a.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
1986
|
+
t !== a.value && i("update:modelValue", t);
|
|
1974
1987
|
}
|
|
1975
|
-
function
|
|
1988
|
+
function ne(e) {
|
|
1989
|
+
let t = n.items.find((t) => String(t.id) === e);
|
|
1990
|
+
t && A(t.id);
|
|
1991
|
+
}
|
|
1992
|
+
function re(e) {
|
|
1993
|
+
if (v.value) return;
|
|
1976
1994
|
let t = e.target;
|
|
1977
1995
|
if (n.orientation === "vertical" && e.key === " " && t.dataset.selId) {
|
|
1978
1996
|
e.preventDefault(), t.click();
|
|
1979
1997
|
return;
|
|
1980
1998
|
}
|
|
1981
|
-
let r =
|
|
1999
|
+
let r = xt(f.value, e.key, n.orientation);
|
|
1982
2000
|
if (!r) return;
|
|
1983
2001
|
e.preventDefault();
|
|
1984
2002
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
1985
|
-
d.value.autoSelect && i &&
|
|
2003
|
+
d.value.autoSelect && i && A(i.id);
|
|
1986
2004
|
}
|
|
1987
2005
|
return (t, n) => (L(), T("div", {
|
|
1988
2006
|
ref_key: "track",
|
|
1989
2007
|
ref: f,
|
|
1990
|
-
role: d.value.role,
|
|
1991
|
-
"aria-label": W(
|
|
1992
|
-
"aria-orientation": d.value.role === "group" ? void 0 : e.orientation,
|
|
1993
|
-
class: N(d.value.className),
|
|
1994
|
-
style: P(
|
|
1995
|
-
onKeydown:
|
|
2008
|
+
role: v.value ? void 0 : d.value.role,
|
|
2009
|
+
"aria-label": v.value ? void 0 : W(s),
|
|
2010
|
+
"aria-orientation": v.value || d.value.role === "group" ? void 0 : e.orientation,
|
|
2011
|
+
class: N([d.value.className, { "glim-sel--listed": v.value }]),
|
|
2012
|
+
style: P(_.value.track),
|
|
2013
|
+
onKeydown: re
|
|
1996
2014
|
}, [(L(!0), T(b, null, z(e.items, (t, n) => (L(), C(oi, {
|
|
1997
2015
|
key: t.id,
|
|
1998
2016
|
item: t,
|
|
1999
2017
|
index: n,
|
|
2000
2018
|
strip: d.value,
|
|
2001
|
-
on:
|
|
2002
|
-
disabled:
|
|
2003
|
-
roved: n ===
|
|
2004
|
-
|
|
2005
|
-
|
|
2019
|
+
on: E(t.id),
|
|
2020
|
+
disabled: D.value[n],
|
|
2021
|
+
roved: n === O.value,
|
|
2022
|
+
listed: v.value,
|
|
2023
|
+
share: e.orientation === "vertical" ? {} : _.value.segment,
|
|
2024
|
+
squeezed: p.value?.fit === "squeezed",
|
|
2025
|
+
cut: !!p.value?.cut[n],
|
|
2006
2026
|
orientation: e.orientation,
|
|
2007
2027
|
size: e.size,
|
|
2008
2028
|
variant: e.variant,
|
|
2009
2029
|
"equal-width": e.equalWidth,
|
|
2010
2030
|
"button-height": e.buttonHeight,
|
|
2011
|
-
"pairs-on-phone": e.pairsOnPhone,
|
|
2012
2031
|
hue: e.hue,
|
|
2013
2032
|
"hue-offset": e.hueOffset,
|
|
2014
2033
|
"panel-id": e.panelId,
|
|
2015
|
-
onSelect: (e) =>
|
|
2034
|
+
onSelect: (e) => A(t.id)
|
|
2016
2035
|
}, null, 8, [
|
|
2017
2036
|
"item",
|
|
2018
2037
|
"index",
|
|
@@ -2020,21 +2039,38 @@ var mn = {
|
|
|
2020
2039
|
"on",
|
|
2021
2040
|
"disabled",
|
|
2022
2041
|
"roved",
|
|
2042
|
+
"listed",
|
|
2023
2043
|
"share",
|
|
2024
2044
|
"squeezed",
|
|
2045
|
+
"cut",
|
|
2025
2046
|
"orientation",
|
|
2026
2047
|
"size",
|
|
2027
2048
|
"variant",
|
|
2028
2049
|
"equal-width",
|
|
2029
2050
|
"button-height",
|
|
2030
|
-
"pairs-on-phone",
|
|
2031
2051
|
"hue",
|
|
2032
2052
|
"hue-offset",
|
|
2033
2053
|
"panel-id",
|
|
2034
2054
|
"onSelect"
|
|
2035
|
-
]))), 128))
|
|
2055
|
+
]))), 128)), v.value ? (L(), T("div", ci, [k(r, {
|
|
2056
|
+
"model-value": te.value,
|
|
2057
|
+
label: W(s) ?? "",
|
|
2058
|
+
"hide-label": "",
|
|
2059
|
+
wrap: "",
|
|
2060
|
+
width: "fill",
|
|
2061
|
+
size: e.size === "sm" ? "row" : "field",
|
|
2062
|
+
options: ee.value,
|
|
2063
|
+
disabled: D.value.every(Boolean),
|
|
2064
|
+
"onUpdate:modelValue": ne
|
|
2065
|
+
}, null, 8, [
|
|
2066
|
+
"model-value",
|
|
2067
|
+
"label",
|
|
2068
|
+
"size",
|
|
2069
|
+
"options",
|
|
2070
|
+
"disabled"
|
|
2071
|
+
])])) : w("", !0)], 46, si));
|
|
2036
2072
|
}
|
|
2037
|
-
}),
|
|
2073
|
+
}), ui = { class: "glim-sr-only" }, di = /* @__PURE__ */ A({
|
|
2038
2074
|
inheritAttrs: !1,
|
|
2039
2075
|
__name: "SidebarRowLink",
|
|
2040
2076
|
props: {
|
|
@@ -2046,30 +2082,30 @@ var mn = {
|
|
|
2046
2082
|
active: { type: Boolean },
|
|
2047
2083
|
count: {}
|
|
2048
2084
|
},
|
|
2049
|
-
setup(
|
|
2050
|
-
let r =
|
|
2085
|
+
setup(t) {
|
|
2086
|
+
let r = t, i = e(() => r.view.tip);
|
|
2051
2087
|
function a(e) {
|
|
2052
2088
|
i.trigger.value = e;
|
|
2053
2089
|
}
|
|
2054
|
-
return (
|
|
2090
|
+
return (e, r) => (L(), T(b, null, [(L(), C(V(t.href ? "a" : "button"), M(e.$attrs, {
|
|
2055
2091
|
ref: a,
|
|
2056
|
-
href:
|
|
2057
|
-
type:
|
|
2058
|
-
"aria-current":
|
|
2092
|
+
href: t.href,
|
|
2093
|
+
type: t.href ? void 0 : "button",
|
|
2094
|
+
"aria-current": t.active ? "page" : void 0,
|
|
2059
2095
|
"aria-describedby": W(i).describedBy.value,
|
|
2060
|
-
class:
|
|
2096
|
+
class: t.className,
|
|
2061
2097
|
onMouseenter: W(i).show,
|
|
2062
2098
|
onMouseleave: W(i).hide,
|
|
2063
2099
|
onFocus: W(i).showOnFocus,
|
|
2064
2100
|
onBlur: W(i).hide
|
|
2065
2101
|
}), {
|
|
2066
2102
|
default: q(() => [
|
|
2067
|
-
|
|
2068
|
-
E("span", { class: N(
|
|
2069
|
-
|
|
2070
|
-
class: N(
|
|
2103
|
+
t.view.showGlyph && t.glyph ? (L(), C(V(t.glyph), { key: 0 })) : w("", !0),
|
|
2104
|
+
E("span", { class: N(t.view.labelClass) }, U(t.label), 3),
|
|
2105
|
+
t.view.countClass && t.count ? (L(), T(b, { key: 1 }, [E("span", {
|
|
2106
|
+
class: N(t.view.countClass),
|
|
2071
2107
|
"aria-hidden": "true"
|
|
2072
|
-
}, U(
|
|
2108
|
+
}, U(t.count.value), 3), E("span", ui, U(t.count.label), 1)], 64)) : w("", !0)
|
|
2073
2109
|
]),
|
|
2074
2110
|
_: 1
|
|
2075
2111
|
}, 16, [
|
|
@@ -2082,15 +2118,15 @@ var mn = {
|
|
|
2082
2118
|
"onMouseleave",
|
|
2083
2119
|
"onFocus",
|
|
2084
2120
|
"onBlur"
|
|
2085
|
-
])), k(
|
|
2121
|
+
])), k(n, { state: W(i) }, null, 8, ["state"])], 64));
|
|
2086
2122
|
}
|
|
2087
|
-
}),
|
|
2123
|
+
}), fi = {
|
|
2088
2124
|
key: 0,
|
|
2089
2125
|
class: "glim-nav-row-slot"
|
|
2090
|
-
},
|
|
2126
|
+
}, pi = {
|
|
2091
2127
|
key: 1,
|
|
2092
2128
|
class: "glim-nav-row-slot"
|
|
2093
|
-
},
|
|
2129
|
+
}, mi = /* @__PURE__ */ A({
|
|
2094
2130
|
inheritAttrs: !1,
|
|
2095
2131
|
__name: "SidebarRow",
|
|
2096
2132
|
props: {
|
|
@@ -2106,7 +2142,7 @@ var mn = {
|
|
|
2106
2142
|
depth: {}
|
|
2107
2143
|
},
|
|
2108
2144
|
setup(e) {
|
|
2109
|
-
let t = e, n = sn("sidebar"), r =
|
|
2145
|
+
let t = e, n = sn("sidebar"), r = de(), i = S(() => Nt({
|
|
2110
2146
|
mode: n.value,
|
|
2111
2147
|
label: t.label,
|
|
2112
2148
|
hasGlyph: !!t.glyph,
|
|
@@ -2132,15 +2168,15 @@ var mn = {
|
|
|
2132
2168
|
]),
|
|
2133
2169
|
style: P([i.value.style, e.$attrs.style])
|
|
2134
2170
|
}, [
|
|
2135
|
-
e.$slots.before ? (L(), T("span",
|
|
2136
|
-
k(
|
|
2171
|
+
e.$slots.before ? (L(), T("span", fi, [B(e.$slots, "before")])) : w("", !0),
|
|
2172
|
+
k(di, M({
|
|
2137
2173
|
...e.$attrs,
|
|
2138
2174
|
...a.value,
|
|
2139
2175
|
class: void 0,
|
|
2140
2176
|
style: void 0
|
|
2141
2177
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
2142
|
-
e.$slots.after ? (L(), T("span",
|
|
2143
|
-
], 6)) : (L(), C(
|
|
2178
|
+
e.$slots.after ? (L(), T("span", pi, [B(e.$slots, "after")])) : w("", !0)
|
|
2179
|
+
], 6)) : (L(), C(di, M({ key: 1 }, {
|
|
2144
2180
|
...e.$attrs,
|
|
2145
2181
|
...a.value,
|
|
2146
2182
|
class: void 0
|
|
@@ -2154,7 +2190,7 @@ var mn = {
|
|
|
2154
2190
|
"style"
|
|
2155
2191
|
]));
|
|
2156
2192
|
}
|
|
2157
|
-
}),
|
|
2193
|
+
}), hi = { class: "glim-signin-field" }, gi = ["for"], _i = /* @__PURE__ */ A({
|
|
2158
2194
|
__name: "SignInField",
|
|
2159
2195
|
props: {
|
|
2160
2196
|
label: {},
|
|
@@ -2162,15 +2198,15 @@ var mn = {
|
|
|
2162
2198
|
hint: {}
|
|
2163
2199
|
},
|
|
2164
2200
|
setup(e) {
|
|
2165
|
-
return (t, n) => (L(), T("div",
|
|
2201
|
+
return (t, n) => (L(), T("div", hi, [E("label", {
|
|
2166
2202
|
for: t.$props.for,
|
|
2167
2203
|
class: "glim-signin-label"
|
|
2168
2204
|
}, [O(U(e.label), 1), e.hint ? (L(), C(Q, {
|
|
2169
2205
|
key: 0,
|
|
2170
2206
|
tip: e.hint
|
|
2171
|
-
}, null, 8, ["tip"])) : w("", !0)], 8,
|
|
2207
|
+
}, null, 8, ["tip"])) : w("", !0)], 8, gi), B(t.$slots, "default")]));
|
|
2172
2208
|
}
|
|
2173
|
-
}),
|
|
2209
|
+
}), vi = ["aria-label"], yi = /* @__PURE__ */ A({
|
|
2174
2210
|
__name: "TextField",
|
|
2175
2211
|
props: /*@__PURE__*/ j({
|
|
2176
2212
|
label: {},
|
|
@@ -2182,7 +2218,7 @@ var mn = {
|
|
|
2182
2218
|
}),
|
|
2183
2219
|
emits: ["update:modelValue"],
|
|
2184
2220
|
setup(e, { expose: t }) {
|
|
2185
|
-
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() =>
|
|
2221
|
+
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() => Wt({
|
|
2186
2222
|
width: n.width,
|
|
2187
2223
|
mono: n.mono
|
|
2188
2224
|
})), o = H(null);
|
|
@@ -2193,25 +2229,25 @@ var mn = {
|
|
|
2193
2229
|
type: "text",
|
|
2194
2230
|
"aria-label": W(i),
|
|
2195
2231
|
class: N(a.value)
|
|
2196
|
-
}, null, 10,
|
|
2232
|
+
}, null, 10, vi)), [[pe, r.value]]);
|
|
2197
2233
|
}
|
|
2198
|
-
}),
|
|
2234
|
+
}), bi = { class: "glim-signin" }, xi = { class: "glim-signin-head" }, Si = {
|
|
2199
2235
|
key: 0,
|
|
2200
2236
|
class: "glim-signin-logo",
|
|
2201
2237
|
"aria-hidden": "true"
|
|
2202
|
-
},
|
|
2238
|
+
}, Ci = ["src"], wi = { class: "glim-signin-name" }, Ti = {
|
|
2203
2239
|
key: 0,
|
|
2204
2240
|
class: "glim-signin-error",
|
|
2205
2241
|
role: "alert"
|
|
2206
|
-
},
|
|
2242
|
+
}, Ei = {
|
|
2207
2243
|
key: 0,
|
|
2208
2244
|
class: "glim-signin-note",
|
|
2209
2245
|
role: "status"
|
|
2210
|
-
},
|
|
2246
|
+
}, Di = { class: "glim-signin-hint" }, Oi = {
|
|
2211
2247
|
key: 3,
|
|
2212
2248
|
class: "glim-signin-error",
|
|
2213
2249
|
role: "alert"
|
|
2214
|
-
},
|
|
2250
|
+
}, ki = /* @__PURE__ */ A({
|
|
2215
2251
|
__name: "SignInCard",
|
|
2216
2252
|
props: {
|
|
2217
2253
|
logo: {},
|
|
@@ -2239,9 +2275,9 @@ var mn = {
|
|
|
2239
2275
|
onSetPassword: {}
|
|
2240
2276
|
},
|
|
2241
2277
|
setup(e) {
|
|
2242
|
-
let t = e, n =
|
|
2243
|
-
|
|
2244
|
-
let o =
|
|
2278
|
+
let t = e, n = de(), r = ze(() => t), i = H(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
2279
|
+
ie(a);
|
|
2280
|
+
let o = ue(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = S(() => ({
|
|
2245
2281
|
signIn: "signIn",
|
|
2246
2282
|
passkey: "signInWithPasskey",
|
|
2247
2283
|
forgot: "forgotPassword",
|
|
@@ -2253,32 +2289,32 @@ var mn = {
|
|
|
2253
2289
|
hide: t.text.hide
|
|
2254
2290
|
})), u = H(null), d = "";
|
|
2255
2291
|
function f() {
|
|
2256
|
-
let e = n.step ? "step" :
|
|
2292
|
+
let e = n.step ? "step" : Ft(i.value);
|
|
2257
2293
|
e !== d && ((d || t.autoFocus) && He(u.value), d = e);
|
|
2258
2294
|
}
|
|
2259
|
-
return F(f),
|
|
2295
|
+
return F(f), oe(f), K(() => i.value.refusal?.count, (e, t, n) => {
|
|
2260
2296
|
let r = i.value.refusal;
|
|
2261
|
-
r && n(
|
|
2262
|
-
}, { flush: "post" }), (t, n) => (L(), T("div",
|
|
2297
|
+
r && n(Mt(u.value, r));
|
|
2298
|
+
}, { flush: "post" }), (t, n) => (L(), T("div", bi, [E("div", {
|
|
2263
2299
|
ref_key: "card",
|
|
2264
2300
|
ref: u,
|
|
2265
2301
|
class: "glim-card glim-signin-card"
|
|
2266
|
-
}, [E("div",
|
|
2302
|
+
}, [E("div", xi, [e.logo || t.$slots.logo ? (L(), T("span", Si, [B(t.$slots, "logo", {}, () => [E("img", {
|
|
2267
2303
|
src: e.logo,
|
|
2268
2304
|
alt: "",
|
|
2269
2305
|
draggable: "false"
|
|
2270
|
-
}, null, 8,
|
|
2306
|
+
}, null, 8, Ci)])])) : w("", !0), E("h1", wi, U(e.appName), 1)]), t.$slots.step ? B(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (L(), T("form", {
|
|
2271
2307
|
key: 1,
|
|
2272
2308
|
class: "glim-signin-form",
|
|
2273
2309
|
novalidate: "",
|
|
2274
2310
|
onSubmit: n[4] ||= Y((e) => W(r).submit(), ["prevent"])
|
|
2275
2311
|
}, [
|
|
2276
|
-
k(
|
|
2312
|
+
k(_i, {
|
|
2277
2313
|
label: e.text.resetCode,
|
|
2278
2314
|
for: s("reset-code"),
|
|
2279
2315
|
hint: e.text.resetCodeTip
|
|
2280
2316
|
}, {
|
|
2281
|
-
default: q(() => [k(
|
|
2317
|
+
default: q(() => [k(yi, {
|
|
2282
2318
|
id: s("reset-code"),
|
|
2283
2319
|
"data-signin-field": "resetCode",
|
|
2284
2320
|
class: "glim-signin-log-code",
|
|
@@ -2295,7 +2331,7 @@ var mn = {
|
|
|
2295
2331
|
"for",
|
|
2296
2332
|
"hint"
|
|
2297
2333
|
]),
|
|
2298
|
-
k(
|
|
2334
|
+
k(_i, {
|
|
2299
2335
|
label: e.text.newPassword,
|
|
2300
2336
|
for: s("new")
|
|
2301
2337
|
}, {
|
|
@@ -2313,7 +2349,7 @@ var mn = {
|
|
|
2313
2349
|
])]),
|
|
2314
2350
|
_: 1
|
|
2315
2351
|
}, 8, ["label", "for"]),
|
|
2316
|
-
k(
|
|
2352
|
+
k(_i, {
|
|
2317
2353
|
label: e.text.confirmPassword,
|
|
2318
2354
|
for: s("confirm")
|
|
2319
2355
|
}, {
|
|
@@ -2331,14 +2367,14 @@ var mn = {
|
|
|
2331
2367
|
])]),
|
|
2332
2368
|
_: 1
|
|
2333
2369
|
}, 8, ["label", "for"]),
|
|
2334
|
-
i.value.error ? (L(), T("p",
|
|
2370
|
+
i.value.error ? (L(), T("p", Ti, U(i.value.error), 1)) : w("", !0),
|
|
2335
2371
|
k(Z, {
|
|
2336
2372
|
label: e.text.setPassword,
|
|
2337
2373
|
"label-key": c.value.setPassword,
|
|
2338
2374
|
tone: "accent",
|
|
2339
2375
|
type: "submit",
|
|
2340
2376
|
"data-signin": "set-password",
|
|
2341
|
-
disabled: W(
|
|
2377
|
+
disabled: W(yt)(i.value),
|
|
2342
2378
|
busy: i.value.busy === "setPassword",
|
|
2343
2379
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
2344
2380
|
}, null, 8, [
|
|
@@ -2366,9 +2402,9 @@ var mn = {
|
|
|
2366
2402
|
novalidate: "",
|
|
2367
2403
|
onSubmit: n[10] ||= Y((e) => W(r).submit(), ["prevent"])
|
|
2368
2404
|
}, [
|
|
2369
|
-
e.note ? (L(), T("p",
|
|
2405
|
+
e.note ? (L(), T("p", Ei, U(e.note), 1)) : w("", !0),
|
|
2370
2406
|
i.value.viaPasskey ? w("", !0) : B(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
2371
|
-
J(k(
|
|
2407
|
+
J(k(_i, {
|
|
2372
2408
|
label: e.text.password,
|
|
2373
2409
|
for: s("password")
|
|
2374
2410
|
}, {
|
|
@@ -2385,13 +2421,13 @@ var mn = {
|
|
|
2385
2421
|
"text"
|
|
2386
2422
|
])]),
|
|
2387
2423
|
_: 1
|
|
2388
|
-
}, 8, ["label", "for"]), [[
|
|
2389
|
-
i.value.needCode ? (L(), C(
|
|
2424
|
+
}, 8, ["label", "for"]), [[me, !i.value.viaPasskey]]),
|
|
2425
|
+
i.value.needCode ? (L(), C(_i, {
|
|
2390
2426
|
key: 2,
|
|
2391
2427
|
label: e.text.code,
|
|
2392
2428
|
for: s("code")
|
|
2393
2429
|
}, {
|
|
2394
|
-
default: q(() => [k(
|
|
2430
|
+
default: q(() => [k(yi, {
|
|
2395
2431
|
id: s("code"),
|
|
2396
2432
|
"data-signin-field": "code",
|
|
2397
2433
|
class: "glim-signin-code",
|
|
@@ -2401,17 +2437,17 @@ var mn = {
|
|
|
2401
2437
|
spellcheck: "false",
|
|
2402
2438
|
placeholder: "000000",
|
|
2403
2439
|
"onUpdate:modelValue": n[6] ||= (e) => W(r).set("code", e)
|
|
2404
|
-
}, null, 8, ["id", "model-value"]), E("p",
|
|
2440
|
+
}, null, 8, ["id", "model-value"]), E("p", Di, U(e.text.codeHint), 1)]),
|
|
2405
2441
|
_: 1
|
|
2406
2442
|
}, 8, ["label", "for"])) : w("", !0),
|
|
2407
|
-
i.value.error ? (L(), T("p",
|
|
2443
|
+
i.value.error ? (L(), T("p", Oi, U(i.value.error), 1)) : w("", !0),
|
|
2408
2444
|
k(Z, {
|
|
2409
2445
|
label: e.text.signIn,
|
|
2410
2446
|
"label-key": c.value.signIn,
|
|
2411
2447
|
tone: "accent",
|
|
2412
2448
|
type: "submit",
|
|
2413
2449
|
"data-signin": "submit",
|
|
2414
|
-
disabled: W(
|
|
2450
|
+
disabled: W(Pt)(i.value),
|
|
2415
2451
|
busy: i.value.busy === "signIn",
|
|
2416
2452
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
2417
2453
|
}, null, 8, [
|
|
@@ -2465,26 +2501,26 @@ var mn = {
|
|
|
2465
2501
|
])) : w("", !0)
|
|
2466
2502
|
], 32))], 512)]));
|
|
2467
2503
|
}
|
|
2468
|
-
}),
|
|
2504
|
+
}), Ai = ["aria-labelledby"], ji = {
|
|
2469
2505
|
key: 0,
|
|
2470
2506
|
class: "glim-subcard-title"
|
|
2471
|
-
},
|
|
2507
|
+
}, Mi = ["id"], Ni = /* @__PURE__ */ A({
|
|
2472
2508
|
__name: "SubCard",
|
|
2473
2509
|
props: {
|
|
2474
2510
|
title: {},
|
|
2475
2511
|
hint: {}
|
|
2476
2512
|
},
|
|
2477
2513
|
setup(e) {
|
|
2478
|
-
let t =
|
|
2514
|
+
let t = ue();
|
|
2479
2515
|
return (n, r) => (L(), T("section", {
|
|
2480
2516
|
class: "glim-subcard",
|
|
2481
2517
|
"aria-labelledby": e.title ? W(t) : void 0
|
|
2482
|
-
}, [e.title ? (L(), T("h3",
|
|
2518
|
+
}, [e.title ? (L(), T("h3", ji, [E("span", { id: W(t) }, U(e.title), 9, Mi), e.hint ? (L(), C(Q, {
|
|
2483
2519
|
key: 0,
|
|
2484
2520
|
tip: e.hint
|
|
2485
|
-
}, null, 8, ["tip"])) : w("", !0)])) : w("", !0), B(n.$slots, "default")], 8,
|
|
2521
|
+
}, null, 8, ["tip"])) : w("", !0)])) : w("", !0), B(n.$slots, "default")], 8, Ai));
|
|
2486
2522
|
}
|
|
2487
|
-
}),
|
|
2523
|
+
}), Pi = ["aria-label"], Fi = { key: 0 }, Ii = { key: 0 }, Li = ["colspan"], Ri = /* @__PURE__ */ A({
|
|
2488
2524
|
__name: "Table",
|
|
2489
2525
|
props: {
|
|
2490
2526
|
label: {},
|
|
@@ -2497,23 +2533,23 @@ var mn = {
|
|
|
2497
2533
|
return (t, i) => (L(), T("table", {
|
|
2498
2534
|
class: "glim-table",
|
|
2499
2535
|
"aria-label": e.label
|
|
2500
|
-
}, [n.value ? (L(), T("thead",
|
|
2536
|
+
}, [n.value ? (L(), T("thead", Fi, [E("tr", null, [(L(!0), T(b, null, z(e.columns, (e) => (L(), T("th", {
|
|
2501
2537
|
key: e.key,
|
|
2502
2538
|
scope: "col",
|
|
2503
2539
|
class: N({ "glim-table-end": e.end })
|
|
2504
2540
|
}, U(e.label), 3))), 128))])])) : w("", !0), E("tbody", null, [(L(!0), T(b, null, z(e.rows, (n, i) => (L(), T("tr", { key: i }, [(L(!0), T(b, null, z(e.columns, (e) => (L(), T("td", {
|
|
2505
2541
|
key: e.key,
|
|
2506
|
-
class: N(W(
|
|
2542
|
+
class: N(W(Ht)(e))
|
|
2507
2543
|
}, [B(t.$slots, "cell", {
|
|
2508
2544
|
row: n,
|
|
2509
2545
|
column: e,
|
|
2510
2546
|
value: r(n, e)
|
|
2511
|
-
}, () => [O(U(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (L(), T("tr",
|
|
2547
|
+
}, () => [O(U(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (L(), T("tr", Ii, [E("td", {
|
|
2512
2548
|
colspan: e.columns.length,
|
|
2513
2549
|
class: "glim-table-muted"
|
|
2514
|
-
}, U(e.more), 9,
|
|
2550
|
+
}, U(e.more), 9, Li)])) : w("", !0)])], 8, Pi));
|
|
2515
2551
|
}
|
|
2516
|
-
}),
|
|
2552
|
+
}), zi = ["aria-label"], Bi = /* @__PURE__ */ A({
|
|
2517
2553
|
__name: "TextArea",
|
|
2518
2554
|
props: /*@__PURE__*/ j({
|
|
2519
2555
|
label: {},
|
|
@@ -2525,7 +2561,7 @@ var mn = {
|
|
|
2525
2561
|
}),
|
|
2526
2562
|
emits: ["update:modelValue"],
|
|
2527
2563
|
setup(e, { expose: t }) {
|
|
2528
|
-
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() =>
|
|
2564
|
+
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() => Wt({
|
|
2529
2565
|
width: n.width,
|
|
2530
2566
|
mono: n.mono,
|
|
2531
2567
|
area: !0
|
|
@@ -2536,16 +2572,16 @@ var mn = {
|
|
|
2536
2572
|
"onUpdate:modelValue": t[0] ||= (e) => r.value = e,
|
|
2537
2573
|
"aria-label": W(i),
|
|
2538
2574
|
class: N(a.value)
|
|
2539
|
-
}, null, 10,
|
|
2575
|
+
}, null, 10, zi)), [[pe, r.value]]);
|
|
2540
2576
|
}
|
|
2541
|
-
}),
|
|
2577
|
+
}), Vi = { class: "glim-toast-stack" }, Hi = [
|
|
2542
2578
|
"role",
|
|
2543
2579
|
"onMouseenter",
|
|
2544
2580
|
"onMouseleave",
|
|
2545
2581
|
"onFocusin",
|
|
2546
2582
|
"onFocusout",
|
|
2547
2583
|
"onKeydown"
|
|
2548
|
-
],
|
|
2584
|
+
], Ui = { class: "glim-toast-body" }, Wi = { class: "glim-toast-message" }, Gi = { key: 0 }, Ki = ["aria-label", "onClick"], qi = /* @__PURE__ */ A({
|
|
2549
2585
|
__name: "ToastViewport",
|
|
2550
2586
|
props: {
|
|
2551
2587
|
toasts: {},
|
|
@@ -2563,7 +2599,7 @@ var mn = {
|
|
|
2563
2599
|
function i(e, t) {
|
|
2564
2600
|
t.onClick(), n("dismiss", e);
|
|
2565
2601
|
}
|
|
2566
|
-
return (t, a) => (L(), T("div",
|
|
2602
|
+
return (t, a) => (L(), T("div", Vi, [(L(!0), T(b, null, z(e.toasts, (t) => (L(), T("div", {
|
|
2567
2603
|
key: t.id,
|
|
2568
2604
|
role: r(t.severity),
|
|
2569
2605
|
class: "glim-toast glim-toast-card",
|
|
@@ -2571,13 +2607,13 @@ var mn = {
|
|
|
2571
2607
|
onMouseleave: (e) => n("leave", t.id),
|
|
2572
2608
|
onFocusin: (e) => n("focusin", t.id),
|
|
2573
2609
|
onFocusout: (e) => n("focusout", t.id),
|
|
2574
|
-
onKeydown:
|
|
2610
|
+
onKeydown: ge(Y((e) => n("dismiss", t.id), ["stop"]), ["esc"])
|
|
2575
2611
|
}, [
|
|
2576
|
-
k(W(
|
|
2612
|
+
k(W(m), {
|
|
2577
2613
|
mark: W(Te)[t.severity],
|
|
2578
2614
|
class: N(`glim-toast-glyph glim-toast-glyph--${t.severity}`)
|
|
2579
2615
|
}, null, 8, ["mark", "class"]),
|
|
2580
|
-
E("div",
|
|
2616
|
+
E("div", Ui, [E("p", Wi, [(L(!0), T(b, null, z(W(It)(t.message), (e, t) => (L(), T(b, { key: t }, [t > 0 ? (L(), T("wbr", Gi)) : w("", !0), O(U(e), 1)], 64))), 128))]), t.action ? (L(), C(Z, {
|
|
2581
2617
|
key: 0,
|
|
2582
2618
|
class: "glim-toast-action",
|
|
2583
2619
|
tone: "subtle",
|
|
@@ -2590,19 +2626,19 @@ var mn = {
|
|
|
2590
2626
|
"aria-label": e.dismissLabel,
|
|
2591
2627
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
2592
2628
|
onClick: (e) => n("dismiss", t.id)
|
|
2593
|
-
}, [k(W(
|
|
2594
|
-
], 40,
|
|
2629
|
+
}, [k(W(m), { mark: W(Ce).dismiss }, null, 8, ["mark"])], 8, Ki)
|
|
2630
|
+
], 40, Hi))), 128))]));
|
|
2595
2631
|
}
|
|
2596
|
-
}),
|
|
2632
|
+
}), Ji = {
|
|
2597
2633
|
key: 0,
|
|
2598
2634
|
class: "glim-toggle-label"
|
|
2599
|
-
},
|
|
2635
|
+
}, Yi = [
|
|
2600
2636
|
"aria-checked",
|
|
2601
2637
|
"aria-label",
|
|
2602
2638
|
"aria-disabled",
|
|
2603
2639
|
"aria-describedby",
|
|
2604
2640
|
"disabled"
|
|
2605
|
-
],
|
|
2641
|
+
], Xi = ["id"], Zi = /* @__PURE__ */ A({
|
|
2606
2642
|
inheritAttrs: !1,
|
|
2607
2643
|
__name: "Toggle",
|
|
2608
2644
|
props: /*@__PURE__*/ j({
|
|
@@ -2624,20 +2660,20 @@ var mn = {
|
|
|
2624
2660
|
modelModifiers: {}
|
|
2625
2661
|
}),
|
|
2626
2662
|
emits: ["update:modelValue"],
|
|
2627
|
-
setup(
|
|
2628
|
-
let r =
|
|
2663
|
+
setup(t) {
|
|
2664
|
+
let r = t, i = G(t, "modelValue"), a = y(() => r.label), o = S(() => r.label !== void 0 && !r.hideLabel), s = e(() => r.refused), c = ue(), l = H(null), u;
|
|
2629
2665
|
I(() => u?.());
|
|
2630
2666
|
function d() {
|
|
2631
|
-
r.refused ? (u?.(), u =
|
|
2667
|
+
r.refused ? (u?.(), u = jt(l.value)) : i.value = !i.value;
|
|
2632
2668
|
}
|
|
2633
|
-
return (
|
|
2669
|
+
return (e, r) => (L(), T(b, null, [
|
|
2634
2670
|
E("span", {
|
|
2635
2671
|
ref_key: "frame",
|
|
2636
2672
|
ref: l,
|
|
2637
|
-
class: N(["glim-toggle",
|
|
2638
|
-
style: P(
|
|
2639
|
-
}, [o.value ? (L(), T("span",
|
|
2640
|
-
...
|
|
2673
|
+
class: N(["glim-toggle", e.$attrs.class]),
|
|
2674
|
+
style: P(e.$attrs.style)
|
|
2675
|
+
}, [o.value ? (L(), T("span", Ji, U(t.label), 1)) : w("", !0), E("button", M({
|
|
2676
|
+
...e.$attrs,
|
|
2641
2677
|
class: void 0,
|
|
2642
2678
|
style: void 0
|
|
2643
2679
|
}, {
|
|
@@ -2646,25 +2682,25 @@ var mn = {
|
|
|
2646
2682
|
role: "switch",
|
|
2647
2683
|
"aria-checked": i.value,
|
|
2648
2684
|
"aria-label": W(a),
|
|
2649
|
-
"aria-disabled":
|
|
2650
|
-
"aria-describedby":
|
|
2651
|
-
disabled:
|
|
2685
|
+
"aria-disabled": t.refused ? !0 : void 0,
|
|
2686
|
+
"aria-describedby": t.refused ? W(c) : e.$attrs["aria-describedby"],
|
|
2687
|
+
disabled: t.disabled,
|
|
2652
2688
|
class: "glim-toggle-track",
|
|
2653
2689
|
onClick: d,
|
|
2654
2690
|
onMouseenter: r[0] ||= (...e) => W(s).show && W(s).show(...e),
|
|
2655
2691
|
onMouseleave: r[1] ||= (...e) => W(s).hide && W(s).hide(...e),
|
|
2656
2692
|
onFocus: r[2] ||= (...e) => W(s).showOnFocus && W(s).showOnFocus(...e),
|
|
2657
2693
|
onBlur: r[3] ||= (...e) => W(s).hide && W(s).hide(...e)
|
|
2658
|
-
}), [...r[4] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2659
|
-
|
|
2694
|
+
}), [...r[4] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, Yi)], 6),
|
|
2695
|
+
t.refused ? (L(), T("span", {
|
|
2660
2696
|
key: 0,
|
|
2661
2697
|
id: W(c),
|
|
2662
2698
|
class: "glim-toggle-refusal"
|
|
2663
|
-
}, U(
|
|
2664
|
-
k(
|
|
2699
|
+
}, U(t.refused), 9, Xi)) : w("", !0),
|
|
2700
|
+
k(n, { state: W(s) }, null, 8, ["state"])
|
|
2665
2701
|
], 64));
|
|
2666
2702
|
}
|
|
2667
|
-
}),
|
|
2703
|
+
}), Qi = ["aria-label"], $i = [
|
|
2668
2704
|
"aria-level",
|
|
2669
2705
|
"aria-posinset",
|
|
2670
2706
|
"aria-setsize",
|
|
@@ -2675,11 +2711,11 @@ var mn = {
|
|
|
2675
2711
|
"onClick",
|
|
2676
2712
|
"onDblclick",
|
|
2677
2713
|
"onKeydown"
|
|
2678
|
-
],
|
|
2714
|
+
], ea = ["onClick"], ta = {
|
|
2679
2715
|
key: 0,
|
|
2680
2716
|
class: "glim-tree-glyph",
|
|
2681
2717
|
"aria-hidden": "true"
|
|
2682
|
-
},
|
|
2718
|
+
}, na = { class: "glim-tree-label" }, ra = /* @__PURE__ */ A({
|
|
2683
2719
|
__name: "Tree",
|
|
2684
2720
|
props: /*@__PURE__*/ j({
|
|
2685
2721
|
label: {},
|
|
@@ -2692,12 +2728,12 @@ var mn = {
|
|
|
2692
2728
|
}),
|
|
2693
2729
|
emits: /*@__PURE__*/ j(["activate"], ["update:modelValue", "update:open"]),
|
|
2694
2730
|
setup(e, { emit: t }) {
|
|
2695
|
-
let n = e,
|
|
2731
|
+
let n = e, r = G(e, "modelValue"), a = G(e, "open"), o = t, s = ce(/* @__PURE__ */ new Map()), c = /* @__PURE__ */ new Set(), l = H(null);
|
|
2696
2732
|
function u(e) {
|
|
2697
2733
|
c.has(e) || (c.add(e), Promise.resolve(n.load(e)).then((t) => s.set(e, t), () => c.delete(e)));
|
|
2698
2734
|
}
|
|
2699
2735
|
K(a, (e) => [null, ...e].forEach(u), { immediate: !0 });
|
|
2700
|
-
let d = S(() =>
|
|
2736
|
+
let d = S(() => Jt(s, a.value)), f = S(() => Math.max(d.value.findIndex((e) => e.node.id === r.value), 0));
|
|
2701
2737
|
function p(e) {
|
|
2702
2738
|
a.value = a.value.includes(e) ? a.value.filter((t) => t !== e) : [...a.value, e];
|
|
2703
2739
|
}
|
|
@@ -2705,11 +2741,11 @@ var mn = {
|
|
|
2705
2741
|
if (e.ctrlKey || e.metaKey || e.altKey) return;
|
|
2706
2742
|
let n = d.value[t].node.id;
|
|
2707
2743
|
if (e.key === " " || e.key === "Enter") {
|
|
2708
|
-
e.preventDefault(),
|
|
2744
|
+
e.preventDefault(), r.value = n, e.key === "Enter" && o("activate", n);
|
|
2709
2745
|
return;
|
|
2710
2746
|
}
|
|
2711
|
-
let
|
|
2712
|
-
|
|
2747
|
+
let i = Yt(d.value, t, e.key, getComputedStyle(l.value).direction === "rtl");
|
|
2748
|
+
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, Ge(l.value, i.focus)) : p("open" in i ? i.open : i.close));
|
|
2713
2749
|
}
|
|
2714
2750
|
return (t, n) => (L(), T("div", {
|
|
2715
2751
|
ref_key: "tree",
|
|
@@ -2724,12 +2760,12 @@ var mn = {
|
|
|
2724
2760
|
"aria-posinset": e.position,
|
|
2725
2761
|
"aria-setsize": e.siblings,
|
|
2726
2762
|
"aria-expanded": e.node.hasChildren ? e.open : void 0,
|
|
2727
|
-
"aria-selected": e.node.id ===
|
|
2763
|
+
"aria-selected": e.node.id === r.value,
|
|
2728
2764
|
tabindex: t === f.value ? 0 : -1,
|
|
2729
2765
|
"data-tree-id": e.node.id,
|
|
2730
2766
|
class: "glim-tree-row",
|
|
2731
2767
|
style: { "--tree-level": e.level - 1 },
|
|
2732
|
-
onClick: (t) =>
|
|
2768
|
+
onClick: (t) => r.value = e.node.id,
|
|
2733
2769
|
onDblclick: (t) => o("activate", e.node.id),
|
|
2734
2770
|
onKeydown: (e) => m(e, t)
|
|
2735
2771
|
}), [
|
|
@@ -2738,31 +2774,31 @@ var mn = {
|
|
|
2738
2774
|
"aria-hidden": "true",
|
|
2739
2775
|
onClick: Y((t) => e.node.hasChildren && p(e.node.id), ["stop"]),
|
|
2740
2776
|
onDblclick: n[0] ||= Y(() => {}, ["stop"])
|
|
2741
|
-
}, [e.node.hasChildren ? (L(), C(W(
|
|
2742
|
-
e.node.glyph ? (L(), T("span",
|
|
2743
|
-
E("span",
|
|
2744
|
-
], 16,
|
|
2777
|
+
}, [e.node.hasChildren ? (L(), C(W(i), { key: 0 })) : w("", !0)], 40, ea),
|
|
2778
|
+
e.node.glyph ? (L(), T("span", ta, [(L(), C(V(e.open && e.node.openGlyph || e.node.glyph)))])) : w("", !0),
|
|
2779
|
+
E("span", na, U(e.node.label), 1)
|
|
2780
|
+
], 16, $i))), 128))], 8, Qi));
|
|
2745
2781
|
}
|
|
2746
|
-
}),
|
|
2782
|
+
}), ia = { class: "glim-notice" }, aa = { class: "glim-notice-title" }, oa = { class: "glim-notice-reason" }, sa = {
|
|
2747
2783
|
key: 0,
|
|
2748
2784
|
class: "glim-notice-action"
|
|
2749
|
-
},
|
|
2785
|
+
}, ca = /* @__PURE__ */ A({
|
|
2750
2786
|
__name: "UnavailableNotice",
|
|
2751
2787
|
props: { title: {} },
|
|
2752
2788
|
setup(e) {
|
|
2753
|
-
return (t, n) => (L(), T("div",
|
|
2754
|
-
E("p",
|
|
2755
|
-
E("p",
|
|
2756
|
-
t.$slots.action ? (L(), T("div",
|
|
2789
|
+
return (t, n) => (L(), T("div", ia, [
|
|
2790
|
+
E("p", aa, U(e.title), 1),
|
|
2791
|
+
E("p", oa, [B(t.$slots, "default")]),
|
|
2792
|
+
t.$slots.action ? (L(), T("div", sa, [B(t.$slots, "action")])) : w("", !0)
|
|
2757
2793
|
]));
|
|
2758
2794
|
}
|
|
2759
|
-
}),
|
|
2795
|
+
}), la = ["aria-labelledby", "aria-label"], ua = ["id"], da = { class: "glim-modal-body glim-window-body" }, fa = {
|
|
2760
2796
|
key: 0,
|
|
2761
2797
|
class: "glim-modal-foot"
|
|
2762
|
-
},
|
|
2798
|
+
}, pa = {
|
|
2763
2799
|
key: 0,
|
|
2764
2800
|
class: "glim-window-start"
|
|
2765
|
-
},
|
|
2801
|
+
}, ma = /* @__PURE__ */ A({
|
|
2766
2802
|
inheritAttrs: !1,
|
|
2767
2803
|
__name: "Window",
|
|
2768
2804
|
props: {
|
|
@@ -2774,24 +2810,24 @@ var mn = {
|
|
|
2774
2810
|
},
|
|
2775
2811
|
emits: ["close"],
|
|
2776
2812
|
setup(e, { expose: t, emit: n }) {
|
|
2777
|
-
let r = e, i = n, a =
|
|
2813
|
+
let r = e, i = n, a = de(), o = H(null), s = ue(), c = Ke(), l = S(() => r.start !== void 0 || !!a.start), u = S(() => en(r.actions, l.value, {
|
|
2778
2814
|
cancel: {
|
|
2779
2815
|
label: r.text.cancel,
|
|
2780
2816
|
labelKey: "common.cancel",
|
|
2781
|
-
glyph:
|
|
2817
|
+
glyph: _,
|
|
2782
2818
|
wayOut: !0
|
|
2783
2819
|
},
|
|
2784
2820
|
close: {
|
|
2785
2821
|
label: r.text.close,
|
|
2786
2822
|
labelKey: "common.close",
|
|
2787
|
-
glyph:
|
|
2823
|
+
glyph: h,
|
|
2788
2824
|
wayOut: !0
|
|
2789
2825
|
}
|
|
2790
2826
|
})), d;
|
|
2791
2827
|
F(() => {
|
|
2792
|
-
d =
|
|
2793
|
-
}),
|
|
2794
|
-
d?.(),
|
|
2828
|
+
d = Lt(() => o.value, () => i("close")), o.value && $t(o.value)?.focus();
|
|
2829
|
+
}), ae(() => {
|
|
2830
|
+
d?.(), bt(c);
|
|
2795
2831
|
}), t({ card: o });
|
|
2796
2832
|
function f(e) {
|
|
2797
2833
|
e.onClick?.() !== !1 && i("close");
|
|
@@ -2826,9 +2862,9 @@ var mn = {
|
|
|
2826
2862
|
}, {
|
|
2827
2863
|
default: q(() => [B(t.$slots, "title", {}, () => [O(U(e.title), 1)])]),
|
|
2828
2864
|
_: 3
|
|
2829
|
-
})], 8,
|
|
2830
|
-
E("div",
|
|
2831
|
-
u.value.length ? (L(), T("div",
|
|
2865
|
+
})], 8, ua),
|
|
2866
|
+
E("div", da, [B(t.$slots, "default")]),
|
|
2867
|
+
u.value.length ? (L(), T("div", fa, [l.value ? (L(), T("span", pa, [B(t.$slots, "start", {}, () => [O(U(e.start), 1)])])) : w("", !0), (L(!0), T(b, null, z(u.value, (e, t) => (L(), C(Z, M({ ref_for: !0 }, e.attrs, {
|
|
2832
2868
|
key: t,
|
|
2833
2869
|
label: e.label,
|
|
2834
2870
|
"label-key": e.labelKey,
|
|
@@ -2844,11 +2880,11 @@ var mn = {
|
|
|
2844
2880
|
"disabled",
|
|
2845
2881
|
"onClick"
|
|
2846
2882
|
]))), 128))])) : w("", !0)
|
|
2847
|
-
], 16,
|
|
2883
|
+
], 16, la)], 32)]));
|
|
2848
2884
|
}
|
|
2849
2885
|
});
|
|
2850
2886
|
// src/confirm.ts
|
|
2851
|
-
function
|
|
2887
|
+
function ha(e) {
|
|
2852
2888
|
let t = H(null), n = H(null), r = null, i = null;
|
|
2853
2889
|
function a(e, n) {
|
|
2854
2890
|
return i = Ke(), new Promise((i) => {
|
|
@@ -2859,17 +2895,17 @@ function ma(e) {
|
|
|
2859
2895
|
});
|
|
2860
2896
|
}
|
|
2861
2897
|
function o(e) {
|
|
2862
|
-
r?.(e), r = null, t.value = null,
|
|
2898
|
+
r?.(e), r = null, t.value = null, bt(i), i = null;
|
|
2863
2899
|
}
|
|
2864
2900
|
let s = () => o(!1);
|
|
2865
2901
|
return K(t, (e, t, r) => {
|
|
2866
|
-
e && r(
|
|
2902
|
+
e && r(qt(() => n.value, s));
|
|
2867
2903
|
}), {
|
|
2868
2904
|
confirm: a,
|
|
2869
2905
|
dismiss: s,
|
|
2870
2906
|
ConfirmHost: A(() => () => {
|
|
2871
2907
|
let r = t.value;
|
|
2872
|
-
return r ?
|
|
2908
|
+
return r ? ne(x, { to: "body" }, [ne(Pn, {
|
|
2873
2909
|
ref: (e) => n.value = e?.card ?? null,
|
|
2874
2910
|
title: e.title,
|
|
2875
2911
|
message: r.message,
|
|
@@ -2879,13 +2915,13 @@ function ma(e) {
|
|
|
2879
2915
|
cancelLabel: e.cancel,
|
|
2880
2916
|
onConfirm: () => o(!0),
|
|
2881
2917
|
onCancel: () => o(!1)
|
|
2882
|
-
}, r.extra ? { extra: () =>
|
|
2918
|
+
}, r.extra ? { extra: () => ne(r.extra) } : void 0)]) : null;
|
|
2883
2919
|
})
|
|
2884
2920
|
};
|
|
2885
2921
|
}
|
|
2886
2922
|
// src/dragArmed.ts
|
|
2887
|
-
function
|
|
2923
|
+
function ga(e, t) {
|
|
2888
2924
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
2889
|
-
|
|
2925
|
+
he(n, { flush: "post" }), oe(n);
|
|
2890
2926
|
}
|
|
2891
|
-
export { rn as Badge, on as BrandMark, Z as Button, vn as Card, Sn as Checkbox, Dn as ColorPicker, Pn as ConfirmDialog, Yn as ContextMenu, Qn as CopyField, nr as EmptyState, or as FieldRow, sr as FieldRowGroup, Se as GLIMSTONE_VERSION, ur as GlyphField, dr as GlyphTile, pr as IconButton,
|
|
2927
|
+
export { rn as Badge, on as BrandMark, Z as Button, vn as Card, Sn as Checkbox, Dn as ColorPicker, Pn as ConfirmDialog, Yn as ContextMenu, Qn as CopyField, nr as EmptyState, or as FieldRow, sr as FieldRowGroup, Se as GLIMSTONE_VERSION, ur as GlyphField, dr as GlyphTile, pr as IconButton, _ as IconCancel, f as IconCheck, h as IconClose, l as IconCopy, i as IconExpand, p as IconEye, g as IconEyeOff, a as IconFolderOpen, u as IconPencil, tn as IconTipButton, v as IconWindowMaximise, o as IconWindowMinimise, s as IconWindowRestore, Cr as InfoAboutCard, Q as InfoBubble, Er as InfoHelpCard, Ir as InfoTile, Fr as InfoVersionCard, In as Kbd, Vr as ListRow, m as MarkSvg, Wr as MenuBar, Kr as Meter, Yr as NumberField, Zr as PasswordField, $r as PathField, rr as Pill, ti as ProgressBar, $ as ReadmeButton, ni as RowMark, li as Selector, mi as SidebarRow, ki as SignInCard, _i as SignInField, Ni as SubCard, Ri as Table, Bi as TextArea, yi as TextField, qi as ToastViewport, Zi as Toggle, ra as Tree, ca as UnavailableNotice, ma as Window, d as glyphFor, Dt as selectorTabId, c as setGlyphResolver, pn as useAccent, ha as useConfirm, ga as useDragArmed, y as useFieldName, ln as useHue, sn as useLabelMode, fn as useMotion, cn as useRainbow, dn as useShape, e as useTipBubble };
|