@glimstone/vue 4.5.7 → 4.5.8
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/BrandMark.vue.d.ts +1 -0
- package/dist/PickerWindow.vue.d.ts +2 -0
- package/dist/ReadmeButton.vue.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +645 -605
- 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, COPIED_MS as He, GLIMSTONE_RELEASE_URL as Ue, GLIMSTONE_REPO as We, GLIMSTONE_VERSION as Ge, MARKS as Ke, PATH_ROOM_PX as qe, TOAST_MARKS as Je, WIDE_QUERY as Ye, anchorName as Xe, announce as Ze, appCardView as Qe, ariaSort as $e, attachNumberSteppers as et, claimMenu as tt, closeMenuOutside as nt, colorPicker as rt, columnValues as it, computeBubblePosition as at, copyText as ot, countSelector as st, createFortressFlow as ct, createSignInFlow as lt, donationHandlers as ut, doubtView as dt, fieldErrorView as ft, fieldWidthClass as pt, fill as Z, floatColorPicker as mt, focusByLetter as ht, focusFirstField as gt, focusFirstMenuRow as _t, focusMenuRow as vt, focusMenuRowByLetter as yt, focusTreeRow as bt, focusedAsker as xt, holdPickHeight as St, hueVars as Ct, isMenuHead as wt, isTileMark as Tt, isTypeahead as Et, joinRefusalText as Dt, keepReadmeFit as Ot, labelInside as kt, listKey as At, listOf as jt, listView as Mt, liveRegionAttrs as Nt, loadPaypal as Pt, mailHref as Ft, mediaMatches as It, memberName as Lt, menuIsOpen as Rt, menuMove as zt, menuRowView as Bt, meterView as Vt, nearestColorName as Ht, nextSort as Ut, normalizeHex as Wt, offersDiscord as Gt, offersMail as Kt, openInBrowser as qt, openInstance as Jt, openPopover as Yt, openSheet as Xt, othersLine as Zt, pageLocale as Qt, permissionsWith as $t, phraseReady as en,
|
|
11
|
+
import { COLOR_NAMES_DE as Be, COLOR_PICKER_TEXT as Ve, COPIED_MS as He, GLIMSTONE_RELEASE_URL as Ue, GLIMSTONE_REPO as We, GLIMSTONE_VERSION as Ge, MARKS as Ke, PATH_ROOM_PX as qe, TOAST_MARKS as Je, WIDE_QUERY as Ye, anchorName as Xe, announce as Ze, appCardView as Qe, ariaSort as $e, attachNumberSteppers as et, claimMenu as tt, closeMenuOutside as nt, colorPicker as rt, columnValues as it, computeBubblePosition as at, copyText as ot, countSelector as st, createFortressFlow as ct, createSignInFlow as lt, donationHandlers as ut, doubtView as dt, fieldErrorView as ft, fieldWidthClass as pt, fill as Z, floatColorPicker as mt, focusByLetter as ht, focusFirstField as gt, focusFirstMenuRow as _t, focusMenuRow as vt, focusMenuRowByLetter as yt, focusTreeRow as bt, focusedAsker as xt, holdPickHeight as St, hueVars as Ct, isMenuHead as wt, isTileMark as Tt, isTypeahead as Et, joinRefusalText as Dt, keepReadmeFit as Ot, labelInside as kt, listKey as At, listOf as jt, listView as Mt, liveRegionAttrs as Nt, loadPaypal as Pt, mailHref as Ft, mediaMatches as It, memberName as Lt, menuIsOpen as Rt, menuMove as zt, menuRowView as Bt, meterView as Vt, nearestColorName as Ht, nextSort as Ut, normalizeHex as Wt, offersDiscord as Gt, offersMail as Kt, openInBrowser as qt, openInstance as Jt, openPopover as Yt, openSheet as Xt, othersLine as Zt, pageLocale as Qt, permissionsWith as $t, phraseReady as en, pickFocusTarget as tn, pickMarkClass as nn, pickSearchKey as rn, pickSections as an, pickTileKey as on, pickTileStyle as sn, pickerHue as cn, pillClassName as ln, placeMenu as un, placeSubmenu as dn, portalTarget as fn, presenceTone as pn, pressRowControl as mn, progressView as hn, qrCode as gn, readmePartClass as _n, readmePartLabel as vn, readmeSoon as yn, readmeUnitClass as bn, resetBlocked as xn, returnFocus as Sn, roveSelector as Cn, rovedIndex as wn, runUpdateCheck as Tn, segmentView as En, selectByClick as Dn, selectorAxis as On, selectorFlex as kn, selectorTabId as An, selectorTabId as jn, selectorView as Mn, shake as Nn, showRefusal as Pn, sidebarRowView as Fn, signInBlocked as In, signInStage as Ln, skeletonRowView as Rn, softBreaks as zn, stackWindow as Bn, statusView as Vn, storeShowOthers as Hn, storedShowOthers as Un, subscribeMedia as Wn, syncNumberSteppers as Gn, tableCellClass as Kn, textFieldClass as qn, tidyMenu as Jn, toastPoliteness as Yn, toggleSelection as Xn, trapDialogKeys as Zn, treeRows as Qn, treeStep as $n, updateFace as er, updateStage as tr, versionLink as nr, warnDeprecated as rr, watchSelectorFit as ir, windowFocusTarget as ar, windowFoot as or } from "@glimstone/core";
|
|
12
12
|
// src/InfoBubble.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var sr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
14
14
|
__name: "InfoBubble",
|
|
15
15
|
props: {
|
|
16
16
|
tip: {},
|
|
@@ -60,12 +60,12 @@ var ar = ["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, sr), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), cr = ["data-glim-title"], lr = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "glim-panel-heading"
|
|
68
|
-
},
|
|
68
|
+
}, ur = /* @__PURE__ */ j({
|
|
69
69
|
__name: "Card",
|
|
70
70
|
props: {
|
|
71
71
|
title: {},
|
|
@@ -87,7 +87,7 @@ var ar = ["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", lr, [A(e, {
|
|
91
91
|
tone: "heading",
|
|
92
92
|
size: "heading",
|
|
93
93
|
wrap: "",
|
|
@@ -99,20 +99,20 @@ var ar = ["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, cr));
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), dr = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "glim-readme-btn-art",
|
|
107
107
|
"aria-hidden": "true"
|
|
108
|
-
},
|
|
108
|
+
}, fr = { class: "glim-readme-btn-text" }, pr = { class: "glim-readme-btn-name" }, mr = {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "glim-readme-btn-sub"
|
|
111
|
-
},
|
|
111
|
+
}, hr = {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "glim-readme-btn-sheen",
|
|
114
114
|
"aria-hidden": "true"
|
|
115
|
-
},
|
|
115
|
+
}, gr = {
|
|
116
116
|
key: 1,
|
|
117
117
|
class: "glim-readme-btn-hint"
|
|
118
118
|
}, $ = /* @__PURE__ */ j({
|
|
@@ -127,22 +127,27 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
127
127
|
type: Boolean,
|
|
128
128
|
default: !1
|
|
129
129
|
},
|
|
130
|
-
soonLabel: {}
|
|
130
|
+
soonLabel: {},
|
|
131
|
+
current: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: !1
|
|
134
|
+
}
|
|
131
135
|
},
|
|
132
136
|
emits: ["linkClick"],
|
|
133
137
|
setup(e, { emit: r }) {
|
|
134
|
-
let i = e, a = r, o = C(() =>
|
|
138
|
+
let i = e, a = r, o = C(() => yn(i.parts)), s = U(null), c = C(() => i.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (o.value ? i.soonLabel : "")), l;
|
|
135
139
|
J([s, c], () => {
|
|
136
140
|
l?.(), l = s.value ? Ot(s.value) : void 0;
|
|
137
141
|
}, { flush: "post" }), Ee(() => l?.());
|
|
138
142
|
let u = n(() => i.tip), d = (e) => e === 0 ? {
|
|
139
143
|
ref: (e) => u.trigger.value = e,
|
|
140
144
|
"aria-describedby": u.describedBy.value,
|
|
145
|
+
"aria-current": i.current || void 0,
|
|
141
146
|
onMouseenter: u.show,
|
|
142
147
|
onMouseleave: u.hide,
|
|
143
148
|
onFocus: u.showOnFocus,
|
|
144
149
|
onBlur: u.hide
|
|
145
|
-
} : {}, f = (e) => o.value ? i.soonLabel : e.sub, p = (e) =>
|
|
150
|
+
} : {}, f = (e) => o.value ? i.soonLabel : e.sub, p = (e) => vn(e, f(e)), m = (e) => o.value ? "span" : e.href ? "a" : "button", h = (e) => o.value ? { "aria-disabled": !0 } : e.href ? {
|
|
146
151
|
href: e.href,
|
|
147
152
|
target: "_blank",
|
|
148
153
|
rel: "noreferrer noopener",
|
|
@@ -155,28 +160,28 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
155
160
|
ref_key: "root",
|
|
156
161
|
ref: s,
|
|
157
162
|
"data-glim": "ReadmeButton",
|
|
158
|
-
class: P(G(
|
|
163
|
+
class: P(G(bn)(e.brand, e.parts.length, e.note, o.value))
|
|
159
164
|
}, [
|
|
160
165
|
(R(!0), E(S, null, B(e.parts, (t, r) => (R(), w(H(m(t)), N({ key: r }, { ref_for: !0 }, {
|
|
161
166
|
...h(t),
|
|
162
167
|
...d(r)
|
|
163
168
|
}, {
|
|
164
169
|
"aria-label": p(t),
|
|
165
|
-
class: G(
|
|
170
|
+
class: G(_n)(r, o.value)
|
|
166
171
|
}), {
|
|
167
|
-
default: Y(() => [r === 0 && n.$slots.art ? (R(), E("span",
|
|
172
|
+
default: Y(() => [r === 0 && n.$slots.art ? (R(), E("span", dr, [V(n.$slots, "art")])) : (R(), E(S, { key: 1 }, [r === 0 && n.$slots.mark ? (R(), E("span", {
|
|
168
173
|
key: 0,
|
|
169
174
|
class: P(`glim-readme-btn-mark ${e.markClass ?? ""}`),
|
|
170
175
|
"aria-hidden": "true"
|
|
171
|
-
}, [V(n.$slots, "mark")], 2)) : T("", !0), D("span",
|
|
176
|
+
}, [V(n.$slots, "mark")], 2)) : T("", !0), D("span", fr, [D("span", pr, W(t.name), 1), f(t) ? (R(), E("span", mr, W(f(t)), 1)) : T("", !0)])], 64))]),
|
|
172
177
|
_: 2
|
|
173
178
|
}, 1040, ["aria-label", "class"]))), 128)),
|
|
174
|
-
o.value ? T("", !0) : (R(), E("span",
|
|
175
|
-
e.hint ? (R(), E("span",
|
|
179
|
+
o.value ? T("", !0) : (R(), E("span", hr)),
|
|
180
|
+
e.hint ? (R(), E("span", gr, [A(Q, { tip: e.hint }, null, 8, ["tip"])])) : T("", !0),
|
|
176
181
|
A(t, { state: G(u) }, null, 8, ["state"])
|
|
177
182
|
], 2));
|
|
178
183
|
}
|
|
179
|
-
}),
|
|
184
|
+
}), _r = { class: "glim-info-text" }, vr = { class: "glim-info-text" }, yr = { class: "glim-readme-btn-rows glim-about-give" }, br = /* @__PURE__ */ j({
|
|
180
185
|
__name: "InfoAboutCard",
|
|
181
186
|
props: {
|
|
182
187
|
text: {},
|
|
@@ -189,15 +194,15 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
189
194
|
hueIndex: {}
|
|
190
195
|
},
|
|
191
196
|
setup(e) {
|
|
192
|
-
return (t, n) => (R(), w(
|
|
197
|
+
return (t, n) => (R(), w(ur, {
|
|
193
198
|
"data-glim": "InfoAboutCard",
|
|
194
199
|
title: e.text.title,
|
|
195
200
|
"hue-index": e.hueIndex
|
|
196
201
|
}, {
|
|
197
202
|
default: Y(() => [
|
|
198
|
-
D("p",
|
|
199
|
-
D("p",
|
|
200
|
-
D("div",
|
|
203
|
+
D("p", _r, W(e.text.body), 1),
|
|
204
|
+
D("p", vr, W(e.text.coffee), 1),
|
|
205
|
+
D("div", yr, [
|
|
201
206
|
A($, {
|
|
202
207
|
brand: "coffee",
|
|
203
208
|
parts: [{
|
|
@@ -239,7 +244,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
239
244
|
_: 1
|
|
240
245
|
}, 8, ["title", "hue-index"]));
|
|
241
246
|
}
|
|
242
|
-
}),
|
|
247
|
+
}), xr = { class: "glim-info-text" }, Sr = { class: "glim-readme-btn-rows" }, Cr = /* @__PURE__ */ j({
|
|
243
248
|
__name: "InfoHelpCard",
|
|
244
249
|
props: {
|
|
245
250
|
text: {},
|
|
@@ -261,13 +266,13 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
261
266
|
},
|
|
262
267
|
setup(e) {
|
|
263
268
|
let t = e, n = C(() => Kt(t.text.report, t.mailAddress)), r = C(() => Gt(t.text.report, t.discordUrl) && !!t.text.discordButton);
|
|
264
|
-
return (t, i) => (R(), w(
|
|
269
|
+
return (t, i) => (R(), w(ur, {
|
|
265
270
|
"data-glim": "InfoHelpCard",
|
|
266
271
|
title: e.text.title,
|
|
267
272
|
hint: e.text.hint,
|
|
268
273
|
"hue-index": e.hueIndex
|
|
269
274
|
}, {
|
|
270
|
-
default: Y(() => [D("p",
|
|
275
|
+
default: Y(() => [D("p", xr, W(e.text.report), 1), D("div", Sr, [
|
|
271
276
|
A($, {
|
|
272
277
|
brand: "github",
|
|
273
278
|
parts: [{
|
|
@@ -341,19 +346,19 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
341
346
|
"hue-index"
|
|
342
347
|
]));
|
|
343
348
|
}
|
|
344
|
-
}),
|
|
349
|
+
}), wr = { class: "glim-version-rows" }, Tr = { class: "glim-version-name" }, Er = { class: "glim-version-part" }, Dr = {
|
|
345
350
|
key: 0,
|
|
346
351
|
class: "glim-version-sub"
|
|
347
|
-
},
|
|
352
|
+
}, Or = ["href", "onClick"], kr = {
|
|
348
353
|
key: 1,
|
|
349
354
|
class: "glim-num glim-version-number"
|
|
350
|
-
},
|
|
355
|
+
}, Ar = {
|
|
351
356
|
key: 0,
|
|
352
357
|
class: "glim-version-actions"
|
|
353
|
-
},
|
|
358
|
+
}, jr = {
|
|
354
359
|
role: "status",
|
|
355
360
|
class: "glim-sr-only"
|
|
356
|
-
},
|
|
361
|
+
}, Mr = /* @__PURE__ */ j({
|
|
357
362
|
__name: "InfoVersionCard",
|
|
358
363
|
props: {
|
|
359
364
|
text: {},
|
|
@@ -367,32 +372,32 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
367
372
|
hueIndex: {}
|
|
368
373
|
},
|
|
369
374
|
setup(e) {
|
|
370
|
-
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 && er(i.value, t.updateCheck.text));
|
|
371
376
|
function s() {
|
|
372
|
-
|
|
377
|
+
Tn(t.updateCheck, i.value, (e) => {
|
|
373
378
|
i.value = e, e.kind === "failed" && a.value++;
|
|
374
379
|
});
|
|
375
380
|
}
|
|
376
381
|
function c(e, n) {
|
|
377
382
|
e.preventDefault(), t.openUrl(n);
|
|
378
383
|
}
|
|
379
|
-
return (t, n) => (R(), w(
|
|
384
|
+
return (t, n) => (R(), w(ur, {
|
|
380
385
|
"data-glim": "InfoVersionCard",
|
|
381
386
|
title: e.text.title,
|
|
382
387
|
hint: e.text.hint,
|
|
383
388
|
"hue-index": e.hueIndex
|
|
384
389
|
}, {
|
|
385
|
-
default: Y(() => [D("ul",
|
|
390
|
+
default: Y(() => [D("ul", wr, [(R(!0), E(S, null, B(e.rows, (t) => (R(), E("li", {
|
|
386
391
|
key: t.name,
|
|
387
392
|
class: "glim-version-row"
|
|
388
|
-
}, [D("span",
|
|
393
|
+
}, [D("span", Tr, [D("span", Er, W(t.name), 1), t.sub ? (R(), E("span", Dr, W(t.sub), 1)) : T("", !0)]), G(nr)(t).href ? (R(), E("a", {
|
|
389
394
|
key: 0,
|
|
390
|
-
href: G(
|
|
395
|
+
href: G(nr)(t).href,
|
|
391
396
|
target: "_blank",
|
|
392
397
|
rel: "noopener noreferrer",
|
|
393
398
|
class: "glim-num glim-version-number",
|
|
394
|
-
onClick: (e) => c(e, G(
|
|
395
|
-
}, W(G(
|
|
399
|
+
onClick: (e) => c(e, G(nr)(t).href)
|
|
400
|
+
}, W(G(nr)(t).shown), 9, Or)) : (R(), E("span", kr, W(G(nr)(t).released ? G(nr)(t).shown : e.text.unreleased(G(nr)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (R(), E("div", Ar, [
|
|
396
401
|
r.value ? (R(), w(f, {
|
|
397
402
|
key: 0,
|
|
398
403
|
label: e.text.releaseNotes,
|
|
@@ -405,7 +410,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
405
410
|
label: o.value.label,
|
|
406
411
|
"label-key": o.value.labelKey,
|
|
407
412
|
tone: o.value.tone,
|
|
408
|
-
stage: G(
|
|
413
|
+
stage: G(tr)(e.updateCheck.text, o.value.label),
|
|
409
414
|
busy: i.value.kind === "busy",
|
|
410
415
|
class: P(a.value > 0 ? "glim-shake" : ""),
|
|
411
416
|
onClick: s
|
|
@@ -416,7 +421,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
416
421
|
"stage",
|
|
417
422
|
"busy",
|
|
418
423
|
"class"
|
|
419
|
-
])), D("span",
|
|
424
|
+
])), D("span", jr, W(o.value.announced), 1)], 64)) : T("", !0)
|
|
420
425
|
])) : T("", !0)]),
|
|
421
426
|
_: 3
|
|
422
427
|
}, 8, [
|
|
@@ -425,10 +430,10 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
425
430
|
"hue-index"
|
|
426
431
|
]));
|
|
427
432
|
}
|
|
428
|
-
}),
|
|
433
|
+
}), Nr = {
|
|
429
434
|
"data-glim": "InfoTile",
|
|
430
435
|
style: { display: "contents" }
|
|
431
|
-
},
|
|
436
|
+
}, Pr = /* @__PURE__ */ j({
|
|
432
437
|
__name: "InfoTile",
|
|
433
438
|
props: {
|
|
434
439
|
version: {},
|
|
@@ -438,17 +443,17 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
438
443
|
},
|
|
439
444
|
setup(e) {
|
|
440
445
|
let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
441
|
-
return (t, r) => (R(), E("div",
|
|
442
|
-
A(
|
|
446
|
+
return (t, r) => (R(), E("div", Nr, [
|
|
447
|
+
A(Mr, N(e.version, { "hue-index": n(0) }), O({ _: 2 }, [t.$slots["whats-new"] ? {
|
|
443
448
|
name: "whats-new",
|
|
444
449
|
fn: Y(() => [V(t.$slots, "whats-new")]),
|
|
445
450
|
key: "0"
|
|
446
451
|
} : void 0]), 1040, ["hue-index"]),
|
|
447
|
-
A(
|
|
448
|
-
A(
|
|
452
|
+
A(Cr, N(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
453
|
+
A(br, N(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
449
454
|
]));
|
|
450
455
|
}
|
|
451
|
-
}),
|
|
456
|
+
}), Fr = /* @__PURE__ */ j({
|
|
452
457
|
__name: "AboutCard",
|
|
453
458
|
props: {
|
|
454
459
|
text: {},
|
|
@@ -475,7 +480,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
475
480
|
},
|
|
476
481
|
setup(e) {
|
|
477
482
|
let t = e;
|
|
478
|
-
|
|
483
|
+
rr("AboutCard");
|
|
479
484
|
let n = C(() => [...t.version ? [{
|
|
480
485
|
name: t.text.version,
|
|
481
486
|
version: t.version,
|
|
@@ -485,7 +490,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
485
490
|
version: t.glimstoneVersion,
|
|
486
491
|
repoUrl: t.glimstoneRepoUrl
|
|
487
492
|
}]);
|
|
488
|
-
return (t, r) => (R(), w(
|
|
493
|
+
return (t, r) => (R(), w(Pr, {
|
|
489
494
|
"data-glim": "AboutCard",
|
|
490
495
|
"hue-index": e.hueIndex,
|
|
491
496
|
about: {
|
|
@@ -529,25 +534,40 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
529
534
|
"help"
|
|
530
535
|
]));
|
|
531
536
|
}
|
|
532
|
-
}),
|
|
537
|
+
}), Ir = {
|
|
538
|
+
key: 0,
|
|
539
|
+
"data-glim": "BrandMark",
|
|
540
|
+
class: "glim-brand-svg",
|
|
541
|
+
"aria-hidden": "true"
|
|
542
|
+
}, Lr = ["innerHTML"], Rr = ["innerHTML"], zr = ["innerHTML"], Br = /* @__PURE__ */ j({
|
|
533
543
|
__name: "BrandMark",
|
|
534
|
-
props: {
|
|
544
|
+
props: {
|
|
545
|
+
svg: {},
|
|
546
|
+
hover: {}
|
|
547
|
+
},
|
|
535
548
|
setup(e) {
|
|
536
|
-
return (t, n) => (R(), E("span", {
|
|
549
|
+
return (t, n) => e.hover ? (R(), E("span", Ir, [D("span", {
|
|
550
|
+
class: "glim-mark-rest",
|
|
551
|
+
innerHTML: e.svg
|
|
552
|
+
}, null, 8, Lr), D("span", {
|
|
553
|
+
class: "glim-mark-hover",
|
|
554
|
+
innerHTML: e.hover
|
|
555
|
+
}, null, 8, Rr)])) : (R(), E("span", {
|
|
556
|
+
key: 1,
|
|
537
557
|
"data-glim": "BrandMark",
|
|
538
558
|
class: "glim-brand-svg",
|
|
539
559
|
"aria-hidden": "true",
|
|
540
560
|
innerHTML: e.svg
|
|
541
|
-
}, null, 8,
|
|
561
|
+
}, null, 8, zr));
|
|
542
562
|
}
|
|
543
|
-
}),
|
|
563
|
+
}), Vr = [
|
|
544
564
|
"aria-checked",
|
|
545
565
|
"aria-label",
|
|
546
566
|
"disabled"
|
|
547
|
-
],
|
|
567
|
+
], Hr = {
|
|
548
568
|
class: "glim-checkbox-box",
|
|
549
569
|
"aria-hidden": "true"
|
|
550
|
-
},
|
|
570
|
+
}, Ur = { key: 0 }, Wr = /* @__PURE__ */ j({
|
|
551
571
|
__name: "Checkbox",
|
|
552
572
|
props: /*@__PURE__*/ M({
|
|
553
573
|
label: {},
|
|
@@ -583,12 +603,12 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
583
603
|
class: P(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
584
604
|
onClick: i[0] ||= (e) => r.value = !r.value,
|
|
585
605
|
onKeydown: i[1] ||= ze(X(() => {}, ["prevent"]), ["enter"])
|
|
586
|
-
}, [D("span",
|
|
606
|
+
}, [D("span", Hr, [A(G(b))]), n.value ? T("", !0) : (R(), E("span", Ur, W(e.label), 1))], 42, Vr));
|
|
587
607
|
}
|
|
588
|
-
}),
|
|
608
|
+
}), Gr = ["data-glim-title"], Kr = { class: "glim-modal-head" }, qr = {
|
|
589
609
|
id: "coffee-title",
|
|
590
610
|
class: "glim-modal-title"
|
|
591
|
-
},
|
|
611
|
+
}, Jr = { class: "glim-give-body" }, Yr = { class: "glim-give-appeal" }, Xr = { class: "glim-give-intro" }, Zr = { class: "glim-give-frame" }, Qr = ["src", "title"], $r = { class: "glim-give-foot" }, ei = /* @__PURE__ */ j({
|
|
592
612
|
__name: "CoffeeDialog",
|
|
593
613
|
props: {
|
|
594
614
|
widgetUrl: {},
|
|
@@ -611,7 +631,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
611
631
|
"aria-labelledby": "coffee-title",
|
|
612
632
|
class: "glim-modal-card glim-modal-card--wide glim-modal-card--tall"
|
|
613
633
|
}, [
|
|
614
|
-
D("div",
|
|
634
|
+
D("div", Kr, [D("h2", qr, [A(e, {
|
|
615
635
|
tone: "heading",
|
|
616
636
|
size: "heading",
|
|
617
637
|
wrap: ""
|
|
@@ -619,28 +639,28 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
619
639
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
620
640
|
_: 1
|
|
621
641
|
})])]),
|
|
622
|
-
D("div",
|
|
623
|
-
D("p",
|
|
624
|
-
D("p",
|
|
625
|
-
D("div",
|
|
642
|
+
D("div", Jr, [
|
|
643
|
+
D("p", Yr, W(t.text.appeal), 1),
|
|
644
|
+
D("p", Xr, W(t.text.intro), 1),
|
|
645
|
+
D("div", Zr, [D("iframe", {
|
|
626
646
|
src: t.widgetUrl,
|
|
627
647
|
title: t.text.title,
|
|
628
648
|
allow: "payment",
|
|
629
649
|
class: "glim-give-iframe"
|
|
630
|
-
}, null, 8,
|
|
650
|
+
}, null, 8, Qr)])
|
|
631
651
|
]),
|
|
632
|
-
D("div",
|
|
652
|
+
D("div", $r, [A(f, {
|
|
633
653
|
label: t.text.closeLabel,
|
|
634
654
|
"label-key": "common.close",
|
|
635
655
|
tone: "neutral",
|
|
636
656
|
onClick: r[0] ||= (e) => i("close")
|
|
637
657
|
}, null, 8, ["label"])])
|
|
638
|
-
], 8,
|
|
658
|
+
], 8, Gr)]));
|
|
639
659
|
}
|
|
640
|
-
}),
|
|
660
|
+
}), ti = { class: "glim-picker-foot" }, ni = {
|
|
641
661
|
key: 0,
|
|
642
662
|
class: "glim-picker-name"
|
|
643
|
-
},
|
|
663
|
+
}, ri = ["value", "aria-label"], ii = { class: "glim-picker-actions" }, ai = /* @__PURE__ */ j({
|
|
644
664
|
__name: "ColorPicker",
|
|
645
665
|
props: /*@__PURE__*/ M({
|
|
646
666
|
anchor: { default: null },
|
|
@@ -683,7 +703,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
683
703
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
|
|
684
704
|
}
|
|
685
705
|
return (t, n) => (R(), w(Se, {
|
|
686
|
-
to: G(
|
|
706
|
+
to: G(fn)(),
|
|
687
707
|
disabled: !e.anchor
|
|
688
708
|
}, [D("div", {
|
|
689
709
|
"data-glim": "ColorPicker",
|
|
@@ -698,12 +718,12 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
698
718
|
ref: s,
|
|
699
719
|
style: { display: "contents" }
|
|
700
720
|
}, null, 512),
|
|
701
|
-
D("div",
|
|
721
|
+
D("div", ti, [
|
|
702
722
|
n[0] ||= D("span", {
|
|
703
723
|
class: "glim-picker-swatch",
|
|
704
724
|
"aria-hidden": "true"
|
|
705
725
|
}, null, -1),
|
|
706
|
-
u.value === null ? T("", !0) : (R(), E("span",
|
|
726
|
+
u.value === null ? T("", !0) : (R(), E("span", ni, W(u.value), 1)),
|
|
707
727
|
D("input", {
|
|
708
728
|
class: "glim-picker-hex",
|
|
709
729
|
value: l.value,
|
|
@@ -711,9 +731,9 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
711
731
|
spellcheck: "false",
|
|
712
732
|
"aria-label": a.hex,
|
|
713
733
|
onInput: m
|
|
714
|
-
}, null, 40,
|
|
734
|
+
}, null, 40, ri)
|
|
715
735
|
]),
|
|
716
|
-
D("div",
|
|
736
|
+
D("div", ii, [A(f, {
|
|
717
737
|
label: a.apply,
|
|
718
738
|
"label-key": "apply",
|
|
719
739
|
glyph: G(b),
|
|
@@ -722,16 +742,16 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
722
742
|
}, null, 8, ["label", "glyph"])])
|
|
723
743
|
], 38)], 8, ["to", "disabled"]));
|
|
724
744
|
}
|
|
725
|
-
}),
|
|
745
|
+
}), oi = ["data-glim-title"], si = { class: "glim-modal-head" }, ci = {
|
|
726
746
|
id: "confirmdialog-title",
|
|
727
747
|
class: "glim-modal-title"
|
|
728
|
-
},
|
|
748
|
+
}, li = { class: "glim-modal-body" }, ui = {
|
|
729
749
|
id: "confirmdialog-message",
|
|
730
750
|
class: "glim-modal-text"
|
|
731
|
-
},
|
|
751
|
+
}, di = {
|
|
732
752
|
key: 0,
|
|
733
753
|
class: "glim-modal-extra"
|
|
734
|
-
},
|
|
754
|
+
}, fi = { class: "glim-modal-foot" }, pi = /* @__PURE__ */ j({
|
|
735
755
|
__name: "ConfirmDialog",
|
|
736
756
|
props: {
|
|
737
757
|
title: {},
|
|
@@ -759,7 +779,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
759
779
|
"aria-describedby": "confirmdialog-message",
|
|
760
780
|
class: "glim-modal-card"
|
|
761
781
|
}, [
|
|
762
|
-
D("div",
|
|
782
|
+
D("div", si, [D("h2", ci, [A(e, {
|
|
763
783
|
tone: "heading",
|
|
764
784
|
size: "heading",
|
|
765
785
|
wrap: ""
|
|
@@ -774,8 +794,8 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
774
794
|
class: "glim-modal-close",
|
|
775
795
|
onClick: r[0] ||= (e) => i("cancel")
|
|
776
796
|
}, null, 8, ["label", "glyph"]))]),
|
|
777
|
-
D("div",
|
|
778
|
-
D("div",
|
|
797
|
+
D("div", li, [D("p", ui, W(t.message), 1), n.$slots.extra ? (R(), E("div", di, [V(n.$slots, "extra")])) : T("", !0)]),
|
|
798
|
+
D("div", fi, [A(f, {
|
|
779
799
|
ref_key: "cancel",
|
|
780
800
|
ref: o,
|
|
781
801
|
label: t.cancelLabel,
|
|
@@ -792,25 +812,25 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
792
812
|
"label-key",
|
|
793
813
|
"glyph"
|
|
794
814
|
])])
|
|
795
|
-
], 8,
|
|
815
|
+
], 8, oi)]));
|
|
796
816
|
}
|
|
797
|
-
}),
|
|
817
|
+
}), mi = {
|
|
798
818
|
"data-glim": "Kbd",
|
|
799
819
|
class: "glim-kbd"
|
|
800
|
-
},
|
|
820
|
+
}, hi = /* @__PURE__ */ j({
|
|
801
821
|
__name: "Kbd",
|
|
802
822
|
setup(e) {
|
|
803
|
-
return (e, t) => (R(), E("kbd",
|
|
823
|
+
return (e, t) => (R(), E("kbd", mi, [V(e.$slots, "default")]));
|
|
804
824
|
}
|
|
805
|
-
}),
|
|
825
|
+
}), gi = {
|
|
806
826
|
key: 0,
|
|
807
827
|
class: "glim-menu-sep",
|
|
808
828
|
role: "separator"
|
|
809
|
-
},
|
|
829
|
+
}, _i = {
|
|
810
830
|
key: 1,
|
|
811
831
|
class: "glim-menu-head",
|
|
812
832
|
role: "presentation"
|
|
813
|
-
},
|
|
833
|
+
}, vi = [
|
|
814
834
|
"role",
|
|
815
835
|
"aria-checked",
|
|
816
836
|
"aria-haspopup",
|
|
@@ -818,26 +838,26 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
818
838
|
"disabled",
|
|
819
839
|
"data-row",
|
|
820
840
|
"onClick"
|
|
821
|
-
],
|
|
841
|
+
], yi = {
|
|
822
842
|
key: 0,
|
|
823
843
|
class: "glim-checkbox-box",
|
|
824
844
|
"aria-hidden": "true"
|
|
825
|
-
},
|
|
845
|
+
}, bi = {
|
|
826
846
|
key: 2,
|
|
827
847
|
class: "glim-menu-glyph",
|
|
828
848
|
"aria-hidden": "true"
|
|
829
|
-
},
|
|
849
|
+
}, xi = { class: "glim-menu-label" }, Si = {
|
|
830
850
|
key: 3,
|
|
831
851
|
class: "glim-menu-end glim-menu-caret",
|
|
832
852
|
"aria-hidden": "true"
|
|
833
|
-
},
|
|
853
|
+
}, Ci = {
|
|
834
854
|
key: 4,
|
|
835
855
|
class: "glim-menu-end glim-menu-tick",
|
|
836
856
|
"aria-hidden": "true"
|
|
837
|
-
},
|
|
857
|
+
}, wi = {
|
|
838
858
|
key: 6,
|
|
839
859
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
840
|
-
},
|
|
860
|
+
}, Ti = /* @__PURE__ */ j({
|
|
841
861
|
__name: "MenuRows",
|
|
842
862
|
props: {
|
|
843
863
|
entries: {},
|
|
@@ -853,7 +873,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
853
873
|
item: e,
|
|
854
874
|
view: Bt(e)
|
|
855
875
|
}));
|
|
856
|
-
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div",
|
|
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", gi)) : t.kind === "head" ? (R(), E("div", _i, [D("span", null, W(t.head.head), 1), t.head.edit ? (R(), w(ge, {
|
|
857
877
|
key: 0,
|
|
858
878
|
tip: t.head.edit.tip,
|
|
859
879
|
role: "menuitem",
|
|
@@ -881,23 +901,23 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
881
901
|
"data-row": n,
|
|
882
902
|
onClick: (e) => r("pick", n)
|
|
883
903
|
}, [
|
|
884
|
-
t.view.lead === "box" ? (R(), E("span",
|
|
904
|
+
t.view.lead === "box" ? (R(), E("span", yi, [A(G(b))])) : t.view.lead === "dot" ? (R(), E("span", {
|
|
885
905
|
key: 1,
|
|
886
906
|
class: "glim-menu-dot",
|
|
887
907
|
style: F({ backgroundColor: t.item.color }),
|
|
888
908
|
"aria-hidden": "true"
|
|
889
|
-
}, null, 4)) : (R(), E("span",
|
|
890
|
-
D("span",
|
|
891
|
-
t.view.end === "submenu" ? (R(), E("span",
|
|
909
|
+
}, null, 4)) : (R(), E("span", bi, [t.view.lead === "glyph" ? (R(), w(H(t.item.glyph), { key: 0 })) : T("", !0)])),
|
|
910
|
+
D("span", xi, W(t.item.label), 1),
|
|
911
|
+
t.view.end === "submenu" ? (R(), E("span", Si, [A(G(le))])) : t.view.end === "tick" ? (R(), E("span", Ci, [A(G(b))])) : t.view.end === "shortcut" ? (R(), w(hi, {
|
|
892
912
|
key: 5,
|
|
893
913
|
class: "glim-menu-end"
|
|
894
914
|
}, {
|
|
895
915
|
default: Y(() => [k(W(t.item.shortcut), 1)]),
|
|
896
916
|
_: 2
|
|
897
|
-
}, 1024)) : t.view.end === "count" ? (R(), E("span",
|
|
898
|
-
], 10,
|
|
917
|
+
}, 1024)) : t.view.end === "count" ? (R(), E("span", wi, W(t.item.count), 1)) : T("", !0)
|
|
918
|
+
], 10, vi))], 64))), 128));
|
|
899
919
|
}
|
|
900
|
-
}),
|
|
920
|
+
}), Ei = ["id", "aria-label"], Di = ["id", "aria-label"], Oi = /* @__PURE__ */ j({
|
|
901
921
|
__name: "ContextMenu",
|
|
902
922
|
props: {
|
|
903
923
|
x: {},
|
|
@@ -920,19 +940,19 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
920
940
|
let n = e, r = t, i = U(null), a = U(null), o = xt(), s = z({
|
|
921
941
|
left: n.x,
|
|
922
942
|
top: n.y
|
|
923
|
-
}), c = U(null), l = z(null), u = C(() =>
|
|
943
|
+
}), c = U(null), l = z(null), u = C(() => Jn(n.items)), d = C(() => {
|
|
924
944
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
925
945
|
return e && e !== "-" && !wt(e) && e.sub ? e : null;
|
|
926
|
-
}), f = C(() => d.value?.sub ?
|
|
946
|
+
}), f = C(() => d.value?.sub ? Jn(d.value.sub) : null), p = () => ({
|
|
927
947
|
width: innerWidth,
|
|
928
948
|
height: innerHeight
|
|
929
949
|
});
|
|
930
950
|
function m(e) {
|
|
931
|
-
r("close"), e &&
|
|
951
|
+
r("close"), e && Sn(n.opener ?? o);
|
|
932
952
|
}
|
|
933
953
|
function h() {
|
|
934
954
|
let e = i.value;
|
|
935
|
-
e && (s.value =
|
|
955
|
+
e && (s.value = un(n.x, n.y, {
|
|
936
956
|
width: e.offsetWidth,
|
|
937
957
|
height: e.offsetHeight
|
|
938
958
|
}, p(), n.above));
|
|
@@ -956,7 +976,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
956
976
|
let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
|
|
957
977
|
if (!e || !t || !n) return;
|
|
958
978
|
let r = getComputedStyle(i.value).direction === "rtl";
|
|
959
|
-
l.value =
|
|
979
|
+
l.value = dn(t.getBoundingClientRect(), {
|
|
960
980
|
width: n.offsetWidth,
|
|
961
981
|
height: n.offsetHeight
|
|
962
982
|
}, p(), r), e.focus && _t(n);
|
|
@@ -997,7 +1017,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
997
1017
|
focus: !1
|
|
998
1018
|
} : !i && c.value && (c.value = null);
|
|
999
1019
|
}
|
|
1000
|
-
return (t, n) => (R(), w(Se, { to: G(
|
|
1020
|
+
return (t, n) => (R(), w(Se, { to: G(fn)() }, [D("div", {
|
|
1001
1021
|
id: e.id,
|
|
1002
1022
|
ref_key: "menu",
|
|
1003
1023
|
ref: i,
|
|
@@ -1012,11 +1032,11 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1012
1032
|
onKeydown: n[1] ||= (e) => ee(e, !1),
|
|
1013
1033
|
onMouseover: te,
|
|
1014
1034
|
onContextmenu: n[2] ||= X(() => {}, ["prevent"])
|
|
1015
|
-
}, [A(
|
|
1035
|
+
}, [A(Ti, {
|
|
1016
1036
|
entries: u.value,
|
|
1017
1037
|
"open-at": c.value?.at,
|
|
1018
1038
|
onPick: n[0] ||= (e) => v(u.value, e)
|
|
1019
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
1039
|
+
}, null, 8, ["entries", "open-at"])], 44, Ei), f.value ? (R(), E("div", {
|
|
1020
1040
|
key: 0,
|
|
1021
1041
|
id: d.value?.subId,
|
|
1022
1042
|
ref_key: "subMenu",
|
|
@@ -1030,15 +1050,15 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1030
1050
|
}),
|
|
1031
1051
|
onKeydown: n[4] ||= (e) => ee(e, !0),
|
|
1032
1052
|
onContextmenu: n[5] ||= X(() => {}, ["prevent"])
|
|
1033
|
-
}, [A(
|
|
1053
|
+
}, [A(Ti, {
|
|
1034
1054
|
entries: f.value,
|
|
1035
1055
|
onPick: n[3] ||= (e) => v(f.value, e)
|
|
1036
|
-
}, null, 8, ["entries"])], 44,
|
|
1056
|
+
}, null, 8, ["entries"])], 44, Di)) : T("", !0)], 8, ["to"]));
|
|
1037
1057
|
}
|
|
1038
|
-
}),
|
|
1058
|
+
}), ki = ["value", "aria-label"], Ai = {
|
|
1039
1059
|
role: "status",
|
|
1040
1060
|
class: "glim-sr-only"
|
|
1041
|
-
},
|
|
1061
|
+
}, ji = /* @__PURE__ */ j({
|
|
1042
1062
|
__name: "CopyField",
|
|
1043
1063
|
props: {
|
|
1044
1064
|
value: {},
|
|
@@ -1069,7 +1089,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1069
1089
|
"aria-label": G(i),
|
|
1070
1090
|
spellcheck: "false",
|
|
1071
1091
|
class: "glim-input glim-input--mono"
|
|
1072
|
-
}, null, 8,
|
|
1092
|
+
}, null, 8, ki),
|
|
1073
1093
|
A(f, {
|
|
1074
1094
|
label: a.value ? e.text.copied : e.text.copy,
|
|
1075
1095
|
"label-key": a.value ? "copied" : "copy",
|
|
@@ -1081,27 +1101,27 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1081
1101
|
"label-key",
|
|
1082
1102
|
"glyph"
|
|
1083
1103
|
]),
|
|
1084
|
-
D("span",
|
|
1104
|
+
D("span", Ai, W(a.value ? e.text.copied : ""), 1)
|
|
1085
1105
|
], 2));
|
|
1086
1106
|
}
|
|
1087
|
-
}),
|
|
1107
|
+
}), Mi = ["data-glim-title"], Ni = { class: "glim-modal-head" }, Pi = {
|
|
1088
1108
|
id: "cryptodonate-title",
|
|
1089
1109
|
class: "glim-modal-title"
|
|
1090
|
-
},
|
|
1110
|
+
}, Fi = { class: "glim-give-body glim-give-body--scroll" }, Ii = { class: "glim-give-appeal" }, Li = { class: "glim-give-intro" }, Ri = { class: "glim-give-well" }, zi = {
|
|
1091
1111
|
dir: "ltr",
|
|
1092
1112
|
class: "glim-give-address"
|
|
1093
|
-
},
|
|
1113
|
+
}, Bi = ["aria-label"], Vi = ["aria-selected", "onClick"], Hi = {
|
|
1094
1114
|
key: 0,
|
|
1095
1115
|
class: "glim-give-note"
|
|
1096
|
-
},
|
|
1116
|
+
}, Ui = ["aria-label"], Wi = [
|
|
1097
1117
|
"aria-selected",
|
|
1098
1118
|
"aria-label",
|
|
1099
1119
|
"title",
|
|
1100
1120
|
"onClick"
|
|
1101
|
-
],
|
|
1121
|
+
], Gi = {
|
|
1102
1122
|
key: 1,
|
|
1103
1123
|
class: "glim-give-ticker"
|
|
1104
|
-
},
|
|
1124
|
+
}, Ki = { class: "glim-give-foot" }, qi = /* @__PURE__ */ j({
|
|
1105
1125
|
__name: "CryptoDonateDialog",
|
|
1106
1126
|
props: {
|
|
1107
1127
|
coins: {},
|
|
@@ -1145,7 +1165,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1145
1165
|
"aria-labelledby": "cryptodonate-title",
|
|
1146
1166
|
class: "glim-modal-card glim-modal-card--wide"
|
|
1147
1167
|
}, [
|
|
1148
|
-
D("div",
|
|
1168
|
+
D("div", Ni, [D("h2", Pi, [A(e, {
|
|
1149
1169
|
tone: "heading",
|
|
1150
1170
|
size: "heading",
|
|
1151
1171
|
wrap: ""
|
|
@@ -1153,12 +1173,12 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1153
1173
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
1154
1174
|
_: 1
|
|
1155
1175
|
})])]),
|
|
1156
|
-
D("div",
|
|
1157
|
-
D("p",
|
|
1158
|
-
D("p",
|
|
1159
|
-
D("div",
|
|
1176
|
+
D("div", Fi, [
|
|
1177
|
+
D("p", Ii, W(t.text.appeal), 1),
|
|
1178
|
+
D("p", Li, W(t.text.intro), 1),
|
|
1179
|
+
D("div", Ri, [
|
|
1160
1180
|
V(n.$slots, "qr", { value: t.network.address }),
|
|
1161
|
-
D("p",
|
|
1181
|
+
D("p", zi, W(t.network.address), 1),
|
|
1162
1182
|
D("div", {
|
|
1163
1183
|
class: "glim-give-networks",
|
|
1164
1184
|
role: "listbox",
|
|
@@ -1171,8 +1191,8 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1171
1191
|
style: F(G(Ct)(n)),
|
|
1172
1192
|
class: P(e.id === t.network.id ? "glim-give-network glim-hue glim-active" : "glim-give-network glim-hue"),
|
|
1173
1193
|
onClick: (n) => a("pick", t.coin, e)
|
|
1174
|
-
}, W(e.name), 15,
|
|
1175
|
-
t.network.note ? (R(), E("p",
|
|
1194
|
+
}, W(e.name), 15, Vi))), 128))], 8, Bi),
|
|
1195
|
+
t.network.note ? (R(), E("p", Hi, W(t.network.note), 1)) : T("", !0),
|
|
1176
1196
|
A(f, {
|
|
1177
1197
|
label: t.text.copyLabel,
|
|
1178
1198
|
"label-key": "common.copy",
|
|
@@ -1195,17 +1215,17 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1195
1215
|
style: F(d(e, r)),
|
|
1196
1216
|
class: P(p(e)),
|
|
1197
1217
|
onClick: (t) => a("pick", e, e.networks[0])
|
|
1198
|
-
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span",
|
|
1218
|
+
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span", Gi, W(e.symbol), 1)) : T("", !0)], 14, Wi))), 128))], 8, Ui)
|
|
1199
1219
|
]),
|
|
1200
|
-
D("div",
|
|
1220
|
+
D("div", Ki, [A(f, {
|
|
1201
1221
|
label: t.text.closeLabel,
|
|
1202
1222
|
"label-key": "common.close",
|
|
1203
1223
|
tone: "neutral",
|
|
1204
1224
|
onClick: r[1] ||= (e) => a("close")
|
|
1205
1225
|
}, null, 8, ["label"])])
|
|
1206
|
-
], 8,
|
|
1226
|
+
], 8, Mi)]));
|
|
1207
1227
|
}
|
|
1208
|
-
}),
|
|
1228
|
+
}), Ji = ["aria-multiselectable", "aria-label"], Yi = 4, Xi = /* @__PURE__ */ j({
|
|
1209
1229
|
__name: "DropdownListbox",
|
|
1210
1230
|
props: {
|
|
1211
1231
|
open: { type: Boolean },
|
|
@@ -1216,7 +1236,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1216
1236
|
emits: ["close"],
|
|
1217
1237
|
setup(e, { emit: t }) {
|
|
1218
1238
|
let n = e;
|
|
1219
|
-
|
|
1239
|
+
rr("DropdownListbox");
|
|
1220
1240
|
let r = t, i = U(null), a = U(null), o = ye(() => n.open, je(n, "triggerRef")), s = !1;
|
|
1221
1241
|
J(() => n.open, (e) => {
|
|
1222
1242
|
e || (s = !!i.value?.contains(document.activeElement));
|
|
@@ -1233,7 +1253,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1233
1253
|
}, { left: o, top: s } = at(t, {
|
|
1234
1254
|
width: t.width,
|
|
1235
1255
|
height: i.value.offsetHeight
|
|
1236
|
-
}, r,
|
|
1256
|
+
}, r, Yi);
|
|
1237
1257
|
a.value = {
|
|
1238
1258
|
left: o,
|
|
1239
1259
|
top: s,
|
|
@@ -1293,7 +1313,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1293
1313
|
}
|
|
1294
1314
|
return (t, n) => e.open ? (R(), w(Se, {
|
|
1295
1315
|
key: 0,
|
|
1296
|
-
to: G(
|
|
1316
|
+
to: G(fn)()
|
|
1297
1317
|
}, [D("div", {
|
|
1298
1318
|
ref_key: "panel",
|
|
1299
1319
|
ref: i,
|
|
@@ -1314,16 +1334,16 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1314
1334
|
...G(o).style.value
|
|
1315
1335
|
}),
|
|
1316
1336
|
onKeydown: g
|
|
1317
|
-
}, [V(t.$slots, "default")], 46,
|
|
1337
|
+
}, [V(t.$slots, "default")], 46, Ji)], 8, ["to"])) : T("", !0);
|
|
1318
1338
|
}
|
|
1319
|
-
}),
|
|
1339
|
+
}), Zi = ["data-glim-title"], Qi = {
|
|
1320
1340
|
key: 0,
|
|
1321
1341
|
class: "glim-empty-glyph",
|
|
1322
1342
|
"aria-hidden": "true"
|
|
1323
|
-
},
|
|
1343
|
+
}, $i = { class: "glim-empty-title" }, ea = {
|
|
1324
1344
|
key: 1,
|
|
1325
1345
|
class: "glim-empty-hint"
|
|
1326
|
-
},
|
|
1346
|
+
}, ta = /* @__PURE__ */ j({
|
|
1327
1347
|
__name: "EmptyState",
|
|
1328
1348
|
props: {
|
|
1329
1349
|
glyph: {},
|
|
@@ -1340,13 +1360,13 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1340
1360
|
"data-glim-title": e.title,
|
|
1341
1361
|
class: P(e.nested ? "glim-empty" : "glim-card glim-empty")
|
|
1342
1362
|
}, [
|
|
1343
|
-
e.glyph ? (R(), E("span",
|
|
1344
|
-
D("p",
|
|
1345
|
-
e.hint ? (R(), E("p",
|
|
1363
|
+
e.glyph ? (R(), E("span", Qi, [(R(), w(H(e.glyph)))])) : T("", !0),
|
|
1364
|
+
D("p", $i, W(e.title), 1),
|
|
1365
|
+
e.hint ? (R(), E("p", ea, W(e.hint), 1)) : T("", !0),
|
|
1346
1366
|
V(t.$slots, "default")
|
|
1347
|
-
], 10,
|
|
1367
|
+
], 10, Zi));
|
|
1348
1368
|
}
|
|
1349
|
-
}),
|
|
1369
|
+
}), na = ["id"], ra = /* @__PURE__ */ j({
|
|
1350
1370
|
__name: "FieldError",
|
|
1351
1371
|
props: { id: {} },
|
|
1352
1372
|
setup(e) {
|
|
@@ -1354,22 +1374,22 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1354
1374
|
"data-glim": "FieldError",
|
|
1355
1375
|
id: e.id,
|
|
1356
1376
|
class: "glim-field-error"
|
|
1357
|
-
}, [A(G(m), { mark: G(Je).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8,
|
|
1377
|
+
}, [A(G(m), { mark: G(Je).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8, na));
|
|
1358
1378
|
}
|
|
1359
|
-
}),
|
|
1379
|
+
}), ia = /* @__PURE__ */ j({
|
|
1360
1380
|
__name: "Pill",
|
|
1361
1381
|
props: { tone: { default: "neutral" } },
|
|
1362
1382
|
setup(e) {
|
|
1363
|
-
let t = e, n = C(() =>
|
|
1383
|
+
let t = e, n = C(() => ln(t.tone));
|
|
1364
1384
|
return (e, t) => (R(), E("span", {
|
|
1365
1385
|
"data-glim": "Pill",
|
|
1366
1386
|
class: P(n.value)
|
|
1367
1387
|
}, [V(e.$slots, "default")], 2));
|
|
1368
1388
|
}
|
|
1369
|
-
}),
|
|
1389
|
+
}), aa = { class: "glim-field-row-name" }, oa = {
|
|
1370
1390
|
key: 0,
|
|
1371
1391
|
class: "glim-field-row-controls"
|
|
1372
|
-
},
|
|
1392
|
+
}, sa = /* @__PURE__ */ j({
|
|
1373
1393
|
__name: "FieldRow",
|
|
1374
1394
|
props: {
|
|
1375
1395
|
label: {},
|
|
@@ -1387,20 +1407,20 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1387
1407
|
ref: r,
|
|
1388
1408
|
"data-glim": "FieldRow",
|
|
1389
1409
|
class: P(["glim-field-row", { "glim-field-row--wide": e.wide }])
|
|
1390
|
-
}, [D("span",
|
|
1410
|
+
}, [D("span", aa, [D("span", {
|
|
1391
1411
|
class: "glim-field-row-label",
|
|
1392
|
-
onClick: i[0] ||= (e) => G(
|
|
1412
|
+
onClick: i[0] ||= (e) => G(mn)(r.value)
|
|
1393
1413
|
}, [V(t.$slots, "label", {}, () => [k(W(e.label), 1)])]), e.hint ? (R(), w(Q, {
|
|
1394
1414
|
key: 0,
|
|
1395
1415
|
tip: e.hint
|
|
1396
|
-
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span",
|
|
1416
|
+
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span", oa, [V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(ia, {
|
|
1397
1417
|
key: 0,
|
|
1398
1418
|
class: "glim-num",
|
|
1399
1419
|
tone: e.tone
|
|
1400
1420
|
}, {
|
|
1401
1421
|
default: Y(() => [k(W(e.value), 1)]),
|
|
1402
1422
|
_: 1
|
|
1403
|
-
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(
|
|
1423
|
+
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(ia, {
|
|
1404
1424
|
key: 0,
|
|
1405
1425
|
class: "glim-num",
|
|
1406
1426
|
tone: e.tone
|
|
@@ -1409,7 +1429,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1409
1429
|
_: 1
|
|
1410
1430
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
1411
1431
|
}
|
|
1412
|
-
}),
|
|
1432
|
+
}), ca = /* @__PURE__ */ j({
|
|
1413
1433
|
__name: "FieldRowGroup",
|
|
1414
1434
|
props: { columns: {} },
|
|
1415
1435
|
setup(e) {
|
|
@@ -1419,13 +1439,13 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1419
1439
|
style: F(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
1420
1440
|
}, [V(t.$slots, "default")], 4));
|
|
1421
1441
|
}
|
|
1422
|
-
}),
|
|
1442
|
+
}), la = {
|
|
1423
1443
|
key: 0,
|
|
1424
1444
|
class: "glim-modal-foot"
|
|
1425
|
-
},
|
|
1445
|
+
}, ua = {
|
|
1426
1446
|
key: 0,
|
|
1427
1447
|
class: "glim-window-start"
|
|
1428
|
-
},
|
|
1448
|
+
}, da = /* @__PURE__ */ j({
|
|
1429
1449
|
__name: "WindowFootRow",
|
|
1430
1450
|
props: {
|
|
1431
1451
|
actions: {},
|
|
@@ -1435,7 +1455,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1435
1455
|
},
|
|
1436
1456
|
emits: ["close"],
|
|
1437
1457
|
setup(e, { emit: t }) {
|
|
1438
|
-
let n = e, r = t, i = C(() =>
|
|
1458
|
+
let n = e, r = t, i = C(() => or(n.actions, n.hasStart, {
|
|
1439
1459
|
cancel: {
|
|
1440
1460
|
label: n.text.cancel,
|
|
1441
1461
|
labelKey: "common.cancel",
|
|
@@ -1452,7 +1472,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1452
1472
|
function a(e) {
|
|
1453
1473
|
e.onClick?.() !== !1 && r("close");
|
|
1454
1474
|
}
|
|
1455
|
-
return (t, n) => i.value.length ? (R(), E("div",
|
|
1475
|
+
return (t, n) => i.value.length ? (R(), E("div", la, [e.hasStart ? (R(), E("span", ua, [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, {
|
|
1456
1476
|
key: t,
|
|
1457
1477
|
label: e.label,
|
|
1458
1478
|
"label-key": e.labelKey,
|
|
@@ -1473,11 +1493,11 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1473
1493
|
"onClick"
|
|
1474
1494
|
]))), 128))])) : T("", !0);
|
|
1475
1495
|
}
|
|
1476
|
-
}),
|
|
1496
|
+
}), fa = [
|
|
1477
1497
|
"data-glim-title",
|
|
1478
1498
|
"aria-labelledby",
|
|
1479
1499
|
"aria-label"
|
|
1480
|
-
],
|
|
1500
|
+
], pa = ["id"], ma = { class: "glim-modal-body glim-window-body" }, ha = /* @__PURE__ */ j({
|
|
1481
1501
|
inheritAttrs: !1,
|
|
1482
1502
|
__name: "Window",
|
|
1483
1503
|
props: {
|
|
@@ -1498,14 +1518,14 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1498
1518
|
d?.(), a("close");
|
|
1499
1519
|
}
|
|
1500
1520
|
L(() => {
|
|
1501
|
-
d =
|
|
1521
|
+
d = Bn(() => s.value, f), s.value && ar(s.value)?.focus();
|
|
1502
1522
|
}), De(() => {
|
|
1503
|
-
d?.(),
|
|
1523
|
+
d?.(), Sn(l);
|
|
1504
1524
|
}), n({ card: s });
|
|
1505
1525
|
function p() {
|
|
1506
1526
|
i.closeOnBackdrop && !Rt() && f();
|
|
1507
1527
|
}
|
|
1508
|
-
return (n, r) => (R(), w(Se, { to: G(
|
|
1528
|
+
return (n, r) => (R(), w(Se, { to: G(fn)() }, [D("div", {
|
|
1509
1529
|
class: "glim-modal-backdrop",
|
|
1510
1530
|
onMousedown: X(p, ["self"])
|
|
1511
1531
|
}, [D("div", N({
|
|
@@ -1535,9 +1555,9 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1535
1555
|
}, {
|
|
1536
1556
|
default: Y(() => [V(n.$slots, "title", {}, () => [k(W(t.title), 1)])]),
|
|
1537
1557
|
_: 3
|
|
1538
|
-
})], 8,
|
|
1539
|
-
D("div",
|
|
1540
|
-
A(
|
|
1558
|
+
})], 8, pa),
|
|
1559
|
+
D("div", ma, [V(n.$slots, "default")]),
|
|
1560
|
+
A(da, {
|
|
1541
1561
|
actions: t.actions,
|
|
1542
1562
|
start: t.start,
|
|
1543
1563
|
"has-start": u.value,
|
|
@@ -1553,9 +1573,9 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1553
1573
|
"has-start",
|
|
1554
1574
|
"text"
|
|
1555
1575
|
])
|
|
1556
|
-
], 16,
|
|
1576
|
+
], 16, fa)], 32)], 8, ["to"]));
|
|
1557
1577
|
}
|
|
1558
|
-
}),
|
|
1578
|
+
}), ga = { class: "glim-fortress-text" }, _a = /* @__PURE__ */ j({
|
|
1559
1579
|
__name: "FortressDoubtWindow",
|
|
1560
1580
|
props: {
|
|
1561
1581
|
app: {},
|
|
@@ -1572,7 +1592,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1572
1592
|
attrs: { "data-fortress": "open-anyway" },
|
|
1573
1593
|
onClick: () => t.onOpen()
|
|
1574
1594
|
}]);
|
|
1575
|
-
return (t, i) => (R(), w(
|
|
1595
|
+
return (t, i) => (R(), w(ha, {
|
|
1576
1596
|
"data-glim": "FortressDoubtWindow",
|
|
1577
1597
|
title: n.value.title,
|
|
1578
1598
|
actions: r.value,
|
|
@@ -1582,7 +1602,7 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1582
1602
|
},
|
|
1583
1603
|
onClose: i[0] ||= (t) => e.onClose()
|
|
1584
1604
|
}, {
|
|
1585
|
-
default: Y(() => [D("div",
|
|
1605
|
+
default: Y(() => [D("div", ga, [D("p", null, W(n.value.body), 1)])]),
|
|
1586
1606
|
_: 1
|
|
1587
1607
|
}, 8, [
|
|
1588
1608
|
"title",
|
|
@@ -1590,32 +1610,32 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1590
1610
|
"text"
|
|
1591
1611
|
]));
|
|
1592
1612
|
}
|
|
1593
|
-
}),
|
|
1613
|
+
}), va = ["data-glim-title"], ya = { class: "glim-instance-top" }, ba = {
|
|
1594
1614
|
key: 0,
|
|
1595
1615
|
class: "glim-instance-mark",
|
|
1596
1616
|
"aria-hidden": "true"
|
|
1597
|
-
},
|
|
1617
|
+
}, xa = ["src"], Sa = { class: "glim-instance-main" }, Ca = { class: "glim-instance-name" }, wa = { class: "glim-instance-title" }, Ta = {
|
|
1598
1618
|
key: 0,
|
|
1599
1619
|
class: "glim-instance-badges"
|
|
1600
|
-
},
|
|
1620
|
+
}, Ea = {
|
|
1601
1621
|
key: 0,
|
|
1602
1622
|
class: "glim-eyebrow"
|
|
1603
|
-
},
|
|
1623
|
+
}, Da = {
|
|
1604
1624
|
key: 1,
|
|
1605
1625
|
class: "glim-instance-facts glim-num"
|
|
1606
|
-
},
|
|
1626
|
+
}, Oa = {
|
|
1607
1627
|
key: 2,
|
|
1608
1628
|
class: "glim-instance-figures"
|
|
1609
|
-
},
|
|
1629
|
+
}, ka = { class: "glim-num" }, Aa = {
|
|
1610
1630
|
key: 3,
|
|
1611
1631
|
class: "glim-instance-acts"
|
|
1612
|
-
},
|
|
1632
|
+
}, ja = {
|
|
1613
1633
|
key: 0,
|
|
1614
1634
|
class: "glim-instance-body"
|
|
1615
|
-
},
|
|
1635
|
+
}, Ma = {
|
|
1616
1636
|
key: 1,
|
|
1617
1637
|
class: "glim-instance-acts"
|
|
1618
|
-
},
|
|
1638
|
+
}, Na = /* @__PURE__ */ j({
|
|
1619
1639
|
__name: "InstanceCard",
|
|
1620
1640
|
props: {
|
|
1621
1641
|
logo: {},
|
|
@@ -1633,27 +1653,27 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1633
1653
|
class: P(["glim-card glim-instance", e.hueIndex !== void 0 && "glim-hue"]),
|
|
1634
1654
|
style: F(r.value)
|
|
1635
1655
|
}, [
|
|
1636
|
-
D("div",
|
|
1656
|
+
D("div", ya, [t.$slots.logo ? (R(), E("span", ba, [V(t.$slots, "logo")])) : e.logo ? (R(), E("img", {
|
|
1637
1657
|
key: 1,
|
|
1638
1658
|
class: "glim-instance-mark",
|
|
1639
1659
|
src: e.logo,
|
|
1640
1660
|
alt: "",
|
|
1641
1661
|
draggable: "false"
|
|
1642
|
-
}, null, 8,
|
|
1643
|
-
D("div",
|
|
1644
|
-
e.eyebrow ? (R(), E("span",
|
|
1645
|
-
n.value ? (R(), E("p",
|
|
1646
|
-
e.figures?.length ? (R(), E("dl",
|
|
1647
|
-
t.$slots.actions && !t.$slots.default ? (R(), E("div",
|
|
1662
|
+
}, null, 8, xa)) : T("", !0), D("div", Sa, [
|
|
1663
|
+
D("div", Ca, [D("h3", wa, W(e.name), 1), t.$slots.badges ? (R(), E("span", Ta, [V(t.$slots, "badges")])) : T("", !0)]),
|
|
1664
|
+
e.eyebrow ? (R(), E("span", Ea, W(e.eyebrow), 1)) : T("", !0),
|
|
1665
|
+
n.value ? (R(), E("p", Da, W(n.value), 1)) : T("", !0),
|
|
1666
|
+
e.figures?.length ? (R(), E("dl", Oa, [(R(!0), E(S, null, B(e.figures, (e) => (R(), E("div", { key: e.label }, [D("dt", null, W(e.label), 1), D("dd", ka, W(e.value), 1)]))), 128))])) : T("", !0),
|
|
1667
|
+
t.$slots.actions && !t.$slots.default ? (R(), E("div", Aa, [V(t.$slots, "actions")])) : T("", !0)
|
|
1648
1668
|
])]),
|
|
1649
|
-
t.$slots.default ? (R(), E("div",
|
|
1650
|
-
t.$slots.actions && t.$slots.default ? (R(), E("div",
|
|
1651
|
-
], 14,
|
|
1669
|
+
t.$slots.default ? (R(), E("div", ja, [V(t.$slots, "default")])) : T("", !0),
|
|
1670
|
+
t.$slots.actions && t.$slots.default ? (R(), E("div", Ma, [V(t.$slots, "actions")])) : T("", !0)
|
|
1671
|
+
], 14, va));
|
|
1652
1672
|
}
|
|
1653
|
-
}),
|
|
1673
|
+
}), Pa = {
|
|
1654
1674
|
"data-glim": "PresenceBadges",
|
|
1655
1675
|
style: { display: "contents" }
|
|
1656
|
-
},
|
|
1676
|
+
}, Fa = /* @__PURE__ */ j({
|
|
1657
1677
|
__name: "PresenceBadges",
|
|
1658
1678
|
props: {
|
|
1659
1679
|
instance: {},
|
|
@@ -1665,24 +1685,24 @@ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1665
1685
|
checking: n.text.checking,
|
|
1666
1686
|
away: n.text.away
|
|
1667
1687
|
})[n.instance.presence];
|
|
1668
|
-
return (n, i) => (R(), E("span",
|
|
1688
|
+
return (n, i) => (R(), E("span", Pa, [t.instance.relay ? (R(), w(e, { key: 0 }, {
|
|
1669
1689
|
default: Y(() => [k(W(t.text.viaRelay), 1)]),
|
|
1670
1690
|
_: 1
|
|
1671
|
-
})) : T("", !0), A(e, { tone: G(
|
|
1691
|
+
})) : T("", !0), A(e, { tone: G(pn)(t.instance.presence) }, {
|
|
1672
1692
|
default: Y(() => [k(W(r()), 1)]),
|
|
1673
1693
|
_: 1
|
|
1674
1694
|
}, 8, ["tone"])]));
|
|
1675
1695
|
}
|
|
1676
1696
|
});
|
|
1677
1697
|
// src/fortressParts.ts
|
|
1678
|
-
function
|
|
1698
|
+
function Ia(e) {
|
|
1679
1699
|
return e ? p(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
|
|
1680
1700
|
}
|
|
1681
1701
|
// src/FortressAppCard.vue?vue&type=script&setup=true&lang.ts
|
|
1682
|
-
var
|
|
1702
|
+
var La = { class: "glim-instance-rows" }, Ra = ["data-instance"], za = {
|
|
1683
1703
|
class: "glim-instance-device",
|
|
1684
1704
|
"aria-hidden": "true"
|
|
1685
|
-
},
|
|
1705
|
+
}, Ba = { class: "glim-instance-row-text" }, Va = { class: "glim-instance-row-name" }, Ha = { class: "glim-instance-row-sub glim-num" }, Ua = { class: "glim-instance-row-end" }, Wa = /* @__PURE__ */ j({
|
|
1686
1706
|
inheritAttrs: !1,
|
|
1687
1707
|
__name: "FortressAppCard",
|
|
1688
1708
|
props: {
|
|
@@ -1699,11 +1719,11 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1699
1719
|
connected: n.text.connected,
|
|
1700
1720
|
checking: n.text.checking,
|
|
1701
1721
|
away: n.text.away
|
|
1702
|
-
})[e.presence], o = (e) =>
|
|
1722
|
+
})[e.presence], o = (e) => Ia(e.deviceKind), s = (e) => Lt(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);
|
|
1703
1723
|
function d(e) {
|
|
1704
1724
|
e.doubt ? u.value = e : Jt(n.app, e, n.onOpen);
|
|
1705
1725
|
}
|
|
1706
|
-
return (n, p) => (R(), E(S, null, [A(
|
|
1726
|
+
return (n, p) => (R(), E(S, null, [A(Na, N(n.$attrs, {
|
|
1707
1727
|
"data-glim": "FortressAppCard",
|
|
1708
1728
|
"data-fortress-app": t.app.id,
|
|
1709
1729
|
logo: t.app.logo,
|
|
@@ -1730,7 +1750,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1730
1750
|
default: Y(() => [k(W(r.value.needs), 1)]),
|
|
1731
1751
|
_: 1
|
|
1732
1752
|
})) : T("", !0),
|
|
1733
|
-
A(
|
|
1753
|
+
A(Fa, {
|
|
1734
1754
|
instance: r.value.main,
|
|
1735
1755
|
text: t.text
|
|
1736
1756
|
}, null, 8, ["instance", "text"])
|
|
@@ -1738,15 +1758,15 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1738
1758
|
_: 2
|
|
1739
1759
|
}, [i.value ? void 0 : {
|
|
1740
1760
|
name: "default",
|
|
1741
|
-
fn: Y(() => [D("ul",
|
|
1761
|
+
fn: Y(() => [D("ul", La, [(R(!0), E(S, null, B(r.value.rows, ({ instance: n, sub: r, open: i }) => (R(), E("li", {
|
|
1742
1762
|
key: n.id,
|
|
1743
1763
|
class: "glim-instance-row",
|
|
1744
1764
|
"data-instance": n.id
|
|
1745
1765
|
}, [
|
|
1746
|
-
D("span",
|
|
1747
|
-
D("span",
|
|
1748
|
-
D("span",
|
|
1749
|
-
A(e, { tone: G(
|
|
1766
|
+
D("span", za, [o(n) ? (R(), w(H(o(n)), { key: 0 })) : T("", !0)]),
|
|
1767
|
+
D("span", Ba, [D("span", Va, W(n.device), 1), D("span", Ha, W(r), 1)]),
|
|
1768
|
+
D("span", Ua, [
|
|
1769
|
+
A(e, { tone: G(pn)(n.presence) }, {
|
|
1750
1770
|
default: Y(() => [k(W(a(n)), 1)]),
|
|
1751
1771
|
_: 2
|
|
1752
1772
|
}, 1032, ["tone"]),
|
|
@@ -1782,7 +1802,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1782
1802
|
"onClick"
|
|
1783
1803
|
])) : T("", !0)
|
|
1784
1804
|
])
|
|
1785
|
-
], 8,
|
|
1805
|
+
], 8, Ra))), 128))])]),
|
|
1786
1806
|
key: "0"
|
|
1787
1807
|
}, l.value ? {
|
|
1788
1808
|
name: "actions",
|
|
@@ -1813,7 +1833,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1813
1833
|
"eyebrow",
|
|
1814
1834
|
"facts",
|
|
1815
1835
|
"hue-index"
|
|
1816
|
-
]), u.value ? (R(), w(
|
|
1836
|
+
]), u.value ? (R(), w(_a, {
|
|
1817
1837
|
key: 0,
|
|
1818
1838
|
app: t.app,
|
|
1819
1839
|
instance: u.value,
|
|
@@ -1828,14 +1848,14 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1828
1848
|
"on-close"
|
|
1829
1849
|
])) : T("", !0)], 64));
|
|
1830
1850
|
}
|
|
1831
|
-
}),
|
|
1851
|
+
}), Ga = [
|
|
1832
1852
|
"href",
|
|
1833
1853
|
"data-sel-id",
|
|
1834
1854
|
"aria-selected",
|
|
1835
1855
|
"aria-current",
|
|
1836
1856
|
"aria-describedby",
|
|
1837
1857
|
"tabindex"
|
|
1838
|
-
],
|
|
1858
|
+
], Ka = [
|
|
1839
1859
|
"data-sel-id",
|
|
1840
1860
|
"id",
|
|
1841
1861
|
"role",
|
|
@@ -1848,7 +1868,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1848
1868
|
"aria-hidden",
|
|
1849
1869
|
"disabled",
|
|
1850
1870
|
"tabindex"
|
|
1851
|
-
],
|
|
1871
|
+
], qa = ["id"], Ja = /* @__PURE__ */ j({
|
|
1852
1872
|
__name: "SelectorSegment",
|
|
1853
1873
|
props: {
|
|
1854
1874
|
item: {},
|
|
@@ -1872,7 +1892,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1872
1892
|
},
|
|
1873
1893
|
emits: ["select"],
|
|
1874
1894
|
setup(e, { emit: i }) {
|
|
1875
|
-
let a = e, o = i, s = C(() =>
|
|
1895
|
+
let a = e, o = i, s = C(() => En({
|
|
1876
1896
|
strip: a.strip,
|
|
1877
1897
|
orientation: a.orientation,
|
|
1878
1898
|
size: a.size,
|
|
@@ -1922,7 +1942,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1922
1942
|
key: 1,
|
|
1923
1943
|
"data-sel-label": "",
|
|
1924
1944
|
class: P(s.value.labelClass)
|
|
1925
|
-
}, W(e.item.label), 3))], 16,
|
|
1945
|
+
}, W(e.item.label), 3))], 16, Ga)) : (R(), E(S, { key: 1 }, [A(G(r), N({
|
|
1926
1946
|
on: u.value,
|
|
1927
1947
|
show: G(c).show,
|
|
1928
1948
|
hide: G(c).hide
|
|
@@ -1931,7 +1951,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1931
1951
|
ref: m,
|
|
1932
1952
|
type: "button",
|
|
1933
1953
|
"data-sel-id": e.item.id,
|
|
1934
|
-
id: e.panelId && f.value ? G(
|
|
1954
|
+
id: e.panelId && f.value ? G(jn)(e.panelId, e.item.id) : void 0,
|
|
1935
1955
|
role: e.strip.kind === "toggle" ? void 0 : e.strip.kind,
|
|
1936
1956
|
"aria-selected": f.value ? e.on : void 0,
|
|
1937
1957
|
"aria-controls": e.panelId && f.value && e.on ? e.panelId : void 0,
|
|
@@ -1953,7 +1973,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1953
1973
|
key: 1,
|
|
1954
1974
|
"data-sel-label": "",
|
|
1955
1975
|
class: P(s.value.labelClass)
|
|
1956
|
-
}, W(e.item.label), 3))], 16,
|
|
1976
|
+
}, W(e.item.label), 3))], 16, Ka)]),
|
|
1957
1977
|
_: 1
|
|
1958
1978
|
}, 16, [
|
|
1959
1979
|
"on",
|
|
@@ -1963,16 +1983,16 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
1963
1983
|
key: 0,
|
|
1964
1984
|
id: G(l),
|
|
1965
1985
|
hidden: ""
|
|
1966
|
-
}, W(s.value.tip), 9,
|
|
1986
|
+
}, W(s.value.tip), 9, qa)) : T("", !0)], 64)), A(t, { state: G(c) }, null, 8, ["state"])], 64));
|
|
1967
1987
|
}
|
|
1968
|
-
}),
|
|
1988
|
+
}), Ya = [
|
|
1969
1989
|
"role",
|
|
1970
1990
|
"aria-label",
|
|
1971
1991
|
"aria-orientation"
|
|
1972
|
-
],
|
|
1992
|
+
], Xa = {
|
|
1973
1993
|
key: 0,
|
|
1974
1994
|
class: "glim-sel-list"
|
|
1975
|
-
},
|
|
1995
|
+
}, Za = /* @__PURE__ */ j({
|
|
1976
1996
|
__name: "Selector",
|
|
1977
1997
|
props: {
|
|
1978
1998
|
items: {},
|
|
@@ -2019,9 +2039,9 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2019
2039
|
let n = e, r = t, i = C(() => n.modelValue);
|
|
2020
2040
|
function a(e) {
|
|
2021
2041
|
let t = U(It(e));
|
|
2022
|
-
return Ee(
|
|
2042
|
+
return Ee(Wn(e, () => t.value = It(e))), t;
|
|
2023
2043
|
}
|
|
2024
|
-
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(
|
|
2044
|
+
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(On(n.size, n.orientation)), u = a(Ye), d = C(() => Mn({
|
|
2025
2045
|
mode: c.value,
|
|
2026
2046
|
select: n.select === "many" ? "many" : "one",
|
|
2027
2047
|
activation: n.activation,
|
|
@@ -2063,14 +2083,14 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2063
2083
|
return;
|
|
2064
2084
|
}
|
|
2065
2085
|
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
2066
|
-
return
|
|
2086
|
+
return ir(e, {
|
|
2067
2087
|
pinWidth: t,
|
|
2068
2088
|
fit: n.fit,
|
|
2069
2089
|
canSqueeze: r,
|
|
2070
2090
|
canList: i
|
|
2071
2091
|
}, (e) => p.value = e);
|
|
2072
2092
|
});
|
|
2073
|
-
let _ = C(() =>
|
|
2093
|
+
let _ = C(() => kn({
|
|
2074
2094
|
layout: p.value,
|
|
2075
2095
|
inline: s.value,
|
|
2076
2096
|
fit: n.fit
|
|
@@ -2079,10 +2099,10 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2079
2099
|
label: e.label,
|
|
2080
2100
|
glyph: e.glyph,
|
|
2081
2101
|
disabled: b.value[t]
|
|
2082
|
-
}))), 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(() =>
|
|
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(() => wn(b.value, n.items.findIndex((e) => ne(e.id))));
|
|
2083
2103
|
function ie(e) {
|
|
2084
2104
|
r("press", e);
|
|
2085
|
-
let t = y.value ?
|
|
2105
|
+
let t = y.value ? Xn(i.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
2086
2106
|
t !== i.value && r("update:modelValue", t);
|
|
2087
2107
|
}
|
|
2088
2108
|
function ae(e) {
|
|
@@ -2096,7 +2116,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2096
2116
|
e.preventDefault(), t.click();
|
|
2097
2117
|
return;
|
|
2098
2118
|
}
|
|
2099
|
-
let r =
|
|
2119
|
+
let r = Cn(f.value, e.key, n.orientation);
|
|
2100
2120
|
if (!r) return;
|
|
2101
2121
|
e.preventDefault();
|
|
2102
2122
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
@@ -2112,7 +2132,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2112
2132
|
class: P([d.value.className, { "glim-sel--listed": v.value }]),
|
|
2113
2133
|
style: F(_.value.track),
|
|
2114
2134
|
onKeydown: oe
|
|
2115
|
-
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(
|
|
2135
|
+
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(Ja, {
|
|
2116
2136
|
key: t.id,
|
|
2117
2137
|
item: t,
|
|
2118
2138
|
index: n,
|
|
@@ -2153,7 +2173,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2153
2173
|
"hue-offset",
|
|
2154
2174
|
"panel-id",
|
|
2155
2175
|
"onSelect"
|
|
2156
|
-
]))), 128)), v.value ? (R(), E("div",
|
|
2176
|
+
]))), 128)), v.value ? (R(), E("div", Xa, [A(be, {
|
|
2157
2177
|
"model-value": te.value,
|
|
2158
2178
|
label: G(o) ?? "",
|
|
2159
2179
|
"hide-label": "",
|
|
@@ -2169,18 +2189,18 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2169
2189
|
"size",
|
|
2170
2190
|
"options",
|
|
2171
2191
|
"disabled"
|
|
2172
|
-
])])) : T("", !0)], 46,
|
|
2192
|
+
])])) : T("", !0)], 46, Ya));
|
|
2173
2193
|
}
|
|
2174
|
-
}),
|
|
2194
|
+
}), Qa = {
|
|
2175
2195
|
key: 0,
|
|
2176
2196
|
class: "glim-toggle-label"
|
|
2177
|
-
},
|
|
2197
|
+
}, $a = [
|
|
2178
2198
|
"aria-checked",
|
|
2179
2199
|
"aria-label",
|
|
2180
2200
|
"aria-disabled",
|
|
2181
2201
|
"aria-describedby",
|
|
2182
2202
|
"disabled"
|
|
2183
|
-
],
|
|
2203
|
+
], eo = ["id"], to = /* @__PURE__ */ j({
|
|
2184
2204
|
inheritAttrs: !1,
|
|
2185
2205
|
__name: "Toggle",
|
|
2186
2206
|
props: /*@__PURE__*/ M({
|
|
@@ -2206,7 +2226,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2206
2226
|
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;
|
|
2207
2227
|
Ee(() => u?.());
|
|
2208
2228
|
function d() {
|
|
2209
|
-
r.refused ? (u?.(), u =
|
|
2229
|
+
r.refused ? (u?.(), u = Nn(l.value)) : i.value = !i.value;
|
|
2210
2230
|
}
|
|
2211
2231
|
return (n, r) => (R(), E(S, null, [
|
|
2212
2232
|
D("span", {
|
|
@@ -2215,7 +2235,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2215
2235
|
"data-glim": "Toggle",
|
|
2216
2236
|
class: P(["glim-toggle", n.$attrs.class]),
|
|
2217
2237
|
style: F(n.$attrs.style)
|
|
2218
|
-
}, [o.value ? (R(), E("span",
|
|
2238
|
+
}, [o.value ? (R(), E("span", Qa, W(e.label), 1)) : T("", !0), D("button", N({
|
|
2219
2239
|
...n.$attrs,
|
|
2220
2240
|
class: void 0,
|
|
2221
2241
|
style: void 0
|
|
@@ -2234,25 +2254,25 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2234
2254
|
onMouseleave: r[1] ||= (...e) => G(s).hide && G(s).hide(...e),
|
|
2235
2255
|
onFocus: r[2] ||= (...e) => G(s).showOnFocus && G(s).showOnFocus(...e),
|
|
2236
2256
|
onBlur: r[3] ||= (...e) => G(s).hide && G(s).hide(...e)
|
|
2237
|
-
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2257
|
+
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, $a)], 6),
|
|
2238
2258
|
e.refused ? (R(), E("span", {
|
|
2239
2259
|
key: 0,
|
|
2240
2260
|
id: G(c),
|
|
2241
2261
|
class: "glim-toggle-refusal"
|
|
2242
|
-
}, W(e.refused), 9,
|
|
2262
|
+
}, W(e.refused), 9, eo)) : T("", !0),
|
|
2243
2263
|
A(t, { state: G(s) }, null, 8, ["state"])
|
|
2244
2264
|
], 64));
|
|
2245
2265
|
}
|
|
2246
|
-
}),
|
|
2266
|
+
}), no = {
|
|
2247
2267
|
key: 0,
|
|
2248
2268
|
class: "glim-fortress-sub"
|
|
2249
|
-
},
|
|
2269
|
+
}, ro = { class: "glim-permissions" }, io = ["data-permission"], ao = {
|
|
2250
2270
|
class: "glim-permission-pair",
|
|
2251
2271
|
"aria-hidden": "true"
|
|
2252
|
-
},
|
|
2272
|
+
}, oo = ["src"], so = { class: "glim-permission-to" }, co = ["src"], lo = { class: "glim-permission-text" }, uo = { class: "glim-permission-title" }, fo = {
|
|
2253
2273
|
key: 0,
|
|
2254
2274
|
class: "glim-fortress-sub"
|
|
2255
|
-
},
|
|
2275
|
+
}, po = /* @__PURE__ */ j({
|
|
2256
2276
|
__name: "FortressPermissions",
|
|
2257
2277
|
props: {
|
|
2258
2278
|
text: {},
|
|
@@ -2279,15 +2299,15 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2279
2299
|
}
|
|
2280
2300
|
t.notify?.(n.error ?? t.text.failed, "fail");
|
|
2281
2301
|
let r = document.querySelector(`[data-permission="${CSS.escape(e.id)}"] .glim-toggle`);
|
|
2282
|
-
r &&
|
|
2302
|
+
r && Nn(r);
|
|
2283
2303
|
}
|
|
2284
|
-
return (t, r) => (R(), w(
|
|
2304
|
+
return (t, r) => (R(), w(ur, {
|
|
2285
2305
|
"data-glim": "FortressPermissions",
|
|
2286
2306
|
title: e.text.permissions,
|
|
2287
2307
|
hint: e.text.permissionsAbout,
|
|
2288
2308
|
"hue-index": e.hueIndex
|
|
2289
2309
|
}, {
|
|
2290
|
-
default: Y(() => [e.permissions.length === 0 ? (R(), E("p",
|
|
2310
|
+
default: Y(() => [e.permissions.length === 0 ? (R(), E("p", no, W(e.text.noPermissions), 1)) : (R(), E(S, { key: 1 }, [i.value ? (R(), w(Za, {
|
|
2291
2311
|
key: 0,
|
|
2292
2312
|
modelValue: n.value,
|
|
2293
2313
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -2299,35 +2319,35 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2299
2319
|
"modelValue",
|
|
2300
2320
|
"label",
|
|
2301
2321
|
"items"
|
|
2302
|
-
])) : T("", !0), D("ul",
|
|
2322
|
+
])) : T("", !0), D("ul", ro, [(R(!0), E(S, null, B(a.value, (e) => (R(), E("li", {
|
|
2303
2323
|
key: e.id,
|
|
2304
2324
|
class: P(["glim-permission", e.on && "glim-permission--on"]),
|
|
2305
2325
|
"data-permission": e.id
|
|
2306
2326
|
}, [
|
|
2307
|
-
D("span",
|
|
2327
|
+
D("span", ao, [
|
|
2308
2328
|
s(e.from) ? (R(), E("img", {
|
|
2309
2329
|
key: 0,
|
|
2310
2330
|
src: s(e.from),
|
|
2311
2331
|
alt: "",
|
|
2312
2332
|
draggable: "false"
|
|
2313
|
-
}, null, 8,
|
|
2333
|
+
}, null, 8, oo)) : T("", !0),
|
|
2314
2334
|
A(G(m), {
|
|
2315
2335
|
mark: G(Ke).expand,
|
|
2316
2336
|
class: "glim-permission-arrow"
|
|
2317
2337
|
}, null, 8, ["mark"]),
|
|
2318
|
-
D("span",
|
|
2338
|
+
D("span", so, [(R(!0), E(S, null, B(e.to, (e) => (R(), E(S, { key: e }, [s(e) ? (R(), E("img", {
|
|
2319
2339
|
key: 0,
|
|
2320
2340
|
src: s(e),
|
|
2321
2341
|
alt: "",
|
|
2322
2342
|
draggable: "false"
|
|
2323
|
-
}, null, 8,
|
|
2343
|
+
}, null, 8, co)) : T("", !0)], 64))), 128))])
|
|
2324
2344
|
]),
|
|
2325
|
-
D("span",
|
|
2326
|
-
D("span",
|
|
2327
|
-
e.detail ? (R(), E("span",
|
|
2345
|
+
D("span", lo, [
|
|
2346
|
+
D("span", uo, W(e.title), 1),
|
|
2347
|
+
e.detail ? (R(), E("span", fo, W(e.detail), 1)) : T("", !0),
|
|
2328
2348
|
V(t.$slots, "extra", { permission: e })
|
|
2329
2349
|
]),
|
|
2330
|
-
A(
|
|
2350
|
+
A(to, {
|
|
2331
2351
|
"model-value": e.on,
|
|
2332
2352
|
label: e.title,
|
|
2333
2353
|
"hide-label": "",
|
|
@@ -2337,7 +2357,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2337
2357
|
"label",
|
|
2338
2358
|
"onUpdate:modelValue"
|
|
2339
2359
|
])
|
|
2340
|
-
], 10,
|
|
2360
|
+
], 10, io))), 128))])], 64))]),
|
|
2341
2361
|
_: 3
|
|
2342
2362
|
}, 8, [
|
|
2343
2363
|
"title",
|
|
@@ -2345,13 +2365,13 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2345
2365
|
"hue-index"
|
|
2346
2366
|
]));
|
|
2347
2367
|
}
|
|
2348
|
-
}),
|
|
2368
|
+
}), mo = [
|
|
2349
2369
|
"aria-label",
|
|
2350
2370
|
"aria-invalid",
|
|
2351
2371
|
"aria-describedby",
|
|
2352
2372
|
"disabled",
|
|
2353
2373
|
"type"
|
|
2354
|
-
],
|
|
2374
|
+
], ho = /* @__PURE__ */ j({
|
|
2355
2375
|
inheritAttrs: !1,
|
|
2356
2376
|
__name: "PasswordField",
|
|
2357
2377
|
props: /*@__PURE__*/ M({
|
|
@@ -2398,7 +2418,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2398
2418
|
disabled: e.disabled,
|
|
2399
2419
|
type: i.value ? "text" : "password",
|
|
2400
2420
|
class: "glim-input"
|
|
2401
|
-
}), null, 16,
|
|
2421
|
+
}), null, 16, mo), [[Pe, r.value]]), A(ge, N(e.eyeAttrs, {
|
|
2402
2422
|
tip: i.value ? e.text.hide : e.text.show,
|
|
2403
2423
|
class: "glim-secret-eye",
|
|
2404
2424
|
disabled: e.disabled,
|
|
@@ -2406,7 +2426,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2406
2426
|
}), {
|
|
2407
2427
|
default: Y(() => [(R(), w(H(i.value ? G(re) : G(v))))]),
|
|
2408
2428
|
_: 1
|
|
2409
|
-
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(
|
|
2429
|
+
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(ra, {
|
|
2410
2430
|
key: 0,
|
|
2411
2431
|
id: l.value.errorId
|
|
2412
2432
|
}, {
|
|
@@ -2414,67 +2434,67 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2414
2434
|
_: 1
|
|
2415
2435
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
2416
2436
|
}
|
|
2417
|
-
}),
|
|
2437
|
+
}), go = { class: "glim-phrase-fields" }, _o = { class: "glim-phrase-number glim-num" }, vo = [
|
|
2418
2438
|
"data-word",
|
|
2419
2439
|
"value",
|
|
2420
2440
|
"aria-label",
|
|
2421
2441
|
"onInput"
|
|
2422
|
-
],
|
|
2442
|
+
], yo = { class: "glim-fortress-sub" }, bo = {
|
|
2423
2443
|
key: 0,
|
|
2424
2444
|
class: "glim-fortress-note",
|
|
2425
2445
|
"data-fortress": "moves"
|
|
2426
|
-
},
|
|
2446
|
+
}, xo = {
|
|
2427
2447
|
key: 1,
|
|
2428
2448
|
class: "glim-fortress-error",
|
|
2429
2449
|
role: "alert"
|
|
2430
|
-
},
|
|
2450
|
+
}, So = {
|
|
2431
2451
|
key: 1,
|
|
2432
2452
|
class: "glim-fortress-result"
|
|
2433
|
-
},
|
|
2453
|
+
}, Co = {
|
|
2434
2454
|
class: "glim-fortress-result-mark",
|
|
2435
2455
|
"aria-hidden": "true"
|
|
2436
|
-
},
|
|
2456
|
+
}, wo = { class: "glim-fortress-text" }, To = { class: "glim-fortress-result-title" }, Eo = { class: "glim-fortress-sub" }, Do = {
|
|
2437
2457
|
key: 2,
|
|
2438
2458
|
class: "glim-fortress-text"
|
|
2439
|
-
},
|
|
2459
|
+
}, Oo = { class: "glim-fortress-sub" }, ko = {
|
|
2440
2460
|
key: 0,
|
|
2441
2461
|
class: "glim-fortress-error",
|
|
2442
2462
|
role: "alert"
|
|
2443
|
-
},
|
|
2463
|
+
}, Ao = {
|
|
2444
2464
|
key: 3,
|
|
2445
2465
|
class: "glim-fortress-text"
|
|
2446
|
-
},
|
|
2466
|
+
}, jo = { class: "glim-fortress-sub" }, Mo = {
|
|
2447
2467
|
key: 0,
|
|
2448
2468
|
class: "glim-fortress-error",
|
|
2449
2469
|
role: "alert"
|
|
2450
|
-
},
|
|
2470
|
+
}, No = {
|
|
2451
2471
|
key: 4,
|
|
2452
2472
|
class: "glim-fortress-text"
|
|
2453
|
-
},
|
|
2473
|
+
}, Po = {
|
|
2454
2474
|
key: 0,
|
|
2455
2475
|
class: "glim-fortress-error",
|
|
2456
2476
|
role: "alert"
|
|
2457
|
-
},
|
|
2477
|
+
}, Fo = {
|
|
2458
2478
|
key: 0,
|
|
2459
2479
|
class: "glim-fortress-error",
|
|
2460
2480
|
role: "alert"
|
|
2461
|
-
},
|
|
2481
|
+
}, Io = {
|
|
2462
2482
|
key: 6,
|
|
2463
2483
|
class: "glim-fortress-text"
|
|
2464
|
-
},
|
|
2484
|
+
}, Lo = { class: "glim-fortress-sub" }, Ro = {
|
|
2465
2485
|
key: 0,
|
|
2466
2486
|
class: "glim-fortress-error",
|
|
2467
2487
|
role: "alert"
|
|
2468
|
-
},
|
|
2488
|
+
}, zo = {
|
|
2469
2489
|
key: 7,
|
|
2470
2490
|
class: "glim-fortress-text"
|
|
2471
|
-
},
|
|
2491
|
+
}, Bo = { class: "glim-phrase-show" }, Vo = {
|
|
2472
2492
|
class: "glim-phrase-words",
|
|
2473
2493
|
"data-fortress": "words"
|
|
2474
|
-
},
|
|
2494
|
+
}, Ho = { class: "glim-phrase-number glim-num" }, Uo = ["aria-label", "viewBox"], Wo = ["width", "height"], Go = ["d"], Ko = { class: "glim-phrase-scan" }, qo = {
|
|
2475
2495
|
key: 0,
|
|
2476
2496
|
class: "glim-fortress-sub"
|
|
2477
|
-
},
|
|
2497
|
+
}, Jo = /* @__PURE__ */ j({
|
|
2478
2498
|
__name: "FortressWindow",
|
|
2479
2499
|
props: {
|
|
2480
2500
|
flow: {},
|
|
@@ -2496,13 +2516,13 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2496
2516
|
})), c = C(() => t.state.busy !== null), l;
|
|
2497
2517
|
Ee(() => l?.()), J(() => t.state.refusal, (e) => {
|
|
2498
2518
|
let t = e && n.value?.card?.querySelector(`[data-fortress="${e.button}"]`);
|
|
2499
|
-
t && (l =
|
|
2519
|
+
t && (l = Nn(t));
|
|
2500
2520
|
}), J(() => a.value.kind === "join" ? a.value.focus : -1, async (e) => {
|
|
2501
2521
|
await Te(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
|
|
2502
2522
|
}), J(() => a.value.kind, async () => {
|
|
2503
2523
|
await Te();
|
|
2504
2524
|
let e = n.value?.card;
|
|
2505
|
-
e &&
|
|
2525
|
+
e && ar(e)?.focus();
|
|
2506
2526
|
});
|
|
2507
2527
|
function u(e, t, n, r, i = !1) {
|
|
2508
2528
|
return {
|
|
@@ -2527,7 +2547,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2527
2547
|
let f = C(() => {
|
|
2528
2548
|
let e = a.value;
|
|
2529
2549
|
if (e.kind !== "phrase" && e.kind !== "changed") return null;
|
|
2530
|
-
let n =
|
|
2550
|
+
let n = gn(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
|
|
2531
2551
|
return {
|
|
2532
2552
|
...n,
|
|
2533
2553
|
side: n.size + 8
|
|
@@ -2589,7 +2609,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2589
2609
|
actions: []
|
|
2590
2610
|
};
|
|
2591
2611
|
});
|
|
2592
|
-
return (t, i) => (R(), w(
|
|
2612
|
+
return (t, i) => (R(), w(ha, {
|
|
2593
2613
|
ref_key: "win",
|
|
2594
2614
|
ref: n,
|
|
2595
2615
|
title: _.value.title,
|
|
@@ -2605,10 +2625,10 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2605
2625
|
onSubmit: i[0] ||= X((t) => e.flow.join(), ["prevent"])
|
|
2606
2626
|
}, [
|
|
2607
2627
|
D("p", null, W(e.text.about), 1),
|
|
2608
|
-
D("div",
|
|
2628
|
+
D("div", go, [(R(!0), E(S, null, B(a.value.words, (t, n) => (R(), E("label", {
|
|
2609
2629
|
key: n,
|
|
2610
2630
|
class: "glim-phrase-field"
|
|
2611
|
-
}, [D("span",
|
|
2631
|
+
}, [D("span", _o, W(n + 1), 1), D("input", {
|
|
2612
2632
|
class: "glim-input",
|
|
2613
2633
|
"data-word": n,
|
|
2614
2634
|
value: t,
|
|
@@ -2618,32 +2638,32 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2618
2638
|
autocorrect: "off",
|
|
2619
2639
|
spellcheck: "false",
|
|
2620
2640
|
onInput: (t) => e.flow.enter(n, t.target.value)
|
|
2621
|
-
}, null, 40,
|
|
2641
|
+
}, null, 40, vo)]))), 128))]),
|
|
2622
2642
|
i[4] ||= D("button", {
|
|
2623
2643
|
type: "submit",
|
|
2624
2644
|
hidden: ""
|
|
2625
2645
|
}, null, -1),
|
|
2626
|
-
D("p",
|
|
2627
|
-
o.value ? (R(), E("p",
|
|
2646
|
+
D("p", yo, W(e.text.phraseWhere), 1),
|
|
2647
|
+
o.value ? (R(), E("p", bo, [G(p)("info") ? (R(), w(H(G(p)("info")), { key: 0 })) : T("", !0), D("span", null, W(G(Z)(e.text.moves, {
|
|
2628
2648
|
app: e.app.name,
|
|
2629
2649
|
devices: o.value
|
|
2630
2650
|
})), 1)])) : T("", !0),
|
|
2631
|
-
e.state.error ? (R(), E("p",
|
|
2632
|
-
], 32)) : a.value.kind === "joined" ? (R(), E("div",
|
|
2651
|
+
e.state.error ? (R(), E("p", xo, W(e.state.error), 1)) : T("", !0)
|
|
2652
|
+
], 32)) : a.value.kind === "joined" ? (R(), E("div", So, [D("span", Co, [A(G(m), { mark: G(Ke).check }, null, 8, ["mark"])]), D("div", wo, [D("p", To, W(G(Z)(e.text.joinedTitle, { app: e.app.name })), 1), D("p", Eo, W(o.value ? `${G(Z)(e.text.joinedMoved, { devices: o.value })} ` : "") + W(e.text.joinedNext), 1)])])) : a.value.kind === "leave" ? (R(), E("div", Do, [
|
|
2633
2653
|
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),
|
|
2634
|
-
D("p",
|
|
2635
|
-
e.state.error ? (R(), E("p",
|
|
2636
|
-
])) : a.value.kind === "remove" ? (R(), E("div",
|
|
2654
|
+
D("p", Oo, W(e.text.leaveBack), 1),
|
|
2655
|
+
e.state.error ? (R(), E("p", ko, W(e.state.error), 1)) : T("", !0)
|
|
2656
|
+
])) : a.value.kind === "remove" ? (R(), E("div", Ao, [
|
|
2637
2657
|
D("p", null, W(G(Z)(e.text.removeBody, { device: a.value.device })), 1),
|
|
2638
|
-
D("p",
|
|
2639
|
-
e.state.error ? (R(), E("p",
|
|
2640
|
-
])) : a.value.kind === "removed" ? (R(), E("div",
|
|
2658
|
+
D("p", jo, W(e.text.removeBack), 1),
|
|
2659
|
+
e.state.error ? (R(), E("p", Mo, W(e.state.error), 1)) : T("", !0)
|
|
2660
|
+
])) : a.value.kind === "removed" ? (R(), E("div", No, [D("p", null, W(G(Z)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (R(), E("p", Po, W(e.state.error), 1)) : T("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (R(), E("form", {
|
|
2641
2661
|
key: 5,
|
|
2642
2662
|
class: "glim-fortress-text",
|
|
2643
2663
|
onSubmit: i[2] ||= X((t) => e.flow.unlock(), ["prevent"])
|
|
2644
2664
|
}, [
|
|
2645
2665
|
D("p", null, W(G(Z)(e.text.phrasePassword, { app: e.app.name })), 1),
|
|
2646
|
-
A(
|
|
2666
|
+
A(ho, {
|
|
2647
2667
|
"model-value": a.value.password,
|
|
2648
2668
|
"aria-label": G(Z)(e.text.password, { app: e.app.name }),
|
|
2649
2669
|
placeholder: G(Z)(e.text.password, { app: e.app.name }),
|
|
@@ -2658,15 +2678,15 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2658
2678
|
"placeholder",
|
|
2659
2679
|
"text"
|
|
2660
2680
|
]),
|
|
2661
|
-
e.state.error ? (R(), E("p",
|
|
2662
|
-
], 32)) : a.value.kind === "change" ? (R(), E("div",
|
|
2681
|
+
e.state.error ? (R(), E("p", Fo, W(e.state.error), 1)) : T("", !0)
|
|
2682
|
+
], 32)) : a.value.kind === "change" ? (R(), E("div", Io, [
|
|
2663
2683
|
D("p", null, W(e.text.changeBody), 1),
|
|
2664
|
-
D("p",
|
|
2665
|
-
e.state.error ? (R(), E("p",
|
|
2666
|
-
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div",
|
|
2684
|
+
D("p", Lo, W(e.text.changeAway), 1),
|
|
2685
|
+
e.state.error ? (R(), E("p", Ro, W(e.state.error), 1)) : T("", !0)
|
|
2686
|
+
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div", zo, [
|
|
2667
2687
|
D("p", null, W(e.text.phraseBody), 1),
|
|
2668
|
-
D("div",
|
|
2669
|
-
D("ol",
|
|
2688
|
+
D("div", Bo, [
|
|
2689
|
+
D("ol", Vo, [(R(!0), E(S, null, B(a.value.words, (e, t) => (R(), E("li", { key: t }, [D("span", Ho, W(t + 1), 1), k(W(e), 1)]))), 128))]),
|
|
2670
2690
|
f.value ? (R(), E("svg", {
|
|
2671
2691
|
key: 0,
|
|
2672
2692
|
class: "glim-phrase-qr",
|
|
@@ -2681,13 +2701,13 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2681
2701
|
width: f.value.side,
|
|
2682
2702
|
height: f.value.side,
|
|
2683
2703
|
fill: "#ffffff"
|
|
2684
|
-
}, null, 8,
|
|
2704
|
+
}, null, 8, Wo), D("path", {
|
|
2685
2705
|
d: f.value.path,
|
|
2686
2706
|
fill: "#161616"
|
|
2687
|
-
}, null, 8,
|
|
2688
|
-
D("p",
|
|
2707
|
+
}, null, 8, Go)], 8, Uo)) : T("", !0),
|
|
2708
|
+
D("p", Ko, W(e.text.scanHint), 1)
|
|
2689
2709
|
]),
|
|
2690
|
-
a.value.kind === "changed" && a.value.left.length ? (R(), E("p",
|
|
2710
|
+
a.value.kind === "changed" && a.value.left.length ? (R(), E("p", qo, W(G(Z)(e.text.changedLeft, { devices: G(jt)(e.lang, a.value.left) })), 1)) : T("", !0)
|
|
2691
2711
|
])) : T("", !0)]),
|
|
2692
2712
|
_: 1
|
|
2693
2713
|
}, 8, [
|
|
@@ -2698,25 +2718,25 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2698
2718
|
"text"
|
|
2699
2719
|
]));
|
|
2700
2720
|
}
|
|
2701
|
-
}),
|
|
2721
|
+
}), Yo = {
|
|
2702
2722
|
"data-glim": "Fortress",
|
|
2703
2723
|
class: "glim-fortress"
|
|
2704
|
-
},
|
|
2724
|
+
}, Xo = { class: "glim-fortress-grid" }, Zo = {
|
|
2705
2725
|
key: 0,
|
|
2706
2726
|
class: "glim-card glim-instance glim-instance--out",
|
|
2707
2727
|
"data-fortress": "out"
|
|
2708
|
-
},
|
|
2728
|
+
}, Qo = { class: "glim-instance-title" }, $o = { class: "glim-instance-hint" }, es = {
|
|
2709
2729
|
key: 0,
|
|
2710
2730
|
class: "glim-instance-found"
|
|
2711
|
-
},
|
|
2731
|
+
}, ts = ["src"], ns = { class: "glim-fortress-switch-text" }, rs = { class: "glim-fortress-switch-name" }, is = { class: "glim-fortress-sub" }, as = {
|
|
2712
2732
|
key: 1,
|
|
2713
2733
|
class: "glim-fortress-removed",
|
|
2714
2734
|
"data-fortress": "removed",
|
|
2715
2735
|
role: "status"
|
|
2716
|
-
},
|
|
2736
|
+
}, os = { class: "glim-fortress-grid" }, ss = {
|
|
2717
2737
|
key: 3,
|
|
2718
2738
|
class: "glim-fortress-actions"
|
|
2719
|
-
},
|
|
2739
|
+
}, cs = /* @__PURE__ */ j({
|
|
2720
2740
|
__name: "Fortress",
|
|
2721
2741
|
props: {
|
|
2722
2742
|
text: {},
|
|
@@ -2770,20 +2790,20 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2770
2790
|
unlock: "unlock",
|
|
2771
2791
|
copy: "copy",
|
|
2772
2792
|
...n.labelKeys
|
|
2773
|
-
})), c = z(
|
|
2793
|
+
})), c = z(Un()), l = C(() => n.showOthers ?? c.value);
|
|
2774
2794
|
function u(e) {
|
|
2775
|
-
r("update:showOthers", e), n.showOthers === void 0 && (
|
|
2795
|
+
r("update:showOthers", e), n.showOthers === void 0 && (Hn(e), c.value = e);
|
|
2776
2796
|
}
|
|
2777
2797
|
let d = C(() => Z(n.text.removedNote, { devices: jt(n.lang, n.removed) })), m = C(() => Zt(n.text, n.lang, n.apps));
|
|
2778
|
-
return (t, n) => (R(), E("div",
|
|
2779
|
-
D("div",
|
|
2780
|
-
D("h3",
|
|
2781
|
-
D("p",
|
|
2782
|
-
e.found ? (R(), E("p",
|
|
2798
|
+
return (t, n) => (R(), E("div", Yo, [
|
|
2799
|
+
D("div", Xo, [V(t.$slots, "default", { remove: G(i).openRemove }), e.joined ? T("", !0) : (R(), E("div", Zo, [
|
|
2800
|
+
D("h3", Qo, W(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
|
|
2801
|
+
D("p", $o, W(G(Z)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
|
|
2802
|
+
e.found ? (R(), E("p", es, [e.found.logo ? (R(), E("img", {
|
|
2783
2803
|
key: 0,
|
|
2784
2804
|
src: e.found.logo,
|
|
2785
2805
|
alt: ""
|
|
2786
|
-
}, null, 8,
|
|
2806
|
+
}, null, 8, ts)) : T("", !0), D("span", null, W(G(Z)(e.text.found, {
|
|
2787
2807
|
app: e.found.app,
|
|
2788
2808
|
device: e.found.device
|
|
2789
2809
|
})), 1)])) : T("", !0)
|
|
@@ -2792,14 +2812,14 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2792
2812
|
key: 0,
|
|
2793
2813
|
class: "glim-card glim-fortress-switch glim-hue",
|
|
2794
2814
|
style: F(G(Ct)(e.hueStart))
|
|
2795
|
-
}, [D("span",
|
|
2815
|
+
}, [D("span", ns, [D("span", rs, [k(W(e.text.showOthers), 1), A(Q, { tip: e.text.about }, null, 8, ["tip"])]), D("span", is, W(m.value), 1)]), A(to, {
|
|
2796
2816
|
"model-value": l.value,
|
|
2797
2817
|
label: e.text.showOthers,
|
|
2798
2818
|
"hide-label": "",
|
|
2799
2819
|
"data-fortress": "others",
|
|
2800
2820
|
"onUpdate:modelValue": u
|
|
2801
2821
|
}, null, 8, ["model-value", "label"])], 4)) : T("", !0),
|
|
2802
|
-
e.joined && e.removed.length ? (R(), E("div",
|
|
2822
|
+
e.joined && e.removed.length ? (R(), E("div", as, [
|
|
2803
2823
|
G(p)("info") ? (R(), w(H(G(p)("info")), { key: 0 })) : T("", !0),
|
|
2804
2824
|
D("span", null, W(d.value), 1),
|
|
2805
2825
|
e.onChangePhrase ? (R(), w(f, {
|
|
@@ -2811,11 +2831,11 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2811
2831
|
onClick: n[0] ||= (e) => G(i).openChange()
|
|
2812
2832
|
}, null, 8, ["label", "label-key"])) : T("", !0)
|
|
2813
2833
|
])) : T("", !0),
|
|
2814
|
-
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div",
|
|
2834
|
+
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div", os, [(R(!0), E(S, null, B(e.apps, (n, r) => (R(), E(S, { key: n.id }, [t.$slots.app ? V(t.$slots, "app", {
|
|
2815
2835
|
app: n,
|
|
2816
2836
|
hueIndex: e.hueStart + 1 + r,
|
|
2817
2837
|
remove: e.onRemove && G(i).openRemove
|
|
2818
|
-
}, void 0, void 0, 0) : (R(), w(
|
|
2838
|
+
}, void 0, void 0, 0) : (R(), w(Wa, {
|
|
2819
2839
|
key: 1,
|
|
2820
2840
|
app: n,
|
|
2821
2841
|
text: e.text,
|
|
@@ -2832,7 +2852,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2832
2852
|
"on-open",
|
|
2833
2853
|
"on-remove",
|
|
2834
2854
|
"remove-key"
|
|
2835
|
-
]))], 64))), 128))]), A(
|
|
2855
|
+
]))], 64))), 128))]), A(po, {
|
|
2836
2856
|
text: e.text,
|
|
2837
2857
|
app: e.app,
|
|
2838
2858
|
apps: [e.app, ...e.apps],
|
|
@@ -2852,7 +2872,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2852
2872
|
"notify",
|
|
2853
2873
|
"hue-index"
|
|
2854
2874
|
])], 64)) : T("", !0),
|
|
2855
|
-
!e.joined || e.onShowPhrase ? (R(), E("div",
|
|
2875
|
+
!e.joined || e.onShowPhrase ? (R(), E("div", ss, [e.joined ? (R(), w(f, {
|
|
2856
2876
|
key: 0,
|
|
2857
2877
|
label: e.text.showPhrase,
|
|
2858
2878
|
"label-key": s.value.showPhrase,
|
|
@@ -2874,7 +2894,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2874
2894
|
"data-fortress": "open-join",
|
|
2875
2895
|
onClick: n[2] ||= (e) => G(i).openJoin()
|
|
2876
2896
|
}, null, 8, ["label", "label-key"]))])) : T("", !0),
|
|
2877
|
-
a.value.window ? (R(), w(
|
|
2897
|
+
a.value.window ? (R(), w(Jo, {
|
|
2878
2898
|
key: 4,
|
|
2879
2899
|
flow: G(i),
|
|
2880
2900
|
state: a.value,
|
|
@@ -2896,7 +2916,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2896
2916
|
])) : T("", !0)
|
|
2897
2917
|
]));
|
|
2898
2918
|
}
|
|
2899
|
-
}),
|
|
2919
|
+
}), ls = /* @__PURE__ */ j({
|
|
2900
2920
|
__name: "FortressPairing",
|
|
2901
2921
|
props: {
|
|
2902
2922
|
text: {},
|
|
@@ -2929,14 +2949,14 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2929
2949
|
copy: "copy",
|
|
2930
2950
|
...t.labelKeys
|
|
2931
2951
|
}));
|
|
2932
|
-
return (t, i) => (R(), w(
|
|
2952
|
+
return (t, i) => (R(), w(ur, {
|
|
2933
2953
|
"data-glim": "FortressPairing",
|
|
2934
2954
|
title: e.text.pairing,
|
|
2935
2955
|
"hue-index": e.hueIndex
|
|
2936
2956
|
}, {
|
|
2937
2957
|
default: Y(() => [
|
|
2938
2958
|
V(t.$slots, "default"),
|
|
2939
|
-
e.onShowPhrase || e.onChangePhrase ? (R(), w(
|
|
2959
|
+
e.onShowPhrase || e.onChangePhrase ? (R(), w(sa, {
|
|
2940
2960
|
key: 0,
|
|
2941
2961
|
label: e.text.phraseTitle,
|
|
2942
2962
|
hint: e.onChangePhrase ? e.text.changePhraseAbout : void 0
|
|
@@ -2961,7 +2981,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2961
2981
|
}, null, 8, ["label", "label-key"])) : T("", !0)]),
|
|
2962
2982
|
_: 1
|
|
2963
2983
|
}, 8, ["label", "hint"])) : T("", !0),
|
|
2964
|
-
A(
|
|
2984
|
+
A(sa, {
|
|
2965
2985
|
label: e.text.leaveRow,
|
|
2966
2986
|
hint: G(Z)(e.text.leaveAbout, { app: e.app.name })
|
|
2967
2987
|
}, {
|
|
@@ -2974,7 +2994,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
2974
2994
|
_: 1
|
|
2975
2995
|
}, 8, ["label", "hint"]),
|
|
2976
2996
|
V(t.$slots, "after"),
|
|
2977
|
-
r.value.window ? (R(), w(
|
|
2997
|
+
r.value.window ? (R(), w(Jo, {
|
|
2978
2998
|
key: 1,
|
|
2979
2999
|
flow: G(n),
|
|
2980
3000
|
state: r.value,
|
|
@@ -3000,13 +3020,13 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3000
3020
|
_: 3
|
|
3001
3021
|
}, 8, ["title", "hue-index"]));
|
|
3002
3022
|
}
|
|
3003
|
-
}),
|
|
3023
|
+
}), us = [
|
|
3004
3024
|
"aria-label",
|
|
3005
3025
|
"aria-valuemin",
|
|
3006
3026
|
"aria-valuemax",
|
|
3007
3027
|
"aria-valuenow",
|
|
3008
3028
|
"aria-valuetext"
|
|
3009
|
-
],
|
|
3029
|
+
], ds = /* @__PURE__ */ j({
|
|
3010
3030
|
__name: "ProgressBar",
|
|
3011
3031
|
props: {
|
|
3012
3032
|
value: { default: null },
|
|
@@ -3022,7 +3042,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3022
3042
|
valueText: {}
|
|
3023
3043
|
},
|
|
3024
3044
|
setup(e) {
|
|
3025
|
-
let t = e, n = C(() =>
|
|
3045
|
+
let t = e, n = C(() => hn(t.value, {
|
|
3026
3046
|
paused: t.paused,
|
|
3027
3047
|
failed: t.failed
|
|
3028
3048
|
}));
|
|
@@ -3038,48 +3058,48 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3038
3058
|
}, [D("span", {
|
|
3039
3059
|
class: "glim-progress-fill",
|
|
3040
3060
|
style: F(n.value.width ? { width: n.value.width } : void 0)
|
|
3041
|
-
}, null, 4)], 10,
|
|
3061
|
+
}, null, 4)], 10, us));
|
|
3042
3062
|
}
|
|
3043
|
-
}),
|
|
3063
|
+
}), fs = { class: "glim-status-title" }, ps = ["src"], ms = {
|
|
3044
3064
|
class: "glim-fortress-text",
|
|
3045
3065
|
"data-fortress": "status"
|
|
3046
|
-
},
|
|
3066
|
+
}, hs = {
|
|
3047
3067
|
key: 0,
|
|
3048
3068
|
class: "glim-fortress-note",
|
|
3049
3069
|
"data-fortress": "loading"
|
|
3050
|
-
},
|
|
3070
|
+
}, gs = { role: "status" }, _s = {
|
|
3051
3071
|
key: 1,
|
|
3052
3072
|
class: "glim-fortress-note",
|
|
3053
3073
|
role: "status",
|
|
3054
3074
|
"data-fortress": "error"
|
|
3055
|
-
},
|
|
3075
|
+
}, vs = {
|
|
3056
3076
|
key: 2,
|
|
3057
3077
|
class: "glim-status-state",
|
|
3058
3078
|
"data-fortress": "state"
|
|
3059
|
-
},
|
|
3079
|
+
}, ys = {
|
|
3060
3080
|
key: 0,
|
|
3061
3081
|
class: "glim-fortress-sub"
|
|
3062
|
-
},
|
|
3082
|
+
}, bs = {
|
|
3063
3083
|
key: 3,
|
|
3064
3084
|
class: "glim-status-section",
|
|
3065
3085
|
"data-fortress": "needs"
|
|
3066
|
-
},
|
|
3086
|
+
}, xs = { class: "glim-status-heading" }, Ss = { class: "glim-status-list" }, Cs = {
|
|
3067
3087
|
key: 4,
|
|
3068
3088
|
class: "glim-status-section",
|
|
3069
3089
|
"data-fortress": "work"
|
|
3070
|
-
},
|
|
3090
|
+
}, ws = { class: "glim-status-heading" }, Ts = { class: "glim-status-list" }, Es = {
|
|
3071
3091
|
key: 5,
|
|
3072
3092
|
class: "glim-status-section",
|
|
3073
3093
|
"data-fortress": "next"
|
|
3074
|
-
},
|
|
3094
|
+
}, Ds = { class: "glim-status-heading" }, Os = { class: "glim-status-list" }, ks = { class: "glim-status-at glim-num" }, As = {
|
|
3075
3095
|
key: 6,
|
|
3076
3096
|
class: "glim-status-section",
|
|
3077
3097
|
"data-fortress": "log"
|
|
3078
|
-
},
|
|
3098
|
+
}, js = { class: "glim-status-heading" }, Ms = { class: "glim-status-list" }, Ns = { class: "glim-status-at glim-num" }, Ps = {
|
|
3079
3099
|
key: 7,
|
|
3080
3100
|
class: "glim-fortress-sub",
|
|
3081
3101
|
"data-fortress": "where"
|
|
3082
|
-
},
|
|
3102
|
+
}, Fs = /* @__PURE__ */ j({
|
|
3083
3103
|
__name: "FortressStatusWindow",
|
|
3084
3104
|
props: {
|
|
3085
3105
|
app: {},
|
|
@@ -3093,7 +3113,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3093
3113
|
onClose: { type: Function }
|
|
3094
3114
|
},
|
|
3095
3115
|
setup(t) {
|
|
3096
|
-
let n = t, r = C(() =>
|
|
3116
|
+
let n = t, r = C(() => Vn({
|
|
3097
3117
|
app: n.app,
|
|
3098
3118
|
instance: n.instance,
|
|
3099
3119
|
report: n.report,
|
|
@@ -3107,7 +3127,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3107
3127
|
glyph: g,
|
|
3108
3128
|
wayOut: !0
|
|
3109
3129
|
}]), a = p("info");
|
|
3110
|
-
return (n, o) => (R(), w(
|
|
3130
|
+
return (n, o) => (R(), w(ha, {
|
|
3111
3131
|
"data-glim": "FortressStatusWindow",
|
|
3112
3132
|
lang: t.lang,
|
|
3113
3133
|
title: r.value.title,
|
|
@@ -3118,22 +3138,22 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3118
3138
|
},
|
|
3119
3139
|
onClose: o[0] ||= (e) => t.onClose()
|
|
3120
3140
|
}, {
|
|
3121
|
-
title: Y(() => [D("span",
|
|
3141
|
+
title: Y(() => [D("span", fs, [t.app.logo ? (R(), E("img", {
|
|
3122
3142
|
key: 0,
|
|
3123
3143
|
src: t.app.logo,
|
|
3124
3144
|
alt: ""
|
|
3125
|
-
}, null, 8,
|
|
3126
|
-
default: Y(() => [D("div",
|
|
3127
|
-
r.value.loading ? (R(), E("p",
|
|
3145
|
+
}, null, 8, ps)) : T("", !0), k(W(r.value.title), 1)])]),
|
|
3146
|
+
default: Y(() => [D("div", ms, [
|
|
3147
|
+
r.value.loading ? (R(), E("p", hs, [A(c, {
|
|
3128
3148
|
size: "small",
|
|
3129
3149
|
delay: 0
|
|
3130
|
-
}), D("span",
|
|
3131
|
-
r.value.error === void 0 ? T("", !0) : (R(), E("p",
|
|
3132
|
-
r.value.state ? (R(), E("p",
|
|
3150
|
+
}), D("span", gs, W(r.value.loading), 1)])) : T("", !0),
|
|
3151
|
+
r.value.error === void 0 ? T("", !0) : (R(), E("p", _s, [G(a) ? (R(), w(H(G(a)), { key: 0 })) : T("", !0), D("span", null, W(r.value.error), 1)])),
|
|
3152
|
+
r.value.state ? (R(), E("p", vs, [A(e, { tone: r.value.state.tone }, {
|
|
3133
3153
|
default: Y(() => [k(W(r.value.state.label), 1)]),
|
|
3134
3154
|
_: 1
|
|
3135
|
-
}, 8, ["tone"]), r.value.quiet ? (R(), E("span",
|
|
3136
|
-
r.value.needsYou.length ? (R(), E("section",
|
|
3155
|
+
}, 8, ["tone"]), r.value.quiet ? (R(), E("span", ys, W(r.value.quiet), 1)) : T("", !0)])) : T("", !0),
|
|
3156
|
+
r.value.needsYou.length ? (R(), E("section", bs, [D("h3", xs, W(t.text.statusNeedsYou), 1), D("ul", Ss, [(R(!0), E(S, null, B(r.value.needsYou, (t, n) => (R(), E("li", {
|
|
3137
3157
|
key: n,
|
|
3138
3158
|
class: "glim-status-line"
|
|
3139
3159
|
}, [
|
|
@@ -3147,26 +3167,26 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3147
3167
|
o[1] ||= k(),
|
|
3148
3168
|
D("span", null, W(t.text), 1)
|
|
3149
3169
|
]))), 128))])])) : T("", !0),
|
|
3150
|
-
r.value.work.length ? (R(), E("section",
|
|
3170
|
+
r.value.work.length ? (R(), E("section", Cs, [D("h3", ws, W(t.text.statusWork), 1), D("ul", Ts, [(R(!0), E(S, null, B(r.value.work, (e, t) => (R(), E("li", {
|
|
3151
3171
|
key: t,
|
|
3152
3172
|
class: "glim-status-work"
|
|
3153
|
-
}, [D("span", null, W(e.title), 1), A(
|
|
3173
|
+
}, [D("span", null, W(e.title), 1), A(ds, {
|
|
3154
3174
|
value: e.progress,
|
|
3155
3175
|
label: e.title
|
|
3156
3176
|
}, null, 8, ["value", "label"])]))), 128))])])) : T("", !0),
|
|
3157
|
-
r.value.next.length ? (R(), E("section",
|
|
3177
|
+
r.value.next.length ? (R(), E("section", Es, [D("h3", Ds, W(t.text.statusNext), 1), D("ul", Os, [(R(!0), E(S, null, B(r.value.next, (e, t) => (R(), E("li", {
|
|
3158
3178
|
key: t,
|
|
3159
3179
|
class: "glim-status-line"
|
|
3160
3180
|
}, [
|
|
3161
3181
|
D("span", null, W(e.title), 1),
|
|
3162
3182
|
o[2] ||= k(),
|
|
3163
|
-
D("span",
|
|
3183
|
+
D("span", ks, W(e.at), 1)
|
|
3164
3184
|
]))), 128))])])) : T("", !0),
|
|
3165
|
-
r.value.log.length ? (R(), E("section",
|
|
3185
|
+
r.value.log.length ? (R(), E("section", As, [D("h3", js, W(t.text.statusLog), 1), D("ul", Ms, [(R(!0), E(S, null, B(r.value.log, (t, n) => (R(), E("li", {
|
|
3166
3186
|
key: n,
|
|
3167
3187
|
class: "glim-status-line"
|
|
3168
3188
|
}, [
|
|
3169
|
-
D("span",
|
|
3189
|
+
D("span", Ns, W(t.at), 1),
|
|
3170
3190
|
o[3] ||= k(),
|
|
3171
3191
|
t.level ? (R(), w(e, {
|
|
3172
3192
|
key: 0,
|
|
@@ -3178,7 +3198,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3178
3198
|
o[4] ||= k(),
|
|
3179
3199
|
D("span", null, W(t.text), 1)
|
|
3180
3200
|
]))), 128))])])) : T("", !0),
|
|
3181
|
-
r.value.where ? (R(), E("p",
|
|
3201
|
+
r.value.where ? (R(), E("p", Ps, W(r.value.where), 1)) : T("", !0)
|
|
3182
3202
|
])]),
|
|
3183
3203
|
_: 1
|
|
3184
3204
|
}, 8, [
|
|
@@ -3188,10 +3208,10 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3188
3208
|
"text"
|
|
3189
3209
|
]));
|
|
3190
3210
|
}
|
|
3191
|
-
}),
|
|
3211
|
+
}), Is = {
|
|
3192
3212
|
class: "glim-glyph-field-glyph",
|
|
3193
3213
|
"aria-hidden": "true"
|
|
3194
|
-
},
|
|
3214
|
+
}, Ls = ["aria-label"], Rs = /* @__PURE__ */ j({
|
|
3195
3215
|
inheritAttrs: !1,
|
|
3196
3216
|
__name: "GlyphField",
|
|
3197
3217
|
props: /*@__PURE__*/ M({
|
|
@@ -3217,7 +3237,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3217
3237
|
]),
|
|
3218
3238
|
style: F(t.$attrs.style)
|
|
3219
3239
|
}, [
|
|
3220
|
-
D("span",
|
|
3240
|
+
D("span", Is, [(R(), w(H(e.glyph)))]),
|
|
3221
3241
|
Re(D("input", N({
|
|
3222
3242
|
ref_key: "input",
|
|
3223
3243
|
ref: o,
|
|
@@ -3228,11 +3248,11 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3228
3248
|
...t.$attrs,
|
|
3229
3249
|
class: void 0,
|
|
3230
3250
|
style: void 0
|
|
3231
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
3251
|
+
}, { class: "glim-glyph-field-input" }), null, 16, Ls), [[Fe, r.value]]),
|
|
3232
3252
|
V(t.$slots, "after")
|
|
3233
3253
|
], 6));
|
|
3234
3254
|
}
|
|
3235
|
-
}),
|
|
3255
|
+
}), zs = /* @__PURE__ */ j({
|
|
3236
3256
|
__name: "GlyphTile",
|
|
3237
3257
|
props: {
|
|
3238
3258
|
glyph: {},
|
|
@@ -3251,17 +3271,17 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3251
3271
|
"aria-hidden": "true"
|
|
3252
3272
|
}, [(R(), w(H(e.glyph)))], 2));
|
|
3253
3273
|
}
|
|
3254
|
-
}),
|
|
3274
|
+
}), Bs = [
|
|
3255
3275
|
"aria-label",
|
|
3256
3276
|
"tabindex",
|
|
3257
3277
|
"onKeydown"
|
|
3258
|
-
],
|
|
3278
|
+
], Vs = {
|
|
3259
3279
|
key: 0,
|
|
3260
3280
|
class: "glim-list-row-tile"
|
|
3261
|
-
},
|
|
3281
|
+
}, Hs = { class: "glim-list-row-title" }, Us = {
|
|
3262
3282
|
key: 1,
|
|
3263
3283
|
class: "glim-list-row-badges"
|
|
3264
|
-
},
|
|
3284
|
+
}, Ws = /* @__PURE__ */ j({
|
|
3265
3285
|
__name: "ListRow",
|
|
3266
3286
|
props: {
|
|
3267
3287
|
name: {},
|
|
@@ -3281,21 +3301,21 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3281
3301
|
class: P(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
3282
3302
|
onKeydown: [ze(X(a, ["self"]), ["enter"]), ze(X(a, ["self"]), ["space"])]
|
|
3283
3303
|
}, [
|
|
3284
|
-
t.$slots.tile ? (R(), E("span",
|
|
3285
|
-
D("span", { class: P(i.value) }, [D("span",
|
|
3304
|
+
t.$slots.tile ? (R(), E("span", Vs, [V(t.$slots, "tile")])) : T("", !0),
|
|
3305
|
+
D("span", { class: P(i.value) }, [D("span", Hs, W(e.name), 1), e.tip ? (R(), E("span", {
|
|
3286
3306
|
key: 0,
|
|
3287
3307
|
class: "glim-list-row-tip",
|
|
3288
3308
|
onClick: n[0] ||= X(() => {}, ["stop"])
|
|
3289
3309
|
}, [A(Q, { tip: e.tip }, null, 8, ["tip"])])) : T("", !0)], 2),
|
|
3290
|
-
t.$slots.badges ? (R(), E("span",
|
|
3310
|
+
t.$slots.badges ? (R(), E("span", Us, [V(t.$slots, "badges")])) : T("", !0),
|
|
3291
3311
|
t.$slots.actions ? (R(), E("span", {
|
|
3292
3312
|
key: 2,
|
|
3293
3313
|
class: "glim-list-row-actions",
|
|
3294
3314
|
onClick: n[1] ||= X(() => {}, ["stop"])
|
|
3295
3315
|
}, [V(t.$slots, "actions")])) : T("", !0)
|
|
3296
|
-
], 42,
|
|
3316
|
+
], 42, Bs));
|
|
3297
3317
|
}
|
|
3298
|
-
}),
|
|
3318
|
+
}), Gs = ["aria-label"], Ks = /* @__PURE__ */ j({
|
|
3299
3319
|
__name: "Popover",
|
|
3300
3320
|
props: {
|
|
3301
3321
|
open: { type: Boolean },
|
|
@@ -3320,24 +3340,24 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3320
3340
|
role: "dialog",
|
|
3321
3341
|
"aria-label": e.label,
|
|
3322
3342
|
class: "glim-popover"
|
|
3323
|
-
}, [V(t.$slots, "default")], 8,
|
|
3343
|
+
}, [V(t.$slots, "default")], 8, Gs)) : T("", !0);
|
|
3324
3344
|
}
|
|
3325
|
-
}),
|
|
3345
|
+
}), qs = {
|
|
3326
3346
|
"data-glim": "ListTable",
|
|
3327
3347
|
class: "glim-list"
|
|
3328
|
-
},
|
|
3348
|
+
}, Js = ["aria-label", "onKeydown"], Ys = ["aria-label", "aria-describedby"], Xs = ["aria-sort"], Zs = { class: "glim-list-th-box" }, Qs = ["onClick"], $s = [
|
|
3329
3349
|
"aria-label",
|
|
3330
3350
|
"aria-expanded",
|
|
3331
3351
|
"aria-pressed",
|
|
3332
3352
|
"onClick"
|
|
3333
|
-
],
|
|
3353
|
+
], ec = [
|
|
3334
3354
|
"aria-selected",
|
|
3335
3355
|
"onClick",
|
|
3336
3356
|
"onDblclick"
|
|
3337
|
-
],
|
|
3357
|
+
], tc = ["tabindex"], nc = {
|
|
3338
3358
|
key: 1,
|
|
3339
3359
|
class: "glim-list-empty"
|
|
3340
|
-
},
|
|
3360
|
+
}, rc = ["id"], ic = { class: "glim-list-filter-values" }, ac = /* @__PURE__ */ j({
|
|
3341
3361
|
__name: "ListTable",
|
|
3342
3362
|
props: {
|
|
3343
3363
|
label: {},
|
|
@@ -3385,7 +3405,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3385
3405
|
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));
|
|
3386
3406
|
}
|
|
3387
3407
|
function ee(e, t) {
|
|
3388
|
-
_(
|
|
3408
|
+
_(Dn(h.value, t, {
|
|
3389
3409
|
toggle: e.ctrlKey || e.metaKey,
|
|
3390
3410
|
range: e.shiftKey
|
|
3391
3411
|
}));
|
|
@@ -3408,7 +3428,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3408
3428
|
};
|
|
3409
3429
|
}
|
|
3410
3430
|
let ie = (e, t) => String(e[t] ?? "");
|
|
3411
|
-
return (t, n) => (R(), E("div",
|
|
3431
|
+
return (t, n) => (R(), E("div", qs, [
|
|
3412
3432
|
o.value === null ? T("", !0) : Re((R(), E("input", {
|
|
3413
3433
|
key: 0,
|
|
3414
3434
|
ref_key: "searchField",
|
|
@@ -3418,7 +3438,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3418
3438
|
type: "search",
|
|
3419
3439
|
"aria-label": e.text.search,
|
|
3420
3440
|
onKeydown: ze(X(te, ["prevent", "stop"]), ["esc"])
|
|
3421
|
-
}, null, 40,
|
|
3441
|
+
}, null, 40, Js)), [[Fe, o.value]]),
|
|
3422
3442
|
D("table", {
|
|
3423
3443
|
ref_key: "grid",
|
|
3424
3444
|
ref: l,
|
|
@@ -3432,7 +3452,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3432
3452
|
scope: "col",
|
|
3433
3453
|
"aria-sort": G($e)(i.value, t.key),
|
|
3434
3454
|
class: P(t.end ? "glim-list-th glim-table-end" : "glim-list-th")
|
|
3435
|
-
}, [D("span",
|
|
3455
|
+
}, [D("span", Zs, [D("button", {
|
|
3436
3456
|
type: "button",
|
|
3437
3457
|
class: "glim-list-sort",
|
|
3438
3458
|
onClick: (e) => i.value = G(Ut)(i.value, t.key)
|
|
@@ -3440,7 +3460,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3440
3460
|
key: 0,
|
|
3441
3461
|
mark: G(Ke).expand,
|
|
3442
3462
|
class: P(`glim-list-sort-mark glim-list-sort-mark--${i.value.dir}`)
|
|
3443
|
-
}, null, 8, ["mark", "class"])) : T("", !0)], 8,
|
|
3463
|
+
}, null, 8, ["mark", "class"])) : T("", !0)], 8, Qs), t.filter ? (R(), E("button", {
|
|
3444
3464
|
key: 0,
|
|
3445
3465
|
type: "button",
|
|
3446
3466
|
"aria-label": e.text.filterOf(t.label),
|
|
@@ -3449,7 +3469,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3449
3469
|
"aria-pressed": ne(t.key).length > 0,
|
|
3450
3470
|
class: "glim-list-filter",
|
|
3451
3471
|
onClick: (e) => re(t.key, e.currentTarget)
|
|
3452
|
-
}, [A(G(m), { mark: G(Ke).expand }, null, 8, ["mark"])], 8,
|
|
3472
|
+
}, [A(G(m), { mark: G(Ke).expand }, null, 8, ["mark"])], 8, $s)) : T("", !0)])], 10, Xs))), 128))])]), D("tbody", { onKeydown: v }, [(R(!0), E(S, null, B(f.value, (n, i) => (R(), E("tr", {
|
|
3453
3473
|
key: p.value[i],
|
|
3454
3474
|
"aria-selected": h.value.selected.includes(i),
|
|
3455
3475
|
class: "glim-list-tr",
|
|
@@ -3458,24 +3478,24 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3458
3478
|
}, [(R(!0), E(S, null, B(e.columns, (e, r) => (R(), E("td", {
|
|
3459
3479
|
key: e.key,
|
|
3460
3480
|
tabindex: r === 0 ? i === h.value.focus ? 0 : -1 : void 0,
|
|
3461
|
-
class: P(G(
|
|
3481
|
+
class: P(G(Kn)(e) || void 0)
|
|
3462
3482
|
}, [V(t.$slots, "cell", {
|
|
3463
3483
|
row: n,
|
|
3464
3484
|
column: e
|
|
3465
|
-
}, () => [k(W(ie(n, e.key)), 1)])], 10,
|
|
3466
|
-
f.value.length === 0 ? (R(), E("p",
|
|
3485
|
+
}, () => [k(W(ie(n, e.key)), 1)])], 10, tc))), 128))], 40, ec))), 128))], 32)], 8, Ys),
|
|
3486
|
+
f.value.length === 0 ? (R(), E("p", nc, W(e.text.noMatch), 1)) : T("", !0),
|
|
3467
3487
|
D("p", {
|
|
3468
3488
|
id: G(d),
|
|
3469
3489
|
class: "glim-list-hint"
|
|
3470
|
-
}, W(e.text.hint), 9,
|
|
3471
|
-
y.value ? (R(), w(
|
|
3490
|
+
}, W(e.text.hint), 9, rc),
|
|
3491
|
+
y.value ? (R(), w(Ks, {
|
|
3472
3492
|
key: 2,
|
|
3473
3493
|
open: !0,
|
|
3474
3494
|
anchor: c.value.at,
|
|
3475
3495
|
label: e.text.filterOf(y.value.label),
|
|
3476
3496
|
onClose: n[1] ||= (e) => c.value = null
|
|
3477
3497
|
}, {
|
|
3478
|
-
default: Y(() => [D("div",
|
|
3498
|
+
default: Y(() => [D("div", ic, [(R(!0), E(S, null, B(G(it)(e.rows, y.value.key), (e) => (R(), w(Wr, {
|
|
3479
3499
|
key: e,
|
|
3480
3500
|
label: e,
|
|
3481
3501
|
"model-value": ne(y.value.key).includes(e),
|
|
@@ -3489,14 +3509,14 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3489
3509
|
}, 8, ["anchor", "label"])) : T("", !0)
|
|
3490
3510
|
]));
|
|
3491
3511
|
}
|
|
3492
|
-
}),
|
|
3512
|
+
}), oc = ["aria-label"], sc = [
|
|
3493
3513
|
"aria-expanded",
|
|
3494
3514
|
"tabindex",
|
|
3495
3515
|
"onClick",
|
|
3496
3516
|
"onMouseenter",
|
|
3497
3517
|
"onKeydown",
|
|
3498
3518
|
"onFocus"
|
|
3499
|
-
],
|
|
3519
|
+
], cc = /* @__PURE__ */ j({
|
|
3500
3520
|
__name: "MenuBar",
|
|
3501
3521
|
props: {
|
|
3502
3522
|
label: {},
|
|
@@ -3550,7 +3570,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3550
3570
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
3551
3571
|
onKeydown: (e) => l(e, t),
|
|
3552
3572
|
onFocus: (e) => a.value = t
|
|
3553
|
-
}, W(e.label), 41,
|
|
3573
|
+
}, W(e.label), 41, sc))), 128)), i.value && e.menus[i.value.at] ? (R(), w(Oi, {
|
|
3554
3574
|
key: i.value.at,
|
|
3555
3575
|
x: i.value.x,
|
|
3556
3576
|
y: i.value.y,
|
|
@@ -3569,9 +3589,9 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3569
3589
|
"id",
|
|
3570
3590
|
"opener",
|
|
3571
3591
|
"from-end"
|
|
3572
|
-
])) : T("", !0)], 8,
|
|
3592
|
+
])) : T("", !0)], 8, oc));
|
|
3573
3593
|
}
|
|
3574
|
-
}),
|
|
3594
|
+
}), lc = [
|
|
3575
3595
|
"role",
|
|
3576
3596
|
"aria-label",
|
|
3577
3597
|
"aria-valuemin",
|
|
@@ -3579,7 +3599,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3579
3599
|
"aria-valuenow",
|
|
3580
3600
|
"aria-valuetext",
|
|
3581
3601
|
"aria-busy"
|
|
3582
|
-
],
|
|
3602
|
+
], uc = /* @__PURE__ */ j({
|
|
3583
3603
|
inheritAttrs: !1,
|
|
3584
3604
|
__name: "Meter",
|
|
3585
3605
|
props: {
|
|
@@ -3614,16 +3634,16 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3614
3634
|
}), [D("span", {
|
|
3615
3635
|
class: "glim-meter-fill",
|
|
3616
3636
|
style: F(i.value.width ? { width: i.value.width } : void 0)
|
|
3617
|
-
}, null, 4)], 16,
|
|
3637
|
+
}, null, 4)], 16, lc), A(t, { state: G(o) }, null, 8, ["state"])], 64));
|
|
3618
3638
|
}
|
|
3619
|
-
}),
|
|
3639
|
+
}), dc = {
|
|
3620
3640
|
"data-glim": "NumberField",
|
|
3621
3641
|
class: "glim-num-wrap"
|
|
3622
|
-
},
|
|
3642
|
+
}, fc = [
|
|
3623
3643
|
"aria-label",
|
|
3624
3644
|
"aria-invalid",
|
|
3625
3645
|
"aria-describedby"
|
|
3626
|
-
],
|
|
3646
|
+
], pc = /* @__PURE__ */ j({
|
|
3627
3647
|
inheritAttrs: !1,
|
|
3628
3648
|
__name: "NumberField",
|
|
3629
3649
|
props: /*@__PURE__*/ M({ error: {} }, {
|
|
@@ -3648,13 +3668,13 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3648
3668
|
() => r.disabled,
|
|
3649
3669
|
() => r.readonly
|
|
3650
3670
|
], () => {
|
|
3651
|
-
l(n.value), s.value &&
|
|
3671
|
+
l(n.value), s.value && Gn(s.value);
|
|
3652
3672
|
}, { flush: "post" });
|
|
3653
3673
|
function u(e) {
|
|
3654
3674
|
let t = e.target;
|
|
3655
3675
|
n.value = t.value === "" ? null : t.valueAsNumber;
|
|
3656
3676
|
}
|
|
3657
|
-
return (t, n) => (R(), E(S, null, [D("span",
|
|
3677
|
+
return (t, n) => (R(), E(S, null, [D("span", dc, [D("input", N(t.$attrs, {
|
|
3658
3678
|
ref_key: "input",
|
|
3659
3679
|
ref: s,
|
|
3660
3680
|
"aria-label": G(i),
|
|
@@ -3663,7 +3683,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3663
3683
|
type: "number",
|
|
3664
3684
|
class: "glim-num-input glim-num-field glim-num",
|
|
3665
3685
|
onInput: u
|
|
3666
|
-
}), null, 16,
|
|
3686
|
+
}), null, 16, fc)]), o.value.errorId ? (R(), w(ra, {
|
|
3667
3687
|
key: 0,
|
|
3668
3688
|
id: o.value.errorId
|
|
3669
3689
|
}, {
|
|
@@ -3671,7 +3691,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3671
3691
|
_: 1
|
|
3672
3692
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
3673
3693
|
}
|
|
3674
|
-
}),
|
|
3694
|
+
}), mc = ["aria-label", "disabled"], hc = /* @__PURE__ */ j({
|
|
3675
3695
|
inheritAttrs: !1,
|
|
3676
3696
|
__name: "PathField",
|
|
3677
3697
|
props: /*@__PURE__*/ M({
|
|
@@ -3725,7 +3745,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3725
3745
|
}, {
|
|
3726
3746
|
disabled: e.disabled,
|
|
3727
3747
|
class: "glim-input glim-input--mono"
|
|
3728
|
-
}), null, 16,
|
|
3748
|
+
}), null, 16, mc), [[Fe, i.value]]), A(f, N(e.buttonAttrs, {
|
|
3729
3749
|
variant: "icon",
|
|
3730
3750
|
label: e.text.pick,
|
|
3731
3751
|
"label-key": null,
|
|
@@ -3740,27 +3760,27 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3740
3760
|
"disabled"
|
|
3741
3761
|
])], 6));
|
|
3742
3762
|
}
|
|
3743
|
-
}),
|
|
3763
|
+
}), gc = ["data-glim-title"], _c = { class: "glim-modal-head" }, vc = {
|
|
3744
3764
|
id: "paypal-window-title",
|
|
3745
3765
|
class: "glim-modal-title"
|
|
3746
|
-
},
|
|
3766
|
+
}, yc = { class: "glim-give-body glim-give-body--scroll" }, bc = { class: "glim-give-appeal" }, xc = { class: "glim-give-intro" }, Sc = { class: "glim-give-group" }, Cc = {
|
|
3747
3767
|
id: "paypal-frequency",
|
|
3748
3768
|
class: "glim-eyebrow"
|
|
3749
|
-
},
|
|
3769
|
+
}, wc = { class: "glim-give-group" }, Tc = {
|
|
3750
3770
|
id: "paypal-amount",
|
|
3751
3771
|
class: "glim-eyebrow"
|
|
3752
|
-
},
|
|
3772
|
+
}, Ec = { class: "glim-give-amounts" }, Dc = [
|
|
3753
3773
|
"value",
|
|
3754
3774
|
"placeholder",
|
|
3755
3775
|
"aria-label",
|
|
3756
3776
|
"aria-invalid"
|
|
3757
|
-
],
|
|
3777
|
+
], Oc = { class: "glim-give-loading" }, kc = {
|
|
3758
3778
|
key: 0,
|
|
3759
3779
|
class: "glim-give-status glim-give-status--ok"
|
|
3760
|
-
},
|
|
3780
|
+
}, Ac = {
|
|
3761
3781
|
key: 1,
|
|
3762
3782
|
class: "glim-give-status glim-give-status--fail"
|
|
3763
|
-
},
|
|
3783
|
+
}, jc = { class: "glim-give-foot" }, Mc = /* @__PURE__ */ j({
|
|
3764
3784
|
__name: "PaypalDialog",
|
|
3765
3785
|
props: {
|
|
3766
3786
|
text: {},
|
|
@@ -3801,7 +3821,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3801
3821
|
"aria-labelledby": "paypal-window-title",
|
|
3802
3822
|
class: "glim-modal-card glim-modal-card--wide"
|
|
3803
3823
|
}, [
|
|
3804
|
-
D("div",
|
|
3824
|
+
D("div", _c, [D("h2", vc, [A(e, {
|
|
3805
3825
|
tone: "heading",
|
|
3806
3826
|
size: "heading",
|
|
3807
3827
|
wrap: ""
|
|
@@ -3809,10 +3829,10 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3809
3829
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
3810
3830
|
_: 1
|
|
3811
3831
|
})])]),
|
|
3812
|
-
D("div",
|
|
3813
|
-
D("p",
|
|
3814
|
-
D("p",
|
|
3815
|
-
D("div",
|
|
3832
|
+
D("div", yc, [
|
|
3833
|
+
D("p", bc, W(t.text.appeal), 1),
|
|
3834
|
+
D("p", xc, W(t.text.intro), 1),
|
|
3835
|
+
D("div", Sc, [D("span", Cc, W(t.text.frequencyLabel), 1), V(n.$slots, "selector", {
|
|
3816
3836
|
labelledBy: "paypal-frequency",
|
|
3817
3837
|
options: a.map((e) => ({
|
|
3818
3838
|
value: e,
|
|
@@ -3821,7 +3841,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3821
3841
|
value: t.frequency,
|
|
3822
3842
|
onChange: s
|
|
3823
3843
|
})]),
|
|
3824
|
-
D("div",
|
|
3844
|
+
D("div", wc, [D("span", Tc, W(t.text.amountLabel), 1), D("div", Ec, [D("div", null, [V(n.$slots, "selector", {
|
|
3825
3845
|
labelledBy: "paypal-amount",
|
|
3826
3846
|
options: t.amounts.map((e) => ({
|
|
3827
3847
|
value: e,
|
|
@@ -3838,29 +3858,29 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3838
3858
|
"aria-invalid": t.typed !== "" && !t.typedValid,
|
|
3839
3859
|
class: P(t.typedValid ? "glim-give-amount glim-give-amount--valid" : "glim-give-amount"),
|
|
3840
3860
|
onInput: l
|
|
3841
|
-
}, null, 42,
|
|
3861
|
+
}, null, 42, Dc)])]),
|
|
3842
3862
|
D("div", {
|
|
3843
3863
|
ref: t.buttonsRef,
|
|
3844
3864
|
class: "glim-give-wallet"
|
|
3845
|
-
}, [D("p",
|
|
3846
|
-
t.status === "done" ? (R(), E("p",
|
|
3847
|
-
t.status === "failed" ? (R(), E("p",
|
|
3865
|
+
}, [D("p", Oc, W(t.text.loading), 1)], 512),
|
|
3866
|
+
t.status === "done" ? (R(), E("p", kc, W(t.text.thanks), 1)) : T("", !0),
|
|
3867
|
+
t.status === "failed" ? (R(), E("p", Ac, W(t.text.failed), 1)) : T("", !0)
|
|
3848
3868
|
]),
|
|
3849
|
-
D("div",
|
|
3869
|
+
D("div", jc, [A(f, {
|
|
3850
3870
|
label: t.text.closeLabel,
|
|
3851
3871
|
"label-key": "common.close",
|
|
3852
3872
|
tone: "neutral",
|
|
3853
3873
|
onClick: r[0] ||= (e) => i("close")
|
|
3854
3874
|
}, null, 8, ["label"])])
|
|
3855
|
-
], 8,
|
|
3875
|
+
], 8, gc)]));
|
|
3856
3876
|
}
|
|
3857
|
-
}),
|
|
3877
|
+
}), Nc = {
|
|
3858
3878
|
key: 0,
|
|
3859
3879
|
class: "glim-pick-none"
|
|
3860
|
-
},
|
|
3880
|
+
}, Pc = {
|
|
3861
3881
|
key: 0,
|
|
3862
|
-
class: "glim-eyebrow"
|
|
3863
|
-
},
|
|
3882
|
+
class: "glim-pick-eyebrow"
|
|
3883
|
+
}, Fc = { class: "glim-eyebrow" }, Ic = { class: "glim-provider-pick" }, Lc = /* @__PURE__ */ j({
|
|
3864
3884
|
__name: "PickerWindow",
|
|
3865
3885
|
props: {
|
|
3866
3886
|
title: {},
|
|
@@ -3869,77 +3889,78 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3869
3889
|
groups: { default: () => [] },
|
|
3870
3890
|
text: {},
|
|
3871
3891
|
actions: { default: () => [] },
|
|
3872
|
-
start: {}
|
|
3892
|
+
start: {},
|
|
3893
|
+
selected: {}
|
|
3873
3894
|
},
|
|
3874
3895
|
emits: [
|
|
3875
3896
|
"pick",
|
|
3876
3897
|
"back",
|
|
3877
3898
|
"close"
|
|
3878
3899
|
],
|
|
3879
|
-
setup(
|
|
3880
|
-
let
|
|
3900
|
+
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 = cn(), d = U(null), f = () => !!a.default, p = !1;
|
|
3881
3902
|
L(() => {
|
|
3882
|
-
|
|
3903
|
+
p = f(), d.value && St(d.value), r.selected && s.value?.card && tn(s.value.card, d.value)?.focus();
|
|
3883
3904
|
}), Oe(() => {
|
|
3884
|
-
|
|
3905
|
+
f() !== p && (p = f(), d.value && St(d.value), s.value?.card && tn(s.value.card, d.value)?.focus());
|
|
3885
3906
|
});
|
|
3886
|
-
let
|
|
3887
|
-
label:
|
|
3907
|
+
let m = C(() => ({
|
|
3908
|
+
label: r.text.back,
|
|
3888
3909
|
labelKey: "common.back",
|
|
3889
3910
|
glyph: ue,
|
|
3890
|
-
onClick: () => (
|
|
3891
|
-
})),
|
|
3892
|
-
label:
|
|
3911
|
+
onClick: () => (i("back"), !1)
|
|
3912
|
+
})), h = () => f() ? [m.value, ...r.actions] : [{
|
|
3913
|
+
label: r.text.close,
|
|
3893
3914
|
labelKey: "common.close",
|
|
3894
3915
|
glyph: g,
|
|
3895
3916
|
wayOut: !0
|
|
3896
|
-
}],
|
|
3917
|
+
}], _ = C(() => an(r.items, r.groups, o.value, Qt())), v = (e, t) => {
|
|
3897
3918
|
t && (e.preventDefault(), e.stopPropagation());
|
|
3898
3919
|
};
|
|
3899
|
-
function
|
|
3900
|
-
|
|
3920
|
+
function ee() {
|
|
3921
|
+
o.value = "", l()?.focus();
|
|
3901
3922
|
}
|
|
3902
|
-
let
|
|
3903
|
-
e.target !== e.currentTarget &&
|
|
3923
|
+
let te = (e) => v(e, rn(e.key, o.value, d.value, () => o.value = "")), ne = (e) => {
|
|
3924
|
+
e.target !== e.currentTarget && v(e, on(e.key, e.target, e.currentTarget, l()));
|
|
3904
3925
|
};
|
|
3905
|
-
return (
|
|
3926
|
+
return (n, r) => (R(), w(ha, {
|
|
3906
3927
|
ref_key: "win",
|
|
3907
|
-
ref:
|
|
3928
|
+
ref: s,
|
|
3908
3929
|
"data-glim": "PickerWindow",
|
|
3909
|
-
title:
|
|
3930
|
+
title: t.title,
|
|
3910
3931
|
class: P(["glim-pick-window", {
|
|
3911
|
-
"glim-pick-window--form":
|
|
3912
|
-
"glim-hue": G(
|
|
3932
|
+
"glim-pick-window--form": f(),
|
|
3933
|
+
"glim-hue": G(u)
|
|
3913
3934
|
}]),
|
|
3914
|
-
style: F(G(
|
|
3935
|
+
style: F(G(u) ?? void 0),
|
|
3915
3936
|
text: {
|
|
3916
|
-
cancel:
|
|
3917
|
-
close:
|
|
3937
|
+
cancel: t.text.cancel,
|
|
3938
|
+
close: t.text.close
|
|
3918
3939
|
},
|
|
3919
|
-
start:
|
|
3920
|
-
"close-on-backdrop": !
|
|
3921
|
-
actions:
|
|
3922
|
-
onClose:
|
|
3940
|
+
start: t.start,
|
|
3941
|
+
"close-on-backdrop": !f(),
|
|
3942
|
+
actions: h(),
|
|
3943
|
+
onClose: r[1] ||= (e) => i("close")
|
|
3923
3944
|
}, O({
|
|
3924
|
-
default: Y(() => [
|
|
3945
|
+
default: Y(() => [f() ? V(n.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A(Rs, {
|
|
3925
3946
|
ref_key: "field",
|
|
3926
|
-
ref:
|
|
3927
|
-
modelValue:
|
|
3928
|
-
"onUpdate:modelValue":
|
|
3947
|
+
ref: c,
|
|
3948
|
+
modelValue: o.value,
|
|
3949
|
+
"onUpdate:modelValue": r[0] ||= (e) => o.value = e,
|
|
3929
3950
|
class: "glim-pick-search",
|
|
3930
3951
|
glyph: G(y),
|
|
3931
3952
|
type: "search",
|
|
3932
|
-
label:
|
|
3933
|
-
placeholder:
|
|
3953
|
+
label: t.text.search,
|
|
3954
|
+
placeholder: t.text.search,
|
|
3934
3955
|
spellcheck: "false",
|
|
3935
3956
|
autocomplete: "off",
|
|
3936
|
-
onKeydown:
|
|
3937
|
-
}, O({ _: 2 }, [
|
|
3957
|
+
onKeydown: te
|
|
3958
|
+
}, O({ _: 2 }, [o.value ? {
|
|
3938
3959
|
name: "after",
|
|
3939
3960
|
fn: Y(() => [A(xe, {
|
|
3940
|
-
tip:
|
|
3961
|
+
tip: t.text.clear,
|
|
3941
3962
|
glyph: G(g),
|
|
3942
|
-
onClick:
|
|
3963
|
+
onClick: ee
|
|
3943
3964
|
}, null, 8, ["tip", "glyph"])]),
|
|
3944
3965
|
key: "0"
|
|
3945
3966
|
} : void 0]), 1032, [
|
|
@@ -3949,47 +3970,66 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
3949
3970
|
"placeholder"
|
|
3950
3971
|
]), D("div", {
|
|
3951
3972
|
ref_key: "scroll",
|
|
3952
|
-
ref:
|
|
3973
|
+
ref: d,
|
|
3953
3974
|
class: "glim-pick-scroll",
|
|
3954
|
-
onKeydown:
|
|
3955
|
-
}, [
|
|
3956
|
-
key:
|
|
3975
|
+
onKeydown: ne
|
|
3976
|
+
}, [_.value.length === 0 ? (R(), E("p", Nc, W(G(Z)(t.text.none, { query: o.value.trim() })), 1)) : (R(!0), E(S, { key: 1 }, B(_.value, (n) => (R(), E("section", {
|
|
3977
|
+
key: n.id,
|
|
3957
3978
|
class: "glim-pick-section"
|
|
3958
|
-
}, [
|
|
3979
|
+
}, [n.title ? (R(), E("div", Pc, [
|
|
3980
|
+
D("h3", Fc, W(n.title), 1),
|
|
3981
|
+
n.badge ? (R(), w(e, {
|
|
3982
|
+
key: 0,
|
|
3983
|
+
size: "small",
|
|
3984
|
+
tone: n.badge.tone
|
|
3985
|
+
}, {
|
|
3986
|
+
default: Y(() => [k(W(n.badge.label), 1)]),
|
|
3987
|
+
_: 2
|
|
3988
|
+
}, 1032, ["tone"])) : T("", !0),
|
|
3989
|
+
n.hint ? (R(), w(Q, {
|
|
3990
|
+
key: 1,
|
|
3991
|
+
tip: n.hint
|
|
3992
|
+
}, null, 8, ["tip"])) : T("", !0)
|
|
3993
|
+
])) : T("", !0), D("ul", Ic, [(R(!0), E(S, null, B(n.items, (e) => (R(), E("li", {
|
|
3959
3994
|
key: e.id,
|
|
3960
|
-
style: F(G(
|
|
3995
|
+
style: F(G(sn)(e.mark))
|
|
3961
3996
|
}, [A($, {
|
|
3962
3997
|
brand: "house",
|
|
3963
3998
|
parts: [{
|
|
3964
3999
|
name: e.label,
|
|
3965
4000
|
sub: e.sub,
|
|
3966
|
-
onClick: () =>
|
|
4001
|
+
onClick: e.status ? void 0 : () => i("pick", e.id)
|
|
3967
4002
|
}],
|
|
3968
|
-
"
|
|
4003
|
+
"soon-label": e.status,
|
|
4004
|
+
current: e.id === t.selected,
|
|
4005
|
+
"mark-class": G(nn)(e.mark),
|
|
3969
4006
|
hint: e.hint,
|
|
3970
4007
|
tip: e.tip
|
|
3971
4008
|
}, O({ _: 2 }, [e.mark ? {
|
|
3972
4009
|
name: "mark",
|
|
3973
|
-
fn: Y(() => [G(Tt)(e.mark) ? (R(), w(
|
|
4010
|
+
fn: Y(() => [G(Tt)(e.mark) ? (R(), w(Br, {
|
|
3974
4011
|
key: 0,
|
|
3975
|
-
svg: e.mark.svg
|
|
3976
|
-
|
|
4012
|
+
svg: e.mark.svg,
|
|
4013
|
+
hover: e.mark.hover
|
|
4014
|
+
}, null, 8, ["svg", "hover"])) : (R(), w(H(e.mark), { key: 1 }))]),
|
|
3977
4015
|
key: "0"
|
|
3978
4016
|
} : void 0]), 1032, [
|
|
3979
4017
|
"parts",
|
|
4018
|
+
"soon-label",
|
|
4019
|
+
"current",
|
|
3980
4020
|
"mark-class",
|
|
3981
4021
|
"hint",
|
|
3982
4022
|
"tip"
|
|
3983
4023
|
])], 4))), 128))])]))), 128))], 544)], 64))]),
|
|
3984
4024
|
_: 2
|
|
3985
|
-
}, [
|
|
4025
|
+
}, [n.$slots.start ? {
|
|
3986
4026
|
name: "start",
|
|
3987
|
-
fn: Y(() => [V(
|
|
4027
|
+
fn: Y(() => [V(n.$slots, "start")]),
|
|
3988
4028
|
key: "0"
|
|
3989
|
-
} : void 0,
|
|
4029
|
+
} : void 0, t.hint ? {
|
|
3990
4030
|
name: "title",
|
|
3991
|
-
fn: Y(() => [k(W(
|
|
3992
|
-
tip:
|
|
4031
|
+
fn: Y(() => [k(W(t.title), 1), A(Q, {
|
|
4032
|
+
tip: t.hint,
|
|
3993
4033
|
"on-accent": ""
|
|
3994
4034
|
}, null, 8, ["tip"])]),
|
|
3995
4035
|
key: "1"
|
|
@@ -4003,7 +4043,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4003
4043
|
"actions"
|
|
4004
4044
|
]));
|
|
4005
4045
|
}
|
|
4006
|
-
}),
|
|
4046
|
+
}), Rc = /* @__PURE__ */ j({
|
|
4007
4047
|
__name: "RowMark",
|
|
4008
4048
|
props: { on: { type: Boolean } },
|
|
4009
4049
|
setup(e) {
|
|
@@ -4013,7 +4053,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4013
4053
|
"aria-hidden": "true"
|
|
4014
4054
|
}, [A(G(b))], 2));
|
|
4015
4055
|
}
|
|
4016
|
-
}),
|
|
4056
|
+
}), zc = { class: "glim-sr-only" }, Bc = /* @__PURE__ */ j({
|
|
4017
4057
|
inheritAttrs: !1,
|
|
4018
4058
|
__name: "SidebarRowLink",
|
|
4019
4059
|
props: {
|
|
@@ -4048,7 +4088,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4048
4088
|
e.view.countClass && e.count ? (R(), E(S, { key: 1 }, [D("span", {
|
|
4049
4089
|
class: P(e.view.countClass),
|
|
4050
4090
|
"aria-hidden": "true"
|
|
4051
|
-
}, W(e.count.value), 3), D("span",
|
|
4091
|
+
}, W(e.count.value), 3), D("span", zc, W(e.count.label), 1)], 64)) : T("", !0)
|
|
4052
4092
|
]),
|
|
4053
4093
|
_: 1
|
|
4054
4094
|
}, 16, [
|
|
@@ -4063,13 +4103,13 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4063
4103
|
"onBlur"
|
|
4064
4104
|
])), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
4065
4105
|
}
|
|
4066
|
-
}),
|
|
4106
|
+
}), Vc = {
|
|
4067
4107
|
key: 0,
|
|
4068
4108
|
class: "glim-nav-row-slot"
|
|
4069
|
-
},
|
|
4109
|
+
}, Hc = {
|
|
4070
4110
|
key: 1,
|
|
4071
4111
|
class: "glim-nav-row-slot"
|
|
4072
|
-
},
|
|
4112
|
+
}, Uc = /* @__PURE__ */ j({
|
|
4073
4113
|
inheritAttrs: !1,
|
|
4074
4114
|
__name: "SidebarRow",
|
|
4075
4115
|
props: {
|
|
@@ -4085,7 +4125,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4085
4125
|
depth: {}
|
|
4086
4126
|
},
|
|
4087
4127
|
setup(e) {
|
|
4088
|
-
let t = e, n = l("sidebar"), r = Ne(), i = C(() =>
|
|
4128
|
+
let t = e, n = l("sidebar"), r = Ne(), i = C(() => Fn({
|
|
4089
4129
|
mode: n.value,
|
|
4090
4130
|
label: t.label,
|
|
4091
4131
|
hasGlyph: !!t.glyph,
|
|
@@ -4112,15 +4152,15 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4112
4152
|
]),
|
|
4113
4153
|
style: F([i.value.style, e.$attrs.style])
|
|
4114
4154
|
}, [
|
|
4115
|
-
e.$slots.before ? (R(), E("span",
|
|
4116
|
-
A(
|
|
4155
|
+
e.$slots.before ? (R(), E("span", Vc, [V(e.$slots, "before")])) : T("", !0),
|
|
4156
|
+
A(Bc, N({
|
|
4117
4157
|
...e.$attrs,
|
|
4118
4158
|
...a.value,
|
|
4119
4159
|
class: void 0,
|
|
4120
4160
|
style: void 0
|
|
4121
4161
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
4122
|
-
e.$slots.after ? (R(), E("span",
|
|
4123
|
-
], 6)) : (R(), w(
|
|
4162
|
+
e.$slots.after ? (R(), E("span", Hc, [V(e.$slots, "after")])) : T("", !0)
|
|
4163
|
+
], 6)) : (R(), w(Bc, N({
|
|
4124
4164
|
key: 1,
|
|
4125
4165
|
"data-glim": "SidebarRow"
|
|
4126
4166
|
}, {
|
|
@@ -4137,7 +4177,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4137
4177
|
"style"
|
|
4138
4178
|
]));
|
|
4139
4179
|
}
|
|
4140
|
-
}),
|
|
4180
|
+
}), Wc = ["data-glim-title", "aria-labelledby"], Gc = { class: "glim-sheet-panel" }, Kc = ["id"], qc = { class: "glim-sheet-body" }, Jc = /* @__PURE__ */ j({
|
|
4141
4181
|
__name: "Sheet",
|
|
4142
4182
|
props: {
|
|
4143
4183
|
open: { type: Boolean },
|
|
@@ -4159,7 +4199,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4159
4199
|
ref: o,
|
|
4160
4200
|
"aria-labelledby": G(s),
|
|
4161
4201
|
class: "glim-sheet"
|
|
4162
|
-
}, [D("div",
|
|
4202
|
+
}, [D("div", Gc, [
|
|
4163
4203
|
D("h2", {
|
|
4164
4204
|
id: G(s),
|
|
4165
4205
|
class: "glim-sheet-title"
|
|
@@ -4171,9 +4211,9 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4171
4211
|
}, {
|
|
4172
4212
|
default: Y(() => [k(W(t.title), 1)]),
|
|
4173
4213
|
_: 1
|
|
4174
|
-
})], 8,
|
|
4175
|
-
D("div",
|
|
4176
|
-
A(
|
|
4214
|
+
})], 8, Kc),
|
|
4215
|
+
D("div", qc, [V(n.$slots, "default")]),
|
|
4216
|
+
A(da, {
|
|
4177
4217
|
actions: t.actions,
|
|
4178
4218
|
start: t.start,
|
|
4179
4219
|
"has-start": c.value,
|
|
@@ -4189,12 +4229,12 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4189
4229
|
"has-start",
|
|
4190
4230
|
"text"
|
|
4191
4231
|
])
|
|
4192
|
-
])], 8,
|
|
4232
|
+
])], 8, Wc)) : T("", !0);
|
|
4193
4233
|
}
|
|
4194
|
-
}),
|
|
4234
|
+
}), Yc = {
|
|
4195
4235
|
"data-glim": "SignInField",
|
|
4196
4236
|
class: "glim-signin-field"
|
|
4197
|
-
},
|
|
4237
|
+
}, Xc = ["for"], Zc = /* @__PURE__ */ j({
|
|
4198
4238
|
__name: "SignInField",
|
|
4199
4239
|
props: {
|
|
4200
4240
|
label: {},
|
|
@@ -4205,19 +4245,19 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4205
4245
|
let t = e, n = z(!1), r = (e) => {
|
|
4206
4246
|
n.value = kt(document.getElementById(t.for), t.label, t.hint, e);
|
|
4207
4247
|
};
|
|
4208
|
-
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div",
|
|
4248
|
+
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div", Yc, [D("label", {
|
|
4209
4249
|
for: t.$props.for,
|
|
4210
4250
|
class: P(n.value ? "glim-sr-only" : "glim-signin-label")
|
|
4211
4251
|
}, [k(W(e.label), 1), e.hint ? (R(), w(Q, {
|
|
4212
4252
|
key: 0,
|
|
4213
4253
|
tip: e.hint
|
|
4214
|
-
}, null, 8, ["tip"])) : T("", !0)], 10,
|
|
4254
|
+
}, null, 8, ["tip"])) : T("", !0)], 10, Xc), V(t.$slots, "default")]));
|
|
4215
4255
|
}
|
|
4216
|
-
}),
|
|
4256
|
+
}), Qc = [
|
|
4217
4257
|
"aria-label",
|
|
4218
4258
|
"aria-invalid",
|
|
4219
4259
|
"aria-describedby"
|
|
4220
|
-
],
|
|
4260
|
+
], $c = /* @__PURE__ */ j({
|
|
4221
4261
|
inheritAttrs: !1,
|
|
4222
4262
|
__name: "TextField",
|
|
4223
4263
|
props: /*@__PURE__*/ M({
|
|
@@ -4231,7 +4271,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4231
4271
|
}),
|
|
4232
4272
|
emits: ["update:modelValue"],
|
|
4233
4273
|
setup(e, { expose: t }) {
|
|
4234
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4274
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => qn({
|
|
4235
4275
|
width: n.width,
|
|
4236
4276
|
mono: n.mono
|
|
4237
4277
|
})), o = Me(), s = K(), c = C(() => ft(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
@@ -4244,7 +4284,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4244
4284
|
"aria-invalid": c.value.invalid,
|
|
4245
4285
|
"aria-describedby": c.value.describedBy,
|
|
4246
4286
|
class: a.value
|
|
4247
|
-
}), null, 16,
|
|
4287
|
+
}), null, 16, Qc), [[Fe, r.value]]), c.value.errorId ? (R(), w(ra, {
|
|
4248
4288
|
key: 0,
|
|
4249
4289
|
id: c.value.errorId
|
|
4250
4290
|
}, {
|
|
@@ -4252,26 +4292,26 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4252
4292
|
_: 1
|
|
4253
4293
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4254
4294
|
}
|
|
4255
|
-
}),
|
|
4295
|
+
}), el = {
|
|
4256
4296
|
"data-glim": "SignInCard",
|
|
4257
4297
|
class: "glim-signin"
|
|
4258
|
-
},
|
|
4298
|
+
}, tl = { class: "glim-signin-head" }, nl = {
|
|
4259
4299
|
key: 0,
|
|
4260
4300
|
class: "glim-signin-logo",
|
|
4261
4301
|
"aria-hidden": "true"
|
|
4262
|
-
},
|
|
4302
|
+
}, rl = ["src"], il = { class: "glim-signin-name" }, al = {
|
|
4263
4303
|
key: 0,
|
|
4264
4304
|
class: "glim-signin-error",
|
|
4265
4305
|
role: "alert"
|
|
4266
|
-
},
|
|
4306
|
+
}, ol = {
|
|
4267
4307
|
key: 0,
|
|
4268
4308
|
class: "glim-signin-note",
|
|
4269
4309
|
role: "status"
|
|
4270
|
-
},
|
|
4310
|
+
}, sl = { class: "glim-signin-hint" }, cl = {
|
|
4271
4311
|
key: 3,
|
|
4272
4312
|
class: "glim-signin-error",
|
|
4273
4313
|
role: "alert"
|
|
4274
|
-
},
|
|
4314
|
+
}, ll = /* @__PURE__ */ j({
|
|
4275
4315
|
__name: "SignInCard",
|
|
4276
4316
|
props: {
|
|
4277
4317
|
logo: {},
|
|
@@ -4313,32 +4353,32 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4313
4353
|
hide: t.text.hide
|
|
4314
4354
|
})), u = U(null), d = "";
|
|
4315
4355
|
function p() {
|
|
4316
|
-
let e = n.step ? "step" :
|
|
4356
|
+
let e = n.step ? "step" : Ln(i.value);
|
|
4317
4357
|
e !== d && ((d || t.autoFocus) && gt(u.value), d = e);
|
|
4318
4358
|
}
|
|
4319
4359
|
return L(p), Oe(p), J(() => i.value.refusal?.count, (e, t, n) => {
|
|
4320
4360
|
let r = i.value.refusal;
|
|
4321
|
-
r && n(
|
|
4322
|
-
}, { flush: "post" }), (t, n) => (R(), E("div",
|
|
4361
|
+
r && n(Pn(u.value, r));
|
|
4362
|
+
}, { flush: "post" }), (t, n) => (R(), E("div", el, [D("div", {
|
|
4323
4363
|
ref_key: "card",
|
|
4324
4364
|
ref: u,
|
|
4325
4365
|
class: "glim-card glim-signin-card"
|
|
4326
|
-
}, [D("div",
|
|
4366
|
+
}, [D("div", tl, [e.logo || t.$slots.logo ? (R(), E("span", nl, [V(t.$slots, "logo", {}, () => [D("img", {
|
|
4327
4367
|
src: e.logo,
|
|
4328
4368
|
alt: "",
|
|
4329
4369
|
draggable: "false"
|
|
4330
|
-
}, null, 8,
|
|
4370
|
+
}, null, 8, rl)])])) : T("", !0), D("h1", il, W(e.appName), 1)]), t.$slots.step ? V(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (R(), E("form", {
|
|
4331
4371
|
key: 1,
|
|
4332
4372
|
class: "glim-signin-form",
|
|
4333
4373
|
novalidate: "",
|
|
4334
4374
|
onSubmit: n[4] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4335
4375
|
}, [
|
|
4336
|
-
A(
|
|
4376
|
+
A(Zc, {
|
|
4337
4377
|
label: e.text.resetCode,
|
|
4338
4378
|
for: s("reset-code"),
|
|
4339
4379
|
hint: e.text.resetCodeTip
|
|
4340
4380
|
}, {
|
|
4341
|
-
default: Y(() => [A(
|
|
4381
|
+
default: Y(() => [A($c, {
|
|
4342
4382
|
id: s("reset-code"),
|
|
4343
4383
|
"data-signin-field": "resetCode",
|
|
4344
4384
|
class: "glim-signin-log-code",
|
|
@@ -4355,11 +4395,11 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4355
4395
|
"for",
|
|
4356
4396
|
"hint"
|
|
4357
4397
|
]),
|
|
4358
|
-
A(
|
|
4398
|
+
A(Zc, {
|
|
4359
4399
|
label: e.text.newPassword,
|
|
4360
4400
|
for: s("new")
|
|
4361
4401
|
}, {
|
|
4362
|
-
default: Y(() => [A(
|
|
4402
|
+
default: Y(() => [A(ho, {
|
|
4363
4403
|
id: s("new"),
|
|
4364
4404
|
"data-signin-field": "newPassword",
|
|
4365
4405
|
"model-value": i.value.newPassword,
|
|
@@ -4373,11 +4413,11 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4373
4413
|
])]),
|
|
4374
4414
|
_: 1
|
|
4375
4415
|
}, 8, ["label", "for"]),
|
|
4376
|
-
A(
|
|
4416
|
+
A(Zc, {
|
|
4377
4417
|
label: e.text.confirmPassword,
|
|
4378
4418
|
for: s("confirm")
|
|
4379
4419
|
}, {
|
|
4380
|
-
default: Y(() => [A(
|
|
4420
|
+
default: Y(() => [A(ho, {
|
|
4381
4421
|
id: s("confirm"),
|
|
4382
4422
|
"data-signin-field": "confirm",
|
|
4383
4423
|
"model-value": i.value.confirm,
|
|
@@ -4391,14 +4431,14 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4391
4431
|
])]),
|
|
4392
4432
|
_: 1
|
|
4393
4433
|
}, 8, ["label", "for"]),
|
|
4394
|
-
i.value.error ? (R(), E("p",
|
|
4434
|
+
i.value.error ? (R(), E("p", al, W(i.value.error), 1)) : T("", !0),
|
|
4395
4435
|
A(f, {
|
|
4396
4436
|
label: e.text.setPassword,
|
|
4397
4437
|
"label-key": c.value.setPassword,
|
|
4398
4438
|
tone: "accent",
|
|
4399
4439
|
type: "submit",
|
|
4400
4440
|
"data-signin": "set-password",
|
|
4401
|
-
disabled: G(
|
|
4441
|
+
disabled: G(xn)(i.value),
|
|
4402
4442
|
busy: i.value.busy === "setPassword",
|
|
4403
4443
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
4404
4444
|
}, null, 8, [
|
|
@@ -4426,13 +4466,13 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4426
4466
|
novalidate: "",
|
|
4427
4467
|
onSubmit: n[10] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4428
4468
|
}, [
|
|
4429
|
-
e.note ? (R(), E("p",
|
|
4469
|
+
e.note ? (R(), E("p", ol, W(e.note), 1)) : T("", !0),
|
|
4430
4470
|
i.value.viaPasskey ? T("", !0) : V(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
4431
|
-
Re(A(
|
|
4471
|
+
Re(A(Zc, {
|
|
4432
4472
|
label: e.text.password,
|
|
4433
4473
|
for: s("password")
|
|
4434
4474
|
}, {
|
|
4435
|
-
default: Y(() => [A(
|
|
4475
|
+
default: Y(() => [A(ho, {
|
|
4436
4476
|
id: s("password"),
|
|
4437
4477
|
"data-signin-field": "password",
|
|
4438
4478
|
"model-value": i.value.password,
|
|
@@ -4446,12 +4486,12 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4446
4486
|
])]),
|
|
4447
4487
|
_: 1
|
|
4448
4488
|
}, 8, ["label", "for"]), [[Ie, !i.value.viaPasskey]]),
|
|
4449
|
-
i.value.needCode ? (R(), w(
|
|
4489
|
+
i.value.needCode ? (R(), w(Zc, {
|
|
4450
4490
|
key: 2,
|
|
4451
4491
|
label: e.text.code,
|
|
4452
4492
|
for: s("code")
|
|
4453
4493
|
}, {
|
|
4454
|
-
default: Y(() => [A(
|
|
4494
|
+
default: Y(() => [A($c, {
|
|
4455
4495
|
id: s("code"),
|
|
4456
4496
|
"data-signin-field": "code",
|
|
4457
4497
|
class: "glim-signin-code",
|
|
@@ -4461,17 +4501,17 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4461
4501
|
spellcheck: "false",
|
|
4462
4502
|
placeholder: "000000",
|
|
4463
4503
|
"onUpdate:modelValue": n[6] ||= (e) => G(r).set("code", e)
|
|
4464
|
-
}, null, 8, ["id", "model-value"]), D("p",
|
|
4504
|
+
}, null, 8, ["id", "model-value"]), D("p", sl, W(e.text.codeHint), 1)]),
|
|
4465
4505
|
_: 1
|
|
4466
4506
|
}, 8, ["label", "for"])) : T("", !0),
|
|
4467
|
-
i.value.error ? (R(), E("p",
|
|
4507
|
+
i.value.error ? (R(), E("p", cl, W(i.value.error), 1)) : T("", !0),
|
|
4468
4508
|
A(f, {
|
|
4469
4509
|
label: e.text.signIn,
|
|
4470
4510
|
"label-key": c.value.signIn,
|
|
4471
4511
|
tone: "accent",
|
|
4472
4512
|
type: "submit",
|
|
4473
4513
|
"data-signin": "submit",
|
|
4474
|
-
disabled: G(
|
|
4514
|
+
disabled: G(In)(i.value),
|
|
4475
4515
|
busy: i.value.busy === "signIn",
|
|
4476
4516
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
4477
4517
|
}, null, 8, [
|
|
@@ -4525,13 +4565,13 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4525
4565
|
])) : T("", !0)
|
|
4526
4566
|
], 32))], 512)]));
|
|
4527
4567
|
}
|
|
4528
|
-
}),
|
|
4568
|
+
}), ul = {
|
|
4529
4569
|
key: 0,
|
|
4530
4570
|
class: "glim-skeleton-block glim-skeleton-tile"
|
|
4531
|
-
},
|
|
4571
|
+
}, dl = {
|
|
4532
4572
|
key: 1,
|
|
4533
4573
|
class: "glim-skeleton-block glim-skeleton-badge"
|
|
4534
|
-
},
|
|
4574
|
+
}, fl = /* @__PURE__ */ j({
|
|
4535
4575
|
__name: "SkeletonRow",
|
|
4536
4576
|
props: {
|
|
4537
4577
|
delay: {},
|
|
@@ -4545,7 +4585,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4545
4585
|
}
|
|
4546
4586
|
},
|
|
4547
4587
|
setup(e) {
|
|
4548
|
-
let t = e, n = C(() =>
|
|
4588
|
+
let t = e, n = C(() => Rn({
|
|
4549
4589
|
delay: t.delay,
|
|
4550
4590
|
tile: t.tile,
|
|
4551
4591
|
badge: t.badge
|
|
@@ -4556,18 +4596,18 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4556
4596
|
class: P(n.value.className),
|
|
4557
4597
|
style: F(n.value.style)
|
|
4558
4598
|
}, [
|
|
4559
|
-
n.value.tile ? (R(), E("span",
|
|
4599
|
+
n.value.tile ? (R(), E("span", ul)) : T("", !0),
|
|
4560
4600
|
t[0] ||= D("span", { class: "glim-skeleton-block glim-skeleton-name" }, null, -1),
|
|
4561
|
-
n.value.badge ? (R(), E("span",
|
|
4601
|
+
n.value.badge ? (R(), E("span", dl)) : T("", !0)
|
|
4562
4602
|
], 6));
|
|
4563
4603
|
}
|
|
4564
|
-
}),
|
|
4604
|
+
}), pl = ["data-glim-title", "aria-labelledby"], ml = {
|
|
4565
4605
|
key: 0,
|
|
4566
4606
|
class: "glim-panel-heading"
|
|
4567
|
-
},
|
|
4607
|
+
}, hl = ["id"], gl = {
|
|
4568
4608
|
key: 1,
|
|
4569
4609
|
class: "glim-subcard-end"
|
|
4570
|
-
},
|
|
4610
|
+
}, _l = /* @__PURE__ */ j({
|
|
4571
4611
|
__name: "SubCard",
|
|
4572
4612
|
props: {
|
|
4573
4613
|
title: {},
|
|
@@ -4581,23 +4621,23 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4581
4621
|
class: P(["glim-subcard", { "glim-subcard--titled": t.title }]),
|
|
4582
4622
|
"aria-labelledby": t.title ? G(n) : void 0
|
|
4583
4623
|
}, [
|
|
4584
|
-
t.title ? (R(), E("h3",
|
|
4624
|
+
t.title ? (R(), E("h3", ml, [A(e, {
|
|
4585
4625
|
tone: "heading",
|
|
4586
4626
|
size: "heading",
|
|
4587
4627
|
wrap: ""
|
|
4588
4628
|
}, {
|
|
4589
|
-
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9,
|
|
4629
|
+
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9, hl), t.hint ? (R(), w(Q, {
|
|
4590
4630
|
key: 0,
|
|
4591
4631
|
tip: t.hint,
|
|
4592
4632
|
"on-accent": ""
|
|
4593
4633
|
}, null, 8, ["tip"])) : T("", !0)]),
|
|
4594
4634
|
_: 1
|
|
4595
4635
|
})])) : T("", !0),
|
|
4596
|
-
r.$slots.end ? (R(), E("div",
|
|
4636
|
+
r.$slots.end ? (R(), E("div", gl, [V(r.$slots, "end")])) : T("", !0),
|
|
4597
4637
|
V(r.$slots, "default")
|
|
4598
|
-
], 10,
|
|
4638
|
+
], 10, pl));
|
|
4599
4639
|
}
|
|
4600
|
-
}),
|
|
4640
|
+
}), vl = ["aria-label"], yl = { key: 0 }, bl = { key: 0 }, xl = ["colspan"], Sl = /* @__PURE__ */ j({
|
|
4601
4641
|
__name: "Table",
|
|
4602
4642
|
props: {
|
|
4603
4643
|
label: {},
|
|
@@ -4611,27 +4651,27 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4611
4651
|
"data-glim": "Table",
|
|
4612
4652
|
class: "glim-table",
|
|
4613
4653
|
"aria-label": e.label
|
|
4614
|
-
}, [n.value ? (R(), E("thead",
|
|
4654
|
+
}, [n.value ? (R(), E("thead", yl, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("th", {
|
|
4615
4655
|
key: e.key,
|
|
4616
4656
|
scope: "col",
|
|
4617
4657
|
class: P({ "glim-table-end": e.end })
|
|
4618
4658
|
}, 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", {
|
|
4619
4659
|
key: e.key,
|
|
4620
|
-
class: P(G(
|
|
4660
|
+
class: P(G(Kn)(e))
|
|
4621
4661
|
}, [V(t.$slots, "cell", {
|
|
4622
4662
|
row: n,
|
|
4623
4663
|
column: e,
|
|
4624
4664
|
value: r(n, e)
|
|
4625
|
-
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr",
|
|
4665
|
+
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr", bl, [D("td", {
|
|
4626
4666
|
colspan: e.columns.length,
|
|
4627
4667
|
class: "glim-table-muted"
|
|
4628
|
-
}, W(e.more), 9,
|
|
4668
|
+
}, W(e.more), 9, xl)])) : T("", !0)])], 8, vl));
|
|
4629
4669
|
}
|
|
4630
|
-
}),
|
|
4670
|
+
}), Cl = [
|
|
4631
4671
|
"aria-label",
|
|
4632
4672
|
"aria-invalid",
|
|
4633
4673
|
"aria-describedby"
|
|
4634
|
-
],
|
|
4674
|
+
], wl = /* @__PURE__ */ j({
|
|
4635
4675
|
inheritAttrs: !1,
|
|
4636
4676
|
__name: "TextArea",
|
|
4637
4677
|
props: /*@__PURE__*/ M({
|
|
@@ -4645,7 +4685,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4645
4685
|
}),
|
|
4646
4686
|
emits: ["update:modelValue"],
|
|
4647
4687
|
setup(e, { expose: t }) {
|
|
4648
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4688
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => qn({
|
|
4649
4689
|
width: n.width,
|
|
4650
4690
|
mono: n.mono,
|
|
4651
4691
|
area: !0
|
|
@@ -4658,7 +4698,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4658
4698
|
"aria-invalid": c.value.invalid,
|
|
4659
4699
|
"aria-describedby": c.value.describedBy,
|
|
4660
4700
|
class: a.value
|
|
4661
|
-
}), null, 16,
|
|
4701
|
+
}), null, 16, Cl), [[Fe, r.value]]), c.value.errorId ? (R(), w(ra, {
|
|
4662
4702
|
key: 0,
|
|
4663
4703
|
id: c.value.errorId
|
|
4664
4704
|
}, {
|
|
@@ -4666,7 +4706,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4666
4706
|
_: 1
|
|
4667
4707
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4668
4708
|
}
|
|
4669
|
-
}),
|
|
4709
|
+
}), Tl = { class: "glim-toast-body" }, El = { class: "glim-toast-message" }, Dl = { key: 0 }, Ol = ["aria-label"], kl = /* @__PURE__ */ j({
|
|
4670
4710
|
__name: "ToastCard",
|
|
4671
4711
|
props: {
|
|
4672
4712
|
id: {},
|
|
@@ -4700,7 +4740,7 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4700
4740
|
mark: G(Je)[e.severity],
|
|
4701
4741
|
class: P(`glim-toast-glyph glim-toast-glyph--${e.severity}`)
|
|
4702
4742
|
}, null, 8, ["mark", "class"]),
|
|
4703
|
-
D("div",
|
|
4743
|
+
D("div", Tl, [D("p", El, [(R(!0), E(S, null, B(G(zn)(e.message), (e, t) => (R(), E(S, { key: t }, [t > 0 ? (R(), E("wbr", Dl)) : T("", !0), k(W(e), 1)], 64))), 128))]), e.action ? (R(), w(f, {
|
|
4704
4744
|
key: 0,
|
|
4705
4745
|
class: "glim-toast-action",
|
|
4706
4746
|
tone: "subtle",
|
|
@@ -4713,19 +4753,19 @@ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
|
4713
4753
|
"aria-label": e.dismissLabel,
|
|
4714
4754
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
4715
4755
|
onClick: n[1] ||= (t) => r("dismiss", e.id)
|
|
4716
|
-
}, [A(G(m), { mark: G(Ke).dismiss }, null, 8, ["mark"])], 8,
|
|
4756
|
+
}, [A(G(m), { mark: G(Ke).dismiss }, null, 8, ["mark"])], 8, Ol)
|
|
4717
4757
|
], 32));
|
|
4718
4758
|
}
|
|
4719
|
-
}),
|
|
4720
|
-
function
|
|
4721
|
-
for (let i of Object.values(t)) typeof n[
|
|
4759
|
+
}), Al = (e) => `on${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
4760
|
+
function jl(e, t, n, r) {
|
|
4761
|
+
for (let i of Object.values(t)) typeof n[Al(i)] == "function" && r(`${e} ${i}`);
|
|
4722
4762
|
return (e, ...r) => {
|
|
4723
|
-
let i = t[e], a = i === void 0 ? void 0 : n[
|
|
4763
|
+
let i = t[e], a = i === void 0 ? void 0 : n[Al(i)];
|
|
4724
4764
|
typeof a == "function" && a(...r);
|
|
4725
4765
|
};
|
|
4726
4766
|
}
|
|
4727
4767
|
// src/ToastViewport.vue
|
|
4728
|
-
var
|
|
4768
|
+
var Ml = /* @__PURE__ */ j({
|
|
4729
4769
|
inheritAttrs: !1,
|
|
4730
4770
|
__name: "ToastViewport",
|
|
4731
4771
|
props: {
|
|
@@ -4744,12 +4784,12 @@ var El = /* @__PURE__ */ j({
|
|
|
4744
4784
|
"blur"
|
|
4745
4785
|
],
|
|
4746
4786
|
setup(e, { emit: t }) {
|
|
4747
|
-
let n = e, r = t, i =
|
|
4787
|
+
let n = e, r = t, i = jl("ToastViewport", {
|
|
4748
4788
|
mouseEnter: "enter",
|
|
4749
4789
|
mouseLeave: "leave",
|
|
4750
4790
|
focus: "focusin",
|
|
4751
4791
|
blur: "focusout"
|
|
4752
|
-
}, n,
|
|
4792
|
+
}, n, rr);
|
|
4753
4793
|
function a(e) {
|
|
4754
4794
|
r("mouseEnter", e), i("mouseEnter", e);
|
|
4755
4795
|
}
|
|
@@ -4766,7 +4806,7 @@ var El = /* @__PURE__ */ j({
|
|
|
4766
4806
|
return J(() => n.toasts, (e) => {
|
|
4767
4807
|
let t = new Set(e.map((e) => e.id));
|
|
4768
4808
|
for (let e of l) t.has(e) || l.delete(e);
|
|
4769
|
-
for (let t of e) l.has(t.id) || (l.add(t.id), Ze(t.message,
|
|
4809
|
+
for (let t of e) l.has(t.id) || (l.add(t.id), Ze(t.message, Yn(t.severity)));
|
|
4770
4810
|
}, {
|
|
4771
4811
|
immediate: !0,
|
|
4772
4812
|
deep: 1,
|
|
@@ -4777,7 +4817,7 @@ var El = /* @__PURE__ */ j({
|
|
|
4777
4817
|
D("div", N({
|
|
4778
4818
|
"data-glim": "ToastViewport",
|
|
4779
4819
|
class: "glim-toast-stack"
|
|
4780
|
-
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(
|
|
4820
|
+
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(kl, {
|
|
4781
4821
|
id: t.id,
|
|
4782
4822
|
key: t.id,
|
|
4783
4823
|
message: t.message,
|
|
@@ -4798,7 +4838,7 @@ var El = /* @__PURE__ */ j({
|
|
|
4798
4838
|
]))), 128))], 16)
|
|
4799
4839
|
], 64));
|
|
4800
4840
|
}
|
|
4801
|
-
}),
|
|
4841
|
+
}), Nl = ["aria-label"], Pl = [
|
|
4802
4842
|
"aria-level",
|
|
4803
4843
|
"aria-posinset",
|
|
4804
4844
|
"aria-setsize",
|
|
@@ -4809,11 +4849,11 @@ var El = /* @__PURE__ */ j({
|
|
|
4809
4849
|
"onClick",
|
|
4810
4850
|
"onDblclick",
|
|
4811
4851
|
"onKeydown"
|
|
4812
|
-
],
|
|
4852
|
+
], Fl = ["onClick"], Il = {
|
|
4813
4853
|
key: 0,
|
|
4814
4854
|
class: "glim-tree-glyph",
|
|
4815
4855
|
"aria-hidden": "true"
|
|
4816
|
-
},
|
|
4856
|
+
}, Ll = { class: "glim-tree-label" }, Rl = /* @__PURE__ */ j({
|
|
4817
4857
|
__name: "Tree",
|
|
4818
4858
|
props: /*@__PURE__*/ M({
|
|
4819
4859
|
label: {},
|
|
@@ -4831,7 +4871,7 @@ var El = /* @__PURE__ */ j({
|
|
|
4831
4871
|
s.has(e) || (s.add(e), Promise.resolve(n.load(e)).then((t) => o.set(e, t), () => s.delete(e)));
|
|
4832
4872
|
}
|
|
4833
4873
|
J(i, (e) => [null, ...e].forEach(l), { immediate: !0 });
|
|
4834
|
-
let u = C(() =>
|
|
4874
|
+
let u = C(() => Qn(o, i.value)), d = C(() => Math.max(u.value.findIndex((e) => e.node.id === r.value), 0));
|
|
4835
4875
|
function f(e) {
|
|
4836
4876
|
i.value = i.value.includes(e) ? i.value.filter((t) => t !== e) : [...i.value, e];
|
|
4837
4877
|
}
|
|
@@ -4842,7 +4882,7 @@ var El = /* @__PURE__ */ j({
|
|
|
4842
4882
|
e.preventDefault(), r.value = n, e.key === "Enter" && a("activate", n);
|
|
4843
4883
|
return;
|
|
4844
4884
|
}
|
|
4845
|
-
let i =
|
|
4885
|
+
let i = $n(u.value, t, e.key, getComputedStyle(c.value).direction === "rtl");
|
|
4846
4886
|
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, bt(c.value, i.focus)) : f("open" in i ? i.open : i.close));
|
|
4847
4887
|
}
|
|
4848
4888
|
return (t, n) => (R(), E("div", {
|
|
@@ -4873,15 +4913,15 @@ var El = /* @__PURE__ */ j({
|
|
|
4873
4913
|
"aria-hidden": "true",
|
|
4874
4914
|
onClick: X((t) => e.node.hasChildren && f(e.node.id), ["stop"]),
|
|
4875
4915
|
onDblclick: n[0] ||= X(() => {}, ["stop"])
|
|
4876
|
-
}, [e.node.hasChildren ? (R(), w(G(le), { key: 0 })) : T("", !0)], 40,
|
|
4877
|
-
e.node.glyph ? (R(), E("span",
|
|
4878
|
-
D("span",
|
|
4879
|
-
], 16,
|
|
4916
|
+
}, [e.node.hasChildren ? (R(), w(G(le), { key: 0 })) : T("", !0)], 40, Fl),
|
|
4917
|
+
e.node.glyph ? (R(), E("span", Il, [(R(), w(H(e.open && e.node.openGlyph || e.node.glyph)))])) : T("", !0),
|
|
4918
|
+
D("span", Ll, W(e.node.label), 1)
|
|
4919
|
+
], 16, Pl))), 128))], 8, Nl));
|
|
4880
4920
|
}
|
|
4881
|
-
}),
|
|
4921
|
+
}), zl = ["data-glim-title"], Bl = { class: "glim-notice-title" }, Vl = { class: "glim-notice-reason" }, Hl = {
|
|
4882
4922
|
key: 0,
|
|
4883
4923
|
class: "glim-notice-action"
|
|
4884
|
-
},
|
|
4924
|
+
}, Ul = /* @__PURE__ */ j({
|
|
4885
4925
|
__name: "UnavailableNotice",
|
|
4886
4926
|
props: { title: {} },
|
|
4887
4927
|
setup(e) {
|
|
@@ -4890,12 +4930,12 @@ var El = /* @__PURE__ */ j({
|
|
|
4890
4930
|
"data-glim-title": e.title,
|
|
4891
4931
|
class: "glim-notice"
|
|
4892
4932
|
}, [
|
|
4893
|
-
D("p",
|
|
4894
|
-
D("p",
|
|
4895
|
-
t.$slots.action ? (R(), E("div",
|
|
4896
|
-
], 8,
|
|
4933
|
+
D("p", Bl, W(e.title), 1),
|
|
4934
|
+
D("p", Vl, [V(t.$slots, "default")]),
|
|
4935
|
+
t.$slots.action ? (R(), E("div", Hl, [V(t.$slots, "action")])) : T("", !0)
|
|
4936
|
+
], 8, zl));
|
|
4897
4937
|
}
|
|
4898
|
-
}),
|
|
4938
|
+
}), Wl = ["aria-label"], Gl = { class: "glim-window-square" }, Kl = { class: "glim-window-square" }, ql = { class: "glim-window-square" }, Jl = /* @__PURE__ */ j({
|
|
4899
4939
|
__name: "WindowBar",
|
|
4900
4940
|
props: {
|
|
4901
4941
|
appName: {},
|
|
@@ -4936,7 +4976,7 @@ var El = /* @__PURE__ */ j({
|
|
|
4936
4976
|
class: "glim-window-button",
|
|
4937
4977
|
onClick: r[0] ||= (e) => n("minimise")
|
|
4938
4978
|
}, {
|
|
4939
|
-
default: Y(() => [D("span",
|
|
4979
|
+
default: Y(() => [D("span", Gl, [A(G(_))])]),
|
|
4940
4980
|
_: 1
|
|
4941
4981
|
}, 8, ["tip"]),
|
|
4942
4982
|
A(ge, {
|
|
@@ -4944,7 +4984,7 @@ var El = /* @__PURE__ */ j({
|
|
|
4944
4984
|
class: "glim-window-button",
|
|
4945
4985
|
onClick: r[1] ||= (e) => n("toggleMaximise")
|
|
4946
4986
|
}, {
|
|
4947
|
-
default: Y(() => [D("span",
|
|
4987
|
+
default: Y(() => [D("span", Kl, [e.maximised ? (R(), w(G(me), { key: 0 })) : (R(), w(G(he), { key: 1 }))])]),
|
|
4948
4988
|
_: 1
|
|
4949
4989
|
}, 8, ["tip"]),
|
|
4950
4990
|
A(ge, {
|
|
@@ -4952,14 +4992,14 @@ var El = /* @__PURE__ */ j({
|
|
|
4952
4992
|
class: "glim-window-button",
|
|
4953
4993
|
onClick: r[2] ||= (e) => n("close")
|
|
4954
4994
|
}, {
|
|
4955
|
-
default: Y(() => [D("span",
|
|
4995
|
+
default: Y(() => [D("span", ql, [A(G(g))])]),
|
|
4956
4996
|
_: 1
|
|
4957
4997
|
}, 8, ["tip"])
|
|
4958
|
-
], 40,
|
|
4998
|
+
], 40, Wl));
|
|
4959
4999
|
}
|
|
4960
5000
|
});
|
|
4961
5001
|
// src/confirm.ts
|
|
4962
|
-
function
|
|
5002
|
+
function Yl(e) {
|
|
4963
5003
|
let t = U(null), n = U(null), r = null, i = null;
|
|
4964
5004
|
function a(e, n) {
|
|
4965
5005
|
return i = xt(), new Promise((i) => {
|
|
@@ -4970,15 +5010,15 @@ function Ul(e) {
|
|
|
4970
5010
|
});
|
|
4971
5011
|
}
|
|
4972
5012
|
function o(e) {
|
|
4973
|
-
r?.(e), r = null, t.value = null,
|
|
5013
|
+
r?.(e), r = null, t.value = null, Sn(i), i = null;
|
|
4974
5014
|
}
|
|
4975
5015
|
let s = () => o(!1);
|
|
4976
|
-
return
|
|
5016
|
+
return Xl(() => t.value !== null, n, s), {
|
|
4977
5017
|
confirm: a,
|
|
4978
5018
|
dismiss: s,
|
|
4979
5019
|
ConfirmHost: j(() => () => {
|
|
4980
5020
|
let r = t.value;
|
|
4981
|
-
return r ? Ce(Se, { to:
|
|
5021
|
+
return r ? Ce(Se, { to: fn() }, [Ce(pi, {
|
|
4982
5022
|
ref: (e) => n.value = e?.card ?? null,
|
|
4983
5023
|
title: e.title,
|
|
4984
5024
|
message: r.message,
|
|
@@ -4992,13 +5032,13 @@ function Ul(e) {
|
|
|
4992
5032
|
})
|
|
4993
5033
|
};
|
|
4994
5034
|
}
|
|
4995
|
-
function
|
|
5035
|
+
function Xl(e, t, n) {
|
|
4996
5036
|
J(e, (e, r, i) => {
|
|
4997
|
-
e && i(
|
|
5037
|
+
e && i(Zn(() => t.value, n));
|
|
4998
5038
|
}, { immediate: !0 });
|
|
4999
5039
|
}
|
|
5000
5040
|
// src/paypalButtons.ts
|
|
5001
|
-
function
|
|
5041
|
+
function Zl(e) {
|
|
5002
5042
|
let t = U(null), n = () => {};
|
|
5003
5043
|
return J([
|
|
5004
5044
|
t,
|
|
@@ -5032,8 +5072,8 @@ function Gl(e) {
|
|
|
5032
5072
|
}), Ee(() => n()), (e) => t.value = e;
|
|
5033
5073
|
}
|
|
5034
5074
|
// src/dragArmed.ts
|
|
5035
|
-
function
|
|
5075
|
+
function Ql(e, t) {
|
|
5036
5076
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
5037
5077
|
Le(n, { flush: "post" }), Oe(n);
|
|
5038
5078
|
}
|
|
5039
|
-
export {
|
|
5079
|
+
export { Fr as AboutCard, e as Badge, Br as BrandMark, c as BusyRing, f as Button, ur as Card, Wr as Checkbox, ei as CoffeeDialog, ai as ColorPicker, pi as ConfirmDialog, Oi as ContextMenu, ji as CopyField, qi as CryptoDonateDialog, Xi as DropdownListbox, ta as EmptyState, ra as FieldError, sa as FieldRow, ca as FieldRowGroup, cs as Fortress, Wa as FortressAppCard, _a as FortressDoubtWindow, ls as FortressPairing, po as FortressPermissions, Fs as FortressStatusWindow, Ue as GLIMSTONE_RELEASE_URL, We as GLIMSTONE_REPO, Ge as GLIMSTONE_VERSION, Rs as GlyphField, zs 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, br as InfoAboutCard, Q as InfoBubble, Cr as InfoHelpCard, Pr as InfoTile, Mr as InfoVersionCard, Na as InstanceCard, hi as Kbd, Ws as ListRow, ac as ListTable, m as MarkSvg, cc as MenuBar, uc as Meter, pc as NumberField, ho as PasswordField, hc as PathField, Mc as PaypalDialog, Lc as PickerWindow, ia as Pill, Ks as Popover, Fa as PresenceBadges, ds as ProgressBar, $ as ReadmeButton, Rc as RowMark, Za as Selector, Jc as Sheet, Uc as SidebarRow, ll as SignInCard, Zc as SignInField, fl as SkeletonRow, _l as SubCard, Sl as Table, wl as TextArea, $c as TextField, kl as ToastCard, Ml as ToastViewport, to as Toggle, Rl as Tree, Ul as UnavailableNotice, ha as Window, Jl as WindowBar, Ia as deviceGlyph, p as glyphFor, An as selectorTabId, pe as setGlyphResolver, u as useAccent, Yl as useConfirm, o as useDensity, Xl as useDialogKeys, Ql as useDragArmed, x as useFieldName, i as useHue, l as useLabelMode, d as useMotion, Zl as usePaypalButtons, ye as usePortalHue, a as useRainbow, s as useShape, n as useTipBubble };
|