@glimstone/vue 4.4.0 → 4.4.1
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/Fortress.vue.d.ts +2 -2
- package/dist/index.js +543 -542
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { i as e, n as t, r as n, t as r } from "./Select-D8Kf1NZa.js";
|
|
|
2
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
3
|
import { n as ee, r as y, t as te } from "./fieldName-DBygJJfe.js";
|
|
4
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, nextTick as ie, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as I, onScopeDispose as ae, onUnmounted as oe, onUpdated as se, openBlock as L, provide as ce, ref as R, renderList as z, renderSlot as B, resolveDynamicComponent as V, shallowReactive as le, shallowRef as H, toDisplayString as U, unref as W, useAttrs as ue, useId as G, useModel as K, useSlots as de, vModelDynamic as fe, vModelText as pe, vShow as me, watch as q, watchEffect as he, withCtx as J, withDirectives as ge, withKeys as _e, withModifiers as Y } from "vue";
|
|
5
|
-
import { COLOR_NAMES_DE as ve, COLOR_PICKER_TEXT as ye, COPIED_MS as be, DEFAULT_MOTION as xe, DEFAULT_SHAPE as Se, GLIMSTONE_VERSION as Ce, MARKS as we, PATH_ROOM_PX as Te, TOAST_MARKS as Ee, WIDE_QUERY as De, anchorName as Oe, announce as ke, appCardView as Ae, applyAccent as je, applyMotion as Me, applyRainbow as Ne, applyShape as Pe, ariaSort as Fe, attachNumberSteppers as Ie, badgeClassName as Le, busyRingView as Re, buttonView as ze, claimMenu as Be, closeMenuOutside as Ve, colorPicker as He, columnValues as Ue, copyText as We, countSelector as Ge, createFortressFlow as Ke, createSignInFlow as qe, doubtView as Je, fieldErrorView as Ye, fieldWidthClass as Xe, fill as X, floatColorPicker as Ze, focusFirstField as Qe, focusFirstMenuRow as $e, focusMenuRow as et, focusTreeRow as tt, focusedAsker as nt, getLabelMode as rt, hueVars as it, isMenuHead as at,
|
|
5
|
+
import { COLOR_NAMES_DE as ve, COLOR_PICKER_TEXT as ye, COPIED_MS as be, DEFAULT_MOTION as xe, DEFAULT_SHAPE as Se, GLIMSTONE_VERSION as Ce, MARKS as we, PATH_ROOM_PX as Te, TOAST_MARKS as Ee, WIDE_QUERY as De, anchorName as Oe, announce as ke, appCardView as Ae, applyAccent as je, applyMotion as Me, applyRainbow as Ne, applyShape as Pe, ariaSort as Fe, attachNumberSteppers as Ie, badgeClassName as Le, busyRingView as Re, buttonView as ze, claimMenu as Be, closeMenuOutside as Ve, colorPicker as He, columnValues as Ue, copyText as We, countSelector as Ge, createFortressFlow as Ke, createSignInFlow as qe, doubtView as Je, fieldErrorView as Ye, fieldWidthClass as Xe, fill as X, floatColorPicker as Ze, focusFirstField as Qe, focusFirstMenuRow as $e, focusMenuRow as et, focusTreeRow as tt, focusedAsker as nt, getLabelMode as rt, hueVars as it, isMenuHead as at, joinRefusalText as ot, keepReadmeFit as st, labelInside as ct, labelModeChanged as lt, listKey as ut, listOf as dt, listView as ft, liveRegionAttrs as pt, mailHref as mt, mediaMatches as ht, memberName as gt, menuIsOpen as _t, menuMove as vt, menuRowView as yt, meterView as bt, narrowerThan as xt, nearestColorName as St, nextSort as Ct, normalizeHex as wt, offersMail as Tt, openInBrowser as Et, openInstance as Dt, openPopover as Ot, openSheet as kt, othersLine as At, permissionsWith as jt, phraseReady as Mt, pillClassName as Nt, placeMenu as Pt, placeSubmenu as Ft, portalTarget as It, presenceTone as Lt, pressRowControl as Rt, progressView as zt, qrCode as Bt, rainbowState as Vt, readmePartClass as Ht, readmePartLabel as Ut, readmeSoon as Wt, readmeUnitClass as Gt, resetBlocked as Kt, returnFocus as qt, roveSelector as Jt, rovedIndex as Yt, runUpdateCheck as Xt, segmentView as Zt, selectByClick as Qt, selectorAxis as $t, selectorFlex as en, selectorTabId as tn, selectorTabId as nn, selectorView as rn, setLabelMode as an, shake as on, showRefusal as sn, sidebarRowView as cn, signInBlocked as ln, signInStage as un, skeletonRowView as dn, softBreaks as fn, stackWindow as pn, statusView as mn, storeShowOthers as hn, storedShowOthers as gn, subscribeLabelMode as _n, subscribeMedia as vn, subscribeRainbow as yn, syncNumberSteppers as bn, tableCellClass as xn, takePageHue as Sn, textFieldClass as Cn, tidyMenu as wn, toastPoliteness as Tn, toggleSelection as En, trapDialogKeys as Dn, treeRows as On, treeStep as kn, updateFace as An, updateStage as jn, versionLink as Mn, watchSelectorFit as Nn, windowFocusTarget as Pn, windowFoot as Fn } from "@glimstone/core";
|
|
6
6
|
// src/IconTipButton.vue
|
|
7
|
-
var
|
|
7
|
+
var In = /* @__PURE__ */ A({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "IconTipButton",
|
|
10
10
|
props: {
|
|
@@ -55,7 +55,7 @@ var Fn = /* @__PURE__ */ A({
|
|
|
55
55
|
"hide"
|
|
56
56
|
]), k(n, { state: W(a) }, null, 8, ["state"])], 64));
|
|
57
57
|
}
|
|
58
|
-
}),
|
|
58
|
+
}), Ln = ["disabled"], Z = /* @__PURE__ */ A({
|
|
59
59
|
__name: "Badge",
|
|
60
60
|
props: {
|
|
61
61
|
tone: { default: "neutral" },
|
|
@@ -95,7 +95,7 @@ var Fn = /* @__PURE__ */ A({
|
|
|
95
95
|
action: t.as !== "span"
|
|
96
96
|
})
|
|
97
97
|
].filter(Boolean)), i = S(() => n.value ? it(t.hueIndex) : void 0);
|
|
98
|
-
return (t, n) => e.as === "button" && e.tip !== void 0 ? (L(), C(
|
|
98
|
+
return (t, n) => e.as === "button" && e.tip !== void 0 ? (L(), C(In, {
|
|
99
99
|
key: 0,
|
|
100
100
|
"data-glim": "Badge",
|
|
101
101
|
tip: e.tip,
|
|
@@ -117,7 +117,7 @@ var Fn = /* @__PURE__ */ A({
|
|
|
117
117
|
disabled: e.disabled,
|
|
118
118
|
class: N(r.value),
|
|
119
119
|
style: P(i.value)
|
|
120
|
-
}, [B(t.$slots, "default")], 14,
|
|
120
|
+
}, [B(t.$slots, "default")], 14, Ln)) : e.as === "a" ? (L(), T("a", {
|
|
121
121
|
key: 2,
|
|
122
122
|
"data-glim": "Badge",
|
|
123
123
|
class: N(r.value),
|
|
@@ -129,7 +129,7 @@ var Fn = /* @__PURE__ */ A({
|
|
|
129
129
|
style: P(i.value)
|
|
130
130
|
}, [B(t.$slots, "default")], 6));
|
|
131
131
|
}
|
|
132
|
-
}),
|
|
132
|
+
}), Rn = ["innerHTML"], zn = /* @__PURE__ */ A({
|
|
133
133
|
__name: "BrandMark",
|
|
134
134
|
props: { svg: {} },
|
|
135
135
|
setup(e) {
|
|
@@ -138,65 +138,65 @@ var Fn = /* @__PURE__ */ A({
|
|
|
138
138
|
class: "glim-brand-svg",
|
|
139
139
|
"aria-hidden": "true",
|
|
140
140
|
innerHTML: e.svg
|
|
141
|
-
}, null, 8,
|
|
141
|
+
}, null, 8, Rn));
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
// src/engines.ts
|
|
145
|
-
function
|
|
145
|
+
function Bn(e) {
|
|
146
146
|
let t = H(rt(e));
|
|
147
|
-
return ae(
|
|
147
|
+
return ae(_n(() => t.value = rt(e))), S({
|
|
148
148
|
get: () => t.value,
|
|
149
149
|
set: (t) => {
|
|
150
|
-
|
|
150
|
+
an(e, t), lt();
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
let e = H(
|
|
156
|
-
return ae(
|
|
154
|
+
function Vn() {
|
|
155
|
+
let e = H(Vt());
|
|
156
|
+
return ae(yn(() => e.value = Vt())), S({
|
|
157
157
|
get: () => e.value,
|
|
158
158
|
set: (e) => Ne(e)
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Hn(e) {
|
|
162
162
|
return S(() => {
|
|
163
163
|
let t = e();
|
|
164
164
|
return t === void 0 ? void 0 : it(t);
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Un(e, t) {
|
|
168
168
|
let n = H(t()), r = new MutationObserver(() => n.value = t());
|
|
169
169
|
return r.observe(document.documentElement, {
|
|
170
170
|
attributes: !0,
|
|
171
171
|
attributeFilter: [e]
|
|
172
172
|
}), ae(() => r.disconnect()), n;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
let e =
|
|
174
|
+
function Wn() {
|
|
175
|
+
let e = Un("data-shape", () => document.documentElement.getAttribute("data-shape") ?? Se);
|
|
176
176
|
return S({
|
|
177
177
|
get: () => e.value,
|
|
178
178
|
set: Pe
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
let e =
|
|
181
|
+
function Gn() {
|
|
182
|
+
let e = Un("data-motion", () => document.documentElement.getAttribute("data-motion") ?? xe);
|
|
183
183
|
return S({
|
|
184
184
|
get: () => e.value,
|
|
185
185
|
set: Me
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
let e =
|
|
188
|
+
function Kn() {
|
|
189
|
+
let e = Un("style", () => document.documentElement.style.getPropertyValue("--accent"));
|
|
190
190
|
return S({
|
|
191
191
|
get: () => e.value,
|
|
192
192
|
set: (e) => je(e || void 0)
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
// src/BusyRing.vue?vue&type=script&setup=true&lang.ts
|
|
196
|
-
var
|
|
196
|
+
var qn = ["role", "aria-hidden"], Jn = {
|
|
197
197
|
key: 0,
|
|
198
198
|
class: "glim-sr-only"
|
|
199
|
-
},
|
|
199
|
+
}, Yn = /* @__PURE__ */ A({
|
|
200
200
|
__name: "BusyRing",
|
|
201
201
|
props: {
|
|
202
202
|
size: {},
|
|
@@ -217,10 +217,10 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
217
217
|
}, [
|
|
218
218
|
r[0] ||= E("span", { class: "glim-busy-ring-arc" }, [E("span", { class: "glim-busy-ring-tail" })], -1),
|
|
219
219
|
r[1] ||= E("span", { class: "glim-busy-ring-arc glim-busy-ring-arc--inner" }, [E("span", { class: "glim-busy-ring-tail" })], -1),
|
|
220
|
-
e.label ? (L(), T("span",
|
|
221
|
-
], 14,
|
|
220
|
+
e.label ? (L(), T("span", Jn, U(e.label), 1)) : w("", !0)
|
|
221
|
+
], 14, qn));
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), Xn = {
|
|
224
224
|
key: 0,
|
|
225
225
|
class: "glim-btn-glyph"
|
|
226
226
|
}, Q = /* @__PURE__ */ A({
|
|
@@ -254,11 +254,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
254
254
|
size: {}
|
|
255
255
|
},
|
|
256
256
|
setup(r, { expose: i }) {
|
|
257
|
-
let a = r, o =
|
|
257
|
+
let a = r, o = Bn("buttons"), s = H(!1);
|
|
258
258
|
he((e) => {
|
|
259
259
|
if (a.compactBelow === void 0) return void (s.value = !1);
|
|
260
|
-
let t =
|
|
261
|
-
n(), e(
|
|
260
|
+
let t = xt(a.compactBelow), n = () => s.value = ht(t);
|
|
261
|
+
n(), e(vn(t, n));
|
|
262
262
|
});
|
|
263
263
|
let c = S(() => a.glyph ?? (a.labelKey ? d(a.labelKey) : void 0) ?? (a.variant === "chip" ? h : void 0)), l = S(() => ze({
|
|
264
264
|
mode: o.value,
|
|
@@ -278,10 +278,10 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
278
278
|
p.value = e, f.trigger.value = p.value;
|
|
279
279
|
}
|
|
280
280
|
function g(e) {
|
|
281
|
-
l.value.pageHue &&
|
|
281
|
+
l.value.pageHue && Sn(e.currentTarget), f.show();
|
|
282
282
|
}
|
|
283
283
|
function _(e) {
|
|
284
|
-
l.value.pageHue &&
|
|
284
|
+
l.value.pageHue && Sn(e.currentTarget), f.showOnFocus();
|
|
285
285
|
}
|
|
286
286
|
return i({ el: p }), (e, i) => (L(), T(b, null, [k(W(t), {
|
|
287
287
|
on: r.disabled && !!l.value.tip,
|
|
@@ -304,7 +304,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
304
304
|
}), {
|
|
305
305
|
default: J(() => [
|
|
306
306
|
B(e.$slots, "before"),
|
|
307
|
-
l.value.showGlyph ? (L(), T("span",
|
|
307
|
+
l.value.showGlyph ? (L(), T("span", Xn, [r.busy ? (L(), C(Yn, {
|
|
308
308
|
key: 0,
|
|
309
309
|
size: "small",
|
|
310
310
|
delay: 0
|
|
@@ -331,7 +331,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
331
331
|
"hide"
|
|
332
332
|
]), k(n, { state: W(f) }, null, 8, ["state"])], 64));
|
|
333
333
|
}
|
|
334
|
-
}),
|
|
334
|
+
}), Zn = ["aria-label", "aria-describedby"], $ = /* @__PURE__ */ A({
|
|
335
335
|
__name: "InfoBubble",
|
|
336
336
|
props: {
|
|
337
337
|
tip: {},
|
|
@@ -380,12 +380,12 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
380
380
|
"stroke-width": "1.3",
|
|
381
381
|
"stroke-linecap": "round"
|
|
382
382
|
})
|
|
383
|
-
], -1)]], 42,
|
|
383
|
+
], -1)]], 42, Zn), k(n, { state: W(i) }, null, 8, ["state"])], 64));
|
|
384
384
|
}
|
|
385
|
-
}),
|
|
385
|
+
}), Qn = ["data-glim-title"], $n = {
|
|
386
386
|
key: 0,
|
|
387
387
|
class: "glim-panel-heading"
|
|
388
|
-
},
|
|
388
|
+
}, er = /* @__PURE__ */ A({
|
|
389
389
|
__name: "Card",
|
|
390
390
|
props: {
|
|
391
391
|
title: {},
|
|
@@ -407,7 +407,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
407
407
|
}
|
|
408
408
|
]),
|
|
409
409
|
style: P(n.value)
|
|
410
|
-
}, [e.title || e.hint || t.$slots.title ? (L(), T("h2",
|
|
410
|
+
}, [e.title || e.hint || t.$slots.title ? (L(), T("h2", $n, [k(Z, {
|
|
411
411
|
tone: "heading",
|
|
412
412
|
size: "heading",
|
|
413
413
|
wrap: "",
|
|
@@ -419,16 +419,16 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
419
419
|
"on-accent": ""
|
|
420
420
|
}, null, 8, ["tip"])) : w("", !0)]),
|
|
421
421
|
_: 3
|
|
422
|
-
}, 8, ["hue-index"])])) : w("", !0), B(t.$slots, "default")], 14,
|
|
422
|
+
}, 8, ["hue-index"])])) : w("", !0), B(t.$slots, "default")], 14, Qn));
|
|
423
423
|
}
|
|
424
|
-
}),
|
|
424
|
+
}), tr = [
|
|
425
425
|
"aria-checked",
|
|
426
426
|
"aria-label",
|
|
427
427
|
"disabled"
|
|
428
|
-
],
|
|
428
|
+
], nr = {
|
|
429
429
|
class: "glim-checkbox-box",
|
|
430
430
|
"aria-hidden": "true"
|
|
431
|
-
},
|
|
431
|
+
}, rr = { key: 0 }, ir = /* @__PURE__ */ A({
|
|
432
432
|
__name: "Checkbox",
|
|
433
433
|
props: /*@__PURE__*/ j({
|
|
434
434
|
label: {},
|
|
@@ -463,12 +463,12 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
463
463
|
disabled: e.disabled,
|
|
464
464
|
class: N(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
465
465
|
onClick: i[0] ||= (e) => r.value = !r.value
|
|
466
|
-
}, [E("span",
|
|
466
|
+
}, [E("span", nr, [k(W(f))]), n.value ? w("", !0) : (L(), T("span", rr, U(e.label), 1))], 10, tr));
|
|
467
467
|
}
|
|
468
|
-
}),
|
|
468
|
+
}), ar = { class: "glim-picker-foot" }, or = {
|
|
469
469
|
key: 0,
|
|
470
470
|
class: "glim-picker-name"
|
|
471
|
-
},
|
|
471
|
+
}, sr = ["value", "aria-label"], cr = { class: "glim-picker-actions" }, lr = /* @__PURE__ */ A({
|
|
472
472
|
__name: "ColorPicker",
|
|
473
473
|
props: /*@__PURE__*/ j({
|
|
474
474
|
anchor: { default: null },
|
|
@@ -490,18 +490,18 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
490
490
|
let n = e, r = K(e, "modelValue"), i = t, a = {
|
|
491
491
|
...ye,
|
|
492
492
|
...n.text
|
|
493
|
-
}, o = H(null), s = H(null), c = R(
|
|
493
|
+
}, o = H(null), s = H(null), c = R(wt(r.value) ?? "#000000"), l = R(c.value), u = S(() => n.names === !1 ? null : St(c.value, n.names)), d = He(c.value, (e) => {
|
|
494
494
|
c.value = e, l.value = e, i("input", e);
|
|
495
495
|
}, { text: a }), p;
|
|
496
496
|
I(() => {
|
|
497
497
|
s.value.appendChild(d.el), n.anchor && o.value && (p = Ze(o.value, n.anchor, () => i("close")), d.focus());
|
|
498
498
|
}), F(() => p?.()), q(r, (e) => {
|
|
499
|
-
let t =
|
|
499
|
+
let t = wt(e);
|
|
500
500
|
t && (c.value = t, l.value = t, d.setValue(t));
|
|
501
501
|
});
|
|
502
502
|
function m(e) {
|
|
503
503
|
l.value = e.target.value;
|
|
504
|
-
let t =
|
|
504
|
+
let t = wt(l.value);
|
|
505
505
|
t && (c.value = t, d.setValue(t), i("input", t));
|
|
506
506
|
}
|
|
507
507
|
function h() {
|
|
@@ -511,7 +511,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
511
511
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
|
|
512
512
|
}
|
|
513
513
|
return (t, n) => (L(), C(x, {
|
|
514
|
-
to: W(
|
|
514
|
+
to: W(It)(),
|
|
515
515
|
disabled: !e.anchor
|
|
516
516
|
}, [E("div", {
|
|
517
517
|
"data-glim": "ColorPicker",
|
|
@@ -526,12 +526,12 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
526
526
|
ref: s,
|
|
527
527
|
style: { display: "contents" }
|
|
528
528
|
}, null, 512),
|
|
529
|
-
E("div",
|
|
529
|
+
E("div", ar, [
|
|
530
530
|
n[0] ||= E("span", {
|
|
531
531
|
class: "glim-picker-swatch",
|
|
532
532
|
"aria-hidden": "true"
|
|
533
533
|
}, null, -1),
|
|
534
|
-
u.value === null ? w("", !0) : (L(), T("span",
|
|
534
|
+
u.value === null ? w("", !0) : (L(), T("span", or, U(u.value), 1)),
|
|
535
535
|
E("input", {
|
|
536
536
|
class: "glim-picker-hex",
|
|
537
537
|
value: l.value,
|
|
@@ -539,9 +539,9 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
539
539
|
spellcheck: "false",
|
|
540
540
|
"aria-label": a.hex,
|
|
541
541
|
onInput: m
|
|
542
|
-
}, null, 40,
|
|
542
|
+
}, null, 40, sr)
|
|
543
543
|
]),
|
|
544
|
-
E("div",
|
|
544
|
+
E("div", cr, [k(Q, {
|
|
545
545
|
label: a.apply,
|
|
546
546
|
"label-key": "apply",
|
|
547
547
|
glyph: W(f),
|
|
@@ -550,16 +550,16 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
550
550
|
}, null, 8, ["label", "glyph"])])
|
|
551
551
|
], 38)], 8, ["to", "disabled"]));
|
|
552
552
|
}
|
|
553
|
-
}),
|
|
553
|
+
}), ur = ["data-glim-title"], dr = { class: "glim-modal-head" }, fr = {
|
|
554
554
|
id: "confirmdialog-title",
|
|
555
555
|
class: "glim-modal-title"
|
|
556
|
-
},
|
|
556
|
+
}, pr = { class: "glim-modal-body" }, mr = {
|
|
557
557
|
id: "confirmdialog-message",
|
|
558
558
|
class: "glim-modal-text"
|
|
559
|
-
},
|
|
559
|
+
}, hr = {
|
|
560
560
|
key: 0,
|
|
561
561
|
class: "glim-modal-extra"
|
|
562
|
-
},
|
|
562
|
+
}, gr = { class: "glim-modal-foot" }, _r = /* @__PURE__ */ A({
|
|
563
563
|
__name: "ConfirmDialog",
|
|
564
564
|
props: {
|
|
565
565
|
title: {},
|
|
@@ -587,7 +587,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
587
587
|
"aria-describedby": "confirmdialog-message",
|
|
588
588
|
class: "glim-modal-card"
|
|
589
589
|
}, [
|
|
590
|
-
E("div",
|
|
590
|
+
E("div", dr, [E("h2", fr, [k(Z, {
|
|
591
591
|
tone: "heading",
|
|
592
592
|
size: "heading",
|
|
593
593
|
wrap: ""
|
|
@@ -602,8 +602,8 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
602
602
|
class: "glim-modal-close",
|
|
603
603
|
onClick: n[0] ||= (e) => r("cancel")
|
|
604
604
|
}, null, 8, ["label", "glyph"]))]),
|
|
605
|
-
E("div",
|
|
606
|
-
E("div",
|
|
605
|
+
E("div", pr, [E("p", mr, U(e.message), 1), t.$slots.extra ? (L(), T("div", hr, [B(t.$slots, "extra")])) : w("", !0)]),
|
|
606
|
+
E("div", gr, [k(Q, {
|
|
607
607
|
ref_key: "cancel",
|
|
608
608
|
ref: a,
|
|
609
609
|
label: e.cancelLabel,
|
|
@@ -620,25 +620,25 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
620
620
|
"label-key",
|
|
621
621
|
"glyph"
|
|
622
622
|
])])
|
|
623
|
-
], 8,
|
|
623
|
+
], 8, ur)]));
|
|
624
624
|
}
|
|
625
|
-
}),
|
|
625
|
+
}), vr = {
|
|
626
626
|
"data-glim": "Kbd",
|
|
627
627
|
class: "glim-kbd"
|
|
628
|
-
},
|
|
628
|
+
}, yr = /* @__PURE__ */ A({
|
|
629
629
|
__name: "Kbd",
|
|
630
630
|
setup(e) {
|
|
631
|
-
return (e, t) => (L(), T("kbd",
|
|
631
|
+
return (e, t) => (L(), T("kbd", vr, [B(e.$slots, "default")]));
|
|
632
632
|
}
|
|
633
|
-
}),
|
|
633
|
+
}), br = {
|
|
634
634
|
key: 0,
|
|
635
635
|
class: "glim-menu-sep",
|
|
636
636
|
role: "separator"
|
|
637
|
-
},
|
|
637
|
+
}, xr = {
|
|
638
638
|
key: 1,
|
|
639
639
|
class: "glim-menu-head",
|
|
640
640
|
role: "presentation"
|
|
641
|
-
},
|
|
641
|
+
}, Sr = [
|
|
642
642
|
"role",
|
|
643
643
|
"aria-checked",
|
|
644
644
|
"aria-haspopup",
|
|
@@ -646,26 +646,26 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
646
646
|
"disabled",
|
|
647
647
|
"data-row",
|
|
648
648
|
"onClick"
|
|
649
|
-
],
|
|
649
|
+
], Cr = {
|
|
650
650
|
key: 0,
|
|
651
651
|
class: "glim-checkbox-box",
|
|
652
652
|
"aria-hidden": "true"
|
|
653
|
-
},
|
|
653
|
+
}, wr = {
|
|
654
654
|
key: 2,
|
|
655
655
|
class: "glim-menu-glyph",
|
|
656
656
|
"aria-hidden": "true"
|
|
657
|
-
},
|
|
657
|
+
}, Tr = { class: "glim-menu-label" }, Er = {
|
|
658
658
|
key: 3,
|
|
659
659
|
class: "glim-menu-end glim-menu-caret",
|
|
660
660
|
"aria-hidden": "true"
|
|
661
|
-
},
|
|
661
|
+
}, Dr = {
|
|
662
662
|
key: 4,
|
|
663
663
|
class: "glim-menu-end glim-menu-tick",
|
|
664
664
|
"aria-hidden": "true"
|
|
665
|
-
},
|
|
665
|
+
}, Or = {
|
|
666
666
|
key: 6,
|
|
667
667
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
668
|
-
},
|
|
668
|
+
}, kr = /* @__PURE__ */ A({
|
|
669
669
|
__name: "MenuRows",
|
|
670
670
|
props: {
|
|
671
671
|
entries: {},
|
|
@@ -679,9 +679,9 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
679
679
|
} : {
|
|
680
680
|
kind: "item",
|
|
681
681
|
item: e,
|
|
682
|
-
view:
|
|
682
|
+
view: yt(e)
|
|
683
683
|
}));
|
|
684
|
-
return (t, n) => (L(!0), T(b, null, z(a.value, (t, n) => (L(), T(b, { key: n }, [t.kind === "sep" ? (L(), T("div",
|
|
684
|
+
return (t, n) => (L(!0), T(b, null, z(a.value, (t, n) => (L(), T(b, { key: n }, [t.kind === "sep" ? (L(), T("div", br)) : t.kind === "head" ? (L(), T("div", xr, [E("span", null, U(t.head.head), 1), t.head.edit ? (L(), C(In, {
|
|
685
685
|
key: 0,
|
|
686
686
|
tip: t.head.edit.tip,
|
|
687
687
|
role: "menuitem",
|
|
@@ -709,23 +709,23 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
709
709
|
"data-row": n,
|
|
710
710
|
onClick: (e) => r("pick", n)
|
|
711
711
|
}, [
|
|
712
|
-
t.view.lead === "box" ? (L(), T("span",
|
|
712
|
+
t.view.lead === "box" ? (L(), T("span", Cr, [k(W(f))])) : t.view.lead === "dot" ? (L(), T("span", {
|
|
713
713
|
key: 1,
|
|
714
714
|
class: "glim-menu-dot",
|
|
715
715
|
style: P({ backgroundColor: t.item.color }),
|
|
716
716
|
"aria-hidden": "true"
|
|
717
|
-
}, null, 4)) : (L(), T("span",
|
|
718
|
-
E("span",
|
|
719
|
-
t.view.end === "submenu" ? (L(), T("span",
|
|
717
|
+
}, null, 4)) : (L(), T("span", wr, [t.view.lead === "glyph" ? (L(), C(V(t.item.glyph), { key: 0 })) : w("", !0)])),
|
|
718
|
+
E("span", Tr, U(t.item.label), 1),
|
|
719
|
+
t.view.end === "submenu" ? (L(), T("span", Er, [k(W(i))])) : t.view.end === "tick" ? (L(), T("span", Dr, [k(W(f))])) : t.view.end === "shortcut" ? (L(), C(yr, {
|
|
720
720
|
key: 5,
|
|
721
721
|
class: "glim-menu-end"
|
|
722
722
|
}, {
|
|
723
723
|
default: J(() => [O(U(t.item.shortcut), 1)]),
|
|
724
724
|
_: 2
|
|
725
|
-
}, 1024)) : t.view.end === "count" ? (L(), T("span",
|
|
726
|
-
], 10,
|
|
725
|
+
}, 1024)) : t.view.end === "count" ? (L(), T("span", Or, U(t.item.count), 1)) : w("", !0)
|
|
726
|
+
], 10, Sr))], 64))), 128));
|
|
727
727
|
}
|
|
728
|
-
}),
|
|
728
|
+
}), Ar = ["id", "aria-label"], jr = ["id", "aria-label"], Mr = /* @__PURE__ */ A({
|
|
729
729
|
__name: "ContextMenu",
|
|
730
730
|
props: {
|
|
731
731
|
x: {},
|
|
@@ -744,19 +744,19 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
744
744
|
let n = e, r = t, i = H(null), a = H(null), o = nt(), s = R({
|
|
745
745
|
left: n.x,
|
|
746
746
|
top: n.y
|
|
747
|
-
}), c = H(null), l = R(null), u = S(() =>
|
|
747
|
+
}), c = H(null), l = R(null), u = S(() => wn(n.items)), d = S(() => {
|
|
748
748
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
749
749
|
return e && e !== "-" && !at(e) && e.sub ? e : null;
|
|
750
|
-
}), f = S(() => d.value?.sub ?
|
|
750
|
+
}), f = S(() => d.value?.sub ? wn(d.value.sub) : null), p = () => ({
|
|
751
751
|
width: innerWidth,
|
|
752
752
|
height: innerHeight
|
|
753
753
|
});
|
|
754
754
|
function m(e) {
|
|
755
|
-
r("close"), e &&
|
|
755
|
+
r("close"), e && qt(n.opener ?? o);
|
|
756
756
|
}
|
|
757
757
|
function h() {
|
|
758
758
|
let e = i.value;
|
|
759
|
-
e && (s.value =
|
|
759
|
+
e && (s.value = Pt(n.x, n.y, {
|
|
760
760
|
width: e.offsetWidth,
|
|
761
761
|
height: e.offsetHeight
|
|
762
762
|
}, p(), n.above));
|
|
@@ -780,7 +780,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
780
780
|
let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
|
|
781
781
|
if (!e || !t || !n) return;
|
|
782
782
|
let r = getComputedStyle(i.value).direction === "rtl";
|
|
783
|
-
l.value =
|
|
783
|
+
l.value = Ft(t.getBoundingClientRect(), {
|
|
784
784
|
width: n.offsetWidth,
|
|
785
785
|
height: n.offsetHeight
|
|
786
786
|
}, p(), r), e.focus && $e(n);
|
|
@@ -790,11 +790,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
790
790
|
n !== "-" && (at(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
|
|
791
791
|
at: t,
|
|
792
792
|
focus: !0
|
|
793
|
-
} : (
|
|
793
|
+
} : (yt(n).staysOpen || m(!0), n.onSelect?.()));
|
|
794
794
|
}
|
|
795
795
|
function ee(e, t) {
|
|
796
796
|
if (e.key === "Tab") return m(!1);
|
|
797
|
-
let n = e.currentTarget, a =
|
|
797
|
+
let n = e.currentTarget, a = vt(e.key, getComputedStyle(n).direction === "rtl");
|
|
798
798
|
if (!a) return;
|
|
799
799
|
if (e.preventDefault(), a !== "in" && a !== "out") return et(n, a);
|
|
800
800
|
if (t) {
|
|
@@ -816,7 +816,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
816
816
|
focus: !1
|
|
817
817
|
} : !i && c.value && (c.value = null);
|
|
818
818
|
}
|
|
819
|
-
return (t, n) => (L(), C(x, { to: W(
|
|
819
|
+
return (t, n) => (L(), C(x, { to: W(It)() }, [E("div", {
|
|
820
820
|
id: e.id,
|
|
821
821
|
ref_key: "menu",
|
|
822
822
|
ref: i,
|
|
@@ -831,11 +831,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
831
831
|
onKeydown: n[1] ||= (e) => ee(e, !1),
|
|
832
832
|
onMouseover: y,
|
|
833
833
|
onContextmenu: n[2] ||= Y(() => {}, ["prevent"])
|
|
834
|
-
}, [k(
|
|
834
|
+
}, [k(kr, {
|
|
835
835
|
entries: u.value,
|
|
836
836
|
"open-at": c.value?.at,
|
|
837
837
|
onPick: n[0] ||= (e) => v(u.value, e)
|
|
838
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
838
|
+
}, null, 8, ["entries", "open-at"])], 44, Ar), f.value ? (L(), T("div", {
|
|
839
839
|
key: 0,
|
|
840
840
|
id: d.value?.subId,
|
|
841
841
|
ref_key: "subMenu",
|
|
@@ -849,15 +849,15 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
849
849
|
}),
|
|
850
850
|
onKeydown: n[4] ||= (e) => ee(e, !0),
|
|
851
851
|
onContextmenu: n[5] ||= Y(() => {}, ["prevent"])
|
|
852
|
-
}, [k(
|
|
852
|
+
}, [k(kr, {
|
|
853
853
|
entries: f.value,
|
|
854
854
|
onPick: n[3] ||= (e) => v(f.value, e)
|
|
855
|
-
}, null, 8, ["entries"])], 44,
|
|
855
|
+
}, null, 8, ["entries"])], 44, jr)) : w("", !0)], 8, ["to"]));
|
|
856
856
|
}
|
|
857
|
-
}),
|
|
857
|
+
}), Nr = ["value", "aria-label"], Pr = {
|
|
858
858
|
role: "status",
|
|
859
859
|
class: "glim-sr-only"
|
|
860
|
-
},
|
|
860
|
+
}, Fr = /* @__PURE__ */ A({
|
|
861
861
|
__name: "CopyField",
|
|
862
862
|
props: {
|
|
863
863
|
value: {},
|
|
@@ -888,7 +888,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
888
888
|
"aria-label": W(i),
|
|
889
889
|
spellcheck: "false",
|
|
890
890
|
class: "glim-input glim-input--mono"
|
|
891
|
-
}, null, 8,
|
|
891
|
+
}, null, 8, Nr),
|
|
892
892
|
k(Q, {
|
|
893
893
|
label: a.value ? e.text.copied : e.text.copy,
|
|
894
894
|
"label-key": a.value ? "copied" : "copy",
|
|
@@ -900,17 +900,17 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
900
900
|
"label-key",
|
|
901
901
|
"glyph"
|
|
902
902
|
]),
|
|
903
|
-
E("span",
|
|
903
|
+
E("span", Pr, U(a.value ? e.text.copied : ""), 1)
|
|
904
904
|
], 2));
|
|
905
905
|
}
|
|
906
|
-
}),
|
|
906
|
+
}), Ir = ["data-glim-title"], Lr = {
|
|
907
907
|
key: 0,
|
|
908
908
|
class: "glim-empty-glyph",
|
|
909
909
|
"aria-hidden": "true"
|
|
910
|
-
},
|
|
910
|
+
}, Rr = { class: "glim-empty-title" }, zr = {
|
|
911
911
|
key: 1,
|
|
912
912
|
class: "glim-empty-hint"
|
|
913
|
-
},
|
|
913
|
+
}, Br = /* @__PURE__ */ A({
|
|
914
914
|
__name: "EmptyState",
|
|
915
915
|
props: {
|
|
916
916
|
glyph: {},
|
|
@@ -927,13 +927,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
927
927
|
"data-glim-title": e.title,
|
|
928
928
|
class: N(e.nested ? "glim-empty" : "glim-card glim-empty")
|
|
929
929
|
}, [
|
|
930
|
-
e.glyph ? (L(), T("span",
|
|
931
|
-
E("p",
|
|
932
|
-
e.hint ? (L(), T("p",
|
|
930
|
+
e.glyph ? (L(), T("span", Lr, [(L(), C(V(e.glyph)))])) : w("", !0),
|
|
931
|
+
E("p", Rr, U(e.title), 1),
|
|
932
|
+
e.hint ? (L(), T("p", zr, U(e.hint), 1)) : w("", !0),
|
|
933
933
|
B(t.$slots, "default")
|
|
934
|
-
], 10,
|
|
934
|
+
], 10, Ir));
|
|
935
935
|
}
|
|
936
|
-
}),
|
|
936
|
+
}), Vr = ["id"], Hr = /* @__PURE__ */ A({
|
|
937
937
|
__name: "FieldError",
|
|
938
938
|
props: { id: {} },
|
|
939
939
|
setup(e) {
|
|
@@ -941,22 +941,22 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
941
941
|
"data-glim": "FieldError",
|
|
942
942
|
id: e.id,
|
|
943
943
|
class: "glim-field-error"
|
|
944
|
-
}, [k(W(m), { mark: W(Ee).fail }, null, 8, ["mark"]), B(t.$slots, "default")], 8,
|
|
944
|
+
}, [k(W(m), { mark: W(Ee).fail }, null, 8, ["mark"]), B(t.$slots, "default")], 8, Vr));
|
|
945
945
|
}
|
|
946
|
-
}),
|
|
946
|
+
}), Ur = /* @__PURE__ */ A({
|
|
947
947
|
__name: "Pill",
|
|
948
948
|
props: { tone: { default: "neutral" } },
|
|
949
949
|
setup(e) {
|
|
950
|
-
let t = e, n = S(() =>
|
|
950
|
+
let t = e, n = S(() => Nt(t.tone));
|
|
951
951
|
return (e, t) => (L(), T("span", {
|
|
952
952
|
"data-glim": "Pill",
|
|
953
953
|
class: N(n.value)
|
|
954
954
|
}, [B(e.$slots, "default")], 2));
|
|
955
955
|
}
|
|
956
|
-
}),
|
|
956
|
+
}), Wr = { class: "glim-field-row-name" }, Gr = {
|
|
957
957
|
key: 0,
|
|
958
958
|
class: "glim-field-row-controls"
|
|
959
|
-
},
|
|
959
|
+
}, Kr = /* @__PURE__ */ A({
|
|
960
960
|
__name: "FieldRow",
|
|
961
961
|
props: {
|
|
962
962
|
label: {},
|
|
@@ -974,20 +974,20 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
974
974
|
ref: r,
|
|
975
975
|
"data-glim": "FieldRow",
|
|
976
976
|
class: N(["glim-field-row", { "glim-field-row--wide": e.wide }])
|
|
977
|
-
}, [E("span",
|
|
977
|
+
}, [E("span", Wr, [E("span", {
|
|
978
978
|
class: "glim-field-row-label",
|
|
979
|
-
onClick: i[0] ||= (e) => W(
|
|
979
|
+
onClick: i[0] ||= (e) => W(Rt)(r.value)
|
|
980
980
|
}, [B(t.$slots, "label", {}, () => [O(U(e.label), 1)])]), e.hint ? (L(), C($, {
|
|
981
981
|
key: 0,
|
|
982
982
|
tip: e.hint
|
|
983
|
-
}, null, 8, ["tip"])) : w("", !0)]), W(n) ? (L(), T("span",
|
|
983
|
+
}, null, 8, ["tip"])) : w("", !0)]), W(n) ? (L(), T("span", Gr, [B(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (L(), C(Ur, {
|
|
984
984
|
key: 0,
|
|
985
985
|
class: "glim-num",
|
|
986
986
|
tone: e.tone
|
|
987
987
|
}, {
|
|
988
988
|
default: J(() => [O(U(e.value), 1)]),
|
|
989
989
|
_: 1
|
|
990
|
-
}, 8, ["tone"]))])])) : B(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (L(), C(
|
|
990
|
+
}, 8, ["tone"]))])])) : B(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (L(), C(Ur, {
|
|
991
991
|
key: 0,
|
|
992
992
|
class: "glim-num",
|
|
993
993
|
tone: e.tone
|
|
@@ -996,7 +996,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
996
996
|
_: 1
|
|
997
997
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
998
998
|
}
|
|
999
|
-
}),
|
|
999
|
+
}), qr = /* @__PURE__ */ A({
|
|
1000
1000
|
__name: "FieldRowGroup",
|
|
1001
1001
|
props: { columns: {} },
|
|
1002
1002
|
setup(e) {
|
|
@@ -1006,13 +1006,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1006
1006
|
style: P(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
1007
1007
|
}, [B(t.$slots, "default")], 4));
|
|
1008
1008
|
}
|
|
1009
|
-
}),
|
|
1009
|
+
}), Jr = {
|
|
1010
1010
|
key: 0,
|
|
1011
1011
|
class: "glim-modal-foot"
|
|
1012
|
-
},
|
|
1012
|
+
}, Yr = {
|
|
1013
1013
|
key: 0,
|
|
1014
1014
|
class: "glim-window-start"
|
|
1015
|
-
},
|
|
1015
|
+
}, Xr = /* @__PURE__ */ A({
|
|
1016
1016
|
__name: "WindowFootRow",
|
|
1017
1017
|
props: {
|
|
1018
1018
|
actions: {},
|
|
@@ -1022,7 +1022,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1022
1022
|
},
|
|
1023
1023
|
emits: ["close"],
|
|
1024
1024
|
setup(e, { emit: t }) {
|
|
1025
|
-
let n = e, r = t, i = S(() =>
|
|
1025
|
+
let n = e, r = t, i = S(() => Fn(n.actions, n.hasStart, {
|
|
1026
1026
|
cancel: {
|
|
1027
1027
|
label: n.text.cancel,
|
|
1028
1028
|
labelKey: "common.cancel",
|
|
@@ -1039,7 +1039,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1039
1039
|
function a(e) {
|
|
1040
1040
|
e.onClick?.() !== !1 && r("close");
|
|
1041
1041
|
}
|
|
1042
|
-
return (t, n) => i.value.length ? (L(), T("div",
|
|
1042
|
+
return (t, n) => i.value.length ? (L(), T("div", Jr, [e.hasStart ? (L(), T("span", Yr, [B(t.$slots, "start", {}, () => [O(U(e.start), 1)])])) : w("", !0), (L(!0), T(b, null, z(i.value, (e, t) => (L(), C(Q, M({ ref_for: !0 }, e.attrs, {
|
|
1043
1043
|
key: t,
|
|
1044
1044
|
label: e.label,
|
|
1045
1045
|
"label-key": e.labelKey,
|
|
@@ -1056,11 +1056,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1056
1056
|
"onClick"
|
|
1057
1057
|
]))), 128))])) : w("", !0);
|
|
1058
1058
|
}
|
|
1059
|
-
}),
|
|
1059
|
+
}), Zr = [
|
|
1060
1060
|
"data-glim-title",
|
|
1061
1061
|
"aria-labelledby",
|
|
1062
1062
|
"aria-label"
|
|
1063
|
-
],
|
|
1063
|
+
], Qr = ["id"], $r = { class: "glim-modal-body glim-window-body" }, ei = /* @__PURE__ */ A({
|
|
1064
1064
|
inheritAttrs: !1,
|
|
1065
1065
|
__name: "Window",
|
|
1066
1066
|
props: {
|
|
@@ -1077,14 +1077,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1077
1077
|
u?.(), i("close");
|
|
1078
1078
|
}
|
|
1079
1079
|
I(() => {
|
|
1080
|
-
u =
|
|
1080
|
+
u = pn(() => o.value, d), o.value && Pn(o.value)?.focus();
|
|
1081
1081
|
}), oe(() => {
|
|
1082
|
-
u?.(),
|
|
1082
|
+
u?.(), qt(c);
|
|
1083
1083
|
}), t({ card: o });
|
|
1084
1084
|
function f() {
|
|
1085
|
-
|
|
1085
|
+
_t() || d();
|
|
1086
1086
|
}
|
|
1087
|
-
return (t, n) => (L(), C(x, { to: W(
|
|
1087
|
+
return (t, n) => (L(), C(x, { to: W(It)() }, [E("div", {
|
|
1088
1088
|
class: "glim-modal-backdrop",
|
|
1089
1089
|
onMousedown: Y(f, ["self"])
|
|
1090
1090
|
}, [E("div", M({
|
|
@@ -1114,9 +1114,9 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1114
1114
|
}, {
|
|
1115
1115
|
default: J(() => [B(t.$slots, "title", {}, () => [O(U(e.title), 1)])]),
|
|
1116
1116
|
_: 3
|
|
1117
|
-
})], 8,
|
|
1118
|
-
E("div",
|
|
1119
|
-
k(
|
|
1117
|
+
})], 8, Qr),
|
|
1118
|
+
E("div", $r, [B(t.$slots, "default")]),
|
|
1119
|
+
k(Xr, {
|
|
1120
1120
|
actions: e.actions,
|
|
1121
1121
|
start: e.start,
|
|
1122
1122
|
"has-start": l.value,
|
|
@@ -1132,9 +1132,9 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1132
1132
|
"has-start",
|
|
1133
1133
|
"text"
|
|
1134
1134
|
])
|
|
1135
|
-
], 16,
|
|
1135
|
+
], 16, Zr)], 32)], 8, ["to"]));
|
|
1136
1136
|
}
|
|
1137
|
-
}),
|
|
1137
|
+
}), ti = { class: "glim-fortress-text" }, ni = /* @__PURE__ */ A({
|
|
1138
1138
|
__name: "FortressDoubtWindow",
|
|
1139
1139
|
props: {
|
|
1140
1140
|
app: {},
|
|
@@ -1151,7 +1151,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1151
1151
|
attrs: { "data-fortress": "open-anyway" },
|
|
1152
1152
|
onClick: () => t.onOpen()
|
|
1153
1153
|
}]);
|
|
1154
|
-
return (t, i) => (L(), C(
|
|
1154
|
+
return (t, i) => (L(), C(ei, {
|
|
1155
1155
|
"data-glim": "FortressDoubtWindow",
|
|
1156
1156
|
title: n.value.title,
|
|
1157
1157
|
actions: r.value,
|
|
@@ -1161,7 +1161,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1161
1161
|
},
|
|
1162
1162
|
onClose: i[0] ||= (t) => e.onClose()
|
|
1163
1163
|
}, {
|
|
1164
|
-
default: J(() => [E("div",
|
|
1164
|
+
default: J(() => [E("div", ti, [E("p", null, U(n.value.body), 1)])]),
|
|
1165
1165
|
_: 1
|
|
1166
1166
|
}, 8, [
|
|
1167
1167
|
"title",
|
|
@@ -1169,32 +1169,32 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1169
1169
|
"text"
|
|
1170
1170
|
]));
|
|
1171
1171
|
}
|
|
1172
|
-
}),
|
|
1172
|
+
}), ri = ["data-glim-title"], ii = { class: "glim-instance-top" }, ai = {
|
|
1173
1173
|
key: 0,
|
|
1174
1174
|
class: "glim-instance-mark",
|
|
1175
1175
|
"aria-hidden": "true"
|
|
1176
|
-
},
|
|
1176
|
+
}, oi = ["src"], si = { class: "glim-instance-main" }, ci = { class: "glim-instance-name" }, li = { class: "glim-instance-title" }, ui = {
|
|
1177
1177
|
key: 0,
|
|
1178
1178
|
class: "glim-instance-badges"
|
|
1179
|
-
},
|
|
1179
|
+
}, di = {
|
|
1180
1180
|
key: 0,
|
|
1181
1181
|
class: "glim-eyebrow"
|
|
1182
|
-
},
|
|
1182
|
+
}, fi = {
|
|
1183
1183
|
key: 1,
|
|
1184
1184
|
class: "glim-instance-facts glim-num"
|
|
1185
|
-
},
|
|
1185
|
+
}, pi = {
|
|
1186
1186
|
key: 2,
|
|
1187
1187
|
class: "glim-instance-figures"
|
|
1188
|
-
},
|
|
1188
|
+
}, mi = { class: "glim-num" }, hi = {
|
|
1189
1189
|
key: 3,
|
|
1190
1190
|
class: "glim-instance-acts"
|
|
1191
|
-
},
|
|
1191
|
+
}, gi = {
|
|
1192
1192
|
key: 0,
|
|
1193
1193
|
class: "glim-instance-body"
|
|
1194
|
-
},
|
|
1194
|
+
}, _i = {
|
|
1195
1195
|
key: 1,
|
|
1196
1196
|
class: "glim-instance-acts"
|
|
1197
|
-
},
|
|
1197
|
+
}, vi = /* @__PURE__ */ A({
|
|
1198
1198
|
__name: "InstanceCard",
|
|
1199
1199
|
props: {
|
|
1200
1200
|
logo: {},
|
|
@@ -1212,27 +1212,27 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1212
1212
|
class: N(["glim-card glim-instance", e.hueIndex !== void 0 && "glim-hue"]),
|
|
1213
1213
|
style: P(r.value)
|
|
1214
1214
|
}, [
|
|
1215
|
-
E("div",
|
|
1215
|
+
E("div", ii, [t.$slots.logo ? (L(), T("span", ai, [B(t.$slots, "logo")])) : e.logo ? (L(), T("img", {
|
|
1216
1216
|
key: 1,
|
|
1217
1217
|
class: "glim-instance-mark",
|
|
1218
1218
|
src: e.logo,
|
|
1219
1219
|
alt: "",
|
|
1220
1220
|
draggable: "false"
|
|
1221
|
-
}, null, 8,
|
|
1222
|
-
E("div",
|
|
1223
|
-
e.eyebrow ? (L(), T("span",
|
|
1224
|
-
n.value ? (L(), T("p",
|
|
1225
|
-
e.figures?.length ? (L(), T("dl",
|
|
1226
|
-
t.$slots.actions && !t.$slots.default ? (L(), T("div",
|
|
1221
|
+
}, null, 8, oi)) : w("", !0), E("div", si, [
|
|
1222
|
+
E("div", ci, [E("h3", li, U(e.name), 1), t.$slots.badges ? (L(), T("span", ui, [B(t.$slots, "badges")])) : w("", !0)]),
|
|
1223
|
+
e.eyebrow ? (L(), T("span", di, U(e.eyebrow), 1)) : w("", !0),
|
|
1224
|
+
n.value ? (L(), T("p", fi, U(n.value), 1)) : w("", !0),
|
|
1225
|
+
e.figures?.length ? (L(), T("dl", pi, [(L(!0), T(b, null, z(e.figures, (e) => (L(), T("div", { key: e.label }, [E("dt", null, U(e.label), 1), E("dd", mi, U(e.value), 1)]))), 128))])) : w("", !0),
|
|
1226
|
+
t.$slots.actions && !t.$slots.default ? (L(), T("div", hi, [B(t.$slots, "actions")])) : w("", !0)
|
|
1227
1227
|
])]),
|
|
1228
|
-
t.$slots.default ? (L(), T("div",
|
|
1229
|
-
t.$slots.actions && t.$slots.default ? (L(), T("div",
|
|
1230
|
-
], 14,
|
|
1228
|
+
t.$slots.default ? (L(), T("div", gi, [B(t.$slots, "default")])) : w("", !0),
|
|
1229
|
+
t.$slots.actions && t.$slots.default ? (L(), T("div", _i, [B(t.$slots, "actions")])) : w("", !0)
|
|
1230
|
+
], 14, ri));
|
|
1231
1231
|
}
|
|
1232
|
-
}),
|
|
1232
|
+
}), yi = { class: "glim-instance-rows" }, bi = ["data-instance"], xi = {
|
|
1233
1233
|
class: "glim-instance-device",
|
|
1234
1234
|
"aria-hidden": "true"
|
|
1235
|
-
},
|
|
1235
|
+
}, Si = { class: "glim-instance-row-text" }, Ci = { class: "glim-instance-row-name" }, wi = { class: "glim-instance-row-sub glim-num" }, Ti = { class: "glim-instance-row-end" }, Ei = /* @__PURE__ */ A({
|
|
1236
1236
|
inheritAttrs: !1,
|
|
1237
1237
|
__name: "FortressAppCard",
|
|
1238
1238
|
props: {
|
|
@@ -1249,11 +1249,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1249
1249
|
connected: t.text.connected,
|
|
1250
1250
|
checking: t.text.checking,
|
|
1251
1251
|
away: t.text.away
|
|
1252
|
-
})[e.presence], a = (e) => e.deviceKind ? d(`device${e.deviceKind.charAt(0).toUpperCase()}${e.deviceKind.slice(1)}`) : void 0, o = (e) =>
|
|
1252
|
+
})[e.presence], a = (e) => e.deviceKind ? d(`device${e.deviceKind.charAt(0).toUpperCase()}${e.deviceKind.slice(1)}`) : void 0, o = (e) => gt(t.text, t.app, e), s = (e) => !!t.onRemove && !e.self, c = S(() => !!n.value.open || r.value && s(n.value.main)), l = H(null);
|
|
1253
1253
|
function u(e) {
|
|
1254
|
-
e.doubt ? l.value = e :
|
|
1254
|
+
e.doubt ? l.value = e : Dt(t.app, e, t.onOpen);
|
|
1255
1255
|
}
|
|
1256
|
-
return (t, d) => (L(), T(b, null, [k(
|
|
1256
|
+
return (t, d) => (L(), T(b, null, [k(vi, M(t.$attrs, {
|
|
1257
1257
|
"data-glim": "FortressAppCard",
|
|
1258
1258
|
"data-fortress-app": e.app.id,
|
|
1259
1259
|
logo: e.app.logo,
|
|
@@ -1284,7 +1284,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1284
1284
|
default: J(() => [O(U(e.text.viaRelay), 1)]),
|
|
1285
1285
|
_: 1
|
|
1286
1286
|
})) : w("", !0),
|
|
1287
|
-
k(Z, { tone: W(
|
|
1287
|
+
k(Z, { tone: W(Lt)(n.value.main.presence) }, {
|
|
1288
1288
|
default: J(() => [O(U(i(n.value.main)), 1)]),
|
|
1289
1289
|
_: 1
|
|
1290
1290
|
}, 8, ["tone"])
|
|
@@ -1292,15 +1292,15 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1292
1292
|
_: 2
|
|
1293
1293
|
}, [r.value ? void 0 : {
|
|
1294
1294
|
name: "default",
|
|
1295
|
-
fn: J(() => [E("ul",
|
|
1295
|
+
fn: J(() => [E("ul", yi, [(L(!0), T(b, null, z(n.value.rows, ({ instance: t, sub: n, open: r }) => (L(), T("li", {
|
|
1296
1296
|
key: t.id,
|
|
1297
1297
|
class: "glim-instance-row",
|
|
1298
1298
|
"data-instance": t.id
|
|
1299
1299
|
}, [
|
|
1300
|
-
E("span",
|
|
1301
|
-
E("span",
|
|
1302
|
-
E("span",
|
|
1303
|
-
k(Z, { tone: W(
|
|
1300
|
+
E("span", xi, [a(t) ? (L(), C(V(a(t)), { key: 0 })) : w("", !0)]),
|
|
1301
|
+
E("span", Si, [E("span", Ci, U(t.device), 1), E("span", wi, U(n), 1)]),
|
|
1302
|
+
E("span", Ti, [
|
|
1303
|
+
k(Z, { tone: W(Lt)(t.presence) }, {
|
|
1304
1304
|
default: J(() => [O(U(i(t)), 1)]),
|
|
1305
1305
|
_: 2
|
|
1306
1306
|
}, 1032, ["tone"]),
|
|
@@ -1336,7 +1336,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1336
1336
|
"onClick"
|
|
1337
1337
|
])) : w("", !0)
|
|
1338
1338
|
])
|
|
1339
|
-
], 8,
|
|
1339
|
+
], 8, bi))), 128))])]),
|
|
1340
1340
|
key: "0"
|
|
1341
1341
|
}, c.value ? {
|
|
1342
1342
|
name: "actions",
|
|
@@ -1367,12 +1367,12 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1367
1367
|
"eyebrow",
|
|
1368
1368
|
"facts",
|
|
1369
1369
|
"hue-index"
|
|
1370
|
-
]), l.value ? (L(), C(
|
|
1370
|
+
]), l.value ? (L(), C(ni, {
|
|
1371
1371
|
key: 0,
|
|
1372
1372
|
app: e.app,
|
|
1373
1373
|
instance: l.value,
|
|
1374
1374
|
text: e.text,
|
|
1375
|
-
"on-open": () => W(
|
|
1375
|
+
"on-open": () => W(Dt)(e.app, l.value, e.onOpen),
|
|
1376
1376
|
"on-close": () => l.value = null
|
|
1377
1377
|
}, null, 8, [
|
|
1378
1378
|
"app",
|
|
@@ -1382,14 +1382,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1382
1382
|
"on-close"
|
|
1383
1383
|
])) : w("", !0)], 64));
|
|
1384
1384
|
}
|
|
1385
|
-
}),
|
|
1385
|
+
}), Di = [
|
|
1386
1386
|
"href",
|
|
1387
1387
|
"data-sel-id",
|
|
1388
1388
|
"aria-selected",
|
|
1389
1389
|
"aria-current",
|
|
1390
1390
|
"aria-describedby",
|
|
1391
1391
|
"tabindex"
|
|
1392
|
-
],
|
|
1392
|
+
], Oi = [
|
|
1393
1393
|
"data-sel-id",
|
|
1394
1394
|
"id",
|
|
1395
1395
|
"role",
|
|
@@ -1402,7 +1402,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1402
1402
|
"aria-hidden",
|
|
1403
1403
|
"disabled",
|
|
1404
1404
|
"tabindex"
|
|
1405
|
-
],
|
|
1405
|
+
], ki = ["id"], Ai = /* @__PURE__ */ A({
|
|
1406
1406
|
__name: "SelectorSegment",
|
|
1407
1407
|
props: {
|
|
1408
1408
|
item: {},
|
|
@@ -1426,7 +1426,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1426
1426
|
},
|
|
1427
1427
|
emits: ["select"],
|
|
1428
1428
|
setup(r, { emit: i }) {
|
|
1429
|
-
let a = r, o = i, s = S(() =>
|
|
1429
|
+
let a = r, o = i, s = S(() => Zt({
|
|
1430
1430
|
strip: a.strip,
|
|
1431
1431
|
orientation: a.orientation,
|
|
1432
1432
|
size: a.size,
|
|
@@ -1476,7 +1476,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1476
1476
|
key: 1,
|
|
1477
1477
|
"data-sel-label": "",
|
|
1478
1478
|
class: N(s.value.labelClass)
|
|
1479
|
-
}, U(r.item.label), 3))], 16,
|
|
1479
|
+
}, U(r.item.label), 3))], 16, Di)) : (L(), T(b, { key: 1 }, [k(W(t), M({
|
|
1480
1480
|
on: u.value,
|
|
1481
1481
|
show: W(c).show,
|
|
1482
1482
|
hide: W(c).hide
|
|
@@ -1485,7 +1485,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1485
1485
|
ref: m,
|
|
1486
1486
|
type: "button",
|
|
1487
1487
|
"data-sel-id": r.item.id,
|
|
1488
|
-
id: r.panelId && f.value ? W(
|
|
1488
|
+
id: r.panelId && f.value ? W(nn)(r.panelId, r.item.id) : void 0,
|
|
1489
1489
|
role: r.strip.kind === "toggle" ? void 0 : r.strip.kind,
|
|
1490
1490
|
"aria-selected": f.value ? r.on : void 0,
|
|
1491
1491
|
"aria-controls": r.panelId && f.value && r.on ? r.panelId : void 0,
|
|
@@ -1507,7 +1507,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1507
1507
|
key: 1,
|
|
1508
1508
|
"data-sel-label": "",
|
|
1509
1509
|
class: N(s.value.labelClass)
|
|
1510
|
-
}, U(r.item.label), 3))], 16,
|
|
1510
|
+
}, U(r.item.label), 3))], 16, Oi)]),
|
|
1511
1511
|
_: 1
|
|
1512
1512
|
}, 16, [
|
|
1513
1513
|
"on",
|
|
@@ -1517,16 +1517,16 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1517
1517
|
key: 0,
|
|
1518
1518
|
id: W(l),
|
|
1519
1519
|
hidden: ""
|
|
1520
|
-
}, U(s.value.tip), 9,
|
|
1520
|
+
}, U(s.value.tip), 9, ki)) : w("", !0)], 64)), k(n, { state: W(c) }, null, 8, ["state"])], 64));
|
|
1521
1521
|
}
|
|
1522
|
-
}),
|
|
1522
|
+
}), ji = [
|
|
1523
1523
|
"role",
|
|
1524
1524
|
"aria-label",
|
|
1525
1525
|
"aria-orientation"
|
|
1526
|
-
],
|
|
1526
|
+
], Mi = {
|
|
1527
1527
|
key: 0,
|
|
1528
1528
|
class: "glim-sel-list"
|
|
1529
|
-
},
|
|
1529
|
+
}, Ni = /* @__PURE__ */ A({
|
|
1530
1530
|
__name: "Selector",
|
|
1531
1531
|
props: {
|
|
1532
1532
|
items: {},
|
|
@@ -1572,10 +1572,10 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1572
1572
|
setup(e, { emit: t }) {
|
|
1573
1573
|
let n = e, i = t, a = S(() => n.modelValue);
|
|
1574
1574
|
function o(e) {
|
|
1575
|
-
let t = H(
|
|
1576
|
-
return ae(
|
|
1575
|
+
let t = H(ht(e));
|
|
1576
|
+
return ae(vn(e, () => t.value = ht(e))), t;
|
|
1577
1577
|
}
|
|
1578
|
-
let s = y(() => n.label), c = S(() => n.inline || n.label === void 0 && s.value !== void 0), l =
|
|
1578
|
+
let s = y(() => n.label), c = S(() => n.inline || n.label === void 0 && s.value !== void 0), l = Bn($t(n.size, n.orientation)), u = o(De), d = S(() => rn({
|
|
1579
1579
|
mode: l.value,
|
|
1580
1580
|
select: n.select === "many" ? "many" : "one",
|
|
1581
1581
|
activation: n.activation,
|
|
@@ -1617,14 +1617,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1617
1617
|
return;
|
|
1618
1618
|
}
|
|
1619
1619
|
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
1620
|
-
return
|
|
1620
|
+
return Nn(e, {
|
|
1621
1621
|
pinWidth: t,
|
|
1622
1622
|
fit: n.fit,
|
|
1623
1623
|
canSqueeze: r,
|
|
1624
1624
|
canList: i
|
|
1625
1625
|
}, (e) => p.value = e);
|
|
1626
1626
|
});
|
|
1627
|
-
let _ = S(() =>
|
|
1627
|
+
let _ = S(() => en({
|
|
1628
1628
|
layout: p.value,
|
|
1629
1629
|
inline: c.value,
|
|
1630
1630
|
fit: n.fit
|
|
@@ -1633,10 +1633,10 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1633
1633
|
label: e.label,
|
|
1634
1634
|
glyph: e.glyph,
|
|
1635
1635
|
disabled: D.value[t]
|
|
1636
|
-
}))), 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(() =>
|
|
1636
|
+
}))), 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(() => Yt(D.value, n.items.findIndex((e) => E(e.id))));
|
|
1637
1637
|
function A(e) {
|
|
1638
1638
|
i("press", e);
|
|
1639
|
-
let t = x.value ?
|
|
1639
|
+
let t = x.value ? En(a.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
1640
1640
|
t !== a.value && i("update:modelValue", t);
|
|
1641
1641
|
}
|
|
1642
1642
|
function ne(e) {
|
|
@@ -1650,7 +1650,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1650
1650
|
e.preventDefault(), t.click();
|
|
1651
1651
|
return;
|
|
1652
1652
|
}
|
|
1653
|
-
let r =
|
|
1653
|
+
let r = Jt(f.value, e.key, n.orientation);
|
|
1654
1654
|
if (!r) return;
|
|
1655
1655
|
e.preventDefault();
|
|
1656
1656
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
@@ -1666,7 +1666,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1666
1666
|
class: N([d.value.className, { "glim-sel--listed": v.value }]),
|
|
1667
1667
|
style: P(_.value.track),
|
|
1668
1668
|
onKeydown: re
|
|
1669
|
-
}, [(L(!0), T(b, null, z(e.items, (t, n) => (L(), C(
|
|
1669
|
+
}, [(L(!0), T(b, null, z(e.items, (t, n) => (L(), C(Ai, {
|
|
1670
1670
|
key: t.id,
|
|
1671
1671
|
item: t,
|
|
1672
1672
|
index: n,
|
|
@@ -1707,7 +1707,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1707
1707
|
"hue-offset",
|
|
1708
1708
|
"panel-id",
|
|
1709
1709
|
"onSelect"
|
|
1710
|
-
]))), 128)), v.value ? (L(), T("div",
|
|
1710
|
+
]))), 128)), v.value ? (L(), T("div", Mi, [k(r, {
|
|
1711
1711
|
"model-value": te.value,
|
|
1712
1712
|
label: W(s) ?? "",
|
|
1713
1713
|
"hide-label": "",
|
|
@@ -1723,18 +1723,18 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1723
1723
|
"size",
|
|
1724
1724
|
"options",
|
|
1725
1725
|
"disabled"
|
|
1726
|
-
])])) : w("", !0)], 46,
|
|
1726
|
+
])])) : w("", !0)], 46, ji));
|
|
1727
1727
|
}
|
|
1728
|
-
}),
|
|
1728
|
+
}), Pi = {
|
|
1729
1729
|
key: 0,
|
|
1730
1730
|
class: "glim-toggle-label"
|
|
1731
|
-
},
|
|
1731
|
+
}, Fi = [
|
|
1732
1732
|
"aria-checked",
|
|
1733
1733
|
"aria-label",
|
|
1734
1734
|
"aria-disabled",
|
|
1735
1735
|
"aria-describedby",
|
|
1736
1736
|
"disabled"
|
|
1737
|
-
],
|
|
1737
|
+
], Ii = ["id"], Li = /* @__PURE__ */ A({
|
|
1738
1738
|
inheritAttrs: !1,
|
|
1739
1739
|
__name: "Toggle",
|
|
1740
1740
|
props: /*@__PURE__*/ j({
|
|
@@ -1760,7 +1760,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1760
1760
|
let r = t, i = K(t, "modelValue"), a = y(() => r.label), o = S(() => r.label !== void 0 && !r.hideLabel), s = e(() => r.refused), c = G(), l = H(null), u;
|
|
1761
1761
|
ae(() => u?.());
|
|
1762
1762
|
function d() {
|
|
1763
|
-
r.refused ? (u?.(), u =
|
|
1763
|
+
r.refused ? (u?.(), u = on(l.value)) : i.value = !i.value;
|
|
1764
1764
|
}
|
|
1765
1765
|
return (e, r) => (L(), T(b, null, [
|
|
1766
1766
|
E("span", {
|
|
@@ -1769,7 +1769,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1769
1769
|
"data-glim": "Toggle",
|
|
1770
1770
|
class: N(["glim-toggle", e.$attrs.class]),
|
|
1771
1771
|
style: P(e.$attrs.style)
|
|
1772
|
-
}, [o.value ? (L(), T("span",
|
|
1772
|
+
}, [o.value ? (L(), T("span", Pi, U(t.label), 1)) : w("", !0), E("button", M({
|
|
1773
1773
|
...e.$attrs,
|
|
1774
1774
|
class: void 0,
|
|
1775
1775
|
style: void 0
|
|
@@ -1788,25 +1788,25 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1788
1788
|
onMouseleave: r[1] ||= (...e) => W(s).hide && W(s).hide(...e),
|
|
1789
1789
|
onFocus: r[2] ||= (...e) => W(s).showOnFocus && W(s).showOnFocus(...e),
|
|
1790
1790
|
onBlur: r[3] ||= (...e) => W(s).hide && W(s).hide(...e)
|
|
1791
|
-
}), [...r[4] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
1791
|
+
}), [...r[4] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, Fi)], 6),
|
|
1792
1792
|
t.refused ? (L(), T("span", {
|
|
1793
1793
|
key: 0,
|
|
1794
1794
|
id: W(c),
|
|
1795
1795
|
class: "glim-toggle-refusal"
|
|
1796
|
-
}, U(t.refused), 9,
|
|
1796
|
+
}, U(t.refused), 9, Ii)) : w("", !0),
|
|
1797
1797
|
k(n, { state: W(s) }, null, 8, ["state"])
|
|
1798
1798
|
], 64));
|
|
1799
1799
|
}
|
|
1800
|
-
}),
|
|
1800
|
+
}), Ri = {
|
|
1801
1801
|
key: 0,
|
|
1802
1802
|
class: "glim-fortress-sub"
|
|
1803
|
-
},
|
|
1803
|
+
}, zi = { class: "glim-permissions" }, Bi = ["data-permission"], Vi = {
|
|
1804
1804
|
class: "glim-permission-pair",
|
|
1805
1805
|
"aria-hidden": "true"
|
|
1806
|
-
},
|
|
1806
|
+
}, Hi = ["src"], Ui = { class: "glim-permission-to" }, Wi = ["src"], Gi = { class: "glim-permission-text" }, Ki = { class: "glim-permission-title" }, qi = {
|
|
1807
1807
|
key: 0,
|
|
1808
1808
|
class: "glim-fortress-sub"
|
|
1809
|
-
},
|
|
1809
|
+
}, Ji = /* @__PURE__ */ A({
|
|
1810
1810
|
__name: "FortressPermissions",
|
|
1811
1811
|
props: {
|
|
1812
1812
|
text: {},
|
|
@@ -1818,7 +1818,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1818
1818
|
hueIndex: {}
|
|
1819
1819
|
},
|
|
1820
1820
|
setup(e) {
|
|
1821
|
-
let t = e, n = R("all"), r = S(() =>
|
|
1821
|
+
let t = e, n = R("all"), r = S(() => jt(t.permissions, t.app.id)), i = S(() => r.value.length < t.permissions.length), a = S(() => n.value === "all" || !i.value ? t.permissions : r.value), o = S(() => [{
|
|
1822
1822
|
id: "all",
|
|
1823
1823
|
label: `${t.text.all} ${t.permissions.length}`
|
|
1824
1824
|
}, {
|
|
@@ -1833,15 +1833,15 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
t.notify?.(n.error ?? t.text.failed, "fail");
|
|
1835
1835
|
let r = document.querySelector(`[data-permission="${CSS.escape(e.id)}"] .glim-toggle`);
|
|
1836
|
-
r &&
|
|
1836
|
+
r && on(r);
|
|
1837
1837
|
}
|
|
1838
|
-
return (t, r) => (L(), C(
|
|
1838
|
+
return (t, r) => (L(), C(er, {
|
|
1839
1839
|
"data-glim": "FortressPermissions",
|
|
1840
1840
|
title: e.text.permissions,
|
|
1841
1841
|
hint: e.text.permissionsAbout,
|
|
1842
1842
|
"hue-index": e.hueIndex
|
|
1843
1843
|
}, {
|
|
1844
|
-
default: J(() => [e.permissions.length === 0 ? (L(), T("p",
|
|
1844
|
+
default: J(() => [e.permissions.length === 0 ? (L(), T("p", Ri, U(e.text.noPermissions), 1)) : (L(), T(b, { key: 1 }, [i.value ? (L(), C(Ni, {
|
|
1845
1845
|
key: 0,
|
|
1846
1846
|
modelValue: n.value,
|
|
1847
1847
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -1853,35 +1853,35 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1853
1853
|
"modelValue",
|
|
1854
1854
|
"label",
|
|
1855
1855
|
"items"
|
|
1856
|
-
])) : w("", !0), E("ul",
|
|
1856
|
+
])) : w("", !0), E("ul", zi, [(L(!0), T(b, null, z(a.value, (e) => (L(), T("li", {
|
|
1857
1857
|
key: e.id,
|
|
1858
1858
|
class: N(["glim-permission", e.on && "glim-permission--on"]),
|
|
1859
1859
|
"data-permission": e.id
|
|
1860
1860
|
}, [
|
|
1861
|
-
E("span",
|
|
1861
|
+
E("span", Vi, [
|
|
1862
1862
|
s(e.from) ? (L(), T("img", {
|
|
1863
1863
|
key: 0,
|
|
1864
1864
|
src: s(e.from),
|
|
1865
1865
|
alt: "",
|
|
1866
1866
|
draggable: "false"
|
|
1867
|
-
}, null, 8,
|
|
1867
|
+
}, null, 8, Hi)) : w("", !0),
|
|
1868
1868
|
k(W(m), {
|
|
1869
1869
|
mark: W(we).expand,
|
|
1870
1870
|
class: "glim-permission-arrow"
|
|
1871
1871
|
}, null, 8, ["mark"]),
|
|
1872
|
-
E("span",
|
|
1872
|
+
E("span", Ui, [(L(!0), T(b, null, z(e.to, (e) => (L(), T(b, { key: e }, [s(e) ? (L(), T("img", {
|
|
1873
1873
|
key: 0,
|
|
1874
1874
|
src: s(e),
|
|
1875
1875
|
alt: "",
|
|
1876
1876
|
draggable: "false"
|
|
1877
|
-
}, null, 8,
|
|
1877
|
+
}, null, 8, Wi)) : w("", !0)], 64))), 128))])
|
|
1878
1878
|
]),
|
|
1879
|
-
E("span",
|
|
1880
|
-
E("span",
|
|
1881
|
-
e.detail ? (L(), T("span",
|
|
1879
|
+
E("span", Gi, [
|
|
1880
|
+
E("span", Ki, U(e.title), 1),
|
|
1881
|
+
e.detail ? (L(), T("span", qi, U(e.detail), 1)) : w("", !0),
|
|
1882
1882
|
B(t.$slots, "extra", { permission: e })
|
|
1883
1883
|
]),
|
|
1884
|
-
k(
|
|
1884
|
+
k(Li, {
|
|
1885
1885
|
"model-value": e.on,
|
|
1886
1886
|
label: e.title,
|
|
1887
1887
|
"hide-label": "",
|
|
@@ -1891,7 +1891,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1891
1891
|
"label",
|
|
1892
1892
|
"onUpdate:modelValue"
|
|
1893
1893
|
])
|
|
1894
|
-
], 10,
|
|
1894
|
+
], 10, Bi))), 128))])], 64))]),
|
|
1895
1895
|
_: 3
|
|
1896
1896
|
}, 8, [
|
|
1897
1897
|
"title",
|
|
@@ -1899,13 +1899,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1899
1899
|
"hue-index"
|
|
1900
1900
|
]));
|
|
1901
1901
|
}
|
|
1902
|
-
}),
|
|
1902
|
+
}), Yi = [
|
|
1903
1903
|
"aria-label",
|
|
1904
1904
|
"aria-invalid",
|
|
1905
1905
|
"aria-describedby",
|
|
1906
1906
|
"disabled",
|
|
1907
1907
|
"type"
|
|
1908
|
-
],
|
|
1908
|
+
], Xi = /* @__PURE__ */ A({
|
|
1909
1909
|
inheritAttrs: !1,
|
|
1910
1910
|
__name: "PasswordField",
|
|
1911
1911
|
props: /*@__PURE__*/ j({
|
|
@@ -1952,7 +1952,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1952
1952
|
disabled: e.disabled,
|
|
1953
1953
|
type: i.value ? "text" : "password",
|
|
1954
1954
|
class: "glim-input"
|
|
1955
|
-
}), null, 16,
|
|
1955
|
+
}), null, 16, Yi), [[fe, r.value]]), k(In, M(e.eyeAttrs, {
|
|
1956
1956
|
tip: i.value ? e.text.hide : e.text.show,
|
|
1957
1957
|
class: "glim-secret-eye",
|
|
1958
1958
|
disabled: e.disabled,
|
|
@@ -1960,7 +1960,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1960
1960
|
}), {
|
|
1961
1961
|
default: J(() => [(L(), C(V(i.value ? W(g) : W(p))))]),
|
|
1962
1962
|
_: 1
|
|
1963
|
-
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (L(), C(
|
|
1963
|
+
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (L(), C(Hr, {
|
|
1964
1964
|
key: 0,
|
|
1965
1965
|
id: l.value.errorId
|
|
1966
1966
|
}, {
|
|
@@ -1968,67 +1968,67 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
1968
1968
|
_: 1
|
|
1969
1969
|
}, 8, ["id"])) : w("", !0)], 64));
|
|
1970
1970
|
}
|
|
1971
|
-
}),
|
|
1971
|
+
}), Zi = { class: "glim-phrase-fields" }, Qi = { class: "glim-phrase-number glim-num" }, $i = [
|
|
1972
1972
|
"data-word",
|
|
1973
1973
|
"value",
|
|
1974
1974
|
"aria-label",
|
|
1975
1975
|
"onInput"
|
|
1976
|
-
],
|
|
1976
|
+
], ea = { class: "glim-fortress-sub" }, ta = {
|
|
1977
1977
|
key: 0,
|
|
1978
1978
|
class: "glim-fortress-note",
|
|
1979
1979
|
"data-fortress": "moves"
|
|
1980
|
-
},
|
|
1980
|
+
}, na = {
|
|
1981
1981
|
key: 1,
|
|
1982
1982
|
class: "glim-fortress-error",
|
|
1983
1983
|
role: "alert"
|
|
1984
|
-
},
|
|
1984
|
+
}, ra = {
|
|
1985
1985
|
key: 1,
|
|
1986
1986
|
class: "glim-fortress-result"
|
|
1987
|
-
},
|
|
1987
|
+
}, ia = {
|
|
1988
1988
|
class: "glim-fortress-result-mark",
|
|
1989
1989
|
"aria-hidden": "true"
|
|
1990
|
-
},
|
|
1990
|
+
}, aa = { class: "glim-fortress-text" }, oa = { class: "glim-fortress-result-title" }, sa = { class: "glim-fortress-sub" }, ca = {
|
|
1991
1991
|
key: 2,
|
|
1992
1992
|
class: "glim-fortress-text"
|
|
1993
|
-
},
|
|
1993
|
+
}, la = { class: "glim-fortress-sub" }, ua = {
|
|
1994
1994
|
key: 0,
|
|
1995
1995
|
class: "glim-fortress-error",
|
|
1996
1996
|
role: "alert"
|
|
1997
|
-
},
|
|
1997
|
+
}, da = {
|
|
1998
1998
|
key: 3,
|
|
1999
1999
|
class: "glim-fortress-text"
|
|
2000
|
-
},
|
|
2000
|
+
}, fa = { class: "glim-fortress-sub" }, pa = {
|
|
2001
2001
|
key: 0,
|
|
2002
2002
|
class: "glim-fortress-error",
|
|
2003
2003
|
role: "alert"
|
|
2004
|
-
},
|
|
2004
|
+
}, ma = {
|
|
2005
2005
|
key: 4,
|
|
2006
2006
|
class: "glim-fortress-text"
|
|
2007
|
-
},
|
|
2007
|
+
}, ha = {
|
|
2008
2008
|
key: 0,
|
|
2009
2009
|
class: "glim-fortress-error",
|
|
2010
2010
|
role: "alert"
|
|
2011
|
-
},
|
|
2011
|
+
}, ga = {
|
|
2012
2012
|
key: 0,
|
|
2013
2013
|
class: "glim-fortress-error",
|
|
2014
2014
|
role: "alert"
|
|
2015
|
-
},
|
|
2015
|
+
}, _a = {
|
|
2016
2016
|
key: 6,
|
|
2017
2017
|
class: "glim-fortress-text"
|
|
2018
|
-
},
|
|
2018
|
+
}, va = { class: "glim-fortress-sub" }, ya = {
|
|
2019
2019
|
key: 0,
|
|
2020
2020
|
class: "glim-fortress-error",
|
|
2021
2021
|
role: "alert"
|
|
2022
|
-
},
|
|
2022
|
+
}, ba = {
|
|
2023
2023
|
key: 7,
|
|
2024
2024
|
class: "glim-fortress-text"
|
|
2025
|
-
},
|
|
2025
|
+
}, xa = { class: "glim-phrase-show" }, Sa = {
|
|
2026
2026
|
class: "glim-phrase-words",
|
|
2027
2027
|
"data-fortress": "words"
|
|
2028
|
-
},
|
|
2028
|
+
}, Ca = { class: "glim-phrase-number glim-num" }, wa = ["aria-label", "viewBox"], Ta = ["width", "height"], Ea = ["d"], Da = { class: "glim-phrase-scan" }, Oa = {
|
|
2029
2029
|
key: 0,
|
|
2030
2030
|
class: "glim-fortress-sub"
|
|
2031
|
-
},
|
|
2031
|
+
}, ka = /* @__PURE__ */ A({
|
|
2032
2032
|
__name: "FortressWindow",
|
|
2033
2033
|
props: {
|
|
2034
2034
|
flow: {},
|
|
@@ -2044,19 +2044,19 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2044
2044
|
setup(e) {
|
|
2045
2045
|
let t = e, n = H(null), r = R(!1), i;
|
|
2046
2046
|
ae(() => clearTimeout(i));
|
|
2047
|
-
let a = S(() => t.state.window), o = S(() => t.pairedWith?.length ?
|
|
2047
|
+
let a = S(() => t.state.window), o = S(() => t.pairedWith?.length ? dt(t.lang, t.pairedWith) : null), s = S(() => ({
|
|
2048
2048
|
cancel: t.text.cancel,
|
|
2049
2049
|
close: t.text.close
|
|
2050
2050
|
})), c = S(() => t.state.busy !== null), l;
|
|
2051
2051
|
ae(() => l?.()), q(() => t.state.refusal, (e) => {
|
|
2052
2052
|
let t = e && n.value?.card?.querySelector(`[data-fortress="${e.button}"]`);
|
|
2053
|
-
t && (l =
|
|
2053
|
+
t && (l = on(t));
|
|
2054
2054
|
}), q(() => a.value.kind === "join" ? a.value.focus : -1, async (e) => {
|
|
2055
2055
|
await ie(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
|
|
2056
2056
|
}), q(() => a.value.kind, async () => {
|
|
2057
2057
|
await ie();
|
|
2058
2058
|
let e = n.value?.card;
|
|
2059
|
-
e &&
|
|
2059
|
+
e && Pn(e)?.focus();
|
|
2060
2060
|
});
|
|
2061
2061
|
function u(e, t, n, r, i = !1) {
|
|
2062
2062
|
return {
|
|
@@ -2081,7 +2081,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2081
2081
|
let p = S(() => {
|
|
2082
2082
|
let e = a.value;
|
|
2083
2083
|
if (e.kind !== "phrase" && e.kind !== "changed") return null;
|
|
2084
|
-
let n =
|
|
2084
|
+
let n = Bt(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
|
|
2085
2085
|
return {
|
|
2086
2086
|
...n,
|
|
2087
2087
|
side: n.size + 8
|
|
@@ -2097,7 +2097,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2097
2097
|
case "join": return {
|
|
2098
2098
|
title: e.joinTitle,
|
|
2099
2099
|
size: "wide",
|
|
2100
|
-
actions: [u("join", r.join, e.join, i.join, !
|
|
2100
|
+
actions: [u("join", r.join, e.join, i.join, !Mt(n.words))]
|
|
2101
2101
|
};
|
|
2102
2102
|
case "joined": return {
|
|
2103
2103
|
title: e.joinTitle,
|
|
@@ -2143,7 +2143,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2143
2143
|
actions: []
|
|
2144
2144
|
};
|
|
2145
2145
|
});
|
|
2146
|
-
return (t, i) => (L(), C(
|
|
2146
|
+
return (t, i) => (L(), C(ei, {
|
|
2147
2147
|
ref_key: "win",
|
|
2148
2148
|
ref: n,
|
|
2149
2149
|
title: _.value.title,
|
|
@@ -2159,10 +2159,10 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2159
2159
|
onSubmit: i[0] ||= Y((t) => e.flow.join(), ["prevent"])
|
|
2160
2160
|
}, [
|
|
2161
2161
|
E("p", null, U(e.text.about), 1),
|
|
2162
|
-
E("div",
|
|
2162
|
+
E("div", Zi, [(L(!0), T(b, null, z(a.value.words, (t, n) => (L(), T("label", {
|
|
2163
2163
|
key: n,
|
|
2164
2164
|
class: "glim-phrase-field"
|
|
2165
|
-
}, [E("span",
|
|
2165
|
+
}, [E("span", Qi, U(n + 1), 1), E("input", {
|
|
2166
2166
|
class: "glim-input",
|
|
2167
2167
|
"data-word": n,
|
|
2168
2168
|
value: t,
|
|
@@ -2172,32 +2172,32 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2172
2172
|
autocorrect: "off",
|
|
2173
2173
|
spellcheck: "false",
|
|
2174
2174
|
onInput: (t) => e.flow.enter(n, t.target.value)
|
|
2175
|
-
}, null, 40,
|
|
2175
|
+
}, null, 40, $i)]))), 128))]),
|
|
2176
2176
|
i[4] ||= E("button", {
|
|
2177
2177
|
type: "submit",
|
|
2178
2178
|
hidden: ""
|
|
2179
2179
|
}, null, -1),
|
|
2180
|
-
E("p",
|
|
2181
|
-
o.value ? (L(), T("p",
|
|
2180
|
+
E("p", ea, U(e.text.phraseWhere), 1),
|
|
2181
|
+
o.value ? (L(), T("p", ta, [W(d)("info") ? (L(), C(V(W(d)("info")), { key: 0 })) : w("", !0), E("span", null, U(W(X)(e.text.moves, {
|
|
2182
2182
|
app: e.app.name,
|
|
2183
2183
|
devices: o.value
|
|
2184
2184
|
})), 1)])) : w("", !0),
|
|
2185
|
-
e.state.error ? (L(), T("p",
|
|
2186
|
-
], 32)) : a.value.kind === "joined" ? (L(), T("div",
|
|
2185
|
+
e.state.error ? (L(), T("p", na, U(e.state.error), 1)) : w("", !0)
|
|
2186
|
+
], 32)) : a.value.kind === "joined" ? (L(), T("div", ra, [E("span", ia, [k(W(m), { mark: W(we).check }, null, 8, ["mark"])]), E("div", aa, [E("p", oa, U(W(X)(e.text.joinedTitle, { app: e.app.name })), 1), E("p", sa, U(o.value ? `${W(X)(e.text.joinedMoved, { devices: o.value })} ` : "") + U(e.text.joinedNext), 1)])])) : a.value.kind === "leave" ? (L(), T("div", ca, [
|
|
2187
2187
|
E("p", null, U(W(X)(e.text.leaveBody, { app: e.app.name })) + U(o.value ? ` ${W(X)(e.text.leavePairing, { devices: o.value })}` : "") + U(e.leaveNote ? ` ${e.leaveNote}` : ""), 1),
|
|
2188
|
-
E("p",
|
|
2189
|
-
e.state.error ? (L(), T("p",
|
|
2190
|
-
])) : a.value.kind === "remove" ? (L(), T("div",
|
|
2188
|
+
E("p", la, U(e.text.leaveBack), 1),
|
|
2189
|
+
e.state.error ? (L(), T("p", ua, U(e.state.error), 1)) : w("", !0)
|
|
2190
|
+
])) : a.value.kind === "remove" ? (L(), T("div", da, [
|
|
2191
2191
|
E("p", null, U(W(X)(e.text.removeBody, { device: a.value.device })), 1),
|
|
2192
|
-
E("p",
|
|
2193
|
-
e.state.error ? (L(), T("p",
|
|
2194
|
-
])) : a.value.kind === "removed" ? (L(), T("div",
|
|
2192
|
+
E("p", fa, U(e.text.removeBack), 1),
|
|
2193
|
+
e.state.error ? (L(), T("p", pa, U(e.state.error), 1)) : w("", !0)
|
|
2194
|
+
])) : a.value.kind === "removed" ? (L(), T("div", ma, [E("p", null, U(W(X)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (L(), T("p", ha, U(e.state.error), 1)) : w("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (L(), T("form", {
|
|
2195
2195
|
key: 5,
|
|
2196
2196
|
class: "glim-fortress-text",
|
|
2197
2197
|
onSubmit: i[2] ||= Y((t) => e.flow.unlock(), ["prevent"])
|
|
2198
2198
|
}, [
|
|
2199
2199
|
E("p", null, U(W(X)(e.text.phrasePassword, { app: e.app.name })), 1),
|
|
2200
|
-
k(
|
|
2200
|
+
k(Xi, {
|
|
2201
2201
|
"model-value": a.value.password,
|
|
2202
2202
|
"aria-label": W(X)(e.text.password, { app: e.app.name }),
|
|
2203
2203
|
placeholder: W(X)(e.text.password, { app: e.app.name }),
|
|
@@ -2212,15 +2212,15 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2212
2212
|
"placeholder",
|
|
2213
2213
|
"text"
|
|
2214
2214
|
]),
|
|
2215
|
-
e.state.error ? (L(), T("p",
|
|
2216
|
-
], 32)) : a.value.kind === "change" ? (L(), T("div",
|
|
2215
|
+
e.state.error ? (L(), T("p", ga, U(e.state.error), 1)) : w("", !0)
|
|
2216
|
+
], 32)) : a.value.kind === "change" ? (L(), T("div", _a, [
|
|
2217
2217
|
E("p", null, U(e.text.changeBody), 1),
|
|
2218
|
-
E("p",
|
|
2219
|
-
e.state.error ? (L(), T("p",
|
|
2220
|
-
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (L(), T("div",
|
|
2218
|
+
E("p", va, U(e.text.changeAway), 1),
|
|
2219
|
+
e.state.error ? (L(), T("p", ya, U(e.state.error), 1)) : w("", !0)
|
|
2220
|
+
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (L(), T("div", ba, [
|
|
2221
2221
|
E("p", null, U(e.text.phraseBody), 1),
|
|
2222
|
-
E("div",
|
|
2223
|
-
E("ol",
|
|
2222
|
+
E("div", xa, [
|
|
2223
|
+
E("ol", Sa, [(L(!0), T(b, null, z(a.value.words, (e, t) => (L(), T("li", { key: t }, [E("span", Ca, U(t + 1), 1), O(U(e), 1)]))), 128))]),
|
|
2224
2224
|
p.value ? (L(), T("svg", {
|
|
2225
2225
|
key: 0,
|
|
2226
2226
|
class: "glim-phrase-qr",
|
|
@@ -2235,13 +2235,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2235
2235
|
width: p.value.side,
|
|
2236
2236
|
height: p.value.side,
|
|
2237
2237
|
fill: "#ffffff"
|
|
2238
|
-
}, null, 8,
|
|
2238
|
+
}, null, 8, Ta), E("path", {
|
|
2239
2239
|
d: p.value.path,
|
|
2240
2240
|
fill: "#161616"
|
|
2241
|
-
}, null, 8,
|
|
2242
|
-
E("p",
|
|
2241
|
+
}, null, 8, Ea)], 8, wa)) : w("", !0),
|
|
2242
|
+
E("p", Da, U(e.text.scanHint), 1)
|
|
2243
2243
|
]),
|
|
2244
|
-
a.value.kind === "changed" && a.value.left.length ? (L(), T("p",
|
|
2244
|
+
a.value.kind === "changed" && a.value.left.length ? (L(), T("p", Oa, U(W(X)(e.text.changedLeft, { devices: W(dt)(e.lang, a.value.left) })), 1)) : w("", !0)
|
|
2245
2245
|
])) : w("", !0)]),
|
|
2246
2246
|
_: 1
|
|
2247
2247
|
}, 8, [
|
|
@@ -2252,25 +2252,25 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2252
2252
|
"text"
|
|
2253
2253
|
]));
|
|
2254
2254
|
}
|
|
2255
|
-
}),
|
|
2255
|
+
}), Aa = {
|
|
2256
2256
|
"data-glim": "Fortress",
|
|
2257
2257
|
class: "glim-fortress"
|
|
2258
|
-
},
|
|
2258
|
+
}, ja = { class: "glim-fortress-grid" }, Ma = {
|
|
2259
2259
|
key: 0,
|
|
2260
2260
|
class: "glim-card glim-instance glim-instance--out",
|
|
2261
2261
|
"data-fortress": "out"
|
|
2262
|
-
},
|
|
2262
|
+
}, Na = { class: "glim-instance-title" }, Pa = { class: "glim-instance-hint" }, Fa = {
|
|
2263
2263
|
key: 0,
|
|
2264
2264
|
class: "glim-instance-found"
|
|
2265
|
-
},
|
|
2265
|
+
}, Ia = ["src"], La = { class: "glim-fortress-switch-text" }, Ra = { class: "glim-fortress-switch-name" }, za = { class: "glim-fortress-sub" }, Ba = {
|
|
2266
2266
|
key: 1,
|
|
2267
2267
|
class: "glim-fortress-removed",
|
|
2268
2268
|
"data-fortress": "removed",
|
|
2269
2269
|
role: "status"
|
|
2270
|
-
},
|
|
2270
|
+
}, Va = { class: "glim-fortress-grid" }, Ha = {
|
|
2271
2271
|
key: 3,
|
|
2272
2272
|
class: "glim-fortress-actions"
|
|
2273
|
-
},
|
|
2273
|
+
}, Ua = /* @__PURE__ */ A({
|
|
2274
2274
|
__name: "Fortress",
|
|
2275
2275
|
props: {
|
|
2276
2276
|
text: {},
|
|
@@ -2310,7 +2310,8 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2310
2310
|
setup(e, { emit: t }) {
|
|
2311
2311
|
let n = e, r = t, i = Ke(() => ({
|
|
2312
2312
|
...n,
|
|
2313
|
-
failed: n.text.failed
|
|
2313
|
+
failed: n.text.failed,
|
|
2314
|
+
joinRefusal: (e) => ot(n.text, e)
|
|
2314
2315
|
})), a = H(i.state()), o = i.subscribe(() => a.value = i.state());
|
|
2315
2316
|
F(o);
|
|
2316
2317
|
let s = S(() => ({
|
|
@@ -2323,20 +2324,20 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2323
2324
|
unlock: "unlock",
|
|
2324
2325
|
copy: "copy",
|
|
2325
2326
|
...n.labelKeys
|
|
2326
|
-
})), c = R(
|
|
2327
|
+
})), c = R(gn()), l = S(() => n.showOthers ?? c.value);
|
|
2327
2328
|
function u(e) {
|
|
2328
|
-
r("update:showOthers", e), n.showOthers === void 0 && (
|
|
2329
|
+
r("update:showOthers", e), n.showOthers === void 0 && (hn(e), c.value = e);
|
|
2329
2330
|
}
|
|
2330
|
-
let f = S(() => X(n.text.removedNote, { devices:
|
|
2331
|
-
return (t, n) => (L(), T("div",
|
|
2332
|
-
E("div",
|
|
2333
|
-
E("h3",
|
|
2334
|
-
E("p",
|
|
2335
|
-
e.found ? (L(), T("p",
|
|
2331
|
+
let f = S(() => X(n.text.removedNote, { devices: dt(n.lang, n.removed) })), p = S(() => At(n.text, n.lang, n.apps));
|
|
2332
|
+
return (t, n) => (L(), T("div", Aa, [
|
|
2333
|
+
E("div", ja, [B(t.$slots, "default", { remove: W(i).openRemove }), e.joined ? w("", !0) : (L(), T("div", Ma, [
|
|
2334
|
+
E("h3", Na, U(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
|
|
2335
|
+
E("p", Pa, U(W(X)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
|
|
2336
|
+
e.found ? (L(), T("p", Fa, [e.found.logo ? (L(), T("img", {
|
|
2336
2337
|
key: 0,
|
|
2337
2338
|
src: e.found.logo,
|
|
2338
2339
|
alt: ""
|
|
2339
|
-
}, null, 8,
|
|
2340
|
+
}, null, 8, Ia)) : w("", !0), E("span", null, U(W(X)(e.text.found, {
|
|
2340
2341
|
app: e.found.app,
|
|
2341
2342
|
device: e.found.device
|
|
2342
2343
|
})), 1)])) : w("", !0)
|
|
@@ -2345,14 +2346,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2345
2346
|
key: 0,
|
|
2346
2347
|
class: "glim-card glim-fortress-switch glim-hue",
|
|
2347
2348
|
style: P(W(it)(e.hueStart))
|
|
2348
|
-
}, [E("span",
|
|
2349
|
+
}, [E("span", La, [E("span", Ra, [O(U(e.text.showOthers), 1), k($, { tip: e.text.about }, null, 8, ["tip"])]), E("span", za, U(p.value), 1)]), k(Li, {
|
|
2349
2350
|
"model-value": l.value,
|
|
2350
2351
|
label: e.text.showOthers,
|
|
2351
2352
|
"hide-label": "",
|
|
2352
2353
|
"data-fortress": "others",
|
|
2353
2354
|
"onUpdate:modelValue": u
|
|
2354
2355
|
}, null, 8, ["model-value", "label"])], 4)) : w("", !0),
|
|
2355
|
-
e.joined && e.removed.length ? (L(), T("div",
|
|
2356
|
+
e.joined && e.removed.length ? (L(), T("div", Ba, [
|
|
2356
2357
|
W(d)("info") ? (L(), C(V(W(d)("info")), { key: 0 })) : w("", !0),
|
|
2357
2358
|
E("span", null, U(f.value), 1),
|
|
2358
2359
|
e.onChangePhrase ? (L(), C(Q, {
|
|
@@ -2364,11 +2365,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2364
2365
|
onClick: n[0] ||= (e) => W(i).openChange()
|
|
2365
2366
|
}, null, 8, ["label", "label-key"])) : w("", !0)
|
|
2366
2367
|
])) : w("", !0),
|
|
2367
|
-
e.joined && l.value ? (L(), T(b, { key: 2 }, [E("div",
|
|
2368
|
+
e.joined && l.value ? (L(), T(b, { key: 2 }, [E("div", Va, [(L(!0), T(b, null, z(e.apps, (n, r) => (L(), T(b, { key: n.id }, [t.$slots.app ? B(t.$slots, "app", {
|
|
2368
2369
|
app: n,
|
|
2369
2370
|
hueIndex: e.hueStart + 1 + r,
|
|
2370
2371
|
remove: e.onRemove && W(i).openRemove
|
|
2371
|
-
}, void 0, void 0, 0) : (L(), C(
|
|
2372
|
+
}, void 0, void 0, 0) : (L(), C(Ei, {
|
|
2372
2373
|
key: 1,
|
|
2373
2374
|
app: n,
|
|
2374
2375
|
text: e.text,
|
|
@@ -2385,7 +2386,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2385
2386
|
"on-open",
|
|
2386
2387
|
"on-remove",
|
|
2387
2388
|
"remove-key"
|
|
2388
|
-
]))], 64))), 128))]), k(
|
|
2389
|
+
]))], 64))), 128))]), k(Ji, {
|
|
2389
2390
|
text: e.text,
|
|
2390
2391
|
app: e.app,
|
|
2391
2392
|
apps: [e.app, ...e.apps],
|
|
@@ -2405,7 +2406,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2405
2406
|
"notify",
|
|
2406
2407
|
"hue-index"
|
|
2407
2408
|
])], 64)) : w("", !0),
|
|
2408
|
-
!e.joined || e.onShowPhrase ? (L(), T("div",
|
|
2409
|
+
!e.joined || e.onShowPhrase ? (L(), T("div", Ha, [e.joined ? (L(), C(Q, {
|
|
2409
2410
|
key: 0,
|
|
2410
2411
|
label: e.text.showPhrase,
|
|
2411
2412
|
"label-key": s.value.showPhrase,
|
|
@@ -2427,7 +2428,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2427
2428
|
"data-fortress": "open-join",
|
|
2428
2429
|
onClick: n[2] ||= (e) => W(i).openJoin()
|
|
2429
2430
|
}, null, 8, ["label", "label-key"]))])) : w("", !0),
|
|
2430
|
-
a.value.window ? (L(), C(
|
|
2431
|
+
a.value.window ? (L(), C(ka, {
|
|
2431
2432
|
key: 4,
|
|
2432
2433
|
flow: W(i),
|
|
2433
2434
|
state: a.value,
|
|
@@ -2449,7 +2450,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2449
2450
|
])) : w("", !0)
|
|
2450
2451
|
]));
|
|
2451
2452
|
}
|
|
2452
|
-
}),
|
|
2453
|
+
}), Wa = /* @__PURE__ */ A({
|
|
2453
2454
|
__name: "FortressPairing",
|
|
2454
2455
|
props: {
|
|
2455
2456
|
text: {},
|
|
@@ -2482,14 +2483,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2482
2483
|
copy: "copy",
|
|
2483
2484
|
...t.labelKeys
|
|
2484
2485
|
}));
|
|
2485
|
-
return (t, i) => (L(), C(
|
|
2486
|
+
return (t, i) => (L(), C(er, {
|
|
2486
2487
|
"data-glim": "FortressPairing",
|
|
2487
2488
|
title: e.text.pairing,
|
|
2488
2489
|
"hue-index": e.hueIndex
|
|
2489
2490
|
}, {
|
|
2490
2491
|
default: J(() => [
|
|
2491
2492
|
B(t.$slots, "default"),
|
|
2492
|
-
e.onShowPhrase || e.onChangePhrase ? (L(), C(
|
|
2493
|
+
e.onShowPhrase || e.onChangePhrase ? (L(), C(Kr, {
|
|
2493
2494
|
key: 0,
|
|
2494
2495
|
label: e.text.phraseTitle,
|
|
2495
2496
|
hint: e.onChangePhrase ? e.text.changePhraseAbout : void 0
|
|
@@ -2514,7 +2515,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2514
2515
|
}, null, 8, ["label", "label-key"])) : w("", !0)]),
|
|
2515
2516
|
_: 1
|
|
2516
2517
|
}, 8, ["label", "hint"])) : w("", !0),
|
|
2517
|
-
k(
|
|
2518
|
+
k(Kr, {
|
|
2518
2519
|
label: e.text.leaveRow,
|
|
2519
2520
|
hint: W(X)(e.text.leaveAbout, { app: e.app.name })
|
|
2520
2521
|
}, {
|
|
@@ -2527,7 +2528,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2527
2528
|
_: 1
|
|
2528
2529
|
}, 8, ["label", "hint"]),
|
|
2529
2530
|
B(t.$slots, "after"),
|
|
2530
|
-
r.value.window ? (L(), C(
|
|
2531
|
+
r.value.window ? (L(), C(ka, {
|
|
2531
2532
|
key: 1,
|
|
2532
2533
|
flow: W(n),
|
|
2533
2534
|
state: r.value,
|
|
@@ -2553,13 +2554,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2553
2554
|
_: 3
|
|
2554
2555
|
}, 8, ["title", "hue-index"]));
|
|
2555
2556
|
}
|
|
2556
|
-
}),
|
|
2557
|
+
}), Ga = [
|
|
2557
2558
|
"aria-label",
|
|
2558
2559
|
"aria-valuemin",
|
|
2559
2560
|
"aria-valuemax",
|
|
2560
2561
|
"aria-valuenow",
|
|
2561
2562
|
"aria-valuetext"
|
|
2562
|
-
],
|
|
2563
|
+
], Ka = /* @__PURE__ */ A({
|
|
2563
2564
|
__name: "ProgressBar",
|
|
2564
2565
|
props: {
|
|
2565
2566
|
value: { default: null },
|
|
@@ -2575,7 +2576,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2575
2576
|
valueText: {}
|
|
2576
2577
|
},
|
|
2577
2578
|
setup(e) {
|
|
2578
|
-
let t = e, n = S(() =>
|
|
2579
|
+
let t = e, n = S(() => zt(t.value, {
|
|
2579
2580
|
paused: t.paused,
|
|
2580
2581
|
failed: t.failed
|
|
2581
2582
|
}));
|
|
@@ -2591,48 +2592,48 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2591
2592
|
}, [E("span", {
|
|
2592
2593
|
class: "glim-progress-fill",
|
|
2593
2594
|
style: P(n.value.width ? { width: n.value.width } : void 0)
|
|
2594
|
-
}, null, 4)], 10,
|
|
2595
|
+
}, null, 4)], 10, Ga));
|
|
2595
2596
|
}
|
|
2596
|
-
}),
|
|
2597
|
+
}), qa = { class: "glim-status-title" }, Ja = ["src"], Ya = {
|
|
2597
2598
|
class: "glim-fortress-text",
|
|
2598
2599
|
"data-fortress": "status"
|
|
2599
|
-
},
|
|
2600
|
+
}, Xa = {
|
|
2600
2601
|
key: 0,
|
|
2601
2602
|
class: "glim-fortress-note",
|
|
2602
2603
|
"data-fortress": "loading"
|
|
2603
|
-
},
|
|
2604
|
+
}, Za = { role: "status" }, Qa = {
|
|
2604
2605
|
key: 1,
|
|
2605
2606
|
class: "glim-fortress-note",
|
|
2606
2607
|
role: "status",
|
|
2607
2608
|
"data-fortress": "error"
|
|
2608
|
-
},
|
|
2609
|
+
}, $a = {
|
|
2609
2610
|
key: 2,
|
|
2610
2611
|
class: "glim-status-state",
|
|
2611
2612
|
"data-fortress": "state"
|
|
2612
|
-
},
|
|
2613
|
+
}, eo = {
|
|
2613
2614
|
key: 0,
|
|
2614
2615
|
class: "glim-fortress-sub"
|
|
2615
|
-
},
|
|
2616
|
+
}, to = {
|
|
2616
2617
|
key: 3,
|
|
2617
2618
|
class: "glim-status-section",
|
|
2618
2619
|
"data-fortress": "needs"
|
|
2619
|
-
},
|
|
2620
|
+
}, no = { class: "glim-status-heading" }, ro = { class: "glim-status-list" }, io = {
|
|
2620
2621
|
key: 4,
|
|
2621
2622
|
class: "glim-status-section",
|
|
2622
2623
|
"data-fortress": "work"
|
|
2623
|
-
},
|
|
2624
|
+
}, ao = { class: "glim-status-heading" }, oo = { class: "glim-status-list" }, so = {
|
|
2624
2625
|
key: 5,
|
|
2625
2626
|
class: "glim-status-section",
|
|
2626
2627
|
"data-fortress": "next"
|
|
2627
|
-
},
|
|
2628
|
+
}, co = { class: "glim-status-heading" }, lo = { class: "glim-status-list" }, uo = { class: "glim-status-at glim-num" }, fo = {
|
|
2628
2629
|
key: 6,
|
|
2629
2630
|
class: "glim-status-section",
|
|
2630
2631
|
"data-fortress": "log"
|
|
2631
|
-
},
|
|
2632
|
+
}, po = { class: "glim-status-heading" }, mo = { class: "glim-status-list" }, ho = { class: "glim-status-at glim-num" }, go = {
|
|
2632
2633
|
key: 7,
|
|
2633
2634
|
class: "glim-fortress-sub",
|
|
2634
2635
|
"data-fortress": "where"
|
|
2635
|
-
},
|
|
2636
|
+
}, _o = /* @__PURE__ */ A({
|
|
2636
2637
|
__name: "FortressStatusWindow",
|
|
2637
2638
|
props: {
|
|
2638
2639
|
app: {},
|
|
@@ -2646,7 +2647,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2646
2647
|
onClose: { type: Function }
|
|
2647
2648
|
},
|
|
2648
2649
|
setup(e) {
|
|
2649
|
-
let t = e, n = S(() =>
|
|
2650
|
+
let t = e, n = S(() => mn({
|
|
2650
2651
|
app: t.app,
|
|
2651
2652
|
instance: t.instance,
|
|
2652
2653
|
report: t.report,
|
|
@@ -2660,7 +2661,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2660
2661
|
glyph: h,
|
|
2661
2662
|
wayOut: !0
|
|
2662
2663
|
}]), i = d("info");
|
|
2663
|
-
return (t, a) => (L(), C(
|
|
2664
|
+
return (t, a) => (L(), C(ei, {
|
|
2664
2665
|
"data-glim": "FortressStatusWindow",
|
|
2665
2666
|
lang: e.lang,
|
|
2666
2667
|
title: n.value.title,
|
|
@@ -2671,22 +2672,22 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2671
2672
|
},
|
|
2672
2673
|
onClose: a[0] ||= (t) => e.onClose()
|
|
2673
2674
|
}, {
|
|
2674
|
-
title: J(() => [E("span",
|
|
2675
|
+
title: J(() => [E("span", qa, [e.app.logo ? (L(), T("img", {
|
|
2675
2676
|
key: 0,
|
|
2676
2677
|
src: e.app.logo,
|
|
2677
2678
|
alt: ""
|
|
2678
|
-
}, null, 8,
|
|
2679
|
-
default: J(() => [E("div",
|
|
2680
|
-
n.value.loading ? (L(), T("p",
|
|
2679
|
+
}, null, 8, Ja)) : w("", !0), O(U(n.value.title), 1)])]),
|
|
2680
|
+
default: J(() => [E("div", Ya, [
|
|
2681
|
+
n.value.loading ? (L(), T("p", Xa, [k(Yn, {
|
|
2681
2682
|
size: "small",
|
|
2682
2683
|
delay: 0
|
|
2683
|
-
}), E("span",
|
|
2684
|
-
n.value.error === void 0 ? w("", !0) : (L(), T("p",
|
|
2685
|
-
n.value.state ? (L(), T("p",
|
|
2684
|
+
}), E("span", Za, U(n.value.loading), 1)])) : w("", !0),
|
|
2685
|
+
n.value.error === void 0 ? w("", !0) : (L(), T("p", Qa, [W(i) ? (L(), C(V(W(i)), { key: 0 })) : w("", !0), E("span", null, U(n.value.error), 1)])),
|
|
2686
|
+
n.value.state ? (L(), T("p", $a, [k(Z, { tone: n.value.state.tone }, {
|
|
2686
2687
|
default: J(() => [O(U(n.value.state.label), 1)]),
|
|
2687
2688
|
_: 1
|
|
2688
|
-
}, 8, ["tone"]), n.value.quiet ? (L(), T("span",
|
|
2689
|
-
n.value.needsYou.length ? (L(), T("section",
|
|
2689
|
+
}, 8, ["tone"]), n.value.quiet ? (L(), T("span", eo, U(n.value.quiet), 1)) : w("", !0)])) : w("", !0),
|
|
2690
|
+
n.value.needsYou.length ? (L(), T("section", to, [E("h3", no, U(e.text.statusNeedsYou), 1), E("ul", ro, [(L(!0), T(b, null, z(n.value.needsYou, (e, t) => (L(), T("li", {
|
|
2690
2691
|
key: t,
|
|
2691
2692
|
class: "glim-status-line"
|
|
2692
2693
|
}, [
|
|
@@ -2700,26 +2701,26 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2700
2701
|
a[1] ||= O(),
|
|
2701
2702
|
E("span", null, U(e.text), 1)
|
|
2702
2703
|
]))), 128))])])) : w("", !0),
|
|
2703
|
-
n.value.work.length ? (L(), T("section",
|
|
2704
|
+
n.value.work.length ? (L(), T("section", io, [E("h3", ao, U(e.text.statusWork), 1), E("ul", oo, [(L(!0), T(b, null, z(n.value.work, (e, t) => (L(), T("li", {
|
|
2704
2705
|
key: t,
|
|
2705
2706
|
class: "glim-status-work"
|
|
2706
|
-
}, [E("span", null, U(e.title), 1), k(
|
|
2707
|
+
}, [E("span", null, U(e.title), 1), k(Ka, {
|
|
2707
2708
|
value: e.progress,
|
|
2708
2709
|
label: e.title
|
|
2709
2710
|
}, null, 8, ["value", "label"])]))), 128))])])) : w("", !0),
|
|
2710
|
-
n.value.next.length ? (L(), T("section",
|
|
2711
|
+
n.value.next.length ? (L(), T("section", so, [E("h3", co, U(e.text.statusNext), 1), E("ul", lo, [(L(!0), T(b, null, z(n.value.next, (e, t) => (L(), T("li", {
|
|
2711
2712
|
key: t,
|
|
2712
2713
|
class: "glim-status-line"
|
|
2713
2714
|
}, [
|
|
2714
2715
|
E("span", null, U(e.title), 1),
|
|
2715
2716
|
a[2] ||= O(),
|
|
2716
|
-
E("span",
|
|
2717
|
+
E("span", uo, U(e.at), 1)
|
|
2717
2718
|
]))), 128))])])) : w("", !0),
|
|
2718
|
-
n.value.log.length ? (L(), T("section",
|
|
2719
|
+
n.value.log.length ? (L(), T("section", fo, [E("h3", po, U(e.text.statusLog), 1), E("ul", mo, [(L(!0), T(b, null, z(n.value.log, (e, t) => (L(), T("li", {
|
|
2719
2720
|
key: t,
|
|
2720
2721
|
class: "glim-status-line"
|
|
2721
2722
|
}, [
|
|
2722
|
-
E("span",
|
|
2723
|
+
E("span", ho, U(e.at), 1),
|
|
2723
2724
|
a[3] ||= O(),
|
|
2724
2725
|
e.level ? (L(), C(Z, {
|
|
2725
2726
|
key: 0,
|
|
@@ -2731,7 +2732,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2731
2732
|
a[4] ||= O(),
|
|
2732
2733
|
E("span", null, U(e.text), 1)
|
|
2733
2734
|
]))), 128))])])) : w("", !0),
|
|
2734
|
-
n.value.where ? (L(), T("p",
|
|
2735
|
+
n.value.where ? (L(), T("p", go, U(n.value.where), 1)) : w("", !0)
|
|
2735
2736
|
])]),
|
|
2736
2737
|
_: 1
|
|
2737
2738
|
}, 8, [
|
|
@@ -2741,10 +2742,10 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2741
2742
|
"text"
|
|
2742
2743
|
]));
|
|
2743
2744
|
}
|
|
2744
|
-
}),
|
|
2745
|
+
}), vo = {
|
|
2745
2746
|
class: "glim-glyph-field-glyph",
|
|
2746
2747
|
"aria-hidden": "true"
|
|
2747
|
-
},
|
|
2748
|
+
}, yo = ["aria-label"], bo = /* @__PURE__ */ A({
|
|
2748
2749
|
inheritAttrs: !1,
|
|
2749
2750
|
__name: "GlyphField",
|
|
2750
2751
|
props: /*@__PURE__*/ j({
|
|
@@ -2770,7 +2771,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2770
2771
|
]),
|
|
2771
2772
|
style: P(t.$attrs.style)
|
|
2772
2773
|
}, [
|
|
2773
|
-
E("span",
|
|
2774
|
+
E("span", vo, [(L(), C(V(e.glyph)))]),
|
|
2774
2775
|
ge(E("input", M({
|
|
2775
2776
|
ref_key: "input",
|
|
2776
2777
|
ref: o,
|
|
@@ -2781,11 +2782,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2781
2782
|
...t.$attrs,
|
|
2782
2783
|
class: void 0,
|
|
2783
2784
|
style: void 0
|
|
2784
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
2785
|
+
}, { class: "glim-glyph-field-input" }), null, 16, yo), [[pe, r.value]]),
|
|
2785
2786
|
B(t.$slots, "after")
|
|
2786
2787
|
], 6));
|
|
2787
2788
|
}
|
|
2788
|
-
}),
|
|
2789
|
+
}), xo = /* @__PURE__ */ A({
|
|
2789
2790
|
__name: "GlyphTile",
|
|
2790
2791
|
props: {
|
|
2791
2792
|
glyph: {},
|
|
@@ -2804,12 +2805,12 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2804
2805
|
"aria-hidden": "true"
|
|
2805
2806
|
}, [(L(), C(V(e.glyph)))], 2));
|
|
2806
2807
|
}
|
|
2807
|
-
}),
|
|
2808
|
+
}), So = {
|
|
2808
2809
|
key: 0,
|
|
2809
2810
|
"data-glim": "IconButton",
|
|
2810
2811
|
class: "glim-icon-btn-gap",
|
|
2811
2812
|
"aria-hidden": "true"
|
|
2812
|
-
},
|
|
2813
|
+
}, Co = /* @__PURE__ */ A({
|
|
2813
2814
|
__name: "IconButton",
|
|
2814
2815
|
props: {
|
|
2815
2816
|
tip: {},
|
|
@@ -2824,9 +2825,9 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2824
2825
|
},
|
|
2825
2826
|
setup(e) {
|
|
2826
2827
|
function t(e) {
|
|
2827
|
-
|
|
2828
|
+
Sn(e.currentTarget);
|
|
2828
2829
|
}
|
|
2829
|
-
return (n, r) => e.absent ? (L(), T("span",
|
|
2830
|
+
return (n, r) => e.absent ? (L(), T("span", So)) : (L(), C(In, {
|
|
2830
2831
|
key: 1,
|
|
2831
2832
|
"data-glim": "IconButton",
|
|
2832
2833
|
tip: e.tip,
|
|
@@ -2846,21 +2847,21 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2846
2847
|
"disabled"
|
|
2847
2848
|
]));
|
|
2848
2849
|
}
|
|
2849
|
-
}),
|
|
2850
|
+
}), wo = {
|
|
2850
2851
|
key: 0,
|
|
2851
2852
|
class: "glim-readme-btn-art",
|
|
2852
2853
|
"aria-hidden": "true"
|
|
2853
|
-
},
|
|
2854
|
+
}, To = { class: "glim-readme-btn-text" }, Eo = { class: "glim-readme-btn-name" }, Do = {
|
|
2854
2855
|
key: 0,
|
|
2855
2856
|
class: "glim-readme-btn-sub"
|
|
2856
|
-
},
|
|
2857
|
+
}, Oo = {
|
|
2857
2858
|
key: 0,
|
|
2858
2859
|
class: "glim-readme-btn-sheen",
|
|
2859
2860
|
"aria-hidden": "true"
|
|
2860
|
-
},
|
|
2861
|
+
}, ko = {
|
|
2861
2862
|
key: 1,
|
|
2862
2863
|
class: "glim-readme-btn-hint"
|
|
2863
|
-
},
|
|
2864
|
+
}, Ao = /* @__PURE__ */ A({
|
|
2864
2865
|
__name: "ReadmeButton",
|
|
2865
2866
|
props: {
|
|
2866
2867
|
brand: {},
|
|
@@ -2875,11 +2876,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2875
2876
|
},
|
|
2876
2877
|
emits: ["linkClick"],
|
|
2877
2878
|
setup(e, { emit: t }) {
|
|
2878
|
-
let n = e, r = t, i = S(() =>
|
|
2879
|
+
let n = e, r = t, i = S(() => Wt(n.parts)), a = H(null), o = S(() => n.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (i.value ? n.soonLabel : "")), s;
|
|
2879
2880
|
q([a, o], () => {
|
|
2880
|
-
s?.(), s = a.value ?
|
|
2881
|
+
s?.(), s = a.value ? st(a.value) : void 0;
|
|
2881
2882
|
}, { flush: "post" }), ae(() => s?.());
|
|
2882
|
-
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) =>
|
|
2883
|
+
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) => Ut(e, c(e)), u = (e) => i.value ? "span" : e.href ? "a" : "button", d = (e) => i.value ? { "aria-disabled": !0 } : e.href ? {
|
|
2883
2884
|
href: e.href,
|
|
2884
2885
|
target: "_blank",
|
|
2885
2886
|
rel: "noreferrer noopener",
|
|
@@ -2892,24 +2893,24 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2892
2893
|
ref_key: "root",
|
|
2893
2894
|
ref: a,
|
|
2894
2895
|
"data-glim": "ReadmeButton",
|
|
2895
|
-
class: N(W(
|
|
2896
|
+
class: N(W(Gt)(e.brand, e.parts.length, e.note, i.value))
|
|
2896
2897
|
}, [
|
|
2897
2898
|
(L(!0), T(b, null, z(e.parts, (n, r) => (L(), C(V(u(n)), M({ key: r }, { ref_for: !0 }, d(n), {
|
|
2898
2899
|
"aria-label": l(n),
|
|
2899
|
-
class: W(
|
|
2900
|
+
class: W(Ht)(r, i.value)
|
|
2900
2901
|
}), {
|
|
2901
|
-
default: J(() => [r === 0 && t.$slots.art ? (L(), T("span",
|
|
2902
|
+
default: J(() => [r === 0 && t.$slots.art ? (L(), T("span", wo, [B(t.$slots, "art")])) : (L(), T(b, { key: 1 }, [r === 0 && t.$slots.mark ? (L(), T("span", {
|
|
2902
2903
|
key: 0,
|
|
2903
2904
|
class: N(`glim-readme-btn-mark ${e.markClass ?? ""}`),
|
|
2904
2905
|
"aria-hidden": "true"
|
|
2905
|
-
}, [B(t.$slots, "mark")], 2)) : w("", !0), E("span",
|
|
2906
|
+
}, [B(t.$slots, "mark")], 2)) : w("", !0), E("span", To, [E("span", Eo, U(n.name), 1), c(n) ? (L(), T("span", Do, U(c(n)), 1)) : w("", !0)])], 64))]),
|
|
2906
2907
|
_: 2
|
|
2907
2908
|
}, 1040, ["aria-label", "class"]))), 128)),
|
|
2908
|
-
i.value ? w("", !0) : (L(), T("span",
|
|
2909
|
-
e.hint ? (L(), T("span",
|
|
2909
|
+
i.value ? w("", !0) : (L(), T("span", Oo)),
|
|
2910
|
+
e.hint ? (L(), T("span", ko, [k($, { tip: e.hint }, null, 8, ["tip"])])) : w("", !0)
|
|
2910
2911
|
], 2));
|
|
2911
2912
|
}
|
|
2912
|
-
}),
|
|
2913
|
+
}), jo = { class: "glim-info-text" }, Mo = { class: "glim-info-text" }, No = { class: "glim-readme-btn-rows glim-about-give" }, Po = /* @__PURE__ */ A({
|
|
2913
2914
|
__name: "InfoAboutCard",
|
|
2914
2915
|
props: {
|
|
2915
2916
|
text: {},
|
|
@@ -2922,16 +2923,16 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2922
2923
|
hueIndex: {}
|
|
2923
2924
|
},
|
|
2924
2925
|
setup(e) {
|
|
2925
|
-
return (t, n) => (L(), C(
|
|
2926
|
+
return (t, n) => (L(), C(er, {
|
|
2926
2927
|
"data-glim": "InfoAboutCard",
|
|
2927
2928
|
title: e.text.title,
|
|
2928
2929
|
"hue-index": e.hueIndex
|
|
2929
2930
|
}, {
|
|
2930
2931
|
default: J(() => [
|
|
2931
|
-
E("p",
|
|
2932
|
-
E("p",
|
|
2933
|
-
E("div",
|
|
2934
|
-
k(
|
|
2932
|
+
E("p", jo, U(e.text.body), 1),
|
|
2933
|
+
E("p", Mo, U(e.text.coffee), 1),
|
|
2934
|
+
E("div", No, [
|
|
2935
|
+
k(Ao, {
|
|
2935
2936
|
brand: "coffee",
|
|
2936
2937
|
parts: [{
|
|
2937
2938
|
name: e.text.coffeeButton,
|
|
@@ -2941,7 +2942,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2941
2942
|
art: J(() => [(L(), C(V(e.coffeeArt)))]),
|
|
2942
2943
|
_: 1
|
|
2943
2944
|
}, 8, ["parts"]),
|
|
2944
|
-
e.onPaypal && e.text.paypalButton ? (L(), C(
|
|
2945
|
+
e.onPaypal && e.text.paypalButton ? (L(), C(Ao, {
|
|
2945
2946
|
key: 0,
|
|
2946
2947
|
brand: "paypal",
|
|
2947
2948
|
parts: [{
|
|
@@ -2954,7 +2955,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2954
2955
|
fn: J(() => [(L(), C(V(e.paypalGlyph)))]),
|
|
2955
2956
|
key: "0"
|
|
2956
2957
|
} : void 0]), 1032, ["parts"])) : w("", !0),
|
|
2957
|
-
e.onCrypto && e.text.cryptoButton ? (L(), C(
|
|
2958
|
+
e.onCrypto && e.text.cryptoButton ? (L(), C(Ao, {
|
|
2958
2959
|
key: 1,
|
|
2959
2960
|
brand: "bitcoin",
|
|
2960
2961
|
parts: [{
|
|
@@ -2972,7 +2973,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2972
2973
|
_: 1
|
|
2973
2974
|
}, 8, ["title", "hue-index"]));
|
|
2974
2975
|
}
|
|
2975
|
-
}),
|
|
2976
|
+
}), Fo = { class: "glim-info-text" }, Io = { class: "glim-readme-btn-rows" }, Lo = /* @__PURE__ */ A({
|
|
2976
2977
|
__name: "InfoHelpCard",
|
|
2977
2978
|
props: {
|
|
2978
2979
|
text: {},
|
|
@@ -2986,20 +2987,20 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
2986
2987
|
bugGlyph: {},
|
|
2987
2988
|
openUrl: {
|
|
2988
2989
|
type: Function,
|
|
2989
|
-
default:
|
|
2990
|
+
default: Et
|
|
2990
2991
|
},
|
|
2991
2992
|
hueIndex: {}
|
|
2992
2993
|
},
|
|
2993
2994
|
setup(e) {
|
|
2994
|
-
let t = e, n = S(() =>
|
|
2995
|
-
return (t, r) => (L(), C(
|
|
2995
|
+
let t = e, n = S(() => Tt(t.text.report, t.mailAddress));
|
|
2996
|
+
return (t, r) => (L(), C(er, {
|
|
2996
2997
|
"data-glim": "InfoHelpCard",
|
|
2997
2998
|
title: e.text.title,
|
|
2998
2999
|
hint: e.text.hint,
|
|
2999
3000
|
"hue-index": e.hueIndex
|
|
3000
3001
|
}, {
|
|
3001
|
-
default: J(() => [E("p",
|
|
3002
|
-
k(
|
|
3002
|
+
default: J(() => [E("p", Fo, U(e.text.report), 1), E("div", Io, [
|
|
3003
|
+
k(Ao, {
|
|
3003
3004
|
brand: "github",
|
|
3004
3005
|
parts: [{
|
|
3005
3006
|
name: e.text.repoButton,
|
|
@@ -3011,12 +3012,12 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3011
3012
|
fn: J(() => [(L(), C(V(e.repoGlyph)))]),
|
|
3012
3013
|
key: "0"
|
|
3013
3014
|
} : void 0]), 1032, ["parts"]),
|
|
3014
|
-
n.value ? (L(), C(
|
|
3015
|
+
n.value ? (L(), C(Ao, {
|
|
3015
3016
|
key: 0,
|
|
3016
3017
|
brand: "house",
|
|
3017
3018
|
parts: [{
|
|
3018
3019
|
name: e.text.mailButton,
|
|
3019
|
-
onClick: () => e.openUrl(W(
|
|
3020
|
+
onClick: () => e.openUrl(W(mt)(e.mailAddress, e.text.mailSubject))
|
|
3020
3021
|
}],
|
|
3021
3022
|
"mark-class": "glim-house-mark"
|
|
3022
3023
|
}, D({ _: 2 }, [e.mailGlyph ? {
|
|
@@ -3024,7 +3025,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3024
3025
|
fn: J(() => [(L(), C(V(e.mailGlyph)))]),
|
|
3025
3026
|
key: "0"
|
|
3026
3027
|
} : void 0]), 1032, ["parts"])) : w("", !0),
|
|
3027
|
-
e.manualUrl && e.text.manual ? (L(), C(
|
|
3028
|
+
e.manualUrl && e.text.manual ? (L(), C(Ao, {
|
|
3028
3029
|
key: 1,
|
|
3029
3030
|
brand: "docs",
|
|
3030
3031
|
parts: [{
|
|
@@ -3038,7 +3039,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3038
3039
|
fn: J(() => [(L(), C(V(e.manualGlyph)))]),
|
|
3039
3040
|
key: "0"
|
|
3040
3041
|
} : void 0]), 1032, ["parts"])) : w("", !0),
|
|
3041
|
-
e.onBugReport && e.text.bugReport ? (L(), C(
|
|
3042
|
+
e.onBugReport && e.text.bugReport ? (L(), C(Ao, {
|
|
3042
3043
|
key: 2,
|
|
3043
3044
|
brand: "github",
|
|
3044
3045
|
parts: [{
|
|
@@ -3059,19 +3060,19 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3059
3060
|
"hue-index"
|
|
3060
3061
|
]));
|
|
3061
3062
|
}
|
|
3062
|
-
}),
|
|
3063
|
+
}), Ro = { class: "glim-version-rows" }, zo = { class: "glim-version-name" }, Bo = { class: "glim-version-part" }, Vo = {
|
|
3063
3064
|
key: 0,
|
|
3064
3065
|
class: "glim-version-sub"
|
|
3065
|
-
},
|
|
3066
|
+
}, Ho = ["href", "onClick"], Uo = {
|
|
3066
3067
|
key: 1,
|
|
3067
3068
|
class: "glim-num glim-version-number"
|
|
3068
|
-
},
|
|
3069
|
+
}, Wo = {
|
|
3069
3070
|
key: 0,
|
|
3070
3071
|
class: "glim-version-actions"
|
|
3071
|
-
},
|
|
3072
|
+
}, Go = {
|
|
3072
3073
|
role: "status",
|
|
3073
3074
|
class: "glim-sr-only"
|
|
3074
|
-
},
|
|
3075
|
+
}, Ko = /* @__PURE__ */ A({
|
|
3075
3076
|
__name: "InfoVersionCard",
|
|
3076
3077
|
props: {
|
|
3077
3078
|
text: {},
|
|
@@ -3080,37 +3081,37 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3080
3081
|
onReleaseNotes: {},
|
|
3081
3082
|
openUrl: {
|
|
3082
3083
|
type: Function,
|
|
3083
|
-
default:
|
|
3084
|
+
default: Et
|
|
3084
3085
|
},
|
|
3085
3086
|
hueIndex: {}
|
|
3086
3087
|
},
|
|
3087
3088
|
setup(e) {
|
|
3088
|
-
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 &&
|
|
3089
|
+
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 && An(i.value, t.updateCheck.text));
|
|
3089
3090
|
function s() {
|
|
3090
|
-
|
|
3091
|
+
Xt(t.updateCheck, i.value, (e) => {
|
|
3091
3092
|
i.value = e, e.kind === "failed" && a.value++;
|
|
3092
3093
|
});
|
|
3093
3094
|
}
|
|
3094
3095
|
function c(e, n) {
|
|
3095
3096
|
e.preventDefault(), t.openUrl(n);
|
|
3096
3097
|
}
|
|
3097
|
-
return (t, n) => (L(), C(
|
|
3098
|
+
return (t, n) => (L(), C(er, {
|
|
3098
3099
|
"data-glim": "InfoVersionCard",
|
|
3099
3100
|
title: e.text.title,
|
|
3100
3101
|
hint: e.text.hint,
|
|
3101
3102
|
"hue-index": e.hueIndex
|
|
3102
3103
|
}, {
|
|
3103
|
-
default: J(() => [E("ul",
|
|
3104
|
+
default: J(() => [E("ul", Ro, [(L(!0), T(b, null, z(e.rows, (t) => (L(), T("li", {
|
|
3104
3105
|
key: t.name,
|
|
3105
3106
|
class: "glim-version-row"
|
|
3106
|
-
}, [E("span",
|
|
3107
|
+
}, [E("span", zo, [E("span", Bo, U(t.name), 1), t.sub ? (L(), T("span", Vo, U(t.sub), 1)) : w("", !0)]), W(Mn)(t).href ? (L(), T("a", {
|
|
3107
3108
|
key: 0,
|
|
3108
|
-
href: W(
|
|
3109
|
+
href: W(Mn)(t).href,
|
|
3109
3110
|
target: "_blank",
|
|
3110
3111
|
rel: "noopener noreferrer",
|
|
3111
3112
|
class: "glim-num glim-version-number",
|
|
3112
|
-
onClick: (e) => c(e, W(
|
|
3113
|
-
}, U(W(
|
|
3113
|
+
onClick: (e) => c(e, W(Mn)(t).href)
|
|
3114
|
+
}, U(W(Mn)(t).shown), 9, Ho)) : (L(), T("span", Uo, U(W(Mn)(t).released ? W(Mn)(t).shown : e.text.unreleased(W(Mn)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (L(), T("div", Wo, [
|
|
3114
3115
|
r.value ? (L(), C(Q, {
|
|
3115
3116
|
key: 0,
|
|
3116
3117
|
label: e.text.releaseNotes,
|
|
@@ -3123,7 +3124,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3123
3124
|
label: o.value.label,
|
|
3124
3125
|
"label-key": o.value.labelKey,
|
|
3125
3126
|
tone: o.value.tone,
|
|
3126
|
-
stage: W(
|
|
3127
|
+
stage: W(jn)(e.updateCheck.text, o.value.label),
|
|
3127
3128
|
busy: i.value.kind === "busy",
|
|
3128
3129
|
class: N(a.value > 0 ? "glim-shake" : ""),
|
|
3129
3130
|
onClick: s
|
|
@@ -3134,7 +3135,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3134
3135
|
"stage",
|
|
3135
3136
|
"busy",
|
|
3136
3137
|
"class"
|
|
3137
|
-
])), E("span",
|
|
3138
|
+
])), E("span", Go, U(o.value.announced), 1)], 64)) : w("", !0)
|
|
3138
3139
|
])) : w("", !0)]),
|
|
3139
3140
|
_: 3
|
|
3140
3141
|
}, 8, [
|
|
@@ -3143,10 +3144,10 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3143
3144
|
"hue-index"
|
|
3144
3145
|
]));
|
|
3145
3146
|
}
|
|
3146
|
-
}),
|
|
3147
|
+
}), qo = {
|
|
3147
3148
|
"data-glim": "InfoTile",
|
|
3148
3149
|
style: { display: "contents" }
|
|
3149
|
-
},
|
|
3150
|
+
}, Jo = /* @__PURE__ */ A({
|
|
3150
3151
|
__name: "InfoTile",
|
|
3151
3152
|
props: {
|
|
3152
3153
|
version: {},
|
|
@@ -3156,27 +3157,27 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3156
3157
|
},
|
|
3157
3158
|
setup(e) {
|
|
3158
3159
|
let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
3159
|
-
return (t, r) => (L(), T("div",
|
|
3160
|
-
k(
|
|
3160
|
+
return (t, r) => (L(), T("div", qo, [
|
|
3161
|
+
k(Ko, M(e.version, { "hue-index": n(0) }), D({ _: 2 }, [t.$slots["whats-new"] ? {
|
|
3161
3162
|
name: "whats-new",
|
|
3162
3163
|
fn: J(() => [B(t.$slots, "whats-new")]),
|
|
3163
3164
|
key: "0"
|
|
3164
3165
|
} : void 0]), 1040, ["hue-index"]),
|
|
3165
|
-
k(
|
|
3166
|
-
k(
|
|
3166
|
+
k(Lo, M(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
3167
|
+
k(Po, M(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
3167
3168
|
]));
|
|
3168
3169
|
}
|
|
3169
|
-
}),
|
|
3170
|
+
}), Yo = [
|
|
3170
3171
|
"aria-label",
|
|
3171
3172
|
"tabindex",
|
|
3172
3173
|
"onKeydown"
|
|
3173
|
-
],
|
|
3174
|
+
], Xo = {
|
|
3174
3175
|
key: 0,
|
|
3175
3176
|
class: "glim-list-row-tile"
|
|
3176
|
-
},
|
|
3177
|
+
}, Zo = { class: "glim-list-row-title" }, Qo = {
|
|
3177
3178
|
key: 1,
|
|
3178
3179
|
class: "glim-list-row-badges"
|
|
3179
|
-
},
|
|
3180
|
+
}, $o = /* @__PURE__ */ A({
|
|
3180
3181
|
__name: "ListRow",
|
|
3181
3182
|
props: {
|
|
3182
3183
|
name: {},
|
|
@@ -3196,21 +3197,21 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3196
3197
|
class: N(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
3197
3198
|
onKeydown: [_e(Y(a, ["self"]), ["enter"]), _e(Y(a, ["self"]), ["space"])]
|
|
3198
3199
|
}, [
|
|
3199
|
-
t.$slots.tile ? (L(), T("span",
|
|
3200
|
-
E("span", { class: N(i.value) }, [E("span",
|
|
3200
|
+
t.$slots.tile ? (L(), T("span", Xo, [B(t.$slots, "tile")])) : w("", !0),
|
|
3201
|
+
E("span", { class: N(i.value) }, [E("span", Zo, U(e.name), 1), e.tip ? (L(), T("span", {
|
|
3201
3202
|
key: 0,
|
|
3202
3203
|
class: "glim-list-row-tip",
|
|
3203
3204
|
onClick: n[0] ||= Y(() => {}, ["stop"])
|
|
3204
3205
|
}, [k($, { tip: e.tip }, null, 8, ["tip"])])) : w("", !0)], 2),
|
|
3205
|
-
t.$slots.badges ? (L(), T("span",
|
|
3206
|
+
t.$slots.badges ? (L(), T("span", Qo, [B(t.$slots, "badges")])) : w("", !0),
|
|
3206
3207
|
t.$slots.actions ? (L(), T("span", {
|
|
3207
3208
|
key: 2,
|
|
3208
3209
|
class: "glim-list-row-actions",
|
|
3209
3210
|
onClick: n[1] ||= Y(() => {}, ["stop"])
|
|
3210
3211
|
}, [B(t.$slots, "actions")])) : w("", !0)
|
|
3211
|
-
], 42,
|
|
3212
|
+
], 42, Yo));
|
|
3212
3213
|
}
|
|
3213
|
-
}),
|
|
3214
|
+
}), es = ["aria-label"], ts = /* @__PURE__ */ A({
|
|
3214
3215
|
__name: "Popover",
|
|
3215
3216
|
props: {
|
|
3216
3217
|
open: { type: Boolean },
|
|
@@ -3225,7 +3226,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3225
3226
|
() => n.anchor,
|
|
3226
3227
|
i
|
|
3227
3228
|
], ([e, t, n]) => {
|
|
3228
|
-
o?.(), o = void 0, e && t && n && (o =
|
|
3229
|
+
o?.(), o = void 0, e && t && n && (o = Ot(n, t, a, () => r("close")));
|
|
3229
3230
|
}, { flush: "post" }), F(() => o?.()), (t, n) => e.open ? (L(), T("div", {
|
|
3230
3231
|
key: 0,
|
|
3231
3232
|
"data-glim": "Popover",
|
|
@@ -3235,24 +3236,24 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3235
3236
|
role: "dialog",
|
|
3236
3237
|
"aria-label": e.label,
|
|
3237
3238
|
class: "glim-popover"
|
|
3238
|
-
}, [B(t.$slots, "default")], 8,
|
|
3239
|
+
}, [B(t.$slots, "default")], 8, es)) : w("", !0);
|
|
3239
3240
|
}
|
|
3240
|
-
}),
|
|
3241
|
+
}), ns = {
|
|
3241
3242
|
"data-glim": "ListTable",
|
|
3242
3243
|
class: "glim-list"
|
|
3243
|
-
},
|
|
3244
|
+
}, rs = ["aria-label", "onKeydown"], is = ["aria-label", "aria-describedby"], as = ["aria-sort"], os = { class: "glim-list-th-box" }, ss = ["onClick"], cs = [
|
|
3244
3245
|
"aria-label",
|
|
3245
3246
|
"aria-expanded",
|
|
3246
3247
|
"aria-pressed",
|
|
3247
3248
|
"onClick"
|
|
3248
|
-
],
|
|
3249
|
+
], ls = [
|
|
3249
3250
|
"aria-selected",
|
|
3250
3251
|
"onClick",
|
|
3251
3252
|
"onDblclick"
|
|
3252
|
-
],
|
|
3253
|
+
], us = ["tabindex"], ds = {
|
|
3253
3254
|
key: 1,
|
|
3254
3255
|
class: "glim-list-empty"
|
|
3255
|
-
},
|
|
3256
|
+
}, fs = ["id"], ps = { class: "glim-list-filter-values" }, ms = /* @__PURE__ */ A({
|
|
3256
3257
|
__name: "ListTable",
|
|
3257
3258
|
props: {
|
|
3258
3259
|
label: {},
|
|
@@ -3268,7 +3269,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3268
3269
|
keys: [],
|
|
3269
3270
|
anchor: null,
|
|
3270
3271
|
focus: null
|
|
3271
|
-
}), c = R(null), l = R(null), u = R(null), d = G(), f = S(() =>
|
|
3272
|
+
}), c = R(null), l = R(null), u = R(null), d = G(), f = S(() => ft(n.rows, {
|
|
3272
3273
|
sort: i.value,
|
|
3273
3274
|
filters: a.value,
|
|
3274
3275
|
query: o.value ?? "",
|
|
@@ -3293,14 +3294,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3293
3294
|
}, r("select", e.selected.map((e) => f.value[e])), g();
|
|
3294
3295
|
}
|
|
3295
3296
|
function v(e) {
|
|
3296
|
-
let t =
|
|
3297
|
+
let t = ut(h.value, e.key, {
|
|
3297
3298
|
toggle: e.ctrlKey || e.metaKey,
|
|
3298
3299
|
range: e.shiftKey
|
|
3299
3300
|
}, f.value.length);
|
|
3300
3301
|
t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search, ie(() => u.value?.focus())) : _(t.select));
|
|
3301
3302
|
}
|
|
3302
3303
|
function ee(e, t) {
|
|
3303
|
-
_(
|
|
3304
|
+
_(Qt(h.value, t, {
|
|
3304
3305
|
toggle: e.ctrlKey || e.metaKey,
|
|
3305
3306
|
range: e.shiftKey
|
|
3306
3307
|
}));
|
|
@@ -3323,7 +3324,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3323
3324
|
};
|
|
3324
3325
|
}
|
|
3325
3326
|
let ne = (e, t) => String(e[t] ?? "");
|
|
3326
|
-
return (t, n) => (L(), T("div",
|
|
3327
|
+
return (t, n) => (L(), T("div", ns, [
|
|
3327
3328
|
o.value === null ? w("", !0) : ge((L(), T("input", {
|
|
3328
3329
|
key: 0,
|
|
3329
3330
|
ref_key: "searchField",
|
|
@@ -3333,7 +3334,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3333
3334
|
type: "search",
|
|
3334
3335
|
"aria-label": e.text.search,
|
|
3335
3336
|
onKeydown: _e(Y(y, ["prevent", "stop"]), ["esc"])
|
|
3336
|
-
}, null, 40,
|
|
3337
|
+
}, null, 40, rs)), [[pe, o.value]]),
|
|
3337
3338
|
E("table", {
|
|
3338
3339
|
ref_key: "grid",
|
|
3339
3340
|
ref: l,
|
|
@@ -3347,15 +3348,15 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3347
3348
|
scope: "col",
|
|
3348
3349
|
"aria-sort": W(Fe)(i.value, t.key),
|
|
3349
3350
|
class: N(t.end ? "glim-list-th glim-table-end" : "glim-list-th")
|
|
3350
|
-
}, [E("span",
|
|
3351
|
+
}, [E("span", os, [E("button", {
|
|
3351
3352
|
type: "button",
|
|
3352
3353
|
class: "glim-list-sort",
|
|
3353
|
-
onClick: (e) => i.value = W(
|
|
3354
|
+
onClick: (e) => i.value = W(Ct)(i.value, t.key)
|
|
3354
3355
|
}, [O(U(t.label) + " ", 1), i.value?.key === t.key ? (L(), C(W(m), {
|
|
3355
3356
|
key: 0,
|
|
3356
3357
|
mark: W(we).expand,
|
|
3357
3358
|
class: N(`glim-list-sort-mark glim-list-sort-mark--${i.value.dir}`)
|
|
3358
|
-
}, null, 8, ["mark", "class"])) : w("", !0)], 8,
|
|
3359
|
+
}, null, 8, ["mark", "class"])) : w("", !0)], 8, ss), t.filter ? (L(), T("button", {
|
|
3359
3360
|
key: 0,
|
|
3360
3361
|
type: "button",
|
|
3361
3362
|
"aria-label": e.text.filterOf(t.label),
|
|
@@ -3364,7 +3365,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3364
3365
|
"aria-pressed": x(t.key).length > 0,
|
|
3365
3366
|
class: "glim-list-filter",
|
|
3366
3367
|
onClick: (e) => A(t.key, e.currentTarget)
|
|
3367
|
-
}, [k(W(m), { mark: W(we).expand }, null, 8, ["mark"])], 8,
|
|
3368
|
+
}, [k(W(m), { mark: W(we).expand }, null, 8, ["mark"])], 8, cs)) : w("", !0)])], 10, as))), 128))])]), E("tbody", { onKeydown: v }, [(L(!0), T(b, null, z(f.value, (n, i) => (L(), T("tr", {
|
|
3368
3369
|
key: p.value[i],
|
|
3369
3370
|
"aria-selected": h.value.selected.includes(i),
|
|
3370
3371
|
class: "glim-list-tr",
|
|
@@ -3373,24 +3374,24 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3373
3374
|
}, [(L(!0), T(b, null, z(e.columns, (e, r) => (L(), T("td", {
|
|
3374
3375
|
key: e.key,
|
|
3375
3376
|
tabindex: r === 0 ? i === h.value.focus ? 0 : -1 : void 0,
|
|
3376
|
-
class: N(W(
|
|
3377
|
+
class: N(W(xn)(e) || void 0)
|
|
3377
3378
|
}, [B(t.$slots, "cell", {
|
|
3378
3379
|
row: n,
|
|
3379
3380
|
column: e
|
|
3380
|
-
}, () => [O(U(ne(n, e.key)), 1)])], 10,
|
|
3381
|
-
f.value.length === 0 ? (L(), T("p",
|
|
3381
|
+
}, () => [O(U(ne(n, e.key)), 1)])], 10, us))), 128))], 40, ls))), 128))], 32)], 8, is),
|
|
3382
|
+
f.value.length === 0 ? (L(), T("p", ds, U(e.text.noMatch), 1)) : w("", !0),
|
|
3382
3383
|
E("p", {
|
|
3383
3384
|
id: W(d),
|
|
3384
3385
|
class: "glim-list-hint"
|
|
3385
|
-
}, U(e.text.hint), 9,
|
|
3386
|
-
te.value ? (L(), C(
|
|
3386
|
+
}, U(e.text.hint), 9, fs),
|
|
3387
|
+
te.value ? (L(), C(ts, {
|
|
3387
3388
|
key: 2,
|
|
3388
3389
|
open: !0,
|
|
3389
3390
|
anchor: c.value.at,
|
|
3390
3391
|
label: e.text.filterOf(te.value.label),
|
|
3391
3392
|
onClose: n[1] ||= (e) => c.value = null
|
|
3392
3393
|
}, {
|
|
3393
|
-
default: J(() => [E("div",
|
|
3394
|
+
default: J(() => [E("div", ps, [(L(!0), T(b, null, z(W(Ue)(e.rows, te.value.key), (e) => (L(), C(ir, {
|
|
3394
3395
|
key: e,
|
|
3395
3396
|
label: e,
|
|
3396
3397
|
"model-value": x(te.value.key).includes(e),
|
|
@@ -3404,14 +3405,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3404
3405
|
}, 8, ["anchor", "label"])) : w("", !0)
|
|
3405
3406
|
]));
|
|
3406
3407
|
}
|
|
3407
|
-
}),
|
|
3408
|
+
}), hs = ["aria-label"], gs = [
|
|
3408
3409
|
"aria-expanded",
|
|
3409
3410
|
"tabindex",
|
|
3410
3411
|
"onClick",
|
|
3411
3412
|
"onMouseenter",
|
|
3412
3413
|
"onKeydown",
|
|
3413
3414
|
"onFocus"
|
|
3414
|
-
],
|
|
3415
|
+
], _s = /* @__PURE__ */ A({
|
|
3415
3416
|
__name: "MenuBar",
|
|
3416
3417
|
props: {
|
|
3417
3418
|
label: {},
|
|
@@ -3461,7 +3462,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3461
3462
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
3462
3463
|
onKeydown: (e) => l(e, t),
|
|
3463
3464
|
onFocus: (e) => a.value = t
|
|
3464
|
-
}, U(e.label), 41,
|
|
3465
|
+
}, U(e.label), 41, gs))), 128)), i.value && e.menus[i.value.at] ? (L(), C(Mr, {
|
|
3465
3466
|
key: i.value.at,
|
|
3466
3467
|
x: i.value.x,
|
|
3467
3468
|
y: i.value.y,
|
|
@@ -3478,9 +3479,9 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3478
3479
|
"label",
|
|
3479
3480
|
"id",
|
|
3480
3481
|
"opener"
|
|
3481
|
-
])) : w("", !0)], 8,
|
|
3482
|
+
])) : w("", !0)], 8, hs));
|
|
3482
3483
|
}
|
|
3483
|
-
}),
|
|
3484
|
+
}), vs = [
|
|
3484
3485
|
"role",
|
|
3485
3486
|
"aria-label",
|
|
3486
3487
|
"aria-valuemin",
|
|
@@ -3488,7 +3489,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3488
3489
|
"aria-valuenow",
|
|
3489
3490
|
"aria-valuetext",
|
|
3490
3491
|
"aria-busy"
|
|
3491
|
-
],
|
|
3492
|
+
], ys = /* @__PURE__ */ A({
|
|
3492
3493
|
inheritAttrs: !1,
|
|
3493
3494
|
__name: "Meter",
|
|
3494
3495
|
props: {
|
|
@@ -3503,7 +3504,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3503
3504
|
valueText: {}
|
|
3504
3505
|
},
|
|
3505
3506
|
setup(t) {
|
|
3506
|
-
let r = t, i = S(() =>
|
|
3507
|
+
let r = t, i = S(() => bt(r.value, {
|
|
3507
3508
|
size: r.size,
|
|
3508
3509
|
threshold: r.threshold,
|
|
3509
3510
|
quiet: r.quiet
|
|
@@ -3523,16 +3524,16 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3523
3524
|
}), [E("span", {
|
|
3524
3525
|
class: "glim-meter-fill",
|
|
3525
3526
|
style: P(i.value.width ? { width: i.value.width } : void 0)
|
|
3526
|
-
}, null, 4)], 16,
|
|
3527
|
+
}, null, 4)], 16, vs), k(n, { state: W(o) }, null, 8, ["state"])], 64));
|
|
3527
3528
|
}
|
|
3528
|
-
}),
|
|
3529
|
+
}), bs = {
|
|
3529
3530
|
"data-glim": "NumberField",
|
|
3530
3531
|
class: "glim-num-wrap"
|
|
3531
|
-
},
|
|
3532
|
+
}, xs = [
|
|
3532
3533
|
"aria-label",
|
|
3533
3534
|
"aria-invalid",
|
|
3534
3535
|
"aria-describedby"
|
|
3535
|
-
],
|
|
3536
|
+
], Ss = /* @__PURE__ */ A({
|
|
3536
3537
|
inheritAttrs: !1,
|
|
3537
3538
|
__name: "NumberField",
|
|
3538
3539
|
props: /*@__PURE__*/ j({ error: {} }, {
|
|
@@ -3557,13 +3558,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3557
3558
|
() => r.disabled,
|
|
3558
3559
|
() => r.readonly
|
|
3559
3560
|
], () => {
|
|
3560
|
-
l(n.value), s.value &&
|
|
3561
|
+
l(n.value), s.value && bn(s.value);
|
|
3561
3562
|
}, { flush: "post" });
|
|
3562
3563
|
function u(e) {
|
|
3563
3564
|
let t = e.target;
|
|
3564
3565
|
n.value = t.value === "" ? null : t.valueAsNumber;
|
|
3565
3566
|
}
|
|
3566
|
-
return (t, n) => (L(), T(b, null, [E("span",
|
|
3567
|
+
return (t, n) => (L(), T(b, null, [E("span", bs, [E("input", M(t.$attrs, {
|
|
3567
3568
|
ref_key: "input",
|
|
3568
3569
|
ref: s,
|
|
3569
3570
|
"aria-label": W(i),
|
|
@@ -3572,7 +3573,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3572
3573
|
type: "number",
|
|
3573
3574
|
class: "glim-num-input glim-num-field glim-num",
|
|
3574
3575
|
onInput: u
|
|
3575
|
-
}), null, 16,
|
|
3576
|
+
}), null, 16, xs)]), o.value.errorId ? (L(), C(Hr, {
|
|
3576
3577
|
key: 0,
|
|
3577
3578
|
id: o.value.errorId
|
|
3578
3579
|
}, {
|
|
@@ -3580,7 +3581,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3580
3581
|
_: 1
|
|
3581
3582
|
}, 8, ["id"])) : w("", !0)], 64));
|
|
3582
3583
|
}
|
|
3583
|
-
}),
|
|
3584
|
+
}), Cs = ["aria-label", "disabled"], ws = /* @__PURE__ */ A({
|
|
3584
3585
|
inheritAttrs: !1,
|
|
3585
3586
|
__name: "PathField",
|
|
3586
3587
|
props: /*@__PURE__*/ j({
|
|
@@ -3634,7 +3635,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3634
3635
|
}, {
|
|
3635
3636
|
disabled: e.disabled,
|
|
3636
3637
|
class: "glim-input glim-input--mono"
|
|
3637
|
-
}), null, 16,
|
|
3638
|
+
}), null, 16, Cs), [[pe, i.value]]), k(Q, M(e.buttonAttrs, {
|
|
3638
3639
|
variant: "icon",
|
|
3639
3640
|
label: e.text.pick,
|
|
3640
3641
|
"label-key": null,
|
|
@@ -3649,7 +3650,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3649
3650
|
"disabled"
|
|
3650
3651
|
])], 6));
|
|
3651
3652
|
}
|
|
3652
|
-
}),
|
|
3653
|
+
}), Ts = /* @__PURE__ */ A({
|
|
3653
3654
|
__name: "RowMark",
|
|
3654
3655
|
props: { on: { type: Boolean } },
|
|
3655
3656
|
setup(e) {
|
|
@@ -3659,7 +3660,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3659
3660
|
"aria-hidden": "true"
|
|
3660
3661
|
}, [k(W(f))], 2));
|
|
3661
3662
|
}
|
|
3662
|
-
}),
|
|
3663
|
+
}), Es = { class: "glim-sr-only" }, Ds = /* @__PURE__ */ A({
|
|
3663
3664
|
inheritAttrs: !1,
|
|
3664
3665
|
__name: "SidebarRowLink",
|
|
3665
3666
|
props: {
|
|
@@ -3694,7 +3695,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3694
3695
|
t.view.countClass && t.count ? (L(), T(b, { key: 1 }, [E("span", {
|
|
3695
3696
|
class: N(t.view.countClass),
|
|
3696
3697
|
"aria-hidden": "true"
|
|
3697
|
-
}, U(t.count.value), 3), E("span",
|
|
3698
|
+
}, U(t.count.value), 3), E("span", Es, U(t.count.label), 1)], 64)) : w("", !0)
|
|
3698
3699
|
]),
|
|
3699
3700
|
_: 1
|
|
3700
3701
|
}, 16, [
|
|
@@ -3709,13 +3710,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3709
3710
|
"onBlur"
|
|
3710
3711
|
])), k(n, { state: W(i) }, null, 8, ["state"])], 64));
|
|
3711
3712
|
}
|
|
3712
|
-
}),
|
|
3713
|
+
}), Os = {
|
|
3713
3714
|
key: 0,
|
|
3714
3715
|
class: "glim-nav-row-slot"
|
|
3715
|
-
},
|
|
3716
|
+
}, ks = {
|
|
3716
3717
|
key: 1,
|
|
3717
3718
|
class: "glim-nav-row-slot"
|
|
3718
|
-
},
|
|
3719
|
+
}, As = /* @__PURE__ */ A({
|
|
3719
3720
|
inheritAttrs: !1,
|
|
3720
3721
|
__name: "SidebarRow",
|
|
3721
3722
|
props: {
|
|
@@ -3731,7 +3732,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3731
3732
|
depth: {}
|
|
3732
3733
|
},
|
|
3733
3734
|
setup(e) {
|
|
3734
|
-
let t = e, n =
|
|
3735
|
+
let t = e, n = Bn("sidebar"), r = de(), i = S(() => cn({
|
|
3735
3736
|
mode: n.value,
|
|
3736
3737
|
label: t.label,
|
|
3737
3738
|
hasGlyph: !!t.glyph,
|
|
@@ -3758,15 +3759,15 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3758
3759
|
]),
|
|
3759
3760
|
style: P([i.value.style, e.$attrs.style])
|
|
3760
3761
|
}, [
|
|
3761
|
-
e.$slots.before ? (L(), T("span",
|
|
3762
|
-
k(
|
|
3762
|
+
e.$slots.before ? (L(), T("span", Os, [B(e.$slots, "before")])) : w("", !0),
|
|
3763
|
+
k(Ds, M({
|
|
3763
3764
|
...e.$attrs,
|
|
3764
3765
|
...a.value,
|
|
3765
3766
|
class: void 0,
|
|
3766
3767
|
style: void 0
|
|
3767
3768
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
3768
|
-
e.$slots.after ? (L(), T("span",
|
|
3769
|
-
], 6)) : (L(), C(
|
|
3769
|
+
e.$slots.after ? (L(), T("span", ks, [B(e.$slots, "after")])) : w("", !0)
|
|
3770
|
+
], 6)) : (L(), C(Ds, M({
|
|
3770
3771
|
key: 1,
|
|
3771
3772
|
"data-glim": "SidebarRow"
|
|
3772
3773
|
}, {
|
|
@@ -3783,7 +3784,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3783
3784
|
"style"
|
|
3784
3785
|
]));
|
|
3785
3786
|
}
|
|
3786
|
-
}),
|
|
3787
|
+
}), js = ["data-glim-title", "aria-labelledby"], Ms = { class: "glim-sheet-panel" }, Ns = ["id"], Ps = { class: "glim-sheet-body" }, Fs = /* @__PURE__ */ A({
|
|
3787
3788
|
__name: "Sheet",
|
|
3788
3789
|
props: {
|
|
3789
3790
|
open: { type: Boolean },
|
|
@@ -3796,7 +3797,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3796
3797
|
setup(e, { emit: t }) {
|
|
3797
3798
|
let n = e, r = t, i = de(), a = R(null), o = G(), s = S(() => n.start !== void 0 || !!i.start), c;
|
|
3798
3799
|
return q([() => n.open, a], ([e, t]) => {
|
|
3799
|
-
c?.(), c = void 0, e && t && (c =
|
|
3800
|
+
c?.(), c = void 0, e && t && (c = kt(t, () => r("close")));
|
|
3800
3801
|
}, { flush: "post" }), F(() => c?.()), (t, n) => e.open ? (L(), T("dialog", {
|
|
3801
3802
|
key: 0,
|
|
3802
3803
|
"data-glim": "Sheet",
|
|
@@ -3805,7 +3806,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3805
3806
|
ref: a,
|
|
3806
3807
|
"aria-labelledby": W(o),
|
|
3807
3808
|
class: "glim-sheet"
|
|
3808
|
-
}, [E("div",
|
|
3809
|
+
}, [E("div", Ms, [
|
|
3809
3810
|
E("h2", {
|
|
3810
3811
|
id: W(o),
|
|
3811
3812
|
class: "glim-sheet-title"
|
|
@@ -3817,9 +3818,9 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3817
3818
|
}, {
|
|
3818
3819
|
default: J(() => [O(U(e.title), 1)]),
|
|
3819
3820
|
_: 1
|
|
3820
|
-
})], 8,
|
|
3821
|
-
E("div",
|
|
3822
|
-
k(
|
|
3821
|
+
})], 8, Ns),
|
|
3822
|
+
E("div", Ps, [B(t.$slots, "default")]),
|
|
3823
|
+
k(Xr, {
|
|
3823
3824
|
actions: e.actions,
|
|
3824
3825
|
start: e.start,
|
|
3825
3826
|
"has-start": s.value,
|
|
@@ -3835,12 +3836,12 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3835
3836
|
"has-start",
|
|
3836
3837
|
"text"
|
|
3837
3838
|
])
|
|
3838
|
-
])], 8,
|
|
3839
|
+
])], 8, js)) : w("", !0);
|
|
3839
3840
|
}
|
|
3840
|
-
}),
|
|
3841
|
+
}), Is = {
|
|
3841
3842
|
"data-glim": "SignInField",
|
|
3842
3843
|
class: "glim-signin-field"
|
|
3843
|
-
},
|
|
3844
|
+
}, Ls = ["for"], Rs = /* @__PURE__ */ A({
|
|
3844
3845
|
__name: "SignInField",
|
|
3845
3846
|
props: {
|
|
3846
3847
|
label: {},
|
|
@@ -3849,21 +3850,21 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3849
3850
|
},
|
|
3850
3851
|
setup(e) {
|
|
3851
3852
|
let t = e, n = R(!1), r = (e) => {
|
|
3852
|
-
n.value =
|
|
3853
|
+
n.value = ct(document.getElementById(t.for), t.label, t.hint, e);
|
|
3853
3854
|
};
|
|
3854
|
-
return I(() => r()), q(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (L(), T("div",
|
|
3855
|
+
return I(() => r()), q(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (L(), T("div", Is, [E("label", {
|
|
3855
3856
|
for: t.$props.for,
|
|
3856
3857
|
class: N(n.value ? "glim-sr-only" : "glim-signin-label")
|
|
3857
3858
|
}, [O(U(e.label), 1), e.hint ? (L(), C($, {
|
|
3858
3859
|
key: 0,
|
|
3859
3860
|
tip: e.hint
|
|
3860
|
-
}, null, 8, ["tip"])) : w("", !0)], 10,
|
|
3861
|
+
}, null, 8, ["tip"])) : w("", !0)], 10, Ls), B(t.$slots, "default")]));
|
|
3861
3862
|
}
|
|
3862
|
-
}),
|
|
3863
|
+
}), zs = [
|
|
3863
3864
|
"aria-label",
|
|
3864
3865
|
"aria-invalid",
|
|
3865
3866
|
"aria-describedby"
|
|
3866
|
-
],
|
|
3867
|
+
], Bs = /* @__PURE__ */ A({
|
|
3867
3868
|
inheritAttrs: !1,
|
|
3868
3869
|
__name: "TextField",
|
|
3869
3870
|
props: /*@__PURE__*/ j({
|
|
@@ -3877,7 +3878,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3877
3878
|
}),
|
|
3878
3879
|
emits: ["update:modelValue"],
|
|
3879
3880
|
setup(e, { expose: t }) {
|
|
3880
|
-
let n = e, r = K(e, "modelValue"), i = y(() => n.label), a = S(() =>
|
|
3881
|
+
let n = e, r = K(e, "modelValue"), i = y(() => n.label), a = S(() => Cn({
|
|
3881
3882
|
width: n.width,
|
|
3882
3883
|
mono: n.mono
|
|
3883
3884
|
})), o = ue(), s = G(), c = S(() => Ye(n.error, o.id ?? s, o["aria-describedby"])), l = H(null);
|
|
@@ -3890,7 +3891,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3890
3891
|
"aria-invalid": c.value.invalid,
|
|
3891
3892
|
"aria-describedby": c.value.describedBy,
|
|
3892
3893
|
class: a.value
|
|
3893
|
-
}), null, 16,
|
|
3894
|
+
}), null, 16, zs), [[pe, r.value]]), c.value.errorId ? (L(), C(Hr, {
|
|
3894
3895
|
key: 0,
|
|
3895
3896
|
id: c.value.errorId
|
|
3896
3897
|
}, {
|
|
@@ -3898,26 +3899,26 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3898
3899
|
_: 1
|
|
3899
3900
|
}, 8, ["id"])) : w("", !0)], 64));
|
|
3900
3901
|
}
|
|
3901
|
-
}),
|
|
3902
|
+
}), Vs = {
|
|
3902
3903
|
"data-glim": "SignInCard",
|
|
3903
3904
|
class: "glim-signin"
|
|
3904
|
-
},
|
|
3905
|
+
}, Hs = { class: "glim-signin-head" }, Us = {
|
|
3905
3906
|
key: 0,
|
|
3906
3907
|
class: "glim-signin-logo",
|
|
3907
3908
|
"aria-hidden": "true"
|
|
3908
|
-
},
|
|
3909
|
+
}, Ws = ["src"], Gs = { class: "glim-signin-name" }, Ks = {
|
|
3909
3910
|
key: 0,
|
|
3910
3911
|
class: "glim-signin-error",
|
|
3911
3912
|
role: "alert"
|
|
3912
|
-
},
|
|
3913
|
+
}, qs = {
|
|
3913
3914
|
key: 0,
|
|
3914
3915
|
class: "glim-signin-note",
|
|
3915
3916
|
role: "status"
|
|
3916
|
-
},
|
|
3917
|
+
}, Js = { class: "glim-signin-hint" }, Ys = {
|
|
3917
3918
|
key: 3,
|
|
3918
3919
|
class: "glim-signin-error",
|
|
3919
3920
|
role: "alert"
|
|
3920
|
-
},
|
|
3921
|
+
}, Xs = /* @__PURE__ */ A({
|
|
3921
3922
|
__name: "SignInCard",
|
|
3922
3923
|
props: {
|
|
3923
3924
|
logo: {},
|
|
@@ -3959,32 +3960,32 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
3959
3960
|
hide: t.text.hide
|
|
3960
3961
|
})), u = H(null), d = "";
|
|
3961
3962
|
function f() {
|
|
3962
|
-
let e = n.step ? "step" :
|
|
3963
|
+
let e = n.step ? "step" : un(i.value);
|
|
3963
3964
|
e !== d && ((d || t.autoFocus) && Qe(u.value), d = e);
|
|
3964
3965
|
}
|
|
3965
3966
|
return I(f), se(f), q(() => i.value.refusal?.count, (e, t, n) => {
|
|
3966
3967
|
let r = i.value.refusal;
|
|
3967
|
-
r && n(
|
|
3968
|
-
}, { flush: "post" }), (t, n) => (L(), T("div",
|
|
3968
|
+
r && n(sn(u.value, r));
|
|
3969
|
+
}, { flush: "post" }), (t, n) => (L(), T("div", Vs, [E("div", {
|
|
3969
3970
|
ref_key: "card",
|
|
3970
3971
|
ref: u,
|
|
3971
3972
|
class: "glim-card glim-signin-card"
|
|
3972
|
-
}, [E("div",
|
|
3973
|
+
}, [E("div", Hs, [e.logo || t.$slots.logo ? (L(), T("span", Us, [B(t.$slots, "logo", {}, () => [E("img", {
|
|
3973
3974
|
src: e.logo,
|
|
3974
3975
|
alt: "",
|
|
3975
3976
|
draggable: "false"
|
|
3976
|
-
}, null, 8,
|
|
3977
|
+
}, null, 8, Ws)])])) : w("", !0), E("h1", Gs, U(e.appName), 1)]), t.$slots.step ? B(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (L(), T("form", {
|
|
3977
3978
|
key: 1,
|
|
3978
3979
|
class: "glim-signin-form",
|
|
3979
3980
|
novalidate: "",
|
|
3980
3981
|
onSubmit: n[4] ||= Y((e) => W(r).submit(), ["prevent"])
|
|
3981
3982
|
}, [
|
|
3982
|
-
k(
|
|
3983
|
+
k(Rs, {
|
|
3983
3984
|
label: e.text.resetCode,
|
|
3984
3985
|
for: s("reset-code"),
|
|
3985
3986
|
hint: e.text.resetCodeTip
|
|
3986
3987
|
}, {
|
|
3987
|
-
default: J(() => [k(
|
|
3988
|
+
default: J(() => [k(Bs, {
|
|
3988
3989
|
id: s("reset-code"),
|
|
3989
3990
|
"data-signin-field": "resetCode",
|
|
3990
3991
|
class: "glim-signin-log-code",
|
|
@@ -4001,11 +4002,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4001
4002
|
"for",
|
|
4002
4003
|
"hint"
|
|
4003
4004
|
]),
|
|
4004
|
-
k(
|
|
4005
|
+
k(Rs, {
|
|
4005
4006
|
label: e.text.newPassword,
|
|
4006
4007
|
for: s("new")
|
|
4007
4008
|
}, {
|
|
4008
|
-
default: J(() => [k(
|
|
4009
|
+
default: J(() => [k(Xi, {
|
|
4009
4010
|
id: s("new"),
|
|
4010
4011
|
"data-signin-field": "newPassword",
|
|
4011
4012
|
"model-value": i.value.newPassword,
|
|
@@ -4019,11 +4020,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4019
4020
|
])]),
|
|
4020
4021
|
_: 1
|
|
4021
4022
|
}, 8, ["label", "for"]),
|
|
4022
|
-
k(
|
|
4023
|
+
k(Rs, {
|
|
4023
4024
|
label: e.text.confirmPassword,
|
|
4024
4025
|
for: s("confirm")
|
|
4025
4026
|
}, {
|
|
4026
|
-
default: J(() => [k(
|
|
4027
|
+
default: J(() => [k(Xi, {
|
|
4027
4028
|
id: s("confirm"),
|
|
4028
4029
|
"data-signin-field": "confirm",
|
|
4029
4030
|
"model-value": i.value.confirm,
|
|
@@ -4037,14 +4038,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4037
4038
|
])]),
|
|
4038
4039
|
_: 1
|
|
4039
4040
|
}, 8, ["label", "for"]),
|
|
4040
|
-
i.value.error ? (L(), T("p",
|
|
4041
|
+
i.value.error ? (L(), T("p", Ks, U(i.value.error), 1)) : w("", !0),
|
|
4041
4042
|
k(Q, {
|
|
4042
4043
|
label: e.text.setPassword,
|
|
4043
4044
|
"label-key": c.value.setPassword,
|
|
4044
4045
|
tone: "accent",
|
|
4045
4046
|
type: "submit",
|
|
4046
4047
|
"data-signin": "set-password",
|
|
4047
|
-
disabled: W(
|
|
4048
|
+
disabled: W(Kt)(i.value),
|
|
4048
4049
|
busy: i.value.busy === "setPassword",
|
|
4049
4050
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
4050
4051
|
}, null, 8, [
|
|
@@ -4072,13 +4073,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4072
4073
|
novalidate: "",
|
|
4073
4074
|
onSubmit: n[10] ||= Y((e) => W(r).submit(), ["prevent"])
|
|
4074
4075
|
}, [
|
|
4075
|
-
e.note ? (L(), T("p",
|
|
4076
|
+
e.note ? (L(), T("p", qs, U(e.note), 1)) : w("", !0),
|
|
4076
4077
|
i.value.viaPasskey ? w("", !0) : B(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
4077
|
-
ge(k(
|
|
4078
|
+
ge(k(Rs, {
|
|
4078
4079
|
label: e.text.password,
|
|
4079
4080
|
for: s("password")
|
|
4080
4081
|
}, {
|
|
4081
|
-
default: J(() => [k(
|
|
4082
|
+
default: J(() => [k(Xi, {
|
|
4082
4083
|
id: s("password"),
|
|
4083
4084
|
"data-signin-field": "password",
|
|
4084
4085
|
"model-value": i.value.password,
|
|
@@ -4092,12 +4093,12 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4092
4093
|
])]),
|
|
4093
4094
|
_: 1
|
|
4094
4095
|
}, 8, ["label", "for"]), [[me, !i.value.viaPasskey]]),
|
|
4095
|
-
i.value.needCode ? (L(), C(
|
|
4096
|
+
i.value.needCode ? (L(), C(Rs, {
|
|
4096
4097
|
key: 2,
|
|
4097
4098
|
label: e.text.code,
|
|
4098
4099
|
for: s("code")
|
|
4099
4100
|
}, {
|
|
4100
|
-
default: J(() => [k(
|
|
4101
|
+
default: J(() => [k(Bs, {
|
|
4101
4102
|
id: s("code"),
|
|
4102
4103
|
"data-signin-field": "code",
|
|
4103
4104
|
class: "glim-signin-code",
|
|
@@ -4107,17 +4108,17 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4107
4108
|
spellcheck: "false",
|
|
4108
4109
|
placeholder: "000000",
|
|
4109
4110
|
"onUpdate:modelValue": n[6] ||= (e) => W(r).set("code", e)
|
|
4110
|
-
}, null, 8, ["id", "model-value"]), E("p",
|
|
4111
|
+
}, null, 8, ["id", "model-value"]), E("p", Js, U(e.text.codeHint), 1)]),
|
|
4111
4112
|
_: 1
|
|
4112
4113
|
}, 8, ["label", "for"])) : w("", !0),
|
|
4113
|
-
i.value.error ? (L(), T("p",
|
|
4114
|
+
i.value.error ? (L(), T("p", Ys, U(i.value.error), 1)) : w("", !0),
|
|
4114
4115
|
k(Q, {
|
|
4115
4116
|
label: e.text.signIn,
|
|
4116
4117
|
"label-key": c.value.signIn,
|
|
4117
4118
|
tone: "accent",
|
|
4118
4119
|
type: "submit",
|
|
4119
4120
|
"data-signin": "submit",
|
|
4120
|
-
disabled: W(
|
|
4121
|
+
disabled: W(ln)(i.value),
|
|
4121
4122
|
busy: i.value.busy === "signIn",
|
|
4122
4123
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
4123
4124
|
}, null, 8, [
|
|
@@ -4171,13 +4172,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4171
4172
|
])) : w("", !0)
|
|
4172
4173
|
], 32))], 512)]));
|
|
4173
4174
|
}
|
|
4174
|
-
}),
|
|
4175
|
+
}), Zs = {
|
|
4175
4176
|
key: 0,
|
|
4176
4177
|
class: "glim-skeleton-block glim-skeleton-tile"
|
|
4177
|
-
},
|
|
4178
|
+
}, Qs = {
|
|
4178
4179
|
key: 1,
|
|
4179
4180
|
class: "glim-skeleton-block glim-skeleton-badge"
|
|
4180
|
-
},
|
|
4181
|
+
}, $s = /* @__PURE__ */ A({
|
|
4181
4182
|
__name: "SkeletonRow",
|
|
4182
4183
|
props: {
|
|
4183
4184
|
delay: {},
|
|
@@ -4191,7 +4192,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4191
4192
|
}
|
|
4192
4193
|
},
|
|
4193
4194
|
setup(e) {
|
|
4194
|
-
let t = e, n = S(() =>
|
|
4195
|
+
let t = e, n = S(() => dn({
|
|
4195
4196
|
delay: t.delay,
|
|
4196
4197
|
tile: t.tile,
|
|
4197
4198
|
badge: t.badge
|
|
@@ -4202,18 +4203,18 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4202
4203
|
class: N(n.value.className),
|
|
4203
4204
|
style: P(n.value.style)
|
|
4204
4205
|
}, [
|
|
4205
|
-
n.value.tile ? (L(), T("span",
|
|
4206
|
+
n.value.tile ? (L(), T("span", Zs)) : w("", !0),
|
|
4206
4207
|
t[0] ||= E("span", { class: "glim-skeleton-block glim-skeleton-name" }, null, -1),
|
|
4207
|
-
n.value.badge ? (L(), T("span",
|
|
4208
|
+
n.value.badge ? (L(), T("span", Qs)) : w("", !0)
|
|
4208
4209
|
], 6));
|
|
4209
4210
|
}
|
|
4210
|
-
}),
|
|
4211
|
+
}), ec = ["data-glim-title", "aria-labelledby"], tc = {
|
|
4211
4212
|
key: 0,
|
|
4212
4213
|
class: "glim-panel-heading"
|
|
4213
|
-
},
|
|
4214
|
+
}, nc = ["id"], rc = {
|
|
4214
4215
|
key: 1,
|
|
4215
4216
|
class: "glim-subcard-end"
|
|
4216
|
-
},
|
|
4217
|
+
}, ic = /* @__PURE__ */ A({
|
|
4217
4218
|
__name: "SubCard",
|
|
4218
4219
|
props: {
|
|
4219
4220
|
title: {},
|
|
@@ -4227,23 +4228,23 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4227
4228
|
class: N(["glim-subcard", { "glim-subcard--titled": e.title }]),
|
|
4228
4229
|
"aria-labelledby": e.title ? W(t) : void 0
|
|
4229
4230
|
}, [
|
|
4230
|
-
e.title ? (L(), T("h3",
|
|
4231
|
+
e.title ? (L(), T("h3", tc, [k(Z, {
|
|
4231
4232
|
tone: "heading",
|
|
4232
4233
|
size: "heading",
|
|
4233
4234
|
wrap: ""
|
|
4234
4235
|
}, {
|
|
4235
|
-
default: J(() => [E("span", { id: W(t) }, U(e.title), 9,
|
|
4236
|
+
default: J(() => [E("span", { id: W(t) }, U(e.title), 9, nc), e.hint ? (L(), C($, {
|
|
4236
4237
|
key: 0,
|
|
4237
4238
|
tip: e.hint,
|
|
4238
4239
|
"on-accent": ""
|
|
4239
4240
|
}, null, 8, ["tip"])) : w("", !0)]),
|
|
4240
4241
|
_: 1
|
|
4241
4242
|
})])) : w("", !0),
|
|
4242
|
-
n.$slots.end ? (L(), T("div",
|
|
4243
|
+
n.$slots.end ? (L(), T("div", rc, [B(n.$slots, "end")])) : w("", !0),
|
|
4243
4244
|
B(n.$slots, "default")
|
|
4244
|
-
], 10,
|
|
4245
|
+
], 10, ec));
|
|
4245
4246
|
}
|
|
4246
|
-
}),
|
|
4247
|
+
}), ac = ["aria-label"], oc = { key: 0 }, sc = { key: 0 }, cc = ["colspan"], lc = /* @__PURE__ */ A({
|
|
4247
4248
|
__name: "Table",
|
|
4248
4249
|
props: {
|
|
4249
4250
|
label: {},
|
|
@@ -4257,27 +4258,27 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4257
4258
|
"data-glim": "Table",
|
|
4258
4259
|
class: "glim-table",
|
|
4259
4260
|
"aria-label": e.label
|
|
4260
|
-
}, [n.value ? (L(), T("thead",
|
|
4261
|
+
}, [n.value ? (L(), T("thead", oc, [E("tr", null, [(L(!0), T(b, null, z(e.columns, (e) => (L(), T("th", {
|
|
4261
4262
|
key: e.key,
|
|
4262
4263
|
scope: "col",
|
|
4263
4264
|
class: N({ "glim-table-end": e.end })
|
|
4264
4265
|
}, 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", {
|
|
4265
4266
|
key: e.key,
|
|
4266
|
-
class: N(W(
|
|
4267
|
+
class: N(W(xn)(e))
|
|
4267
4268
|
}, [B(t.$slots, "cell", {
|
|
4268
4269
|
row: n,
|
|
4269
4270
|
column: e,
|
|
4270
4271
|
value: r(n, e)
|
|
4271
|
-
}, () => [O(U(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (L(), T("tr",
|
|
4272
|
+
}, () => [O(U(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (L(), T("tr", sc, [E("td", {
|
|
4272
4273
|
colspan: e.columns.length,
|
|
4273
4274
|
class: "glim-table-muted"
|
|
4274
|
-
}, U(e.more), 9,
|
|
4275
|
+
}, U(e.more), 9, cc)])) : w("", !0)])], 8, ac));
|
|
4275
4276
|
}
|
|
4276
|
-
}),
|
|
4277
|
+
}), uc = [
|
|
4277
4278
|
"aria-label",
|
|
4278
4279
|
"aria-invalid",
|
|
4279
4280
|
"aria-describedby"
|
|
4280
|
-
],
|
|
4281
|
+
], dc = /* @__PURE__ */ A({
|
|
4281
4282
|
inheritAttrs: !1,
|
|
4282
4283
|
__name: "TextArea",
|
|
4283
4284
|
props: /*@__PURE__*/ j({
|
|
@@ -4291,7 +4292,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4291
4292
|
}),
|
|
4292
4293
|
emits: ["update:modelValue"],
|
|
4293
4294
|
setup(e, { expose: t }) {
|
|
4294
|
-
let n = e, r = K(e, "modelValue"), i = y(() => n.label), a = S(() =>
|
|
4295
|
+
let n = e, r = K(e, "modelValue"), i = y(() => n.label), a = S(() => Cn({
|
|
4295
4296
|
width: n.width,
|
|
4296
4297
|
mono: n.mono,
|
|
4297
4298
|
area: !0
|
|
@@ -4304,7 +4305,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4304
4305
|
"aria-invalid": c.value.invalid,
|
|
4305
4306
|
"aria-describedby": c.value.describedBy,
|
|
4306
4307
|
class: a.value
|
|
4307
|
-
}), null, 16,
|
|
4308
|
+
}), null, 16, uc), [[pe, r.value]]), c.value.errorId ? (L(), C(Hr, {
|
|
4308
4309
|
key: 0,
|
|
4309
4310
|
id: c.value.errorId
|
|
4310
4311
|
}, {
|
|
@@ -4312,13 +4313,13 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4312
4313
|
_: 1
|
|
4313
4314
|
}, 8, ["id"])) : w("", !0)], 64));
|
|
4314
4315
|
}
|
|
4315
|
-
}),
|
|
4316
|
+
}), fc = [
|
|
4316
4317
|
"onMouseenter",
|
|
4317
4318
|
"onMouseleave",
|
|
4318
4319
|
"onFocusin",
|
|
4319
4320
|
"onFocusout",
|
|
4320
4321
|
"onKeydown"
|
|
4321
|
-
],
|
|
4322
|
+
], pc = { class: "glim-toast-body" }, mc = { class: "glim-toast-message" }, hc = { key: 0 }, gc = ["aria-label", "onClick"], _c = /* @__PURE__ */ A({
|
|
4322
4323
|
inheritAttrs: !1,
|
|
4323
4324
|
__name: "ToastViewport",
|
|
4324
4325
|
props: {
|
|
@@ -4337,7 +4338,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4337
4338
|
q(() => n.toasts, (e) => {
|
|
4338
4339
|
let t = new Set(e.map((e) => e.id));
|
|
4339
4340
|
for (let e of i) t.has(e) || i.delete(e);
|
|
4340
|
-
for (let t of e) i.has(t.id) || (i.add(t.id), ke(t.message,
|
|
4341
|
+
for (let t of e) i.has(t.id) || (i.add(t.id), ke(t.message, Tn(t.severity)));
|
|
4341
4342
|
}, {
|
|
4342
4343
|
immediate: !0,
|
|
4343
4344
|
deep: 1,
|
|
@@ -4347,8 +4348,8 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4347
4348
|
t.onClick(), r("dismiss", e);
|
|
4348
4349
|
}
|
|
4349
4350
|
return (t, n) => (L(), T(b, null, [
|
|
4350
|
-
E("div", M({ class: "glim-sr-only" }, W(
|
|
4351
|
-
E("div", M({ class: "glim-sr-only" }, W(
|
|
4351
|
+
E("div", M({ class: "glim-sr-only" }, W(pt)("polite")), null, 16),
|
|
4352
|
+
E("div", M({ class: "glim-sr-only" }, W(pt)("assertive")), null, 16),
|
|
4352
4353
|
E("div", M({
|
|
4353
4354
|
"data-glim": "ToastViewport",
|
|
4354
4355
|
class: "glim-toast-stack"
|
|
@@ -4366,7 +4367,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4366
4367
|
mark: W(Ee)[t.severity],
|
|
4367
4368
|
class: N(`glim-toast-glyph glim-toast-glyph--${t.severity}`)
|
|
4368
4369
|
}, null, 8, ["mark", "class"]),
|
|
4369
|
-
E("div",
|
|
4370
|
+
E("div", pc, [E("p", mc, [(L(!0), T(b, null, z(W(fn)(t.message), (e, t) => (L(), T(b, { key: t }, [t > 0 ? (L(), T("wbr", hc)) : w("", !0), O(U(e), 1)], 64))), 128))]), t.action ? (L(), C(Q, {
|
|
4370
4371
|
key: 0,
|
|
4371
4372
|
class: "glim-toast-action",
|
|
4372
4373
|
tone: "subtle",
|
|
@@ -4379,11 +4380,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4379
4380
|
"aria-label": e.dismissLabel,
|
|
4380
4381
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
4381
4382
|
onClick: (e) => r("dismiss", t.id)
|
|
4382
|
-
}, [k(W(m), { mark: W(we).dismiss }, null, 8, ["mark"])], 8,
|
|
4383
|
-
], 40,
|
|
4383
|
+
}, [k(W(m), { mark: W(we).dismiss }, null, 8, ["mark"])], 8, gc)
|
|
4384
|
+
], 40, fc))), 128))], 16)
|
|
4384
4385
|
], 64));
|
|
4385
4386
|
}
|
|
4386
|
-
}),
|
|
4387
|
+
}), vc = ["aria-label"], yc = [
|
|
4387
4388
|
"aria-level",
|
|
4388
4389
|
"aria-posinset",
|
|
4389
4390
|
"aria-setsize",
|
|
@@ -4394,11 +4395,11 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4394
4395
|
"onClick",
|
|
4395
4396
|
"onDblclick",
|
|
4396
4397
|
"onKeydown"
|
|
4397
|
-
],
|
|
4398
|
+
], bc = ["onClick"], xc = {
|
|
4398
4399
|
key: 0,
|
|
4399
4400
|
class: "glim-tree-glyph",
|
|
4400
4401
|
"aria-hidden": "true"
|
|
4401
|
-
},
|
|
4402
|
+
}, Sc = { class: "glim-tree-label" }, Cc = /* @__PURE__ */ A({
|
|
4402
4403
|
__name: "Tree",
|
|
4403
4404
|
props: /*@__PURE__*/ j({
|
|
4404
4405
|
label: {},
|
|
@@ -4416,7 +4417,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4416
4417
|
c.has(e) || (c.add(e), Promise.resolve(n.load(e)).then((t) => s.set(e, t), () => c.delete(e)));
|
|
4417
4418
|
}
|
|
4418
4419
|
q(a, (e) => [null, ...e].forEach(u), { immediate: !0 });
|
|
4419
|
-
let d = S(() =>
|
|
4420
|
+
let d = S(() => On(s, a.value)), f = S(() => Math.max(d.value.findIndex((e) => e.node.id === r.value), 0));
|
|
4420
4421
|
function p(e) {
|
|
4421
4422
|
a.value = a.value.includes(e) ? a.value.filter((t) => t !== e) : [...a.value, e];
|
|
4422
4423
|
}
|
|
@@ -4427,7 +4428,7 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4427
4428
|
e.preventDefault(), r.value = n, e.key === "Enter" && o("activate", n);
|
|
4428
4429
|
return;
|
|
4429
4430
|
}
|
|
4430
|
-
let i =
|
|
4431
|
+
let i = kn(d.value, t, e.key, getComputedStyle(l.value).direction === "rtl");
|
|
4431
4432
|
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, tt(l.value, i.focus)) : p("open" in i ? i.open : i.close));
|
|
4432
4433
|
}
|
|
4433
4434
|
return (t, n) => (L(), T("div", {
|
|
@@ -4458,15 +4459,15 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4458
4459
|
"aria-hidden": "true",
|
|
4459
4460
|
onClick: Y((t) => e.node.hasChildren && p(e.node.id), ["stop"]),
|
|
4460
4461
|
onDblclick: n[0] ||= Y(() => {}, ["stop"])
|
|
4461
|
-
}, [e.node.hasChildren ? (L(), C(W(i), { key: 0 })) : w("", !0)], 40,
|
|
4462
|
-
e.node.glyph ? (L(), T("span",
|
|
4463
|
-
E("span",
|
|
4464
|
-
], 16,
|
|
4462
|
+
}, [e.node.hasChildren ? (L(), C(W(i), { key: 0 })) : w("", !0)], 40, bc),
|
|
4463
|
+
e.node.glyph ? (L(), T("span", xc, [(L(), C(V(e.open && e.node.openGlyph || e.node.glyph)))])) : w("", !0),
|
|
4464
|
+
E("span", Sc, U(e.node.label), 1)
|
|
4465
|
+
], 16, yc))), 128))], 8, vc));
|
|
4465
4466
|
}
|
|
4466
|
-
}),
|
|
4467
|
+
}), wc = ["data-glim-title"], Tc = { class: "glim-notice-title" }, Ec = { class: "glim-notice-reason" }, Dc = {
|
|
4467
4468
|
key: 0,
|
|
4468
4469
|
class: "glim-notice-action"
|
|
4469
|
-
},
|
|
4470
|
+
}, Oc = /* @__PURE__ */ A({
|
|
4470
4471
|
__name: "UnavailableNotice",
|
|
4471
4472
|
props: { title: {} },
|
|
4472
4473
|
setup(e) {
|
|
@@ -4475,14 +4476,14 @@ var Kn = ["role", "aria-hidden"], qn = {
|
|
|
4475
4476
|
"data-glim-title": e.title,
|
|
4476
4477
|
class: "glim-notice"
|
|
4477
4478
|
}, [
|
|
4478
|
-
E("p",
|
|
4479
|
-
E("p",
|
|
4480
|
-
t.$slots.action ? (L(), T("div",
|
|
4481
|
-
], 8,
|
|
4479
|
+
E("p", Tc, U(e.title), 1),
|
|
4480
|
+
E("p", Ec, [B(t.$slots, "default")]),
|
|
4481
|
+
t.$slots.action ? (L(), T("div", Dc, [B(t.$slots, "action")])) : w("", !0)
|
|
4482
|
+
], 8, wc));
|
|
4482
4483
|
}
|
|
4483
4484
|
});
|
|
4484
4485
|
// src/confirm.ts
|
|
4485
|
-
function
|
|
4486
|
+
function kc(e) {
|
|
4486
4487
|
let t = H(null), n = H(null), r = null, i = null;
|
|
4487
4488
|
function a(e, n) {
|
|
4488
4489
|
return i = nt(), new Promise((i) => {
|
|
@@ -4493,17 +4494,17 @@ function Oc(e) {
|
|
|
4493
4494
|
});
|
|
4494
4495
|
}
|
|
4495
4496
|
function o(e) {
|
|
4496
|
-
r?.(e), r = null, t.value = null,
|
|
4497
|
+
r?.(e), r = null, t.value = null, qt(i), i = null;
|
|
4497
4498
|
}
|
|
4498
4499
|
let s = () => o(!1);
|
|
4499
4500
|
return q(t, (e, t, r) => {
|
|
4500
|
-
e && r(
|
|
4501
|
+
e && r(Dn(() => n.value, s));
|
|
4501
4502
|
}), {
|
|
4502
4503
|
confirm: a,
|
|
4503
4504
|
dismiss: s,
|
|
4504
4505
|
ConfirmHost: A(() => () => {
|
|
4505
4506
|
let r = t.value;
|
|
4506
|
-
return r ? ne(x, { to:
|
|
4507
|
+
return r ? ne(x, { to: It() }, [ne(_r, {
|
|
4507
4508
|
ref: (e) => n.value = e?.card ?? null,
|
|
4508
4509
|
title: e.title,
|
|
4509
4510
|
message: r.message,
|
|
@@ -4518,8 +4519,8 @@ function Oc(e) {
|
|
|
4518
4519
|
};
|
|
4519
4520
|
}
|
|
4520
4521
|
// src/dragArmed.ts
|
|
4521
|
-
function
|
|
4522
|
+
function Ac(e, t) {
|
|
4522
4523
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
4523
4524
|
he(n, { flush: "post" }), se(n);
|
|
4524
4525
|
}
|
|
4525
|
-
export { Z as Badge,
|
|
4526
|
+
export { Z as Badge, zn as BrandMark, Yn as BusyRing, Q as Button, er as Card, ir as Checkbox, lr as ColorPicker, _r as ConfirmDialog, Mr as ContextMenu, Fr as CopyField, Br as EmptyState, Hr as FieldError, Kr as FieldRow, qr as FieldRowGroup, Ua as Fortress, Ei as FortressAppCard, ni as FortressDoubtWindow, Wa as FortressPairing, Ji as FortressPermissions, _o as FortressStatusWindow, Ce as GLIMSTONE_VERSION, bo as GlyphField, xo as GlyphTile, Co 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, In as IconTipButton, v as IconWindowMaximise, o as IconWindowMinimise, s as IconWindowRestore, Po as InfoAboutCard, $ as InfoBubble, Lo as InfoHelpCard, Jo as InfoTile, Ko as InfoVersionCard, vi as InstanceCard, yr as Kbd, $o as ListRow, ms as ListTable, m as MarkSvg, _s as MenuBar, ys as Meter, Ss as NumberField, Xi as PasswordField, ws as PathField, Ur as Pill, ts as Popover, Ka as ProgressBar, Ao as ReadmeButton, Ts as RowMark, Ni as Selector, Fs as Sheet, As as SidebarRow, Xs as SignInCard, Rs as SignInField, $s as SkeletonRow, ic as SubCard, lc as Table, dc as TextArea, Bs as TextField, _c as ToastViewport, Li as Toggle, Cc as Tree, Oc as UnavailableNotice, ei as Window, d as glyphFor, tn as selectorTabId, c as setGlyphResolver, Kn as useAccent, kc as useConfirm, Ac as useDragArmed, y as useFieldName, Hn as useHue, Bn as useLabelMode, Gn as useMotion, Vn as useRainbow, Wn as useShape, e as useTipBubble };
|