@glimstone/vue 4.6.0 → 4.8.0
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/Accordion.js +1 -1
- package/dist/{Button-CQbGuw5x.js → Button-CZHmbNOm.js} +2 -2
- package/dist/Carousel.js +2 -2
- package/dist/Collapsible.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/ConnectionRow.vue.d.ts +37 -0
- package/dist/DatePicker.js +1 -1
- package/dist/FileUpload.js +1 -1
- package/dist/FloatingPanel.js +6 -6
- package/dist/Marquee.js +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/PasswordField.vue.d.ts +8 -10
- package/dist/Rating.js +1 -1
- package/dist/{Select-CQxew-YP.js → Select-DBABOjwc.js} +1 -1
- package/dist/Select.js +1 -1
- package/dist/SignaturePad.js +2 -2
- package/dist/Steps.js +2 -2
- package/dist/TagsInput.js +1 -1
- package/dist/Timer.js +2 -2
- package/dist/Tour.js +2 -2
- package/dist/glyphs-CS3VBARx.js +27 -0
- package/dist/glyphs.d.ts +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +909 -783
- package/dist/windowParts.d.ts +2 -1
- package/package.json +2 -2
- package/dist/glyphs-DeCDMDdg.js +0 -27
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as e } from "./Badge-BhK0gMse.js";
|
|
2
2
|
import { n as t, r as n, t as r } from "./TipWrap-5Nw7Yj0O.js";
|
|
3
|
-
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./Button-
|
|
4
|
-
import { C as p, S as m,
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { Fragment as S, Teleport as
|
|
11
|
-
import { COLOR_NAMES_DE as
|
|
3
|
+
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./Button-CZHmbNOm.js";
|
|
4
|
+
import { C as p, S as m, T as h, _ as g, a as _, b as v, c as ee, d as te, f as y, g as ne, h as re, i as b, l as ie, m as ae, n as oe, o as se, p as ce, r as le, s as ue, t as de, u as fe, v as pe, w as me, x as he, y as ge } from "./glyphs-CS3VBARx.js";
|
|
5
|
+
import { t as _e } from "./IconTipButton-BLtrZfgN.js";
|
|
6
|
+
import { n as ve, r as x, t as ye } from "./fieldName-DBygJJfe.js";
|
|
7
|
+
import { t as be } from "./selectParts-0e1ib8BL.js";
|
|
8
|
+
import { t as xe } from "./Select-DBABOjwc.js";
|
|
9
|
+
import { t as Se } from "./IconButton-D5YOChZI.js";
|
|
10
|
+
import { Fragment as S, Teleport as Ce, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as O, createTextVNode as k, createVNode as A, defineComponent as j, h as we, inject as Te, mergeModels as M, mergeProps as N, nextTick as Ee, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onMounted as L, onScopeDispose as De, onUnmounted as Oe, onUpdated as ke, openBlock as R, provide as Ae, ref as z, renderList as B, renderSlot as V, resolveDynamicComponent as H, shallowReactive as je, shallowRef as U, toDisplayString as W, toRef as Me, unref as G, useAttrs as Ne, useId as K, useModel as q, useSlots as Pe, vModelDynamic as Fe, vModelText as Ie, vShow as Le, watch as J, watchEffect as Re, withCtx as Y, withDirectives as ze, withKeys as Be, withModifiers as X } from "vue";
|
|
11
|
+
import { COLOR_NAMES_DE as Ve, COLOR_PICKER_TEXT as He, COPIED_MS as Ue, GLIMSTONE_RELEASE_URL as We, GLIMSTONE_REPO as Ge, GLIMSTONE_VERSION as Ke, MARKS as qe, PASSWORD_FIELD_TEXT as Je, PATH_ROOM_PX as Ye, TOAST_MARKS as Xe, WIDE_QUERY as Ze, anchorName as Qe, announce as $e, appCardView as et, ariaSort as tt, attachNumberSteppers as nt, claimMenu as rt, closeMenuOutside as it, colorPicker as at, columnValues as ot, computeBubblePosition as st, connectionButtons as ct, connectionTestFace as lt, connectionTile as ut, copyText as dt, countSelector as ft, createFortressFlow as pt, createSignInFlow as mt, donationHandlers as ht, doubtView as gt, fieldErrorView as _t, fieldWidthClass as vt, fill as Z, floatColorPicker as yt, focusByLetter as bt, focusFirstField as xt, focusFirstMenuRow as St, focusMenuRow as Ct, focusMenuRowByLetter as wt, focusTreeRow as Tt, focusedAsker as Et, footStartShows as Dt, holdPickHeight as Ot, hueVars as kt, isMenuHead as At, isTileMark as jt, isTypeahead as Mt, joinRefusalText as Nt, keepReadmeFit as Pt, labelInside as Ft, listKey as It, listOf as Lt, listView as Rt, liveRegionAttrs as zt, loadPaypal as Bt, mailHref as Vt, mediaMatches as Ht, memberName as Ut, menuIsOpen as Wt, menuMove as Gt, menuRowView as Kt, meterView as qt, nearestColorName as Jt, nextSort as Yt, normalizeHex as Xt, offersDiscord as Zt, offersMail as Qt, openInBrowser as $t, openInstance as en, openPopover as tn, openSheet as nn, othersLine as rn, pageLocale as an, passwordConfirmView as on, permissionsWith as sn, phraseReady as cn, pickFocusTarget as ln, pickMarkClass as un, pickSearchKey as dn, pickSections as fn, pickTileKey as pn, pickTileStyle as mn, pickerHue as hn, pillClassName as gn, placeMenu as _n, placeSubmenu as vn, portalTarget as yn, presenceTone as bn, pressRowControl as xn, progressView as Sn, qrCode as Cn, readmePartClass as wn, readmePartLabel as Tn, readmeSoon as En, readmeUnitClass as Dn, resetBlocked as On, returnFocus as kn, roveSelector as An, rovedIndex as jn, runUpdateCheck as Mn, segmentView as Nn, selectByClick as Pn, selectorAxis as Fn, selectorFlex as In, selectorTabId as Ln, selectorTabId as Rn, selectorView as zn, shake as Bn, showRefusal as Vn, sidebarRowView as Hn, signInBlocked as Un, signInStage as Wn, skeletonRowView as Gn, softBreaks as Kn, stackWindow as qn, statusView as Jn, storeShowOthers as Yn, storedShowOthers as Xn, subscribeMedia as Zn, syncNumberSteppers as Qn, tableCellClass as $n, textFieldClass as er, tidyMenu as tr, toastPoliteness as nr, toggleSelection as rr, trapDialogKeys as ir, treeRows as ar, treeStep as or, updateFace as sr, updateStage as cr, versionLink as lr, warnDeprecated as ur, watchSelectorFit as dr, windowFocusTarget as fr, windowFoot as pr } from "@glimstone/core";
|
|
12
12
|
// src/InfoBubble.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var mr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
14
14
|
__name: "InfoBubble",
|
|
15
15
|
props: {
|
|
16
16
|
tip: {},
|
|
@@ -60,12 +60,12 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
60
60
|
"stroke-width": "1.3",
|
|
61
61
|
"stroke-linecap": "round"
|
|
62
62
|
})
|
|
63
|
-
], -1)]], 42,
|
|
63
|
+
], -1)]], 42, mr), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), hr = ["data-glim-title"], gr = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "glim-panel-heading"
|
|
68
|
-
},
|
|
68
|
+
}, _r = /* @__PURE__ */ j({
|
|
69
69
|
__name: "Card",
|
|
70
70
|
props: {
|
|
71
71
|
title: {},
|
|
@@ -74,7 +74,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
74
74
|
nested: { type: Boolean }
|
|
75
75
|
},
|
|
76
76
|
setup(t) {
|
|
77
|
-
let n = t, r = C(() => n.hueIndex === void 0 ? void 0 :
|
|
77
|
+
let n = t, r = C(() => n.hueIndex === void 0 ? void 0 : kt(n.hueIndex));
|
|
78
78
|
return (n, i) => (R(), E("div", {
|
|
79
79
|
"data-glim": "Card",
|
|
80
80
|
"data-glim-title": t.title,
|
|
@@ -87,7 +87,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
87
87
|
}
|
|
88
88
|
]),
|
|
89
89
|
style: F(r.value)
|
|
90
|
-
}, [t.title || t.hint || n.$slots.title ? (R(), E("h2",
|
|
90
|
+
}, [t.title || t.hint || n.$slots.title ? (R(), E("h2", gr, [A(e, {
|
|
91
91
|
tone: "heading",
|
|
92
92
|
size: "heading",
|
|
93
93
|
wrap: "",
|
|
@@ -99,20 +99,20 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
99
99
|
"on-accent": ""
|
|
100
100
|
}, null, 8, ["tip"])) : T("", !0)]),
|
|
101
101
|
_: 3
|
|
102
|
-
}, 8, ["hue-index"])])) : T("", !0), V(n.$slots, "default")], 14,
|
|
102
|
+
}, 8, ["hue-index"])])) : T("", !0), V(n.$slots, "default")], 14, hr));
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), vr = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "glim-readme-btn-art",
|
|
107
107
|
"aria-hidden": "true"
|
|
108
|
-
},
|
|
108
|
+
}, yr = { class: "glim-readme-btn-text" }, br = { class: "glim-readme-btn-name" }, xr = {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "glim-readme-btn-sub"
|
|
111
|
-
},
|
|
111
|
+
}, Sr = {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "glim-readme-btn-sheen",
|
|
114
114
|
"aria-hidden": "true"
|
|
115
|
-
},
|
|
115
|
+
}, Cr = {
|
|
116
116
|
key: 1,
|
|
117
117
|
class: "glim-readme-btn-hint"
|
|
118
118
|
}, $ = /* @__PURE__ */ j({
|
|
@@ -135,10 +135,10 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
135
135
|
},
|
|
136
136
|
emits: ["linkClick"],
|
|
137
137
|
setup(e, { emit: r }) {
|
|
138
|
-
let i = e, a = r, o = C(() =>
|
|
138
|
+
let i = e, a = r, o = C(() => En(i.parts)), s = U(null), c = C(() => i.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (o.value ? i.soonLabel : "")), l;
|
|
139
139
|
J([s, c], () => {
|
|
140
|
-
l?.(), l = s.value ?
|
|
141
|
-
}, { flush: "post" }),
|
|
140
|
+
l?.(), l = s.value ? Pt(s.value) : void 0;
|
|
141
|
+
}, { flush: "post" }), De(() => l?.());
|
|
142
142
|
let u = n(() => i.tip), d = (e) => e === 0 ? {
|
|
143
143
|
ref: (e) => u.trigger.value = e,
|
|
144
144
|
"aria-describedby": u.describedBy.value,
|
|
@@ -147,7 +147,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
147
147
|
onMouseleave: u.hide,
|
|
148
148
|
onFocus: u.showOnFocus,
|
|
149
149
|
onBlur: u.hide
|
|
150
|
-
} : {}, f = (e) => o.value ? i.soonLabel : e.sub, p = (e) =>
|
|
150
|
+
} : {}, f = (e) => o.value ? i.soonLabel : e.sub, p = (e) => Tn(e, f(e)), m = (e) => o.value ? "span" : e.href ? "a" : "button", h = (e) => o.value ? { "aria-disabled": !0 } : e.href ? {
|
|
151
151
|
href: e.href,
|
|
152
152
|
target: "_blank",
|
|
153
153
|
rel: "noreferrer noopener",
|
|
@@ -160,28 +160,28 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
160
160
|
ref_key: "root",
|
|
161
161
|
ref: s,
|
|
162
162
|
"data-glim": "ReadmeButton",
|
|
163
|
-
class: P(G(
|
|
163
|
+
class: P(G(Dn)(e.brand, e.parts.length, e.note, o.value))
|
|
164
164
|
}, [
|
|
165
165
|
(R(!0), E(S, null, B(e.parts, (t, r) => (R(), w(H(m(t)), N({ key: r }, { ref_for: !0 }, {
|
|
166
166
|
...h(t),
|
|
167
167
|
...d(r)
|
|
168
168
|
}, {
|
|
169
169
|
"aria-label": p(t),
|
|
170
|
-
class: G(
|
|
170
|
+
class: G(wn)(r, o.value)
|
|
171
171
|
}), {
|
|
172
|
-
default: Y(() => [r === 0 && n.$slots.art ? (R(), E("span",
|
|
172
|
+
default: Y(() => [r === 0 && n.$slots.art ? (R(), E("span", vr, [V(n.$slots, "art")])) : (R(), E(S, { key: 1 }, [r === 0 && n.$slots.mark ? (R(), E("span", {
|
|
173
173
|
key: 0,
|
|
174
174
|
class: P(`glim-readme-btn-mark ${e.markClass ?? ""}`),
|
|
175
175
|
"aria-hidden": "true"
|
|
176
|
-
}, [V(n.$slots, "mark")], 2)) : T("", !0), D("span",
|
|
176
|
+
}, [V(n.$slots, "mark")], 2)) : T("", !0), D("span", yr, [D("span", br, W(t.name), 1), f(t) ? (R(), E("span", xr, W(f(t)), 1)) : T("", !0)])], 64))]),
|
|
177
177
|
_: 2
|
|
178
178
|
}, 1040, ["aria-label", "class"]))), 128)),
|
|
179
|
-
o.value ? T("", !0) : (R(), E("span",
|
|
180
|
-
e.hint ? (R(), E("span",
|
|
179
|
+
o.value ? T("", !0) : (R(), E("span", Sr)),
|
|
180
|
+
e.hint ? (R(), E("span", Cr, [A(Q, { tip: e.hint }, null, 8, ["tip"])])) : T("", !0),
|
|
181
181
|
A(t, { state: G(u) }, null, 8, ["state"])
|
|
182
182
|
], 2));
|
|
183
183
|
}
|
|
184
|
-
}),
|
|
184
|
+
}), wr = { class: "glim-info-text" }, Tr = { class: "glim-info-text" }, Er = { class: "glim-readme-btn-rows glim-about-give" }, Dr = /* @__PURE__ */ j({
|
|
185
185
|
__name: "InfoAboutCard",
|
|
186
186
|
props: {
|
|
187
187
|
text: {},
|
|
@@ -194,15 +194,15 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
194
194
|
hueIndex: {}
|
|
195
195
|
},
|
|
196
196
|
setup(e) {
|
|
197
|
-
return (t, n) => (R(), w(
|
|
197
|
+
return (t, n) => (R(), w(_r, {
|
|
198
198
|
"data-glim": "InfoAboutCard",
|
|
199
199
|
title: e.text.title,
|
|
200
200
|
"hue-index": e.hueIndex
|
|
201
201
|
}, {
|
|
202
202
|
default: Y(() => [
|
|
203
|
-
D("p",
|
|
204
|
-
D("p",
|
|
205
|
-
D("div",
|
|
203
|
+
D("p", wr, W(e.text.body), 1),
|
|
204
|
+
D("p", Tr, W(e.text.coffee), 1),
|
|
205
|
+
D("div", Er, [
|
|
206
206
|
A($, {
|
|
207
207
|
brand: "coffee",
|
|
208
208
|
parts: [{
|
|
@@ -244,7 +244,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
244
244
|
_: 1
|
|
245
245
|
}, 8, ["title", "hue-index"]));
|
|
246
246
|
}
|
|
247
|
-
}),
|
|
247
|
+
}), Or = { class: "glim-info-text" }, kr = { class: "glim-readme-btn-rows" }, Ar = /* @__PURE__ */ j({
|
|
248
248
|
__name: "InfoHelpCard",
|
|
249
249
|
props: {
|
|
250
250
|
text: {},
|
|
@@ -260,19 +260,19 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
260
260
|
bugGlyph: {},
|
|
261
261
|
openUrl: {
|
|
262
262
|
type: Function,
|
|
263
|
-
default:
|
|
263
|
+
default: $t
|
|
264
264
|
},
|
|
265
265
|
hueIndex: {}
|
|
266
266
|
},
|
|
267
267
|
setup(e) {
|
|
268
|
-
let t = e, n = C(() =>
|
|
269
|
-
return (t, i) => (R(), w(
|
|
268
|
+
let t = e, n = C(() => Qt(t.text.report, t.mailAddress)), r = C(() => Zt(t.text.report, t.discordUrl) && !!t.text.discordButton);
|
|
269
|
+
return (t, i) => (R(), w(_r, {
|
|
270
270
|
"data-glim": "InfoHelpCard",
|
|
271
271
|
title: e.text.title,
|
|
272
272
|
hint: e.text.hint,
|
|
273
273
|
"hue-index": e.hueIndex
|
|
274
274
|
}, {
|
|
275
|
-
default: Y(() => [D("p",
|
|
275
|
+
default: Y(() => [D("p", Or, W(e.text.report), 1), D("div", kr, [
|
|
276
276
|
A($, {
|
|
277
277
|
brand: "github",
|
|
278
278
|
parts: [{
|
|
@@ -303,7 +303,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
303
303
|
brand: "house",
|
|
304
304
|
parts: [{
|
|
305
305
|
name: e.text.mailButton,
|
|
306
|
-
onClick: () => e.openUrl(G(
|
|
306
|
+
onClick: () => e.openUrl(G(Vt)(e.mailAddress, e.text.mailSubject))
|
|
307
307
|
}],
|
|
308
308
|
"mark-class": "glim-house-mark"
|
|
309
309
|
}, O({ _: 2 }, [e.mailGlyph ? {
|
|
@@ -346,19 +346,19 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
346
346
|
"hue-index"
|
|
347
347
|
]));
|
|
348
348
|
}
|
|
349
|
-
}),
|
|
349
|
+
}), jr = { class: "glim-version-rows" }, Mr = { class: "glim-version-name" }, Nr = { class: "glim-version-part" }, Pr = {
|
|
350
350
|
key: 0,
|
|
351
351
|
class: "glim-version-sub"
|
|
352
|
-
},
|
|
352
|
+
}, Fr = ["href", "onClick"], Ir = {
|
|
353
353
|
key: 1,
|
|
354
354
|
class: "glim-num glim-version-number"
|
|
355
|
-
},
|
|
355
|
+
}, Lr = {
|
|
356
356
|
key: 0,
|
|
357
357
|
class: "glim-version-actions"
|
|
358
|
-
},
|
|
358
|
+
}, Rr = {
|
|
359
359
|
role: "status",
|
|
360
360
|
class: "glim-sr-only"
|
|
361
|
-
},
|
|
361
|
+
}, zr = /* @__PURE__ */ j({
|
|
362
362
|
__name: "InfoVersionCard",
|
|
363
363
|
props: {
|
|
364
364
|
text: {},
|
|
@@ -367,37 +367,37 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
367
367
|
onReleaseNotes: {},
|
|
368
368
|
openUrl: {
|
|
369
369
|
type: Function,
|
|
370
|
-
default:
|
|
370
|
+
default: $t
|
|
371
371
|
},
|
|
372
372
|
hueIndex: {}
|
|
373
373
|
},
|
|
374
374
|
setup(e) {
|
|
375
|
-
let t = e, n =
|
|
375
|
+
let t = e, n = Pe(), r = C(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = U({ kind: "idle" }), a = U(0), o = C(() => t.updateCheck && sr(i.value, t.updateCheck.text));
|
|
376
376
|
function s() {
|
|
377
|
-
|
|
377
|
+
Mn(t.updateCheck, i.value, (e) => {
|
|
378
378
|
i.value = e, e.kind === "failed" && a.value++;
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
function c(e, n) {
|
|
382
382
|
e.preventDefault(), t.openUrl(n);
|
|
383
383
|
}
|
|
384
|
-
return (t, n) => (R(), w(
|
|
384
|
+
return (t, n) => (R(), w(_r, {
|
|
385
385
|
"data-glim": "InfoVersionCard",
|
|
386
386
|
title: e.text.title,
|
|
387
387
|
hint: e.text.hint,
|
|
388
388
|
"hue-index": e.hueIndex
|
|
389
389
|
}, {
|
|
390
|
-
default: Y(() => [D("ul",
|
|
390
|
+
default: Y(() => [D("ul", jr, [(R(!0), E(S, null, B(e.rows, (t) => (R(), E("li", {
|
|
391
391
|
key: t.name,
|
|
392
392
|
class: "glim-version-row"
|
|
393
|
-
}, [D("span",
|
|
393
|
+
}, [D("span", Mr, [D("span", Nr, W(t.name), 1), t.sub ? (R(), E("span", Pr, W(t.sub), 1)) : T("", !0)]), G(lr)(t).href ? (R(), E("a", {
|
|
394
394
|
key: 0,
|
|
395
|
-
href: G(
|
|
395
|
+
href: G(lr)(t).href,
|
|
396
396
|
target: "_blank",
|
|
397
397
|
rel: "noopener noreferrer",
|
|
398
398
|
class: "glim-num glim-version-number",
|
|
399
|
-
onClick: (e) => c(e, G(
|
|
400
|
-
}, W(G(
|
|
399
|
+
onClick: (e) => c(e, G(lr)(t).href)
|
|
400
|
+
}, W(G(lr)(t).shown), 9, Fr)) : (R(), E("span", Ir, W(G(lr)(t).released ? G(lr)(t).shown : e.text.unreleased(G(lr)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (R(), E("div", Lr, [
|
|
401
401
|
r.value ? (R(), w(f, {
|
|
402
402
|
key: 0,
|
|
403
403
|
label: e.text.releaseNotes,
|
|
@@ -410,7 +410,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
410
410
|
label: o.value.label,
|
|
411
411
|
"label-key": o.value.labelKey,
|
|
412
412
|
tone: o.value.tone,
|
|
413
|
-
stage: G(
|
|
413
|
+
stage: G(cr)(e.updateCheck.text, o.value.label),
|
|
414
414
|
busy: i.value.kind === "busy",
|
|
415
415
|
class: P(a.value > 0 ? "glim-shake" : ""),
|
|
416
416
|
onClick: s
|
|
@@ -421,7 +421,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
421
421
|
"stage",
|
|
422
422
|
"busy",
|
|
423
423
|
"class"
|
|
424
|
-
])), D("span",
|
|
424
|
+
])), D("span", Rr, W(o.value.announced), 1)], 64)) : T("", !0)
|
|
425
425
|
])) : T("", !0)]),
|
|
426
426
|
_: 3
|
|
427
427
|
}, 8, [
|
|
@@ -430,10 +430,10 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
430
430
|
"hue-index"
|
|
431
431
|
]));
|
|
432
432
|
}
|
|
433
|
-
}),
|
|
433
|
+
}), Br = {
|
|
434
434
|
"data-glim": "InfoTile",
|
|
435
435
|
style: { display: "contents" }
|
|
436
|
-
},
|
|
436
|
+
}, Vr = /* @__PURE__ */ j({
|
|
437
437
|
__name: "InfoTile",
|
|
438
438
|
props: {
|
|
439
439
|
version: {},
|
|
@@ -443,17 +443,17 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
443
443
|
},
|
|
444
444
|
setup(e) {
|
|
445
445
|
let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
446
|
-
return (t, r) => (R(), E("div",
|
|
447
|
-
A(
|
|
446
|
+
return (t, r) => (R(), E("div", Br, [
|
|
447
|
+
A(zr, N(e.version, { "hue-index": n(0) }), O({ _: 2 }, [t.$slots["whats-new"] ? {
|
|
448
448
|
name: "whats-new",
|
|
449
449
|
fn: Y(() => [V(t.$slots, "whats-new")]),
|
|
450
450
|
key: "0"
|
|
451
451
|
} : void 0]), 1040, ["hue-index"]),
|
|
452
|
-
A(
|
|
453
|
-
A(
|
|
452
|
+
A(Ar, N(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
453
|
+
A(Dr, N(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
454
454
|
]));
|
|
455
455
|
}
|
|
456
|
-
}),
|
|
456
|
+
}), Hr = /* @__PURE__ */ j({
|
|
457
457
|
__name: "AboutCard",
|
|
458
458
|
props: {
|
|
459
459
|
text: {},
|
|
@@ -474,13 +474,13 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
474
474
|
mailGlyph: {},
|
|
475
475
|
openUrl: {
|
|
476
476
|
type: Function,
|
|
477
|
-
default:
|
|
477
|
+
default: $t
|
|
478
478
|
},
|
|
479
479
|
hueIndex: {}
|
|
480
480
|
},
|
|
481
481
|
setup(e) {
|
|
482
482
|
let t = e;
|
|
483
|
-
|
|
483
|
+
ur("AboutCard");
|
|
484
484
|
let n = C(() => [...t.version ? [{
|
|
485
485
|
name: t.text.version,
|
|
486
486
|
version: t.version,
|
|
@@ -490,7 +490,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
490
490
|
version: t.glimstoneVersion,
|
|
491
491
|
repoUrl: t.glimstoneRepoUrl
|
|
492
492
|
}]);
|
|
493
|
-
return (t, r) => (R(), w(
|
|
493
|
+
return (t, r) => (R(), w(Vr, {
|
|
494
494
|
"data-glim": "AboutCard",
|
|
495
495
|
"hue-index": e.hueIndex,
|
|
496
496
|
about: {
|
|
@@ -534,40 +534,40 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
534
534
|
"help"
|
|
535
535
|
]));
|
|
536
536
|
}
|
|
537
|
-
}),
|
|
537
|
+
}), Ur = {
|
|
538
538
|
key: 0,
|
|
539
539
|
"data-glim": "BrandMark",
|
|
540
540
|
class: "glim-brand-svg",
|
|
541
541
|
"aria-hidden": "true"
|
|
542
|
-
},
|
|
542
|
+
}, Wr = ["innerHTML"], Gr = ["innerHTML"], Kr = ["innerHTML"], qr = /* @__PURE__ */ j({
|
|
543
543
|
__name: "BrandMark",
|
|
544
544
|
props: {
|
|
545
545
|
svg: {},
|
|
546
546
|
hover: {}
|
|
547
547
|
},
|
|
548
548
|
setup(e) {
|
|
549
|
-
return (t, n) => e.hover ? (R(), E("span",
|
|
549
|
+
return (t, n) => e.hover ? (R(), E("span", Ur, [D("span", {
|
|
550
550
|
class: "glim-mark-rest",
|
|
551
551
|
innerHTML: e.svg
|
|
552
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, Wr), D("span", {
|
|
553
553
|
class: "glim-mark-hover",
|
|
554
554
|
innerHTML: e.hover
|
|
555
|
-
}, null, 8,
|
|
555
|
+
}, null, 8, Gr)])) : (R(), E("span", {
|
|
556
556
|
key: 1,
|
|
557
557
|
"data-glim": "BrandMark",
|
|
558
558
|
class: "glim-brand-svg",
|
|
559
559
|
"aria-hidden": "true",
|
|
560
560
|
innerHTML: e.svg
|
|
561
|
-
}, null, 8,
|
|
561
|
+
}, null, 8, Kr));
|
|
562
562
|
}
|
|
563
|
-
}),
|
|
563
|
+
}), Jr = [
|
|
564
564
|
"aria-checked",
|
|
565
565
|
"aria-label",
|
|
566
566
|
"disabled"
|
|
567
|
-
],
|
|
567
|
+
], Yr = {
|
|
568
568
|
class: "glim-checkbox-box",
|
|
569
569
|
"aria-hidden": "true"
|
|
570
|
-
},
|
|
570
|
+
}, Xr = { key: 0 }, Zr = /* @__PURE__ */ j({
|
|
571
571
|
__name: "Checkbox",
|
|
572
572
|
props: /*@__PURE__*/ M({
|
|
573
573
|
label: {},
|
|
@@ -602,13 +602,13 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
602
602
|
disabled: e.disabled,
|
|
603
603
|
class: P(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
604
604
|
onClick: i[0] ||= (e) => r.value = !r.value,
|
|
605
|
-
onKeydown: i[1] ||=
|
|
606
|
-
}, [D("span",
|
|
605
|
+
onKeydown: i[1] ||= Be(X(() => {}, ["prevent"]), ["enter"])
|
|
606
|
+
}, [D("span", Yr, [A(G(b))]), n.value ? T("", !0) : (R(), E("span", Xr, W(e.label), 1))], 42, Jr));
|
|
607
607
|
}
|
|
608
|
-
}),
|
|
608
|
+
}), Qr = ["data-glim-title"], $r = { class: "glim-modal-head" }, ei = {
|
|
609
609
|
id: "coffee-title",
|
|
610
610
|
class: "glim-modal-title"
|
|
611
|
-
},
|
|
611
|
+
}, ti = { class: "glim-give-body" }, ni = { class: "glim-give-appeal" }, ri = { class: "glim-give-intro" }, ii = { class: "glim-give-frame" }, ai = ["src", "title"], oi = { class: "glim-give-foot" }, si = /* @__PURE__ */ j({
|
|
612
612
|
__name: "CoffeeDialog",
|
|
613
613
|
props: {
|
|
614
614
|
widgetUrl: {},
|
|
@@ -631,7 +631,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
631
631
|
"aria-labelledby": "coffee-title",
|
|
632
632
|
class: "glim-modal-card glim-modal-card--wide glim-modal-card--tall"
|
|
633
633
|
}, [
|
|
634
|
-
D("div",
|
|
634
|
+
D("div", $r, [D("h2", ei, [A(e, {
|
|
635
635
|
tone: "heading",
|
|
636
636
|
size: "heading",
|
|
637
637
|
wrap: ""
|
|
@@ -639,34 +639,34 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
639
639
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
640
640
|
_: 1
|
|
641
641
|
})])]),
|
|
642
|
-
D("div",
|
|
643
|
-
D("p",
|
|
644
|
-
D("p",
|
|
645
|
-
D("div",
|
|
642
|
+
D("div", ti, [
|
|
643
|
+
D("p", ni, W(t.text.appeal), 1),
|
|
644
|
+
D("p", ri, W(t.text.intro), 1),
|
|
645
|
+
D("div", ii, [D("iframe", {
|
|
646
646
|
src: t.widgetUrl,
|
|
647
647
|
title: t.text.title,
|
|
648
648
|
allow: "payment",
|
|
649
649
|
class: "glim-give-iframe"
|
|
650
|
-
}, null, 8,
|
|
650
|
+
}, null, 8, ai)])
|
|
651
651
|
]),
|
|
652
|
-
D("div",
|
|
652
|
+
D("div", oi, [A(f, {
|
|
653
653
|
label: t.text.closeLabel,
|
|
654
654
|
"label-key": "common.close",
|
|
655
655
|
tone: "neutral",
|
|
656
656
|
onClick: r[0] ||= (e) => i("close")
|
|
657
657
|
}, null, 8, ["label"])])
|
|
658
|
-
], 8,
|
|
658
|
+
], 8, Qr)]));
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), ci = { class: "glim-picker-foot" }, li = {
|
|
661
661
|
key: 0,
|
|
662
662
|
class: "glim-picker-name"
|
|
663
|
-
},
|
|
663
|
+
}, ui = ["value", "aria-label"], di = { class: "glim-picker-actions" }, fi = /* @__PURE__ */ j({
|
|
664
664
|
__name: "ColorPicker",
|
|
665
665
|
props: /*@__PURE__*/ M({
|
|
666
666
|
anchor: { default: null },
|
|
667
667
|
names: {
|
|
668
668
|
type: [Array, Boolean],
|
|
669
|
-
default: () =>
|
|
669
|
+
default: () => Ve
|
|
670
670
|
},
|
|
671
671
|
text: {}
|
|
672
672
|
}, {
|
|
@@ -680,20 +680,20 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
680
680
|
], ["update:modelValue"]),
|
|
681
681
|
setup(e, { emit: t }) {
|
|
682
682
|
let n = e, r = q(e, "modelValue"), i = t, a = {
|
|
683
|
-
...
|
|
683
|
+
...He,
|
|
684
684
|
...n.text
|
|
685
|
-
}, o = U(null), s = U(null), c = z(
|
|
685
|
+
}, o = U(null), s = U(null), c = z(Xt(r.value) ?? "#000000"), l = z(c.value), u = C(() => n.names === !1 ? null : Jt(c.value, n.names)), d = at(c.value, (e) => {
|
|
686
686
|
c.value = e, l.value = e, i("input", e);
|
|
687
687
|
}, { text: a }), p;
|
|
688
688
|
L(() => {
|
|
689
|
-
s.value.appendChild(d.el), n.anchor && o.value && (p =
|
|
689
|
+
s.value.appendChild(d.el), n.anchor && o.value && (p = yt(o.value, n.anchor, () => i("close")), d.focus());
|
|
690
690
|
}), I(() => p?.()), J(r, (e) => {
|
|
691
|
-
let t =
|
|
691
|
+
let t = Xt(e);
|
|
692
692
|
t && (c.value = t, l.value = t, d.setValue(t));
|
|
693
693
|
});
|
|
694
694
|
function m(e) {
|
|
695
695
|
l.value = e.target.value;
|
|
696
|
-
let t =
|
|
696
|
+
let t = Xt(l.value);
|
|
697
697
|
t && (c.value = t, d.setValue(t), i("input", t));
|
|
698
698
|
}
|
|
699
699
|
function h() {
|
|
@@ -702,8 +702,8 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
702
702
|
function g(e) {
|
|
703
703
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
|
|
704
704
|
}
|
|
705
|
-
return (t, n) => (R(), w(
|
|
706
|
-
to: G(
|
|
705
|
+
return (t, n) => (R(), w(Ce, {
|
|
706
|
+
to: G(yn)(),
|
|
707
707
|
disabled: !e.anchor
|
|
708
708
|
}, [D("div", {
|
|
709
709
|
"data-glim": "ColorPicker",
|
|
@@ -718,12 +718,12 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
718
718
|
ref: s,
|
|
719
719
|
style: { display: "contents" }
|
|
720
720
|
}, null, 512),
|
|
721
|
-
D("div",
|
|
721
|
+
D("div", ci, [
|
|
722
722
|
n[0] ||= D("span", {
|
|
723
723
|
class: "glim-picker-swatch",
|
|
724
724
|
"aria-hidden": "true"
|
|
725
725
|
}, null, -1),
|
|
726
|
-
u.value === null ? T("", !0) : (R(), E("span",
|
|
726
|
+
u.value === null ? T("", !0) : (R(), E("span", li, W(u.value), 1)),
|
|
727
727
|
D("input", {
|
|
728
728
|
class: "glim-picker-hex",
|
|
729
729
|
value: l.value,
|
|
@@ -731,9 +731,9 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
731
731
|
spellcheck: "false",
|
|
732
732
|
"aria-label": a.hex,
|
|
733
733
|
onInput: m
|
|
734
|
-
}, null, 40,
|
|
734
|
+
}, null, 40, ui)
|
|
735
735
|
]),
|
|
736
|
-
D("div",
|
|
736
|
+
D("div", di, [A(f, {
|
|
737
737
|
label: a.apply,
|
|
738
738
|
"label-key": "apply",
|
|
739
739
|
glyph: G(b),
|
|
@@ -742,16 +742,16 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
742
742
|
}, null, 8, ["label", "glyph"])])
|
|
743
743
|
], 38)], 8, ["to", "disabled"]));
|
|
744
744
|
}
|
|
745
|
-
}),
|
|
745
|
+
}), pi = ["data-glim-title"], mi = { class: "glim-modal-head" }, hi = {
|
|
746
746
|
id: "confirmdialog-title",
|
|
747
747
|
class: "glim-modal-title"
|
|
748
|
-
},
|
|
748
|
+
}, gi = { class: "glim-modal-body" }, _i = {
|
|
749
749
|
id: "confirmdialog-message",
|
|
750
750
|
class: "glim-modal-text"
|
|
751
|
-
},
|
|
751
|
+
}, vi = {
|
|
752
752
|
key: 0,
|
|
753
753
|
class: "glim-modal-extra"
|
|
754
|
-
},
|
|
754
|
+
}, yi = { class: "glim-modal-foot" }, bi = /* @__PURE__ */ j({
|
|
755
755
|
__name: "ConfirmDialog",
|
|
756
756
|
props: {
|
|
757
757
|
title: {},
|
|
@@ -779,7 +779,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
779
779
|
"aria-describedby": "confirmdialog-message",
|
|
780
780
|
class: "glim-modal-card"
|
|
781
781
|
}, [
|
|
782
|
-
D("div",
|
|
782
|
+
D("div", mi, [D("h2", hi, [A(e, {
|
|
783
783
|
tone: "heading",
|
|
784
784
|
size: "heading",
|
|
785
785
|
wrap: ""
|
|
@@ -790,17 +790,17 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
790
790
|
key: 0,
|
|
791
791
|
label: t.closeLabel,
|
|
792
792
|
"label-key": "common.close",
|
|
793
|
-
glyph: G(
|
|
793
|
+
glyph: G(_),
|
|
794
794
|
class: "glim-modal-close",
|
|
795
795
|
onClick: r[0] ||= (e) => i("cancel")
|
|
796
796
|
}, null, 8, ["label", "glyph"]))]),
|
|
797
|
-
D("div",
|
|
798
|
-
D("div",
|
|
797
|
+
D("div", gi, [D("p", _i, W(t.message), 1), n.$slots.extra ? (R(), E("div", vi, [V(n.$slots, "extra")])) : T("", !0)]),
|
|
798
|
+
D("div", yi, [A(f, {
|
|
799
799
|
ref_key: "cancel",
|
|
800
800
|
ref: o,
|
|
801
801
|
label: t.cancelLabel,
|
|
802
802
|
"label-key": "common.cancel",
|
|
803
|
-
glyph: G(
|
|
803
|
+
glyph: G(le),
|
|
804
804
|
onClick: r[1] ||= (e) => i("cancel")
|
|
805
805
|
}, null, 8, ["label", "glyph"]), A(f, {
|
|
806
806
|
label: t.confirmLabel,
|
|
@@ -812,25 +812,99 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
812
812
|
"label-key",
|
|
813
813
|
"glyph"
|
|
814
814
|
])])
|
|
815
|
-
], 8,
|
|
815
|
+
], 8, pi)]));
|
|
816
|
+
}
|
|
817
|
+
}), xi = ["aria-label"], Si = { class: "glim-connection-mark" }, Ci = { class: "glim-connection-main" }, wi = { class: "glim-connection-head" }, Ti = { class: "glim-connection-name" }, Ei = {
|
|
818
|
+
key: 0,
|
|
819
|
+
class: "glim-connection-badges"
|
|
820
|
+
}, Di = { class: "glim-connection-foot" }, Oi = { class: "glim-connection-about" }, ki = {
|
|
821
|
+
key: 0,
|
|
822
|
+
class: "glim-connection-status"
|
|
823
|
+
}, Ai = {
|
|
824
|
+
key: 0,
|
|
825
|
+
class: "glim-connection-actions"
|
|
826
|
+
}, ji = 640, Mi = /* @__PURE__ */ j({
|
|
827
|
+
__name: "ConnectionRow",
|
|
828
|
+
props: {
|
|
829
|
+
name: {},
|
|
830
|
+
mark: {},
|
|
831
|
+
status: {},
|
|
832
|
+
test: {},
|
|
833
|
+
actions: {},
|
|
834
|
+
text: {},
|
|
835
|
+
labelKeys: {},
|
|
836
|
+
onTest: { type: Function },
|
|
837
|
+
onEdit: { type: Function },
|
|
838
|
+
onRemove: { type: Function }
|
|
839
|
+
},
|
|
840
|
+
setup(e) {
|
|
841
|
+
let t = e, n = C(() => ut(t.mark)), r = C(() => ct(t, {
|
|
842
|
+
test: b,
|
|
843
|
+
edit: ce,
|
|
844
|
+
remove: pe
|
|
845
|
+
}).map((e) => {
|
|
846
|
+
let t = lt(e);
|
|
847
|
+
return {
|
|
848
|
+
...e,
|
|
849
|
+
face: t,
|
|
850
|
+
glyph: t.outcome === "check" ? b : t.outcome === "cross" ? _ : e.glyph
|
|
851
|
+
};
|
|
852
|
+
}));
|
|
853
|
+
return (t, i) => (R(), E("div", {
|
|
854
|
+
"data-glim": "ConnectionRow",
|
|
855
|
+
role: "group",
|
|
856
|
+
"aria-label": e.name,
|
|
857
|
+
class: "glim-well glim-connection"
|
|
858
|
+
}, [D("span", {
|
|
859
|
+
class: "glim-connection-tile",
|
|
860
|
+
style: F(n.value.style),
|
|
861
|
+
"aria-hidden": "true"
|
|
862
|
+
}, [D("span", Si, [n.value.svg === void 0 ? (R(), w(H(e.mark), { key: 1 })) : (R(), w(qr, {
|
|
863
|
+
key: 0,
|
|
864
|
+
svg: n.value.svg
|
|
865
|
+
}, null, 8, ["svg"]))])], 4), D("div", Ci, [D("div", wi, [D("span", Ti, W(e.name), 1), t.$slots.badges ? (R(), E("span", Ei, [V(t.$slots, "badges")])) : T("", !0)]), D("div", Di, [D("div", Oi, [e.status ? (R(), E("p", ki, W(e.status), 1)) : T("", !0), V(t.$slots, "default")]), r.value.length > 0 ? (R(), E("span", Ai, [(R(!0), E(S, null, B(r.value, (e) => (R(), w(f, {
|
|
866
|
+
key: e.id,
|
|
867
|
+
label: e.label,
|
|
868
|
+
"label-key": e.labelKey,
|
|
869
|
+
glyph: e.glyph,
|
|
870
|
+
tone: e.face.tone,
|
|
871
|
+
busy: e.busy,
|
|
872
|
+
title: e.title,
|
|
873
|
+
disabled: e.disabled,
|
|
874
|
+
"compact-below": ji,
|
|
875
|
+
class: P({ "glim-shake": e.face.shake }),
|
|
876
|
+
"data-connection": e.id,
|
|
877
|
+
onClick: e.onClick
|
|
878
|
+
}, null, 8, [
|
|
879
|
+
"label",
|
|
880
|
+
"label-key",
|
|
881
|
+
"glyph",
|
|
882
|
+
"tone",
|
|
883
|
+
"busy",
|
|
884
|
+
"title",
|
|
885
|
+
"disabled",
|
|
886
|
+
"class",
|
|
887
|
+
"data-connection",
|
|
888
|
+
"onClick"
|
|
889
|
+
]))), 128))])) : T("", !0)])])], 8, xi));
|
|
816
890
|
}
|
|
817
|
-
}),
|
|
891
|
+
}), Ni = {
|
|
818
892
|
"data-glim": "Kbd",
|
|
819
893
|
class: "glim-kbd"
|
|
820
|
-
},
|
|
894
|
+
}, Pi = /* @__PURE__ */ j({
|
|
821
895
|
__name: "Kbd",
|
|
822
896
|
setup(e) {
|
|
823
|
-
return (e, t) => (R(), E("kbd",
|
|
897
|
+
return (e, t) => (R(), E("kbd", Ni, [V(e.$slots, "default")]));
|
|
824
898
|
}
|
|
825
|
-
}),
|
|
899
|
+
}), Fi = {
|
|
826
900
|
key: 0,
|
|
827
901
|
class: "glim-menu-sep",
|
|
828
902
|
role: "separator"
|
|
829
|
-
},
|
|
903
|
+
}, Ii = {
|
|
830
904
|
key: 1,
|
|
831
905
|
class: "glim-menu-head",
|
|
832
906
|
role: "presentation"
|
|
833
|
-
},
|
|
907
|
+
}, Li = [
|
|
834
908
|
"role",
|
|
835
909
|
"aria-checked",
|
|
836
910
|
"aria-haspopup",
|
|
@@ -838,26 +912,26 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
838
912
|
"disabled",
|
|
839
913
|
"data-row",
|
|
840
914
|
"onClick"
|
|
841
|
-
],
|
|
915
|
+
], Ri = {
|
|
842
916
|
key: 0,
|
|
843
917
|
class: "glim-checkbox-box",
|
|
844
918
|
"aria-hidden": "true"
|
|
845
|
-
},
|
|
919
|
+
}, zi = {
|
|
846
920
|
key: 2,
|
|
847
921
|
class: "glim-menu-glyph",
|
|
848
922
|
"aria-hidden": "true"
|
|
849
|
-
},
|
|
923
|
+
}, Bi = { class: "glim-menu-label" }, Vi = {
|
|
850
924
|
key: 3,
|
|
851
925
|
class: "glim-menu-end glim-menu-caret",
|
|
852
926
|
"aria-hidden": "true"
|
|
853
|
-
},
|
|
927
|
+
}, Hi = {
|
|
854
928
|
key: 4,
|
|
855
929
|
class: "glim-menu-end glim-menu-tick",
|
|
856
930
|
"aria-hidden": "true"
|
|
857
|
-
},
|
|
931
|
+
}, Ui = {
|
|
858
932
|
key: 6,
|
|
859
933
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
860
|
-
},
|
|
934
|
+
}, Wi = /* @__PURE__ */ j({
|
|
861
935
|
__name: "MenuRows",
|
|
862
936
|
props: {
|
|
863
937
|
entries: {},
|
|
@@ -865,15 +939,15 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
865
939
|
},
|
|
866
940
|
emits: ["pick"],
|
|
867
941
|
setup(e, { emit: t }) {
|
|
868
|
-
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } :
|
|
942
|
+
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : At(e) ? {
|
|
869
943
|
kind: "head",
|
|
870
944
|
head: e
|
|
871
945
|
} : {
|
|
872
946
|
kind: "item",
|
|
873
947
|
item: e,
|
|
874
|
-
view:
|
|
948
|
+
view: Kt(e)
|
|
875
949
|
}));
|
|
876
|
-
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div",
|
|
950
|
+
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div", Fi)) : t.kind === "head" ? (R(), E("div", Ii, [D("span", null, W(t.head.head), 1), t.head.edit ? (R(), w(_e, {
|
|
877
951
|
key: 0,
|
|
878
952
|
tip: t.head.edit.tip,
|
|
879
953
|
role: "menuitem",
|
|
@@ -882,7 +956,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
882
956
|
"data-row": n,
|
|
883
957
|
onClick: (e) => r("pick", n)
|
|
884
958
|
}, {
|
|
885
|
-
default: Y(() => [(R(), w(H(t.head.edit.glyph ?? G(
|
|
959
|
+
default: Y(() => [(R(), w(H(t.head.edit.glyph ?? G(ce))))]),
|
|
886
960
|
_: 2
|
|
887
961
|
}, 1032, [
|
|
888
962
|
"tip",
|
|
@@ -901,23 +975,23 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
901
975
|
"data-row": n,
|
|
902
976
|
onClick: (e) => r("pick", n)
|
|
903
977
|
}, [
|
|
904
|
-
t.view.lead === "box" ? (R(), E("span",
|
|
978
|
+
t.view.lead === "box" ? (R(), E("span", Ri, [A(G(b))])) : t.view.lead === "dot" ? (R(), E("span", {
|
|
905
979
|
key: 1,
|
|
906
980
|
class: "glim-menu-dot",
|
|
907
981
|
style: F({ backgroundColor: t.item.color }),
|
|
908
982
|
"aria-hidden": "true"
|
|
909
|
-
}, null, 4)) : (R(), E("span",
|
|
910
|
-
D("span",
|
|
911
|
-
t.view.end === "submenu" ? (R(), E("span",
|
|
983
|
+
}, null, 4)) : (R(), E("span", zi, [t.view.lead === "glyph" ? (R(), w(H(t.item.glyph), { key: 0 })) : T("", !0)])),
|
|
984
|
+
D("span", Bi, W(t.item.label), 1),
|
|
985
|
+
t.view.end === "submenu" ? (R(), E("span", Vi, [A(G(ue))])) : t.view.end === "tick" ? (R(), E("span", Hi, [A(G(b))])) : t.view.end === "shortcut" ? (R(), w(Pi, {
|
|
912
986
|
key: 5,
|
|
913
987
|
class: "glim-menu-end"
|
|
914
988
|
}, {
|
|
915
989
|
default: Y(() => [k(W(t.item.shortcut), 1)]),
|
|
916
990
|
_: 2
|
|
917
|
-
}, 1024)) : t.view.end === "count" ? (R(), E("span",
|
|
918
|
-
], 10,
|
|
991
|
+
}, 1024)) : t.view.end === "count" ? (R(), E("span", Ui, W(t.item.count), 1)) : T("", !0)
|
|
992
|
+
], 10, Li))], 64))), 128));
|
|
919
993
|
}
|
|
920
|
-
}),
|
|
994
|
+
}), Gi = ["id", "aria-label"], Ki = ["id", "aria-label"], qi = /* @__PURE__ */ j({
|
|
921
995
|
__name: "ContextMenu",
|
|
922
996
|
props: {
|
|
923
997
|
x: {},
|
|
@@ -937,22 +1011,22 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
937
1011
|
},
|
|
938
1012
|
emits: ["close", "step"],
|
|
939
1013
|
setup(e, { emit: t }) {
|
|
940
|
-
let n = e, r = t, i = U(null), a = U(null), o =
|
|
1014
|
+
let n = e, r = t, i = U(null), a = U(null), o = Et(), s = z({
|
|
941
1015
|
left: n.x,
|
|
942
1016
|
top: n.y
|
|
943
|
-
}), c = U(null), l = z(null), u = C(() =>
|
|
1017
|
+
}), c = U(null), l = z(null), u = C(() => tr(n.items)), d = C(() => {
|
|
944
1018
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
945
|
-
return e && e !== "-" && !
|
|
946
|
-
}), f = C(() => d.value?.sub ?
|
|
1019
|
+
return e && e !== "-" && !At(e) && e.sub ? e : null;
|
|
1020
|
+
}), f = C(() => d.value?.sub ? tr(d.value.sub) : null), p = () => ({
|
|
947
1021
|
width: innerWidth,
|
|
948
1022
|
height: innerHeight
|
|
949
1023
|
});
|
|
950
1024
|
function m(e) {
|
|
951
|
-
r("close"), e &&
|
|
1025
|
+
r("close"), e && kn(n.opener ?? o);
|
|
952
1026
|
}
|
|
953
1027
|
function h() {
|
|
954
1028
|
let e = i.value;
|
|
955
|
-
e && (s.value =
|
|
1029
|
+
e && (s.value = _n(n.x, n.y, {
|
|
956
1030
|
width: e.offsetWidth,
|
|
957
1031
|
height: e.offsetHeight
|
|
958
1032
|
}, p(), n.above));
|
|
@@ -964,46 +1038,46 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
964
1038
|
], h, { flush: "post" });
|
|
965
1039
|
let g, _;
|
|
966
1040
|
L(() => {
|
|
967
|
-
h(), g =
|
|
1041
|
+
h(), g = rt(m), _ = it(() => [
|
|
968
1042
|
i.value,
|
|
969
1043
|
a.value,
|
|
970
1044
|
n.opener
|
|
971
|
-
], () => m(!1)), i.value && n.fromEnd ?
|
|
972
|
-
}),
|
|
1045
|
+
], () => m(!1)), i.value && n.fromEnd ? Ct(i.value, "last") : i.value && St(i.value);
|
|
1046
|
+
}), Oe(() => {
|
|
973
1047
|
g?.(), _?.();
|
|
974
1048
|
}), J(c, (e) => {
|
|
975
1049
|
l.value = null;
|
|
976
1050
|
let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
|
|
977
1051
|
if (!e || !t || !n) return;
|
|
978
1052
|
let r = getComputedStyle(i.value).direction === "rtl";
|
|
979
|
-
l.value =
|
|
1053
|
+
l.value = vn(t.getBoundingClientRect(), {
|
|
980
1054
|
width: n.offsetWidth,
|
|
981
1055
|
height: n.offsetHeight
|
|
982
|
-
}, p(), r), e.focus &&
|
|
1056
|
+
}, p(), r), e.focus && St(n);
|
|
983
1057
|
}, { flush: "post" });
|
|
984
1058
|
function v(e, t) {
|
|
985
1059
|
let n = e[t];
|
|
986
|
-
n !== "-" && (
|
|
1060
|
+
n !== "-" && (At(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
|
|
987
1061
|
at: t,
|
|
988
1062
|
focus: !0
|
|
989
|
-
} : (
|
|
1063
|
+
} : (Kt(n).staysOpen || m(!0), n.onSelect?.()));
|
|
990
1064
|
}
|
|
991
1065
|
function ee(e, t) {
|
|
992
1066
|
if (e.key === "Tab") return m(!1);
|
|
993
1067
|
let n = e.currentTarget;
|
|
994
|
-
if (
|
|
995
|
-
|
|
1068
|
+
if (Mt(e)) {
|
|
1069
|
+
wt(n, e.key) && e.preventDefault();
|
|
996
1070
|
return;
|
|
997
1071
|
}
|
|
998
|
-
let a =
|
|
1072
|
+
let a = Gt(e.key, getComputedStyle(n).direction === "rtl");
|
|
999
1073
|
if (!a) return;
|
|
1000
|
-
if (e.preventDefault(), a !== "in" && a !== "out") return
|
|
1074
|
+
if (e.preventDefault(), a !== "in" && a !== "out") return Ct(n, a);
|
|
1001
1075
|
if (t) {
|
|
1002
1076
|
a === "out" && c.value && (i.value?.querySelector(`[data-row="${c.value.at}"]`)?.focus(), c.value = null);
|
|
1003
1077
|
return;
|
|
1004
1078
|
}
|
|
1005
1079
|
let o = Number(document.activeElement?.dataset.row), s = u.value[o];
|
|
1006
|
-
a === "in" && s && s !== "-" && !
|
|
1080
|
+
a === "in" && s && s !== "-" && !At(s) && s.sub && !s.disabled ? c.value = {
|
|
1007
1081
|
at: o,
|
|
1008
1082
|
focus: !0
|
|
1009
1083
|
} : r("step", a === "in" ? 1 : -1);
|
|
@@ -1011,13 +1085,13 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1011
1085
|
function te(e) {
|
|
1012
1086
|
let t = e.target.closest("[data-row]");
|
|
1013
1087
|
if (!t) return;
|
|
1014
|
-
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !
|
|
1088
|
+
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !At(r) && !!r.sub && !r.disabled;
|
|
1015
1089
|
i && c.value?.at !== n ? c.value = {
|
|
1016
1090
|
at: n,
|
|
1017
1091
|
focus: !1
|
|
1018
1092
|
} : !i && c.value && (c.value = null);
|
|
1019
1093
|
}
|
|
1020
|
-
return (t, n) => (R(), w(
|
|
1094
|
+
return (t, n) => (R(), w(Ce, { to: G(yn)() }, [D("div", {
|
|
1021
1095
|
id: e.id,
|
|
1022
1096
|
ref_key: "menu",
|
|
1023
1097
|
ref: i,
|
|
@@ -1032,11 +1106,11 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1032
1106
|
onKeydown: n[1] ||= (e) => ee(e, !1),
|
|
1033
1107
|
onMouseover: te,
|
|
1034
1108
|
onContextmenu: n[2] ||= X(() => {}, ["prevent"])
|
|
1035
|
-
}, [A(
|
|
1109
|
+
}, [A(Wi, {
|
|
1036
1110
|
entries: u.value,
|
|
1037
1111
|
"open-at": c.value?.at,
|
|
1038
1112
|
onPick: n[0] ||= (e) => v(u.value, e)
|
|
1039
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
1113
|
+
}, null, 8, ["entries", "open-at"])], 44, Gi), f.value ? (R(), E("div", {
|
|
1040
1114
|
key: 0,
|
|
1041
1115
|
id: d.value?.subId,
|
|
1042
1116
|
ref_key: "subMenu",
|
|
@@ -1050,15 +1124,15 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1050
1124
|
}),
|
|
1051
1125
|
onKeydown: n[4] ||= (e) => ee(e, !0),
|
|
1052
1126
|
onContextmenu: n[5] ||= X(() => {}, ["prevent"])
|
|
1053
|
-
}, [A(
|
|
1127
|
+
}, [A(Wi, {
|
|
1054
1128
|
entries: f.value,
|
|
1055
1129
|
onPick: n[3] ||= (e) => v(f.value, e)
|
|
1056
|
-
}, null, 8, ["entries"])], 44,
|
|
1130
|
+
}, null, 8, ["entries"])], 44, Ki)) : T("", !0)], 8, ["to"]));
|
|
1057
1131
|
}
|
|
1058
|
-
}),
|
|
1132
|
+
}), Ji = ["value", "aria-label"], Yi = {
|
|
1059
1133
|
role: "status",
|
|
1060
1134
|
class: "glim-sr-only"
|
|
1061
|
-
},
|
|
1135
|
+
}, Xi = /* @__PURE__ */ j({
|
|
1062
1136
|
__name: "CopyField",
|
|
1063
1137
|
props: {
|
|
1064
1138
|
value: {},
|
|
@@ -1074,12 +1148,12 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1074
1148
|
let n = e, r = t, i = x(() => n.label), a = z(!1), o = U(null), s;
|
|
1075
1149
|
I(() => clearTimeout(s));
|
|
1076
1150
|
async function c() {
|
|
1077
|
-
let e = await
|
|
1078
|
-
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1,
|
|
1151
|
+
let e = await dt(n.value);
|
|
1152
|
+
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, Ue)) : (o.value?.focus(), o.value?.select());
|
|
1079
1153
|
}
|
|
1080
1154
|
return (t, n) => (R(), E("span", {
|
|
1081
1155
|
"data-glim": "CopyField",
|
|
1082
|
-
class: P(["glim-copy", G(
|
|
1156
|
+
class: P(["glim-copy", G(vt)(e.width)])
|
|
1083
1157
|
}, [
|
|
1084
1158
|
D("input", {
|
|
1085
1159
|
ref_key: "field",
|
|
@@ -1089,11 +1163,11 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1089
1163
|
"aria-label": G(i),
|
|
1090
1164
|
spellcheck: "false",
|
|
1091
1165
|
class: "glim-input glim-input--mono"
|
|
1092
|
-
}, null, 8,
|
|
1166
|
+
}, null, 8, Ji),
|
|
1093
1167
|
A(f, {
|
|
1094
1168
|
label: a.value ? e.text.copied : e.text.copy,
|
|
1095
1169
|
"label-key": a.value ? "copied" : "copy",
|
|
1096
|
-
glyph: a.value ? G(b) : G(
|
|
1170
|
+
glyph: a.value ? G(b) : G(se),
|
|
1097
1171
|
variant: "icon",
|
|
1098
1172
|
onClick: c
|
|
1099
1173
|
}, null, 8, [
|
|
@@ -1101,27 +1175,27 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1101
1175
|
"label-key",
|
|
1102
1176
|
"glyph"
|
|
1103
1177
|
]),
|
|
1104
|
-
D("span",
|
|
1178
|
+
D("span", Yi, W(a.value ? e.text.copied : ""), 1)
|
|
1105
1179
|
], 2));
|
|
1106
1180
|
}
|
|
1107
|
-
}),
|
|
1181
|
+
}), Zi = ["data-glim-title"], Qi = { class: "glim-modal-head" }, $i = {
|
|
1108
1182
|
id: "cryptodonate-title",
|
|
1109
1183
|
class: "glim-modal-title"
|
|
1110
|
-
},
|
|
1184
|
+
}, ea = { class: "glim-give-body glim-give-body--scroll" }, ta = { class: "glim-give-appeal" }, na = { class: "glim-give-intro" }, ra = { class: "glim-give-well" }, ia = {
|
|
1111
1185
|
dir: "ltr",
|
|
1112
1186
|
class: "glim-give-address"
|
|
1113
|
-
},
|
|
1187
|
+
}, aa = ["aria-label"], oa = ["aria-selected", "onClick"], sa = {
|
|
1114
1188
|
key: 0,
|
|
1115
1189
|
class: "glim-give-note"
|
|
1116
|
-
},
|
|
1190
|
+
}, ca = ["aria-label"], la = [
|
|
1117
1191
|
"aria-selected",
|
|
1118
1192
|
"aria-label",
|
|
1119
1193
|
"title",
|
|
1120
1194
|
"onClick"
|
|
1121
|
-
],
|
|
1195
|
+
], ua = {
|
|
1122
1196
|
key: 1,
|
|
1123
1197
|
class: "glim-give-ticker"
|
|
1124
|
-
},
|
|
1198
|
+
}, da = { class: "glim-give-foot" }, fa = /* @__PURE__ */ j({
|
|
1125
1199
|
__name: "CryptoDonateDialog",
|
|
1126
1200
|
props: {
|
|
1127
1201
|
coins: {},
|
|
@@ -1140,7 +1214,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1140
1214
|
function d(e, t) {
|
|
1141
1215
|
let n = e.id !== i.coin.id && e.tile;
|
|
1142
1216
|
return {
|
|
1143
|
-
...
|
|
1217
|
+
...kt(t),
|
|
1144
1218
|
...n ? {
|
|
1145
1219
|
"--tile": e.tile.color,
|
|
1146
1220
|
"--tile-ink": e.tile.ink
|
|
@@ -1165,7 +1239,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1165
1239
|
"aria-labelledby": "cryptodonate-title",
|
|
1166
1240
|
class: "glim-modal-card glim-modal-card--wide"
|
|
1167
1241
|
}, [
|
|
1168
|
-
D("div",
|
|
1242
|
+
D("div", Qi, [D("h2", $i, [A(e, {
|
|
1169
1243
|
tone: "heading",
|
|
1170
1244
|
size: "heading",
|
|
1171
1245
|
wrap: ""
|
|
@@ -1173,12 +1247,12 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1173
1247
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
1174
1248
|
_: 1
|
|
1175
1249
|
})])]),
|
|
1176
|
-
D("div",
|
|
1177
|
-
D("p",
|
|
1178
|
-
D("p",
|
|
1179
|
-
D("div",
|
|
1250
|
+
D("div", ea, [
|
|
1251
|
+
D("p", ta, W(t.text.appeal), 1),
|
|
1252
|
+
D("p", na, W(t.text.intro), 1),
|
|
1253
|
+
D("div", ra, [
|
|
1180
1254
|
V(n.$slots, "qr", { value: t.network.address }),
|
|
1181
|
-
D("p",
|
|
1255
|
+
D("p", ia, W(t.network.address), 1),
|
|
1182
1256
|
D("div", {
|
|
1183
1257
|
class: "glim-give-networks",
|
|
1184
1258
|
role: "listbox",
|
|
@@ -1188,11 +1262,11 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1188
1262
|
type: "button",
|
|
1189
1263
|
role: "option",
|
|
1190
1264
|
"aria-selected": e.id === t.network.id,
|
|
1191
|
-
style: F(G(
|
|
1265
|
+
style: F(G(kt)(n)),
|
|
1192
1266
|
class: P(e.id === t.network.id ? "glim-give-network glim-hue glim-active" : "glim-give-network glim-hue"),
|
|
1193
1267
|
onClick: (n) => a("pick", t.coin, e)
|
|
1194
|
-
}, W(e.name), 15,
|
|
1195
|
-
t.network.note ? (R(), E("p",
|
|
1268
|
+
}, W(e.name), 15, oa))), 128))], 8, aa),
|
|
1269
|
+
t.network.note ? (R(), E("p", sa, W(t.network.note), 1)) : T("", !0),
|
|
1196
1270
|
A(f, {
|
|
1197
1271
|
label: t.text.copyLabel,
|
|
1198
1272
|
"label-key": "common.copy",
|
|
@@ -1215,17 +1289,17 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1215
1289
|
style: F(d(e, r)),
|
|
1216
1290
|
class: P(p(e)),
|
|
1217
1291
|
onClick: (t) => a("pick", e, e.networks[0])
|
|
1218
|
-
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span",
|
|
1292
|
+
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span", ua, W(e.symbol), 1)) : T("", !0)], 14, la))), 128))], 8, ca)
|
|
1219
1293
|
]),
|
|
1220
|
-
D("div",
|
|
1294
|
+
D("div", da, [A(f, {
|
|
1221
1295
|
label: t.text.closeLabel,
|
|
1222
1296
|
"label-key": "common.close",
|
|
1223
1297
|
tone: "neutral",
|
|
1224
1298
|
onClick: r[1] ||= (e) => a("close")
|
|
1225
1299
|
}, null, 8, ["label"])])
|
|
1226
|
-
], 8,
|
|
1300
|
+
], 8, Zi)]));
|
|
1227
1301
|
}
|
|
1228
|
-
}),
|
|
1302
|
+
}), pa = ["aria-multiselectable", "aria-label"], ma = 4, ha = /* @__PURE__ */ j({
|
|
1229
1303
|
__name: "DropdownListbox",
|
|
1230
1304
|
props: {
|
|
1231
1305
|
open: { type: Boolean },
|
|
@@ -1236,8 +1310,8 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1236
1310
|
emits: ["close"],
|
|
1237
1311
|
setup(e, { emit: t }) {
|
|
1238
1312
|
let n = e;
|
|
1239
|
-
|
|
1240
|
-
let r = t, i = U(null), a = U(null), o =
|
|
1313
|
+
ur("DropdownListbox");
|
|
1314
|
+
let r = t, i = U(null), a = U(null), o = be(() => n.open, Me(n, "triggerRef")), s = !1;
|
|
1241
1315
|
J(() => n.open, (e) => {
|
|
1242
1316
|
e || (s = !!i.value?.contains(document.activeElement));
|
|
1243
1317
|
}, { flush: "sync" });
|
|
@@ -1250,10 +1324,10 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1250
1324
|
let r = {
|
|
1251
1325
|
width: document.documentElement.clientWidth || window.innerWidth,
|
|
1252
1326
|
height: document.documentElement.clientHeight || window.innerHeight
|
|
1253
|
-
}, { left: o, top: s } =
|
|
1327
|
+
}, { left: o, top: s } = st(t, {
|
|
1254
1328
|
width: t.width,
|
|
1255
1329
|
height: i.value.offsetHeight
|
|
1256
|
-
}, r,
|
|
1330
|
+
}, r, ma);
|
|
1257
1331
|
a.value = {
|
|
1258
1332
|
left: o,
|
|
1259
1333
|
top: s,
|
|
@@ -1281,16 +1355,16 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1281
1355
|
a.value = null, s && n.triggerRef?.focus(), s = !1;
|
|
1282
1356
|
return;
|
|
1283
1357
|
}
|
|
1284
|
-
h(), await
|
|
1358
|
+
h(), await Ee(), l(), await Ee();
|
|
1285
1359
|
let t = c(), r = t.find((e) => e.getAttribute("aria-selected") === "true") ?? t[0];
|
|
1286
1360
|
r?.scrollIntoView?.({ block: "nearest" }), r?.focus();
|
|
1287
1361
|
}, {
|
|
1288
1362
|
immediate: !0,
|
|
1289
1363
|
flush: "post"
|
|
1290
|
-
}),
|
|
1364
|
+
}), De(() => m());
|
|
1291
1365
|
function g(e) {
|
|
1292
|
-
if (
|
|
1293
|
-
|
|
1366
|
+
if (Mt(e)) {
|
|
1367
|
+
bt(c(), e.key) && e.preventDefault();
|
|
1294
1368
|
return;
|
|
1295
1369
|
}
|
|
1296
1370
|
if (![
|
|
@@ -1311,9 +1385,9 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1311
1385
|
}
|
|
1312
1386
|
t[r].scrollIntoView?.({ block: "nearest" }), t[r].focus();
|
|
1313
1387
|
}
|
|
1314
|
-
return (t, n) => e.open ? (R(), w(
|
|
1388
|
+
return (t, n) => e.open ? (R(), w(Ce, {
|
|
1315
1389
|
key: 0,
|
|
1316
|
-
to: G(
|
|
1390
|
+
to: G(yn)()
|
|
1317
1391
|
}, [D("div", {
|
|
1318
1392
|
ref_key: "panel",
|
|
1319
1393
|
ref: i,
|
|
@@ -1334,16 +1408,16 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1334
1408
|
...G(o).style.value
|
|
1335
1409
|
}),
|
|
1336
1410
|
onKeydown: g
|
|
1337
|
-
}, [V(t.$slots, "default")], 46,
|
|
1411
|
+
}, [V(t.$slots, "default")], 46, pa)], 8, ["to"])) : T("", !0);
|
|
1338
1412
|
}
|
|
1339
|
-
}),
|
|
1413
|
+
}), ga = ["data-glim-title"], _a = {
|
|
1340
1414
|
key: 0,
|
|
1341
1415
|
class: "glim-empty-glyph",
|
|
1342
1416
|
"aria-hidden": "true"
|
|
1343
|
-
},
|
|
1417
|
+
}, va = { class: "glim-empty-title" }, ya = {
|
|
1344
1418
|
key: 1,
|
|
1345
1419
|
class: "glim-empty-hint"
|
|
1346
|
-
},
|
|
1420
|
+
}, ba = /* @__PURE__ */ j({
|
|
1347
1421
|
__name: "EmptyState",
|
|
1348
1422
|
props: {
|
|
1349
1423
|
glyph: {},
|
|
@@ -1360,13 +1434,13 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1360
1434
|
"data-glim-title": e.title,
|
|
1361
1435
|
class: P(e.nested ? "glim-empty" : "glim-card glim-empty")
|
|
1362
1436
|
}, [
|
|
1363
|
-
e.glyph ? (R(), E("span",
|
|
1364
|
-
D("p",
|
|
1365
|
-
e.hint ? (R(), E("p",
|
|
1437
|
+
e.glyph ? (R(), E("span", _a, [(R(), w(H(e.glyph)))])) : T("", !0),
|
|
1438
|
+
D("p", va, W(e.title), 1),
|
|
1439
|
+
e.hint ? (R(), E("p", ya, W(e.hint), 1)) : T("", !0),
|
|
1366
1440
|
V(t.$slots, "default")
|
|
1367
|
-
], 10,
|
|
1441
|
+
], 10, ga));
|
|
1368
1442
|
}
|
|
1369
|
-
}),
|
|
1443
|
+
}), xa = ["id"], Sa = /* @__PURE__ */ j({
|
|
1370
1444
|
__name: "FieldError",
|
|
1371
1445
|
props: { id: {} },
|
|
1372
1446
|
setup(e) {
|
|
@@ -1374,22 +1448,22 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1374
1448
|
"data-glim": "FieldError",
|
|
1375
1449
|
id: e.id,
|
|
1376
1450
|
class: "glim-field-error"
|
|
1377
|
-
}, [A(G(
|
|
1451
|
+
}, [A(G(p), { mark: G(Xe).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8, xa));
|
|
1378
1452
|
}
|
|
1379
|
-
}),
|
|
1453
|
+
}), Ca = /* @__PURE__ */ j({
|
|
1380
1454
|
__name: "Pill",
|
|
1381
1455
|
props: { tone: { default: "neutral" } },
|
|
1382
1456
|
setup(e) {
|
|
1383
|
-
let t = e, n = C(() =>
|
|
1457
|
+
let t = e, n = C(() => gn(t.tone));
|
|
1384
1458
|
return (e, t) => (R(), E("span", {
|
|
1385
1459
|
"data-glim": "Pill",
|
|
1386
1460
|
class: P(n.value)
|
|
1387
1461
|
}, [V(e.$slots, "default")], 2));
|
|
1388
1462
|
}
|
|
1389
|
-
}),
|
|
1463
|
+
}), wa = { class: "glim-field-row-name" }, Ta = {
|
|
1390
1464
|
key: 0,
|
|
1391
1465
|
class: "glim-field-row-controls"
|
|
1392
|
-
},
|
|
1466
|
+
}, Ea = /* @__PURE__ */ j({
|
|
1393
1467
|
__name: "FieldRow",
|
|
1394
1468
|
props: {
|
|
1395
1469
|
label: {},
|
|
@@ -1400,27 +1474,27 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1400
1474
|
},
|
|
1401
1475
|
setup(e) {
|
|
1402
1476
|
let t = e;
|
|
1403
|
-
|
|
1404
|
-
let n =
|
|
1477
|
+
Ae(ye, C(() => t.label));
|
|
1478
|
+
let n = Te(ve, !1), r = U(null);
|
|
1405
1479
|
return (t, i) => (R(), E("div", {
|
|
1406
1480
|
ref_key: "row",
|
|
1407
1481
|
ref: r,
|
|
1408
1482
|
"data-glim": "FieldRow",
|
|
1409
1483
|
class: P(["glim-field-row", { "glim-field-row--wide": e.wide }])
|
|
1410
|
-
}, [D("span",
|
|
1484
|
+
}, [D("span", wa, [D("span", {
|
|
1411
1485
|
class: "glim-field-row-label",
|
|
1412
|
-
onClick: i[0] ||= (e) => G(
|
|
1486
|
+
onClick: i[0] ||= (e) => G(xn)(r.value)
|
|
1413
1487
|
}, [V(t.$slots, "label", {}, () => [k(W(e.label), 1)])]), e.hint ? (R(), w(Q, {
|
|
1414
1488
|
key: 0,
|
|
1415
1489
|
tip: e.hint
|
|
1416
|
-
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span",
|
|
1490
|
+
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span", Ta, [V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(Ca, {
|
|
1417
1491
|
key: 0,
|
|
1418
1492
|
class: "glim-num",
|
|
1419
1493
|
tone: e.tone
|
|
1420
1494
|
}, {
|
|
1421
1495
|
default: Y(() => [k(W(e.value), 1)]),
|
|
1422
1496
|
_: 1
|
|
1423
|
-
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(
|
|
1497
|
+
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(Ca, {
|
|
1424
1498
|
key: 0,
|
|
1425
1499
|
class: "glim-num",
|
|
1426
1500
|
tone: e.tone
|
|
@@ -1429,23 +1503,23 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1429
1503
|
_: 1
|
|
1430
1504
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
1431
1505
|
}
|
|
1432
|
-
}),
|
|
1506
|
+
}), Da = /* @__PURE__ */ j({
|
|
1433
1507
|
__name: "FieldRowGroup",
|
|
1434
1508
|
props: { columns: {} },
|
|
1435
1509
|
setup(e) {
|
|
1436
|
-
return
|
|
1510
|
+
return Ae(ve, !0), (t, n) => (R(), E("div", {
|
|
1437
1511
|
"data-glim": "FieldRowGroup",
|
|
1438
1512
|
class: "glim-field-row-group",
|
|
1439
1513
|
style: F(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
1440
1514
|
}, [V(t.$slots, "default")], 4));
|
|
1441
1515
|
}
|
|
1442
|
-
}),
|
|
1516
|
+
}), Oa = {
|
|
1443
1517
|
key: 0,
|
|
1444
1518
|
class: "glim-modal-foot"
|
|
1445
|
-
},
|
|
1519
|
+
}, ka = {
|
|
1446
1520
|
key: 0,
|
|
1447
1521
|
class: "glim-window-start"
|
|
1448
|
-
},
|
|
1522
|
+
}, Aa = { class: "glim-window-actions" }, ja = /* @__PURE__ */ j({
|
|
1449
1523
|
__name: "WindowFootRow",
|
|
1450
1524
|
props: {
|
|
1451
1525
|
actions: {},
|
|
@@ -1455,24 +1529,24 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1455
1529
|
},
|
|
1456
1530
|
emits: ["close"],
|
|
1457
1531
|
setup(e, { emit: t }) {
|
|
1458
|
-
let n = e, r = t, i = C(() =>
|
|
1532
|
+
let n = e, r = t, i = C(() => pr(n.actions, n.hasStart, {
|
|
1459
1533
|
cancel: {
|
|
1460
1534
|
label: n.text.cancel,
|
|
1461
1535
|
labelKey: "common.cancel",
|
|
1462
|
-
glyph:
|
|
1536
|
+
glyph: le,
|
|
1463
1537
|
wayOut: !0
|
|
1464
1538
|
},
|
|
1465
1539
|
close: {
|
|
1466
1540
|
label: n.text.close,
|
|
1467
1541
|
labelKey: "common.close",
|
|
1468
|
-
glyph:
|
|
1542
|
+
glyph: _,
|
|
1469
1543
|
wayOut: !0
|
|
1470
1544
|
}
|
|
1471
1545
|
}));
|
|
1472
1546
|
function a(e) {
|
|
1473
1547
|
e.onClick?.() !== !1 && r("close");
|
|
1474
1548
|
}
|
|
1475
|
-
return (t, n) => i.value.length ? (R(), E("div",
|
|
1549
|
+
return (t, n) => i.value.length ? (R(), E("div", Oa, [e.hasStart ? (R(), E("span", ka, [V(t.$slots, "start", {}, () => [k(W(e.start), 1)])])) : T("", !0), D("div", Aa, [(R(!0), E(S, null, B(i.value, (e, t) => (R(), w(f, N({ ref_for: !0 }, e.attrs, {
|
|
1476
1550
|
key: t,
|
|
1477
1551
|
label: e.label,
|
|
1478
1552
|
"label-key": e.labelKey,
|
|
@@ -1491,13 +1565,13 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1491
1565
|
"title",
|
|
1492
1566
|
"disabled",
|
|
1493
1567
|
"onClick"
|
|
1494
|
-
]))), 128))])) : T("", !0);
|
|
1568
|
+
]))), 128))])])) : T("", !0);
|
|
1495
1569
|
}
|
|
1496
|
-
}),
|
|
1570
|
+
}), Ma = [
|
|
1497
1571
|
"data-glim-title",
|
|
1498
1572
|
"aria-labelledby",
|
|
1499
1573
|
"aria-label"
|
|
1500
|
-
],
|
|
1574
|
+
], Na = ["id"], Pa = { class: "glim-modal-body glim-window-body" }, Fa = /* @__PURE__ */ j({
|
|
1501
1575
|
inheritAttrs: !1,
|
|
1502
1576
|
__name: "Window",
|
|
1503
1577
|
props: {
|
|
@@ -1513,19 +1587,19 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1513
1587
|
},
|
|
1514
1588
|
emits: ["close"],
|
|
1515
1589
|
setup(t, { expose: n, emit: r }) {
|
|
1516
|
-
let i = t, a = r, o =
|
|
1590
|
+
let i = t, a = r, o = Pe(), s = U(null), c = K(), l = Et(), u = C(() => Dt(i.start) || !!o.start), d;
|
|
1517
1591
|
function f() {
|
|
1518
1592
|
d?.(), a("close");
|
|
1519
1593
|
}
|
|
1520
1594
|
L(() => {
|
|
1521
|
-
d =
|
|
1522
|
-
}),
|
|
1523
|
-
d?.(),
|
|
1595
|
+
d = qn(() => s.value, f), s.value && fr(s.value)?.focus();
|
|
1596
|
+
}), Oe(() => {
|
|
1597
|
+
d?.(), kn(l);
|
|
1524
1598
|
}), n({ card: s });
|
|
1525
1599
|
function p() {
|
|
1526
|
-
i.closeOnBackdrop && !
|
|
1600
|
+
i.closeOnBackdrop && !Wt() && f();
|
|
1527
1601
|
}
|
|
1528
|
-
return (n, r) => (R(), w(
|
|
1602
|
+
return (n, r) => (R(), w(Ce, { to: G(yn)() }, [D("div", {
|
|
1529
1603
|
class: "glim-modal-backdrop",
|
|
1530
1604
|
onMousedown: X(p, ["self"])
|
|
1531
1605
|
}, [D("div", N({
|
|
@@ -1555,9 +1629,9 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1555
1629
|
}, {
|
|
1556
1630
|
default: Y(() => [V(n.$slots, "title", {}, () => [k(W(t.title), 1)])]),
|
|
1557
1631
|
_: 3
|
|
1558
|
-
})], 8,
|
|
1559
|
-
D("div",
|
|
1560
|
-
A(
|
|
1632
|
+
})], 8, Na),
|
|
1633
|
+
D("div", Pa, [V(n.$slots, "default")]),
|
|
1634
|
+
A(ja, {
|
|
1561
1635
|
actions: t.actions,
|
|
1562
1636
|
start: t.start,
|
|
1563
1637
|
"has-start": u.value,
|
|
@@ -1573,9 +1647,9 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1573
1647
|
"has-start",
|
|
1574
1648
|
"text"
|
|
1575
1649
|
])
|
|
1576
|
-
], 16,
|
|
1650
|
+
], 16, Ma)], 32)], 8, ["to"]));
|
|
1577
1651
|
}
|
|
1578
|
-
}),
|
|
1652
|
+
}), Ia = { class: "glim-fortress-text" }, La = /* @__PURE__ */ j({
|
|
1579
1653
|
__name: "FortressDoubtWindow",
|
|
1580
1654
|
props: {
|
|
1581
1655
|
app: {},
|
|
@@ -1585,14 +1659,14 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1585
1659
|
onClose: { type: Function }
|
|
1586
1660
|
},
|
|
1587
1661
|
setup(e) {
|
|
1588
|
-
let t = e, n = C(() =>
|
|
1662
|
+
let t = e, n = C(() => gt(t.text, t.app, t.instance)), r = C(() => [{
|
|
1589
1663
|
label: n.value.open,
|
|
1590
1664
|
labelKey: "open",
|
|
1591
1665
|
primary: !0,
|
|
1592
1666
|
attrs: { "data-fortress": "open-anyway" },
|
|
1593
1667
|
onClick: () => t.onOpen()
|
|
1594
1668
|
}]);
|
|
1595
|
-
return (t, i) => (R(), w(
|
|
1669
|
+
return (t, i) => (R(), w(Fa, {
|
|
1596
1670
|
"data-glim": "FortressDoubtWindow",
|
|
1597
1671
|
title: n.value.title,
|
|
1598
1672
|
actions: r.value,
|
|
@@ -1602,7 +1676,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1602
1676
|
},
|
|
1603
1677
|
onClose: i[0] ||= (t) => e.onClose()
|
|
1604
1678
|
}, {
|
|
1605
|
-
default: Y(() => [D("div",
|
|
1679
|
+
default: Y(() => [D("div", Ia, [D("p", null, W(n.value.body), 1)])]),
|
|
1606
1680
|
_: 1
|
|
1607
1681
|
}, 8, [
|
|
1608
1682
|
"title",
|
|
@@ -1610,32 +1684,32 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1610
1684
|
"text"
|
|
1611
1685
|
]));
|
|
1612
1686
|
}
|
|
1613
|
-
}),
|
|
1687
|
+
}), Ra = ["data-glim-title"], za = { class: "glim-instance-top" }, Ba = {
|
|
1614
1688
|
key: 0,
|
|
1615
1689
|
class: "glim-instance-mark",
|
|
1616
1690
|
"aria-hidden": "true"
|
|
1617
|
-
},
|
|
1691
|
+
}, Va = ["src"], Ha = { class: "glim-instance-main" }, Ua = { class: "glim-instance-name" }, Wa = { class: "glim-instance-title" }, Ga = {
|
|
1618
1692
|
key: 0,
|
|
1619
1693
|
class: "glim-instance-badges"
|
|
1620
|
-
},
|
|
1694
|
+
}, Ka = {
|
|
1621
1695
|
key: 0,
|
|
1622
1696
|
class: "glim-eyebrow"
|
|
1623
|
-
},
|
|
1697
|
+
}, qa = {
|
|
1624
1698
|
key: 1,
|
|
1625
1699
|
class: "glim-instance-facts glim-num"
|
|
1626
|
-
},
|
|
1700
|
+
}, Ja = {
|
|
1627
1701
|
key: 2,
|
|
1628
1702
|
class: "glim-instance-figures"
|
|
1629
|
-
},
|
|
1703
|
+
}, Ya = { class: "glim-num" }, Xa = {
|
|
1630
1704
|
key: 3,
|
|
1631
1705
|
class: "glim-instance-acts"
|
|
1632
|
-
},
|
|
1706
|
+
}, Za = {
|
|
1633
1707
|
key: 0,
|
|
1634
1708
|
class: "glim-instance-body"
|
|
1635
|
-
},
|
|
1709
|
+
}, Qa = {
|
|
1636
1710
|
key: 1,
|
|
1637
1711
|
class: "glim-instance-acts"
|
|
1638
|
-
},
|
|
1712
|
+
}, $a = /* @__PURE__ */ j({
|
|
1639
1713
|
__name: "InstanceCard",
|
|
1640
1714
|
props: {
|
|
1641
1715
|
logo: {},
|
|
@@ -1646,34 +1720,34 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1646
1720
|
hueIndex: {}
|
|
1647
1721
|
},
|
|
1648
1722
|
setup(e) {
|
|
1649
|
-
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 :
|
|
1723
|
+
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 : kt(t.hueIndex));
|
|
1650
1724
|
return (t, i) => (R(), E("div", {
|
|
1651
1725
|
"data-glim": "InstanceCard",
|
|
1652
1726
|
"data-glim-title": e.name,
|
|
1653
1727
|
class: P(["glim-card glim-instance", e.hueIndex !== void 0 && "glim-hue"]),
|
|
1654
1728
|
style: F(r.value)
|
|
1655
1729
|
}, [
|
|
1656
|
-
D("div",
|
|
1730
|
+
D("div", za, [t.$slots.logo ? (R(), E("span", Ba, [V(t.$slots, "logo")])) : e.logo ? (R(), E("img", {
|
|
1657
1731
|
key: 1,
|
|
1658
1732
|
class: "glim-instance-mark",
|
|
1659
1733
|
src: e.logo,
|
|
1660
1734
|
alt: "",
|
|
1661
1735
|
draggable: "false"
|
|
1662
|
-
}, null, 8,
|
|
1663
|
-
D("div",
|
|
1664
|
-
e.eyebrow ? (R(), E("span",
|
|
1665
|
-
n.value ? (R(), E("p",
|
|
1666
|
-
e.figures?.length ? (R(), E("dl",
|
|
1667
|
-
t.$slots.actions && !t.$slots.default ? (R(), E("div",
|
|
1736
|
+
}, null, 8, Va)) : T("", !0), D("div", Ha, [
|
|
1737
|
+
D("div", Ua, [D("h3", Wa, W(e.name), 1), t.$slots.badges ? (R(), E("span", Ga, [V(t.$slots, "badges")])) : T("", !0)]),
|
|
1738
|
+
e.eyebrow ? (R(), E("span", Ka, W(e.eyebrow), 1)) : T("", !0),
|
|
1739
|
+
n.value ? (R(), E("p", qa, W(n.value), 1)) : T("", !0),
|
|
1740
|
+
e.figures?.length ? (R(), E("dl", Ja, [(R(!0), E(S, null, B(e.figures, (e) => (R(), E("div", { key: e.label }, [D("dt", null, W(e.label), 1), D("dd", Ya, W(e.value), 1)]))), 128))])) : T("", !0),
|
|
1741
|
+
t.$slots.actions && !t.$slots.default ? (R(), E("div", Xa, [V(t.$slots, "actions")])) : T("", !0)
|
|
1668
1742
|
])]),
|
|
1669
|
-
t.$slots.default ? (R(), E("div",
|
|
1670
|
-
t.$slots.actions && t.$slots.default ? (R(), E("div",
|
|
1671
|
-
], 14,
|
|
1743
|
+
t.$slots.default ? (R(), E("div", Za, [V(t.$slots, "default")])) : T("", !0),
|
|
1744
|
+
t.$slots.actions && t.$slots.default ? (R(), E("div", Qa, [V(t.$slots, "actions")])) : T("", !0)
|
|
1745
|
+
], 14, Ra));
|
|
1672
1746
|
}
|
|
1673
|
-
}),
|
|
1747
|
+
}), eo = {
|
|
1674
1748
|
"data-glim": "PresenceBadges",
|
|
1675
1749
|
style: { display: "contents" }
|
|
1676
|
-
},
|
|
1750
|
+
}, to = /* @__PURE__ */ j({
|
|
1677
1751
|
__name: "PresenceBadges",
|
|
1678
1752
|
props: {
|
|
1679
1753
|
instance: {},
|
|
@@ -1685,24 +1759,24 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1685
1759
|
checking: n.text.checking,
|
|
1686
1760
|
away: n.text.away
|
|
1687
1761
|
})[n.instance.presence];
|
|
1688
|
-
return (n, i) => (R(), E("span",
|
|
1762
|
+
return (n, i) => (R(), E("span", eo, [t.instance.relay ? (R(), w(e, { key: 0 }, {
|
|
1689
1763
|
default: Y(() => [k(W(t.text.viaRelay), 1)]),
|
|
1690
1764
|
_: 1
|
|
1691
|
-
})) : T("", !0), A(e, { tone: G(
|
|
1765
|
+
})) : T("", !0), A(e, { tone: G(bn)(t.instance.presence) }, {
|
|
1692
1766
|
default: Y(() => [k(W(r()), 1)]),
|
|
1693
1767
|
_: 1
|
|
1694
1768
|
}, 8, ["tone"])]));
|
|
1695
1769
|
}
|
|
1696
1770
|
});
|
|
1697
1771
|
// src/fortressParts.ts
|
|
1698
|
-
function
|
|
1699
|
-
return e ?
|
|
1772
|
+
function no(e) {
|
|
1773
|
+
return e ? me(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
|
|
1700
1774
|
}
|
|
1701
1775
|
// src/FortressAppCard.vue?vue&type=script&setup=true&lang.ts
|
|
1702
|
-
var
|
|
1776
|
+
var ro = { class: "glim-instance-rows" }, io = ["data-instance"], ao = {
|
|
1703
1777
|
class: "glim-instance-device",
|
|
1704
1778
|
"aria-hidden": "true"
|
|
1705
|
-
},
|
|
1779
|
+
}, oo = { class: "glim-instance-row-text" }, so = { class: "glim-instance-row-name" }, co = { class: "glim-instance-row-sub glim-num" }, lo = { class: "glim-instance-row-end" }, uo = /* @__PURE__ */ j({
|
|
1706
1780
|
inheritAttrs: !1,
|
|
1707
1781
|
__name: "FortressAppCard",
|
|
1708
1782
|
props: {
|
|
@@ -1715,15 +1789,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1715
1789
|
removeKey: { default: "delete" }
|
|
1716
1790
|
},
|
|
1717
1791
|
setup(t) {
|
|
1718
|
-
let n = t, r = C(() =>
|
|
1792
|
+
let n = t, r = C(() => et(n.app, n.text, n.lang)), i = C(() => r.value.rows.length === 0), a = (e) => ({
|
|
1719
1793
|
connected: n.text.connected,
|
|
1720
1794
|
checking: n.text.checking,
|
|
1721
1795
|
away: n.text.away
|
|
1722
|
-
})[e.presence], o = (e) =>
|
|
1796
|
+
})[e.presence], o = (e) => no(e.deviceKind), s = (e) => Ut(n.text, n.app, e), c = (e) => !!n.onRemove && !e.self, l = C(() => !!r.value.open || i.value && c(r.value.main)), u = U(null);
|
|
1723
1797
|
function d(e) {
|
|
1724
|
-
e.doubt ? u.value = e :
|
|
1798
|
+
e.doubt ? u.value = e : en(n.app, e, n.onOpen);
|
|
1725
1799
|
}
|
|
1726
|
-
return (n, p) => (R(), E(S, null, [A(
|
|
1800
|
+
return (n, p) => (R(), E(S, null, [A($a, N(n.$attrs, {
|
|
1727
1801
|
"data-glim": "FortressAppCard",
|
|
1728
1802
|
"data-fortress-app": t.app.id,
|
|
1729
1803
|
logo: t.app.logo,
|
|
@@ -1750,7 +1824,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1750
1824
|
default: Y(() => [k(W(r.value.needs), 1)]),
|
|
1751
1825
|
_: 1
|
|
1752
1826
|
})) : T("", !0),
|
|
1753
|
-
A(
|
|
1827
|
+
A(to, {
|
|
1754
1828
|
instance: r.value.main,
|
|
1755
1829
|
text: t.text
|
|
1756
1830
|
}, null, 8, ["instance", "text"])
|
|
@@ -1758,15 +1832,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1758
1832
|
_: 2
|
|
1759
1833
|
}, [i.value ? void 0 : {
|
|
1760
1834
|
name: "default",
|
|
1761
|
-
fn: Y(() => [D("ul",
|
|
1835
|
+
fn: Y(() => [D("ul", ro, [(R(!0), E(S, null, B(r.value.rows, ({ instance: n, sub: r, open: i }) => (R(), E("li", {
|
|
1762
1836
|
key: n.id,
|
|
1763
1837
|
class: "glim-instance-row",
|
|
1764
1838
|
"data-instance": n.id
|
|
1765
1839
|
}, [
|
|
1766
|
-
D("span",
|
|
1767
|
-
D("span",
|
|
1768
|
-
D("span",
|
|
1769
|
-
A(e, { tone: G(
|
|
1840
|
+
D("span", ao, [o(n) ? (R(), w(H(o(n)), { key: 0 })) : T("", !0)]),
|
|
1841
|
+
D("span", oo, [D("span", so, W(n.device), 1), D("span", co, W(r), 1)]),
|
|
1842
|
+
D("span", lo, [
|
|
1843
|
+
A(e, { tone: G(bn)(n.presence) }, {
|
|
1770
1844
|
default: Y(() => [k(W(a(n)), 1)]),
|
|
1771
1845
|
_: 2
|
|
1772
1846
|
}, 1032, ["tone"]),
|
|
@@ -1802,7 +1876,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1802
1876
|
"onClick"
|
|
1803
1877
|
])) : T("", !0)
|
|
1804
1878
|
])
|
|
1805
|
-
], 8,
|
|
1879
|
+
], 8, io))), 128))])]),
|
|
1806
1880
|
key: "0"
|
|
1807
1881
|
}, l.value ? {
|
|
1808
1882
|
name: "actions",
|
|
@@ -1833,12 +1907,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1833
1907
|
"eyebrow",
|
|
1834
1908
|
"facts",
|
|
1835
1909
|
"hue-index"
|
|
1836
|
-
]), u.value ? (R(), w(
|
|
1910
|
+
]), u.value ? (R(), w(La, {
|
|
1837
1911
|
key: 0,
|
|
1838
1912
|
app: t.app,
|
|
1839
1913
|
instance: u.value,
|
|
1840
1914
|
text: t.text,
|
|
1841
|
-
"on-open": () => G(
|
|
1915
|
+
"on-open": () => G(en)(t.app, u.value, t.onOpen),
|
|
1842
1916
|
"on-close": () => u.value = null
|
|
1843
1917
|
}, null, 8, [
|
|
1844
1918
|
"app",
|
|
@@ -1848,14 +1922,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1848
1922
|
"on-close"
|
|
1849
1923
|
])) : T("", !0)], 64));
|
|
1850
1924
|
}
|
|
1851
|
-
}),
|
|
1925
|
+
}), fo = [
|
|
1852
1926
|
"href",
|
|
1853
1927
|
"data-sel-id",
|
|
1854
1928
|
"aria-selected",
|
|
1855
1929
|
"aria-current",
|
|
1856
1930
|
"aria-describedby",
|
|
1857
1931
|
"tabindex"
|
|
1858
|
-
],
|
|
1932
|
+
], po = [
|
|
1859
1933
|
"data-sel-id",
|
|
1860
1934
|
"id",
|
|
1861
1935
|
"role",
|
|
@@ -1868,7 +1942,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1868
1942
|
"aria-hidden",
|
|
1869
1943
|
"disabled",
|
|
1870
1944
|
"tabindex"
|
|
1871
|
-
],
|
|
1945
|
+
], mo = ["id"], ho = /* @__PURE__ */ j({
|
|
1872
1946
|
__name: "SelectorSegment",
|
|
1873
1947
|
props: {
|
|
1874
1948
|
item: {},
|
|
@@ -1892,7 +1966,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1892
1966
|
},
|
|
1893
1967
|
emits: ["select"],
|
|
1894
1968
|
setup(e, { emit: i }) {
|
|
1895
|
-
let a = e, o = i, s = C(() =>
|
|
1969
|
+
let a = e, o = i, s = C(() => Nn({
|
|
1896
1970
|
strip: a.strip,
|
|
1897
1971
|
orientation: a.orientation,
|
|
1898
1972
|
size: a.size,
|
|
@@ -1942,7 +2016,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1942
2016
|
key: 1,
|
|
1943
2017
|
"data-sel-label": "",
|
|
1944
2018
|
class: P(s.value.labelClass)
|
|
1945
|
-
}, W(e.item.label), 3))], 16,
|
|
2019
|
+
}, W(e.item.label), 3))], 16, fo)) : (R(), E(S, { key: 1 }, [A(G(r), N({
|
|
1946
2020
|
on: u.value,
|
|
1947
2021
|
show: G(c).show,
|
|
1948
2022
|
hide: G(c).hide
|
|
@@ -1951,7 +2025,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1951
2025
|
ref: m,
|
|
1952
2026
|
type: "button",
|
|
1953
2027
|
"data-sel-id": e.item.id,
|
|
1954
|
-
id: e.panelId && f.value ? G(
|
|
2028
|
+
id: e.panelId && f.value ? G(Rn)(e.panelId, e.item.id) : void 0,
|
|
1955
2029
|
role: e.strip.kind === "toggle" ? void 0 : e.strip.kind,
|
|
1956
2030
|
"aria-selected": f.value ? e.on : void 0,
|
|
1957
2031
|
"aria-controls": e.panelId && f.value && e.on ? e.panelId : void 0,
|
|
@@ -1973,7 +2047,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1973
2047
|
key: 1,
|
|
1974
2048
|
"data-sel-label": "",
|
|
1975
2049
|
class: P(s.value.labelClass)
|
|
1976
|
-
}, W(e.item.label), 3))], 16,
|
|
2050
|
+
}, W(e.item.label), 3))], 16, po)]),
|
|
1977
2051
|
_: 1
|
|
1978
2052
|
}, 16, [
|
|
1979
2053
|
"on",
|
|
@@ -1983,16 +2057,16 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1983
2057
|
key: 0,
|
|
1984
2058
|
id: G(l),
|
|
1985
2059
|
hidden: ""
|
|
1986
|
-
}, W(s.value.tip), 9,
|
|
2060
|
+
}, W(s.value.tip), 9, mo)) : T("", !0)], 64)), A(t, { state: G(c) }, null, 8, ["state"])], 64));
|
|
1987
2061
|
}
|
|
1988
|
-
}),
|
|
2062
|
+
}), go = [
|
|
1989
2063
|
"role",
|
|
1990
2064
|
"aria-label",
|
|
1991
2065
|
"aria-orientation"
|
|
1992
|
-
],
|
|
2066
|
+
], _o = {
|
|
1993
2067
|
key: 0,
|
|
1994
2068
|
class: "glim-sel-list"
|
|
1995
|
-
},
|
|
2069
|
+
}, vo = /* @__PURE__ */ j({
|
|
1996
2070
|
__name: "Selector",
|
|
1997
2071
|
props: {
|
|
1998
2072
|
items: {},
|
|
@@ -2038,10 +2112,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2038
2112
|
setup(e, { emit: t }) {
|
|
2039
2113
|
let n = e, r = t, i = C(() => n.modelValue);
|
|
2040
2114
|
function a(e) {
|
|
2041
|
-
let t = U(
|
|
2042
|
-
return
|
|
2115
|
+
let t = U(Ht(e));
|
|
2116
|
+
return De(Zn(e, () => t.value = Ht(e))), t;
|
|
2043
2117
|
}
|
|
2044
|
-
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(
|
|
2118
|
+
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(Fn(n.size, n.orientation)), u = a(Ze), d = C(() => zn({
|
|
2045
2119
|
mode: c.value,
|
|
2046
2120
|
select: n.select === "many" ? "many" : "one",
|
|
2047
2121
|
activation: n.activation,
|
|
@@ -2066,7 +2140,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2066
2140
|
i && r(i);
|
|
2067
2141
|
}, { flush: "post" });
|
|
2068
2142
|
}
|
|
2069
|
-
g(() => d.value.counted, (e) => d.value.counted ?
|
|
2143
|
+
g(() => d.value.counted, (e) => d.value.counted ? ft(e) : void 0), g(() => [
|
|
2070
2144
|
n.orientation,
|
|
2071
2145
|
d.value.pinWidth,
|
|
2072
2146
|
n.fit,
|
|
@@ -2083,14 +2157,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2083
2157
|
return;
|
|
2084
2158
|
}
|
|
2085
2159
|
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
2086
|
-
return
|
|
2160
|
+
return dr(e, {
|
|
2087
2161
|
pinWidth: t,
|
|
2088
2162
|
fit: n.fit,
|
|
2089
2163
|
canSqueeze: r,
|
|
2090
2164
|
canList: i
|
|
2091
2165
|
}, (e) => p.value = e);
|
|
2092
2166
|
});
|
|
2093
|
-
let _ = C(() =>
|
|
2167
|
+
let _ = C(() => In({
|
|
2094
2168
|
layout: p.value,
|
|
2095
2169
|
inline: s.value,
|
|
2096
2170
|
fit: n.fit
|
|
@@ -2098,11 +2172,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2098
2172
|
value: String(e.id),
|
|
2099
2173
|
label: e.label,
|
|
2100
2174
|
glyph: e.glyph,
|
|
2101
|
-
disabled:
|
|
2102
|
-
}))), te = C(() => i.value === null ? null : String(i.value)), y = C(() => n.select === "many"), ne = (e) => y.value ? (i.value ?? []).includes(e) : i.value === e,
|
|
2175
|
+
disabled: re.value[t]
|
|
2176
|
+
}))), te = C(() => i.value === null ? null : String(i.value)), y = C(() => n.select === "many"), ne = (e) => y.value ? (i.value ?? []).includes(e) : i.value === e, re = C(() => n.items.map((e) => n.disabled || !!e.disabled)), b = C(() => jn(re.value, n.items.findIndex((e) => ne(e.id))));
|
|
2103
2177
|
function ie(e) {
|
|
2104
2178
|
r("press", e);
|
|
2105
|
-
let t = y.value ?
|
|
2179
|
+
let t = y.value ? rr(i.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
2106
2180
|
t !== i.value && r("update:modelValue", t);
|
|
2107
2181
|
}
|
|
2108
2182
|
function ae(e) {
|
|
@@ -2116,7 +2190,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2116
2190
|
e.preventDefault(), t.click();
|
|
2117
2191
|
return;
|
|
2118
2192
|
}
|
|
2119
|
-
let r =
|
|
2193
|
+
let r = An(f.value, e.key, n.orientation);
|
|
2120
2194
|
if (!r) return;
|
|
2121
2195
|
e.preventDefault();
|
|
2122
2196
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
@@ -2132,14 +2206,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2132
2206
|
class: P([d.value.className, { "glim-sel--listed": v.value }]),
|
|
2133
2207
|
style: F(_.value.track),
|
|
2134
2208
|
onKeydown: oe
|
|
2135
|
-
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(
|
|
2209
|
+
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(ho, {
|
|
2136
2210
|
key: t.id,
|
|
2137
2211
|
item: t,
|
|
2138
2212
|
index: n,
|
|
2139
2213
|
strip: d.value,
|
|
2140
2214
|
on: ne(t.id),
|
|
2141
|
-
disabled:
|
|
2142
|
-
roved: n ===
|
|
2215
|
+
disabled: re.value[n],
|
|
2216
|
+
roved: n === b.value,
|
|
2143
2217
|
listed: v.value,
|
|
2144
2218
|
share: e.orientation === "vertical" ? {} : _.value.segment,
|
|
2145
2219
|
squeezed: p.value?.fit === "squeezed",
|
|
@@ -2173,7 +2247,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2173
2247
|
"hue-offset",
|
|
2174
2248
|
"panel-id",
|
|
2175
2249
|
"onSelect"
|
|
2176
|
-
]))), 128)), v.value ? (R(), E("div",
|
|
2250
|
+
]))), 128)), v.value ? (R(), E("div", _o, [A(xe, {
|
|
2177
2251
|
"model-value": te.value,
|
|
2178
2252
|
label: G(o) ?? "",
|
|
2179
2253
|
"hide-label": "",
|
|
@@ -2181,7 +2255,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2181
2255
|
width: "fill",
|
|
2182
2256
|
size: e.size === "sm" ? "row" : "field",
|
|
2183
2257
|
options: ee.value,
|
|
2184
|
-
disabled:
|
|
2258
|
+
disabled: re.value.every(Boolean),
|
|
2185
2259
|
"onUpdate:modelValue": ae
|
|
2186
2260
|
}, null, 8, [
|
|
2187
2261
|
"model-value",
|
|
@@ -2189,18 +2263,18 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2189
2263
|
"size",
|
|
2190
2264
|
"options",
|
|
2191
2265
|
"disabled"
|
|
2192
|
-
])])) : T("", !0)], 46,
|
|
2266
|
+
])])) : T("", !0)], 46, go));
|
|
2193
2267
|
}
|
|
2194
|
-
}),
|
|
2268
|
+
}), yo = {
|
|
2195
2269
|
key: 0,
|
|
2196
2270
|
class: "glim-toggle-label"
|
|
2197
|
-
},
|
|
2271
|
+
}, bo = [
|
|
2198
2272
|
"aria-checked",
|
|
2199
2273
|
"aria-label",
|
|
2200
2274
|
"aria-disabled",
|
|
2201
2275
|
"aria-describedby",
|
|
2202
2276
|
"disabled"
|
|
2203
|
-
],
|
|
2277
|
+
], xo = ["id"], So = /* @__PURE__ */ j({
|
|
2204
2278
|
inheritAttrs: !1,
|
|
2205
2279
|
__name: "Toggle",
|
|
2206
2280
|
props: /*@__PURE__*/ M({
|
|
@@ -2224,9 +2298,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2224
2298
|
emits: ["update:modelValue"],
|
|
2225
2299
|
setup(e) {
|
|
2226
2300
|
let r = e, i = q(e, "modelValue"), a = x(() => r.label), o = C(() => r.label !== void 0 && !r.hideLabel), s = n(() => r.refused), c = K(), l = U(null), u;
|
|
2227
|
-
|
|
2301
|
+
De(() => u?.());
|
|
2228
2302
|
function d() {
|
|
2229
|
-
r.refused ? (u?.(), u =
|
|
2303
|
+
r.refused ? (u?.(), u = Bn(l.value)) : i.value = !i.value;
|
|
2230
2304
|
}
|
|
2231
2305
|
return (n, r) => (R(), E(S, null, [
|
|
2232
2306
|
D("span", {
|
|
@@ -2235,7 +2309,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2235
2309
|
"data-glim": "Toggle",
|
|
2236
2310
|
class: P(["glim-toggle", n.$attrs.class]),
|
|
2237
2311
|
style: F(n.$attrs.style)
|
|
2238
|
-
}, [o.value ? (R(), E("span",
|
|
2312
|
+
}, [o.value ? (R(), E("span", yo, W(e.label), 1)) : T("", !0), D("button", N({
|
|
2239
2313
|
...n.$attrs,
|
|
2240
2314
|
class: void 0,
|
|
2241
2315
|
style: void 0
|
|
@@ -2254,25 +2328,25 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2254
2328
|
onMouseleave: r[1] ||= (...e) => G(s).hide && G(s).hide(...e),
|
|
2255
2329
|
onFocus: r[2] ||= (...e) => G(s).showOnFocus && G(s).showOnFocus(...e),
|
|
2256
2330
|
onBlur: r[3] ||= (...e) => G(s).hide && G(s).hide(...e)
|
|
2257
|
-
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2331
|
+
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, bo)], 6),
|
|
2258
2332
|
e.refused ? (R(), E("span", {
|
|
2259
2333
|
key: 0,
|
|
2260
2334
|
id: G(c),
|
|
2261
2335
|
class: "glim-toggle-refusal"
|
|
2262
|
-
}, W(e.refused), 9,
|
|
2336
|
+
}, W(e.refused), 9, xo)) : T("", !0),
|
|
2263
2337
|
A(t, { state: G(s) }, null, 8, ["state"])
|
|
2264
2338
|
], 64));
|
|
2265
2339
|
}
|
|
2266
|
-
}),
|
|
2340
|
+
}), Co = {
|
|
2267
2341
|
key: 0,
|
|
2268
2342
|
class: "glim-fortress-sub"
|
|
2269
|
-
},
|
|
2343
|
+
}, wo = { class: "glim-permissions" }, To = ["data-permission"], Eo = {
|
|
2270
2344
|
class: "glim-permission-pair",
|
|
2271
2345
|
"aria-hidden": "true"
|
|
2272
|
-
},
|
|
2346
|
+
}, Do = ["src"], Oo = { class: "glim-permission-to" }, ko = ["src"], Ao = { class: "glim-permission-text" }, jo = { class: "glim-permission-title" }, Mo = {
|
|
2273
2347
|
key: 0,
|
|
2274
2348
|
class: "glim-fortress-sub"
|
|
2275
|
-
},
|
|
2349
|
+
}, No = /* @__PURE__ */ j({
|
|
2276
2350
|
__name: "FortressPermissions",
|
|
2277
2351
|
props: {
|
|
2278
2352
|
text: {},
|
|
@@ -2284,7 +2358,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2284
2358
|
hueIndex: {}
|
|
2285
2359
|
},
|
|
2286
2360
|
setup(e) {
|
|
2287
|
-
let t = e, n = z("all"), r = C(() =>
|
|
2361
|
+
let t = e, n = z("all"), r = C(() => sn(t.permissions, t.app.id)), i = C(() => r.value.length < t.permissions.length), a = C(() => n.value === "all" || !i.value ? t.permissions : r.value), o = C(() => [{
|
|
2288
2362
|
id: "all",
|
|
2289
2363
|
label: `${t.text.all} ${t.permissions.length}`
|
|
2290
2364
|
}, {
|
|
@@ -2299,15 +2373,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2299
2373
|
}
|
|
2300
2374
|
t.notify?.(n.error ?? t.text.failed, "fail");
|
|
2301
2375
|
let r = document.querySelector(`[data-permission="${CSS.escape(e.id)}"] .glim-toggle`);
|
|
2302
|
-
r &&
|
|
2376
|
+
r && Bn(r);
|
|
2303
2377
|
}
|
|
2304
|
-
return (t, r) => (R(), w(
|
|
2378
|
+
return (t, r) => (R(), w(_r, {
|
|
2305
2379
|
"data-glim": "FortressPermissions",
|
|
2306
2380
|
title: e.text.permissions,
|
|
2307
2381
|
hint: e.text.permissionsAbout,
|
|
2308
2382
|
"hue-index": e.hueIndex
|
|
2309
2383
|
}, {
|
|
2310
|
-
default: Y(() => [e.permissions.length === 0 ? (R(), E("p",
|
|
2384
|
+
default: Y(() => [e.permissions.length === 0 ? (R(), E("p", Co, W(e.text.noPermissions), 1)) : (R(), E(S, { key: 1 }, [i.value ? (R(), w(vo, {
|
|
2311
2385
|
key: 0,
|
|
2312
2386
|
modelValue: n.value,
|
|
2313
2387
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -2319,35 +2393,35 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2319
2393
|
"modelValue",
|
|
2320
2394
|
"label",
|
|
2321
2395
|
"items"
|
|
2322
|
-
])) : T("", !0), D("ul",
|
|
2396
|
+
])) : T("", !0), D("ul", wo, [(R(!0), E(S, null, B(a.value, (e) => (R(), E("li", {
|
|
2323
2397
|
key: e.id,
|
|
2324
2398
|
class: P(["glim-permission", e.on && "glim-permission--on"]),
|
|
2325
2399
|
"data-permission": e.id
|
|
2326
2400
|
}, [
|
|
2327
|
-
D("span",
|
|
2401
|
+
D("span", Eo, [
|
|
2328
2402
|
s(e.from) ? (R(), E("img", {
|
|
2329
2403
|
key: 0,
|
|
2330
2404
|
src: s(e.from),
|
|
2331
2405
|
alt: "",
|
|
2332
2406
|
draggable: "false"
|
|
2333
|
-
}, null, 8,
|
|
2334
|
-
A(G(
|
|
2335
|
-
mark: G(
|
|
2407
|
+
}, null, 8, Do)) : T("", !0),
|
|
2408
|
+
A(G(p), {
|
|
2409
|
+
mark: G(qe).expand,
|
|
2336
2410
|
class: "glim-permission-arrow"
|
|
2337
2411
|
}, null, 8, ["mark"]),
|
|
2338
|
-
D("span",
|
|
2412
|
+
D("span", Oo, [(R(!0), E(S, null, B(e.to, (e) => (R(), E(S, { key: e }, [s(e) ? (R(), E("img", {
|
|
2339
2413
|
key: 0,
|
|
2340
2414
|
src: s(e),
|
|
2341
2415
|
alt: "",
|
|
2342
2416
|
draggable: "false"
|
|
2343
|
-
}, null, 8,
|
|
2417
|
+
}, null, 8, ko)) : T("", !0)], 64))), 128))])
|
|
2344
2418
|
]),
|
|
2345
|
-
D("span",
|
|
2346
|
-
D("span",
|
|
2347
|
-
e.detail ? (R(), E("span",
|
|
2419
|
+
D("span", Ao, [
|
|
2420
|
+
D("span", jo, W(e.title), 1),
|
|
2421
|
+
e.detail ? (R(), E("span", Mo, W(e.detail), 1)) : T("", !0),
|
|
2348
2422
|
V(t.$slots, "extra", { permission: e })
|
|
2349
2423
|
]),
|
|
2350
|
-
A(
|
|
2424
|
+
A(So, {
|
|
2351
2425
|
"model-value": e.on,
|
|
2352
2426
|
label: e.title,
|
|
2353
2427
|
"hide-label": "",
|
|
@@ -2357,7 +2431,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2357
2431
|
"label",
|
|
2358
2432
|
"onUpdate:modelValue"
|
|
2359
2433
|
])
|
|
2360
|
-
], 10,
|
|
2434
|
+
], 10, To))), 128))])], 64))]),
|
|
2361
2435
|
_: 3
|
|
2362
2436
|
}, 8, [
|
|
2363
2437
|
"title",
|
|
@@ -2365,136 +2439,188 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2365
2439
|
"hue-index"
|
|
2366
2440
|
]));
|
|
2367
2441
|
}
|
|
2368
|
-
}),
|
|
2442
|
+
}), Po = [
|
|
2443
|
+
"autocomplete",
|
|
2369
2444
|
"aria-label",
|
|
2370
2445
|
"aria-invalid",
|
|
2371
2446
|
"aria-describedby",
|
|
2372
2447
|
"disabled",
|
|
2373
2448
|
"type"
|
|
2374
|
-
],
|
|
2449
|
+
], Fo = {
|
|
2450
|
+
key: 1,
|
|
2451
|
+
class: "glim-secret-confirm"
|
|
2452
|
+
}, Io = ["for"], Lo = { class: "glim-secret" }, Ro = [
|
|
2453
|
+
"id",
|
|
2454
|
+
"aria-invalid",
|
|
2455
|
+
"aria-describedby",
|
|
2456
|
+
"disabled",
|
|
2457
|
+
"type"
|
|
2458
|
+
], zo = {
|
|
2459
|
+
"aria-live": "polite",
|
|
2460
|
+
class: "glim-secret-confirm-live"
|
|
2461
|
+
}, Bo = /* @__PURE__ */ j({
|
|
2375
2462
|
inheritAttrs: !1,
|
|
2376
2463
|
__name: "PasswordField",
|
|
2377
2464
|
props: /*@__PURE__*/ M({
|
|
2378
2465
|
width: {},
|
|
2379
2466
|
eyeAttrs: {},
|
|
2380
|
-
text: {
|
|
2381
|
-
show: "Show",
|
|
2382
|
-
hide: "Hide"
|
|
2383
|
-
}) },
|
|
2467
|
+
text: {},
|
|
2384
2468
|
disabled: {
|
|
2385
2469
|
type: Boolean,
|
|
2386
2470
|
default: !1
|
|
2387
2471
|
},
|
|
2388
|
-
error: {}
|
|
2472
|
+
error: {},
|
|
2473
|
+
confirm: {
|
|
2474
|
+
type: Boolean,
|
|
2475
|
+
default: !1
|
|
2476
|
+
}
|
|
2389
2477
|
}, {
|
|
2390
2478
|
modelValue: { default: "" },
|
|
2391
2479
|
modelModifiers: {}
|
|
2392
2480
|
}),
|
|
2393
|
-
emits: ["update:modelValue"],
|
|
2394
|
-
setup(e, { expose: t }) {
|
|
2395
|
-
let
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2481
|
+
emits: /*@__PURE__*/ M(["confirmedChange"], ["update:modelValue"]),
|
|
2482
|
+
setup(e, { expose: t, emit: n }) {
|
|
2483
|
+
let r = e, i = q(e, "modelValue"), a = n, o = C(() => ({
|
|
2484
|
+
...Je,
|
|
2485
|
+
...r.text
|
|
2486
|
+
})), s = z(!1), c = z(!1), l = z(""), u = Ne(), d = x(() => u["aria-label"]), f = C(() => vt(r.width)), p = K(), m = C(() => u.id ?? p), h = C(() => _t(r.error, m.value, u["aria-describedby"])), g = C(() => on(i.value, l.value)), _ = C(() => _t(g.value.mismatch ? o.value.mismatch : void 0, `${m.value}-confirm`));
|
|
2487
|
+
J(() => g.value.shown, (e) => {
|
|
2488
|
+
e || (l.value = "");
|
|
2489
|
+
}), J(() => r.confirm && g.value.confirmed, (e) => a("confirmedChange", e), { immediate: !0 });
|
|
2490
|
+
let v = U(null);
|
|
2491
|
+
return t({ input: v }), (t, n) => (R(), E(S, null, [
|
|
2492
|
+
D("span", {
|
|
2493
|
+
"data-glim": "PasswordField",
|
|
2494
|
+
class: P([
|
|
2495
|
+
"glim-secret",
|
|
2496
|
+
f.value,
|
|
2497
|
+
t.$attrs.class
|
|
2498
|
+
]),
|
|
2499
|
+
style: F(t.$attrs.style)
|
|
2500
|
+
}, [ze(D("input", N({
|
|
2501
|
+
ref_key: "input",
|
|
2502
|
+
ref: v,
|
|
2503
|
+
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
2504
|
+
autocomplete: e.confirm ? "new-password" : "current-password",
|
|
2505
|
+
spellcheck: "false"
|
|
2506
|
+
}, {
|
|
2507
|
+
...t.$attrs,
|
|
2508
|
+
class: void 0,
|
|
2509
|
+
style: void 0
|
|
2510
|
+
}, {
|
|
2511
|
+
"aria-label": G(d),
|
|
2512
|
+
"aria-invalid": h.value.invalid,
|
|
2513
|
+
"aria-describedby": h.value.describedBy,
|
|
2514
|
+
disabled: e.disabled,
|
|
2515
|
+
type: s.value ? "text" : "password",
|
|
2516
|
+
class: "glim-input"
|
|
2517
|
+
}), null, 16, Po), [[Fe, i.value]]), A(_e, N(e.eyeAttrs, {
|
|
2518
|
+
tip: s.value ? o.value.hide : o.value.show,
|
|
2519
|
+
class: "glim-secret-eye",
|
|
2520
|
+
disabled: e.disabled,
|
|
2521
|
+
onClick: n[1] ||= (e) => s.value = !s.value
|
|
2522
|
+
}), {
|
|
2523
|
+
default: Y(() => [(R(), w(H(s.value ? G(ie) : G(ee))))]),
|
|
2524
|
+
_: 1
|
|
2525
|
+
}, 16, ["tip", "disabled"])], 6),
|
|
2526
|
+
h.value.errorId ? (R(), w(Sa, {
|
|
2527
|
+
key: 0,
|
|
2528
|
+
id: h.value.errorId
|
|
2529
|
+
}, {
|
|
2530
|
+
default: Y(() => [k(W(e.error), 1)]),
|
|
2531
|
+
_: 1
|
|
2532
|
+
}, 8, ["id"])) : T("", !0),
|
|
2533
|
+
e.confirm && g.value.shown ? (R(), E("span", Fo, [D("label", {
|
|
2534
|
+
for: `${m.value}-confirm`,
|
|
2535
|
+
class: "glim-secret-confirm-label"
|
|
2536
|
+
}, W(o.value.confirm), 9, Io), D("span", { class: P(["glim-secret-confirm-box", f.value]) }, [D("span", Lo, [ze(D("input", {
|
|
2537
|
+
id: `${m.value}-confirm`,
|
|
2538
|
+
"onUpdate:modelValue": n[2] ||= (e) => l.value = e,
|
|
2539
|
+
autocomplete: "new-password",
|
|
2540
|
+
spellcheck: "false",
|
|
2541
|
+
"aria-invalid": _.value.invalid,
|
|
2542
|
+
"aria-describedby": _.value.describedBy,
|
|
2543
|
+
disabled: e.disabled,
|
|
2544
|
+
type: c.value ? "text" : "password",
|
|
2545
|
+
class: "glim-input"
|
|
2546
|
+
}, null, 8, Ro), [[Fe, l.value]]), A(_e, {
|
|
2547
|
+
tip: c.value ? o.value.hide : o.value.show,
|
|
2548
|
+
class: "glim-secret-eye",
|
|
2549
|
+
disabled: e.disabled,
|
|
2550
|
+
onClick: n[3] ||= (e) => c.value = !c.value
|
|
2551
|
+
}, {
|
|
2552
|
+
default: Y(() => [(R(), w(H(c.value ? G(ie) : G(ee))))]),
|
|
2553
|
+
_: 1
|
|
2554
|
+
}, 8, ["tip", "disabled"])]), D("span", zo, [_.value.errorId ? (R(), w(Sa, {
|
|
2555
|
+
key: 0,
|
|
2556
|
+
id: _.value.errorId
|
|
2557
|
+
}, {
|
|
2558
|
+
default: Y(() => [k(W(o.value.mismatch), 1)]),
|
|
2559
|
+
_: 1
|
|
2560
|
+
}, 8, ["id"])) : T("", !0)])], 2)])) : T("", !0)
|
|
2561
|
+
], 64));
|
|
2436
2562
|
}
|
|
2437
|
-
}),
|
|
2563
|
+
}), Vo = { class: "glim-phrase-fields" }, Ho = { class: "glim-phrase-number glim-num" }, Uo = [
|
|
2438
2564
|
"data-word",
|
|
2439
2565
|
"value",
|
|
2440
2566
|
"aria-label",
|
|
2441
2567
|
"onInput"
|
|
2442
|
-
],
|
|
2568
|
+
], Wo = { class: "glim-fortress-sub" }, Go = {
|
|
2443
2569
|
key: 0,
|
|
2444
2570
|
class: "glim-fortress-note",
|
|
2445
2571
|
"data-fortress": "moves"
|
|
2446
|
-
},
|
|
2572
|
+
}, Ko = {
|
|
2447
2573
|
key: 1,
|
|
2448
2574
|
class: "glim-fortress-error",
|
|
2449
2575
|
role: "alert"
|
|
2450
|
-
},
|
|
2576
|
+
}, qo = {
|
|
2451
2577
|
key: 1,
|
|
2452
2578
|
class: "glim-fortress-result"
|
|
2453
|
-
},
|
|
2579
|
+
}, Jo = {
|
|
2454
2580
|
class: "glim-fortress-result-mark",
|
|
2455
2581
|
"aria-hidden": "true"
|
|
2456
|
-
},
|
|
2582
|
+
}, Yo = { class: "glim-fortress-text" }, Xo = { class: "glim-fortress-result-title" }, Zo = { class: "glim-fortress-sub" }, Qo = {
|
|
2457
2583
|
key: 2,
|
|
2458
2584
|
class: "glim-fortress-text"
|
|
2459
|
-
},
|
|
2585
|
+
}, $o = { class: "glim-fortress-sub" }, es = {
|
|
2460
2586
|
key: 0,
|
|
2461
2587
|
class: "glim-fortress-error",
|
|
2462
2588
|
role: "alert"
|
|
2463
|
-
},
|
|
2589
|
+
}, ts = {
|
|
2464
2590
|
key: 3,
|
|
2465
2591
|
class: "glim-fortress-text"
|
|
2466
|
-
},
|
|
2592
|
+
}, ns = { class: "glim-fortress-sub" }, rs = {
|
|
2467
2593
|
key: 0,
|
|
2468
2594
|
class: "glim-fortress-error",
|
|
2469
2595
|
role: "alert"
|
|
2470
|
-
},
|
|
2596
|
+
}, is = {
|
|
2471
2597
|
key: 4,
|
|
2472
2598
|
class: "glim-fortress-text"
|
|
2473
|
-
},
|
|
2599
|
+
}, as = {
|
|
2474
2600
|
key: 0,
|
|
2475
2601
|
class: "glim-fortress-error",
|
|
2476
2602
|
role: "alert"
|
|
2477
|
-
},
|
|
2603
|
+
}, os = {
|
|
2478
2604
|
key: 0,
|
|
2479
2605
|
class: "glim-fortress-error",
|
|
2480
2606
|
role: "alert"
|
|
2481
|
-
},
|
|
2607
|
+
}, ss = {
|
|
2482
2608
|
key: 6,
|
|
2483
2609
|
class: "glim-fortress-text"
|
|
2484
|
-
},
|
|
2610
|
+
}, cs = { class: "glim-fortress-sub" }, ls = {
|
|
2485
2611
|
key: 0,
|
|
2486
2612
|
class: "glim-fortress-error",
|
|
2487
2613
|
role: "alert"
|
|
2488
|
-
},
|
|
2614
|
+
}, us = {
|
|
2489
2615
|
key: 7,
|
|
2490
2616
|
class: "glim-fortress-text"
|
|
2491
|
-
},
|
|
2617
|
+
}, ds = { class: "glim-phrase-show" }, fs = {
|
|
2492
2618
|
class: "glim-phrase-words",
|
|
2493
2619
|
"data-fortress": "words"
|
|
2494
|
-
},
|
|
2620
|
+
}, ps = { class: "glim-phrase-number glim-num" }, ms = ["aria-label", "viewBox"], hs = ["width", "height"], gs = ["d"], _s = { class: "glim-phrase-scan" }, vs = {
|
|
2495
2621
|
key: 0,
|
|
2496
2622
|
class: "glim-fortress-sub"
|
|
2497
|
-
},
|
|
2623
|
+
}, ys = /* @__PURE__ */ j({
|
|
2498
2624
|
__name: "FortressWindow",
|
|
2499
2625
|
props: {
|
|
2500
2626
|
flow: {},
|
|
@@ -2509,20 +2635,20 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2509
2635
|
},
|
|
2510
2636
|
setup(e) {
|
|
2511
2637
|
let t = e, n = U(null), r = z(!1), i;
|
|
2512
|
-
|
|
2513
|
-
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ?
|
|
2638
|
+
De(() => clearTimeout(i));
|
|
2639
|
+
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ? Lt(t.lang, t.pairedWith) : null), s = C(() => ({
|
|
2514
2640
|
cancel: t.text.cancel,
|
|
2515
2641
|
close: t.text.close
|
|
2516
2642
|
})), c = C(() => t.state.busy !== null), l;
|
|
2517
|
-
|
|
2643
|
+
De(() => l?.()), J(() => t.state.refusal, (e) => {
|
|
2518
2644
|
let t = e && n.value?.card?.querySelector(`[data-fortress="${e.button}"]`);
|
|
2519
|
-
t && (l =
|
|
2645
|
+
t && (l = Bn(t));
|
|
2520
2646
|
}), J(() => a.value.kind === "join" ? a.value.focus : -1, async (e) => {
|
|
2521
|
-
await
|
|
2647
|
+
await Ee(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
|
|
2522
2648
|
}), J(() => a.value.kind, async () => {
|
|
2523
|
-
await
|
|
2649
|
+
await Ee();
|
|
2524
2650
|
let e = n.value?.card;
|
|
2525
|
-
e &&
|
|
2651
|
+
e && fr(e)?.focus();
|
|
2526
2652
|
});
|
|
2527
2653
|
function u(e, t, n, r, i = !1) {
|
|
2528
2654
|
return {
|
|
@@ -2539,35 +2665,35 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2539
2665
|
label: t.text.copy,
|
|
2540
2666
|
labelKey: t.keys.copy,
|
|
2541
2667
|
attrs: { "data-fortress": "copy" },
|
|
2542
|
-
onClick: () => (
|
|
2543
|
-
r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1,
|
|
2668
|
+
onClick: () => (dt(e.join(" ")).then((e) => {
|
|
2669
|
+
r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1, Ue);
|
|
2544
2670
|
}), !1)
|
|
2545
2671
|
};
|
|
2546
2672
|
}
|
|
2547
2673
|
let f = C(() => {
|
|
2548
2674
|
let e = a.value;
|
|
2549
2675
|
if (e.kind !== "phrase" && e.kind !== "changed") return null;
|
|
2550
|
-
let n =
|
|
2676
|
+
let n = Cn(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
|
|
2551
2677
|
return {
|
|
2552
2678
|
...n,
|
|
2553
2679
|
side: n.size + 8
|
|
2554
2680
|
};
|
|
2555
|
-
}),
|
|
2681
|
+
}), m = C(() => ({
|
|
2556
2682
|
label: t.text.close,
|
|
2557
2683
|
labelKey: "common.close",
|
|
2558
|
-
glyph:
|
|
2684
|
+
glyph: _,
|
|
2559
2685
|
wayOut: !0
|
|
2560
|
-
})),
|
|
2686
|
+
})), h = C(() => {
|
|
2561
2687
|
let e = t.text, n = a.value, r = t.flow, i = t.keys;
|
|
2562
2688
|
switch (n.kind) {
|
|
2563
2689
|
case "join": return {
|
|
2564
2690
|
title: e.joinTitle,
|
|
2565
2691
|
size: "wide",
|
|
2566
|
-
actions: [u("join", r.join, e.join, i.join, !
|
|
2692
|
+
actions: [u("join", r.join, e.join, i.join, !cn(n.words))]
|
|
2567
2693
|
};
|
|
2568
2694
|
case "joined": return {
|
|
2569
2695
|
title: e.joinTitle,
|
|
2570
|
-
actions: [
|
|
2696
|
+
actions: [m.value]
|
|
2571
2697
|
};
|
|
2572
2698
|
case "leave": return {
|
|
2573
2699
|
title: e.leaveTitle,
|
|
@@ -2609,12 +2735,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2609
2735
|
actions: []
|
|
2610
2736
|
};
|
|
2611
2737
|
});
|
|
2612
|
-
return (t, i) => (R(), w(
|
|
2738
|
+
return (t, i) => (R(), w(Fa, {
|
|
2613
2739
|
ref_key: "win",
|
|
2614
2740
|
ref: n,
|
|
2615
|
-
title:
|
|
2616
|
-
size:
|
|
2617
|
-
actions:
|
|
2741
|
+
title: h.value.title,
|
|
2742
|
+
size: h.value.size,
|
|
2743
|
+
actions: h.value.actions,
|
|
2618
2744
|
start: r.value ? e.text.copied : void 0,
|
|
2619
2745
|
text: s.value,
|
|
2620
2746
|
onClose: i[3] ||= (t) => e.flow.close()
|
|
@@ -2625,10 +2751,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2625
2751
|
onSubmit: i[0] ||= X((t) => e.flow.join(), ["prevent"])
|
|
2626
2752
|
}, [
|
|
2627
2753
|
D("p", null, W(e.text.about), 1),
|
|
2628
|
-
D("div",
|
|
2754
|
+
D("div", Vo, [(R(!0), E(S, null, B(a.value.words, (t, n) => (R(), E("label", {
|
|
2629
2755
|
key: n,
|
|
2630
2756
|
class: "glim-phrase-field"
|
|
2631
|
-
}, [D("span",
|
|
2757
|
+
}, [D("span", Ho, W(n + 1), 1), D("input", {
|
|
2632
2758
|
class: "glim-input",
|
|
2633
2759
|
"data-word": n,
|
|
2634
2760
|
value: t,
|
|
@@ -2638,32 +2764,32 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2638
2764
|
autocorrect: "off",
|
|
2639
2765
|
spellcheck: "false",
|
|
2640
2766
|
onInput: (t) => e.flow.enter(n, t.target.value)
|
|
2641
|
-
}, null, 40,
|
|
2767
|
+
}, null, 40, Uo)]))), 128))]),
|
|
2642
2768
|
i[4] ||= D("button", {
|
|
2643
2769
|
type: "submit",
|
|
2644
2770
|
hidden: ""
|
|
2645
2771
|
}, null, -1),
|
|
2646
|
-
D("p",
|
|
2647
|
-
o.value ? (R(), E("p",
|
|
2772
|
+
D("p", Wo, W(e.text.phraseWhere), 1),
|
|
2773
|
+
o.value ? (R(), E("p", Go, [G(me)("info") ? (R(), w(H(G(me)("info")), { key: 0 })) : T("", !0), D("span", null, W(G(Z)(e.text.moves, {
|
|
2648
2774
|
app: e.app.name,
|
|
2649
2775
|
devices: o.value
|
|
2650
2776
|
})), 1)])) : T("", !0),
|
|
2651
|
-
e.state.error ? (R(), E("p",
|
|
2652
|
-
], 32)) : a.value.kind === "joined" ? (R(), E("div",
|
|
2777
|
+
e.state.error ? (R(), E("p", Ko, W(e.state.error), 1)) : T("", !0)
|
|
2778
|
+
], 32)) : a.value.kind === "joined" ? (R(), E("div", qo, [D("span", Jo, [A(G(p), { mark: G(qe).check }, null, 8, ["mark"])]), D("div", Yo, [D("p", Xo, W(G(Z)(e.text.joinedTitle, { app: e.app.name })), 1), D("p", Zo, W(o.value ? `${G(Z)(e.text.joinedMoved, { devices: o.value })} ` : "") + W(e.text.joinedNext), 1)])])) : a.value.kind === "leave" ? (R(), E("div", Qo, [
|
|
2653
2779
|
D("p", null, W(G(Z)(e.text.leaveBody, { app: e.app.name })) + W(o.value ? ` ${G(Z)(e.text.leavePairing, { devices: o.value })}` : "") + W(e.leaveNote ? ` ${e.leaveNote}` : ""), 1),
|
|
2654
|
-
D("p",
|
|
2655
|
-
e.state.error ? (R(), E("p",
|
|
2656
|
-
])) : a.value.kind === "remove" ? (R(), E("div",
|
|
2780
|
+
D("p", $o, W(e.text.leaveBack), 1),
|
|
2781
|
+
e.state.error ? (R(), E("p", es, W(e.state.error), 1)) : T("", !0)
|
|
2782
|
+
])) : a.value.kind === "remove" ? (R(), E("div", ts, [
|
|
2657
2783
|
D("p", null, W(G(Z)(e.text.removeBody, { device: a.value.device })), 1),
|
|
2658
|
-
D("p",
|
|
2659
|
-
e.state.error ? (R(), E("p",
|
|
2660
|
-
])) : a.value.kind === "removed" ? (R(), E("div",
|
|
2784
|
+
D("p", ns, W(e.text.removeBack), 1),
|
|
2785
|
+
e.state.error ? (R(), E("p", rs, W(e.state.error), 1)) : T("", !0)
|
|
2786
|
+
])) : a.value.kind === "removed" ? (R(), E("div", is, [D("p", null, W(G(Z)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (R(), E("p", as, W(e.state.error), 1)) : T("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (R(), E("form", {
|
|
2661
2787
|
key: 5,
|
|
2662
2788
|
class: "glim-fortress-text",
|
|
2663
2789
|
onSubmit: i[2] ||= X((t) => e.flow.unlock(), ["prevent"])
|
|
2664
2790
|
}, [
|
|
2665
2791
|
D("p", null, W(G(Z)(e.text.phrasePassword, { app: e.app.name })), 1),
|
|
2666
|
-
A(
|
|
2792
|
+
A(Bo, {
|
|
2667
2793
|
"model-value": a.value.password,
|
|
2668
2794
|
"aria-label": G(Z)(e.text.password, { app: e.app.name }),
|
|
2669
2795
|
placeholder: G(Z)(e.text.password, { app: e.app.name }),
|
|
@@ -2678,15 +2804,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2678
2804
|
"placeholder",
|
|
2679
2805
|
"text"
|
|
2680
2806
|
]),
|
|
2681
|
-
e.state.error ? (R(), E("p",
|
|
2682
|
-
], 32)) : a.value.kind === "change" ? (R(), E("div",
|
|
2807
|
+
e.state.error ? (R(), E("p", os, W(e.state.error), 1)) : T("", !0)
|
|
2808
|
+
], 32)) : a.value.kind === "change" ? (R(), E("div", ss, [
|
|
2683
2809
|
D("p", null, W(e.text.changeBody), 1),
|
|
2684
|
-
D("p",
|
|
2685
|
-
e.state.error ? (R(), E("p",
|
|
2686
|
-
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div",
|
|
2810
|
+
D("p", cs, W(e.text.changeAway), 1),
|
|
2811
|
+
e.state.error ? (R(), E("p", ls, W(e.state.error), 1)) : T("", !0)
|
|
2812
|
+
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div", us, [
|
|
2687
2813
|
D("p", null, W(e.text.phraseBody), 1),
|
|
2688
|
-
D("div",
|
|
2689
|
-
D("ol",
|
|
2814
|
+
D("div", ds, [
|
|
2815
|
+
D("ol", fs, [(R(!0), E(S, null, B(a.value.words, (e, t) => (R(), E("li", { key: t }, [D("span", ps, W(t + 1), 1), k(W(e), 1)]))), 128))]),
|
|
2690
2816
|
f.value ? (R(), E("svg", {
|
|
2691
2817
|
key: 0,
|
|
2692
2818
|
class: "glim-phrase-qr",
|
|
@@ -2701,13 +2827,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2701
2827
|
width: f.value.side,
|
|
2702
2828
|
height: f.value.side,
|
|
2703
2829
|
fill: "#ffffff"
|
|
2704
|
-
}, null, 8,
|
|
2830
|
+
}, null, 8, hs), D("path", {
|
|
2705
2831
|
d: f.value.path,
|
|
2706
2832
|
fill: "#161616"
|
|
2707
|
-
}, null, 8,
|
|
2708
|
-
D("p",
|
|
2833
|
+
}, null, 8, gs)], 8, ms)) : T("", !0),
|
|
2834
|
+
D("p", _s, W(e.text.scanHint), 1)
|
|
2709
2835
|
]),
|
|
2710
|
-
a.value.kind === "changed" && a.value.left.length ? (R(), E("p",
|
|
2836
|
+
a.value.kind === "changed" && a.value.left.length ? (R(), E("p", vs, W(G(Z)(e.text.changedLeft, { devices: G(Lt)(e.lang, a.value.left) })), 1)) : T("", !0)
|
|
2711
2837
|
])) : T("", !0)]),
|
|
2712
2838
|
_: 1
|
|
2713
2839
|
}, 8, [
|
|
@@ -2718,25 +2844,25 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2718
2844
|
"text"
|
|
2719
2845
|
]));
|
|
2720
2846
|
}
|
|
2721
|
-
}),
|
|
2847
|
+
}), bs = {
|
|
2722
2848
|
"data-glim": "Fortress",
|
|
2723
2849
|
class: "glim-fortress"
|
|
2724
|
-
},
|
|
2850
|
+
}, xs = { class: "glim-fortress-grid" }, Ss = {
|
|
2725
2851
|
key: 0,
|
|
2726
2852
|
class: "glim-card glim-instance glim-instance--out",
|
|
2727
2853
|
"data-fortress": "out"
|
|
2728
|
-
},
|
|
2854
|
+
}, Cs = { class: "glim-instance-title" }, ws = { class: "glim-instance-hint" }, Ts = {
|
|
2729
2855
|
key: 0,
|
|
2730
2856
|
class: "glim-instance-found"
|
|
2731
|
-
},
|
|
2857
|
+
}, Es = ["src"], Ds = { class: "glim-fortress-switch-text" }, Os = { class: "glim-fortress-switch-name" }, ks = { class: "glim-fortress-sub" }, As = {
|
|
2732
2858
|
key: 1,
|
|
2733
2859
|
class: "glim-fortress-removed",
|
|
2734
2860
|
"data-fortress": "removed",
|
|
2735
2861
|
role: "status"
|
|
2736
|
-
},
|
|
2862
|
+
}, js = { class: "glim-fortress-grid" }, Ms = {
|
|
2737
2863
|
key: 3,
|
|
2738
2864
|
class: "glim-fortress-actions"
|
|
2739
|
-
},
|
|
2865
|
+
}, Ns = /* @__PURE__ */ j({
|
|
2740
2866
|
__name: "Fortress",
|
|
2741
2867
|
props: {
|
|
2742
2868
|
text: {},
|
|
@@ -2774,10 +2900,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2774
2900
|
},
|
|
2775
2901
|
emits: ["update:showOthers"],
|
|
2776
2902
|
setup(e, { emit: t }) {
|
|
2777
|
-
let n = e, r = t, i =
|
|
2903
|
+
let n = e, r = t, i = pt(() => ({
|
|
2778
2904
|
...n,
|
|
2779
2905
|
failed: n.text.failed,
|
|
2780
|
-
joinRefusal: (e) =>
|
|
2906
|
+
joinRefusal: (e) => Nt(n.text, e)
|
|
2781
2907
|
})), a = U(i.state()), o = i.subscribe(() => a.value = i.state());
|
|
2782
2908
|
I(o);
|
|
2783
2909
|
let s = C(() => ({
|
|
@@ -2790,20 +2916,20 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2790
2916
|
unlock: "unlock",
|
|
2791
2917
|
copy: "copy",
|
|
2792
2918
|
...n.labelKeys
|
|
2793
|
-
})), c = z(
|
|
2919
|
+
})), c = z(Xn()), l = C(() => n.showOthers ?? c.value);
|
|
2794
2920
|
function u(e) {
|
|
2795
|
-
r("update:showOthers", e), n.showOthers === void 0 && (
|
|
2921
|
+
r("update:showOthers", e), n.showOthers === void 0 && (Yn(e), c.value = e);
|
|
2796
2922
|
}
|
|
2797
|
-
let d = C(() => Z(n.text.removedNote, { devices:
|
|
2798
|
-
return (t, n) => (R(), E("div",
|
|
2799
|
-
D("div",
|
|
2800
|
-
D("h3",
|
|
2801
|
-
D("p",
|
|
2802
|
-
e.found ? (R(), E("p",
|
|
2923
|
+
let d = C(() => Z(n.text.removedNote, { devices: Lt(n.lang, n.removed) })), p = C(() => rn(n.text, n.lang, n.apps));
|
|
2924
|
+
return (t, n) => (R(), E("div", bs, [
|
|
2925
|
+
D("div", xs, [V(t.$slots, "default", { remove: G(i).openRemove }), e.joined ? T("", !0) : (R(), E("div", Ss, [
|
|
2926
|
+
D("h3", Cs, W(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
|
|
2927
|
+
D("p", ws, W(G(Z)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
|
|
2928
|
+
e.found ? (R(), E("p", Ts, [e.found.logo ? (R(), E("img", {
|
|
2803
2929
|
key: 0,
|
|
2804
2930
|
src: e.found.logo,
|
|
2805
2931
|
alt: ""
|
|
2806
|
-
}, null, 8,
|
|
2932
|
+
}, null, 8, Es)) : T("", !0), D("span", null, W(G(Z)(e.text.found, {
|
|
2807
2933
|
app: e.found.app,
|
|
2808
2934
|
device: e.found.device
|
|
2809
2935
|
})), 1)])) : T("", !0)
|
|
@@ -2811,16 +2937,16 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2811
2937
|
e.joined && !e.hideSwitch ? (R(), E("div", {
|
|
2812
2938
|
key: 0,
|
|
2813
2939
|
class: "glim-card glim-fortress-switch glim-hue",
|
|
2814
|
-
style: F(G(
|
|
2815
|
-
}, [D("span",
|
|
2940
|
+
style: F(G(kt)(e.hueStart))
|
|
2941
|
+
}, [D("span", Ds, [D("span", Os, [k(W(e.text.showOthers), 1), A(Q, { tip: e.text.about }, null, 8, ["tip"])]), D("span", ks, W(p.value), 1)]), A(So, {
|
|
2816
2942
|
"model-value": l.value,
|
|
2817
2943
|
label: e.text.showOthers,
|
|
2818
2944
|
"hide-label": "",
|
|
2819
2945
|
"data-fortress": "others",
|
|
2820
2946
|
"onUpdate:modelValue": u
|
|
2821
2947
|
}, null, 8, ["model-value", "label"])], 4)) : T("", !0),
|
|
2822
|
-
e.joined && e.removed.length ? (R(), E("div",
|
|
2823
|
-
G(
|
|
2948
|
+
e.joined && e.removed.length ? (R(), E("div", As, [
|
|
2949
|
+
G(me)("info") ? (R(), w(H(G(me)("info")), { key: 0 })) : T("", !0),
|
|
2824
2950
|
D("span", null, W(d.value), 1),
|
|
2825
2951
|
e.onChangePhrase ? (R(), w(f, {
|
|
2826
2952
|
key: 1,
|
|
@@ -2831,11 +2957,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2831
2957
|
onClick: n[0] ||= (e) => G(i).openChange()
|
|
2832
2958
|
}, null, 8, ["label", "label-key"])) : T("", !0)
|
|
2833
2959
|
])) : T("", !0),
|
|
2834
|
-
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div",
|
|
2960
|
+
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div", js, [(R(!0), E(S, null, B(e.apps, (n, r) => (R(), E(S, { key: n.id }, [t.$slots.app ? V(t.$slots, "app", {
|
|
2835
2961
|
app: n,
|
|
2836
2962
|
hueIndex: e.hueStart + 1 + r,
|
|
2837
2963
|
remove: e.onRemove && G(i).openRemove
|
|
2838
|
-
}, void 0, void 0, 0) : (R(), w(
|
|
2964
|
+
}, void 0, void 0, 0) : (R(), w(uo, {
|
|
2839
2965
|
key: 1,
|
|
2840
2966
|
app: n,
|
|
2841
2967
|
text: e.text,
|
|
@@ -2852,7 +2978,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2852
2978
|
"on-open",
|
|
2853
2979
|
"on-remove",
|
|
2854
2980
|
"remove-key"
|
|
2855
|
-
]))], 64))), 128))]), A(
|
|
2981
|
+
]))], 64))), 128))]), A(No, {
|
|
2856
2982
|
text: e.text,
|
|
2857
2983
|
app: e.app,
|
|
2858
2984
|
apps: [e.app, ...e.apps],
|
|
@@ -2872,7 +2998,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2872
2998
|
"notify",
|
|
2873
2999
|
"hue-index"
|
|
2874
3000
|
])], 64)) : T("", !0),
|
|
2875
|
-
!e.joined || e.onShowPhrase ? (R(), E("div",
|
|
3001
|
+
!e.joined || e.onShowPhrase ? (R(), E("div", Ms, [e.joined ? (R(), w(f, {
|
|
2876
3002
|
key: 0,
|
|
2877
3003
|
label: e.text.showPhrase,
|
|
2878
3004
|
"label-key": s.value.showPhrase,
|
|
@@ -2894,7 +3020,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2894
3020
|
"data-fortress": "open-join",
|
|
2895
3021
|
onClick: n[2] ||= (e) => G(i).openJoin()
|
|
2896
3022
|
}, null, 8, ["label", "label-key"]))])) : T("", !0),
|
|
2897
|
-
a.value.window ? (R(), w(
|
|
3023
|
+
a.value.window ? (R(), w(ys, {
|
|
2898
3024
|
key: 4,
|
|
2899
3025
|
flow: G(i),
|
|
2900
3026
|
state: a.value,
|
|
@@ -2916,7 +3042,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2916
3042
|
])) : T("", !0)
|
|
2917
3043
|
]));
|
|
2918
3044
|
}
|
|
2919
|
-
}),
|
|
3045
|
+
}), Ps = /* @__PURE__ */ j({
|
|
2920
3046
|
__name: "FortressPairing",
|
|
2921
3047
|
props: {
|
|
2922
3048
|
text: {},
|
|
@@ -2933,7 +3059,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2933
3059
|
hueIndex: {}
|
|
2934
3060
|
},
|
|
2935
3061
|
setup(e) {
|
|
2936
|
-
let t = e, n =
|
|
3062
|
+
let t = e, n = pt(() => ({
|
|
2937
3063
|
...t,
|
|
2938
3064
|
failed: t.text.failed
|
|
2939
3065
|
})), r = U(n.state()), i = n.subscribe(() => r.value = n.state());
|
|
@@ -2949,14 +3075,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2949
3075
|
copy: "copy",
|
|
2950
3076
|
...t.labelKeys
|
|
2951
3077
|
}));
|
|
2952
|
-
return (t, i) => (R(), w(
|
|
3078
|
+
return (t, i) => (R(), w(_r, {
|
|
2953
3079
|
"data-glim": "FortressPairing",
|
|
2954
3080
|
title: e.text.pairing,
|
|
2955
3081
|
"hue-index": e.hueIndex
|
|
2956
3082
|
}, {
|
|
2957
3083
|
default: Y(() => [
|
|
2958
3084
|
V(t.$slots, "default"),
|
|
2959
|
-
e.onShowPhrase || e.onChangePhrase ? (R(), w(
|
|
3085
|
+
e.onShowPhrase || e.onChangePhrase ? (R(), w(Ea, {
|
|
2960
3086
|
key: 0,
|
|
2961
3087
|
label: e.text.phraseTitle,
|
|
2962
3088
|
hint: e.onChangePhrase ? e.text.changePhraseAbout : void 0
|
|
@@ -2981,7 +3107,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2981
3107
|
}, null, 8, ["label", "label-key"])) : T("", !0)]),
|
|
2982
3108
|
_: 1
|
|
2983
3109
|
}, 8, ["label", "hint"])) : T("", !0),
|
|
2984
|
-
A(
|
|
3110
|
+
A(Ea, {
|
|
2985
3111
|
label: e.text.leaveRow,
|
|
2986
3112
|
hint: G(Z)(e.text.leaveAbout, { app: e.app.name })
|
|
2987
3113
|
}, {
|
|
@@ -2994,7 +3120,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2994
3120
|
_: 1
|
|
2995
3121
|
}, 8, ["label", "hint"]),
|
|
2996
3122
|
V(t.$slots, "after"),
|
|
2997
|
-
r.value.window ? (R(), w(
|
|
3123
|
+
r.value.window ? (R(), w(ys, {
|
|
2998
3124
|
key: 1,
|
|
2999
3125
|
flow: G(n),
|
|
3000
3126
|
state: r.value,
|
|
@@ -3020,13 +3146,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3020
3146
|
_: 3
|
|
3021
3147
|
}, 8, ["title", "hue-index"]));
|
|
3022
3148
|
}
|
|
3023
|
-
}),
|
|
3149
|
+
}), Fs = [
|
|
3024
3150
|
"aria-label",
|
|
3025
3151
|
"aria-valuemin",
|
|
3026
3152
|
"aria-valuemax",
|
|
3027
3153
|
"aria-valuenow",
|
|
3028
3154
|
"aria-valuetext"
|
|
3029
|
-
],
|
|
3155
|
+
], Is = /* @__PURE__ */ j({
|
|
3030
3156
|
__name: "ProgressBar",
|
|
3031
3157
|
props: {
|
|
3032
3158
|
value: { default: null },
|
|
@@ -3042,7 +3168,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3042
3168
|
valueText: {}
|
|
3043
3169
|
},
|
|
3044
3170
|
setup(e) {
|
|
3045
|
-
let t = e, n = C(() =>
|
|
3171
|
+
let t = e, n = C(() => Sn(t.value, {
|
|
3046
3172
|
paused: t.paused,
|
|
3047
3173
|
failed: t.failed
|
|
3048
3174
|
}));
|
|
@@ -3058,48 +3184,48 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3058
3184
|
}, [D("span", {
|
|
3059
3185
|
class: "glim-progress-fill",
|
|
3060
3186
|
style: F(n.value.width ? { width: n.value.width } : void 0)
|
|
3061
|
-
}, null, 4)], 10,
|
|
3187
|
+
}, null, 4)], 10, Fs));
|
|
3062
3188
|
}
|
|
3063
|
-
}),
|
|
3189
|
+
}), Ls = { class: "glim-status-title" }, Rs = ["src"], zs = {
|
|
3064
3190
|
class: "glim-fortress-text",
|
|
3065
3191
|
"data-fortress": "status"
|
|
3066
|
-
},
|
|
3192
|
+
}, Bs = {
|
|
3067
3193
|
key: 0,
|
|
3068
3194
|
class: "glim-fortress-note",
|
|
3069
3195
|
"data-fortress": "loading"
|
|
3070
|
-
},
|
|
3196
|
+
}, Vs = { role: "status" }, Hs = {
|
|
3071
3197
|
key: 1,
|
|
3072
3198
|
class: "glim-fortress-note",
|
|
3073
3199
|
role: "status",
|
|
3074
3200
|
"data-fortress": "error"
|
|
3075
|
-
},
|
|
3201
|
+
}, Us = {
|
|
3076
3202
|
key: 2,
|
|
3077
3203
|
class: "glim-status-state",
|
|
3078
3204
|
"data-fortress": "state"
|
|
3079
|
-
},
|
|
3205
|
+
}, Ws = {
|
|
3080
3206
|
key: 0,
|
|
3081
3207
|
class: "glim-fortress-sub"
|
|
3082
|
-
},
|
|
3208
|
+
}, Gs = {
|
|
3083
3209
|
key: 3,
|
|
3084
3210
|
class: "glim-status-section",
|
|
3085
3211
|
"data-fortress": "needs"
|
|
3086
|
-
},
|
|
3212
|
+
}, Ks = { class: "glim-status-heading" }, qs = { class: "glim-status-list" }, Js = {
|
|
3087
3213
|
key: 4,
|
|
3088
3214
|
class: "glim-status-section",
|
|
3089
3215
|
"data-fortress": "work"
|
|
3090
|
-
},
|
|
3216
|
+
}, Ys = { class: "glim-status-heading" }, Xs = { class: "glim-status-list" }, Zs = {
|
|
3091
3217
|
key: 5,
|
|
3092
3218
|
class: "glim-status-section",
|
|
3093
3219
|
"data-fortress": "next"
|
|
3094
|
-
},
|
|
3220
|
+
}, Qs = { class: "glim-status-heading" }, $s = { class: "glim-status-list" }, ec = { class: "glim-status-at glim-num" }, tc = {
|
|
3095
3221
|
key: 6,
|
|
3096
3222
|
class: "glim-status-section",
|
|
3097
3223
|
"data-fortress": "log"
|
|
3098
|
-
},
|
|
3224
|
+
}, nc = { class: "glim-status-heading" }, rc = { class: "glim-status-list" }, ic = { class: "glim-status-at glim-num" }, ac = {
|
|
3099
3225
|
key: 7,
|
|
3100
3226
|
class: "glim-fortress-sub",
|
|
3101
3227
|
"data-fortress": "where"
|
|
3102
|
-
},
|
|
3228
|
+
}, oc = /* @__PURE__ */ j({
|
|
3103
3229
|
__name: "FortressStatusWindow",
|
|
3104
3230
|
props: {
|
|
3105
3231
|
app: {},
|
|
@@ -3113,7 +3239,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3113
3239
|
onClose: { type: Function }
|
|
3114
3240
|
},
|
|
3115
3241
|
setup(t) {
|
|
3116
|
-
let n = t, r = C(() =>
|
|
3242
|
+
let n = t, r = C(() => Jn({
|
|
3117
3243
|
app: n.app,
|
|
3118
3244
|
instance: n.instance,
|
|
3119
3245
|
report: n.report,
|
|
@@ -3124,10 +3250,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3124
3250
|
})), i = C(() => [{
|
|
3125
3251
|
label: n.text.close,
|
|
3126
3252
|
labelKey: "common.close",
|
|
3127
|
-
glyph:
|
|
3253
|
+
glyph: _,
|
|
3128
3254
|
wayOut: !0
|
|
3129
|
-
}]), a =
|
|
3130
|
-
return (n, o) => (R(), w(
|
|
3255
|
+
}]), a = me("info");
|
|
3256
|
+
return (n, o) => (R(), w(Fa, {
|
|
3131
3257
|
"data-glim": "FortressStatusWindow",
|
|
3132
3258
|
lang: t.lang,
|
|
3133
3259
|
title: r.value.title,
|
|
@@ -3138,22 +3264,22 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3138
3264
|
},
|
|
3139
3265
|
onClose: o[0] ||= (e) => t.onClose()
|
|
3140
3266
|
}, {
|
|
3141
|
-
title: Y(() => [D("span",
|
|
3267
|
+
title: Y(() => [D("span", Ls, [t.app.logo ? (R(), E("img", {
|
|
3142
3268
|
key: 0,
|
|
3143
3269
|
src: t.app.logo,
|
|
3144
3270
|
alt: ""
|
|
3145
|
-
}, null, 8,
|
|
3146
|
-
default: Y(() => [D("div",
|
|
3147
|
-
r.value.loading ? (R(), E("p",
|
|
3271
|
+
}, null, 8, Rs)) : T("", !0), k(W(r.value.title), 1)])]),
|
|
3272
|
+
default: Y(() => [D("div", zs, [
|
|
3273
|
+
r.value.loading ? (R(), E("p", Bs, [A(c, {
|
|
3148
3274
|
size: "small",
|
|
3149
3275
|
delay: 0
|
|
3150
|
-
}), D("span",
|
|
3151
|
-
r.value.error === void 0 ? T("", !0) : (R(), E("p",
|
|
3152
|
-
r.value.state ? (R(), E("p",
|
|
3276
|
+
}), D("span", Vs, W(r.value.loading), 1)])) : T("", !0),
|
|
3277
|
+
r.value.error === void 0 ? T("", !0) : (R(), E("p", Hs, [G(a) ? (R(), w(H(G(a)), { key: 0 })) : T("", !0), D("span", null, W(r.value.error), 1)])),
|
|
3278
|
+
r.value.state ? (R(), E("p", Us, [A(e, { tone: r.value.state.tone }, {
|
|
3153
3279
|
default: Y(() => [k(W(r.value.state.label), 1)]),
|
|
3154
3280
|
_: 1
|
|
3155
|
-
}, 8, ["tone"]), r.value.quiet ? (R(), E("span",
|
|
3156
|
-
r.value.needsYou.length ? (R(), E("section",
|
|
3281
|
+
}, 8, ["tone"]), r.value.quiet ? (R(), E("span", Ws, W(r.value.quiet), 1)) : T("", !0)])) : T("", !0),
|
|
3282
|
+
r.value.needsYou.length ? (R(), E("section", Gs, [D("h3", Ks, W(t.text.statusNeedsYou), 1), D("ul", qs, [(R(!0), E(S, null, B(r.value.needsYou, (t, n) => (R(), E("li", {
|
|
3157
3283
|
key: n,
|
|
3158
3284
|
class: "glim-status-line"
|
|
3159
3285
|
}, [
|
|
@@ -3167,26 +3293,26 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3167
3293
|
o[1] ||= k(),
|
|
3168
3294
|
D("span", null, W(t.text), 1)
|
|
3169
3295
|
]))), 128))])])) : T("", !0),
|
|
3170
|
-
r.value.work.length ? (R(), E("section",
|
|
3296
|
+
r.value.work.length ? (R(), E("section", Js, [D("h3", Ys, W(t.text.statusWork), 1), D("ul", Xs, [(R(!0), E(S, null, B(r.value.work, (e, t) => (R(), E("li", {
|
|
3171
3297
|
key: t,
|
|
3172
3298
|
class: "glim-status-work"
|
|
3173
|
-
}, [D("span", null, W(e.title), 1), A(
|
|
3299
|
+
}, [D("span", null, W(e.title), 1), A(Is, {
|
|
3174
3300
|
value: e.progress,
|
|
3175
3301
|
label: e.title
|
|
3176
3302
|
}, null, 8, ["value", "label"])]))), 128))])])) : T("", !0),
|
|
3177
|
-
r.value.next.length ? (R(), E("section",
|
|
3303
|
+
r.value.next.length ? (R(), E("section", Zs, [D("h3", Qs, W(t.text.statusNext), 1), D("ul", $s, [(R(!0), E(S, null, B(r.value.next, (e, t) => (R(), E("li", {
|
|
3178
3304
|
key: t,
|
|
3179
3305
|
class: "glim-status-line"
|
|
3180
3306
|
}, [
|
|
3181
3307
|
D("span", null, W(e.title), 1),
|
|
3182
3308
|
o[2] ||= k(),
|
|
3183
|
-
D("span",
|
|
3309
|
+
D("span", ec, W(e.at), 1)
|
|
3184
3310
|
]))), 128))])])) : T("", !0),
|
|
3185
|
-
r.value.log.length ? (R(), E("section",
|
|
3311
|
+
r.value.log.length ? (R(), E("section", tc, [D("h3", nc, W(t.text.statusLog), 1), D("ul", rc, [(R(!0), E(S, null, B(r.value.log, (t, n) => (R(), E("li", {
|
|
3186
3312
|
key: n,
|
|
3187
3313
|
class: "glim-status-line"
|
|
3188
3314
|
}, [
|
|
3189
|
-
D("span",
|
|
3315
|
+
D("span", ic, W(t.at), 1),
|
|
3190
3316
|
o[3] ||= k(),
|
|
3191
3317
|
t.level ? (R(), w(e, {
|
|
3192
3318
|
key: 0,
|
|
@@ -3198,7 +3324,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3198
3324
|
o[4] ||= k(),
|
|
3199
3325
|
D("span", null, W(t.text), 1)
|
|
3200
3326
|
]))), 128))])])) : T("", !0),
|
|
3201
|
-
r.value.where ? (R(), E("p",
|
|
3327
|
+
r.value.where ? (R(), E("p", ac, W(r.value.where), 1)) : T("", !0)
|
|
3202
3328
|
])]),
|
|
3203
3329
|
_: 1
|
|
3204
3330
|
}, 8, [
|
|
@@ -3208,10 +3334,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3208
3334
|
"text"
|
|
3209
3335
|
]));
|
|
3210
3336
|
}
|
|
3211
|
-
}),
|
|
3337
|
+
}), sc = {
|
|
3212
3338
|
class: "glim-glyph-field-glyph",
|
|
3213
3339
|
"aria-hidden": "true"
|
|
3214
|
-
},
|
|
3340
|
+
}, cc = ["aria-label"], lc = /* @__PURE__ */ j({
|
|
3215
3341
|
inheritAttrs: !1,
|
|
3216
3342
|
__name: "GlyphField",
|
|
3217
3343
|
props: /*@__PURE__*/ M({
|
|
@@ -3225,7 +3351,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3225
3351
|
}),
|
|
3226
3352
|
emits: ["update:modelValue"],
|
|
3227
3353
|
setup(e, { expose: t }) {
|
|
3228
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
3354
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => vt(n.width)), o = U(null);
|
|
3229
3355
|
return t({ input: o }), (t, n) => (R(), E("label", {
|
|
3230
3356
|
"data-glim": "GlyphField",
|
|
3231
3357
|
class: P([
|
|
@@ -3237,8 +3363,8 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3237
3363
|
]),
|
|
3238
3364
|
style: F(t.$attrs.style)
|
|
3239
3365
|
}, [
|
|
3240
|
-
D("span",
|
|
3241
|
-
|
|
3366
|
+
D("span", sc, [(R(), w(H(e.glyph)))]),
|
|
3367
|
+
ze(D("input", N({
|
|
3242
3368
|
ref_key: "input",
|
|
3243
3369
|
ref: o,
|
|
3244
3370
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -3248,11 +3374,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3248
3374
|
...t.$attrs,
|
|
3249
3375
|
class: void 0,
|
|
3250
3376
|
style: void 0
|
|
3251
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
3377
|
+
}, { class: "glim-glyph-field-input" }), null, 16, cc), [[Ie, r.value]]),
|
|
3252
3378
|
V(t.$slots, "after")
|
|
3253
3379
|
], 6));
|
|
3254
3380
|
}
|
|
3255
|
-
}),
|
|
3381
|
+
}), uc = /* @__PURE__ */ j({
|
|
3256
3382
|
__name: "GlyphTile",
|
|
3257
3383
|
props: {
|
|
3258
3384
|
glyph: {},
|
|
@@ -3271,17 +3397,17 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3271
3397
|
"aria-hidden": "true"
|
|
3272
3398
|
}, [(R(), w(H(e.glyph)))], 2));
|
|
3273
3399
|
}
|
|
3274
|
-
}),
|
|
3400
|
+
}), dc = [
|
|
3275
3401
|
"aria-label",
|
|
3276
3402
|
"tabindex",
|
|
3277
3403
|
"onKeydown"
|
|
3278
|
-
],
|
|
3404
|
+
], fc = {
|
|
3279
3405
|
key: 0,
|
|
3280
3406
|
class: "glim-list-row-tile"
|
|
3281
|
-
},
|
|
3407
|
+
}, pc = { class: "glim-list-row-title" }, mc = {
|
|
3282
3408
|
key: 1,
|
|
3283
3409
|
class: "glim-list-row-badges"
|
|
3284
|
-
},
|
|
3410
|
+
}, hc = /* @__PURE__ */ j({
|
|
3285
3411
|
__name: "ListRow",
|
|
3286
3412
|
props: {
|
|
3287
3413
|
name: {},
|
|
@@ -3289,7 +3415,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3289
3415
|
mono: { type: Boolean }
|
|
3290
3416
|
},
|
|
3291
3417
|
setup(e) {
|
|
3292
|
-
let t = e, n =
|
|
3418
|
+
let t = e, n = Ne(), r = C(() => !!n.onClick), i = C(() => ["glim-list-row-name", { "glim-list-row-name--mono": t.mono }]);
|
|
3293
3419
|
function a(e) {
|
|
3294
3420
|
e.preventDefault(), e.currentTarget.click();
|
|
3295
3421
|
}
|
|
@@ -3299,23 +3425,23 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3299
3425
|
"aria-label": e.name,
|
|
3300
3426
|
tabindex: r.value ? 0 : void 0,
|
|
3301
3427
|
class: P(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
3302
|
-
onKeydown: [
|
|
3428
|
+
onKeydown: [Be(X(a, ["self"]), ["enter"]), Be(X(a, ["self"]), ["space"])]
|
|
3303
3429
|
}, [
|
|
3304
|
-
t.$slots.tile ? (R(), E("span",
|
|
3305
|
-
D("span", { class: P(i.value) }, [D("span",
|
|
3430
|
+
t.$slots.tile ? (R(), E("span", fc, [V(t.$slots, "tile")])) : T("", !0),
|
|
3431
|
+
D("span", { class: P(i.value) }, [D("span", pc, W(e.name), 1), e.tip ? (R(), E("span", {
|
|
3306
3432
|
key: 0,
|
|
3307
3433
|
class: "glim-list-row-tip",
|
|
3308
3434
|
onClick: n[0] ||= X(() => {}, ["stop"])
|
|
3309
3435
|
}, [A(Q, { tip: e.tip }, null, 8, ["tip"])])) : T("", !0)], 2),
|
|
3310
|
-
t.$slots.badges ? (R(), E("span",
|
|
3436
|
+
t.$slots.badges ? (R(), E("span", mc, [V(t.$slots, "badges")])) : T("", !0),
|
|
3311
3437
|
t.$slots.actions ? (R(), E("span", {
|
|
3312
3438
|
key: 2,
|
|
3313
3439
|
class: "glim-list-row-actions",
|
|
3314
3440
|
onClick: n[1] ||= X(() => {}, ["stop"])
|
|
3315
3441
|
}, [V(t.$slots, "actions")])) : T("", !0)
|
|
3316
|
-
], 42,
|
|
3442
|
+
], 42, dc));
|
|
3317
3443
|
}
|
|
3318
|
-
}),
|
|
3444
|
+
}), gc = ["aria-label"], _c = /* @__PURE__ */ j({
|
|
3319
3445
|
__name: "Popover",
|
|
3320
3446
|
props: {
|
|
3321
3447
|
open: { type: Boolean },
|
|
@@ -3324,13 +3450,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3324
3450
|
},
|
|
3325
3451
|
emits: ["close"],
|
|
3326
3452
|
setup(e, { emit: t }) {
|
|
3327
|
-
let n = e, r = t, i = z(null), a =
|
|
3453
|
+
let n = e, r = t, i = z(null), a = Qe(K() ?? "popover"), o;
|
|
3328
3454
|
return J([
|
|
3329
3455
|
() => n.open,
|
|
3330
3456
|
() => n.anchor,
|
|
3331
3457
|
i
|
|
3332
3458
|
], ([e, t, n]) => {
|
|
3333
|
-
o?.(), o = void 0, e && t && n && (o =
|
|
3459
|
+
o?.(), o = void 0, e && t && n && (o = tn(n, t, a, () => r("close")));
|
|
3334
3460
|
}, { flush: "post" }), I(() => o?.()), (t, n) => e.open ? (R(), E("div", {
|
|
3335
3461
|
key: 0,
|
|
3336
3462
|
"data-glim": "Popover",
|
|
@@ -3340,24 +3466,24 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3340
3466
|
role: "dialog",
|
|
3341
3467
|
"aria-label": e.label,
|
|
3342
3468
|
class: "glim-popover"
|
|
3343
|
-
}, [V(t.$slots, "default")], 8,
|
|
3469
|
+
}, [V(t.$slots, "default")], 8, gc)) : T("", !0);
|
|
3344
3470
|
}
|
|
3345
|
-
}),
|
|
3471
|
+
}), vc = {
|
|
3346
3472
|
"data-glim": "ListTable",
|
|
3347
3473
|
class: "glim-list"
|
|
3348
|
-
},
|
|
3474
|
+
}, yc = ["aria-label", "onKeydown"], bc = ["aria-label", "aria-describedby"], xc = ["aria-sort"], Sc = { class: "glim-list-th-box" }, Cc = ["onClick"], wc = [
|
|
3349
3475
|
"aria-label",
|
|
3350
3476
|
"aria-expanded",
|
|
3351
3477
|
"aria-pressed",
|
|
3352
3478
|
"onClick"
|
|
3353
|
-
],
|
|
3479
|
+
], Tc = [
|
|
3354
3480
|
"aria-selected",
|
|
3355
3481
|
"onClick",
|
|
3356
3482
|
"onDblclick"
|
|
3357
|
-
],
|
|
3483
|
+
], Ec = ["tabindex"], Dc = {
|
|
3358
3484
|
key: 1,
|
|
3359
3485
|
class: "glim-list-empty"
|
|
3360
|
-
},
|
|
3486
|
+
}, Oc = ["id"], kc = { class: "glim-list-filter-values" }, Ac = /* @__PURE__ */ j({
|
|
3361
3487
|
__name: "ListTable",
|
|
3362
3488
|
props: {
|
|
3363
3489
|
label: {},
|
|
@@ -3373,24 +3499,24 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3373
3499
|
keys: [],
|
|
3374
3500
|
anchor: null,
|
|
3375
3501
|
focus: null
|
|
3376
|
-
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() =>
|
|
3502
|
+
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() => Rt(n.rows, {
|
|
3377
3503
|
sort: i.value,
|
|
3378
3504
|
filters: a.value,
|
|
3379
3505
|
query: o.value ?? "",
|
|
3380
3506
|
search: n.search ?? [n.columns[0].key]
|
|
3381
|
-
})),
|
|
3382
|
-
let e = (e) => e === null ? -1 :
|
|
3507
|
+
})), m = C(() => f.value.map(n.rowKey)), h = C(() => {
|
|
3508
|
+
let e = (e) => e === null ? -1 : m.value.indexOf(e);
|
|
3383
3509
|
return {
|
|
3384
|
-
selected:
|
|
3510
|
+
selected: m.value.flatMap((e, t) => s.value.keys.includes(e) ? [t] : []),
|
|
3385
3511
|
anchor: e(s.value.anchor) < 0 ? null : e(s.value.anchor),
|
|
3386
3512
|
focus: Math.max(0, e(s.value.focus))
|
|
3387
3513
|
};
|
|
3388
3514
|
});
|
|
3389
3515
|
function g() {
|
|
3390
|
-
|
|
3516
|
+
Ee(() => l.value?.querySelector(`tbody tr:nth-child(${h.value.focus + 1}) > td`)?.focus());
|
|
3391
3517
|
}
|
|
3392
3518
|
function _(e) {
|
|
3393
|
-
let t =
|
|
3519
|
+
let t = m.value;
|
|
3394
3520
|
s.value = {
|
|
3395
3521
|
keys: e.selected.map((e) => t[e]),
|
|
3396
3522
|
anchor: e.anchor === null ? null : t[e.anchor],
|
|
@@ -3398,14 +3524,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3398
3524
|
}, r("select", e.selected.map((e) => f.value[e])), g();
|
|
3399
3525
|
}
|
|
3400
3526
|
function v(e) {
|
|
3401
|
-
let t =
|
|
3527
|
+
let t = It(h.value, e.key, {
|
|
3402
3528
|
toggle: e.ctrlKey || e.metaKey,
|
|
3403
3529
|
range: e.shiftKey
|
|
3404
3530
|
}, f.value.length);
|
|
3405
|
-
t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search,
|
|
3531
|
+
t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search, Ee(() => u.value?.focus())) : _(t.select));
|
|
3406
3532
|
}
|
|
3407
3533
|
function ee(e, t) {
|
|
3408
|
-
_(
|
|
3534
|
+
_(Pn(h.value, t, {
|
|
3409
3535
|
toggle: e.ctrlKey || e.metaKey,
|
|
3410
3536
|
range: e.shiftKey
|
|
3411
3537
|
}));
|
|
@@ -3414,22 +3540,22 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3414
3540
|
o.value = null, g();
|
|
3415
3541
|
}
|
|
3416
3542
|
let y = C(() => c.value && n.columns.find((e) => e.key === c.value.key)), ne = (e) => a.value[e] ?? [];
|
|
3417
|
-
function
|
|
3543
|
+
function re(e, t) {
|
|
3418
3544
|
let n = ne(e);
|
|
3419
3545
|
a.value = {
|
|
3420
3546
|
...a.value,
|
|
3421
3547
|
[e]: n.includes(t) ? n.filter((e) => e !== t) : [...n, t]
|
|
3422
3548
|
};
|
|
3423
3549
|
}
|
|
3424
|
-
function
|
|
3550
|
+
function b(e, t) {
|
|
3425
3551
|
c.value = c.value?.key === e ? null : {
|
|
3426
3552
|
key: e,
|
|
3427
3553
|
at: t
|
|
3428
3554
|
};
|
|
3429
3555
|
}
|
|
3430
3556
|
let ie = (e, t) => String(e[t] ?? "");
|
|
3431
|
-
return (t, n) => (R(), E("div",
|
|
3432
|
-
o.value === null ? T("", !0) :
|
|
3557
|
+
return (t, n) => (R(), E("div", vc, [
|
|
3558
|
+
o.value === null ? T("", !0) : ze((R(), E("input", {
|
|
3433
3559
|
key: 0,
|
|
3434
3560
|
ref_key: "searchField",
|
|
3435
3561
|
ref: u,
|
|
@@ -3437,8 +3563,8 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3437
3563
|
class: "glim-input glim-list-search",
|
|
3438
3564
|
type: "search",
|
|
3439
3565
|
"aria-label": e.text.search,
|
|
3440
|
-
onKeydown:
|
|
3441
|
-
}, null, 40,
|
|
3566
|
+
onKeydown: Be(X(te, ["prevent", "stop"]), ["esc"])
|
|
3567
|
+
}, null, 40, yc)), [[Ie, o.value]]),
|
|
3442
3568
|
D("table", {
|
|
3443
3569
|
ref_key: "grid",
|
|
3444
3570
|
ref: l,
|
|
@@ -3450,17 +3576,17 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3450
3576
|
}, [D("thead", null, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (t) => (R(), E("th", {
|
|
3451
3577
|
key: t.key,
|
|
3452
3578
|
scope: "col",
|
|
3453
|
-
"aria-sort": G(
|
|
3579
|
+
"aria-sort": G(tt)(i.value, t.key),
|
|
3454
3580
|
class: P(t.end ? "glim-list-th glim-table-end" : "glim-list-th")
|
|
3455
|
-
}, [D("span",
|
|
3581
|
+
}, [D("span", Sc, [D("button", {
|
|
3456
3582
|
type: "button",
|
|
3457
3583
|
class: "glim-list-sort",
|
|
3458
|
-
onClick: (e) => i.value = G(
|
|
3459
|
-
}, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(
|
|
3584
|
+
onClick: (e) => i.value = G(Yt)(i.value, t.key)
|
|
3585
|
+
}, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(p), {
|
|
3460
3586
|
key: 0,
|
|
3461
|
-
mark: G(
|
|
3587
|
+
mark: G(qe).expand,
|
|
3462
3588
|
class: P(`glim-list-sort-mark glim-list-sort-mark--${i.value.dir}`)
|
|
3463
|
-
}, null, 8, ["mark", "class"])) : T("", !0)], 8,
|
|
3589
|
+
}, null, 8, ["mark", "class"])) : T("", !0)], 8, Cc), t.filter ? (R(), E("button", {
|
|
3464
3590
|
key: 0,
|
|
3465
3591
|
type: "button",
|
|
3466
3592
|
"aria-label": e.text.filterOf(t.label),
|
|
@@ -3468,9 +3594,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3468
3594
|
"aria-expanded": c.value?.key === t.key,
|
|
3469
3595
|
"aria-pressed": ne(t.key).length > 0,
|
|
3470
3596
|
class: "glim-list-filter",
|
|
3471
|
-
onClick: (e) =>
|
|
3472
|
-
}, [A(G(
|
|
3473
|
-
key:
|
|
3597
|
+
onClick: (e) => b(t.key, e.currentTarget)
|
|
3598
|
+
}, [A(G(p), { mark: G(qe).expand }, null, 8, ["mark"])], 8, wc)) : T("", !0)])], 10, xc))), 128))])]), D("tbody", { onKeydown: v }, [(R(!0), E(S, null, B(f.value, (n, i) => (R(), E("tr", {
|
|
3599
|
+
key: m.value[i],
|
|
3474
3600
|
"aria-selected": h.value.selected.includes(i),
|
|
3475
3601
|
class: "glim-list-tr",
|
|
3476
3602
|
onClick: (e) => ee(e, i),
|
|
@@ -3478,28 +3604,28 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3478
3604
|
}, [(R(!0), E(S, null, B(e.columns, (e, r) => (R(), E("td", {
|
|
3479
3605
|
key: e.key,
|
|
3480
3606
|
tabindex: r === 0 ? i === h.value.focus ? 0 : -1 : void 0,
|
|
3481
|
-
class: P(G(
|
|
3607
|
+
class: P(G($n)(e) || void 0)
|
|
3482
3608
|
}, [V(t.$slots, "cell", {
|
|
3483
3609
|
row: n,
|
|
3484
3610
|
column: e
|
|
3485
|
-
}, () => [k(W(ie(n, e.key)), 1)])], 10,
|
|
3486
|
-
f.value.length === 0 ? (R(), E("p",
|
|
3611
|
+
}, () => [k(W(ie(n, e.key)), 1)])], 10, Ec))), 128))], 40, Tc))), 128))], 32)], 8, bc),
|
|
3612
|
+
f.value.length === 0 ? (R(), E("p", Dc, W(e.text.noMatch), 1)) : T("", !0),
|
|
3487
3613
|
D("p", {
|
|
3488
3614
|
id: G(d),
|
|
3489
3615
|
class: "glim-list-hint"
|
|
3490
|
-
}, W(e.text.hint), 9,
|
|
3491
|
-
y.value ? (R(), w(
|
|
3616
|
+
}, W(e.text.hint), 9, Oc),
|
|
3617
|
+
y.value ? (R(), w(_c, {
|
|
3492
3618
|
key: 2,
|
|
3493
3619
|
open: !0,
|
|
3494
3620
|
anchor: c.value.at,
|
|
3495
3621
|
label: e.text.filterOf(y.value.label),
|
|
3496
3622
|
onClose: n[1] ||= (e) => c.value = null
|
|
3497
3623
|
}, {
|
|
3498
|
-
default: Y(() => [D("div",
|
|
3624
|
+
default: Y(() => [D("div", kc, [(R(!0), E(S, null, B(G(ot)(e.rows, y.value.key), (e) => (R(), w(Zr, {
|
|
3499
3625
|
key: e,
|
|
3500
3626
|
label: e,
|
|
3501
3627
|
"model-value": ne(y.value.key).includes(e),
|
|
3502
|
-
"onUpdate:modelValue": (t) =>
|
|
3628
|
+
"onUpdate:modelValue": (t) => re(y.value.key, e)
|
|
3503
3629
|
}, null, 8, [
|
|
3504
3630
|
"label",
|
|
3505
3631
|
"model-value",
|
|
@@ -3509,14 +3635,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3509
3635
|
}, 8, ["anchor", "label"])) : T("", !0)
|
|
3510
3636
|
]));
|
|
3511
3637
|
}
|
|
3512
|
-
}),
|
|
3638
|
+
}), jc = ["aria-label"], Mc = [
|
|
3513
3639
|
"aria-expanded",
|
|
3514
3640
|
"tabindex",
|
|
3515
3641
|
"onClick",
|
|
3516
3642
|
"onMouseenter",
|
|
3517
3643
|
"onKeydown",
|
|
3518
3644
|
"onFocus"
|
|
3519
|
-
],
|
|
3645
|
+
], Nc = /* @__PURE__ */ j({
|
|
3520
3646
|
__name: "MenuBar",
|
|
3521
3647
|
props: {
|
|
3522
3648
|
label: {},
|
|
@@ -3570,7 +3696,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3570
3696
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
3571
3697
|
onKeydown: (e) => l(e, t),
|
|
3572
3698
|
onFocus: (e) => a.value = t
|
|
3573
|
-
}, W(e.label), 41,
|
|
3699
|
+
}, W(e.label), 41, Mc))), 128)), i.value && e.menus[i.value.at] ? (R(), w(qi, {
|
|
3574
3700
|
key: i.value.at,
|
|
3575
3701
|
x: i.value.x,
|
|
3576
3702
|
y: i.value.y,
|
|
@@ -3589,9 +3715,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3589
3715
|
"id",
|
|
3590
3716
|
"opener",
|
|
3591
3717
|
"from-end"
|
|
3592
|
-
])) : T("", !0)], 8,
|
|
3718
|
+
])) : T("", !0)], 8, jc));
|
|
3593
3719
|
}
|
|
3594
|
-
}),
|
|
3720
|
+
}), Pc = [
|
|
3595
3721
|
"role",
|
|
3596
3722
|
"aria-label",
|
|
3597
3723
|
"aria-valuemin",
|
|
@@ -3599,7 +3725,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3599
3725
|
"aria-valuenow",
|
|
3600
3726
|
"aria-valuetext",
|
|
3601
3727
|
"aria-busy"
|
|
3602
|
-
],
|
|
3728
|
+
], Fc = /* @__PURE__ */ j({
|
|
3603
3729
|
inheritAttrs: !1,
|
|
3604
3730
|
__name: "Meter",
|
|
3605
3731
|
props: {
|
|
@@ -3614,7 +3740,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3614
3740
|
valueText: {}
|
|
3615
3741
|
},
|
|
3616
3742
|
setup(e) {
|
|
3617
|
-
let r = e, i = C(() =>
|
|
3743
|
+
let r = e, i = C(() => qt(r.value, {
|
|
3618
3744
|
size: r.size,
|
|
3619
3745
|
threshold: r.threshold,
|
|
3620
3746
|
quiet: r.quiet
|
|
@@ -3634,16 +3760,16 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3634
3760
|
}), [D("span", {
|
|
3635
3761
|
class: "glim-meter-fill",
|
|
3636
3762
|
style: F(i.value.width ? { width: i.value.width } : void 0)
|
|
3637
|
-
}, null, 4)], 16,
|
|
3763
|
+
}, null, 4)], 16, Pc), A(t, { state: G(o) }, null, 8, ["state"])], 64));
|
|
3638
3764
|
}
|
|
3639
|
-
}),
|
|
3765
|
+
}), Ic = {
|
|
3640
3766
|
"data-glim": "NumberField",
|
|
3641
3767
|
class: "glim-num-wrap"
|
|
3642
|
-
},
|
|
3768
|
+
}, Lc = [
|
|
3643
3769
|
"aria-label",
|
|
3644
3770
|
"aria-invalid",
|
|
3645
3771
|
"aria-describedby"
|
|
3646
|
-
],
|
|
3772
|
+
], Rc = /* @__PURE__ */ j({
|
|
3647
3773
|
inheritAttrs: !1,
|
|
3648
3774
|
__name: "NumberField",
|
|
3649
3775
|
props: /*@__PURE__*/ M({ error: {} }, {
|
|
@@ -3652,9 +3778,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3652
3778
|
}),
|
|
3653
3779
|
emits: ["update:modelValue"],
|
|
3654
3780
|
setup(e) {
|
|
3655
|
-
let t = e, n = q(e, "modelValue"), r =
|
|
3781
|
+
let t = e, n = q(e, "modelValue"), r = Ne(), i = x(() => r["aria-label"]), a = K(), o = C(() => _t(t.error, r.id ?? a, r["aria-describedby"])), s = U(null), c;
|
|
3656
3782
|
L(() => {
|
|
3657
|
-
l(n.value), c =
|
|
3783
|
+
l(n.value), c = nt(s.value);
|
|
3658
3784
|
}), I(() => c?.());
|
|
3659
3785
|
function l(e) {
|
|
3660
3786
|
let t = s.value;
|
|
@@ -3668,13 +3794,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3668
3794
|
() => r.disabled,
|
|
3669
3795
|
() => r.readonly
|
|
3670
3796
|
], () => {
|
|
3671
|
-
l(n.value), s.value &&
|
|
3797
|
+
l(n.value), s.value && Qn(s.value);
|
|
3672
3798
|
}, { flush: "post" });
|
|
3673
3799
|
function u(e) {
|
|
3674
3800
|
let t = e.target;
|
|
3675
3801
|
n.value = t.value === "" ? null : t.valueAsNumber;
|
|
3676
3802
|
}
|
|
3677
|
-
return (t, n) => (R(), E(S, null, [D("span",
|
|
3803
|
+
return (t, n) => (R(), E(S, null, [D("span", Ic, [D("input", N(t.$attrs, {
|
|
3678
3804
|
ref_key: "input",
|
|
3679
3805
|
ref: s,
|
|
3680
3806
|
"aria-label": G(i),
|
|
@@ -3683,7 +3809,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3683
3809
|
type: "number",
|
|
3684
3810
|
class: "glim-num-input glim-num-field glim-num",
|
|
3685
3811
|
onInput: u
|
|
3686
|
-
}), null, 16,
|
|
3812
|
+
}), null, 16, Lc)]), o.value.errorId ? (R(), w(Sa, {
|
|
3687
3813
|
key: 0,
|
|
3688
3814
|
id: o.value.errorId
|
|
3689
3815
|
}, {
|
|
@@ -3691,7 +3817,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3691
3817
|
_: 1
|
|
3692
3818
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
3693
3819
|
}
|
|
3694
|
-
}),
|
|
3820
|
+
}), zc = ["aria-label", "disabled"], Bc = /* @__PURE__ */ j({
|
|
3695
3821
|
inheritAttrs: !1,
|
|
3696
3822
|
__name: "PathField",
|
|
3697
3823
|
props: /*@__PURE__*/ M({
|
|
@@ -3714,7 +3840,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3714
3840
|
setup(e, { expose: t, emit: n }) {
|
|
3715
3841
|
let r = e, i = q(e, "modelValue"), a = n, o = x(() => r.label), s = U(null);
|
|
3716
3842
|
t({ input: s });
|
|
3717
|
-
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width <
|
|
3843
|
+
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width < Ye);
|
|
3718
3844
|
L(() => u.observe(c.value)), I(() => u.disconnect());
|
|
3719
3845
|
async function d() {
|
|
3720
3846
|
let e = await r.pick(i.value);
|
|
@@ -3726,11 +3852,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3726
3852
|
"data-glim": "PathField",
|
|
3727
3853
|
class: P([
|
|
3728
3854
|
"glim-path",
|
|
3729
|
-
G(
|
|
3855
|
+
G(vt)(e.width),
|
|
3730
3856
|
t.$attrs.class
|
|
3731
3857
|
]),
|
|
3732
3858
|
style: F(t.$attrs.style)
|
|
3733
|
-
}, [
|
|
3859
|
+
}, [ze(D("input", N({
|
|
3734
3860
|
ref_key: "input",
|
|
3735
3861
|
ref: s,
|
|
3736
3862
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
@@ -3745,11 +3871,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3745
3871
|
}, {
|
|
3746
3872
|
disabled: e.disabled,
|
|
3747
3873
|
class: "glim-input glim-input--mono"
|
|
3748
|
-
}), null, 16,
|
|
3874
|
+
}), null, 16, zc), [[Ie, i.value]]), A(f, N(e.buttonAttrs, {
|
|
3749
3875
|
variant: "icon",
|
|
3750
3876
|
label: e.text.pick,
|
|
3751
3877
|
"label-key": null,
|
|
3752
|
-
glyph: e.glyph ?? G(
|
|
3878
|
+
glyph: e.glyph ?? G(fe),
|
|
3753
3879
|
compact: e.compact || l.value,
|
|
3754
3880
|
disabled: e.disabled,
|
|
3755
3881
|
onClick: d
|
|
@@ -3760,27 +3886,27 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3760
3886
|
"disabled"
|
|
3761
3887
|
])], 6));
|
|
3762
3888
|
}
|
|
3763
|
-
}),
|
|
3889
|
+
}), Vc = ["data-glim-title"], Hc = { class: "glim-modal-head" }, Uc = {
|
|
3764
3890
|
id: "paypal-window-title",
|
|
3765
3891
|
class: "glim-modal-title"
|
|
3766
|
-
},
|
|
3892
|
+
}, Wc = { class: "glim-give-body glim-give-body--scroll" }, Gc = { class: "glim-give-appeal" }, Kc = { class: "glim-give-intro" }, qc = { class: "glim-give-group" }, Jc = {
|
|
3767
3893
|
id: "paypal-frequency",
|
|
3768
3894
|
class: "glim-eyebrow"
|
|
3769
|
-
},
|
|
3895
|
+
}, Yc = { class: "glim-give-group" }, Xc = {
|
|
3770
3896
|
id: "paypal-amount",
|
|
3771
3897
|
class: "glim-eyebrow"
|
|
3772
|
-
},
|
|
3898
|
+
}, Zc = { class: "glim-give-amounts" }, Qc = [
|
|
3773
3899
|
"value",
|
|
3774
3900
|
"placeholder",
|
|
3775
3901
|
"aria-label",
|
|
3776
3902
|
"aria-invalid"
|
|
3777
|
-
],
|
|
3903
|
+
], $c = { class: "glim-give-loading" }, el = {
|
|
3778
3904
|
key: 0,
|
|
3779
3905
|
class: "glim-give-status glim-give-status--ok"
|
|
3780
|
-
},
|
|
3906
|
+
}, tl = {
|
|
3781
3907
|
key: 1,
|
|
3782
3908
|
class: "glim-give-status glim-give-status--fail"
|
|
3783
|
-
},
|
|
3909
|
+
}, nl = { class: "glim-give-foot" }, rl = /* @__PURE__ */ j({
|
|
3784
3910
|
__name: "PaypalDialog",
|
|
3785
3911
|
props: {
|
|
3786
3912
|
text: {},
|
|
@@ -3821,7 +3947,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3821
3947
|
"aria-labelledby": "paypal-window-title",
|
|
3822
3948
|
class: "glim-modal-card glim-modal-card--wide"
|
|
3823
3949
|
}, [
|
|
3824
|
-
D("div",
|
|
3950
|
+
D("div", Hc, [D("h2", Uc, [A(e, {
|
|
3825
3951
|
tone: "heading",
|
|
3826
3952
|
size: "heading",
|
|
3827
3953
|
wrap: ""
|
|
@@ -3829,10 +3955,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3829
3955
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
3830
3956
|
_: 1
|
|
3831
3957
|
})])]),
|
|
3832
|
-
D("div",
|
|
3833
|
-
D("p",
|
|
3834
|
-
D("p",
|
|
3835
|
-
D("div",
|
|
3958
|
+
D("div", Wc, [
|
|
3959
|
+
D("p", Gc, W(t.text.appeal), 1),
|
|
3960
|
+
D("p", Kc, W(t.text.intro), 1),
|
|
3961
|
+
D("div", qc, [D("span", Jc, W(t.text.frequencyLabel), 1), V(n.$slots, "selector", {
|
|
3836
3962
|
labelledBy: "paypal-frequency",
|
|
3837
3963
|
options: a.map((e) => ({
|
|
3838
3964
|
value: e,
|
|
@@ -3841,7 +3967,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3841
3967
|
value: t.frequency,
|
|
3842
3968
|
onChange: s
|
|
3843
3969
|
})]),
|
|
3844
|
-
D("div",
|
|
3970
|
+
D("div", Yc, [D("span", Xc, W(t.text.amountLabel), 1), D("div", Zc, [D("div", null, [V(n.$slots, "selector", {
|
|
3845
3971
|
labelledBy: "paypal-amount",
|
|
3846
3972
|
options: t.amounts.map((e) => ({
|
|
3847
3973
|
value: e,
|
|
@@ -3858,29 +3984,29 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3858
3984
|
"aria-invalid": t.typed !== "" && !t.typedValid,
|
|
3859
3985
|
class: P(t.typedValid ? "glim-give-amount glim-give-amount--valid" : "glim-give-amount"),
|
|
3860
3986
|
onInput: l
|
|
3861
|
-
}, null, 42,
|
|
3987
|
+
}, null, 42, Qc)])]),
|
|
3862
3988
|
D("div", {
|
|
3863
3989
|
ref: t.buttonsRef,
|
|
3864
3990
|
class: "glim-give-wallet"
|
|
3865
|
-
}, [D("p",
|
|
3866
|
-
t.status === "done" ? (R(), E("p",
|
|
3867
|
-
t.status === "failed" ? (R(), E("p",
|
|
3991
|
+
}, [D("p", $c, W(t.text.loading), 1)], 512),
|
|
3992
|
+
t.status === "done" ? (R(), E("p", el, W(t.text.thanks), 1)) : T("", !0),
|
|
3993
|
+
t.status === "failed" ? (R(), E("p", tl, W(t.text.failed), 1)) : T("", !0)
|
|
3868
3994
|
]),
|
|
3869
|
-
D("div",
|
|
3995
|
+
D("div", nl, [A(f, {
|
|
3870
3996
|
label: t.text.closeLabel,
|
|
3871
3997
|
"label-key": "common.close",
|
|
3872
3998
|
tone: "neutral",
|
|
3873
3999
|
onClick: r[0] ||= (e) => i("close")
|
|
3874
4000
|
}, null, 8, ["label"])])
|
|
3875
|
-
], 8,
|
|
4001
|
+
], 8, Vc)]));
|
|
3876
4002
|
}
|
|
3877
|
-
}),
|
|
4003
|
+
}), il = {
|
|
3878
4004
|
key: 0,
|
|
3879
4005
|
class: "glim-pick-none"
|
|
3880
|
-
},
|
|
4006
|
+
}, al = {
|
|
3881
4007
|
key: 0,
|
|
3882
4008
|
class: "glim-pick-eyebrow"
|
|
3883
|
-
},
|
|
4009
|
+
}, ol = { class: "glim-eyebrow" }, sl = { class: "glim-provider-pick" }, cl = /* @__PURE__ */ j({
|
|
3884
4010
|
__name: "PickerWindow",
|
|
3885
4011
|
props: {
|
|
3886
4012
|
title: {},
|
|
@@ -3898,32 +4024,32 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3898
4024
|
"close"
|
|
3899
4025
|
],
|
|
3900
4026
|
setup(t, { emit: n }) {
|
|
3901
|
-
let r = t, i = n, a =
|
|
4027
|
+
let r = t, i = n, a = Pe(), o = z(""), s = U(null), c = U(null), l = () => c.value?.input ?? null, u = hn(), d = U(null), f = () => !!a.default, p = !1;
|
|
3902
4028
|
L(() => {
|
|
3903
|
-
p = f(), d.value &&
|
|
3904
|
-
}),
|
|
3905
|
-
f() !== p && (p = f(), d.value &&
|
|
4029
|
+
p = f(), d.value && Ot(d.value), r.selected && s.value?.card && ln(s.value.card, d.value)?.focus();
|
|
4030
|
+
}), ke(() => {
|
|
4031
|
+
f() !== p && (p = f(), d.value && Ot(d.value), s.value?.card && ln(s.value.card, d.value)?.focus());
|
|
3906
4032
|
});
|
|
3907
4033
|
let m = C(() => ({
|
|
3908
4034
|
label: r.text.back,
|
|
3909
4035
|
labelKey: "common.back",
|
|
3910
|
-
glyph:
|
|
4036
|
+
glyph: de,
|
|
3911
4037
|
onClick: () => (i("back"), !1)
|
|
3912
4038
|
})), h = () => f() ? [m.value, ...r.actions] : [{
|
|
3913
4039
|
label: r.text.close,
|
|
3914
4040
|
labelKey: "common.close",
|
|
3915
|
-
glyph:
|
|
4041
|
+
glyph: _,
|
|
3916
4042
|
wayOut: !0
|
|
3917
|
-
}],
|
|
4043
|
+
}], g = C(() => fn(r.items, r.groups, o.value, an())), v = (e, t) => {
|
|
3918
4044
|
t && (e.preventDefault(), e.stopPropagation());
|
|
3919
4045
|
};
|
|
3920
4046
|
function ee() {
|
|
3921
4047
|
o.value = "", l()?.focus();
|
|
3922
4048
|
}
|
|
3923
|
-
let te = (e) => v(e,
|
|
3924
|
-
e.target !== e.currentTarget && v(e,
|
|
4049
|
+
let te = (e) => v(e, dn(e.key, o.value, d.value, () => o.value = "")), y = (e) => {
|
|
4050
|
+
e.target !== e.currentTarget && v(e, pn(e.key, e.target, e.currentTarget, l()));
|
|
3925
4051
|
};
|
|
3926
|
-
return (n, r) => (R(), w(
|
|
4052
|
+
return (n, r) => (R(), w(Fa, {
|
|
3927
4053
|
ref_key: "win",
|
|
3928
4054
|
ref: s,
|
|
3929
4055
|
"data-glim": "PickerWindow",
|
|
@@ -3942,13 +4068,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3942
4068
|
actions: h(),
|
|
3943
4069
|
onClose: r[1] ||= (e) => i("close")
|
|
3944
4070
|
}, O({
|
|
3945
|
-
default: Y(() => [f() ? V(n.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A(
|
|
4071
|
+
default: Y(() => [f() ? V(n.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A(lc, {
|
|
3946
4072
|
ref_key: "field",
|
|
3947
4073
|
ref: c,
|
|
3948
4074
|
modelValue: o.value,
|
|
3949
4075
|
"onUpdate:modelValue": r[0] ||= (e) => o.value = e,
|
|
3950
4076
|
class: "glim-pick-search",
|
|
3951
|
-
glyph: G(
|
|
4077
|
+
glyph: G(ne),
|
|
3952
4078
|
type: "search",
|
|
3953
4079
|
label: t.text.search,
|
|
3954
4080
|
placeholder: t.text.search,
|
|
@@ -3957,9 +4083,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3957
4083
|
onKeydown: te
|
|
3958
4084
|
}, O({ _: 2 }, [o.value ? {
|
|
3959
4085
|
name: "after",
|
|
3960
|
-
fn: Y(() => [A(
|
|
4086
|
+
fn: Y(() => [A(Se, {
|
|
3961
4087
|
tip: t.text.clear,
|
|
3962
|
-
glyph: G(
|
|
4088
|
+
glyph: G(_),
|
|
3963
4089
|
onClick: ee
|
|
3964
4090
|
}, null, 8, ["tip", "glyph"])]),
|
|
3965
4091
|
key: "0"
|
|
@@ -3972,12 +4098,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3972
4098
|
ref_key: "scroll",
|
|
3973
4099
|
ref: d,
|
|
3974
4100
|
class: "glim-pick-scroll",
|
|
3975
|
-
onKeydown:
|
|
3976
|
-
}, [
|
|
4101
|
+
onKeydown: y
|
|
4102
|
+
}, [g.value.length === 0 ? (R(), E("p", il, W(G(Z)(t.text.none, { query: o.value.trim() })), 1)) : (R(!0), E(S, { key: 1 }, B(g.value, (n) => (R(), E("section", {
|
|
3977
4103
|
key: n.id,
|
|
3978
4104
|
class: "glim-pick-section"
|
|
3979
|
-
}, [n.title ? (R(), E("div",
|
|
3980
|
-
D("h3",
|
|
4105
|
+
}, [n.title ? (R(), E("div", al, [
|
|
4106
|
+
D("h3", ol, W(n.title), 1),
|
|
3981
4107
|
n.badge ? (R(), w(e, {
|
|
3982
4108
|
key: 0,
|
|
3983
4109
|
size: "small",
|
|
@@ -3990,9 +4116,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3990
4116
|
key: 1,
|
|
3991
4117
|
tip: n.hint
|
|
3992
4118
|
}, null, 8, ["tip"])) : T("", !0)
|
|
3993
|
-
])) : T("", !0), D("ul",
|
|
4119
|
+
])) : T("", !0), D("ul", sl, [(R(!0), E(S, null, B(n.items, (e) => (R(), E("li", {
|
|
3994
4120
|
key: e.id,
|
|
3995
|
-
style: F(G(
|
|
4121
|
+
style: F(G(mn)(e.mark))
|
|
3996
4122
|
}, [A($, {
|
|
3997
4123
|
brand: "house",
|
|
3998
4124
|
parts: [{
|
|
@@ -4002,12 +4128,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4002
4128
|
}],
|
|
4003
4129
|
"soon-label": e.status,
|
|
4004
4130
|
current: e.id === t.selected,
|
|
4005
|
-
"mark-class": G(
|
|
4131
|
+
"mark-class": G(un)(e.mark),
|
|
4006
4132
|
hint: e.hint,
|
|
4007
4133
|
tip: e.tip
|
|
4008
4134
|
}, O({ _: 2 }, [e.mark ? {
|
|
4009
4135
|
name: "mark",
|
|
4010
|
-
fn: Y(() => [G(
|
|
4136
|
+
fn: Y(() => [G(jt)(e.mark) ? (R(), w(qr, {
|
|
4011
4137
|
key: 0,
|
|
4012
4138
|
svg: e.mark.svg,
|
|
4013
4139
|
hover: e.mark.hover
|
|
@@ -4043,7 +4169,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4043
4169
|
"actions"
|
|
4044
4170
|
]));
|
|
4045
4171
|
}
|
|
4046
|
-
}),
|
|
4172
|
+
}), ll = /* @__PURE__ */ j({
|
|
4047
4173
|
__name: "RowMark",
|
|
4048
4174
|
props: { on: { type: Boolean } },
|
|
4049
4175
|
setup(e) {
|
|
@@ -4053,7 +4179,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4053
4179
|
"aria-hidden": "true"
|
|
4054
4180
|
}, [A(G(b))], 2));
|
|
4055
4181
|
}
|
|
4056
|
-
}),
|
|
4182
|
+
}), ul = { class: "glim-sr-only" }, dl = /* @__PURE__ */ j({
|
|
4057
4183
|
inheritAttrs: !1,
|
|
4058
4184
|
__name: "SidebarRowLink",
|
|
4059
4185
|
props: {
|
|
@@ -4088,7 +4214,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4088
4214
|
e.view.countClass && e.count ? (R(), E(S, { key: 1 }, [D("span", {
|
|
4089
4215
|
class: P(e.view.countClass),
|
|
4090
4216
|
"aria-hidden": "true"
|
|
4091
|
-
}, W(e.count.value), 3), D("span",
|
|
4217
|
+
}, W(e.count.value), 3), D("span", ul, W(e.count.label), 1)], 64)) : T("", !0)
|
|
4092
4218
|
]),
|
|
4093
4219
|
_: 1
|
|
4094
4220
|
}, 16, [
|
|
@@ -4103,13 +4229,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4103
4229
|
"onBlur"
|
|
4104
4230
|
])), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
4105
4231
|
}
|
|
4106
|
-
}),
|
|
4232
|
+
}), fl = {
|
|
4107
4233
|
key: 0,
|
|
4108
4234
|
class: "glim-nav-row-slot"
|
|
4109
|
-
},
|
|
4235
|
+
}, pl = {
|
|
4110
4236
|
key: 1,
|
|
4111
4237
|
class: "glim-nav-row-slot"
|
|
4112
|
-
},
|
|
4238
|
+
}, ml = /* @__PURE__ */ j({
|
|
4113
4239
|
inheritAttrs: !1,
|
|
4114
4240
|
__name: "SidebarRow",
|
|
4115
4241
|
props: {
|
|
@@ -4125,7 +4251,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4125
4251
|
depth: {}
|
|
4126
4252
|
},
|
|
4127
4253
|
setup(e) {
|
|
4128
|
-
let t = e, n = l("sidebar"), r =
|
|
4254
|
+
let t = e, n = l("sidebar"), r = Pe(), i = C(() => Hn({
|
|
4129
4255
|
mode: n.value,
|
|
4130
4256
|
label: t.label,
|
|
4131
4257
|
hasGlyph: !!t.glyph,
|
|
@@ -4152,15 +4278,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4152
4278
|
]),
|
|
4153
4279
|
style: F([i.value.style, e.$attrs.style])
|
|
4154
4280
|
}, [
|
|
4155
|
-
e.$slots.before ? (R(), E("span",
|
|
4156
|
-
A(
|
|
4281
|
+
e.$slots.before ? (R(), E("span", fl, [V(e.$slots, "before")])) : T("", !0),
|
|
4282
|
+
A(dl, N({
|
|
4157
4283
|
...e.$attrs,
|
|
4158
4284
|
...a.value,
|
|
4159
4285
|
class: void 0,
|
|
4160
4286
|
style: void 0
|
|
4161
4287
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
4162
|
-
e.$slots.after ? (R(), E("span",
|
|
4163
|
-
], 6)) : (R(), w(
|
|
4288
|
+
e.$slots.after ? (R(), E("span", pl, [V(e.$slots, "after")])) : T("", !0)
|
|
4289
|
+
], 6)) : (R(), w(dl, N({
|
|
4164
4290
|
key: 1,
|
|
4165
4291
|
"data-glim": "SidebarRow"
|
|
4166
4292
|
}, {
|
|
@@ -4177,7 +4303,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4177
4303
|
"style"
|
|
4178
4304
|
]));
|
|
4179
4305
|
}
|
|
4180
|
-
}),
|
|
4306
|
+
}), hl = ["data-glim-title", "aria-labelledby"], gl = { class: "glim-sheet-panel" }, _l = ["id"], vl = { class: "glim-sheet-body" }, yl = /* @__PURE__ */ j({
|
|
4181
4307
|
__name: "Sheet",
|
|
4182
4308
|
props: {
|
|
4183
4309
|
open: { type: Boolean },
|
|
@@ -4188,9 +4314,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4188
4314
|
},
|
|
4189
4315
|
emits: ["close"],
|
|
4190
4316
|
setup(t, { emit: n }) {
|
|
4191
|
-
let r = t, i = n, a =
|
|
4317
|
+
let r = t, i = n, a = Pe(), o = z(null), s = K(), c = C(() => Dt(r.start) || !!a.start), l;
|
|
4192
4318
|
return J([() => r.open, o], ([e, t]) => {
|
|
4193
|
-
l?.(), l = void 0, e && t && (l =
|
|
4319
|
+
l?.(), l = void 0, e && t && (l = nn(t, () => i("close")));
|
|
4194
4320
|
}, { flush: "post" }), I(() => l?.()), (n, r) => t.open ? (R(), E("dialog", {
|
|
4195
4321
|
key: 0,
|
|
4196
4322
|
"data-glim": "Sheet",
|
|
@@ -4199,7 +4325,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4199
4325
|
ref: o,
|
|
4200
4326
|
"aria-labelledby": G(s),
|
|
4201
4327
|
class: "glim-sheet"
|
|
4202
|
-
}, [D("div",
|
|
4328
|
+
}, [D("div", gl, [
|
|
4203
4329
|
D("h2", {
|
|
4204
4330
|
id: G(s),
|
|
4205
4331
|
class: "glim-sheet-title"
|
|
@@ -4211,9 +4337,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4211
4337
|
}, {
|
|
4212
4338
|
default: Y(() => [k(W(t.title), 1)]),
|
|
4213
4339
|
_: 1
|
|
4214
|
-
})], 8,
|
|
4215
|
-
D("div",
|
|
4216
|
-
A(
|
|
4340
|
+
})], 8, _l),
|
|
4341
|
+
D("div", vl, [V(n.$slots, "default")]),
|
|
4342
|
+
A(ja, {
|
|
4217
4343
|
actions: t.actions,
|
|
4218
4344
|
start: t.start,
|
|
4219
4345
|
"has-start": c.value,
|
|
@@ -4229,12 +4355,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4229
4355
|
"has-start",
|
|
4230
4356
|
"text"
|
|
4231
4357
|
])
|
|
4232
|
-
])], 8,
|
|
4358
|
+
])], 8, hl)) : T("", !0);
|
|
4233
4359
|
}
|
|
4234
|
-
}),
|
|
4360
|
+
}), bl = {
|
|
4235
4361
|
"data-glim": "SignInField",
|
|
4236
4362
|
class: "glim-signin-field"
|
|
4237
|
-
},
|
|
4363
|
+
}, xl = ["for"], Sl = /* @__PURE__ */ j({
|
|
4238
4364
|
__name: "SignInField",
|
|
4239
4365
|
props: {
|
|
4240
4366
|
label: {},
|
|
@@ -4243,21 +4369,21 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4243
4369
|
},
|
|
4244
4370
|
setup(e) {
|
|
4245
4371
|
let t = e, n = z(!1), r = (e) => {
|
|
4246
|
-
n.value =
|
|
4372
|
+
n.value = Ft(document.getElementById(t.for), t.label, t.hint, e);
|
|
4247
4373
|
};
|
|
4248
|
-
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div",
|
|
4374
|
+
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div", bl, [D("label", {
|
|
4249
4375
|
for: t.$props.for,
|
|
4250
4376
|
class: P(n.value ? "glim-sr-only" : "glim-signin-label")
|
|
4251
4377
|
}, [k(W(e.label), 1), e.hint ? (R(), w(Q, {
|
|
4252
4378
|
key: 0,
|
|
4253
4379
|
tip: e.hint
|
|
4254
|
-
}, null, 8, ["tip"])) : T("", !0)], 10,
|
|
4380
|
+
}, null, 8, ["tip"])) : T("", !0)], 10, xl), V(t.$slots, "default")]));
|
|
4255
4381
|
}
|
|
4256
|
-
}),
|
|
4382
|
+
}), Cl = [
|
|
4257
4383
|
"aria-label",
|
|
4258
4384
|
"aria-invalid",
|
|
4259
4385
|
"aria-describedby"
|
|
4260
|
-
],
|
|
4386
|
+
], wl = /* @__PURE__ */ j({
|
|
4261
4387
|
inheritAttrs: !1,
|
|
4262
4388
|
__name: "TextField",
|
|
4263
4389
|
props: /*@__PURE__*/ M({
|
|
@@ -4271,11 +4397,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4271
4397
|
}),
|
|
4272
4398
|
emits: ["update:modelValue"],
|
|
4273
4399
|
setup(e, { expose: t }) {
|
|
4274
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4400
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => er({
|
|
4275
4401
|
width: n.width,
|
|
4276
4402
|
mono: n.mono
|
|
4277
|
-
})), o =
|
|
4278
|
-
return t({ input: l }), (t, n) => (R(), E(S, null, [
|
|
4403
|
+
})), o = Ne(), s = K(), c = C(() => _t(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4404
|
+
return t({ input: l }), (t, n) => (R(), E(S, null, [ze(D("input", N({ "data-glim": "TextField" }, t.$attrs, {
|
|
4279
4405
|
ref_key: "input",
|
|
4280
4406
|
ref: l,
|
|
4281
4407
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -4284,7 +4410,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4284
4410
|
"aria-invalid": c.value.invalid,
|
|
4285
4411
|
"aria-describedby": c.value.describedBy,
|
|
4286
4412
|
class: a.value
|
|
4287
|
-
}), null, 16,
|
|
4413
|
+
}), null, 16, Cl), [[Ie, r.value]]), c.value.errorId ? (R(), w(Sa, {
|
|
4288
4414
|
key: 0,
|
|
4289
4415
|
id: c.value.errorId
|
|
4290
4416
|
}, {
|
|
@@ -4292,26 +4418,26 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4292
4418
|
_: 1
|
|
4293
4419
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4294
4420
|
}
|
|
4295
|
-
}),
|
|
4421
|
+
}), Tl = {
|
|
4296
4422
|
"data-glim": "SignInCard",
|
|
4297
4423
|
class: "glim-signin"
|
|
4298
|
-
},
|
|
4424
|
+
}, El = { class: "glim-signin-head" }, Dl = {
|
|
4299
4425
|
key: 0,
|
|
4300
4426
|
class: "glim-signin-logo",
|
|
4301
4427
|
"aria-hidden": "true"
|
|
4302
|
-
},
|
|
4428
|
+
}, Ol = ["src"], kl = { class: "glim-signin-name" }, Al = {
|
|
4303
4429
|
key: 0,
|
|
4304
4430
|
class: "glim-signin-error",
|
|
4305
4431
|
role: "alert"
|
|
4306
|
-
},
|
|
4432
|
+
}, jl = {
|
|
4307
4433
|
key: 0,
|
|
4308
4434
|
class: "glim-signin-note",
|
|
4309
4435
|
role: "status"
|
|
4310
|
-
},
|
|
4436
|
+
}, Ml = { class: "glim-signin-hint" }, Nl = {
|
|
4311
4437
|
key: 3,
|
|
4312
4438
|
class: "glim-signin-error",
|
|
4313
4439
|
role: "alert"
|
|
4314
|
-
},
|
|
4440
|
+
}, Pl = /* @__PURE__ */ j({
|
|
4315
4441
|
__name: "SignInCard",
|
|
4316
4442
|
props: {
|
|
4317
4443
|
logo: {},
|
|
@@ -4339,7 +4465,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4339
4465
|
onSetPassword: {}
|
|
4340
4466
|
},
|
|
4341
4467
|
setup(e) {
|
|
4342
|
-
let t = e, n =
|
|
4468
|
+
let t = e, n = Pe(), r = mt(() => t), i = U(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
4343
4469
|
I(a);
|
|
4344
4470
|
let o = K(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = C(() => ({
|
|
4345
4471
|
signIn: "signIn",
|
|
@@ -4353,32 +4479,32 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4353
4479
|
hide: t.text.hide
|
|
4354
4480
|
})), u = U(null), d = "";
|
|
4355
4481
|
function p() {
|
|
4356
|
-
let e = n.step ? "step" :
|
|
4357
|
-
e !== d && ((d || t.autoFocus) &&
|
|
4482
|
+
let e = n.step ? "step" : Wn(i.value);
|
|
4483
|
+
e !== d && ((d || t.autoFocus) && xt(u.value), d = e);
|
|
4358
4484
|
}
|
|
4359
|
-
return L(p),
|
|
4485
|
+
return L(p), ke(p), J(() => i.value.refusal?.count, (e, t, n) => {
|
|
4360
4486
|
let r = i.value.refusal;
|
|
4361
|
-
r && n(
|
|
4362
|
-
}, { flush: "post" }), (t, n) => (R(), E("div",
|
|
4487
|
+
r && n(Vn(u.value, r));
|
|
4488
|
+
}, { flush: "post" }), (t, n) => (R(), E("div", Tl, [D("div", {
|
|
4363
4489
|
ref_key: "card",
|
|
4364
4490
|
ref: u,
|
|
4365
4491
|
class: "glim-card glim-signin-card"
|
|
4366
|
-
}, [D("div",
|
|
4492
|
+
}, [D("div", El, [e.logo || t.$slots.logo ? (R(), E("span", Dl, [V(t.$slots, "logo", {}, () => [D("img", {
|
|
4367
4493
|
src: e.logo,
|
|
4368
4494
|
alt: "",
|
|
4369
4495
|
draggable: "false"
|
|
4370
|
-
}, null, 8,
|
|
4496
|
+
}, null, 8, Ol)])])) : T("", !0), D("h1", kl, W(e.appName), 1)]), t.$slots.step ? V(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (R(), E("form", {
|
|
4371
4497
|
key: 1,
|
|
4372
4498
|
class: "glim-signin-form",
|
|
4373
4499
|
novalidate: "",
|
|
4374
4500
|
onSubmit: n[4] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4375
4501
|
}, [
|
|
4376
|
-
A(
|
|
4502
|
+
A(Sl, {
|
|
4377
4503
|
label: e.text.resetCode,
|
|
4378
4504
|
for: s("reset-code"),
|
|
4379
4505
|
hint: e.text.resetCodeTip
|
|
4380
4506
|
}, {
|
|
4381
|
-
default: Y(() => [A(
|
|
4507
|
+
default: Y(() => [A(wl, {
|
|
4382
4508
|
id: s("reset-code"),
|
|
4383
4509
|
"data-signin-field": "resetCode",
|
|
4384
4510
|
class: "glim-signin-log-code",
|
|
@@ -4395,11 +4521,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4395
4521
|
"for",
|
|
4396
4522
|
"hint"
|
|
4397
4523
|
]),
|
|
4398
|
-
A(
|
|
4524
|
+
A(Sl, {
|
|
4399
4525
|
label: e.text.newPassword,
|
|
4400
4526
|
for: s("new")
|
|
4401
4527
|
}, {
|
|
4402
|
-
default: Y(() => [A(
|
|
4528
|
+
default: Y(() => [A(Bo, {
|
|
4403
4529
|
id: s("new"),
|
|
4404
4530
|
"data-signin-field": "newPassword",
|
|
4405
4531
|
"model-value": i.value.newPassword,
|
|
@@ -4413,11 +4539,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4413
4539
|
])]),
|
|
4414
4540
|
_: 1
|
|
4415
4541
|
}, 8, ["label", "for"]),
|
|
4416
|
-
A(
|
|
4542
|
+
A(Sl, {
|
|
4417
4543
|
label: e.text.confirmPassword,
|
|
4418
4544
|
for: s("confirm")
|
|
4419
4545
|
}, {
|
|
4420
|
-
default: Y(() => [A(
|
|
4546
|
+
default: Y(() => [A(Bo, {
|
|
4421
4547
|
id: s("confirm"),
|
|
4422
4548
|
"data-signin-field": "confirm",
|
|
4423
4549
|
"model-value": i.value.confirm,
|
|
@@ -4431,14 +4557,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4431
4557
|
])]),
|
|
4432
4558
|
_: 1
|
|
4433
4559
|
}, 8, ["label", "for"]),
|
|
4434
|
-
i.value.error ? (R(), E("p",
|
|
4560
|
+
i.value.error ? (R(), E("p", Al, W(i.value.error), 1)) : T("", !0),
|
|
4435
4561
|
A(f, {
|
|
4436
4562
|
label: e.text.setPassword,
|
|
4437
4563
|
"label-key": c.value.setPassword,
|
|
4438
4564
|
tone: "accent",
|
|
4439
4565
|
type: "submit",
|
|
4440
4566
|
"data-signin": "set-password",
|
|
4441
|
-
disabled: G(
|
|
4567
|
+
disabled: G(On)(i.value),
|
|
4442
4568
|
busy: i.value.busy === "setPassword",
|
|
4443
4569
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
4444
4570
|
}, null, 8, [
|
|
@@ -4466,13 +4592,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4466
4592
|
novalidate: "",
|
|
4467
4593
|
onSubmit: n[10] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4468
4594
|
}, [
|
|
4469
|
-
e.note ? (R(), E("p",
|
|
4595
|
+
e.note ? (R(), E("p", jl, W(e.note), 1)) : T("", !0),
|
|
4470
4596
|
i.value.viaPasskey ? T("", !0) : V(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
4471
|
-
|
|
4597
|
+
ze(A(Sl, {
|
|
4472
4598
|
label: e.text.password,
|
|
4473
4599
|
for: s("password")
|
|
4474
4600
|
}, {
|
|
4475
|
-
default: Y(() => [A(
|
|
4601
|
+
default: Y(() => [A(Bo, {
|
|
4476
4602
|
id: s("password"),
|
|
4477
4603
|
"data-signin-field": "password",
|
|
4478
4604
|
"model-value": i.value.password,
|
|
@@ -4485,13 +4611,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4485
4611
|
"text"
|
|
4486
4612
|
])]),
|
|
4487
4613
|
_: 1
|
|
4488
|
-
}, 8, ["label", "for"]), [[
|
|
4489
|
-
i.value.needCode ? (R(), w(
|
|
4614
|
+
}, 8, ["label", "for"]), [[Le, !i.value.viaPasskey]]),
|
|
4615
|
+
i.value.needCode ? (R(), w(Sl, {
|
|
4490
4616
|
key: 2,
|
|
4491
4617
|
label: e.text.code,
|
|
4492
4618
|
for: s("code")
|
|
4493
4619
|
}, {
|
|
4494
|
-
default: Y(() => [A(
|
|
4620
|
+
default: Y(() => [A(wl, {
|
|
4495
4621
|
id: s("code"),
|
|
4496
4622
|
"data-signin-field": "code",
|
|
4497
4623
|
class: "glim-signin-code",
|
|
@@ -4501,17 +4627,17 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4501
4627
|
spellcheck: "false",
|
|
4502
4628
|
placeholder: "000000",
|
|
4503
4629
|
"onUpdate:modelValue": n[6] ||= (e) => G(r).set("code", e)
|
|
4504
|
-
}, null, 8, ["id", "model-value"]), D("p",
|
|
4630
|
+
}, null, 8, ["id", "model-value"]), D("p", Ml, W(e.text.codeHint), 1)]),
|
|
4505
4631
|
_: 1
|
|
4506
4632
|
}, 8, ["label", "for"])) : T("", !0),
|
|
4507
|
-
i.value.error ? (R(), E("p",
|
|
4633
|
+
i.value.error ? (R(), E("p", Nl, W(i.value.error), 1)) : T("", !0),
|
|
4508
4634
|
A(f, {
|
|
4509
4635
|
label: e.text.signIn,
|
|
4510
4636
|
"label-key": c.value.signIn,
|
|
4511
4637
|
tone: "accent",
|
|
4512
4638
|
type: "submit",
|
|
4513
4639
|
"data-signin": "submit",
|
|
4514
|
-
disabled: G(
|
|
4640
|
+
disabled: G(Un)(i.value),
|
|
4515
4641
|
busy: i.value.busy === "signIn",
|
|
4516
4642
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
4517
4643
|
}, null, 8, [
|
|
@@ -4565,13 +4691,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4565
4691
|
])) : T("", !0)
|
|
4566
4692
|
], 32))], 512)]));
|
|
4567
4693
|
}
|
|
4568
|
-
}),
|
|
4694
|
+
}), Fl = {
|
|
4569
4695
|
key: 0,
|
|
4570
4696
|
class: "glim-skeleton-block glim-skeleton-tile"
|
|
4571
|
-
},
|
|
4697
|
+
}, Il = {
|
|
4572
4698
|
key: 1,
|
|
4573
4699
|
class: "glim-skeleton-block glim-skeleton-badge"
|
|
4574
|
-
},
|
|
4700
|
+
}, Ll = /* @__PURE__ */ j({
|
|
4575
4701
|
__name: "SkeletonRow",
|
|
4576
4702
|
props: {
|
|
4577
4703
|
delay: {},
|
|
@@ -4585,7 +4711,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4585
4711
|
}
|
|
4586
4712
|
},
|
|
4587
4713
|
setup(e) {
|
|
4588
|
-
let t = e, n = C(() =>
|
|
4714
|
+
let t = e, n = C(() => Gn({
|
|
4589
4715
|
delay: t.delay,
|
|
4590
4716
|
tile: t.tile,
|
|
4591
4717
|
badge: t.badge
|
|
@@ -4596,18 +4722,18 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4596
4722
|
class: P(n.value.className),
|
|
4597
4723
|
style: F(n.value.style)
|
|
4598
4724
|
}, [
|
|
4599
|
-
n.value.tile ? (R(), E("span",
|
|
4725
|
+
n.value.tile ? (R(), E("span", Fl)) : T("", !0),
|
|
4600
4726
|
t[0] ||= D("span", { class: "glim-skeleton-block glim-skeleton-name" }, null, -1),
|
|
4601
|
-
n.value.badge ? (R(), E("span",
|
|
4727
|
+
n.value.badge ? (R(), E("span", Il)) : T("", !0)
|
|
4602
4728
|
], 6));
|
|
4603
4729
|
}
|
|
4604
|
-
}),
|
|
4730
|
+
}), Rl = ["data-glim-title", "aria-labelledby"], zl = {
|
|
4605
4731
|
key: 0,
|
|
4606
4732
|
class: "glim-panel-heading"
|
|
4607
|
-
},
|
|
4733
|
+
}, Bl = ["id"], Vl = {
|
|
4608
4734
|
key: 1,
|
|
4609
4735
|
class: "glim-subcard-end"
|
|
4610
|
-
},
|
|
4736
|
+
}, Hl = /* @__PURE__ */ j({
|
|
4611
4737
|
__name: "SubCard",
|
|
4612
4738
|
props: {
|
|
4613
4739
|
title: {},
|
|
@@ -4621,23 +4747,23 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4621
4747
|
class: P(["glim-subcard", { "glim-subcard--titled": t.title }]),
|
|
4622
4748
|
"aria-labelledby": t.title ? G(n) : void 0
|
|
4623
4749
|
}, [
|
|
4624
|
-
t.title ? (R(), E("h3",
|
|
4750
|
+
t.title ? (R(), E("h3", zl, [A(e, {
|
|
4625
4751
|
tone: "heading",
|
|
4626
4752
|
size: "heading",
|
|
4627
4753
|
wrap: ""
|
|
4628
4754
|
}, {
|
|
4629
|
-
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9,
|
|
4755
|
+
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9, Bl), t.hint ? (R(), w(Q, {
|
|
4630
4756
|
key: 0,
|
|
4631
4757
|
tip: t.hint,
|
|
4632
4758
|
"on-accent": ""
|
|
4633
4759
|
}, null, 8, ["tip"])) : T("", !0)]),
|
|
4634
4760
|
_: 1
|
|
4635
4761
|
})])) : T("", !0),
|
|
4636
|
-
r.$slots.end ? (R(), E("div",
|
|
4762
|
+
r.$slots.end ? (R(), E("div", Vl, [V(r.$slots, "end")])) : T("", !0),
|
|
4637
4763
|
V(r.$slots, "default")
|
|
4638
|
-
], 10,
|
|
4764
|
+
], 10, Rl));
|
|
4639
4765
|
}
|
|
4640
|
-
}),
|
|
4766
|
+
}), Ul = ["aria-label"], Wl = { key: 0 }, Gl = { key: 0 }, Kl = ["colspan"], ql = /* @__PURE__ */ j({
|
|
4641
4767
|
__name: "Table",
|
|
4642
4768
|
props: {
|
|
4643
4769
|
label: {},
|
|
@@ -4651,27 +4777,27 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4651
4777
|
"data-glim": "Table",
|
|
4652
4778
|
class: "glim-table",
|
|
4653
4779
|
"aria-label": e.label
|
|
4654
|
-
}, [n.value ? (R(), E("thead",
|
|
4780
|
+
}, [n.value ? (R(), E("thead", Wl, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("th", {
|
|
4655
4781
|
key: e.key,
|
|
4656
4782
|
scope: "col",
|
|
4657
4783
|
class: P({ "glim-table-end": e.end })
|
|
4658
4784
|
}, W(e.label), 3))), 128))])])) : T("", !0), D("tbody", null, [(R(!0), E(S, null, B(e.rows, (n, i) => (R(), E("tr", { key: i }, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("td", {
|
|
4659
4785
|
key: e.key,
|
|
4660
|
-
class: P(G(
|
|
4786
|
+
class: P(G($n)(e))
|
|
4661
4787
|
}, [V(t.$slots, "cell", {
|
|
4662
4788
|
row: n,
|
|
4663
4789
|
column: e,
|
|
4664
4790
|
value: r(n, e)
|
|
4665
|
-
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr",
|
|
4791
|
+
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr", Gl, [D("td", {
|
|
4666
4792
|
colspan: e.columns.length,
|
|
4667
4793
|
class: "glim-table-muted"
|
|
4668
|
-
}, W(e.more), 9,
|
|
4794
|
+
}, W(e.more), 9, Kl)])) : T("", !0)])], 8, Ul));
|
|
4669
4795
|
}
|
|
4670
|
-
}),
|
|
4796
|
+
}), Jl = [
|
|
4671
4797
|
"aria-label",
|
|
4672
4798
|
"aria-invalid",
|
|
4673
4799
|
"aria-describedby"
|
|
4674
|
-
],
|
|
4800
|
+
], Yl = /* @__PURE__ */ j({
|
|
4675
4801
|
inheritAttrs: !1,
|
|
4676
4802
|
__name: "TextArea",
|
|
4677
4803
|
props: /*@__PURE__*/ M({
|
|
@@ -4685,12 +4811,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4685
4811
|
}),
|
|
4686
4812
|
emits: ["update:modelValue"],
|
|
4687
4813
|
setup(e, { expose: t }) {
|
|
4688
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4814
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => er({
|
|
4689
4815
|
width: n.width,
|
|
4690
4816
|
mono: n.mono,
|
|
4691
4817
|
area: !0
|
|
4692
|
-
})), o =
|
|
4693
|
-
return t({ input: l }), (t, n) => (R(), E(S, null, [
|
|
4818
|
+
})), o = Ne(), s = K(), c = C(() => _t(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4819
|
+
return t({ input: l }), (t, n) => (R(), E(S, null, [ze(D("textarea", N({ "data-glim": "TextArea" }, t.$attrs, {
|
|
4694
4820
|
ref_key: "input",
|
|
4695
4821
|
ref: l,
|
|
4696
4822
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -4698,7 +4824,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4698
4824
|
"aria-invalid": c.value.invalid,
|
|
4699
4825
|
"aria-describedby": c.value.describedBy,
|
|
4700
4826
|
class: a.value
|
|
4701
|
-
}), null, 16,
|
|
4827
|
+
}), null, 16, Jl), [[Ie, r.value]]), c.value.errorId ? (R(), w(Sa, {
|
|
4702
4828
|
key: 0,
|
|
4703
4829
|
id: c.value.errorId
|
|
4704
4830
|
}, {
|
|
@@ -4706,7 +4832,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4706
4832
|
_: 1
|
|
4707
4833
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4708
4834
|
}
|
|
4709
|
-
}),
|
|
4835
|
+
}), Xl = { class: "glim-toast-body" }, Zl = { class: "glim-toast-message" }, Ql = { key: 0 }, $l = ["aria-label"], eu = /* @__PURE__ */ j({
|
|
4710
4836
|
__name: "ToastCard",
|
|
4711
4837
|
props: {
|
|
4712
4838
|
id: {},
|
|
@@ -4734,13 +4860,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4734
4860
|
onMouseleave: n[3] ||= (t) => r("mouseLeave", e.id),
|
|
4735
4861
|
onFocusin: n[4] ||= (t) => r("focus", e.id),
|
|
4736
4862
|
onFocusout: n[5] ||= (t) => r("blur", e.id),
|
|
4737
|
-
onKeydown: n[6] ||=
|
|
4863
|
+
onKeydown: n[6] ||= Be(X((t) => r("dismiss", e.id), ["stop"]), ["esc"])
|
|
4738
4864
|
}, [
|
|
4739
|
-
A(G(
|
|
4740
|
-
mark: G(
|
|
4865
|
+
A(G(p), {
|
|
4866
|
+
mark: G(Xe)[e.severity],
|
|
4741
4867
|
class: P(`glim-toast-glyph glim-toast-glyph--${e.severity}`)
|
|
4742
4868
|
}, null, 8, ["mark", "class"]),
|
|
4743
|
-
D("div",
|
|
4869
|
+
D("div", Xl, [D("p", Zl, [(R(!0), E(S, null, B(G(Kn)(e.message), (e, t) => (R(), E(S, { key: t }, [t > 0 ? (R(), E("wbr", Ql)) : T("", !0), k(W(e), 1)], 64))), 128))]), e.action ? (R(), w(f, {
|
|
4744
4870
|
key: 0,
|
|
4745
4871
|
class: "glim-toast-action",
|
|
4746
4872
|
tone: "subtle",
|
|
@@ -4753,19 +4879,19 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4753
4879
|
"aria-label": e.dismissLabel,
|
|
4754
4880
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
4755
4881
|
onClick: n[1] ||= (t) => r("dismiss", e.id)
|
|
4756
|
-
}, [A(G(
|
|
4882
|
+
}, [A(G(p), { mark: G(qe).dismiss }, null, 8, ["mark"])], 8, $l)
|
|
4757
4883
|
], 32));
|
|
4758
4884
|
}
|
|
4759
|
-
}),
|
|
4760
|
-
function
|
|
4761
|
-
for (let i of Object.values(t)) typeof n[
|
|
4885
|
+
}), tu = (e) => `on${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
4886
|
+
function nu(e, t, n, r) {
|
|
4887
|
+
for (let i of Object.values(t)) typeof n[tu(i)] == "function" && r(`${e} ${i}`);
|
|
4762
4888
|
return (e, ...r) => {
|
|
4763
|
-
let i = t[e], a = i === void 0 ? void 0 : n[
|
|
4889
|
+
let i = t[e], a = i === void 0 ? void 0 : n[tu(i)];
|
|
4764
4890
|
typeof a == "function" && a(...r);
|
|
4765
4891
|
};
|
|
4766
4892
|
}
|
|
4767
4893
|
// src/ToastViewport.vue
|
|
4768
|
-
var
|
|
4894
|
+
var ru = /* @__PURE__ */ j({
|
|
4769
4895
|
inheritAttrs: !1,
|
|
4770
4896
|
__name: "ToastViewport",
|
|
4771
4897
|
props: {
|
|
@@ -4784,12 +4910,12 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4784
4910
|
"blur"
|
|
4785
4911
|
],
|
|
4786
4912
|
setup(e, { emit: t }) {
|
|
4787
|
-
let n = e, r = t, i =
|
|
4913
|
+
let n = e, r = t, i = nu("ToastViewport", {
|
|
4788
4914
|
mouseEnter: "enter",
|
|
4789
4915
|
mouseLeave: "leave",
|
|
4790
4916
|
focus: "focusin",
|
|
4791
4917
|
blur: "focusout"
|
|
4792
|
-
}, n,
|
|
4918
|
+
}, n, ur);
|
|
4793
4919
|
function a(e) {
|
|
4794
4920
|
r("mouseEnter", e), i("mouseEnter", e);
|
|
4795
4921
|
}
|
|
@@ -4806,18 +4932,18 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4806
4932
|
return J(() => n.toasts, (e) => {
|
|
4807
4933
|
let t = new Set(e.map((e) => e.id));
|
|
4808
4934
|
for (let e of l) t.has(e) || l.delete(e);
|
|
4809
|
-
for (let t of e) l.has(t.id) || (l.add(t.id),
|
|
4935
|
+
for (let t of e) l.has(t.id) || (l.add(t.id), $e(t.message, nr(t.severity)));
|
|
4810
4936
|
}, {
|
|
4811
4937
|
immediate: !0,
|
|
4812
4938
|
deep: 1,
|
|
4813
4939
|
flush: "post"
|
|
4814
4940
|
}), (t, n) => (R(), E(S, null, [
|
|
4815
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4816
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4941
|
+
D("div", N({ class: "glim-sr-only" }, G(zt)("polite")), null, 16),
|
|
4942
|
+
D("div", N({ class: "glim-sr-only" }, G(zt)("assertive")), null, 16),
|
|
4817
4943
|
D("div", N({
|
|
4818
4944
|
"data-glim": "ToastViewport",
|
|
4819
4945
|
class: "glim-toast-stack"
|
|
4820
|
-
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(
|
|
4946
|
+
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(eu, {
|
|
4821
4947
|
id: t.id,
|
|
4822
4948
|
key: t.id,
|
|
4823
4949
|
message: t.message,
|
|
@@ -4838,7 +4964,7 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4838
4964
|
]))), 128))], 16)
|
|
4839
4965
|
], 64));
|
|
4840
4966
|
}
|
|
4841
|
-
}),
|
|
4967
|
+
}), iu = ["aria-label"], au = [
|
|
4842
4968
|
"aria-level",
|
|
4843
4969
|
"aria-posinset",
|
|
4844
4970
|
"aria-setsize",
|
|
@@ -4849,11 +4975,11 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4849
4975
|
"onClick",
|
|
4850
4976
|
"onDblclick",
|
|
4851
4977
|
"onKeydown"
|
|
4852
|
-
],
|
|
4978
|
+
], ou = ["onClick"], su = {
|
|
4853
4979
|
key: 0,
|
|
4854
4980
|
class: "glim-tree-glyph",
|
|
4855
4981
|
"aria-hidden": "true"
|
|
4856
|
-
},
|
|
4982
|
+
}, cu = { class: "glim-tree-label" }, lu = /* @__PURE__ */ j({
|
|
4857
4983
|
__name: "Tree",
|
|
4858
4984
|
props: /*@__PURE__*/ M({
|
|
4859
4985
|
label: {},
|
|
@@ -4866,12 +4992,12 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4866
4992
|
}),
|
|
4867
4993
|
emits: /*@__PURE__*/ M(["activate"], ["update:modelValue", "update:open"]),
|
|
4868
4994
|
setup(e, { emit: t }) {
|
|
4869
|
-
let n = e, r = q(e, "modelValue"), i = q(e, "open"), a = t, o =
|
|
4995
|
+
let n = e, r = q(e, "modelValue"), i = q(e, "open"), a = t, o = je(/* @__PURE__ */ new Map()), s = /* @__PURE__ */ new Set(), c = U(null);
|
|
4870
4996
|
function l(e) {
|
|
4871
4997
|
s.has(e) || (s.add(e), Promise.resolve(n.load(e)).then((t) => o.set(e, t), () => s.delete(e)));
|
|
4872
4998
|
}
|
|
4873
4999
|
J(i, (e) => [null, ...e].forEach(l), { immediate: !0 });
|
|
4874
|
-
let u = C(() =>
|
|
5000
|
+
let u = C(() => ar(o, i.value)), d = C(() => Math.max(u.value.findIndex((e) => e.node.id === r.value), 0));
|
|
4875
5001
|
function f(e) {
|
|
4876
5002
|
i.value = i.value.includes(e) ? i.value.filter((t) => t !== e) : [...i.value, e];
|
|
4877
5003
|
}
|
|
@@ -4882,8 +5008,8 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4882
5008
|
e.preventDefault(), r.value = n, e.key === "Enter" && a("activate", n);
|
|
4883
5009
|
return;
|
|
4884
5010
|
}
|
|
4885
|
-
let i =
|
|
4886
|
-
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus,
|
|
5011
|
+
let i = or(u.value, t, e.key, getComputedStyle(c.value).direction === "rtl");
|
|
5012
|
+
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, Tt(c.value, i.focus)) : f("open" in i ? i.open : i.close));
|
|
4887
5013
|
}
|
|
4888
5014
|
return (t, n) => (R(), E("div", {
|
|
4889
5015
|
ref_key: "tree",
|
|
@@ -4913,15 +5039,15 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4913
5039
|
"aria-hidden": "true",
|
|
4914
5040
|
onClick: X((t) => e.node.hasChildren && f(e.node.id), ["stop"]),
|
|
4915
5041
|
onDblclick: n[0] ||= X(() => {}, ["stop"])
|
|
4916
|
-
}, [e.node.hasChildren ? (R(), w(G(
|
|
4917
|
-
e.node.glyph ? (R(), E("span",
|
|
4918
|
-
D("span",
|
|
4919
|
-
], 16,
|
|
5042
|
+
}, [e.node.hasChildren ? (R(), w(G(ue), { key: 0 })) : T("", !0)], 40, ou),
|
|
5043
|
+
e.node.glyph ? (R(), E("span", su, [(R(), w(H(e.open && e.node.openGlyph || e.node.glyph)))])) : T("", !0),
|
|
5044
|
+
D("span", cu, W(e.node.label), 1)
|
|
5045
|
+
], 16, au))), 128))], 8, iu));
|
|
4920
5046
|
}
|
|
4921
|
-
}),
|
|
5047
|
+
}), uu = ["data-glim-title"], du = { class: "glim-notice-title" }, fu = { class: "glim-notice-reason" }, pu = {
|
|
4922
5048
|
key: 0,
|
|
4923
5049
|
class: "glim-notice-action"
|
|
4924
|
-
},
|
|
5050
|
+
}, mu = /* @__PURE__ */ j({
|
|
4925
5051
|
__name: "UnavailableNotice",
|
|
4926
5052
|
props: { title: {} },
|
|
4927
5053
|
setup(e) {
|
|
@@ -4930,12 +5056,12 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4930
5056
|
"data-glim-title": e.title,
|
|
4931
5057
|
class: "glim-notice"
|
|
4932
5058
|
}, [
|
|
4933
|
-
D("p",
|
|
4934
|
-
D("p",
|
|
4935
|
-
t.$slots.action ? (R(), E("div",
|
|
4936
|
-
], 8,
|
|
5059
|
+
D("p", du, W(e.title), 1),
|
|
5060
|
+
D("p", fu, [V(t.$slots, "default")]),
|
|
5061
|
+
t.$slots.action ? (R(), E("div", pu, [V(t.$slots, "action")])) : T("", !0)
|
|
5062
|
+
], 8, uu));
|
|
4937
5063
|
}
|
|
4938
|
-
}),
|
|
5064
|
+
}), hu = ["aria-label"], gu = { class: "glim-window-square" }, _u = { class: "glim-window-square" }, vu = { class: "glim-window-square" }, yu = /* @__PURE__ */ j({
|
|
4939
5065
|
__name: "WindowBar",
|
|
4940
5066
|
props: {
|
|
4941
5067
|
appName: {},
|
|
@@ -4971,38 +5097,38 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4971
5097
|
onMouseup: c,
|
|
4972
5098
|
onDblclick: s
|
|
4973
5099
|
}, [
|
|
4974
|
-
A(
|
|
5100
|
+
A(_e, {
|
|
4975
5101
|
tip: e.text.minimise,
|
|
4976
5102
|
class: "glim-window-button",
|
|
4977
5103
|
onClick: r[0] ||= (e) => n("minimise")
|
|
4978
5104
|
}, {
|
|
4979
|
-
default: Y(() => [D("span",
|
|
5105
|
+
default: Y(() => [D("span", gu, [A(G(he))])]),
|
|
4980
5106
|
_: 1
|
|
4981
5107
|
}, 8, ["tip"]),
|
|
4982
|
-
A(
|
|
5108
|
+
A(_e, {
|
|
4983
5109
|
tip: e.maximised ? e.text.restore : e.text.maximise,
|
|
4984
5110
|
class: "glim-window-button",
|
|
4985
5111
|
onClick: r[1] ||= (e) => n("toggleMaximise")
|
|
4986
5112
|
}, {
|
|
4987
|
-
default: Y(() => [D("span",
|
|
5113
|
+
default: Y(() => [D("span", _u, [e.maximised ? (R(), w(G(m), { key: 0 })) : (R(), w(G(v), { key: 1 }))])]),
|
|
4988
5114
|
_: 1
|
|
4989
5115
|
}, 8, ["tip"]),
|
|
4990
|
-
A(
|
|
5116
|
+
A(_e, {
|
|
4991
5117
|
tip: e.text.close,
|
|
4992
5118
|
class: "glim-window-button",
|
|
4993
5119
|
onClick: r[2] ||= (e) => n("close")
|
|
4994
5120
|
}, {
|
|
4995
|
-
default: Y(() => [D("span",
|
|
5121
|
+
default: Y(() => [D("span", vu, [A(G(_))])]),
|
|
4996
5122
|
_: 1
|
|
4997
5123
|
}, 8, ["tip"])
|
|
4998
|
-
], 40,
|
|
5124
|
+
], 40, hu));
|
|
4999
5125
|
}
|
|
5000
5126
|
});
|
|
5001
5127
|
// src/confirm.ts
|
|
5002
|
-
function
|
|
5128
|
+
function bu(e) {
|
|
5003
5129
|
let t = U(null), n = U(null), r = null, i = null;
|
|
5004
5130
|
function a(e, n) {
|
|
5005
|
-
return i =
|
|
5131
|
+
return i = Et(), new Promise((i) => {
|
|
5006
5132
|
r = i, t.value = {
|
|
5007
5133
|
message: e,
|
|
5008
5134
|
...n
|
|
@@ -5010,15 +5136,15 @@ function Yl(e) {
|
|
|
5010
5136
|
});
|
|
5011
5137
|
}
|
|
5012
5138
|
function o(e) {
|
|
5013
|
-
r?.(e), r = null, t.value = null,
|
|
5139
|
+
r?.(e), r = null, t.value = null, kn(i), i = null;
|
|
5014
5140
|
}
|
|
5015
5141
|
let s = () => o(!1);
|
|
5016
|
-
return
|
|
5142
|
+
return xu(() => t.value !== null, n, s), {
|
|
5017
5143
|
confirm: a,
|
|
5018
5144
|
dismiss: s,
|
|
5019
5145
|
ConfirmHost: j(() => () => {
|
|
5020
5146
|
let r = t.value;
|
|
5021
|
-
return r ? Ce
|
|
5147
|
+
return r ? we(Ce, { to: yn() }, [we(bi, {
|
|
5022
5148
|
ref: (e) => n.value = e?.card ?? null,
|
|
5023
5149
|
title: e.title,
|
|
5024
5150
|
message: r.message,
|
|
@@ -5028,17 +5154,17 @@ function Yl(e) {
|
|
|
5028
5154
|
cancelLabel: e.cancel,
|
|
5029
5155
|
onConfirm: () => o(!0),
|
|
5030
5156
|
onCancel: () => o(!1)
|
|
5031
|
-
}, r.extra ? { extra: () =>
|
|
5157
|
+
}, r.extra ? { extra: () => we(r.extra) } : void 0)]) : null;
|
|
5032
5158
|
})
|
|
5033
5159
|
};
|
|
5034
5160
|
}
|
|
5035
|
-
function
|
|
5161
|
+
function xu(e, t, n) {
|
|
5036
5162
|
J(e, (e, r, i) => {
|
|
5037
|
-
e && i(
|
|
5163
|
+
e && i(ir(() => t.value, n));
|
|
5038
5164
|
}, { immediate: !0 });
|
|
5039
5165
|
}
|
|
5040
5166
|
// src/paypalButtons.ts
|
|
5041
|
-
function
|
|
5167
|
+
function Su(e) {
|
|
5042
5168
|
let t = U(null), n = () => {};
|
|
5043
5169
|
return J([
|
|
5044
5170
|
t,
|
|
@@ -5050,7 +5176,7 @@ function Zl(e) {
|
|
|
5050
5176
|
let o = null, s = !1;
|
|
5051
5177
|
n = () => {
|
|
5052
5178
|
s = !0, o?.close().catch(() => {});
|
|
5053
|
-
},
|
|
5179
|
+
}, Bt(r, i !== "once").then((n) => {
|
|
5054
5180
|
if (s) return;
|
|
5055
5181
|
let c = n.Buttons({
|
|
5056
5182
|
style: {
|
|
@@ -5062,18 +5188,18 @@ function Zl(e) {
|
|
|
5062
5188
|
height: 40
|
|
5063
5189
|
},
|
|
5064
5190
|
onClick: (t, n) => e().amount ? n.resolve() : n.reject(),
|
|
5065
|
-
...
|
|
5191
|
+
...ht(r, i, () => e().amount ?? "0", a, () => e().onDone()),
|
|
5066
5192
|
onError: () => e().onError()
|
|
5067
5193
|
});
|
|
5068
5194
|
o = c, t.replaceChildren(), c.render(t).catch(() => e().onError());
|
|
5069
5195
|
}, () => {
|
|
5070
5196
|
s || e().onError();
|
|
5071
5197
|
});
|
|
5072
|
-
}),
|
|
5198
|
+
}), De(() => n()), (e) => t.value = e;
|
|
5073
5199
|
}
|
|
5074
5200
|
// src/dragArmed.ts
|
|
5075
|
-
function
|
|
5201
|
+
function Cu(e, t) {
|
|
5076
5202
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
5077
|
-
|
|
5203
|
+
Re(n, { flush: "post" }), ke(n);
|
|
5078
5204
|
}
|
|
5079
|
-
export {
|
|
5205
|
+
export { Hr as AboutCard, e as Badge, qr as BrandMark, c as BusyRing, f as Button, _r as Card, Zr as Checkbox, si as CoffeeDialog, fi as ColorPicker, bi as ConfirmDialog, Mi as ConnectionRow, qi as ContextMenu, Xi as CopyField, fa as CryptoDonateDialog, ha as DropdownListbox, ba as EmptyState, Sa as FieldError, Ea as FieldRow, Da as FieldRowGroup, Ns as Fortress, uo as FortressAppCard, La as FortressDoubtWindow, Ps as FortressPairing, No as FortressPermissions, oc as FortressStatusWindow, We as GLIMSTONE_RELEASE_URL, Ge as GLIMSTONE_REPO, Ke as GLIMSTONE_VERSION, lc as GlyphField, uc as GlyphTile, de as IconBack, Se as IconButton, oe as IconCalendar, le as IconCancel, b as IconCheck, _ as IconClose, se as IconCopy, ue as IconExpand, ee as IconEye, ie as IconEyeOff, fe as IconFolderOpen, te as IconForward, y as IconPause, ce as IconPencil, ae as IconPlay, re as IconResetArrow, ne as IconSearch, g as IconStar, _e as IconTipButton, pe as IconTrash, ge as IconUpload, v as IconWindowMaximise, he as IconWindowMinimise, m as IconWindowRestore, Dr as InfoAboutCard, Q as InfoBubble, Ar as InfoHelpCard, Vr as InfoTile, zr as InfoVersionCard, $a as InstanceCard, Pi as Kbd, hc as ListRow, Ac as ListTable, p as MarkSvg, Nc as MenuBar, Fc as Meter, Rc as NumberField, Bo as PasswordField, Bc as PathField, rl as PaypalDialog, cl as PickerWindow, Ca as Pill, _c as Popover, to as PresenceBadges, Is as ProgressBar, $ as ReadmeButton, ll as RowMark, vo as Selector, yl as Sheet, ml as SidebarRow, Pl as SignInCard, Sl as SignInField, Ll as SkeletonRow, Hl as SubCard, ql as Table, Yl as TextArea, wl as TextField, eu as ToastCard, ru as ToastViewport, So as Toggle, lu as Tree, mu as UnavailableNotice, Fa as Window, yu as WindowBar, no as deviceGlyph, me as glyphFor, Ln as selectorTabId, h as setGlyphResolver, u as useAccent, bu as useConfirm, o as useDensity, xu as useDialogKeys, Cu as useDragArmed, x as useFieldName, i as useHue, l as useLabelMode, d as useMotion, Su as usePaypalButtons, be as usePortalHue, a as useRainbow, s as useShape, n as useTipBubble };
|