@glimstone/vue 4.5.8 → 4.7.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/ConnectionRow.vue.d.ts +34 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +736 -648
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import { t as ye } from "./selectParts-0e1ib8BL.js";
|
|
|
8
8
|
import { t as be } from "./Select-CQxew-YP.js";
|
|
9
9
|
import { t as xe } from "./IconButton-D5YOChZI.js";
|
|
10
10
|
import { Fragment as S, Teleport as Se, 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 Ce, inject as we, mergeModels as M, mergeProps as N, nextTick as Te, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onMounted as L, onScopeDispose as Ee, onUnmounted as De, onUpdated as Oe, openBlock as R, provide as ke, ref as z, renderList as B, renderSlot as V, resolveDynamicComponent as H, shallowReactive as Ae, shallowRef as U, toDisplayString as W, toRef as je, unref as G, useAttrs as Me, useId as K, useModel as q, useSlots as Ne, vModelDynamic as Pe, vModelText as Fe, vShow as Ie, watch as J, watchEffect as Le, withCtx as Y, withDirectives as Re, withKeys as ze, withModifiers as X } from "vue";
|
|
11
|
-
import { COLOR_NAMES_DE as Be, COLOR_PICKER_TEXT as Ve,
|
|
11
|
+
import { COLOR_NAMES_DE as Be, COLOR_PICKER_TEXT as Ve, CONNECTION_ROW_KEYS as He, COPIED_MS as Ue, GLIMSTONE_RELEASE_URL as We, GLIMSTONE_REPO as Ge, GLIMSTONE_VERSION as Ke, MARKS as qe, PATH_ROOM_PX as Je, TOAST_MARKS as Ye, WIDE_QUERY as Xe, anchorName as Ze, announce as Qe, appCardView as $e, ariaSort as et, attachNumberSteppers as tt, claimMenu as nt, closeMenuOutside as rt, colorPicker as it, columnValues as at, computeBubblePosition as ot, connectionTestFace as st, connectionTile as ct, copyText as lt, countSelector as ut, createFortressFlow as dt, createSignInFlow as ft, donationHandlers as pt, doubtView as mt, fieldErrorView as ht, fieldWidthClass as gt, fill as Z, floatColorPicker as _t, focusByLetter as vt, focusFirstField as yt, focusFirstMenuRow as bt, focusMenuRow as xt, focusMenuRowByLetter as St, focusTreeRow as Ct, focusedAsker as wt, holdPickHeight as Tt, hueVars as Et, isMenuHead as Dt, isTileMark as Ot, isTypeahead as kt, joinRefusalText as At, keepReadmeFit as jt, labelInside as Mt, listKey as Nt, listOf as Pt, listView as Ft, liveRegionAttrs as It, loadPaypal as Lt, mailHref as Rt, mediaMatches as zt, memberName as Bt, menuIsOpen as Vt, menuMove as Ht, menuRowView as Ut, meterView as Wt, nearestColorName as Gt, nextSort as Kt, normalizeHex as qt, offersDiscord as Jt, offersMail as Yt, openInBrowser as Xt, openInstance as Zt, openPopover as Qt, openSheet as $t, othersLine as en, pageLocale as tn, permissionsWith as nn, phraseReady as rn, pickFocusTarget as an, pickMarkClass as on, pickSearchKey as sn, pickSections as cn, pickTileKey as ln, pickTileStyle as un, pickerHue as dn, pillClassName as fn, placeMenu as pn, placeSubmenu as mn, portalTarget as hn, presenceTone as gn, pressRowControl as _n, progressView as vn, qrCode as yn, readmePartClass as bn, readmePartLabel as xn, readmeSoon as Sn, readmeUnitClass as Cn, resetBlocked as wn, returnFocus as Tn, roveSelector as En, rovedIndex as Dn, runUpdateCheck as On, segmentView as kn, selectByClick as An, selectorAxis as jn, selectorFlex as Mn, selectorTabId as Nn, selectorTabId as Pn, selectorView as Fn, shake as In, showRefusal as Ln, sidebarRowView as Rn, signInBlocked as zn, signInStage as Bn, skeletonRowView as Vn, softBreaks as Hn, stackWindow as Un, statusView as Wn, storeShowOthers as Gn, storedShowOthers as Kn, subscribeMedia as qn, syncNumberSteppers as Jn, tableCellClass as Yn, textFieldClass as Xn, tidyMenu as Zn, toastPoliteness as Qn, toggleSelection as $n, trapDialogKeys as er, treeRows as tr, treeStep as nr, updateFace as rr, updateStage as ir, versionLink as ar, warnDeprecated as or, watchSelectorFit as sr, windowFocusTarget as cr, windowFoot as lr } from "@glimstone/core";
|
|
12
12
|
// src/InfoBubble.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var ur = ["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, ur), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), dr = ["data-glim-title"], fr = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "glim-panel-heading"
|
|
68
|
-
},
|
|
68
|
+
}, pr = /* @__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 : Et(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", fr, [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, dr));
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), mr = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "glim-readme-btn-art",
|
|
107
107
|
"aria-hidden": "true"
|
|
108
|
-
},
|
|
108
|
+
}, hr = { class: "glim-readme-btn-text" }, gr = { class: "glim-readme-btn-name" }, _r = {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "glim-readme-btn-sub"
|
|
111
|
-
},
|
|
111
|
+
}, vr = {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "glim-readme-btn-sheen",
|
|
114
114
|
"aria-hidden": "true"
|
|
115
|
-
},
|
|
115
|
+
}, yr = {
|
|
116
116
|
key: 1,
|
|
117
117
|
class: "glim-readme-btn-hint"
|
|
118
118
|
}, $ = /* @__PURE__ */ j({
|
|
@@ -135,9 +135,9 @@ 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(() => Sn(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 ?
|
|
140
|
+
l?.(), l = s.value ? jt(s.value) : void 0;
|
|
141
141
|
}, { flush: "post" }), Ee(() => l?.());
|
|
142
142
|
let u = n(() => i.tip), d = (e) => e === 0 ? {
|
|
143
143
|
ref: (e) => u.trigger.value = e,
|
|
@@ -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) => xn(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(Cn)(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(bn)(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", mr, [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", hr, [D("span", gr, W(t.name), 1), f(t) ? (R(), E("span", _r, 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", vr)),
|
|
180
|
+
e.hint ? (R(), E("span", yr, [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
|
+
}), br = { class: "glim-info-text" }, xr = { class: "glim-info-text" }, Sr = { class: "glim-readme-btn-rows glim-about-give" }, Cr = /* @__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(pr, {
|
|
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", br, W(e.text.body), 1),
|
|
204
|
+
D("p", xr, W(e.text.coffee), 1),
|
|
205
|
+
D("div", Sr, [
|
|
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
|
+
}), wr = { class: "glim-info-text" }, Tr = { class: "glim-readme-btn-rows" }, Er = /* @__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: Xt
|
|
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(() => Yt(t.text.report, t.mailAddress)), r = C(() => Jt(t.text.report, t.discordUrl) && !!t.text.discordButton);
|
|
269
|
+
return (t, i) => (R(), w(pr, {
|
|
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", wr, W(e.text.report), 1), D("div", Tr, [
|
|
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(Rt)(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
|
+
}), Dr = { class: "glim-version-rows" }, Or = { class: "glim-version-name" }, kr = { class: "glim-version-part" }, Ar = {
|
|
350
350
|
key: 0,
|
|
351
351
|
class: "glim-version-sub"
|
|
352
|
-
},
|
|
352
|
+
}, jr = ["href", "onClick"], Mr = {
|
|
353
353
|
key: 1,
|
|
354
354
|
class: "glim-num glim-version-number"
|
|
355
|
-
},
|
|
355
|
+
}, Nr = {
|
|
356
356
|
key: 0,
|
|
357
357
|
class: "glim-version-actions"
|
|
358
|
-
},
|
|
358
|
+
}, Pr = {
|
|
359
359
|
role: "status",
|
|
360
360
|
class: "glim-sr-only"
|
|
361
|
-
},
|
|
361
|
+
}, Fr = /* @__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: Xt
|
|
371
371
|
},
|
|
372
372
|
hueIndex: {}
|
|
373
373
|
},
|
|
374
374
|
setup(e) {
|
|
375
|
-
let t = e, n = Ne(), r = C(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = U({ kind: "idle" }), a = U(0), o = C(() => t.updateCheck &&
|
|
375
|
+
let t = e, n = Ne(), r = C(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = U({ kind: "idle" }), a = U(0), o = C(() => t.updateCheck && rr(i.value, t.updateCheck.text));
|
|
376
376
|
function s() {
|
|
377
|
-
|
|
377
|
+
On(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(pr, {
|
|
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", Dr, [(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", Or, [D("span", kr, W(t.name), 1), t.sub ? (R(), E("span", Ar, W(t.sub), 1)) : T("", !0)]), G(ar)(t).href ? (R(), E("a", {
|
|
394
394
|
key: 0,
|
|
395
|
-
href: G(
|
|
395
|
+
href: G(ar)(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(ar)(t).href)
|
|
400
|
+
}, W(G(ar)(t).shown), 9, jr)) : (R(), E("span", Mr, W(G(ar)(t).released ? G(ar)(t).shown : e.text.unreleased(G(ar)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (R(), E("div", Nr, [
|
|
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(ir)(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", Pr, 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
|
+
}), Ir = {
|
|
434
434
|
"data-glim": "InfoTile",
|
|
435
435
|
style: { display: "contents" }
|
|
436
|
-
},
|
|
436
|
+
}, Lr = /* @__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", Ir, [
|
|
447
|
+
A(Fr, 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(Er, N(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
453
|
+
A(Cr, N(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
454
454
|
]));
|
|
455
455
|
}
|
|
456
|
-
}),
|
|
456
|
+
}), Rr = /* @__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: Xt
|
|
478
478
|
},
|
|
479
479
|
hueIndex: {}
|
|
480
480
|
},
|
|
481
481
|
setup(e) {
|
|
482
482
|
let t = e;
|
|
483
|
-
|
|
483
|
+
or("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(Lr, {
|
|
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
|
+
}), zr = {
|
|
538
538
|
key: 0,
|
|
539
539
|
"data-glim": "BrandMark",
|
|
540
540
|
class: "glim-brand-svg",
|
|
541
541
|
"aria-hidden": "true"
|
|
542
|
-
},
|
|
542
|
+
}, Br = ["innerHTML"], Vr = ["innerHTML"], Hr = ["innerHTML"], Ur = /* @__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", zr, [D("span", {
|
|
550
550
|
class: "glim-mark-rest",
|
|
551
551
|
innerHTML: e.svg
|
|
552
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, Br), D("span", {
|
|
553
553
|
class: "glim-mark-hover",
|
|
554
554
|
innerHTML: e.hover
|
|
555
|
-
}, null, 8,
|
|
555
|
+
}, null, 8, Vr)])) : (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, Hr));
|
|
562
562
|
}
|
|
563
|
-
}),
|
|
563
|
+
}), Wr = [
|
|
564
564
|
"aria-checked",
|
|
565
565
|
"aria-label",
|
|
566
566
|
"disabled"
|
|
567
|
-
],
|
|
567
|
+
], Gr = {
|
|
568
568
|
class: "glim-checkbox-box",
|
|
569
569
|
"aria-hidden": "true"
|
|
570
|
-
},
|
|
570
|
+
}, Kr = { key: 0 }, qr = /* @__PURE__ */ j({
|
|
571
571
|
__name: "Checkbox",
|
|
572
572
|
props: /*@__PURE__*/ M({
|
|
573
573
|
label: {},
|
|
@@ -603,12 +603,12 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
603
603
|
class: P(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
604
604
|
onClick: i[0] ||= (e) => r.value = !r.value,
|
|
605
605
|
onKeydown: i[1] ||= ze(X(() => {}, ["prevent"]), ["enter"])
|
|
606
|
-
}, [D("span",
|
|
606
|
+
}, [D("span", Gr, [A(G(b))]), n.value ? T("", !0) : (R(), E("span", Kr, W(e.label), 1))], 42, Wr));
|
|
607
607
|
}
|
|
608
|
-
}),
|
|
608
|
+
}), Jr = ["data-glim-title"], Yr = { class: "glim-modal-head" }, Xr = {
|
|
609
609
|
id: "coffee-title",
|
|
610
610
|
class: "glim-modal-title"
|
|
611
|
-
},
|
|
611
|
+
}, Zr = { class: "glim-give-body" }, Qr = { class: "glim-give-appeal" }, $r = { class: "glim-give-intro" }, ei = { class: "glim-give-frame" }, ti = ["src", "title"], ni = { class: "glim-give-foot" }, ri = /* @__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", Yr, [D("h2", Xr, [A(e, {
|
|
635
635
|
tone: "heading",
|
|
636
636
|
size: "heading",
|
|
637
637
|
wrap: ""
|
|
@@ -639,28 +639,28 @@ 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", Zr, [
|
|
643
|
+
D("p", Qr, W(t.text.appeal), 1),
|
|
644
|
+
D("p", $r, W(t.text.intro), 1),
|
|
645
|
+
D("div", ei, [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, ti)])
|
|
651
651
|
]),
|
|
652
|
-
D("div",
|
|
652
|
+
D("div", ni, [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, Jr)]));
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), ii = { class: "glim-picker-foot" }, ai = {
|
|
661
661
|
key: 0,
|
|
662
662
|
class: "glim-picker-name"
|
|
663
|
-
},
|
|
663
|
+
}, oi = ["value", "aria-label"], si = { class: "glim-picker-actions" }, ci = /* @__PURE__ */ j({
|
|
664
664
|
__name: "ColorPicker",
|
|
665
665
|
props: /*@__PURE__*/ M({
|
|
666
666
|
anchor: { default: null },
|
|
@@ -682,18 +682,18 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
682
682
|
let n = e, r = q(e, "modelValue"), i = t, a = {
|
|
683
683
|
...Ve,
|
|
684
684
|
...n.text
|
|
685
|
-
}, o = U(null), s = U(null), c = z(
|
|
685
|
+
}, o = U(null), s = U(null), c = z(qt(r.value) ?? "#000000"), l = z(c.value), u = C(() => n.names === !1 ? null : Gt(c.value, n.names)), d = it(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 = _t(o.value, n.anchor, () => i("close")), d.focus());
|
|
690
690
|
}), I(() => p?.()), J(r, (e) => {
|
|
691
|
-
let t =
|
|
691
|
+
let t = qt(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 = qt(l.value);
|
|
697
697
|
t && (c.value = t, d.setValue(t), i("input", t));
|
|
698
698
|
}
|
|
699
699
|
function h() {
|
|
@@ -703,7 +703,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
703
703
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
|
|
704
704
|
}
|
|
705
705
|
return (t, n) => (R(), w(Se, {
|
|
706
|
-
to: G(
|
|
706
|
+
to: G(hn)(),
|
|
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", ii, [
|
|
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", ai, 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, oi)
|
|
735
735
|
]),
|
|
736
|
-
D("div",
|
|
736
|
+
D("div", si, [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
|
+
}), li = ["data-glim-title"], ui = { class: "glim-modal-head" }, di = {
|
|
746
746
|
id: "confirmdialog-title",
|
|
747
747
|
class: "glim-modal-title"
|
|
748
|
-
},
|
|
748
|
+
}, fi = { class: "glim-modal-body" }, pi = {
|
|
749
749
|
id: "confirmdialog-message",
|
|
750
750
|
class: "glim-modal-text"
|
|
751
|
-
},
|
|
751
|
+
}, mi = {
|
|
752
752
|
key: 0,
|
|
753
753
|
class: "glim-modal-extra"
|
|
754
|
-
},
|
|
754
|
+
}, hi = { class: "glim-modal-foot" }, gi = /* @__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", ui, [D("h2", di, [A(e, {
|
|
783
783
|
tone: "heading",
|
|
784
784
|
size: "heading",
|
|
785
785
|
wrap: ""
|
|
@@ -794,8 +794,8 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
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", fi, [D("p", pi, W(t.message), 1), n.$slots.extra ? (R(), E("div", mi, [V(n.$slots, "extra")])) : T("", !0)]),
|
|
798
|
+
D("div", hi, [A(f, {
|
|
799
799
|
ref_key: "cancel",
|
|
800
800
|
ref: o,
|
|
801
801
|
label: t.cancelLabel,
|
|
@@ -812,25 +812,113 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
812
812
|
"label-key",
|
|
813
813
|
"glyph"
|
|
814
814
|
])])
|
|
815
|
-
], 8,
|
|
815
|
+
], 8, li)]));
|
|
816
816
|
}
|
|
817
|
-
}),
|
|
817
|
+
}), _i = ["aria-label"], vi = { class: "glim-connection-mark" }, yi = { class: "glim-connection-main" }, bi = { class: "glim-connection-head" }, xi = { class: "glim-connection-name" }, Si = {
|
|
818
|
+
key: 0,
|
|
819
|
+
class: "glim-connection-badges"
|
|
820
|
+
}, Ci = { class: "glim-connection-foot" }, wi = { class: "glim-connection-about" }, Ti = {
|
|
821
|
+
key: 0,
|
|
822
|
+
class: "glim-connection-status"
|
|
823
|
+
}, Ei = {
|
|
824
|
+
key: 0,
|
|
825
|
+
class: "glim-connection-actions"
|
|
826
|
+
}, Di = 640, Oi = /* @__PURE__ */ j({
|
|
827
|
+
__name: "ConnectionRow",
|
|
828
|
+
props: {
|
|
829
|
+
name: {},
|
|
830
|
+
mark: {},
|
|
831
|
+
status: {},
|
|
832
|
+
test: {},
|
|
833
|
+
text: {},
|
|
834
|
+
labelKeys: {},
|
|
835
|
+
onTest: { type: Function },
|
|
836
|
+
onEdit: { type: Function },
|
|
837
|
+
onRemove: { type: Function }
|
|
838
|
+
},
|
|
839
|
+
setup(e) {
|
|
840
|
+
let t = e, n = C(() => ({
|
|
841
|
+
...He,
|
|
842
|
+
...t.labelKeys
|
|
843
|
+
})), r = C(() => ct(t.mark)), i = C(() => st(t.test)), a = C(() => i.value.outcome === "check" ? b : i.value.outcome === "cross" ? g : void 0);
|
|
844
|
+
return (t, o) => (R(), E("div", {
|
|
845
|
+
"data-glim": "ConnectionRow",
|
|
846
|
+
role: "group",
|
|
847
|
+
"aria-label": e.name,
|
|
848
|
+
class: "glim-well glim-connection"
|
|
849
|
+
}, [D("span", {
|
|
850
|
+
class: "glim-connection-tile",
|
|
851
|
+
style: F(r.value.style),
|
|
852
|
+
"aria-hidden": "true"
|
|
853
|
+
}, [D("span", vi, [r.value.svg === void 0 ? (R(), w(H(e.mark), { key: 1 })) : (R(), w(Ur, {
|
|
854
|
+
key: 0,
|
|
855
|
+
svg: r.value.svg
|
|
856
|
+
}, null, 8, ["svg"]))])], 4), D("div", yi, [D("div", bi, [D("span", xi, W(e.name), 1), t.$slots.badges ? (R(), E("span", Si, [V(t.$slots, "badges")])) : T("", !0)]), D("div", Ci, [D("div", wi, [e.status ? (R(), E("p", Ti, W(e.status), 1)) : T("", !0), V(t.$slots, "default")]), e.onTest || e.onEdit || e.onRemove ? (R(), E("span", Ei, [
|
|
857
|
+
e.onTest ? (R(), w(f, {
|
|
858
|
+
key: 0,
|
|
859
|
+
label: e.text.test,
|
|
860
|
+
"label-key": n.value.test,
|
|
861
|
+
glyph: a.value,
|
|
862
|
+
tone: i.value.tone,
|
|
863
|
+
busy: e.test?.busy,
|
|
864
|
+
title: e.test?.title,
|
|
865
|
+
"compact-below": Di,
|
|
866
|
+
class: P({ "glim-shake": i.value.shake }),
|
|
867
|
+
"data-connection": "test",
|
|
868
|
+
onClick: e.onTest
|
|
869
|
+
}, null, 8, [
|
|
870
|
+
"label",
|
|
871
|
+
"label-key",
|
|
872
|
+
"glyph",
|
|
873
|
+
"tone",
|
|
874
|
+
"busy",
|
|
875
|
+
"title",
|
|
876
|
+
"class",
|
|
877
|
+
"onClick"
|
|
878
|
+
])) : T("", !0),
|
|
879
|
+
e.onEdit ? (R(), w(f, {
|
|
880
|
+
key: 1,
|
|
881
|
+
label: e.text.edit,
|
|
882
|
+
"label-key": n.value.edit,
|
|
883
|
+
"compact-below": Di,
|
|
884
|
+
"data-connection": "edit",
|
|
885
|
+
onClick: e.onEdit
|
|
886
|
+
}, null, 8, [
|
|
887
|
+
"label",
|
|
888
|
+
"label-key",
|
|
889
|
+
"onClick"
|
|
890
|
+
])) : T("", !0),
|
|
891
|
+
e.onRemove ? (R(), w(f, {
|
|
892
|
+
key: 2,
|
|
893
|
+
label: e.text.remove,
|
|
894
|
+
"label-key": n.value.remove,
|
|
895
|
+
"compact-below": Di,
|
|
896
|
+
"data-connection": "remove",
|
|
897
|
+
onClick: e.onRemove
|
|
898
|
+
}, null, 8, [
|
|
899
|
+
"label",
|
|
900
|
+
"label-key",
|
|
901
|
+
"onClick"
|
|
902
|
+
])) : T("", !0)
|
|
903
|
+
])) : T("", !0)])])], 8, _i));
|
|
904
|
+
}
|
|
905
|
+
}), ki = {
|
|
818
906
|
"data-glim": "Kbd",
|
|
819
907
|
class: "glim-kbd"
|
|
820
|
-
},
|
|
908
|
+
}, Ai = /* @__PURE__ */ j({
|
|
821
909
|
__name: "Kbd",
|
|
822
910
|
setup(e) {
|
|
823
|
-
return (e, t) => (R(), E("kbd",
|
|
911
|
+
return (e, t) => (R(), E("kbd", ki, [V(e.$slots, "default")]));
|
|
824
912
|
}
|
|
825
|
-
}),
|
|
913
|
+
}), ji = {
|
|
826
914
|
key: 0,
|
|
827
915
|
class: "glim-menu-sep",
|
|
828
916
|
role: "separator"
|
|
829
|
-
},
|
|
917
|
+
}, Mi = {
|
|
830
918
|
key: 1,
|
|
831
919
|
class: "glim-menu-head",
|
|
832
920
|
role: "presentation"
|
|
833
|
-
},
|
|
921
|
+
}, Ni = [
|
|
834
922
|
"role",
|
|
835
923
|
"aria-checked",
|
|
836
924
|
"aria-haspopup",
|
|
@@ -838,26 +926,26 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
838
926
|
"disabled",
|
|
839
927
|
"data-row",
|
|
840
928
|
"onClick"
|
|
841
|
-
],
|
|
929
|
+
], Pi = {
|
|
842
930
|
key: 0,
|
|
843
931
|
class: "glim-checkbox-box",
|
|
844
932
|
"aria-hidden": "true"
|
|
845
|
-
},
|
|
933
|
+
}, Fi = {
|
|
846
934
|
key: 2,
|
|
847
935
|
class: "glim-menu-glyph",
|
|
848
936
|
"aria-hidden": "true"
|
|
849
|
-
},
|
|
937
|
+
}, Ii = { class: "glim-menu-label" }, Li = {
|
|
850
938
|
key: 3,
|
|
851
939
|
class: "glim-menu-end glim-menu-caret",
|
|
852
940
|
"aria-hidden": "true"
|
|
853
|
-
},
|
|
941
|
+
}, Ri = {
|
|
854
942
|
key: 4,
|
|
855
943
|
class: "glim-menu-end glim-menu-tick",
|
|
856
944
|
"aria-hidden": "true"
|
|
857
|
-
},
|
|
945
|
+
}, zi = {
|
|
858
946
|
key: 6,
|
|
859
947
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
860
|
-
},
|
|
948
|
+
}, Bi = /* @__PURE__ */ j({
|
|
861
949
|
__name: "MenuRows",
|
|
862
950
|
props: {
|
|
863
951
|
entries: {},
|
|
@@ -865,15 +953,15 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
865
953
|
},
|
|
866
954
|
emits: ["pick"],
|
|
867
955
|
setup(e, { emit: t }) {
|
|
868
|
-
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } :
|
|
956
|
+
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : Dt(e) ? {
|
|
869
957
|
kind: "head",
|
|
870
958
|
head: e
|
|
871
959
|
} : {
|
|
872
960
|
kind: "item",
|
|
873
961
|
item: e,
|
|
874
|
-
view:
|
|
962
|
+
view: Ut(e)
|
|
875
963
|
}));
|
|
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",
|
|
964
|
+
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div", ji)) : t.kind === "head" ? (R(), E("div", Mi, [D("span", null, W(t.head.head), 1), t.head.edit ? (R(), w(ge, {
|
|
877
965
|
key: 0,
|
|
878
966
|
tip: t.head.edit.tip,
|
|
879
967
|
role: "menuitem",
|
|
@@ -901,23 +989,23 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
901
989
|
"data-row": n,
|
|
902
990
|
onClick: (e) => r("pick", n)
|
|
903
991
|
}, [
|
|
904
|
-
t.view.lead === "box" ? (R(), E("span",
|
|
992
|
+
t.view.lead === "box" ? (R(), E("span", Pi, [A(G(b))])) : t.view.lead === "dot" ? (R(), E("span", {
|
|
905
993
|
key: 1,
|
|
906
994
|
class: "glim-menu-dot",
|
|
907
995
|
style: F({ backgroundColor: t.item.color }),
|
|
908
996
|
"aria-hidden": "true"
|
|
909
|
-
}, null, 4)) : (R(), E("span",
|
|
910
|
-
D("span",
|
|
911
|
-
t.view.end === "submenu" ? (R(), E("span",
|
|
997
|
+
}, null, 4)) : (R(), E("span", Fi, [t.view.lead === "glyph" ? (R(), w(H(t.item.glyph), { key: 0 })) : T("", !0)])),
|
|
998
|
+
D("span", Ii, W(t.item.label), 1),
|
|
999
|
+
t.view.end === "submenu" ? (R(), E("span", Li, [A(G(le))])) : t.view.end === "tick" ? (R(), E("span", Ri, [A(G(b))])) : t.view.end === "shortcut" ? (R(), w(Ai, {
|
|
912
1000
|
key: 5,
|
|
913
1001
|
class: "glim-menu-end"
|
|
914
1002
|
}, {
|
|
915
1003
|
default: Y(() => [k(W(t.item.shortcut), 1)]),
|
|
916
1004
|
_: 2
|
|
917
|
-
}, 1024)) : t.view.end === "count" ? (R(), E("span",
|
|
918
|
-
], 10,
|
|
1005
|
+
}, 1024)) : t.view.end === "count" ? (R(), E("span", zi, W(t.item.count), 1)) : T("", !0)
|
|
1006
|
+
], 10, Ni))], 64))), 128));
|
|
919
1007
|
}
|
|
920
|
-
}),
|
|
1008
|
+
}), Vi = ["id", "aria-label"], Hi = ["id", "aria-label"], Ui = /* @__PURE__ */ j({
|
|
921
1009
|
__name: "ContextMenu",
|
|
922
1010
|
props: {
|
|
923
1011
|
x: {},
|
|
@@ -937,22 +1025,22 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
937
1025
|
},
|
|
938
1026
|
emits: ["close", "step"],
|
|
939
1027
|
setup(e, { emit: t }) {
|
|
940
|
-
let n = e, r = t, i = U(null), a = U(null), o =
|
|
1028
|
+
let n = e, r = t, i = U(null), a = U(null), o = wt(), s = z({
|
|
941
1029
|
left: n.x,
|
|
942
1030
|
top: n.y
|
|
943
|
-
}), c = U(null), l = z(null), u = C(() =>
|
|
1031
|
+
}), c = U(null), l = z(null), u = C(() => Zn(n.items)), d = C(() => {
|
|
944
1032
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
945
|
-
return e && e !== "-" && !
|
|
946
|
-
}), f = C(() => d.value?.sub ?
|
|
1033
|
+
return e && e !== "-" && !Dt(e) && e.sub ? e : null;
|
|
1034
|
+
}), f = C(() => d.value?.sub ? Zn(d.value.sub) : null), p = () => ({
|
|
947
1035
|
width: innerWidth,
|
|
948
1036
|
height: innerHeight
|
|
949
1037
|
});
|
|
950
1038
|
function m(e) {
|
|
951
|
-
r("close"), e &&
|
|
1039
|
+
r("close"), e && Tn(n.opener ?? o);
|
|
952
1040
|
}
|
|
953
1041
|
function h() {
|
|
954
1042
|
let e = i.value;
|
|
955
|
-
e && (s.value =
|
|
1043
|
+
e && (s.value = pn(n.x, n.y, {
|
|
956
1044
|
width: e.offsetWidth,
|
|
957
1045
|
height: e.offsetHeight
|
|
958
1046
|
}, p(), n.above));
|
|
@@ -964,11 +1052,11 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
964
1052
|
], h, { flush: "post" });
|
|
965
1053
|
let g, _;
|
|
966
1054
|
L(() => {
|
|
967
|
-
h(), g =
|
|
1055
|
+
h(), g = nt(m), _ = rt(() => [
|
|
968
1056
|
i.value,
|
|
969
1057
|
a.value,
|
|
970
1058
|
n.opener
|
|
971
|
-
], () => m(!1)), i.value && n.fromEnd ?
|
|
1059
|
+
], () => m(!1)), i.value && n.fromEnd ? xt(i.value, "last") : i.value && bt(i.value);
|
|
972
1060
|
}), De(() => {
|
|
973
1061
|
g?.(), _?.();
|
|
974
1062
|
}), J(c, (e) => {
|
|
@@ -976,34 +1064,34 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
976
1064
|
let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
|
|
977
1065
|
if (!e || !t || !n) return;
|
|
978
1066
|
let r = getComputedStyle(i.value).direction === "rtl";
|
|
979
|
-
l.value =
|
|
1067
|
+
l.value = mn(t.getBoundingClientRect(), {
|
|
980
1068
|
width: n.offsetWidth,
|
|
981
1069
|
height: n.offsetHeight
|
|
982
|
-
}, p(), r), e.focus &&
|
|
1070
|
+
}, p(), r), e.focus && bt(n);
|
|
983
1071
|
}, { flush: "post" });
|
|
984
1072
|
function v(e, t) {
|
|
985
1073
|
let n = e[t];
|
|
986
|
-
n !== "-" && (
|
|
1074
|
+
n !== "-" && (Dt(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
|
|
987
1075
|
at: t,
|
|
988
1076
|
focus: !0
|
|
989
|
-
} : (
|
|
1077
|
+
} : (Ut(n).staysOpen || m(!0), n.onSelect?.()));
|
|
990
1078
|
}
|
|
991
1079
|
function ee(e, t) {
|
|
992
1080
|
if (e.key === "Tab") return m(!1);
|
|
993
1081
|
let n = e.currentTarget;
|
|
994
|
-
if (
|
|
995
|
-
|
|
1082
|
+
if (kt(e)) {
|
|
1083
|
+
St(n, e.key) && e.preventDefault();
|
|
996
1084
|
return;
|
|
997
1085
|
}
|
|
998
|
-
let a =
|
|
1086
|
+
let a = Ht(e.key, getComputedStyle(n).direction === "rtl");
|
|
999
1087
|
if (!a) return;
|
|
1000
|
-
if (e.preventDefault(), a !== "in" && a !== "out") return
|
|
1088
|
+
if (e.preventDefault(), a !== "in" && a !== "out") return xt(n, a);
|
|
1001
1089
|
if (t) {
|
|
1002
1090
|
a === "out" && c.value && (i.value?.querySelector(`[data-row="${c.value.at}"]`)?.focus(), c.value = null);
|
|
1003
1091
|
return;
|
|
1004
1092
|
}
|
|
1005
1093
|
let o = Number(document.activeElement?.dataset.row), s = u.value[o];
|
|
1006
|
-
a === "in" && s && s !== "-" && !
|
|
1094
|
+
a === "in" && s && s !== "-" && !Dt(s) && s.sub && !s.disabled ? c.value = {
|
|
1007
1095
|
at: o,
|
|
1008
1096
|
focus: !0
|
|
1009
1097
|
} : r("step", a === "in" ? 1 : -1);
|
|
@@ -1011,13 +1099,13 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1011
1099
|
function te(e) {
|
|
1012
1100
|
let t = e.target.closest("[data-row]");
|
|
1013
1101
|
if (!t) return;
|
|
1014
|
-
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !
|
|
1102
|
+
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !Dt(r) && !!r.sub && !r.disabled;
|
|
1015
1103
|
i && c.value?.at !== n ? c.value = {
|
|
1016
1104
|
at: n,
|
|
1017
1105
|
focus: !1
|
|
1018
1106
|
} : !i && c.value && (c.value = null);
|
|
1019
1107
|
}
|
|
1020
|
-
return (t, n) => (R(), w(Se, { to: G(
|
|
1108
|
+
return (t, n) => (R(), w(Se, { to: G(hn)() }, [D("div", {
|
|
1021
1109
|
id: e.id,
|
|
1022
1110
|
ref_key: "menu",
|
|
1023
1111
|
ref: i,
|
|
@@ -1032,11 +1120,11 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1032
1120
|
onKeydown: n[1] ||= (e) => ee(e, !1),
|
|
1033
1121
|
onMouseover: te,
|
|
1034
1122
|
onContextmenu: n[2] ||= X(() => {}, ["prevent"])
|
|
1035
|
-
}, [A(
|
|
1123
|
+
}, [A(Bi, {
|
|
1036
1124
|
entries: u.value,
|
|
1037
1125
|
"open-at": c.value?.at,
|
|
1038
1126
|
onPick: n[0] ||= (e) => v(u.value, e)
|
|
1039
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
1127
|
+
}, null, 8, ["entries", "open-at"])], 44, Vi), f.value ? (R(), E("div", {
|
|
1040
1128
|
key: 0,
|
|
1041
1129
|
id: d.value?.subId,
|
|
1042
1130
|
ref_key: "subMenu",
|
|
@@ -1050,15 +1138,15 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1050
1138
|
}),
|
|
1051
1139
|
onKeydown: n[4] ||= (e) => ee(e, !0),
|
|
1052
1140
|
onContextmenu: n[5] ||= X(() => {}, ["prevent"])
|
|
1053
|
-
}, [A(
|
|
1141
|
+
}, [A(Bi, {
|
|
1054
1142
|
entries: f.value,
|
|
1055
1143
|
onPick: n[3] ||= (e) => v(f.value, e)
|
|
1056
|
-
}, null, 8, ["entries"])], 44,
|
|
1144
|
+
}, null, 8, ["entries"])], 44, Hi)) : T("", !0)], 8, ["to"]));
|
|
1057
1145
|
}
|
|
1058
|
-
}),
|
|
1146
|
+
}), Wi = ["value", "aria-label"], Gi = {
|
|
1059
1147
|
role: "status",
|
|
1060
1148
|
class: "glim-sr-only"
|
|
1061
|
-
},
|
|
1149
|
+
}, Ki = /* @__PURE__ */ j({
|
|
1062
1150
|
__name: "CopyField",
|
|
1063
1151
|
props: {
|
|
1064
1152
|
value: {},
|
|
@@ -1074,12 +1162,12 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1074
1162
|
let n = e, r = t, i = x(() => n.label), a = z(!1), o = U(null), s;
|
|
1075
1163
|
I(() => clearTimeout(s));
|
|
1076
1164
|
async function c() {
|
|
1077
|
-
let e = await
|
|
1078
|
-
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1,
|
|
1165
|
+
let e = await lt(n.value);
|
|
1166
|
+
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, Ue)) : (o.value?.focus(), o.value?.select());
|
|
1079
1167
|
}
|
|
1080
1168
|
return (t, n) => (R(), E("span", {
|
|
1081
1169
|
"data-glim": "CopyField",
|
|
1082
|
-
class: P(["glim-copy", G(
|
|
1170
|
+
class: P(["glim-copy", G(gt)(e.width)])
|
|
1083
1171
|
}, [
|
|
1084
1172
|
D("input", {
|
|
1085
1173
|
ref_key: "field",
|
|
@@ -1089,7 +1177,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1089
1177
|
"aria-label": G(i),
|
|
1090
1178
|
spellcheck: "false",
|
|
1091
1179
|
class: "glim-input glim-input--mono"
|
|
1092
|
-
}, null, 8,
|
|
1180
|
+
}, null, 8, Wi),
|
|
1093
1181
|
A(f, {
|
|
1094
1182
|
label: a.value ? e.text.copied : e.text.copy,
|
|
1095
1183
|
"label-key": a.value ? "copied" : "copy",
|
|
@@ -1101,27 +1189,27 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1101
1189
|
"label-key",
|
|
1102
1190
|
"glyph"
|
|
1103
1191
|
]),
|
|
1104
|
-
D("span",
|
|
1192
|
+
D("span", Gi, W(a.value ? e.text.copied : ""), 1)
|
|
1105
1193
|
], 2));
|
|
1106
1194
|
}
|
|
1107
|
-
}),
|
|
1195
|
+
}), qi = ["data-glim-title"], Ji = { class: "glim-modal-head" }, Yi = {
|
|
1108
1196
|
id: "cryptodonate-title",
|
|
1109
1197
|
class: "glim-modal-title"
|
|
1110
|
-
},
|
|
1198
|
+
}, Xi = { class: "glim-give-body glim-give-body--scroll" }, Zi = { class: "glim-give-appeal" }, Qi = { class: "glim-give-intro" }, $i = { class: "glim-give-well" }, ea = {
|
|
1111
1199
|
dir: "ltr",
|
|
1112
1200
|
class: "glim-give-address"
|
|
1113
|
-
},
|
|
1201
|
+
}, ta = ["aria-label"], na = ["aria-selected", "onClick"], ra = {
|
|
1114
1202
|
key: 0,
|
|
1115
1203
|
class: "glim-give-note"
|
|
1116
|
-
},
|
|
1204
|
+
}, ia = ["aria-label"], aa = [
|
|
1117
1205
|
"aria-selected",
|
|
1118
1206
|
"aria-label",
|
|
1119
1207
|
"title",
|
|
1120
1208
|
"onClick"
|
|
1121
|
-
],
|
|
1209
|
+
], oa = {
|
|
1122
1210
|
key: 1,
|
|
1123
1211
|
class: "glim-give-ticker"
|
|
1124
|
-
},
|
|
1212
|
+
}, sa = { class: "glim-give-foot" }, ca = /* @__PURE__ */ j({
|
|
1125
1213
|
__name: "CryptoDonateDialog",
|
|
1126
1214
|
props: {
|
|
1127
1215
|
coins: {},
|
|
@@ -1140,7 +1228,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1140
1228
|
function d(e, t) {
|
|
1141
1229
|
let n = e.id !== i.coin.id && e.tile;
|
|
1142
1230
|
return {
|
|
1143
|
-
...
|
|
1231
|
+
...Et(t),
|
|
1144
1232
|
...n ? {
|
|
1145
1233
|
"--tile": e.tile.color,
|
|
1146
1234
|
"--tile-ink": e.tile.ink
|
|
@@ -1165,7 +1253,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1165
1253
|
"aria-labelledby": "cryptodonate-title",
|
|
1166
1254
|
class: "glim-modal-card glim-modal-card--wide"
|
|
1167
1255
|
}, [
|
|
1168
|
-
D("div",
|
|
1256
|
+
D("div", Ji, [D("h2", Yi, [A(e, {
|
|
1169
1257
|
tone: "heading",
|
|
1170
1258
|
size: "heading",
|
|
1171
1259
|
wrap: ""
|
|
@@ -1173,12 +1261,12 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1173
1261
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
1174
1262
|
_: 1
|
|
1175
1263
|
})])]),
|
|
1176
|
-
D("div",
|
|
1177
|
-
D("p",
|
|
1178
|
-
D("p",
|
|
1179
|
-
D("div",
|
|
1264
|
+
D("div", Xi, [
|
|
1265
|
+
D("p", Zi, W(t.text.appeal), 1),
|
|
1266
|
+
D("p", Qi, W(t.text.intro), 1),
|
|
1267
|
+
D("div", $i, [
|
|
1180
1268
|
V(n.$slots, "qr", { value: t.network.address }),
|
|
1181
|
-
D("p",
|
|
1269
|
+
D("p", ea, W(t.network.address), 1),
|
|
1182
1270
|
D("div", {
|
|
1183
1271
|
class: "glim-give-networks",
|
|
1184
1272
|
role: "listbox",
|
|
@@ -1188,11 +1276,11 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1188
1276
|
type: "button",
|
|
1189
1277
|
role: "option",
|
|
1190
1278
|
"aria-selected": e.id === t.network.id,
|
|
1191
|
-
style: F(G(
|
|
1279
|
+
style: F(G(Et)(n)),
|
|
1192
1280
|
class: P(e.id === t.network.id ? "glim-give-network glim-hue glim-active" : "glim-give-network glim-hue"),
|
|
1193
1281
|
onClick: (n) => a("pick", t.coin, e)
|
|
1194
|
-
}, W(e.name), 15,
|
|
1195
|
-
t.network.note ? (R(), E("p",
|
|
1282
|
+
}, W(e.name), 15, na))), 128))], 8, ta),
|
|
1283
|
+
t.network.note ? (R(), E("p", ra, W(t.network.note), 1)) : T("", !0),
|
|
1196
1284
|
A(f, {
|
|
1197
1285
|
label: t.text.copyLabel,
|
|
1198
1286
|
"label-key": "common.copy",
|
|
@@ -1215,17 +1303,17 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1215
1303
|
style: F(d(e, r)),
|
|
1216
1304
|
class: P(p(e)),
|
|
1217
1305
|
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",
|
|
1306
|
+
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span", oa, W(e.symbol), 1)) : T("", !0)], 14, aa))), 128))], 8, ia)
|
|
1219
1307
|
]),
|
|
1220
|
-
D("div",
|
|
1308
|
+
D("div", sa, [A(f, {
|
|
1221
1309
|
label: t.text.closeLabel,
|
|
1222
1310
|
"label-key": "common.close",
|
|
1223
1311
|
tone: "neutral",
|
|
1224
1312
|
onClick: r[1] ||= (e) => a("close")
|
|
1225
1313
|
}, null, 8, ["label"])])
|
|
1226
|
-
], 8,
|
|
1314
|
+
], 8, qi)]));
|
|
1227
1315
|
}
|
|
1228
|
-
}),
|
|
1316
|
+
}), la = ["aria-multiselectable", "aria-label"], ua = 4, da = /* @__PURE__ */ j({
|
|
1229
1317
|
__name: "DropdownListbox",
|
|
1230
1318
|
props: {
|
|
1231
1319
|
open: { type: Boolean },
|
|
@@ -1236,7 +1324,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1236
1324
|
emits: ["close"],
|
|
1237
1325
|
setup(e, { emit: t }) {
|
|
1238
1326
|
let n = e;
|
|
1239
|
-
|
|
1327
|
+
or("DropdownListbox");
|
|
1240
1328
|
let r = t, i = U(null), a = U(null), o = ye(() => n.open, je(n, "triggerRef")), s = !1;
|
|
1241
1329
|
J(() => n.open, (e) => {
|
|
1242
1330
|
e || (s = !!i.value?.contains(document.activeElement));
|
|
@@ -1250,10 +1338,10 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1250
1338
|
let r = {
|
|
1251
1339
|
width: document.documentElement.clientWidth || window.innerWidth,
|
|
1252
1340
|
height: document.documentElement.clientHeight || window.innerHeight
|
|
1253
|
-
}, { left: o, top: s } =
|
|
1341
|
+
}, { left: o, top: s } = ot(t, {
|
|
1254
1342
|
width: t.width,
|
|
1255
1343
|
height: i.value.offsetHeight
|
|
1256
|
-
}, r,
|
|
1344
|
+
}, r, ua);
|
|
1257
1345
|
a.value = {
|
|
1258
1346
|
left: o,
|
|
1259
1347
|
top: s,
|
|
@@ -1289,8 +1377,8 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1289
1377
|
flush: "post"
|
|
1290
1378
|
}), Ee(() => m());
|
|
1291
1379
|
function g(e) {
|
|
1292
|
-
if (
|
|
1293
|
-
|
|
1380
|
+
if (kt(e)) {
|
|
1381
|
+
vt(c(), e.key) && e.preventDefault();
|
|
1294
1382
|
return;
|
|
1295
1383
|
}
|
|
1296
1384
|
if (![
|
|
@@ -1313,7 +1401,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1313
1401
|
}
|
|
1314
1402
|
return (t, n) => e.open ? (R(), w(Se, {
|
|
1315
1403
|
key: 0,
|
|
1316
|
-
to: G(
|
|
1404
|
+
to: G(hn)()
|
|
1317
1405
|
}, [D("div", {
|
|
1318
1406
|
ref_key: "panel",
|
|
1319
1407
|
ref: i,
|
|
@@ -1334,16 +1422,16 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1334
1422
|
...G(o).style.value
|
|
1335
1423
|
}),
|
|
1336
1424
|
onKeydown: g
|
|
1337
|
-
}, [V(t.$slots, "default")], 46,
|
|
1425
|
+
}, [V(t.$slots, "default")], 46, la)], 8, ["to"])) : T("", !0);
|
|
1338
1426
|
}
|
|
1339
|
-
}),
|
|
1427
|
+
}), fa = ["data-glim-title"], pa = {
|
|
1340
1428
|
key: 0,
|
|
1341
1429
|
class: "glim-empty-glyph",
|
|
1342
1430
|
"aria-hidden": "true"
|
|
1343
|
-
},
|
|
1431
|
+
}, ma = { class: "glim-empty-title" }, ha = {
|
|
1344
1432
|
key: 1,
|
|
1345
1433
|
class: "glim-empty-hint"
|
|
1346
|
-
},
|
|
1434
|
+
}, ga = /* @__PURE__ */ j({
|
|
1347
1435
|
__name: "EmptyState",
|
|
1348
1436
|
props: {
|
|
1349
1437
|
glyph: {},
|
|
@@ -1360,13 +1448,13 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1360
1448
|
"data-glim-title": e.title,
|
|
1361
1449
|
class: P(e.nested ? "glim-empty" : "glim-card glim-empty")
|
|
1362
1450
|
}, [
|
|
1363
|
-
e.glyph ? (R(), E("span",
|
|
1364
|
-
D("p",
|
|
1365
|
-
e.hint ? (R(), E("p",
|
|
1451
|
+
e.glyph ? (R(), E("span", pa, [(R(), w(H(e.glyph)))])) : T("", !0),
|
|
1452
|
+
D("p", ma, W(e.title), 1),
|
|
1453
|
+
e.hint ? (R(), E("p", ha, W(e.hint), 1)) : T("", !0),
|
|
1366
1454
|
V(t.$slots, "default")
|
|
1367
|
-
], 10,
|
|
1455
|
+
], 10, fa));
|
|
1368
1456
|
}
|
|
1369
|
-
}),
|
|
1457
|
+
}), _a = ["id"], va = /* @__PURE__ */ j({
|
|
1370
1458
|
__name: "FieldError",
|
|
1371
1459
|
props: { id: {} },
|
|
1372
1460
|
setup(e) {
|
|
@@ -1374,22 +1462,22 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1374
1462
|
"data-glim": "FieldError",
|
|
1375
1463
|
id: e.id,
|
|
1376
1464
|
class: "glim-field-error"
|
|
1377
|
-
}, [A(G(m), { mark: G(
|
|
1465
|
+
}, [A(G(m), { mark: G(Ye).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8, _a));
|
|
1378
1466
|
}
|
|
1379
|
-
}),
|
|
1467
|
+
}), ya = /* @__PURE__ */ j({
|
|
1380
1468
|
__name: "Pill",
|
|
1381
1469
|
props: { tone: { default: "neutral" } },
|
|
1382
1470
|
setup(e) {
|
|
1383
|
-
let t = e, n = C(() =>
|
|
1471
|
+
let t = e, n = C(() => fn(t.tone));
|
|
1384
1472
|
return (e, t) => (R(), E("span", {
|
|
1385
1473
|
"data-glim": "Pill",
|
|
1386
1474
|
class: P(n.value)
|
|
1387
1475
|
}, [V(e.$slots, "default")], 2));
|
|
1388
1476
|
}
|
|
1389
|
-
}),
|
|
1477
|
+
}), ba = { class: "glim-field-row-name" }, xa = {
|
|
1390
1478
|
key: 0,
|
|
1391
1479
|
class: "glim-field-row-controls"
|
|
1392
|
-
},
|
|
1480
|
+
}, Sa = /* @__PURE__ */ j({
|
|
1393
1481
|
__name: "FieldRow",
|
|
1394
1482
|
props: {
|
|
1395
1483
|
label: {},
|
|
@@ -1407,20 +1495,20 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1407
1495
|
ref: r,
|
|
1408
1496
|
"data-glim": "FieldRow",
|
|
1409
1497
|
class: P(["glim-field-row", { "glim-field-row--wide": e.wide }])
|
|
1410
|
-
}, [D("span",
|
|
1498
|
+
}, [D("span", ba, [D("span", {
|
|
1411
1499
|
class: "glim-field-row-label",
|
|
1412
|
-
onClick: i[0] ||= (e) => G(
|
|
1500
|
+
onClick: i[0] ||= (e) => G(_n)(r.value)
|
|
1413
1501
|
}, [V(t.$slots, "label", {}, () => [k(W(e.label), 1)])]), e.hint ? (R(), w(Q, {
|
|
1414
1502
|
key: 0,
|
|
1415
1503
|
tip: e.hint
|
|
1416
|
-
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span",
|
|
1504
|
+
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span", xa, [V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(ya, {
|
|
1417
1505
|
key: 0,
|
|
1418
1506
|
class: "glim-num",
|
|
1419
1507
|
tone: e.tone
|
|
1420
1508
|
}, {
|
|
1421
1509
|
default: Y(() => [k(W(e.value), 1)]),
|
|
1422
1510
|
_: 1
|
|
1423
|
-
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(
|
|
1511
|
+
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(ya, {
|
|
1424
1512
|
key: 0,
|
|
1425
1513
|
class: "glim-num",
|
|
1426
1514
|
tone: e.tone
|
|
@@ -1429,7 +1517,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1429
1517
|
_: 1
|
|
1430
1518
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
1431
1519
|
}
|
|
1432
|
-
}),
|
|
1520
|
+
}), Ca = /* @__PURE__ */ j({
|
|
1433
1521
|
__name: "FieldRowGroup",
|
|
1434
1522
|
props: { columns: {} },
|
|
1435
1523
|
setup(e) {
|
|
@@ -1439,13 +1527,13 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1439
1527
|
style: F(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
1440
1528
|
}, [V(t.$slots, "default")], 4));
|
|
1441
1529
|
}
|
|
1442
|
-
}),
|
|
1530
|
+
}), wa = {
|
|
1443
1531
|
key: 0,
|
|
1444
1532
|
class: "glim-modal-foot"
|
|
1445
|
-
},
|
|
1533
|
+
}, Ta = {
|
|
1446
1534
|
key: 0,
|
|
1447
1535
|
class: "glim-window-start"
|
|
1448
|
-
},
|
|
1536
|
+
}, Ea = /* @__PURE__ */ j({
|
|
1449
1537
|
__name: "WindowFootRow",
|
|
1450
1538
|
props: {
|
|
1451
1539
|
actions: {},
|
|
@@ -1455,7 +1543,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1455
1543
|
},
|
|
1456
1544
|
emits: ["close"],
|
|
1457
1545
|
setup(e, { emit: t }) {
|
|
1458
|
-
let n = e, r = t, i = C(() =>
|
|
1546
|
+
let n = e, r = t, i = C(() => lr(n.actions, n.hasStart, {
|
|
1459
1547
|
cancel: {
|
|
1460
1548
|
label: n.text.cancel,
|
|
1461
1549
|
labelKey: "common.cancel",
|
|
@@ -1472,7 +1560,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1472
1560
|
function a(e) {
|
|
1473
1561
|
e.onClick?.() !== !1 && r("close");
|
|
1474
1562
|
}
|
|
1475
|
-
return (t, n) => i.value.length ? (R(), E("div",
|
|
1563
|
+
return (t, n) => i.value.length ? (R(), E("div", wa, [e.hasStart ? (R(), E("span", Ta, [V(t.$slots, "start", {}, () => [k(W(e.start), 1)])])) : T("", !0), (R(!0), E(S, null, B(i.value, (e, t) => (R(), w(f, N({ ref_for: !0 }, e.attrs, {
|
|
1476
1564
|
key: t,
|
|
1477
1565
|
label: e.label,
|
|
1478
1566
|
"label-key": e.labelKey,
|
|
@@ -1493,11 +1581,11 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1493
1581
|
"onClick"
|
|
1494
1582
|
]))), 128))])) : T("", !0);
|
|
1495
1583
|
}
|
|
1496
|
-
}),
|
|
1584
|
+
}), Da = [
|
|
1497
1585
|
"data-glim-title",
|
|
1498
1586
|
"aria-labelledby",
|
|
1499
1587
|
"aria-label"
|
|
1500
|
-
],
|
|
1588
|
+
], Oa = ["id"], ka = { class: "glim-modal-body glim-window-body" }, Aa = /* @__PURE__ */ j({
|
|
1501
1589
|
inheritAttrs: !1,
|
|
1502
1590
|
__name: "Window",
|
|
1503
1591
|
props: {
|
|
@@ -1513,19 +1601,19 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1513
1601
|
},
|
|
1514
1602
|
emits: ["close"],
|
|
1515
1603
|
setup(t, { expose: n, emit: r }) {
|
|
1516
|
-
let i = t, a = r, o = Ne(), s = U(null), c = K(), l =
|
|
1604
|
+
let i = t, a = r, o = Ne(), s = U(null), c = K(), l = wt(), u = C(() => i.start !== void 0 || !!o.start), d;
|
|
1517
1605
|
function f() {
|
|
1518
1606
|
d?.(), a("close");
|
|
1519
1607
|
}
|
|
1520
1608
|
L(() => {
|
|
1521
|
-
d =
|
|
1609
|
+
d = Un(() => s.value, f), s.value && cr(s.value)?.focus();
|
|
1522
1610
|
}), De(() => {
|
|
1523
|
-
d?.(),
|
|
1611
|
+
d?.(), Tn(l);
|
|
1524
1612
|
}), n({ card: s });
|
|
1525
1613
|
function p() {
|
|
1526
|
-
i.closeOnBackdrop && !
|
|
1614
|
+
i.closeOnBackdrop && !Vt() && f();
|
|
1527
1615
|
}
|
|
1528
|
-
return (n, r) => (R(), w(Se, { to: G(
|
|
1616
|
+
return (n, r) => (R(), w(Se, { to: G(hn)() }, [D("div", {
|
|
1529
1617
|
class: "glim-modal-backdrop",
|
|
1530
1618
|
onMousedown: X(p, ["self"])
|
|
1531
1619
|
}, [D("div", N({
|
|
@@ -1555,9 +1643,9 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1555
1643
|
}, {
|
|
1556
1644
|
default: Y(() => [V(n.$slots, "title", {}, () => [k(W(t.title), 1)])]),
|
|
1557
1645
|
_: 3
|
|
1558
|
-
})], 8,
|
|
1559
|
-
D("div",
|
|
1560
|
-
A(
|
|
1646
|
+
})], 8, Oa),
|
|
1647
|
+
D("div", ka, [V(n.$slots, "default")]),
|
|
1648
|
+
A(Ea, {
|
|
1561
1649
|
actions: t.actions,
|
|
1562
1650
|
start: t.start,
|
|
1563
1651
|
"has-start": u.value,
|
|
@@ -1573,9 +1661,9 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1573
1661
|
"has-start",
|
|
1574
1662
|
"text"
|
|
1575
1663
|
])
|
|
1576
|
-
], 16,
|
|
1664
|
+
], 16, Da)], 32)], 8, ["to"]));
|
|
1577
1665
|
}
|
|
1578
|
-
}),
|
|
1666
|
+
}), ja = { class: "glim-fortress-text" }, Ma = /* @__PURE__ */ j({
|
|
1579
1667
|
__name: "FortressDoubtWindow",
|
|
1580
1668
|
props: {
|
|
1581
1669
|
app: {},
|
|
@@ -1585,14 +1673,14 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1585
1673
|
onClose: { type: Function }
|
|
1586
1674
|
},
|
|
1587
1675
|
setup(e) {
|
|
1588
|
-
let t = e, n = C(() =>
|
|
1676
|
+
let t = e, n = C(() => mt(t.text, t.app, t.instance)), r = C(() => [{
|
|
1589
1677
|
label: n.value.open,
|
|
1590
1678
|
labelKey: "open",
|
|
1591
1679
|
primary: !0,
|
|
1592
1680
|
attrs: { "data-fortress": "open-anyway" },
|
|
1593
1681
|
onClick: () => t.onOpen()
|
|
1594
1682
|
}]);
|
|
1595
|
-
return (t, i) => (R(), w(
|
|
1683
|
+
return (t, i) => (R(), w(Aa, {
|
|
1596
1684
|
"data-glim": "FortressDoubtWindow",
|
|
1597
1685
|
title: n.value.title,
|
|
1598
1686
|
actions: r.value,
|
|
@@ -1602,7 +1690,7 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1602
1690
|
},
|
|
1603
1691
|
onClose: i[0] ||= (t) => e.onClose()
|
|
1604
1692
|
}, {
|
|
1605
|
-
default: Y(() => [D("div",
|
|
1693
|
+
default: Y(() => [D("div", ja, [D("p", null, W(n.value.body), 1)])]),
|
|
1606
1694
|
_: 1
|
|
1607
1695
|
}, 8, [
|
|
1608
1696
|
"title",
|
|
@@ -1610,32 +1698,32 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1610
1698
|
"text"
|
|
1611
1699
|
]));
|
|
1612
1700
|
}
|
|
1613
|
-
}),
|
|
1701
|
+
}), Na = ["data-glim-title"], Pa = { class: "glim-instance-top" }, Fa = {
|
|
1614
1702
|
key: 0,
|
|
1615
1703
|
class: "glim-instance-mark",
|
|
1616
1704
|
"aria-hidden": "true"
|
|
1617
|
-
},
|
|
1705
|
+
}, Ia = ["src"], La = { class: "glim-instance-main" }, Ra = { class: "glim-instance-name" }, za = { class: "glim-instance-title" }, Ba = {
|
|
1618
1706
|
key: 0,
|
|
1619
1707
|
class: "glim-instance-badges"
|
|
1620
|
-
},
|
|
1708
|
+
}, Va = {
|
|
1621
1709
|
key: 0,
|
|
1622
1710
|
class: "glim-eyebrow"
|
|
1623
|
-
},
|
|
1711
|
+
}, Ha = {
|
|
1624
1712
|
key: 1,
|
|
1625
1713
|
class: "glim-instance-facts glim-num"
|
|
1626
|
-
},
|
|
1714
|
+
}, Ua = {
|
|
1627
1715
|
key: 2,
|
|
1628
1716
|
class: "glim-instance-figures"
|
|
1629
|
-
},
|
|
1717
|
+
}, Wa = { class: "glim-num" }, Ga = {
|
|
1630
1718
|
key: 3,
|
|
1631
1719
|
class: "glim-instance-acts"
|
|
1632
|
-
},
|
|
1720
|
+
}, Ka = {
|
|
1633
1721
|
key: 0,
|
|
1634
1722
|
class: "glim-instance-body"
|
|
1635
|
-
},
|
|
1723
|
+
}, qa = {
|
|
1636
1724
|
key: 1,
|
|
1637
1725
|
class: "glim-instance-acts"
|
|
1638
|
-
},
|
|
1726
|
+
}, Ja = /* @__PURE__ */ j({
|
|
1639
1727
|
__name: "InstanceCard",
|
|
1640
1728
|
props: {
|
|
1641
1729
|
logo: {},
|
|
@@ -1646,34 +1734,34 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1646
1734
|
hueIndex: {}
|
|
1647
1735
|
},
|
|
1648
1736
|
setup(e) {
|
|
1649
|
-
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 :
|
|
1737
|
+
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 : Et(t.hueIndex));
|
|
1650
1738
|
return (t, i) => (R(), E("div", {
|
|
1651
1739
|
"data-glim": "InstanceCard",
|
|
1652
1740
|
"data-glim-title": e.name,
|
|
1653
1741
|
class: P(["glim-card glim-instance", e.hueIndex !== void 0 && "glim-hue"]),
|
|
1654
1742
|
style: F(r.value)
|
|
1655
1743
|
}, [
|
|
1656
|
-
D("div",
|
|
1744
|
+
D("div", Pa, [t.$slots.logo ? (R(), E("span", Fa, [V(t.$slots, "logo")])) : e.logo ? (R(), E("img", {
|
|
1657
1745
|
key: 1,
|
|
1658
1746
|
class: "glim-instance-mark",
|
|
1659
1747
|
src: e.logo,
|
|
1660
1748
|
alt: "",
|
|
1661
1749
|
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",
|
|
1750
|
+
}, null, 8, Ia)) : T("", !0), D("div", La, [
|
|
1751
|
+
D("div", Ra, [D("h3", za, W(e.name), 1), t.$slots.badges ? (R(), E("span", Ba, [V(t.$slots, "badges")])) : T("", !0)]),
|
|
1752
|
+
e.eyebrow ? (R(), E("span", Va, W(e.eyebrow), 1)) : T("", !0),
|
|
1753
|
+
n.value ? (R(), E("p", Ha, W(n.value), 1)) : T("", !0),
|
|
1754
|
+
e.figures?.length ? (R(), E("dl", Ua, [(R(!0), E(S, null, B(e.figures, (e) => (R(), E("div", { key: e.label }, [D("dt", null, W(e.label), 1), D("dd", Wa, W(e.value), 1)]))), 128))])) : T("", !0),
|
|
1755
|
+
t.$slots.actions && !t.$slots.default ? (R(), E("div", Ga, [V(t.$slots, "actions")])) : T("", !0)
|
|
1668
1756
|
])]),
|
|
1669
|
-
t.$slots.default ? (R(), E("div",
|
|
1670
|
-
t.$slots.actions && t.$slots.default ? (R(), E("div",
|
|
1671
|
-
], 14,
|
|
1757
|
+
t.$slots.default ? (R(), E("div", Ka, [V(t.$slots, "default")])) : T("", !0),
|
|
1758
|
+
t.$slots.actions && t.$slots.default ? (R(), E("div", qa, [V(t.$slots, "actions")])) : T("", !0)
|
|
1759
|
+
], 14, Na));
|
|
1672
1760
|
}
|
|
1673
|
-
}),
|
|
1761
|
+
}), Ya = {
|
|
1674
1762
|
"data-glim": "PresenceBadges",
|
|
1675
1763
|
style: { display: "contents" }
|
|
1676
|
-
},
|
|
1764
|
+
}, Xa = /* @__PURE__ */ j({
|
|
1677
1765
|
__name: "PresenceBadges",
|
|
1678
1766
|
props: {
|
|
1679
1767
|
instance: {},
|
|
@@ -1685,24 +1773,24 @@ var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1685
1773
|
checking: n.text.checking,
|
|
1686
1774
|
away: n.text.away
|
|
1687
1775
|
})[n.instance.presence];
|
|
1688
|
-
return (n, i) => (R(), E("span",
|
|
1776
|
+
return (n, i) => (R(), E("span", Ya, [t.instance.relay ? (R(), w(e, { key: 0 }, {
|
|
1689
1777
|
default: Y(() => [k(W(t.text.viaRelay), 1)]),
|
|
1690
1778
|
_: 1
|
|
1691
|
-
})) : T("", !0), A(e, { tone: G(
|
|
1779
|
+
})) : T("", !0), A(e, { tone: G(gn)(t.instance.presence) }, {
|
|
1692
1780
|
default: Y(() => [k(W(r()), 1)]),
|
|
1693
1781
|
_: 1
|
|
1694
1782
|
}, 8, ["tone"])]));
|
|
1695
1783
|
}
|
|
1696
1784
|
});
|
|
1697
1785
|
// src/fortressParts.ts
|
|
1698
|
-
function
|
|
1786
|
+
function Za(e) {
|
|
1699
1787
|
return e ? p(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
|
|
1700
1788
|
}
|
|
1701
1789
|
// src/FortressAppCard.vue?vue&type=script&setup=true&lang.ts
|
|
1702
|
-
var
|
|
1790
|
+
var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
1703
1791
|
class: "glim-instance-device",
|
|
1704
1792
|
"aria-hidden": "true"
|
|
1705
|
-
},
|
|
1793
|
+
}, to = { class: "glim-instance-row-text" }, no = { class: "glim-instance-row-name" }, ro = { class: "glim-instance-row-sub glim-num" }, io = { class: "glim-instance-row-end" }, ao = /* @__PURE__ */ j({
|
|
1706
1794
|
inheritAttrs: !1,
|
|
1707
1795
|
__name: "FortressAppCard",
|
|
1708
1796
|
props: {
|
|
@@ -1715,15 +1803,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1715
1803
|
removeKey: { default: "delete" }
|
|
1716
1804
|
},
|
|
1717
1805
|
setup(t) {
|
|
1718
|
-
let n = t, r = C(() =>
|
|
1806
|
+
let n = t, r = C(() => $e(n.app, n.text, n.lang)), i = C(() => r.value.rows.length === 0), a = (e) => ({
|
|
1719
1807
|
connected: n.text.connected,
|
|
1720
1808
|
checking: n.text.checking,
|
|
1721
1809
|
away: n.text.away
|
|
1722
|
-
})[e.presence], o = (e) =>
|
|
1810
|
+
})[e.presence], o = (e) => Za(e.deviceKind), s = (e) => Bt(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
1811
|
function d(e) {
|
|
1724
|
-
e.doubt ? u.value = e :
|
|
1812
|
+
e.doubt ? u.value = e : Zt(n.app, e, n.onOpen);
|
|
1725
1813
|
}
|
|
1726
|
-
return (n, p) => (R(), E(S, null, [A(
|
|
1814
|
+
return (n, p) => (R(), E(S, null, [A(Ja, N(n.$attrs, {
|
|
1727
1815
|
"data-glim": "FortressAppCard",
|
|
1728
1816
|
"data-fortress-app": t.app.id,
|
|
1729
1817
|
logo: t.app.logo,
|
|
@@ -1750,7 +1838,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1750
1838
|
default: Y(() => [k(W(r.value.needs), 1)]),
|
|
1751
1839
|
_: 1
|
|
1752
1840
|
})) : T("", !0),
|
|
1753
|
-
A(
|
|
1841
|
+
A(Xa, {
|
|
1754
1842
|
instance: r.value.main,
|
|
1755
1843
|
text: t.text
|
|
1756
1844
|
}, null, 8, ["instance", "text"])
|
|
@@ -1758,15 +1846,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1758
1846
|
_: 2
|
|
1759
1847
|
}, [i.value ? void 0 : {
|
|
1760
1848
|
name: "default",
|
|
1761
|
-
fn: Y(() => [D("ul",
|
|
1849
|
+
fn: Y(() => [D("ul", Qa, [(R(!0), E(S, null, B(r.value.rows, ({ instance: n, sub: r, open: i }) => (R(), E("li", {
|
|
1762
1850
|
key: n.id,
|
|
1763
1851
|
class: "glim-instance-row",
|
|
1764
1852
|
"data-instance": n.id
|
|
1765
1853
|
}, [
|
|
1766
|
-
D("span",
|
|
1767
|
-
D("span",
|
|
1768
|
-
D("span",
|
|
1769
|
-
A(e, { tone: G(
|
|
1854
|
+
D("span", eo, [o(n) ? (R(), w(H(o(n)), { key: 0 })) : T("", !0)]),
|
|
1855
|
+
D("span", to, [D("span", no, W(n.device), 1), D("span", ro, W(r), 1)]),
|
|
1856
|
+
D("span", io, [
|
|
1857
|
+
A(e, { tone: G(gn)(n.presence) }, {
|
|
1770
1858
|
default: Y(() => [k(W(a(n)), 1)]),
|
|
1771
1859
|
_: 2
|
|
1772
1860
|
}, 1032, ["tone"]),
|
|
@@ -1802,7 +1890,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1802
1890
|
"onClick"
|
|
1803
1891
|
])) : T("", !0)
|
|
1804
1892
|
])
|
|
1805
|
-
], 8,
|
|
1893
|
+
], 8, $a))), 128))])]),
|
|
1806
1894
|
key: "0"
|
|
1807
1895
|
}, l.value ? {
|
|
1808
1896
|
name: "actions",
|
|
@@ -1833,12 +1921,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1833
1921
|
"eyebrow",
|
|
1834
1922
|
"facts",
|
|
1835
1923
|
"hue-index"
|
|
1836
|
-
]), u.value ? (R(), w(
|
|
1924
|
+
]), u.value ? (R(), w(Ma, {
|
|
1837
1925
|
key: 0,
|
|
1838
1926
|
app: t.app,
|
|
1839
1927
|
instance: u.value,
|
|
1840
1928
|
text: t.text,
|
|
1841
|
-
"on-open": () => G(
|
|
1929
|
+
"on-open": () => G(Zt)(t.app, u.value, t.onOpen),
|
|
1842
1930
|
"on-close": () => u.value = null
|
|
1843
1931
|
}, null, 8, [
|
|
1844
1932
|
"app",
|
|
@@ -1848,14 +1936,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1848
1936
|
"on-close"
|
|
1849
1937
|
])) : T("", !0)], 64));
|
|
1850
1938
|
}
|
|
1851
|
-
}),
|
|
1939
|
+
}), oo = [
|
|
1852
1940
|
"href",
|
|
1853
1941
|
"data-sel-id",
|
|
1854
1942
|
"aria-selected",
|
|
1855
1943
|
"aria-current",
|
|
1856
1944
|
"aria-describedby",
|
|
1857
1945
|
"tabindex"
|
|
1858
|
-
],
|
|
1946
|
+
], so = [
|
|
1859
1947
|
"data-sel-id",
|
|
1860
1948
|
"id",
|
|
1861
1949
|
"role",
|
|
@@ -1868,7 +1956,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1868
1956
|
"aria-hidden",
|
|
1869
1957
|
"disabled",
|
|
1870
1958
|
"tabindex"
|
|
1871
|
-
],
|
|
1959
|
+
], co = ["id"], lo = /* @__PURE__ */ j({
|
|
1872
1960
|
__name: "SelectorSegment",
|
|
1873
1961
|
props: {
|
|
1874
1962
|
item: {},
|
|
@@ -1892,7 +1980,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1892
1980
|
},
|
|
1893
1981
|
emits: ["select"],
|
|
1894
1982
|
setup(e, { emit: i }) {
|
|
1895
|
-
let a = e, o = i, s = C(() =>
|
|
1983
|
+
let a = e, o = i, s = C(() => kn({
|
|
1896
1984
|
strip: a.strip,
|
|
1897
1985
|
orientation: a.orientation,
|
|
1898
1986
|
size: a.size,
|
|
@@ -1942,7 +2030,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1942
2030
|
key: 1,
|
|
1943
2031
|
"data-sel-label": "",
|
|
1944
2032
|
class: P(s.value.labelClass)
|
|
1945
|
-
}, W(e.item.label), 3))], 16,
|
|
2033
|
+
}, W(e.item.label), 3))], 16, oo)) : (R(), E(S, { key: 1 }, [A(G(r), N({
|
|
1946
2034
|
on: u.value,
|
|
1947
2035
|
show: G(c).show,
|
|
1948
2036
|
hide: G(c).hide
|
|
@@ -1951,7 +2039,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1951
2039
|
ref: m,
|
|
1952
2040
|
type: "button",
|
|
1953
2041
|
"data-sel-id": e.item.id,
|
|
1954
|
-
id: e.panelId && f.value ? G(
|
|
2042
|
+
id: e.panelId && f.value ? G(Pn)(e.panelId, e.item.id) : void 0,
|
|
1955
2043
|
role: e.strip.kind === "toggle" ? void 0 : e.strip.kind,
|
|
1956
2044
|
"aria-selected": f.value ? e.on : void 0,
|
|
1957
2045
|
"aria-controls": e.panelId && f.value && e.on ? e.panelId : void 0,
|
|
@@ -1973,7 +2061,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1973
2061
|
key: 1,
|
|
1974
2062
|
"data-sel-label": "",
|
|
1975
2063
|
class: P(s.value.labelClass)
|
|
1976
|
-
}, W(e.item.label), 3))], 16,
|
|
2064
|
+
}, W(e.item.label), 3))], 16, so)]),
|
|
1977
2065
|
_: 1
|
|
1978
2066
|
}, 16, [
|
|
1979
2067
|
"on",
|
|
@@ -1983,16 +2071,16 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
1983
2071
|
key: 0,
|
|
1984
2072
|
id: G(l),
|
|
1985
2073
|
hidden: ""
|
|
1986
|
-
}, W(s.value.tip), 9,
|
|
2074
|
+
}, W(s.value.tip), 9, co)) : T("", !0)], 64)), A(t, { state: G(c) }, null, 8, ["state"])], 64));
|
|
1987
2075
|
}
|
|
1988
|
-
}),
|
|
2076
|
+
}), uo = [
|
|
1989
2077
|
"role",
|
|
1990
2078
|
"aria-label",
|
|
1991
2079
|
"aria-orientation"
|
|
1992
|
-
],
|
|
2080
|
+
], fo = {
|
|
1993
2081
|
key: 0,
|
|
1994
2082
|
class: "glim-sel-list"
|
|
1995
|
-
},
|
|
2083
|
+
}, po = /* @__PURE__ */ j({
|
|
1996
2084
|
__name: "Selector",
|
|
1997
2085
|
props: {
|
|
1998
2086
|
items: {},
|
|
@@ -2038,10 +2126,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2038
2126
|
setup(e, { emit: t }) {
|
|
2039
2127
|
let n = e, r = t, i = C(() => n.modelValue);
|
|
2040
2128
|
function a(e) {
|
|
2041
|
-
let t = U(
|
|
2042
|
-
return Ee(
|
|
2129
|
+
let t = U(zt(e));
|
|
2130
|
+
return Ee(qn(e, () => t.value = zt(e))), t;
|
|
2043
2131
|
}
|
|
2044
|
-
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(
|
|
2132
|
+
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(jn(n.size, n.orientation)), u = a(Xe), d = C(() => Fn({
|
|
2045
2133
|
mode: c.value,
|
|
2046
2134
|
select: n.select === "many" ? "many" : "one",
|
|
2047
2135
|
activation: n.activation,
|
|
@@ -2066,7 +2154,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2066
2154
|
i && r(i);
|
|
2067
2155
|
}, { flush: "post" });
|
|
2068
2156
|
}
|
|
2069
|
-
g(() => d.value.counted, (e) => d.value.counted ?
|
|
2157
|
+
g(() => d.value.counted, (e) => d.value.counted ? ut(e) : void 0), g(() => [
|
|
2070
2158
|
n.orientation,
|
|
2071
2159
|
d.value.pinWidth,
|
|
2072
2160
|
n.fit,
|
|
@@ -2083,14 +2171,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2083
2171
|
return;
|
|
2084
2172
|
}
|
|
2085
2173
|
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
2086
|
-
return
|
|
2174
|
+
return sr(e, {
|
|
2087
2175
|
pinWidth: t,
|
|
2088
2176
|
fit: n.fit,
|
|
2089
2177
|
canSqueeze: r,
|
|
2090
2178
|
canList: i
|
|
2091
2179
|
}, (e) => p.value = e);
|
|
2092
2180
|
});
|
|
2093
|
-
let _ = C(() =>
|
|
2181
|
+
let _ = C(() => Mn({
|
|
2094
2182
|
layout: p.value,
|
|
2095
2183
|
inline: s.value,
|
|
2096
2184
|
fit: n.fit
|
|
@@ -2099,10 +2187,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2099
2187
|
label: e.label,
|
|
2100
2188
|
glyph: e.glyph,
|
|
2101
2189
|
disabled: b.value[t]
|
|
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, b = C(() => n.items.map((e) => n.disabled || !!e.disabled)), re = C(() =>
|
|
2190
|
+
}))), 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, b = C(() => n.items.map((e) => n.disabled || !!e.disabled)), re = C(() => Dn(b.value, n.items.findIndex((e) => ne(e.id))));
|
|
2103
2191
|
function ie(e) {
|
|
2104
2192
|
r("press", e);
|
|
2105
|
-
let t = y.value ?
|
|
2193
|
+
let t = y.value ? $n(i.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
2106
2194
|
t !== i.value && r("update:modelValue", t);
|
|
2107
2195
|
}
|
|
2108
2196
|
function ae(e) {
|
|
@@ -2116,7 +2204,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2116
2204
|
e.preventDefault(), t.click();
|
|
2117
2205
|
return;
|
|
2118
2206
|
}
|
|
2119
|
-
let r =
|
|
2207
|
+
let r = En(f.value, e.key, n.orientation);
|
|
2120
2208
|
if (!r) return;
|
|
2121
2209
|
e.preventDefault();
|
|
2122
2210
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
@@ -2132,7 +2220,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2132
2220
|
class: P([d.value.className, { "glim-sel--listed": v.value }]),
|
|
2133
2221
|
style: F(_.value.track),
|
|
2134
2222
|
onKeydown: oe
|
|
2135
|
-
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(
|
|
2223
|
+
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(lo, {
|
|
2136
2224
|
key: t.id,
|
|
2137
2225
|
item: t,
|
|
2138
2226
|
index: n,
|
|
@@ -2173,7 +2261,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2173
2261
|
"hue-offset",
|
|
2174
2262
|
"panel-id",
|
|
2175
2263
|
"onSelect"
|
|
2176
|
-
]))), 128)), v.value ? (R(), E("div",
|
|
2264
|
+
]))), 128)), v.value ? (R(), E("div", fo, [A(be, {
|
|
2177
2265
|
"model-value": te.value,
|
|
2178
2266
|
label: G(o) ?? "",
|
|
2179
2267
|
"hide-label": "",
|
|
@@ -2189,18 +2277,18 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2189
2277
|
"size",
|
|
2190
2278
|
"options",
|
|
2191
2279
|
"disabled"
|
|
2192
|
-
])])) : T("", !0)], 46,
|
|
2280
|
+
])])) : T("", !0)], 46, uo));
|
|
2193
2281
|
}
|
|
2194
|
-
}),
|
|
2282
|
+
}), mo = {
|
|
2195
2283
|
key: 0,
|
|
2196
2284
|
class: "glim-toggle-label"
|
|
2197
|
-
},
|
|
2285
|
+
}, ho = [
|
|
2198
2286
|
"aria-checked",
|
|
2199
2287
|
"aria-label",
|
|
2200
2288
|
"aria-disabled",
|
|
2201
2289
|
"aria-describedby",
|
|
2202
2290
|
"disabled"
|
|
2203
|
-
],
|
|
2291
|
+
], go = ["id"], _o = /* @__PURE__ */ j({
|
|
2204
2292
|
inheritAttrs: !1,
|
|
2205
2293
|
__name: "Toggle",
|
|
2206
2294
|
props: /*@__PURE__*/ M({
|
|
@@ -2226,7 +2314,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2226
2314
|
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
2315
|
Ee(() => u?.());
|
|
2228
2316
|
function d() {
|
|
2229
|
-
r.refused ? (u?.(), u =
|
|
2317
|
+
r.refused ? (u?.(), u = In(l.value)) : i.value = !i.value;
|
|
2230
2318
|
}
|
|
2231
2319
|
return (n, r) => (R(), E(S, null, [
|
|
2232
2320
|
D("span", {
|
|
@@ -2235,7 +2323,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2235
2323
|
"data-glim": "Toggle",
|
|
2236
2324
|
class: P(["glim-toggle", n.$attrs.class]),
|
|
2237
2325
|
style: F(n.$attrs.style)
|
|
2238
|
-
}, [o.value ? (R(), E("span",
|
|
2326
|
+
}, [o.value ? (R(), E("span", mo, W(e.label), 1)) : T("", !0), D("button", N({
|
|
2239
2327
|
...n.$attrs,
|
|
2240
2328
|
class: void 0,
|
|
2241
2329
|
style: void 0
|
|
@@ -2254,25 +2342,25 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2254
2342
|
onMouseleave: r[1] ||= (...e) => G(s).hide && G(s).hide(...e),
|
|
2255
2343
|
onFocus: r[2] ||= (...e) => G(s).showOnFocus && G(s).showOnFocus(...e),
|
|
2256
2344
|
onBlur: r[3] ||= (...e) => G(s).hide && G(s).hide(...e)
|
|
2257
|
-
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2345
|
+
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, ho)], 6),
|
|
2258
2346
|
e.refused ? (R(), E("span", {
|
|
2259
2347
|
key: 0,
|
|
2260
2348
|
id: G(c),
|
|
2261
2349
|
class: "glim-toggle-refusal"
|
|
2262
|
-
}, W(e.refused), 9,
|
|
2350
|
+
}, W(e.refused), 9, go)) : T("", !0),
|
|
2263
2351
|
A(t, { state: G(s) }, null, 8, ["state"])
|
|
2264
2352
|
], 64));
|
|
2265
2353
|
}
|
|
2266
|
-
}),
|
|
2354
|
+
}), vo = {
|
|
2267
2355
|
key: 0,
|
|
2268
2356
|
class: "glim-fortress-sub"
|
|
2269
|
-
},
|
|
2357
|
+
}, yo = { class: "glim-permissions" }, bo = ["data-permission"], xo = {
|
|
2270
2358
|
class: "glim-permission-pair",
|
|
2271
2359
|
"aria-hidden": "true"
|
|
2272
|
-
},
|
|
2360
|
+
}, So = ["src"], Co = { class: "glim-permission-to" }, wo = ["src"], To = { class: "glim-permission-text" }, Eo = { class: "glim-permission-title" }, Do = {
|
|
2273
2361
|
key: 0,
|
|
2274
2362
|
class: "glim-fortress-sub"
|
|
2275
|
-
},
|
|
2363
|
+
}, Oo = /* @__PURE__ */ j({
|
|
2276
2364
|
__name: "FortressPermissions",
|
|
2277
2365
|
props: {
|
|
2278
2366
|
text: {},
|
|
@@ -2284,7 +2372,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2284
2372
|
hueIndex: {}
|
|
2285
2373
|
},
|
|
2286
2374
|
setup(e) {
|
|
2287
|
-
let t = e, n = z("all"), r = C(() =>
|
|
2375
|
+
let t = e, n = z("all"), r = C(() => nn(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
2376
|
id: "all",
|
|
2289
2377
|
label: `${t.text.all} ${t.permissions.length}`
|
|
2290
2378
|
}, {
|
|
@@ -2299,15 +2387,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2299
2387
|
}
|
|
2300
2388
|
t.notify?.(n.error ?? t.text.failed, "fail");
|
|
2301
2389
|
let r = document.querySelector(`[data-permission="${CSS.escape(e.id)}"] .glim-toggle`);
|
|
2302
|
-
r &&
|
|
2390
|
+
r && In(r);
|
|
2303
2391
|
}
|
|
2304
|
-
return (t, r) => (R(), w(
|
|
2392
|
+
return (t, r) => (R(), w(pr, {
|
|
2305
2393
|
"data-glim": "FortressPermissions",
|
|
2306
2394
|
title: e.text.permissions,
|
|
2307
2395
|
hint: e.text.permissionsAbout,
|
|
2308
2396
|
"hue-index": e.hueIndex
|
|
2309
2397
|
}, {
|
|
2310
|
-
default: Y(() => [e.permissions.length === 0 ? (R(), E("p",
|
|
2398
|
+
default: Y(() => [e.permissions.length === 0 ? (R(), E("p", vo, W(e.text.noPermissions), 1)) : (R(), E(S, { key: 1 }, [i.value ? (R(), w(po, {
|
|
2311
2399
|
key: 0,
|
|
2312
2400
|
modelValue: n.value,
|
|
2313
2401
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -2319,35 +2407,35 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2319
2407
|
"modelValue",
|
|
2320
2408
|
"label",
|
|
2321
2409
|
"items"
|
|
2322
|
-
])) : T("", !0), D("ul",
|
|
2410
|
+
])) : T("", !0), D("ul", yo, [(R(!0), E(S, null, B(a.value, (e) => (R(), E("li", {
|
|
2323
2411
|
key: e.id,
|
|
2324
2412
|
class: P(["glim-permission", e.on && "glim-permission--on"]),
|
|
2325
2413
|
"data-permission": e.id
|
|
2326
2414
|
}, [
|
|
2327
|
-
D("span",
|
|
2415
|
+
D("span", xo, [
|
|
2328
2416
|
s(e.from) ? (R(), E("img", {
|
|
2329
2417
|
key: 0,
|
|
2330
2418
|
src: s(e.from),
|
|
2331
2419
|
alt: "",
|
|
2332
2420
|
draggable: "false"
|
|
2333
|
-
}, null, 8,
|
|
2421
|
+
}, null, 8, So)) : T("", !0),
|
|
2334
2422
|
A(G(m), {
|
|
2335
|
-
mark: G(
|
|
2423
|
+
mark: G(qe).expand,
|
|
2336
2424
|
class: "glim-permission-arrow"
|
|
2337
2425
|
}, null, 8, ["mark"]),
|
|
2338
|
-
D("span",
|
|
2426
|
+
D("span", Co, [(R(!0), E(S, null, B(e.to, (e) => (R(), E(S, { key: e }, [s(e) ? (R(), E("img", {
|
|
2339
2427
|
key: 0,
|
|
2340
2428
|
src: s(e),
|
|
2341
2429
|
alt: "",
|
|
2342
2430
|
draggable: "false"
|
|
2343
|
-
}, null, 8,
|
|
2431
|
+
}, null, 8, wo)) : T("", !0)], 64))), 128))])
|
|
2344
2432
|
]),
|
|
2345
|
-
D("span",
|
|
2346
|
-
D("span",
|
|
2347
|
-
e.detail ? (R(), E("span",
|
|
2433
|
+
D("span", To, [
|
|
2434
|
+
D("span", Eo, W(e.title), 1),
|
|
2435
|
+
e.detail ? (R(), E("span", Do, W(e.detail), 1)) : T("", !0),
|
|
2348
2436
|
V(t.$slots, "extra", { permission: e })
|
|
2349
2437
|
]),
|
|
2350
|
-
A(
|
|
2438
|
+
A(_o, {
|
|
2351
2439
|
"model-value": e.on,
|
|
2352
2440
|
label: e.title,
|
|
2353
2441
|
"hide-label": "",
|
|
@@ -2357,7 +2445,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2357
2445
|
"label",
|
|
2358
2446
|
"onUpdate:modelValue"
|
|
2359
2447
|
])
|
|
2360
|
-
], 10,
|
|
2448
|
+
], 10, bo))), 128))])], 64))]),
|
|
2361
2449
|
_: 3
|
|
2362
2450
|
}, 8, [
|
|
2363
2451
|
"title",
|
|
@@ -2365,13 +2453,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2365
2453
|
"hue-index"
|
|
2366
2454
|
]));
|
|
2367
2455
|
}
|
|
2368
|
-
}),
|
|
2456
|
+
}), ko = [
|
|
2369
2457
|
"aria-label",
|
|
2370
2458
|
"aria-invalid",
|
|
2371
2459
|
"aria-describedby",
|
|
2372
2460
|
"disabled",
|
|
2373
2461
|
"type"
|
|
2374
|
-
],
|
|
2462
|
+
], Ao = /* @__PURE__ */ j({
|
|
2375
2463
|
inheritAttrs: !1,
|
|
2376
2464
|
__name: "PasswordField",
|
|
2377
2465
|
props: /*@__PURE__*/ M({
|
|
@@ -2392,7 +2480,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2392
2480
|
}),
|
|
2393
2481
|
emits: ["update:modelValue"],
|
|
2394
2482
|
setup(e, { expose: t }) {
|
|
2395
|
-
let n = e, r = q(e, "modelValue"), i = z(!1), a = Me(), o = x(() => a["aria-label"]), s = C(() =>
|
|
2483
|
+
let n = e, r = q(e, "modelValue"), i = z(!1), a = Me(), o = x(() => a["aria-label"]), s = C(() => gt(n.width)), c = K(), l = C(() => ht(n.error, a.id ?? c, a["aria-describedby"])), u = U(null);
|
|
2396
2484
|
return t({ input: u }), (t, n) => (R(), E(S, null, [D("span", {
|
|
2397
2485
|
"data-glim": "PasswordField",
|
|
2398
2486
|
class: P([
|
|
@@ -2418,7 +2506,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2418
2506
|
disabled: e.disabled,
|
|
2419
2507
|
type: i.value ? "text" : "password",
|
|
2420
2508
|
class: "glim-input"
|
|
2421
|
-
}), null, 16,
|
|
2509
|
+
}), null, 16, ko), [[Pe, r.value]]), A(ge, N(e.eyeAttrs, {
|
|
2422
2510
|
tip: i.value ? e.text.hide : e.text.show,
|
|
2423
2511
|
class: "glim-secret-eye",
|
|
2424
2512
|
disabled: e.disabled,
|
|
@@ -2426,7 +2514,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2426
2514
|
}), {
|
|
2427
2515
|
default: Y(() => [(R(), w(H(i.value ? G(re) : G(v))))]),
|
|
2428
2516
|
_: 1
|
|
2429
|
-
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(
|
|
2517
|
+
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(va, {
|
|
2430
2518
|
key: 0,
|
|
2431
2519
|
id: l.value.errorId
|
|
2432
2520
|
}, {
|
|
@@ -2434,67 +2522,67 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2434
2522
|
_: 1
|
|
2435
2523
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
2436
2524
|
}
|
|
2437
|
-
}),
|
|
2525
|
+
}), jo = { class: "glim-phrase-fields" }, Mo = { class: "glim-phrase-number glim-num" }, No = [
|
|
2438
2526
|
"data-word",
|
|
2439
2527
|
"value",
|
|
2440
2528
|
"aria-label",
|
|
2441
2529
|
"onInput"
|
|
2442
|
-
],
|
|
2530
|
+
], Po = { class: "glim-fortress-sub" }, Fo = {
|
|
2443
2531
|
key: 0,
|
|
2444
2532
|
class: "glim-fortress-note",
|
|
2445
2533
|
"data-fortress": "moves"
|
|
2446
|
-
},
|
|
2534
|
+
}, Io = {
|
|
2447
2535
|
key: 1,
|
|
2448
2536
|
class: "glim-fortress-error",
|
|
2449
2537
|
role: "alert"
|
|
2450
|
-
},
|
|
2538
|
+
}, Lo = {
|
|
2451
2539
|
key: 1,
|
|
2452
2540
|
class: "glim-fortress-result"
|
|
2453
|
-
},
|
|
2541
|
+
}, Ro = {
|
|
2454
2542
|
class: "glim-fortress-result-mark",
|
|
2455
2543
|
"aria-hidden": "true"
|
|
2456
|
-
},
|
|
2544
|
+
}, zo = { class: "glim-fortress-text" }, Bo = { class: "glim-fortress-result-title" }, Vo = { class: "glim-fortress-sub" }, Ho = {
|
|
2457
2545
|
key: 2,
|
|
2458
2546
|
class: "glim-fortress-text"
|
|
2459
|
-
},
|
|
2547
|
+
}, Uo = { class: "glim-fortress-sub" }, Wo = {
|
|
2460
2548
|
key: 0,
|
|
2461
2549
|
class: "glim-fortress-error",
|
|
2462
2550
|
role: "alert"
|
|
2463
|
-
},
|
|
2551
|
+
}, Go = {
|
|
2464
2552
|
key: 3,
|
|
2465
2553
|
class: "glim-fortress-text"
|
|
2466
|
-
},
|
|
2554
|
+
}, Ko = { class: "glim-fortress-sub" }, qo = {
|
|
2467
2555
|
key: 0,
|
|
2468
2556
|
class: "glim-fortress-error",
|
|
2469
2557
|
role: "alert"
|
|
2470
|
-
},
|
|
2558
|
+
}, Jo = {
|
|
2471
2559
|
key: 4,
|
|
2472
2560
|
class: "glim-fortress-text"
|
|
2473
|
-
},
|
|
2561
|
+
}, Yo = {
|
|
2474
2562
|
key: 0,
|
|
2475
2563
|
class: "glim-fortress-error",
|
|
2476
2564
|
role: "alert"
|
|
2477
|
-
},
|
|
2565
|
+
}, Xo = {
|
|
2478
2566
|
key: 0,
|
|
2479
2567
|
class: "glim-fortress-error",
|
|
2480
2568
|
role: "alert"
|
|
2481
|
-
},
|
|
2569
|
+
}, Zo = {
|
|
2482
2570
|
key: 6,
|
|
2483
2571
|
class: "glim-fortress-text"
|
|
2484
|
-
},
|
|
2572
|
+
}, Qo = { class: "glim-fortress-sub" }, $o = {
|
|
2485
2573
|
key: 0,
|
|
2486
2574
|
class: "glim-fortress-error",
|
|
2487
2575
|
role: "alert"
|
|
2488
|
-
},
|
|
2576
|
+
}, es = {
|
|
2489
2577
|
key: 7,
|
|
2490
2578
|
class: "glim-fortress-text"
|
|
2491
|
-
},
|
|
2579
|
+
}, ts = { class: "glim-phrase-show" }, ns = {
|
|
2492
2580
|
class: "glim-phrase-words",
|
|
2493
2581
|
"data-fortress": "words"
|
|
2494
|
-
},
|
|
2582
|
+
}, rs = { class: "glim-phrase-number glim-num" }, is = ["aria-label", "viewBox"], as = ["width", "height"], os = ["d"], ss = { class: "glim-phrase-scan" }, cs = {
|
|
2495
2583
|
key: 0,
|
|
2496
2584
|
class: "glim-fortress-sub"
|
|
2497
|
-
},
|
|
2585
|
+
}, ls = /* @__PURE__ */ j({
|
|
2498
2586
|
__name: "FortressWindow",
|
|
2499
2587
|
props: {
|
|
2500
2588
|
flow: {},
|
|
@@ -2510,19 +2598,19 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2510
2598
|
setup(e) {
|
|
2511
2599
|
let t = e, n = U(null), r = z(!1), i;
|
|
2512
2600
|
Ee(() => clearTimeout(i));
|
|
2513
|
-
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ?
|
|
2601
|
+
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ? Pt(t.lang, t.pairedWith) : null), s = C(() => ({
|
|
2514
2602
|
cancel: t.text.cancel,
|
|
2515
2603
|
close: t.text.close
|
|
2516
2604
|
})), c = C(() => t.state.busy !== null), l;
|
|
2517
2605
|
Ee(() => l?.()), J(() => t.state.refusal, (e) => {
|
|
2518
2606
|
let t = e && n.value?.card?.querySelector(`[data-fortress="${e.button}"]`);
|
|
2519
|
-
t && (l =
|
|
2607
|
+
t && (l = In(t));
|
|
2520
2608
|
}), J(() => a.value.kind === "join" ? a.value.focus : -1, async (e) => {
|
|
2521
2609
|
await Te(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
|
|
2522
2610
|
}), J(() => a.value.kind, async () => {
|
|
2523
2611
|
await Te();
|
|
2524
2612
|
let e = n.value?.card;
|
|
2525
|
-
e &&
|
|
2613
|
+
e && cr(e)?.focus();
|
|
2526
2614
|
});
|
|
2527
2615
|
function u(e, t, n, r, i = !1) {
|
|
2528
2616
|
return {
|
|
@@ -2539,15 +2627,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2539
2627
|
label: t.text.copy,
|
|
2540
2628
|
labelKey: t.keys.copy,
|
|
2541
2629
|
attrs: { "data-fortress": "copy" },
|
|
2542
|
-
onClick: () => (
|
|
2543
|
-
r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1,
|
|
2630
|
+
onClick: () => (lt(e.join(" ")).then((e) => {
|
|
2631
|
+
r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1, Ue);
|
|
2544
2632
|
}), !1)
|
|
2545
2633
|
};
|
|
2546
2634
|
}
|
|
2547
2635
|
let f = C(() => {
|
|
2548
2636
|
let e = a.value;
|
|
2549
2637
|
if (e.kind !== "phrase" && e.kind !== "changed") return null;
|
|
2550
|
-
let n =
|
|
2638
|
+
let n = yn(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
|
|
2551
2639
|
return {
|
|
2552
2640
|
...n,
|
|
2553
2641
|
side: n.size + 8
|
|
@@ -2563,7 +2651,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2563
2651
|
case "join": return {
|
|
2564
2652
|
title: e.joinTitle,
|
|
2565
2653
|
size: "wide",
|
|
2566
|
-
actions: [u("join", r.join, e.join, i.join, !
|
|
2654
|
+
actions: [u("join", r.join, e.join, i.join, !rn(n.words))]
|
|
2567
2655
|
};
|
|
2568
2656
|
case "joined": return {
|
|
2569
2657
|
title: e.joinTitle,
|
|
@@ -2609,7 +2697,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2609
2697
|
actions: []
|
|
2610
2698
|
};
|
|
2611
2699
|
});
|
|
2612
|
-
return (t, i) => (R(), w(
|
|
2700
|
+
return (t, i) => (R(), w(Aa, {
|
|
2613
2701
|
ref_key: "win",
|
|
2614
2702
|
ref: n,
|
|
2615
2703
|
title: _.value.title,
|
|
@@ -2625,10 +2713,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2625
2713
|
onSubmit: i[0] ||= X((t) => e.flow.join(), ["prevent"])
|
|
2626
2714
|
}, [
|
|
2627
2715
|
D("p", null, W(e.text.about), 1),
|
|
2628
|
-
D("div",
|
|
2716
|
+
D("div", jo, [(R(!0), E(S, null, B(a.value.words, (t, n) => (R(), E("label", {
|
|
2629
2717
|
key: n,
|
|
2630
2718
|
class: "glim-phrase-field"
|
|
2631
|
-
}, [D("span",
|
|
2719
|
+
}, [D("span", Mo, W(n + 1), 1), D("input", {
|
|
2632
2720
|
class: "glim-input",
|
|
2633
2721
|
"data-word": n,
|
|
2634
2722
|
value: t,
|
|
@@ -2638,32 +2726,32 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2638
2726
|
autocorrect: "off",
|
|
2639
2727
|
spellcheck: "false",
|
|
2640
2728
|
onInput: (t) => e.flow.enter(n, t.target.value)
|
|
2641
|
-
}, null, 40,
|
|
2729
|
+
}, null, 40, No)]))), 128))]),
|
|
2642
2730
|
i[4] ||= D("button", {
|
|
2643
2731
|
type: "submit",
|
|
2644
2732
|
hidden: ""
|
|
2645
2733
|
}, null, -1),
|
|
2646
|
-
D("p",
|
|
2647
|
-
o.value ? (R(), E("p",
|
|
2734
|
+
D("p", Po, W(e.text.phraseWhere), 1),
|
|
2735
|
+
o.value ? (R(), E("p", Fo, [G(p)("info") ? (R(), w(H(G(p)("info")), { key: 0 })) : T("", !0), D("span", null, W(G(Z)(e.text.moves, {
|
|
2648
2736
|
app: e.app.name,
|
|
2649
2737
|
devices: o.value
|
|
2650
2738
|
})), 1)])) : T("", !0),
|
|
2651
|
-
e.state.error ? (R(), E("p",
|
|
2652
|
-
], 32)) : a.value.kind === "joined" ? (R(), E("div",
|
|
2739
|
+
e.state.error ? (R(), E("p", Io, W(e.state.error), 1)) : T("", !0)
|
|
2740
|
+
], 32)) : a.value.kind === "joined" ? (R(), E("div", Lo, [D("span", Ro, [A(G(m), { mark: G(qe).check }, null, 8, ["mark"])]), D("div", zo, [D("p", Bo, W(G(Z)(e.text.joinedTitle, { app: e.app.name })), 1), D("p", Vo, W(o.value ? `${G(Z)(e.text.joinedMoved, { devices: o.value })} ` : "") + W(e.text.joinedNext), 1)])])) : a.value.kind === "leave" ? (R(), E("div", Ho, [
|
|
2653
2741
|
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",
|
|
2742
|
+
D("p", Uo, W(e.text.leaveBack), 1),
|
|
2743
|
+
e.state.error ? (R(), E("p", Wo, W(e.state.error), 1)) : T("", !0)
|
|
2744
|
+
])) : a.value.kind === "remove" ? (R(), E("div", Go, [
|
|
2657
2745
|
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",
|
|
2746
|
+
D("p", Ko, W(e.text.removeBack), 1),
|
|
2747
|
+
e.state.error ? (R(), E("p", qo, W(e.state.error), 1)) : T("", !0)
|
|
2748
|
+
])) : a.value.kind === "removed" ? (R(), E("div", Jo, [D("p", null, W(G(Z)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (R(), E("p", Yo, W(e.state.error), 1)) : T("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (R(), E("form", {
|
|
2661
2749
|
key: 5,
|
|
2662
2750
|
class: "glim-fortress-text",
|
|
2663
2751
|
onSubmit: i[2] ||= X((t) => e.flow.unlock(), ["prevent"])
|
|
2664
2752
|
}, [
|
|
2665
2753
|
D("p", null, W(G(Z)(e.text.phrasePassword, { app: e.app.name })), 1),
|
|
2666
|
-
A(
|
|
2754
|
+
A(Ao, {
|
|
2667
2755
|
"model-value": a.value.password,
|
|
2668
2756
|
"aria-label": G(Z)(e.text.password, { app: e.app.name }),
|
|
2669
2757
|
placeholder: G(Z)(e.text.password, { app: e.app.name }),
|
|
@@ -2678,15 +2766,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2678
2766
|
"placeholder",
|
|
2679
2767
|
"text"
|
|
2680
2768
|
]),
|
|
2681
|
-
e.state.error ? (R(), E("p",
|
|
2682
|
-
], 32)) : a.value.kind === "change" ? (R(), E("div",
|
|
2769
|
+
e.state.error ? (R(), E("p", Xo, W(e.state.error), 1)) : T("", !0)
|
|
2770
|
+
], 32)) : a.value.kind === "change" ? (R(), E("div", Zo, [
|
|
2683
2771
|
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",
|
|
2772
|
+
D("p", Qo, W(e.text.changeAway), 1),
|
|
2773
|
+
e.state.error ? (R(), E("p", $o, W(e.state.error), 1)) : T("", !0)
|
|
2774
|
+
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div", es, [
|
|
2687
2775
|
D("p", null, W(e.text.phraseBody), 1),
|
|
2688
|
-
D("div",
|
|
2689
|
-
D("ol",
|
|
2776
|
+
D("div", ts, [
|
|
2777
|
+
D("ol", ns, [(R(!0), E(S, null, B(a.value.words, (e, t) => (R(), E("li", { key: t }, [D("span", rs, W(t + 1), 1), k(W(e), 1)]))), 128))]),
|
|
2690
2778
|
f.value ? (R(), E("svg", {
|
|
2691
2779
|
key: 0,
|
|
2692
2780
|
class: "glim-phrase-qr",
|
|
@@ -2701,13 +2789,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2701
2789
|
width: f.value.side,
|
|
2702
2790
|
height: f.value.side,
|
|
2703
2791
|
fill: "#ffffff"
|
|
2704
|
-
}, null, 8,
|
|
2792
|
+
}, null, 8, as), D("path", {
|
|
2705
2793
|
d: f.value.path,
|
|
2706
2794
|
fill: "#161616"
|
|
2707
|
-
}, null, 8,
|
|
2708
|
-
D("p",
|
|
2795
|
+
}, null, 8, os)], 8, is)) : T("", !0),
|
|
2796
|
+
D("p", ss, W(e.text.scanHint), 1)
|
|
2709
2797
|
]),
|
|
2710
|
-
a.value.kind === "changed" && a.value.left.length ? (R(), E("p",
|
|
2798
|
+
a.value.kind === "changed" && a.value.left.length ? (R(), E("p", cs, W(G(Z)(e.text.changedLeft, { devices: G(Pt)(e.lang, a.value.left) })), 1)) : T("", !0)
|
|
2711
2799
|
])) : T("", !0)]),
|
|
2712
2800
|
_: 1
|
|
2713
2801
|
}, 8, [
|
|
@@ -2718,25 +2806,25 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2718
2806
|
"text"
|
|
2719
2807
|
]));
|
|
2720
2808
|
}
|
|
2721
|
-
}),
|
|
2809
|
+
}), us = {
|
|
2722
2810
|
"data-glim": "Fortress",
|
|
2723
2811
|
class: "glim-fortress"
|
|
2724
|
-
},
|
|
2812
|
+
}, ds = { class: "glim-fortress-grid" }, fs = {
|
|
2725
2813
|
key: 0,
|
|
2726
2814
|
class: "glim-card glim-instance glim-instance--out",
|
|
2727
2815
|
"data-fortress": "out"
|
|
2728
|
-
},
|
|
2816
|
+
}, ps = { class: "glim-instance-title" }, ms = { class: "glim-instance-hint" }, hs = {
|
|
2729
2817
|
key: 0,
|
|
2730
2818
|
class: "glim-instance-found"
|
|
2731
|
-
},
|
|
2819
|
+
}, gs = ["src"], _s = { class: "glim-fortress-switch-text" }, vs = { class: "glim-fortress-switch-name" }, ys = { class: "glim-fortress-sub" }, bs = {
|
|
2732
2820
|
key: 1,
|
|
2733
2821
|
class: "glim-fortress-removed",
|
|
2734
2822
|
"data-fortress": "removed",
|
|
2735
2823
|
role: "status"
|
|
2736
|
-
},
|
|
2824
|
+
}, xs = { class: "glim-fortress-grid" }, Ss = {
|
|
2737
2825
|
key: 3,
|
|
2738
2826
|
class: "glim-fortress-actions"
|
|
2739
|
-
},
|
|
2827
|
+
}, Cs = /* @__PURE__ */ j({
|
|
2740
2828
|
__name: "Fortress",
|
|
2741
2829
|
props: {
|
|
2742
2830
|
text: {},
|
|
@@ -2774,10 +2862,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2774
2862
|
},
|
|
2775
2863
|
emits: ["update:showOthers"],
|
|
2776
2864
|
setup(e, { emit: t }) {
|
|
2777
|
-
let n = e, r = t, i =
|
|
2865
|
+
let n = e, r = t, i = dt(() => ({
|
|
2778
2866
|
...n,
|
|
2779
2867
|
failed: n.text.failed,
|
|
2780
|
-
joinRefusal: (e) =>
|
|
2868
|
+
joinRefusal: (e) => At(n.text, e)
|
|
2781
2869
|
})), a = U(i.state()), o = i.subscribe(() => a.value = i.state());
|
|
2782
2870
|
I(o);
|
|
2783
2871
|
let s = C(() => ({
|
|
@@ -2790,20 +2878,20 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2790
2878
|
unlock: "unlock",
|
|
2791
2879
|
copy: "copy",
|
|
2792
2880
|
...n.labelKeys
|
|
2793
|
-
})), c = z(
|
|
2881
|
+
})), c = z(Kn()), l = C(() => n.showOthers ?? c.value);
|
|
2794
2882
|
function u(e) {
|
|
2795
|
-
r("update:showOthers", e), n.showOthers === void 0 && (
|
|
2883
|
+
r("update:showOthers", e), n.showOthers === void 0 && (Gn(e), c.value = e);
|
|
2796
2884
|
}
|
|
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",
|
|
2885
|
+
let d = C(() => Z(n.text.removedNote, { devices: Pt(n.lang, n.removed) })), m = C(() => en(n.text, n.lang, n.apps));
|
|
2886
|
+
return (t, n) => (R(), E("div", us, [
|
|
2887
|
+
D("div", ds, [V(t.$slots, "default", { remove: G(i).openRemove }), e.joined ? T("", !0) : (R(), E("div", fs, [
|
|
2888
|
+
D("h3", ps, W(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
|
|
2889
|
+
D("p", ms, W(G(Z)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
|
|
2890
|
+
e.found ? (R(), E("p", hs, [e.found.logo ? (R(), E("img", {
|
|
2803
2891
|
key: 0,
|
|
2804
2892
|
src: e.found.logo,
|
|
2805
2893
|
alt: ""
|
|
2806
|
-
}, null, 8,
|
|
2894
|
+
}, null, 8, gs)) : T("", !0), D("span", null, W(G(Z)(e.text.found, {
|
|
2807
2895
|
app: e.found.app,
|
|
2808
2896
|
device: e.found.device
|
|
2809
2897
|
})), 1)])) : T("", !0)
|
|
@@ -2811,15 +2899,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2811
2899
|
e.joined && !e.hideSwitch ? (R(), E("div", {
|
|
2812
2900
|
key: 0,
|
|
2813
2901
|
class: "glim-card glim-fortress-switch glim-hue",
|
|
2814
|
-
style: F(G(
|
|
2815
|
-
}, [D("span",
|
|
2902
|
+
style: F(G(Et)(e.hueStart))
|
|
2903
|
+
}, [D("span", _s, [D("span", vs, [k(W(e.text.showOthers), 1), A(Q, { tip: e.text.about }, null, 8, ["tip"])]), D("span", ys, W(m.value), 1)]), A(_o, {
|
|
2816
2904
|
"model-value": l.value,
|
|
2817
2905
|
label: e.text.showOthers,
|
|
2818
2906
|
"hide-label": "",
|
|
2819
2907
|
"data-fortress": "others",
|
|
2820
2908
|
"onUpdate:modelValue": u
|
|
2821
2909
|
}, null, 8, ["model-value", "label"])], 4)) : T("", !0),
|
|
2822
|
-
e.joined && e.removed.length ? (R(), E("div",
|
|
2910
|
+
e.joined && e.removed.length ? (R(), E("div", bs, [
|
|
2823
2911
|
G(p)("info") ? (R(), w(H(G(p)("info")), { key: 0 })) : T("", !0),
|
|
2824
2912
|
D("span", null, W(d.value), 1),
|
|
2825
2913
|
e.onChangePhrase ? (R(), w(f, {
|
|
@@ -2831,11 +2919,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2831
2919
|
onClick: n[0] ||= (e) => G(i).openChange()
|
|
2832
2920
|
}, null, 8, ["label", "label-key"])) : T("", !0)
|
|
2833
2921
|
])) : T("", !0),
|
|
2834
|
-
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div",
|
|
2922
|
+
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div", xs, [(R(!0), E(S, null, B(e.apps, (n, r) => (R(), E(S, { key: n.id }, [t.$slots.app ? V(t.$slots, "app", {
|
|
2835
2923
|
app: n,
|
|
2836
2924
|
hueIndex: e.hueStart + 1 + r,
|
|
2837
2925
|
remove: e.onRemove && G(i).openRemove
|
|
2838
|
-
}, void 0, void 0, 0) : (R(), w(
|
|
2926
|
+
}, void 0, void 0, 0) : (R(), w(ao, {
|
|
2839
2927
|
key: 1,
|
|
2840
2928
|
app: n,
|
|
2841
2929
|
text: e.text,
|
|
@@ -2852,7 +2940,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2852
2940
|
"on-open",
|
|
2853
2941
|
"on-remove",
|
|
2854
2942
|
"remove-key"
|
|
2855
|
-
]))], 64))), 128))]), A(
|
|
2943
|
+
]))], 64))), 128))]), A(Oo, {
|
|
2856
2944
|
text: e.text,
|
|
2857
2945
|
app: e.app,
|
|
2858
2946
|
apps: [e.app, ...e.apps],
|
|
@@ -2872,7 +2960,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2872
2960
|
"notify",
|
|
2873
2961
|
"hue-index"
|
|
2874
2962
|
])], 64)) : T("", !0),
|
|
2875
|
-
!e.joined || e.onShowPhrase ? (R(), E("div",
|
|
2963
|
+
!e.joined || e.onShowPhrase ? (R(), E("div", Ss, [e.joined ? (R(), w(f, {
|
|
2876
2964
|
key: 0,
|
|
2877
2965
|
label: e.text.showPhrase,
|
|
2878
2966
|
"label-key": s.value.showPhrase,
|
|
@@ -2894,7 +2982,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2894
2982
|
"data-fortress": "open-join",
|
|
2895
2983
|
onClick: n[2] ||= (e) => G(i).openJoin()
|
|
2896
2984
|
}, null, 8, ["label", "label-key"]))])) : T("", !0),
|
|
2897
|
-
a.value.window ? (R(), w(
|
|
2985
|
+
a.value.window ? (R(), w(ls, {
|
|
2898
2986
|
key: 4,
|
|
2899
2987
|
flow: G(i),
|
|
2900
2988
|
state: a.value,
|
|
@@ -2916,7 +3004,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2916
3004
|
])) : T("", !0)
|
|
2917
3005
|
]));
|
|
2918
3006
|
}
|
|
2919
|
-
}),
|
|
3007
|
+
}), ws = /* @__PURE__ */ j({
|
|
2920
3008
|
__name: "FortressPairing",
|
|
2921
3009
|
props: {
|
|
2922
3010
|
text: {},
|
|
@@ -2933,7 +3021,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2933
3021
|
hueIndex: {}
|
|
2934
3022
|
},
|
|
2935
3023
|
setup(e) {
|
|
2936
|
-
let t = e, n =
|
|
3024
|
+
let t = e, n = dt(() => ({
|
|
2937
3025
|
...t,
|
|
2938
3026
|
failed: t.text.failed
|
|
2939
3027
|
})), r = U(n.state()), i = n.subscribe(() => r.value = n.state());
|
|
@@ -2949,14 +3037,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2949
3037
|
copy: "copy",
|
|
2950
3038
|
...t.labelKeys
|
|
2951
3039
|
}));
|
|
2952
|
-
return (t, i) => (R(), w(
|
|
3040
|
+
return (t, i) => (R(), w(pr, {
|
|
2953
3041
|
"data-glim": "FortressPairing",
|
|
2954
3042
|
title: e.text.pairing,
|
|
2955
3043
|
"hue-index": e.hueIndex
|
|
2956
3044
|
}, {
|
|
2957
3045
|
default: Y(() => [
|
|
2958
3046
|
V(t.$slots, "default"),
|
|
2959
|
-
e.onShowPhrase || e.onChangePhrase ? (R(), w(
|
|
3047
|
+
e.onShowPhrase || e.onChangePhrase ? (R(), w(Sa, {
|
|
2960
3048
|
key: 0,
|
|
2961
3049
|
label: e.text.phraseTitle,
|
|
2962
3050
|
hint: e.onChangePhrase ? e.text.changePhraseAbout : void 0
|
|
@@ -2981,7 +3069,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2981
3069
|
}, null, 8, ["label", "label-key"])) : T("", !0)]),
|
|
2982
3070
|
_: 1
|
|
2983
3071
|
}, 8, ["label", "hint"])) : T("", !0),
|
|
2984
|
-
A(
|
|
3072
|
+
A(Sa, {
|
|
2985
3073
|
label: e.text.leaveRow,
|
|
2986
3074
|
hint: G(Z)(e.text.leaveAbout, { app: e.app.name })
|
|
2987
3075
|
}, {
|
|
@@ -2994,7 +3082,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
2994
3082
|
_: 1
|
|
2995
3083
|
}, 8, ["label", "hint"]),
|
|
2996
3084
|
V(t.$slots, "after"),
|
|
2997
|
-
r.value.window ? (R(), w(
|
|
3085
|
+
r.value.window ? (R(), w(ls, {
|
|
2998
3086
|
key: 1,
|
|
2999
3087
|
flow: G(n),
|
|
3000
3088
|
state: r.value,
|
|
@@ -3020,13 +3108,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3020
3108
|
_: 3
|
|
3021
3109
|
}, 8, ["title", "hue-index"]));
|
|
3022
3110
|
}
|
|
3023
|
-
}),
|
|
3111
|
+
}), Ts = [
|
|
3024
3112
|
"aria-label",
|
|
3025
3113
|
"aria-valuemin",
|
|
3026
3114
|
"aria-valuemax",
|
|
3027
3115
|
"aria-valuenow",
|
|
3028
3116
|
"aria-valuetext"
|
|
3029
|
-
],
|
|
3117
|
+
], Es = /* @__PURE__ */ j({
|
|
3030
3118
|
__name: "ProgressBar",
|
|
3031
3119
|
props: {
|
|
3032
3120
|
value: { default: null },
|
|
@@ -3042,7 +3130,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3042
3130
|
valueText: {}
|
|
3043
3131
|
},
|
|
3044
3132
|
setup(e) {
|
|
3045
|
-
let t = e, n = C(() =>
|
|
3133
|
+
let t = e, n = C(() => vn(t.value, {
|
|
3046
3134
|
paused: t.paused,
|
|
3047
3135
|
failed: t.failed
|
|
3048
3136
|
}));
|
|
@@ -3058,48 +3146,48 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3058
3146
|
}, [D("span", {
|
|
3059
3147
|
class: "glim-progress-fill",
|
|
3060
3148
|
style: F(n.value.width ? { width: n.value.width } : void 0)
|
|
3061
|
-
}, null, 4)], 10,
|
|
3149
|
+
}, null, 4)], 10, Ts));
|
|
3062
3150
|
}
|
|
3063
|
-
}),
|
|
3151
|
+
}), Ds = { class: "glim-status-title" }, Os = ["src"], ks = {
|
|
3064
3152
|
class: "glim-fortress-text",
|
|
3065
3153
|
"data-fortress": "status"
|
|
3066
|
-
},
|
|
3154
|
+
}, As = {
|
|
3067
3155
|
key: 0,
|
|
3068
3156
|
class: "glim-fortress-note",
|
|
3069
3157
|
"data-fortress": "loading"
|
|
3070
|
-
},
|
|
3158
|
+
}, js = { role: "status" }, Ms = {
|
|
3071
3159
|
key: 1,
|
|
3072
3160
|
class: "glim-fortress-note",
|
|
3073
3161
|
role: "status",
|
|
3074
3162
|
"data-fortress": "error"
|
|
3075
|
-
},
|
|
3163
|
+
}, Ns = {
|
|
3076
3164
|
key: 2,
|
|
3077
3165
|
class: "glim-status-state",
|
|
3078
3166
|
"data-fortress": "state"
|
|
3079
|
-
},
|
|
3167
|
+
}, Ps = {
|
|
3080
3168
|
key: 0,
|
|
3081
3169
|
class: "glim-fortress-sub"
|
|
3082
|
-
},
|
|
3170
|
+
}, Fs = {
|
|
3083
3171
|
key: 3,
|
|
3084
3172
|
class: "glim-status-section",
|
|
3085
3173
|
"data-fortress": "needs"
|
|
3086
|
-
},
|
|
3174
|
+
}, Is = { class: "glim-status-heading" }, Ls = { class: "glim-status-list" }, Rs = {
|
|
3087
3175
|
key: 4,
|
|
3088
3176
|
class: "glim-status-section",
|
|
3089
3177
|
"data-fortress": "work"
|
|
3090
|
-
},
|
|
3178
|
+
}, zs = { class: "glim-status-heading" }, Bs = { class: "glim-status-list" }, Vs = {
|
|
3091
3179
|
key: 5,
|
|
3092
3180
|
class: "glim-status-section",
|
|
3093
3181
|
"data-fortress": "next"
|
|
3094
|
-
},
|
|
3182
|
+
}, Hs = { class: "glim-status-heading" }, Us = { class: "glim-status-list" }, Ws = { class: "glim-status-at glim-num" }, Gs = {
|
|
3095
3183
|
key: 6,
|
|
3096
3184
|
class: "glim-status-section",
|
|
3097
3185
|
"data-fortress": "log"
|
|
3098
|
-
},
|
|
3186
|
+
}, Ks = { class: "glim-status-heading" }, qs = { class: "glim-status-list" }, Js = { class: "glim-status-at glim-num" }, Ys = {
|
|
3099
3187
|
key: 7,
|
|
3100
3188
|
class: "glim-fortress-sub",
|
|
3101
3189
|
"data-fortress": "where"
|
|
3102
|
-
},
|
|
3190
|
+
}, Xs = /* @__PURE__ */ j({
|
|
3103
3191
|
__name: "FortressStatusWindow",
|
|
3104
3192
|
props: {
|
|
3105
3193
|
app: {},
|
|
@@ -3113,7 +3201,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3113
3201
|
onClose: { type: Function }
|
|
3114
3202
|
},
|
|
3115
3203
|
setup(t) {
|
|
3116
|
-
let n = t, r = C(() =>
|
|
3204
|
+
let n = t, r = C(() => Wn({
|
|
3117
3205
|
app: n.app,
|
|
3118
3206
|
instance: n.instance,
|
|
3119
3207
|
report: n.report,
|
|
@@ -3127,7 +3215,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3127
3215
|
glyph: g,
|
|
3128
3216
|
wayOut: !0
|
|
3129
3217
|
}]), a = p("info");
|
|
3130
|
-
return (n, o) => (R(), w(
|
|
3218
|
+
return (n, o) => (R(), w(Aa, {
|
|
3131
3219
|
"data-glim": "FortressStatusWindow",
|
|
3132
3220
|
lang: t.lang,
|
|
3133
3221
|
title: r.value.title,
|
|
@@ -3138,22 +3226,22 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3138
3226
|
},
|
|
3139
3227
|
onClose: o[0] ||= (e) => t.onClose()
|
|
3140
3228
|
}, {
|
|
3141
|
-
title: Y(() => [D("span",
|
|
3229
|
+
title: Y(() => [D("span", Ds, [t.app.logo ? (R(), E("img", {
|
|
3142
3230
|
key: 0,
|
|
3143
3231
|
src: t.app.logo,
|
|
3144
3232
|
alt: ""
|
|
3145
|
-
}, null, 8,
|
|
3146
|
-
default: Y(() => [D("div",
|
|
3147
|
-
r.value.loading ? (R(), E("p",
|
|
3233
|
+
}, null, 8, Os)) : T("", !0), k(W(r.value.title), 1)])]),
|
|
3234
|
+
default: Y(() => [D("div", ks, [
|
|
3235
|
+
r.value.loading ? (R(), E("p", As, [A(c, {
|
|
3148
3236
|
size: "small",
|
|
3149
3237
|
delay: 0
|
|
3150
|
-
}), D("span",
|
|
3151
|
-
r.value.error === void 0 ? T("", !0) : (R(), E("p",
|
|
3152
|
-
r.value.state ? (R(), E("p",
|
|
3238
|
+
}), D("span", js, W(r.value.loading), 1)])) : T("", !0),
|
|
3239
|
+
r.value.error === void 0 ? T("", !0) : (R(), E("p", Ms, [G(a) ? (R(), w(H(G(a)), { key: 0 })) : T("", !0), D("span", null, W(r.value.error), 1)])),
|
|
3240
|
+
r.value.state ? (R(), E("p", Ns, [A(e, { tone: r.value.state.tone }, {
|
|
3153
3241
|
default: Y(() => [k(W(r.value.state.label), 1)]),
|
|
3154
3242
|
_: 1
|
|
3155
|
-
}, 8, ["tone"]), r.value.quiet ? (R(), E("span",
|
|
3156
|
-
r.value.needsYou.length ? (R(), E("section",
|
|
3243
|
+
}, 8, ["tone"]), r.value.quiet ? (R(), E("span", Ps, W(r.value.quiet), 1)) : T("", !0)])) : T("", !0),
|
|
3244
|
+
r.value.needsYou.length ? (R(), E("section", Fs, [D("h3", Is, W(t.text.statusNeedsYou), 1), D("ul", Ls, [(R(!0), E(S, null, B(r.value.needsYou, (t, n) => (R(), E("li", {
|
|
3157
3245
|
key: n,
|
|
3158
3246
|
class: "glim-status-line"
|
|
3159
3247
|
}, [
|
|
@@ -3167,26 +3255,26 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3167
3255
|
o[1] ||= k(),
|
|
3168
3256
|
D("span", null, W(t.text), 1)
|
|
3169
3257
|
]))), 128))])])) : T("", !0),
|
|
3170
|
-
r.value.work.length ? (R(), E("section",
|
|
3258
|
+
r.value.work.length ? (R(), E("section", Rs, [D("h3", zs, W(t.text.statusWork), 1), D("ul", Bs, [(R(!0), E(S, null, B(r.value.work, (e, t) => (R(), E("li", {
|
|
3171
3259
|
key: t,
|
|
3172
3260
|
class: "glim-status-work"
|
|
3173
|
-
}, [D("span", null, W(e.title), 1), A(
|
|
3261
|
+
}, [D("span", null, W(e.title), 1), A(Es, {
|
|
3174
3262
|
value: e.progress,
|
|
3175
3263
|
label: e.title
|
|
3176
3264
|
}, null, 8, ["value", "label"])]))), 128))])])) : T("", !0),
|
|
3177
|
-
r.value.next.length ? (R(), E("section",
|
|
3265
|
+
r.value.next.length ? (R(), E("section", Vs, [D("h3", Hs, W(t.text.statusNext), 1), D("ul", Us, [(R(!0), E(S, null, B(r.value.next, (e, t) => (R(), E("li", {
|
|
3178
3266
|
key: t,
|
|
3179
3267
|
class: "glim-status-line"
|
|
3180
3268
|
}, [
|
|
3181
3269
|
D("span", null, W(e.title), 1),
|
|
3182
3270
|
o[2] ||= k(),
|
|
3183
|
-
D("span",
|
|
3271
|
+
D("span", Ws, W(e.at), 1)
|
|
3184
3272
|
]))), 128))])])) : T("", !0),
|
|
3185
|
-
r.value.log.length ? (R(), E("section",
|
|
3273
|
+
r.value.log.length ? (R(), E("section", Gs, [D("h3", Ks, W(t.text.statusLog), 1), D("ul", qs, [(R(!0), E(S, null, B(r.value.log, (t, n) => (R(), E("li", {
|
|
3186
3274
|
key: n,
|
|
3187
3275
|
class: "glim-status-line"
|
|
3188
3276
|
}, [
|
|
3189
|
-
D("span",
|
|
3277
|
+
D("span", Js, W(t.at), 1),
|
|
3190
3278
|
o[3] ||= k(),
|
|
3191
3279
|
t.level ? (R(), w(e, {
|
|
3192
3280
|
key: 0,
|
|
@@ -3198,7 +3286,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3198
3286
|
o[4] ||= k(),
|
|
3199
3287
|
D("span", null, W(t.text), 1)
|
|
3200
3288
|
]))), 128))])])) : T("", !0),
|
|
3201
|
-
r.value.where ? (R(), E("p",
|
|
3289
|
+
r.value.where ? (R(), E("p", Ys, W(r.value.where), 1)) : T("", !0)
|
|
3202
3290
|
])]),
|
|
3203
3291
|
_: 1
|
|
3204
3292
|
}, 8, [
|
|
@@ -3208,10 +3296,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3208
3296
|
"text"
|
|
3209
3297
|
]));
|
|
3210
3298
|
}
|
|
3211
|
-
}),
|
|
3299
|
+
}), Zs = {
|
|
3212
3300
|
class: "glim-glyph-field-glyph",
|
|
3213
3301
|
"aria-hidden": "true"
|
|
3214
|
-
},
|
|
3302
|
+
}, Qs = ["aria-label"], $s = /* @__PURE__ */ j({
|
|
3215
3303
|
inheritAttrs: !1,
|
|
3216
3304
|
__name: "GlyphField",
|
|
3217
3305
|
props: /*@__PURE__*/ M({
|
|
@@ -3225,7 +3313,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3225
3313
|
}),
|
|
3226
3314
|
emits: ["update:modelValue"],
|
|
3227
3315
|
setup(e, { expose: t }) {
|
|
3228
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
3316
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => gt(n.width)), o = U(null);
|
|
3229
3317
|
return t({ input: o }), (t, n) => (R(), E("label", {
|
|
3230
3318
|
"data-glim": "GlyphField",
|
|
3231
3319
|
class: P([
|
|
@@ -3237,7 +3325,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3237
3325
|
]),
|
|
3238
3326
|
style: F(t.$attrs.style)
|
|
3239
3327
|
}, [
|
|
3240
|
-
D("span",
|
|
3328
|
+
D("span", Zs, [(R(), w(H(e.glyph)))]),
|
|
3241
3329
|
Re(D("input", N({
|
|
3242
3330
|
ref_key: "input",
|
|
3243
3331
|
ref: o,
|
|
@@ -3248,11 +3336,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3248
3336
|
...t.$attrs,
|
|
3249
3337
|
class: void 0,
|
|
3250
3338
|
style: void 0
|
|
3251
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
3339
|
+
}, { class: "glim-glyph-field-input" }), null, 16, Qs), [[Fe, r.value]]),
|
|
3252
3340
|
V(t.$slots, "after")
|
|
3253
3341
|
], 6));
|
|
3254
3342
|
}
|
|
3255
|
-
}),
|
|
3343
|
+
}), ec = /* @__PURE__ */ j({
|
|
3256
3344
|
__name: "GlyphTile",
|
|
3257
3345
|
props: {
|
|
3258
3346
|
glyph: {},
|
|
@@ -3271,17 +3359,17 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3271
3359
|
"aria-hidden": "true"
|
|
3272
3360
|
}, [(R(), w(H(e.glyph)))], 2));
|
|
3273
3361
|
}
|
|
3274
|
-
}),
|
|
3362
|
+
}), tc = [
|
|
3275
3363
|
"aria-label",
|
|
3276
3364
|
"tabindex",
|
|
3277
3365
|
"onKeydown"
|
|
3278
|
-
],
|
|
3366
|
+
], nc = {
|
|
3279
3367
|
key: 0,
|
|
3280
3368
|
class: "glim-list-row-tile"
|
|
3281
|
-
},
|
|
3369
|
+
}, rc = { class: "glim-list-row-title" }, ic = {
|
|
3282
3370
|
key: 1,
|
|
3283
3371
|
class: "glim-list-row-badges"
|
|
3284
|
-
},
|
|
3372
|
+
}, ac = /* @__PURE__ */ j({
|
|
3285
3373
|
__name: "ListRow",
|
|
3286
3374
|
props: {
|
|
3287
3375
|
name: {},
|
|
@@ -3301,21 +3389,21 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3301
3389
|
class: P(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
3302
3390
|
onKeydown: [ze(X(a, ["self"]), ["enter"]), ze(X(a, ["self"]), ["space"])]
|
|
3303
3391
|
}, [
|
|
3304
|
-
t.$slots.tile ? (R(), E("span",
|
|
3305
|
-
D("span", { class: P(i.value) }, [D("span",
|
|
3392
|
+
t.$slots.tile ? (R(), E("span", nc, [V(t.$slots, "tile")])) : T("", !0),
|
|
3393
|
+
D("span", { class: P(i.value) }, [D("span", rc, W(e.name), 1), e.tip ? (R(), E("span", {
|
|
3306
3394
|
key: 0,
|
|
3307
3395
|
class: "glim-list-row-tip",
|
|
3308
3396
|
onClick: n[0] ||= X(() => {}, ["stop"])
|
|
3309
3397
|
}, [A(Q, { tip: e.tip }, null, 8, ["tip"])])) : T("", !0)], 2),
|
|
3310
|
-
t.$slots.badges ? (R(), E("span",
|
|
3398
|
+
t.$slots.badges ? (R(), E("span", ic, [V(t.$slots, "badges")])) : T("", !0),
|
|
3311
3399
|
t.$slots.actions ? (R(), E("span", {
|
|
3312
3400
|
key: 2,
|
|
3313
3401
|
class: "glim-list-row-actions",
|
|
3314
3402
|
onClick: n[1] ||= X(() => {}, ["stop"])
|
|
3315
3403
|
}, [V(t.$slots, "actions")])) : T("", !0)
|
|
3316
|
-
], 42,
|
|
3404
|
+
], 42, tc));
|
|
3317
3405
|
}
|
|
3318
|
-
}),
|
|
3406
|
+
}), oc = ["aria-label"], sc = /* @__PURE__ */ j({
|
|
3319
3407
|
__name: "Popover",
|
|
3320
3408
|
props: {
|
|
3321
3409
|
open: { type: Boolean },
|
|
@@ -3324,13 +3412,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3324
3412
|
},
|
|
3325
3413
|
emits: ["close"],
|
|
3326
3414
|
setup(e, { emit: t }) {
|
|
3327
|
-
let n = e, r = t, i = z(null), a =
|
|
3415
|
+
let n = e, r = t, i = z(null), a = Ze(K() ?? "popover"), o;
|
|
3328
3416
|
return J([
|
|
3329
3417
|
() => n.open,
|
|
3330
3418
|
() => n.anchor,
|
|
3331
3419
|
i
|
|
3332
3420
|
], ([e, t, n]) => {
|
|
3333
|
-
o?.(), o = void 0, e && t && n && (o =
|
|
3421
|
+
o?.(), o = void 0, e && t && n && (o = Qt(n, t, a, () => r("close")));
|
|
3334
3422
|
}, { flush: "post" }), I(() => o?.()), (t, n) => e.open ? (R(), E("div", {
|
|
3335
3423
|
key: 0,
|
|
3336
3424
|
"data-glim": "Popover",
|
|
@@ -3340,24 +3428,24 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3340
3428
|
role: "dialog",
|
|
3341
3429
|
"aria-label": e.label,
|
|
3342
3430
|
class: "glim-popover"
|
|
3343
|
-
}, [V(t.$slots, "default")], 8,
|
|
3431
|
+
}, [V(t.$slots, "default")], 8, oc)) : T("", !0);
|
|
3344
3432
|
}
|
|
3345
|
-
}),
|
|
3433
|
+
}), cc = {
|
|
3346
3434
|
"data-glim": "ListTable",
|
|
3347
3435
|
class: "glim-list"
|
|
3348
|
-
},
|
|
3436
|
+
}, lc = ["aria-label", "onKeydown"], uc = ["aria-label", "aria-describedby"], dc = ["aria-sort"], fc = { class: "glim-list-th-box" }, pc = ["onClick"], mc = [
|
|
3349
3437
|
"aria-label",
|
|
3350
3438
|
"aria-expanded",
|
|
3351
3439
|
"aria-pressed",
|
|
3352
3440
|
"onClick"
|
|
3353
|
-
],
|
|
3441
|
+
], hc = [
|
|
3354
3442
|
"aria-selected",
|
|
3355
3443
|
"onClick",
|
|
3356
3444
|
"onDblclick"
|
|
3357
|
-
],
|
|
3445
|
+
], gc = ["tabindex"], _c = {
|
|
3358
3446
|
key: 1,
|
|
3359
3447
|
class: "glim-list-empty"
|
|
3360
|
-
},
|
|
3448
|
+
}, vc = ["id"], yc = { class: "glim-list-filter-values" }, bc = /* @__PURE__ */ j({
|
|
3361
3449
|
__name: "ListTable",
|
|
3362
3450
|
props: {
|
|
3363
3451
|
label: {},
|
|
@@ -3373,7 +3461,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3373
3461
|
keys: [],
|
|
3374
3462
|
anchor: null,
|
|
3375
3463
|
focus: null
|
|
3376
|
-
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() =>
|
|
3464
|
+
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() => Ft(n.rows, {
|
|
3377
3465
|
sort: i.value,
|
|
3378
3466
|
filters: a.value,
|
|
3379
3467
|
query: o.value ?? "",
|
|
@@ -3398,14 +3486,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3398
3486
|
}, r("select", e.selected.map((e) => f.value[e])), g();
|
|
3399
3487
|
}
|
|
3400
3488
|
function v(e) {
|
|
3401
|
-
let t =
|
|
3489
|
+
let t = Nt(h.value, e.key, {
|
|
3402
3490
|
toggle: e.ctrlKey || e.metaKey,
|
|
3403
3491
|
range: e.shiftKey
|
|
3404
3492
|
}, f.value.length);
|
|
3405
3493
|
t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search, Te(() => u.value?.focus())) : _(t.select));
|
|
3406
3494
|
}
|
|
3407
3495
|
function ee(e, t) {
|
|
3408
|
-
_(
|
|
3496
|
+
_(An(h.value, t, {
|
|
3409
3497
|
toggle: e.ctrlKey || e.metaKey,
|
|
3410
3498
|
range: e.shiftKey
|
|
3411
3499
|
}));
|
|
@@ -3428,7 +3516,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3428
3516
|
};
|
|
3429
3517
|
}
|
|
3430
3518
|
let ie = (e, t) => String(e[t] ?? "");
|
|
3431
|
-
return (t, n) => (R(), E("div",
|
|
3519
|
+
return (t, n) => (R(), E("div", cc, [
|
|
3432
3520
|
o.value === null ? T("", !0) : Re((R(), E("input", {
|
|
3433
3521
|
key: 0,
|
|
3434
3522
|
ref_key: "searchField",
|
|
@@ -3438,7 +3526,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3438
3526
|
type: "search",
|
|
3439
3527
|
"aria-label": e.text.search,
|
|
3440
3528
|
onKeydown: ze(X(te, ["prevent", "stop"]), ["esc"])
|
|
3441
|
-
}, null, 40,
|
|
3529
|
+
}, null, 40, lc)), [[Fe, o.value]]),
|
|
3442
3530
|
D("table", {
|
|
3443
3531
|
ref_key: "grid",
|
|
3444
3532
|
ref: l,
|
|
@@ -3450,17 +3538,17 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3450
3538
|
}, [D("thead", null, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (t) => (R(), E("th", {
|
|
3451
3539
|
key: t.key,
|
|
3452
3540
|
scope: "col",
|
|
3453
|
-
"aria-sort": G(
|
|
3541
|
+
"aria-sort": G(et)(i.value, t.key),
|
|
3454
3542
|
class: P(t.end ? "glim-list-th glim-table-end" : "glim-list-th")
|
|
3455
|
-
}, [D("span",
|
|
3543
|
+
}, [D("span", fc, [D("button", {
|
|
3456
3544
|
type: "button",
|
|
3457
3545
|
class: "glim-list-sort",
|
|
3458
|
-
onClick: (e) => i.value = G(
|
|
3546
|
+
onClick: (e) => i.value = G(Kt)(i.value, t.key)
|
|
3459
3547
|
}, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(m), {
|
|
3460
3548
|
key: 0,
|
|
3461
|
-
mark: G(
|
|
3549
|
+
mark: G(qe).expand,
|
|
3462
3550
|
class: P(`glim-list-sort-mark glim-list-sort-mark--${i.value.dir}`)
|
|
3463
|
-
}, null, 8, ["mark", "class"])) : T("", !0)], 8,
|
|
3551
|
+
}, null, 8, ["mark", "class"])) : T("", !0)], 8, pc), t.filter ? (R(), E("button", {
|
|
3464
3552
|
key: 0,
|
|
3465
3553
|
type: "button",
|
|
3466
3554
|
"aria-label": e.text.filterOf(t.label),
|
|
@@ -3469,7 +3557,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3469
3557
|
"aria-pressed": ne(t.key).length > 0,
|
|
3470
3558
|
class: "glim-list-filter",
|
|
3471
3559
|
onClick: (e) => re(t.key, e.currentTarget)
|
|
3472
|
-
}, [A(G(m), { mark: G(
|
|
3560
|
+
}, [A(G(m), { mark: G(qe).expand }, null, 8, ["mark"])], 8, mc)) : T("", !0)])], 10, dc))), 128))])]), D("tbody", { onKeydown: v }, [(R(!0), E(S, null, B(f.value, (n, i) => (R(), E("tr", {
|
|
3473
3561
|
key: p.value[i],
|
|
3474
3562
|
"aria-selected": h.value.selected.includes(i),
|
|
3475
3563
|
class: "glim-list-tr",
|
|
@@ -3478,24 +3566,24 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3478
3566
|
}, [(R(!0), E(S, null, B(e.columns, (e, r) => (R(), E("td", {
|
|
3479
3567
|
key: e.key,
|
|
3480
3568
|
tabindex: r === 0 ? i === h.value.focus ? 0 : -1 : void 0,
|
|
3481
|
-
class: P(G(
|
|
3569
|
+
class: P(G(Yn)(e) || void 0)
|
|
3482
3570
|
}, [V(t.$slots, "cell", {
|
|
3483
3571
|
row: n,
|
|
3484
3572
|
column: e
|
|
3485
|
-
}, () => [k(W(ie(n, e.key)), 1)])], 10,
|
|
3486
|
-
f.value.length === 0 ? (R(), E("p",
|
|
3573
|
+
}, () => [k(W(ie(n, e.key)), 1)])], 10, gc))), 128))], 40, hc))), 128))], 32)], 8, uc),
|
|
3574
|
+
f.value.length === 0 ? (R(), E("p", _c, W(e.text.noMatch), 1)) : T("", !0),
|
|
3487
3575
|
D("p", {
|
|
3488
3576
|
id: G(d),
|
|
3489
3577
|
class: "glim-list-hint"
|
|
3490
|
-
}, W(e.text.hint), 9,
|
|
3491
|
-
y.value ? (R(), w(
|
|
3578
|
+
}, W(e.text.hint), 9, vc),
|
|
3579
|
+
y.value ? (R(), w(sc, {
|
|
3492
3580
|
key: 2,
|
|
3493
3581
|
open: !0,
|
|
3494
3582
|
anchor: c.value.at,
|
|
3495
3583
|
label: e.text.filterOf(y.value.label),
|
|
3496
3584
|
onClose: n[1] ||= (e) => c.value = null
|
|
3497
3585
|
}, {
|
|
3498
|
-
default: Y(() => [D("div",
|
|
3586
|
+
default: Y(() => [D("div", yc, [(R(!0), E(S, null, B(G(at)(e.rows, y.value.key), (e) => (R(), w(qr, {
|
|
3499
3587
|
key: e,
|
|
3500
3588
|
label: e,
|
|
3501
3589
|
"model-value": ne(y.value.key).includes(e),
|
|
@@ -3509,14 +3597,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3509
3597
|
}, 8, ["anchor", "label"])) : T("", !0)
|
|
3510
3598
|
]));
|
|
3511
3599
|
}
|
|
3512
|
-
}),
|
|
3600
|
+
}), xc = ["aria-label"], Sc = [
|
|
3513
3601
|
"aria-expanded",
|
|
3514
3602
|
"tabindex",
|
|
3515
3603
|
"onClick",
|
|
3516
3604
|
"onMouseenter",
|
|
3517
3605
|
"onKeydown",
|
|
3518
3606
|
"onFocus"
|
|
3519
|
-
],
|
|
3607
|
+
], Cc = /* @__PURE__ */ j({
|
|
3520
3608
|
__name: "MenuBar",
|
|
3521
3609
|
props: {
|
|
3522
3610
|
label: {},
|
|
@@ -3570,7 +3658,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3570
3658
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
3571
3659
|
onKeydown: (e) => l(e, t),
|
|
3572
3660
|
onFocus: (e) => a.value = t
|
|
3573
|
-
}, W(e.label), 41,
|
|
3661
|
+
}, W(e.label), 41, Sc))), 128)), i.value && e.menus[i.value.at] ? (R(), w(Ui, {
|
|
3574
3662
|
key: i.value.at,
|
|
3575
3663
|
x: i.value.x,
|
|
3576
3664
|
y: i.value.y,
|
|
@@ -3589,9 +3677,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3589
3677
|
"id",
|
|
3590
3678
|
"opener",
|
|
3591
3679
|
"from-end"
|
|
3592
|
-
])) : T("", !0)], 8,
|
|
3680
|
+
])) : T("", !0)], 8, xc));
|
|
3593
3681
|
}
|
|
3594
|
-
}),
|
|
3682
|
+
}), wc = [
|
|
3595
3683
|
"role",
|
|
3596
3684
|
"aria-label",
|
|
3597
3685
|
"aria-valuemin",
|
|
@@ -3599,7 +3687,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3599
3687
|
"aria-valuenow",
|
|
3600
3688
|
"aria-valuetext",
|
|
3601
3689
|
"aria-busy"
|
|
3602
|
-
],
|
|
3690
|
+
], Tc = /* @__PURE__ */ j({
|
|
3603
3691
|
inheritAttrs: !1,
|
|
3604
3692
|
__name: "Meter",
|
|
3605
3693
|
props: {
|
|
@@ -3614,7 +3702,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3614
3702
|
valueText: {}
|
|
3615
3703
|
},
|
|
3616
3704
|
setup(e) {
|
|
3617
|
-
let r = e, i = C(() =>
|
|
3705
|
+
let r = e, i = C(() => Wt(r.value, {
|
|
3618
3706
|
size: r.size,
|
|
3619
3707
|
threshold: r.threshold,
|
|
3620
3708
|
quiet: r.quiet
|
|
@@ -3634,16 +3722,16 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3634
3722
|
}), [D("span", {
|
|
3635
3723
|
class: "glim-meter-fill",
|
|
3636
3724
|
style: F(i.value.width ? { width: i.value.width } : void 0)
|
|
3637
|
-
}, null, 4)], 16,
|
|
3725
|
+
}, null, 4)], 16, wc), A(t, { state: G(o) }, null, 8, ["state"])], 64));
|
|
3638
3726
|
}
|
|
3639
|
-
}),
|
|
3727
|
+
}), Ec = {
|
|
3640
3728
|
"data-glim": "NumberField",
|
|
3641
3729
|
class: "glim-num-wrap"
|
|
3642
|
-
},
|
|
3730
|
+
}, Dc = [
|
|
3643
3731
|
"aria-label",
|
|
3644
3732
|
"aria-invalid",
|
|
3645
3733
|
"aria-describedby"
|
|
3646
|
-
],
|
|
3734
|
+
], Oc = /* @__PURE__ */ j({
|
|
3647
3735
|
inheritAttrs: !1,
|
|
3648
3736
|
__name: "NumberField",
|
|
3649
3737
|
props: /*@__PURE__*/ M({ error: {} }, {
|
|
@@ -3652,9 +3740,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3652
3740
|
}),
|
|
3653
3741
|
emits: ["update:modelValue"],
|
|
3654
3742
|
setup(e) {
|
|
3655
|
-
let t = e, n = q(e, "modelValue"), r = Me(), i = x(() => r["aria-label"]), a = K(), o = C(() =>
|
|
3743
|
+
let t = e, n = q(e, "modelValue"), r = Me(), i = x(() => r["aria-label"]), a = K(), o = C(() => ht(t.error, r.id ?? a, r["aria-describedby"])), s = U(null), c;
|
|
3656
3744
|
L(() => {
|
|
3657
|
-
l(n.value), c =
|
|
3745
|
+
l(n.value), c = tt(s.value);
|
|
3658
3746
|
}), I(() => c?.());
|
|
3659
3747
|
function l(e) {
|
|
3660
3748
|
let t = s.value;
|
|
@@ -3668,13 +3756,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3668
3756
|
() => r.disabled,
|
|
3669
3757
|
() => r.readonly
|
|
3670
3758
|
], () => {
|
|
3671
|
-
l(n.value), s.value &&
|
|
3759
|
+
l(n.value), s.value && Jn(s.value);
|
|
3672
3760
|
}, { flush: "post" });
|
|
3673
3761
|
function u(e) {
|
|
3674
3762
|
let t = e.target;
|
|
3675
3763
|
n.value = t.value === "" ? null : t.valueAsNumber;
|
|
3676
3764
|
}
|
|
3677
|
-
return (t, n) => (R(), E(S, null, [D("span",
|
|
3765
|
+
return (t, n) => (R(), E(S, null, [D("span", Ec, [D("input", N(t.$attrs, {
|
|
3678
3766
|
ref_key: "input",
|
|
3679
3767
|
ref: s,
|
|
3680
3768
|
"aria-label": G(i),
|
|
@@ -3683,7 +3771,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3683
3771
|
type: "number",
|
|
3684
3772
|
class: "glim-num-input glim-num-field glim-num",
|
|
3685
3773
|
onInput: u
|
|
3686
|
-
}), null, 16,
|
|
3774
|
+
}), null, 16, Dc)]), o.value.errorId ? (R(), w(va, {
|
|
3687
3775
|
key: 0,
|
|
3688
3776
|
id: o.value.errorId
|
|
3689
3777
|
}, {
|
|
@@ -3691,7 +3779,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3691
3779
|
_: 1
|
|
3692
3780
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
3693
3781
|
}
|
|
3694
|
-
}),
|
|
3782
|
+
}), kc = ["aria-label", "disabled"], Ac = /* @__PURE__ */ j({
|
|
3695
3783
|
inheritAttrs: !1,
|
|
3696
3784
|
__name: "PathField",
|
|
3697
3785
|
props: /*@__PURE__*/ M({
|
|
@@ -3714,7 +3802,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3714
3802
|
setup(e, { expose: t, emit: n }) {
|
|
3715
3803
|
let r = e, i = q(e, "modelValue"), a = n, o = x(() => r.label), s = U(null);
|
|
3716
3804
|
t({ input: s });
|
|
3717
|
-
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width <
|
|
3805
|
+
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width < Je);
|
|
3718
3806
|
L(() => u.observe(c.value)), I(() => u.disconnect());
|
|
3719
3807
|
async function d() {
|
|
3720
3808
|
let e = await r.pick(i.value);
|
|
@@ -3726,7 +3814,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3726
3814
|
"data-glim": "PathField",
|
|
3727
3815
|
class: P([
|
|
3728
3816
|
"glim-path",
|
|
3729
|
-
G(
|
|
3817
|
+
G(gt)(e.width),
|
|
3730
3818
|
t.$attrs.class
|
|
3731
3819
|
]),
|
|
3732
3820
|
style: F(t.$attrs.style)
|
|
@@ -3745,7 +3833,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3745
3833
|
}, {
|
|
3746
3834
|
disabled: e.disabled,
|
|
3747
3835
|
class: "glim-input glim-input--mono"
|
|
3748
|
-
}), null, 16,
|
|
3836
|
+
}), null, 16, kc), [[Fe, i.value]]), A(f, N(e.buttonAttrs, {
|
|
3749
3837
|
variant: "icon",
|
|
3750
3838
|
label: e.text.pick,
|
|
3751
3839
|
"label-key": null,
|
|
@@ -3760,27 +3848,27 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3760
3848
|
"disabled"
|
|
3761
3849
|
])], 6));
|
|
3762
3850
|
}
|
|
3763
|
-
}),
|
|
3851
|
+
}), jc = ["data-glim-title"], Mc = { class: "glim-modal-head" }, Nc = {
|
|
3764
3852
|
id: "paypal-window-title",
|
|
3765
3853
|
class: "glim-modal-title"
|
|
3766
|
-
},
|
|
3854
|
+
}, Pc = { class: "glim-give-body glim-give-body--scroll" }, Fc = { class: "glim-give-appeal" }, Ic = { class: "glim-give-intro" }, Lc = { class: "glim-give-group" }, Rc = {
|
|
3767
3855
|
id: "paypal-frequency",
|
|
3768
3856
|
class: "glim-eyebrow"
|
|
3769
|
-
},
|
|
3857
|
+
}, zc = { class: "glim-give-group" }, Bc = {
|
|
3770
3858
|
id: "paypal-amount",
|
|
3771
3859
|
class: "glim-eyebrow"
|
|
3772
|
-
},
|
|
3860
|
+
}, Vc = { class: "glim-give-amounts" }, Hc = [
|
|
3773
3861
|
"value",
|
|
3774
3862
|
"placeholder",
|
|
3775
3863
|
"aria-label",
|
|
3776
3864
|
"aria-invalid"
|
|
3777
|
-
],
|
|
3865
|
+
], Uc = { class: "glim-give-loading" }, Wc = {
|
|
3778
3866
|
key: 0,
|
|
3779
3867
|
class: "glim-give-status glim-give-status--ok"
|
|
3780
|
-
},
|
|
3868
|
+
}, Gc = {
|
|
3781
3869
|
key: 1,
|
|
3782
3870
|
class: "glim-give-status glim-give-status--fail"
|
|
3783
|
-
},
|
|
3871
|
+
}, Kc = { class: "glim-give-foot" }, qc = /* @__PURE__ */ j({
|
|
3784
3872
|
__name: "PaypalDialog",
|
|
3785
3873
|
props: {
|
|
3786
3874
|
text: {},
|
|
@@ -3821,7 +3909,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3821
3909
|
"aria-labelledby": "paypal-window-title",
|
|
3822
3910
|
class: "glim-modal-card glim-modal-card--wide"
|
|
3823
3911
|
}, [
|
|
3824
|
-
D("div",
|
|
3912
|
+
D("div", Mc, [D("h2", Nc, [A(e, {
|
|
3825
3913
|
tone: "heading",
|
|
3826
3914
|
size: "heading",
|
|
3827
3915
|
wrap: ""
|
|
@@ -3829,10 +3917,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3829
3917
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
3830
3918
|
_: 1
|
|
3831
3919
|
})])]),
|
|
3832
|
-
D("div",
|
|
3833
|
-
D("p",
|
|
3834
|
-
D("p",
|
|
3835
|
-
D("div",
|
|
3920
|
+
D("div", Pc, [
|
|
3921
|
+
D("p", Fc, W(t.text.appeal), 1),
|
|
3922
|
+
D("p", Ic, W(t.text.intro), 1),
|
|
3923
|
+
D("div", Lc, [D("span", Rc, W(t.text.frequencyLabel), 1), V(n.$slots, "selector", {
|
|
3836
3924
|
labelledBy: "paypal-frequency",
|
|
3837
3925
|
options: a.map((e) => ({
|
|
3838
3926
|
value: e,
|
|
@@ -3841,7 +3929,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3841
3929
|
value: t.frequency,
|
|
3842
3930
|
onChange: s
|
|
3843
3931
|
})]),
|
|
3844
|
-
D("div",
|
|
3932
|
+
D("div", zc, [D("span", Bc, W(t.text.amountLabel), 1), D("div", Vc, [D("div", null, [V(n.$slots, "selector", {
|
|
3845
3933
|
labelledBy: "paypal-amount",
|
|
3846
3934
|
options: t.amounts.map((e) => ({
|
|
3847
3935
|
value: e,
|
|
@@ -3858,29 +3946,29 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3858
3946
|
"aria-invalid": t.typed !== "" && !t.typedValid,
|
|
3859
3947
|
class: P(t.typedValid ? "glim-give-amount glim-give-amount--valid" : "glim-give-amount"),
|
|
3860
3948
|
onInput: l
|
|
3861
|
-
}, null, 42,
|
|
3949
|
+
}, null, 42, Hc)])]),
|
|
3862
3950
|
D("div", {
|
|
3863
3951
|
ref: t.buttonsRef,
|
|
3864
3952
|
class: "glim-give-wallet"
|
|
3865
|
-
}, [D("p",
|
|
3866
|
-
t.status === "done" ? (R(), E("p",
|
|
3867
|
-
t.status === "failed" ? (R(), E("p",
|
|
3953
|
+
}, [D("p", Uc, W(t.text.loading), 1)], 512),
|
|
3954
|
+
t.status === "done" ? (R(), E("p", Wc, W(t.text.thanks), 1)) : T("", !0),
|
|
3955
|
+
t.status === "failed" ? (R(), E("p", Gc, W(t.text.failed), 1)) : T("", !0)
|
|
3868
3956
|
]),
|
|
3869
|
-
D("div",
|
|
3957
|
+
D("div", Kc, [A(f, {
|
|
3870
3958
|
label: t.text.closeLabel,
|
|
3871
3959
|
"label-key": "common.close",
|
|
3872
3960
|
tone: "neutral",
|
|
3873
3961
|
onClick: r[0] ||= (e) => i("close")
|
|
3874
3962
|
}, null, 8, ["label"])])
|
|
3875
|
-
], 8,
|
|
3963
|
+
], 8, jc)]));
|
|
3876
3964
|
}
|
|
3877
|
-
}),
|
|
3965
|
+
}), Jc = {
|
|
3878
3966
|
key: 0,
|
|
3879
3967
|
class: "glim-pick-none"
|
|
3880
|
-
},
|
|
3968
|
+
}, Yc = {
|
|
3881
3969
|
key: 0,
|
|
3882
3970
|
class: "glim-pick-eyebrow"
|
|
3883
|
-
},
|
|
3971
|
+
}, Xc = { class: "glim-eyebrow" }, Zc = { class: "glim-provider-pick" }, Qc = /* @__PURE__ */ j({
|
|
3884
3972
|
__name: "PickerWindow",
|
|
3885
3973
|
props: {
|
|
3886
3974
|
title: {},
|
|
@@ -3898,11 +3986,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3898
3986
|
"close"
|
|
3899
3987
|
],
|
|
3900
3988
|
setup(t, { emit: n }) {
|
|
3901
|
-
let r = t, i = n, a = Ne(), o = z(""), s = U(null), c = U(null), l = () => c.value?.input ?? null, u =
|
|
3989
|
+
let r = t, i = n, a = Ne(), o = z(""), s = U(null), c = U(null), l = () => c.value?.input ?? null, u = dn(), d = U(null), f = () => !!a.default, p = !1;
|
|
3902
3990
|
L(() => {
|
|
3903
|
-
p = f(), d.value &&
|
|
3991
|
+
p = f(), d.value && Tt(d.value), r.selected && s.value?.card && an(s.value.card, d.value)?.focus();
|
|
3904
3992
|
}), Oe(() => {
|
|
3905
|
-
f() !== p && (p = f(), d.value &&
|
|
3993
|
+
f() !== p && (p = f(), d.value && Tt(d.value), s.value?.card && an(s.value.card, d.value)?.focus());
|
|
3906
3994
|
});
|
|
3907
3995
|
let m = C(() => ({
|
|
3908
3996
|
label: r.text.back,
|
|
@@ -3914,16 +4002,16 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3914
4002
|
labelKey: "common.close",
|
|
3915
4003
|
glyph: g,
|
|
3916
4004
|
wayOut: !0
|
|
3917
|
-
}], _ = C(() =>
|
|
4005
|
+
}], _ = C(() => cn(r.items, r.groups, o.value, tn())), v = (e, t) => {
|
|
3918
4006
|
t && (e.preventDefault(), e.stopPropagation());
|
|
3919
4007
|
};
|
|
3920
4008
|
function ee() {
|
|
3921
4009
|
o.value = "", l()?.focus();
|
|
3922
4010
|
}
|
|
3923
|
-
let te = (e) => v(e,
|
|
3924
|
-
e.target !== e.currentTarget && v(e,
|
|
4011
|
+
let te = (e) => v(e, sn(e.key, o.value, d.value, () => o.value = "")), ne = (e) => {
|
|
4012
|
+
e.target !== e.currentTarget && v(e, ln(e.key, e.target, e.currentTarget, l()));
|
|
3925
4013
|
};
|
|
3926
|
-
return (n, r) => (R(), w(
|
|
4014
|
+
return (n, r) => (R(), w(Aa, {
|
|
3927
4015
|
ref_key: "win",
|
|
3928
4016
|
ref: s,
|
|
3929
4017
|
"data-glim": "PickerWindow",
|
|
@@ -3942,7 +4030,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3942
4030
|
actions: h(),
|
|
3943
4031
|
onClose: r[1] ||= (e) => i("close")
|
|
3944
4032
|
}, O({
|
|
3945
|
-
default: Y(() => [f() ? V(n.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A(
|
|
4033
|
+
default: Y(() => [f() ? V(n.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A($s, {
|
|
3946
4034
|
ref_key: "field",
|
|
3947
4035
|
ref: c,
|
|
3948
4036
|
modelValue: o.value,
|
|
@@ -3973,11 +4061,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3973
4061
|
ref: d,
|
|
3974
4062
|
class: "glim-pick-scroll",
|
|
3975
4063
|
onKeydown: ne
|
|
3976
|
-
}, [_.value.length === 0 ? (R(), E("p",
|
|
4064
|
+
}, [_.value.length === 0 ? (R(), E("p", Jc, W(G(Z)(t.text.none, { query: o.value.trim() })), 1)) : (R(!0), E(S, { key: 1 }, B(_.value, (n) => (R(), E("section", {
|
|
3977
4065
|
key: n.id,
|
|
3978
4066
|
class: "glim-pick-section"
|
|
3979
|
-
}, [n.title ? (R(), E("div",
|
|
3980
|
-
D("h3",
|
|
4067
|
+
}, [n.title ? (R(), E("div", Yc, [
|
|
4068
|
+
D("h3", Xc, W(n.title), 1),
|
|
3981
4069
|
n.badge ? (R(), w(e, {
|
|
3982
4070
|
key: 0,
|
|
3983
4071
|
size: "small",
|
|
@@ -3990,9 +4078,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
3990
4078
|
key: 1,
|
|
3991
4079
|
tip: n.hint
|
|
3992
4080
|
}, null, 8, ["tip"])) : T("", !0)
|
|
3993
|
-
])) : T("", !0), D("ul",
|
|
4081
|
+
])) : T("", !0), D("ul", Zc, [(R(!0), E(S, null, B(n.items, (e) => (R(), E("li", {
|
|
3994
4082
|
key: e.id,
|
|
3995
|
-
style: F(G(
|
|
4083
|
+
style: F(G(un)(e.mark))
|
|
3996
4084
|
}, [A($, {
|
|
3997
4085
|
brand: "house",
|
|
3998
4086
|
parts: [{
|
|
@@ -4002,12 +4090,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4002
4090
|
}],
|
|
4003
4091
|
"soon-label": e.status,
|
|
4004
4092
|
current: e.id === t.selected,
|
|
4005
|
-
"mark-class": G(
|
|
4093
|
+
"mark-class": G(on)(e.mark),
|
|
4006
4094
|
hint: e.hint,
|
|
4007
4095
|
tip: e.tip
|
|
4008
4096
|
}, O({ _: 2 }, [e.mark ? {
|
|
4009
4097
|
name: "mark",
|
|
4010
|
-
fn: Y(() => [G(
|
|
4098
|
+
fn: Y(() => [G(Ot)(e.mark) ? (R(), w(Ur, {
|
|
4011
4099
|
key: 0,
|
|
4012
4100
|
svg: e.mark.svg,
|
|
4013
4101
|
hover: e.mark.hover
|
|
@@ -4043,7 +4131,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4043
4131
|
"actions"
|
|
4044
4132
|
]));
|
|
4045
4133
|
}
|
|
4046
|
-
}),
|
|
4134
|
+
}), $c = /* @__PURE__ */ j({
|
|
4047
4135
|
__name: "RowMark",
|
|
4048
4136
|
props: { on: { type: Boolean } },
|
|
4049
4137
|
setup(e) {
|
|
@@ -4053,7 +4141,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4053
4141
|
"aria-hidden": "true"
|
|
4054
4142
|
}, [A(G(b))], 2));
|
|
4055
4143
|
}
|
|
4056
|
-
}),
|
|
4144
|
+
}), el = { class: "glim-sr-only" }, tl = /* @__PURE__ */ j({
|
|
4057
4145
|
inheritAttrs: !1,
|
|
4058
4146
|
__name: "SidebarRowLink",
|
|
4059
4147
|
props: {
|
|
@@ -4088,7 +4176,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4088
4176
|
e.view.countClass && e.count ? (R(), E(S, { key: 1 }, [D("span", {
|
|
4089
4177
|
class: P(e.view.countClass),
|
|
4090
4178
|
"aria-hidden": "true"
|
|
4091
|
-
}, W(e.count.value), 3), D("span",
|
|
4179
|
+
}, W(e.count.value), 3), D("span", el, W(e.count.label), 1)], 64)) : T("", !0)
|
|
4092
4180
|
]),
|
|
4093
4181
|
_: 1
|
|
4094
4182
|
}, 16, [
|
|
@@ -4103,13 +4191,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4103
4191
|
"onBlur"
|
|
4104
4192
|
])), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
4105
4193
|
}
|
|
4106
|
-
}),
|
|
4194
|
+
}), nl = {
|
|
4107
4195
|
key: 0,
|
|
4108
4196
|
class: "glim-nav-row-slot"
|
|
4109
|
-
},
|
|
4197
|
+
}, rl = {
|
|
4110
4198
|
key: 1,
|
|
4111
4199
|
class: "glim-nav-row-slot"
|
|
4112
|
-
},
|
|
4200
|
+
}, il = /* @__PURE__ */ j({
|
|
4113
4201
|
inheritAttrs: !1,
|
|
4114
4202
|
__name: "SidebarRow",
|
|
4115
4203
|
props: {
|
|
@@ -4125,7 +4213,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4125
4213
|
depth: {}
|
|
4126
4214
|
},
|
|
4127
4215
|
setup(e) {
|
|
4128
|
-
let t = e, n = l("sidebar"), r = Ne(), i = C(() =>
|
|
4216
|
+
let t = e, n = l("sidebar"), r = Ne(), i = C(() => Rn({
|
|
4129
4217
|
mode: n.value,
|
|
4130
4218
|
label: t.label,
|
|
4131
4219
|
hasGlyph: !!t.glyph,
|
|
@@ -4152,15 +4240,15 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4152
4240
|
]),
|
|
4153
4241
|
style: F([i.value.style, e.$attrs.style])
|
|
4154
4242
|
}, [
|
|
4155
|
-
e.$slots.before ? (R(), E("span",
|
|
4156
|
-
A(
|
|
4243
|
+
e.$slots.before ? (R(), E("span", nl, [V(e.$slots, "before")])) : T("", !0),
|
|
4244
|
+
A(tl, N({
|
|
4157
4245
|
...e.$attrs,
|
|
4158
4246
|
...a.value,
|
|
4159
4247
|
class: void 0,
|
|
4160
4248
|
style: void 0
|
|
4161
4249
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
4162
|
-
e.$slots.after ? (R(), E("span",
|
|
4163
|
-
], 6)) : (R(), w(
|
|
4250
|
+
e.$slots.after ? (R(), E("span", rl, [V(e.$slots, "after")])) : T("", !0)
|
|
4251
|
+
], 6)) : (R(), w(tl, N({
|
|
4164
4252
|
key: 1,
|
|
4165
4253
|
"data-glim": "SidebarRow"
|
|
4166
4254
|
}, {
|
|
@@ -4177,7 +4265,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4177
4265
|
"style"
|
|
4178
4266
|
]));
|
|
4179
4267
|
}
|
|
4180
|
-
}),
|
|
4268
|
+
}), al = ["data-glim-title", "aria-labelledby"], ol = { class: "glim-sheet-panel" }, sl = ["id"], cl = { class: "glim-sheet-body" }, ll = /* @__PURE__ */ j({
|
|
4181
4269
|
__name: "Sheet",
|
|
4182
4270
|
props: {
|
|
4183
4271
|
open: { type: Boolean },
|
|
@@ -4190,7 +4278,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4190
4278
|
setup(t, { emit: n }) {
|
|
4191
4279
|
let r = t, i = n, a = Ne(), o = z(null), s = K(), c = C(() => r.start !== void 0 || !!a.start), l;
|
|
4192
4280
|
return J([() => r.open, o], ([e, t]) => {
|
|
4193
|
-
l?.(), l = void 0, e && t && (l =
|
|
4281
|
+
l?.(), l = void 0, e && t && (l = $t(t, () => i("close")));
|
|
4194
4282
|
}, { flush: "post" }), I(() => l?.()), (n, r) => t.open ? (R(), E("dialog", {
|
|
4195
4283
|
key: 0,
|
|
4196
4284
|
"data-glim": "Sheet",
|
|
@@ -4199,7 +4287,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4199
4287
|
ref: o,
|
|
4200
4288
|
"aria-labelledby": G(s),
|
|
4201
4289
|
class: "glim-sheet"
|
|
4202
|
-
}, [D("div",
|
|
4290
|
+
}, [D("div", ol, [
|
|
4203
4291
|
D("h2", {
|
|
4204
4292
|
id: G(s),
|
|
4205
4293
|
class: "glim-sheet-title"
|
|
@@ -4211,9 +4299,9 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4211
4299
|
}, {
|
|
4212
4300
|
default: Y(() => [k(W(t.title), 1)]),
|
|
4213
4301
|
_: 1
|
|
4214
|
-
})], 8,
|
|
4215
|
-
D("div",
|
|
4216
|
-
A(
|
|
4302
|
+
})], 8, sl),
|
|
4303
|
+
D("div", cl, [V(n.$slots, "default")]),
|
|
4304
|
+
A(Ea, {
|
|
4217
4305
|
actions: t.actions,
|
|
4218
4306
|
start: t.start,
|
|
4219
4307
|
"has-start": c.value,
|
|
@@ -4229,12 +4317,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4229
4317
|
"has-start",
|
|
4230
4318
|
"text"
|
|
4231
4319
|
])
|
|
4232
|
-
])], 8,
|
|
4320
|
+
])], 8, al)) : T("", !0);
|
|
4233
4321
|
}
|
|
4234
|
-
}),
|
|
4322
|
+
}), ul = {
|
|
4235
4323
|
"data-glim": "SignInField",
|
|
4236
4324
|
class: "glim-signin-field"
|
|
4237
|
-
},
|
|
4325
|
+
}, dl = ["for"], fl = /* @__PURE__ */ j({
|
|
4238
4326
|
__name: "SignInField",
|
|
4239
4327
|
props: {
|
|
4240
4328
|
label: {},
|
|
@@ -4243,21 +4331,21 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4243
4331
|
},
|
|
4244
4332
|
setup(e) {
|
|
4245
4333
|
let t = e, n = z(!1), r = (e) => {
|
|
4246
|
-
n.value =
|
|
4334
|
+
n.value = Mt(document.getElementById(t.for), t.label, t.hint, e);
|
|
4247
4335
|
};
|
|
4248
|
-
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div",
|
|
4336
|
+
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div", ul, [D("label", {
|
|
4249
4337
|
for: t.$props.for,
|
|
4250
4338
|
class: P(n.value ? "glim-sr-only" : "glim-signin-label")
|
|
4251
4339
|
}, [k(W(e.label), 1), e.hint ? (R(), w(Q, {
|
|
4252
4340
|
key: 0,
|
|
4253
4341
|
tip: e.hint
|
|
4254
|
-
}, null, 8, ["tip"])) : T("", !0)], 10,
|
|
4342
|
+
}, null, 8, ["tip"])) : T("", !0)], 10, dl), V(t.$slots, "default")]));
|
|
4255
4343
|
}
|
|
4256
|
-
}),
|
|
4344
|
+
}), pl = [
|
|
4257
4345
|
"aria-label",
|
|
4258
4346
|
"aria-invalid",
|
|
4259
4347
|
"aria-describedby"
|
|
4260
|
-
],
|
|
4348
|
+
], ml = /* @__PURE__ */ j({
|
|
4261
4349
|
inheritAttrs: !1,
|
|
4262
4350
|
__name: "TextField",
|
|
4263
4351
|
props: /*@__PURE__*/ M({
|
|
@@ -4271,10 +4359,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4271
4359
|
}),
|
|
4272
4360
|
emits: ["update:modelValue"],
|
|
4273
4361
|
setup(e, { expose: t }) {
|
|
4274
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4362
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => Xn({
|
|
4275
4363
|
width: n.width,
|
|
4276
4364
|
mono: n.mono
|
|
4277
|
-
})), o = Me(), s = K(), c = C(() =>
|
|
4365
|
+
})), o = Me(), s = K(), c = C(() => ht(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4278
4366
|
return t({ input: l }), (t, n) => (R(), E(S, null, [Re(D("input", N({ "data-glim": "TextField" }, t.$attrs, {
|
|
4279
4367
|
ref_key: "input",
|
|
4280
4368
|
ref: l,
|
|
@@ -4284,7 +4372,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4284
4372
|
"aria-invalid": c.value.invalid,
|
|
4285
4373
|
"aria-describedby": c.value.describedBy,
|
|
4286
4374
|
class: a.value
|
|
4287
|
-
}), null, 16,
|
|
4375
|
+
}), null, 16, pl), [[Fe, r.value]]), c.value.errorId ? (R(), w(va, {
|
|
4288
4376
|
key: 0,
|
|
4289
4377
|
id: c.value.errorId
|
|
4290
4378
|
}, {
|
|
@@ -4292,26 +4380,26 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4292
4380
|
_: 1
|
|
4293
4381
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4294
4382
|
}
|
|
4295
|
-
}),
|
|
4383
|
+
}), hl = {
|
|
4296
4384
|
"data-glim": "SignInCard",
|
|
4297
4385
|
class: "glim-signin"
|
|
4298
|
-
},
|
|
4386
|
+
}, gl = { class: "glim-signin-head" }, _l = {
|
|
4299
4387
|
key: 0,
|
|
4300
4388
|
class: "glim-signin-logo",
|
|
4301
4389
|
"aria-hidden": "true"
|
|
4302
|
-
},
|
|
4390
|
+
}, vl = ["src"], yl = { class: "glim-signin-name" }, bl = {
|
|
4303
4391
|
key: 0,
|
|
4304
4392
|
class: "glim-signin-error",
|
|
4305
4393
|
role: "alert"
|
|
4306
|
-
},
|
|
4394
|
+
}, xl = {
|
|
4307
4395
|
key: 0,
|
|
4308
4396
|
class: "glim-signin-note",
|
|
4309
4397
|
role: "status"
|
|
4310
|
-
},
|
|
4398
|
+
}, Sl = { class: "glim-signin-hint" }, Cl = {
|
|
4311
4399
|
key: 3,
|
|
4312
4400
|
class: "glim-signin-error",
|
|
4313
4401
|
role: "alert"
|
|
4314
|
-
},
|
|
4402
|
+
}, wl = /* @__PURE__ */ j({
|
|
4315
4403
|
__name: "SignInCard",
|
|
4316
4404
|
props: {
|
|
4317
4405
|
logo: {},
|
|
@@ -4339,7 +4427,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4339
4427
|
onSetPassword: {}
|
|
4340
4428
|
},
|
|
4341
4429
|
setup(e) {
|
|
4342
|
-
let t = e, n = Ne(), r =
|
|
4430
|
+
let t = e, n = Ne(), r = ft(() => t), i = U(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
4343
4431
|
I(a);
|
|
4344
4432
|
let o = K(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = C(() => ({
|
|
4345
4433
|
signIn: "signIn",
|
|
@@ -4353,32 +4441,32 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4353
4441
|
hide: t.text.hide
|
|
4354
4442
|
})), u = U(null), d = "";
|
|
4355
4443
|
function p() {
|
|
4356
|
-
let e = n.step ? "step" :
|
|
4357
|
-
e !== d && ((d || t.autoFocus) &&
|
|
4444
|
+
let e = n.step ? "step" : Bn(i.value);
|
|
4445
|
+
e !== d && ((d || t.autoFocus) && yt(u.value), d = e);
|
|
4358
4446
|
}
|
|
4359
4447
|
return L(p), Oe(p), J(() => i.value.refusal?.count, (e, t, n) => {
|
|
4360
4448
|
let r = i.value.refusal;
|
|
4361
|
-
r && n(
|
|
4362
|
-
}, { flush: "post" }), (t, n) => (R(), E("div",
|
|
4449
|
+
r && n(Ln(u.value, r));
|
|
4450
|
+
}, { flush: "post" }), (t, n) => (R(), E("div", hl, [D("div", {
|
|
4363
4451
|
ref_key: "card",
|
|
4364
4452
|
ref: u,
|
|
4365
4453
|
class: "glim-card glim-signin-card"
|
|
4366
|
-
}, [D("div",
|
|
4454
|
+
}, [D("div", gl, [e.logo || t.$slots.logo ? (R(), E("span", _l, [V(t.$slots, "logo", {}, () => [D("img", {
|
|
4367
4455
|
src: e.logo,
|
|
4368
4456
|
alt: "",
|
|
4369
4457
|
draggable: "false"
|
|
4370
|
-
}, null, 8,
|
|
4458
|
+
}, null, 8, vl)])])) : T("", !0), D("h1", yl, W(e.appName), 1)]), t.$slots.step ? V(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (R(), E("form", {
|
|
4371
4459
|
key: 1,
|
|
4372
4460
|
class: "glim-signin-form",
|
|
4373
4461
|
novalidate: "",
|
|
4374
4462
|
onSubmit: n[4] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4375
4463
|
}, [
|
|
4376
|
-
A(
|
|
4464
|
+
A(fl, {
|
|
4377
4465
|
label: e.text.resetCode,
|
|
4378
4466
|
for: s("reset-code"),
|
|
4379
4467
|
hint: e.text.resetCodeTip
|
|
4380
4468
|
}, {
|
|
4381
|
-
default: Y(() => [A(
|
|
4469
|
+
default: Y(() => [A(ml, {
|
|
4382
4470
|
id: s("reset-code"),
|
|
4383
4471
|
"data-signin-field": "resetCode",
|
|
4384
4472
|
class: "glim-signin-log-code",
|
|
@@ -4395,11 +4483,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4395
4483
|
"for",
|
|
4396
4484
|
"hint"
|
|
4397
4485
|
]),
|
|
4398
|
-
A(
|
|
4486
|
+
A(fl, {
|
|
4399
4487
|
label: e.text.newPassword,
|
|
4400
4488
|
for: s("new")
|
|
4401
4489
|
}, {
|
|
4402
|
-
default: Y(() => [A(
|
|
4490
|
+
default: Y(() => [A(Ao, {
|
|
4403
4491
|
id: s("new"),
|
|
4404
4492
|
"data-signin-field": "newPassword",
|
|
4405
4493
|
"model-value": i.value.newPassword,
|
|
@@ -4413,11 +4501,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4413
4501
|
])]),
|
|
4414
4502
|
_: 1
|
|
4415
4503
|
}, 8, ["label", "for"]),
|
|
4416
|
-
A(
|
|
4504
|
+
A(fl, {
|
|
4417
4505
|
label: e.text.confirmPassword,
|
|
4418
4506
|
for: s("confirm")
|
|
4419
4507
|
}, {
|
|
4420
|
-
default: Y(() => [A(
|
|
4508
|
+
default: Y(() => [A(Ao, {
|
|
4421
4509
|
id: s("confirm"),
|
|
4422
4510
|
"data-signin-field": "confirm",
|
|
4423
4511
|
"model-value": i.value.confirm,
|
|
@@ -4431,14 +4519,14 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4431
4519
|
])]),
|
|
4432
4520
|
_: 1
|
|
4433
4521
|
}, 8, ["label", "for"]),
|
|
4434
|
-
i.value.error ? (R(), E("p",
|
|
4522
|
+
i.value.error ? (R(), E("p", bl, W(i.value.error), 1)) : T("", !0),
|
|
4435
4523
|
A(f, {
|
|
4436
4524
|
label: e.text.setPassword,
|
|
4437
4525
|
"label-key": c.value.setPassword,
|
|
4438
4526
|
tone: "accent",
|
|
4439
4527
|
type: "submit",
|
|
4440
4528
|
"data-signin": "set-password",
|
|
4441
|
-
disabled: G(
|
|
4529
|
+
disabled: G(wn)(i.value),
|
|
4442
4530
|
busy: i.value.busy === "setPassword",
|
|
4443
4531
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
4444
4532
|
}, null, 8, [
|
|
@@ -4466,13 +4554,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4466
4554
|
novalidate: "",
|
|
4467
4555
|
onSubmit: n[10] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4468
4556
|
}, [
|
|
4469
|
-
e.note ? (R(), E("p",
|
|
4557
|
+
e.note ? (R(), E("p", xl, W(e.note), 1)) : T("", !0),
|
|
4470
4558
|
i.value.viaPasskey ? T("", !0) : V(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
4471
|
-
Re(A(
|
|
4559
|
+
Re(A(fl, {
|
|
4472
4560
|
label: e.text.password,
|
|
4473
4561
|
for: s("password")
|
|
4474
4562
|
}, {
|
|
4475
|
-
default: Y(() => [A(
|
|
4563
|
+
default: Y(() => [A(Ao, {
|
|
4476
4564
|
id: s("password"),
|
|
4477
4565
|
"data-signin-field": "password",
|
|
4478
4566
|
"model-value": i.value.password,
|
|
@@ -4486,12 +4574,12 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4486
4574
|
])]),
|
|
4487
4575
|
_: 1
|
|
4488
4576
|
}, 8, ["label", "for"]), [[Ie, !i.value.viaPasskey]]),
|
|
4489
|
-
i.value.needCode ? (R(), w(
|
|
4577
|
+
i.value.needCode ? (R(), w(fl, {
|
|
4490
4578
|
key: 2,
|
|
4491
4579
|
label: e.text.code,
|
|
4492
4580
|
for: s("code")
|
|
4493
4581
|
}, {
|
|
4494
|
-
default: Y(() => [A(
|
|
4582
|
+
default: Y(() => [A(ml, {
|
|
4495
4583
|
id: s("code"),
|
|
4496
4584
|
"data-signin-field": "code",
|
|
4497
4585
|
class: "glim-signin-code",
|
|
@@ -4501,17 +4589,17 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4501
4589
|
spellcheck: "false",
|
|
4502
4590
|
placeholder: "000000",
|
|
4503
4591
|
"onUpdate:modelValue": n[6] ||= (e) => G(r).set("code", e)
|
|
4504
|
-
}, null, 8, ["id", "model-value"]), D("p",
|
|
4592
|
+
}, null, 8, ["id", "model-value"]), D("p", Sl, W(e.text.codeHint), 1)]),
|
|
4505
4593
|
_: 1
|
|
4506
4594
|
}, 8, ["label", "for"])) : T("", !0),
|
|
4507
|
-
i.value.error ? (R(), E("p",
|
|
4595
|
+
i.value.error ? (R(), E("p", Cl, W(i.value.error), 1)) : T("", !0),
|
|
4508
4596
|
A(f, {
|
|
4509
4597
|
label: e.text.signIn,
|
|
4510
4598
|
"label-key": c.value.signIn,
|
|
4511
4599
|
tone: "accent",
|
|
4512
4600
|
type: "submit",
|
|
4513
4601
|
"data-signin": "submit",
|
|
4514
|
-
disabled: G(
|
|
4602
|
+
disabled: G(zn)(i.value),
|
|
4515
4603
|
busy: i.value.busy === "signIn",
|
|
4516
4604
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
4517
4605
|
}, null, 8, [
|
|
@@ -4565,13 +4653,13 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4565
4653
|
])) : T("", !0)
|
|
4566
4654
|
], 32))], 512)]));
|
|
4567
4655
|
}
|
|
4568
|
-
}),
|
|
4656
|
+
}), Tl = {
|
|
4569
4657
|
key: 0,
|
|
4570
4658
|
class: "glim-skeleton-block glim-skeleton-tile"
|
|
4571
|
-
},
|
|
4659
|
+
}, El = {
|
|
4572
4660
|
key: 1,
|
|
4573
4661
|
class: "glim-skeleton-block glim-skeleton-badge"
|
|
4574
|
-
},
|
|
4662
|
+
}, Dl = /* @__PURE__ */ j({
|
|
4575
4663
|
__name: "SkeletonRow",
|
|
4576
4664
|
props: {
|
|
4577
4665
|
delay: {},
|
|
@@ -4585,7 +4673,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4585
4673
|
}
|
|
4586
4674
|
},
|
|
4587
4675
|
setup(e) {
|
|
4588
|
-
let t = e, n = C(() =>
|
|
4676
|
+
let t = e, n = C(() => Vn({
|
|
4589
4677
|
delay: t.delay,
|
|
4590
4678
|
tile: t.tile,
|
|
4591
4679
|
badge: t.badge
|
|
@@ -4596,18 +4684,18 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4596
4684
|
class: P(n.value.className),
|
|
4597
4685
|
style: F(n.value.style)
|
|
4598
4686
|
}, [
|
|
4599
|
-
n.value.tile ? (R(), E("span",
|
|
4687
|
+
n.value.tile ? (R(), E("span", Tl)) : T("", !0),
|
|
4600
4688
|
t[0] ||= D("span", { class: "glim-skeleton-block glim-skeleton-name" }, null, -1),
|
|
4601
|
-
n.value.badge ? (R(), E("span",
|
|
4689
|
+
n.value.badge ? (R(), E("span", El)) : T("", !0)
|
|
4602
4690
|
], 6));
|
|
4603
4691
|
}
|
|
4604
|
-
}),
|
|
4692
|
+
}), Ol = ["data-glim-title", "aria-labelledby"], kl = {
|
|
4605
4693
|
key: 0,
|
|
4606
4694
|
class: "glim-panel-heading"
|
|
4607
|
-
},
|
|
4695
|
+
}, Al = ["id"], jl = {
|
|
4608
4696
|
key: 1,
|
|
4609
4697
|
class: "glim-subcard-end"
|
|
4610
|
-
},
|
|
4698
|
+
}, Ml = /* @__PURE__ */ j({
|
|
4611
4699
|
__name: "SubCard",
|
|
4612
4700
|
props: {
|
|
4613
4701
|
title: {},
|
|
@@ -4621,23 +4709,23 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4621
4709
|
class: P(["glim-subcard", { "glim-subcard--titled": t.title }]),
|
|
4622
4710
|
"aria-labelledby": t.title ? G(n) : void 0
|
|
4623
4711
|
}, [
|
|
4624
|
-
t.title ? (R(), E("h3",
|
|
4712
|
+
t.title ? (R(), E("h3", kl, [A(e, {
|
|
4625
4713
|
tone: "heading",
|
|
4626
4714
|
size: "heading",
|
|
4627
4715
|
wrap: ""
|
|
4628
4716
|
}, {
|
|
4629
|
-
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9,
|
|
4717
|
+
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9, Al), t.hint ? (R(), w(Q, {
|
|
4630
4718
|
key: 0,
|
|
4631
4719
|
tip: t.hint,
|
|
4632
4720
|
"on-accent": ""
|
|
4633
4721
|
}, null, 8, ["tip"])) : T("", !0)]),
|
|
4634
4722
|
_: 1
|
|
4635
4723
|
})])) : T("", !0),
|
|
4636
|
-
r.$slots.end ? (R(), E("div",
|
|
4724
|
+
r.$slots.end ? (R(), E("div", jl, [V(r.$slots, "end")])) : T("", !0),
|
|
4637
4725
|
V(r.$slots, "default")
|
|
4638
|
-
], 10,
|
|
4726
|
+
], 10, Ol));
|
|
4639
4727
|
}
|
|
4640
|
-
}),
|
|
4728
|
+
}), Nl = ["aria-label"], Pl = { key: 0 }, Fl = { key: 0 }, Il = ["colspan"], Ll = /* @__PURE__ */ j({
|
|
4641
4729
|
__name: "Table",
|
|
4642
4730
|
props: {
|
|
4643
4731
|
label: {},
|
|
@@ -4651,27 +4739,27 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4651
4739
|
"data-glim": "Table",
|
|
4652
4740
|
class: "glim-table",
|
|
4653
4741
|
"aria-label": e.label
|
|
4654
|
-
}, [n.value ? (R(), E("thead",
|
|
4742
|
+
}, [n.value ? (R(), E("thead", Pl, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("th", {
|
|
4655
4743
|
key: e.key,
|
|
4656
4744
|
scope: "col",
|
|
4657
4745
|
class: P({ "glim-table-end": e.end })
|
|
4658
4746
|
}, 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
4747
|
key: e.key,
|
|
4660
|
-
class: P(G(
|
|
4748
|
+
class: P(G(Yn)(e))
|
|
4661
4749
|
}, [V(t.$slots, "cell", {
|
|
4662
4750
|
row: n,
|
|
4663
4751
|
column: e,
|
|
4664
4752
|
value: r(n, e)
|
|
4665
|
-
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr",
|
|
4753
|
+
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr", Fl, [D("td", {
|
|
4666
4754
|
colspan: e.columns.length,
|
|
4667
4755
|
class: "glim-table-muted"
|
|
4668
|
-
}, W(e.more), 9,
|
|
4756
|
+
}, W(e.more), 9, Il)])) : T("", !0)])], 8, Nl));
|
|
4669
4757
|
}
|
|
4670
|
-
}),
|
|
4758
|
+
}), Rl = [
|
|
4671
4759
|
"aria-label",
|
|
4672
4760
|
"aria-invalid",
|
|
4673
4761
|
"aria-describedby"
|
|
4674
|
-
],
|
|
4762
|
+
], zl = /* @__PURE__ */ j({
|
|
4675
4763
|
inheritAttrs: !1,
|
|
4676
4764
|
__name: "TextArea",
|
|
4677
4765
|
props: /*@__PURE__*/ M({
|
|
@@ -4685,11 +4773,11 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4685
4773
|
}),
|
|
4686
4774
|
emits: ["update:modelValue"],
|
|
4687
4775
|
setup(e, { expose: t }) {
|
|
4688
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4776
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => Xn({
|
|
4689
4777
|
width: n.width,
|
|
4690
4778
|
mono: n.mono,
|
|
4691
4779
|
area: !0
|
|
4692
|
-
})), o = Me(), s = K(), c = C(() =>
|
|
4780
|
+
})), o = Me(), s = K(), c = C(() => ht(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4693
4781
|
return t({ input: l }), (t, n) => (R(), E(S, null, [Re(D("textarea", N({ "data-glim": "TextArea" }, t.$attrs, {
|
|
4694
4782
|
ref_key: "input",
|
|
4695
4783
|
ref: l,
|
|
@@ -4698,7 +4786,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4698
4786
|
"aria-invalid": c.value.invalid,
|
|
4699
4787
|
"aria-describedby": c.value.describedBy,
|
|
4700
4788
|
class: a.value
|
|
4701
|
-
}), null, 16,
|
|
4789
|
+
}), null, 16, Rl), [[Fe, r.value]]), c.value.errorId ? (R(), w(va, {
|
|
4702
4790
|
key: 0,
|
|
4703
4791
|
id: c.value.errorId
|
|
4704
4792
|
}, {
|
|
@@ -4706,7 +4794,7 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4706
4794
|
_: 1
|
|
4707
4795
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4708
4796
|
}
|
|
4709
|
-
}),
|
|
4797
|
+
}), Bl = { class: "glim-toast-body" }, Vl = { class: "glim-toast-message" }, Hl = { key: 0 }, Ul = ["aria-label"], Wl = /* @__PURE__ */ j({
|
|
4710
4798
|
__name: "ToastCard",
|
|
4711
4799
|
props: {
|
|
4712
4800
|
id: {},
|
|
@@ -4737,10 +4825,10 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4737
4825
|
onKeydown: n[6] ||= ze(X((t) => r("dismiss", e.id), ["stop"]), ["esc"])
|
|
4738
4826
|
}, [
|
|
4739
4827
|
A(G(m), {
|
|
4740
|
-
mark: G(
|
|
4828
|
+
mark: G(Ye)[e.severity],
|
|
4741
4829
|
class: P(`glim-toast-glyph glim-toast-glyph--${e.severity}`)
|
|
4742
4830
|
}, null, 8, ["mark", "class"]),
|
|
4743
|
-
D("div",
|
|
4831
|
+
D("div", Bl, [D("p", Vl, [(R(!0), E(S, null, B(G(Hn)(e.message), (e, t) => (R(), E(S, { key: t }, [t > 0 ? (R(), E("wbr", Hl)) : T("", !0), k(W(e), 1)], 64))), 128))]), e.action ? (R(), w(f, {
|
|
4744
4832
|
key: 0,
|
|
4745
4833
|
class: "glim-toast-action",
|
|
4746
4834
|
tone: "subtle",
|
|
@@ -4753,19 +4841,19 @@ var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
|
4753
4841
|
"aria-label": e.dismissLabel,
|
|
4754
4842
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
4755
4843
|
onClick: n[1] ||= (t) => r("dismiss", e.id)
|
|
4756
|
-
}, [A(G(m), { mark: G(
|
|
4844
|
+
}, [A(G(m), { mark: G(qe).dismiss }, null, 8, ["mark"])], 8, Ul)
|
|
4757
4845
|
], 32));
|
|
4758
4846
|
}
|
|
4759
|
-
}),
|
|
4760
|
-
function
|
|
4761
|
-
for (let i of Object.values(t)) typeof n[
|
|
4847
|
+
}), Gl = (e) => `on${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
4848
|
+
function Kl(e, t, n, r) {
|
|
4849
|
+
for (let i of Object.values(t)) typeof n[Gl(i)] == "function" && r(`${e} ${i}`);
|
|
4762
4850
|
return (e, ...r) => {
|
|
4763
|
-
let i = t[e], a = i === void 0 ? void 0 : n[
|
|
4851
|
+
let i = t[e], a = i === void 0 ? void 0 : n[Gl(i)];
|
|
4764
4852
|
typeof a == "function" && a(...r);
|
|
4765
4853
|
};
|
|
4766
4854
|
}
|
|
4767
4855
|
// src/ToastViewport.vue
|
|
4768
|
-
var
|
|
4856
|
+
var ql = /* @__PURE__ */ j({
|
|
4769
4857
|
inheritAttrs: !1,
|
|
4770
4858
|
__name: "ToastViewport",
|
|
4771
4859
|
props: {
|
|
@@ -4784,12 +4872,12 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4784
4872
|
"blur"
|
|
4785
4873
|
],
|
|
4786
4874
|
setup(e, { emit: t }) {
|
|
4787
|
-
let n = e, r = t, i =
|
|
4875
|
+
let n = e, r = t, i = Kl("ToastViewport", {
|
|
4788
4876
|
mouseEnter: "enter",
|
|
4789
4877
|
mouseLeave: "leave",
|
|
4790
4878
|
focus: "focusin",
|
|
4791
4879
|
blur: "focusout"
|
|
4792
|
-
}, n,
|
|
4880
|
+
}, n, or);
|
|
4793
4881
|
function a(e) {
|
|
4794
4882
|
r("mouseEnter", e), i("mouseEnter", e);
|
|
4795
4883
|
}
|
|
@@ -4806,18 +4894,18 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4806
4894
|
return J(() => n.toasts, (e) => {
|
|
4807
4895
|
let t = new Set(e.map((e) => e.id));
|
|
4808
4896
|
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),
|
|
4897
|
+
for (let t of e) l.has(t.id) || (l.add(t.id), Qe(t.message, Qn(t.severity)));
|
|
4810
4898
|
}, {
|
|
4811
4899
|
immediate: !0,
|
|
4812
4900
|
deep: 1,
|
|
4813
4901
|
flush: "post"
|
|
4814
4902
|
}), (t, n) => (R(), E(S, null, [
|
|
4815
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4816
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4903
|
+
D("div", N({ class: "glim-sr-only" }, G(It)("polite")), null, 16),
|
|
4904
|
+
D("div", N({ class: "glim-sr-only" }, G(It)("assertive")), null, 16),
|
|
4817
4905
|
D("div", N({
|
|
4818
4906
|
"data-glim": "ToastViewport",
|
|
4819
4907
|
class: "glim-toast-stack"
|
|
4820
|
-
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(
|
|
4908
|
+
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(Wl, {
|
|
4821
4909
|
id: t.id,
|
|
4822
4910
|
key: t.id,
|
|
4823
4911
|
message: t.message,
|
|
@@ -4838,7 +4926,7 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4838
4926
|
]))), 128))], 16)
|
|
4839
4927
|
], 64));
|
|
4840
4928
|
}
|
|
4841
|
-
}),
|
|
4929
|
+
}), Jl = ["aria-label"], Yl = [
|
|
4842
4930
|
"aria-level",
|
|
4843
4931
|
"aria-posinset",
|
|
4844
4932
|
"aria-setsize",
|
|
@@ -4849,11 +4937,11 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4849
4937
|
"onClick",
|
|
4850
4938
|
"onDblclick",
|
|
4851
4939
|
"onKeydown"
|
|
4852
|
-
],
|
|
4940
|
+
], Xl = ["onClick"], Zl = {
|
|
4853
4941
|
key: 0,
|
|
4854
4942
|
class: "glim-tree-glyph",
|
|
4855
4943
|
"aria-hidden": "true"
|
|
4856
|
-
},
|
|
4944
|
+
}, Ql = { class: "glim-tree-label" }, $l = /* @__PURE__ */ j({
|
|
4857
4945
|
__name: "Tree",
|
|
4858
4946
|
props: /*@__PURE__*/ M({
|
|
4859
4947
|
label: {},
|
|
@@ -4871,7 +4959,7 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4871
4959
|
s.has(e) || (s.add(e), Promise.resolve(n.load(e)).then((t) => o.set(e, t), () => s.delete(e)));
|
|
4872
4960
|
}
|
|
4873
4961
|
J(i, (e) => [null, ...e].forEach(l), { immediate: !0 });
|
|
4874
|
-
let u = C(() =>
|
|
4962
|
+
let u = C(() => tr(o, i.value)), d = C(() => Math.max(u.value.findIndex((e) => e.node.id === r.value), 0));
|
|
4875
4963
|
function f(e) {
|
|
4876
4964
|
i.value = i.value.includes(e) ? i.value.filter((t) => t !== e) : [...i.value, e];
|
|
4877
4965
|
}
|
|
@@ -4882,8 +4970,8 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4882
4970
|
e.preventDefault(), r.value = n, e.key === "Enter" && a("activate", n);
|
|
4883
4971
|
return;
|
|
4884
4972
|
}
|
|
4885
|
-
let i =
|
|
4886
|
-
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus,
|
|
4973
|
+
let i = nr(u.value, t, e.key, getComputedStyle(c.value).direction === "rtl");
|
|
4974
|
+
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, Ct(c.value, i.focus)) : f("open" in i ? i.open : i.close));
|
|
4887
4975
|
}
|
|
4888
4976
|
return (t, n) => (R(), E("div", {
|
|
4889
4977
|
ref_key: "tree",
|
|
@@ -4913,15 +5001,15 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4913
5001
|
"aria-hidden": "true",
|
|
4914
5002
|
onClick: X((t) => e.node.hasChildren && f(e.node.id), ["stop"]),
|
|
4915
5003
|
onDblclick: n[0] ||= X(() => {}, ["stop"])
|
|
4916
|
-
}, [e.node.hasChildren ? (R(), w(G(le), { key: 0 })) : T("", !0)], 40,
|
|
4917
|
-
e.node.glyph ? (R(), E("span",
|
|
4918
|
-
D("span",
|
|
4919
|
-
], 16,
|
|
5004
|
+
}, [e.node.hasChildren ? (R(), w(G(le), { key: 0 })) : T("", !0)], 40, Xl),
|
|
5005
|
+
e.node.glyph ? (R(), E("span", Zl, [(R(), w(H(e.open && e.node.openGlyph || e.node.glyph)))])) : T("", !0),
|
|
5006
|
+
D("span", Ql, W(e.node.label), 1)
|
|
5007
|
+
], 16, Yl))), 128))], 8, Jl));
|
|
4920
5008
|
}
|
|
4921
|
-
}),
|
|
5009
|
+
}), eu = ["data-glim-title"], tu = { class: "glim-notice-title" }, nu = { class: "glim-notice-reason" }, ru = {
|
|
4922
5010
|
key: 0,
|
|
4923
5011
|
class: "glim-notice-action"
|
|
4924
|
-
},
|
|
5012
|
+
}, iu = /* @__PURE__ */ j({
|
|
4925
5013
|
__name: "UnavailableNotice",
|
|
4926
5014
|
props: { title: {} },
|
|
4927
5015
|
setup(e) {
|
|
@@ -4930,12 +5018,12 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4930
5018
|
"data-glim-title": e.title,
|
|
4931
5019
|
class: "glim-notice"
|
|
4932
5020
|
}, [
|
|
4933
|
-
D("p",
|
|
4934
|
-
D("p",
|
|
4935
|
-
t.$slots.action ? (R(), E("div",
|
|
4936
|
-
], 8,
|
|
5021
|
+
D("p", tu, W(e.title), 1),
|
|
5022
|
+
D("p", nu, [V(t.$slots, "default")]),
|
|
5023
|
+
t.$slots.action ? (R(), E("div", ru, [V(t.$slots, "action")])) : T("", !0)
|
|
5024
|
+
], 8, eu));
|
|
4937
5025
|
}
|
|
4938
|
-
}),
|
|
5026
|
+
}), au = ["aria-label"], ou = { class: "glim-window-square" }, su = { class: "glim-window-square" }, cu = { class: "glim-window-square" }, lu = /* @__PURE__ */ j({
|
|
4939
5027
|
__name: "WindowBar",
|
|
4940
5028
|
props: {
|
|
4941
5029
|
appName: {},
|
|
@@ -4976,7 +5064,7 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4976
5064
|
class: "glim-window-button",
|
|
4977
5065
|
onClick: r[0] ||= (e) => n("minimise")
|
|
4978
5066
|
}, {
|
|
4979
|
-
default: Y(() => [D("span",
|
|
5067
|
+
default: Y(() => [D("span", ou, [A(G(_))])]),
|
|
4980
5068
|
_: 1
|
|
4981
5069
|
}, 8, ["tip"]),
|
|
4982
5070
|
A(ge, {
|
|
@@ -4984,7 +5072,7 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4984
5072
|
class: "glim-window-button",
|
|
4985
5073
|
onClick: r[1] ||= (e) => n("toggleMaximise")
|
|
4986
5074
|
}, {
|
|
4987
|
-
default: Y(() => [D("span",
|
|
5075
|
+
default: Y(() => [D("span", su, [e.maximised ? (R(), w(G(me), { key: 0 })) : (R(), w(G(he), { key: 1 }))])]),
|
|
4988
5076
|
_: 1
|
|
4989
5077
|
}, 8, ["tip"]),
|
|
4990
5078
|
A(ge, {
|
|
@@ -4992,17 +5080,17 @@ var Ml = /* @__PURE__ */ j({
|
|
|
4992
5080
|
class: "glim-window-button",
|
|
4993
5081
|
onClick: r[2] ||= (e) => n("close")
|
|
4994
5082
|
}, {
|
|
4995
|
-
default: Y(() => [D("span",
|
|
5083
|
+
default: Y(() => [D("span", cu, [A(G(g))])]),
|
|
4996
5084
|
_: 1
|
|
4997
5085
|
}, 8, ["tip"])
|
|
4998
|
-
], 40,
|
|
5086
|
+
], 40, au));
|
|
4999
5087
|
}
|
|
5000
5088
|
});
|
|
5001
5089
|
// src/confirm.ts
|
|
5002
|
-
function
|
|
5090
|
+
function uu(e) {
|
|
5003
5091
|
let t = U(null), n = U(null), r = null, i = null;
|
|
5004
5092
|
function a(e, n) {
|
|
5005
|
-
return i =
|
|
5093
|
+
return i = wt(), new Promise((i) => {
|
|
5006
5094
|
r = i, t.value = {
|
|
5007
5095
|
message: e,
|
|
5008
5096
|
...n
|
|
@@ -5010,15 +5098,15 @@ function Yl(e) {
|
|
|
5010
5098
|
});
|
|
5011
5099
|
}
|
|
5012
5100
|
function o(e) {
|
|
5013
|
-
r?.(e), r = null, t.value = null,
|
|
5101
|
+
r?.(e), r = null, t.value = null, Tn(i), i = null;
|
|
5014
5102
|
}
|
|
5015
5103
|
let s = () => o(!1);
|
|
5016
|
-
return
|
|
5104
|
+
return du(() => t.value !== null, n, s), {
|
|
5017
5105
|
confirm: a,
|
|
5018
5106
|
dismiss: s,
|
|
5019
5107
|
ConfirmHost: j(() => () => {
|
|
5020
5108
|
let r = t.value;
|
|
5021
|
-
return r ? Ce(Se, { to:
|
|
5109
|
+
return r ? Ce(Se, { to: hn() }, [Ce(gi, {
|
|
5022
5110
|
ref: (e) => n.value = e?.card ?? null,
|
|
5023
5111
|
title: e.title,
|
|
5024
5112
|
message: r.message,
|
|
@@ -5032,13 +5120,13 @@ function Yl(e) {
|
|
|
5032
5120
|
})
|
|
5033
5121
|
};
|
|
5034
5122
|
}
|
|
5035
|
-
function
|
|
5123
|
+
function du(e, t, n) {
|
|
5036
5124
|
J(e, (e, r, i) => {
|
|
5037
|
-
e && i(
|
|
5125
|
+
e && i(er(() => t.value, n));
|
|
5038
5126
|
}, { immediate: !0 });
|
|
5039
5127
|
}
|
|
5040
5128
|
// src/paypalButtons.ts
|
|
5041
|
-
function
|
|
5129
|
+
function fu(e) {
|
|
5042
5130
|
let t = U(null), n = () => {};
|
|
5043
5131
|
return J([
|
|
5044
5132
|
t,
|
|
@@ -5050,7 +5138,7 @@ function Zl(e) {
|
|
|
5050
5138
|
let o = null, s = !1;
|
|
5051
5139
|
n = () => {
|
|
5052
5140
|
s = !0, o?.close().catch(() => {});
|
|
5053
|
-
},
|
|
5141
|
+
}, Lt(r, i !== "once").then((n) => {
|
|
5054
5142
|
if (s) return;
|
|
5055
5143
|
let c = n.Buttons({
|
|
5056
5144
|
style: {
|
|
@@ -5062,7 +5150,7 @@ function Zl(e) {
|
|
|
5062
5150
|
height: 40
|
|
5063
5151
|
},
|
|
5064
5152
|
onClick: (t, n) => e().amount ? n.resolve() : n.reject(),
|
|
5065
|
-
...
|
|
5153
|
+
...pt(r, i, () => e().amount ?? "0", a, () => e().onDone()),
|
|
5066
5154
|
onError: () => e().onError()
|
|
5067
5155
|
});
|
|
5068
5156
|
o = c, t.replaceChildren(), c.render(t).catch(() => e().onError());
|
|
@@ -5072,8 +5160,8 @@ function Zl(e) {
|
|
|
5072
5160
|
}), Ee(() => n()), (e) => t.value = e;
|
|
5073
5161
|
}
|
|
5074
5162
|
// src/dragArmed.ts
|
|
5075
|
-
function
|
|
5163
|
+
function pu(e, t) {
|
|
5076
5164
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
5077
5165
|
Le(n, { flush: "post" }), Oe(n);
|
|
5078
5166
|
}
|
|
5079
|
-
export {
|
|
5167
|
+
export { Rr as AboutCard, e as Badge, Ur as BrandMark, c as BusyRing, f as Button, pr as Card, qr as Checkbox, ri as CoffeeDialog, ci as ColorPicker, gi as ConfirmDialog, Oi as ConnectionRow, Ui as ContextMenu, Ki as CopyField, ca as CryptoDonateDialog, da as DropdownListbox, ga as EmptyState, va as FieldError, Sa as FieldRow, Ca as FieldRowGroup, Cs as Fortress, ao as FortressAppCard, Ma as FortressDoubtWindow, ws as FortressPairing, Oo as FortressPermissions, Xs as FortressStatusWindow, We as GLIMSTONE_RELEASE_URL, Ge as GLIMSTONE_REPO, Ke as GLIMSTONE_VERSION, $s as GlyphField, ec as GlyphTile, ue as IconBack, xe as IconButton, ae as IconCalendar, ce as IconCancel, b as IconCheck, g as IconClose, oe as IconCopy, le as IconExpand, v as IconEye, re as IconEyeOff, de as IconFolderOpen, ee as IconForward, te as IconPause, se as IconPencil, ie as IconPlay, ne as IconResetArrow, y as IconSearch, h as IconStar, ge as IconTipButton, fe as IconUpload, he as IconWindowMaximise, _ as IconWindowMinimise, me as IconWindowRestore, Cr as InfoAboutCard, Q as InfoBubble, Er as InfoHelpCard, Lr as InfoTile, Fr as InfoVersionCard, Ja as InstanceCard, Ai as Kbd, ac as ListRow, bc as ListTable, m as MarkSvg, Cc as MenuBar, Tc as Meter, Oc as NumberField, Ao as PasswordField, Ac as PathField, qc as PaypalDialog, Qc as PickerWindow, ya as Pill, sc as Popover, Xa as PresenceBadges, Es as ProgressBar, $ as ReadmeButton, $c as RowMark, po as Selector, ll as Sheet, il as SidebarRow, wl as SignInCard, fl as SignInField, Dl as SkeletonRow, Ml as SubCard, Ll as Table, zl as TextArea, ml as TextField, Wl as ToastCard, ql as ToastViewport, _o as Toggle, $l as Tree, iu as UnavailableNotice, Aa as Window, lu as WindowBar, Za as deviceGlyph, p as glyphFor, Nn as selectorTabId, pe as setGlyphResolver, u as useAccent, uu as useConfirm, o as useDensity, du as useDialogKeys, pu as useDragArmed, x as useFieldName, i as useHue, l as useLabelMode, d as useMotion, fu as usePaypalButtons, ye as usePortalHue, a as useRainbow, s as useShape, n as useTipBubble };
|