@glimstone/vue 4.5.4 → 4.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +1 -1
- package/dist/{Button-BM5Dzboj.js → Button-CQbGuw5x.js} +1 -1
- package/dist/Carousel.js +2 -2
- package/dist/Collapsible.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/DatePicker.js +1 -1
- package/dist/FileUpload.js +8 -8
- package/dist/FloatingPanel.js +5 -5
- package/dist/Marquee.js +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/PickerWindow.vue.d.ts +41 -0
- package/dist/Rating.js +1 -1
- package/dist/ReadmeButton.vue.d.ts +2 -0
- package/dist/{Select-CBScnONy.js → Select-CQxew-YP.js} +1 -1
- package/dist/Select.js +1 -1
- package/dist/SignaturePad.js +2 -2
- package/dist/Steps.js +2 -2
- package/dist/TagsInput.js +1 -1
- package/dist/Timer.js +2 -2
- package/dist/Tour.js +2 -2
- package/dist/Window.vue.d.ts +4 -0
- package/dist/{glyphs-DEch1yYd.js → glyphs-DeCDMDdg.js} +2 -2
- package/dist/glyphs.d.ts +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +917 -755
- package/dist/windowParts.d.ts +8 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as e } from "./Badge-BhK0gMse.js";
|
|
2
2
|
import { n as t, r as n, t as r } from "./TipWrap-5Nw7Yj0O.js";
|
|
3
|
-
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./Button-
|
|
4
|
-
import { C as p, S as m, _ as h, a as g, b as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { Fragment as S, Teleport as
|
|
11
|
-
import { COLOR_NAMES_DE as
|
|
3
|
+
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./Button-CQbGuw5x.js";
|
|
4
|
+
import { C as p, S as m, _ as h, a as g, b as _, c as v, d as ee, f as te, g as y, h as ne, i as b, l as re, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he } from "./glyphs-DeCDMDdg.js";
|
|
5
|
+
import { t as ge } from "./IconTipButton-BLtrZfgN.js";
|
|
6
|
+
import { n as _e, r as x, t as ve } from "./fieldName-DBygJJfe.js";
|
|
7
|
+
import { t as ye } from "./selectParts-0e1ib8BL.js";
|
|
8
|
+
import { t as be } from "./Select-CQxew-YP.js";
|
|
9
|
+
import { t as xe } from "./IconButton-D5YOChZI.js";
|
|
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, pickSearchKey as tn, pickSections as nn, pickTileKey as rn, pickTileStyle as an, pickerHue as on, pillClassName as sn, placeMenu as cn, placeSubmenu as ln, portalTarget as un, presenceTone as dn, pressRowControl as fn, progressView as pn, qrCode as mn, readmePartClass as hn, readmePartLabel as gn, readmeSoon as _n, readmeUnitClass as vn, resetBlocked as yn, returnFocus as bn, roveSelector as xn, rovedIndex as Sn, runUpdateCheck as Cn, segmentView as wn, selectByClick as Tn, selectorAxis as En, selectorFlex as Dn, selectorTabId as On, selectorTabId as kn, selectorView as An, shake as jn, showRefusal as Mn, sidebarRowView as Nn, signInBlocked as Pn, signInStage as Fn, skeletonRowView as In, softBreaks as Ln, stackWindow as Rn, statusView as zn, storeShowOthers as Bn, storedShowOthers as Vn, subscribeMedia as Hn, syncNumberSteppers as Un, tableCellClass as Wn, textFieldClass as Gn, tidyMenu as Kn, toastPoliteness as qn, toggleSelection as Jn, trapDialogKeys as Yn, treeRows as Xn, treeStep as Zn, updateFace as Qn, updateStage as $n, versionLink as er, warnDeprecated as tr, watchSelectorFit as nr, windowFocusTarget as rr, windowFoot as ir } from "@glimstone/core";
|
|
12
12
|
// src/InfoBubble.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
14
14
|
__name: "InfoBubble",
|
|
15
15
|
props: {
|
|
16
16
|
tip: {},
|
|
@@ -60,12 +60,12 @@ var Xn = ["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, ar), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), or = ["data-glim-title"], sr = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "glim-panel-heading"
|
|
68
|
-
},
|
|
68
|
+
}, cr = /* @__PURE__ */ j({
|
|
69
69
|
__name: "Card",
|
|
70
70
|
props: {
|
|
71
71
|
title: {},
|
|
@@ -74,7 +74,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
74
74
|
nested: { type: Boolean }
|
|
75
75
|
},
|
|
76
76
|
setup(t) {
|
|
77
|
-
let n = t, r = C(() => n.hueIndex === void 0 ? void 0 :
|
|
77
|
+
let n = t, r = C(() => n.hueIndex === void 0 ? void 0 : Ct(n.hueIndex));
|
|
78
78
|
return (n, i) => (R(), E("div", {
|
|
79
79
|
"data-glim": "Card",
|
|
80
80
|
"data-glim-title": t.title,
|
|
@@ -87,7 +87,7 @@ var Xn = ["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", sr, [A(e, {
|
|
91
91
|
tone: "heading",
|
|
92
92
|
size: "heading",
|
|
93
93
|
wrap: "",
|
|
@@ -99,20 +99,20 @@ var Xn = ["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, or));
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), lr = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "glim-readme-btn-art",
|
|
107
107
|
"aria-hidden": "true"
|
|
108
|
-
},
|
|
108
|
+
}, ur = { class: "glim-readme-btn-text" }, dr = { class: "glim-readme-btn-name" }, fr = {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "glim-readme-btn-sub"
|
|
111
|
-
},
|
|
111
|
+
}, pr = {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "glim-readme-btn-sheen",
|
|
114
114
|
"aria-hidden": "true"
|
|
115
|
-
},
|
|
115
|
+
}, mr = {
|
|
116
116
|
key: 1,
|
|
117
117
|
class: "glim-readme-btn-hint"
|
|
118
118
|
}, $ = /* @__PURE__ */ j({
|
|
@@ -122,6 +122,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
122
122
|
parts: {},
|
|
123
123
|
markClass: {},
|
|
124
124
|
hint: {},
|
|
125
|
+
tip: {},
|
|
125
126
|
note: {
|
|
126
127
|
type: Boolean,
|
|
127
128
|
default: !1
|
|
@@ -129,42 +130,53 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
129
130
|
soonLabel: {}
|
|
130
131
|
},
|
|
131
132
|
emits: ["linkClick"],
|
|
132
|
-
setup(e, { emit:
|
|
133
|
-
let
|
|
134
|
-
J([
|
|
135
|
-
|
|
136
|
-
}, { flush: "post" }),
|
|
137
|
-
let
|
|
133
|
+
setup(e, { emit: r }) {
|
|
134
|
+
let i = e, a = r, o = C(() => _n(i.parts)), s = U(null), c = C(() => i.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (o.value ? i.soonLabel : "")), l;
|
|
135
|
+
J([s, c], () => {
|
|
136
|
+
l?.(), l = s.value ? Ot(s.value) : void 0;
|
|
137
|
+
}, { flush: "post" }), Ee(() => l?.());
|
|
138
|
+
let u = n(() => i.tip), d = (e) => e === 0 ? {
|
|
139
|
+
ref: (e) => u.trigger.value = e,
|
|
140
|
+
"aria-describedby": u.describedBy.value,
|
|
141
|
+
onMouseenter: u.show,
|
|
142
|
+
onMouseleave: u.hide,
|
|
143
|
+
onFocus: u.showOnFocus,
|
|
144
|
+
onBlur: u.hide
|
|
145
|
+
} : {}, f = (e) => o.value ? i.soonLabel : e.sub, p = (e) => gn(e, f(e)), m = (e) => o.value ? "span" : e.href ? "a" : "button", h = (e) => o.value ? { "aria-disabled": !0 } : e.href ? {
|
|
138
146
|
href: e.href,
|
|
139
147
|
target: "_blank",
|
|
140
148
|
rel: "noreferrer noopener",
|
|
141
|
-
onClick: (e) =>
|
|
149
|
+
onClick: (e) => a("linkClick", e)
|
|
142
150
|
} : {
|
|
143
151
|
type: "button",
|
|
144
152
|
onClick: e.onClick
|
|
145
153
|
};
|
|
146
|
-
return (
|
|
154
|
+
return (n, r) => (R(), E("div", {
|
|
147
155
|
ref_key: "root",
|
|
148
|
-
ref:
|
|
156
|
+
ref: s,
|
|
149
157
|
"data-glim": "ReadmeButton",
|
|
150
|
-
class: P(G(
|
|
158
|
+
class: P(G(vn)(e.brand, e.parts.length, e.note, o.value))
|
|
151
159
|
}, [
|
|
152
|
-
(R(!0), E(S, null, B(e.parts, (
|
|
153
|
-
|
|
154
|
-
|
|
160
|
+
(R(!0), E(S, null, B(e.parts, (t, r) => (R(), w(H(m(t)), N({ key: r }, { ref_for: !0 }, {
|
|
161
|
+
...h(t),
|
|
162
|
+
...d(r)
|
|
163
|
+
}, {
|
|
164
|
+
"aria-label": p(t),
|
|
165
|
+
class: G(hn)(r, o.value)
|
|
155
166
|
}), {
|
|
156
|
-
default: Y(() => [r === 0 &&
|
|
167
|
+
default: Y(() => [r === 0 && n.$slots.art ? (R(), E("span", lr, [V(n.$slots, "art")])) : (R(), E(S, { key: 1 }, [r === 0 && n.$slots.mark ? (R(), E("span", {
|
|
157
168
|
key: 0,
|
|
158
169
|
class: P(`glim-readme-btn-mark ${e.markClass ?? ""}`),
|
|
159
170
|
"aria-hidden": "true"
|
|
160
|
-
}, [V(
|
|
171
|
+
}, [V(n.$slots, "mark")], 2)) : T("", !0), D("span", ur, [D("span", dr, W(t.name), 1), f(t) ? (R(), E("span", fr, W(f(t)), 1)) : T("", !0)])], 64))]),
|
|
161
172
|
_: 2
|
|
162
173
|
}, 1040, ["aria-label", "class"]))), 128)),
|
|
163
|
-
|
|
164
|
-
e.hint ? (R(), E("span",
|
|
174
|
+
o.value ? T("", !0) : (R(), E("span", pr)),
|
|
175
|
+
e.hint ? (R(), E("span", mr, [A(Q, { tip: e.hint }, null, 8, ["tip"])])) : T("", !0),
|
|
176
|
+
A(t, { state: G(u) }, null, 8, ["state"])
|
|
165
177
|
], 2));
|
|
166
178
|
}
|
|
167
|
-
}),
|
|
179
|
+
}), hr = { class: "glim-info-text" }, gr = { class: "glim-info-text" }, _r = { class: "glim-readme-btn-rows glim-about-give" }, vr = /* @__PURE__ */ j({
|
|
168
180
|
__name: "InfoAboutCard",
|
|
169
181
|
props: {
|
|
170
182
|
text: {},
|
|
@@ -177,15 +189,15 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
177
189
|
hueIndex: {}
|
|
178
190
|
},
|
|
179
191
|
setup(e) {
|
|
180
|
-
return (t, n) => (R(), w(
|
|
192
|
+
return (t, n) => (R(), w(cr, {
|
|
181
193
|
"data-glim": "InfoAboutCard",
|
|
182
194
|
title: e.text.title,
|
|
183
195
|
"hue-index": e.hueIndex
|
|
184
196
|
}, {
|
|
185
197
|
default: Y(() => [
|
|
186
|
-
D("p",
|
|
187
|
-
D("p",
|
|
188
|
-
D("div",
|
|
198
|
+
D("p", hr, W(e.text.body), 1),
|
|
199
|
+
D("p", gr, W(e.text.coffee), 1),
|
|
200
|
+
D("div", _r, [
|
|
189
201
|
A($, {
|
|
190
202
|
brand: "coffee",
|
|
191
203
|
parts: [{
|
|
@@ -227,7 +239,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
227
239
|
_: 1
|
|
228
240
|
}, 8, ["title", "hue-index"]));
|
|
229
241
|
}
|
|
230
|
-
}),
|
|
242
|
+
}), yr = { class: "glim-info-text" }, br = { class: "glim-readme-btn-rows" }, xr = /* @__PURE__ */ j({
|
|
231
243
|
__name: "InfoHelpCard",
|
|
232
244
|
props: {
|
|
233
245
|
text: {},
|
|
@@ -243,19 +255,19 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
243
255
|
bugGlyph: {},
|
|
244
256
|
openUrl: {
|
|
245
257
|
type: Function,
|
|
246
|
-
default:
|
|
258
|
+
default: qt
|
|
247
259
|
},
|
|
248
260
|
hueIndex: {}
|
|
249
261
|
},
|
|
250
262
|
setup(e) {
|
|
251
|
-
let t = e, n = C(() =>
|
|
252
|
-
return (t, i) => (R(), w(
|
|
263
|
+
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(cr, {
|
|
253
265
|
"data-glim": "InfoHelpCard",
|
|
254
266
|
title: e.text.title,
|
|
255
267
|
hint: e.text.hint,
|
|
256
268
|
"hue-index": e.hueIndex
|
|
257
269
|
}, {
|
|
258
|
-
default: Y(() => [D("p",
|
|
270
|
+
default: Y(() => [D("p", yr, W(e.text.report), 1), D("div", br, [
|
|
259
271
|
A($, {
|
|
260
272
|
brand: "github",
|
|
261
273
|
parts: [{
|
|
@@ -286,7 +298,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
286
298
|
brand: "house",
|
|
287
299
|
parts: [{
|
|
288
300
|
name: e.text.mailButton,
|
|
289
|
-
onClick: () => e.openUrl(G(
|
|
301
|
+
onClick: () => e.openUrl(G(Ft)(e.mailAddress, e.text.mailSubject))
|
|
290
302
|
}],
|
|
291
303
|
"mark-class": "glim-house-mark"
|
|
292
304
|
}, O({ _: 2 }, [e.mailGlyph ? {
|
|
@@ -329,19 +341,19 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
329
341
|
"hue-index"
|
|
330
342
|
]));
|
|
331
343
|
}
|
|
332
|
-
}),
|
|
344
|
+
}), Sr = { class: "glim-version-rows" }, Cr = { class: "glim-version-name" }, wr = { class: "glim-version-part" }, Tr = {
|
|
333
345
|
key: 0,
|
|
334
346
|
class: "glim-version-sub"
|
|
335
|
-
},
|
|
347
|
+
}, Er = ["href", "onClick"], Dr = {
|
|
336
348
|
key: 1,
|
|
337
349
|
class: "glim-num glim-version-number"
|
|
338
|
-
},
|
|
350
|
+
}, Or = {
|
|
339
351
|
key: 0,
|
|
340
352
|
class: "glim-version-actions"
|
|
341
|
-
},
|
|
353
|
+
}, kr = {
|
|
342
354
|
role: "status",
|
|
343
355
|
class: "glim-sr-only"
|
|
344
|
-
},
|
|
356
|
+
}, Ar = /* @__PURE__ */ j({
|
|
345
357
|
__name: "InfoVersionCard",
|
|
346
358
|
props: {
|
|
347
359
|
text: {},
|
|
@@ -350,37 +362,37 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
350
362
|
onReleaseNotes: {},
|
|
351
363
|
openUrl: {
|
|
352
364
|
type: Function,
|
|
353
|
-
default:
|
|
365
|
+
default: qt
|
|
354
366
|
},
|
|
355
367
|
hueIndex: {}
|
|
356
368
|
},
|
|
357
369
|
setup(e) {
|
|
358
|
-
let t = e, n =
|
|
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 && Qn(i.value, t.updateCheck.text));
|
|
359
371
|
function s() {
|
|
360
|
-
|
|
372
|
+
Cn(t.updateCheck, i.value, (e) => {
|
|
361
373
|
i.value = e, e.kind === "failed" && a.value++;
|
|
362
374
|
});
|
|
363
375
|
}
|
|
364
376
|
function c(e, n) {
|
|
365
377
|
e.preventDefault(), t.openUrl(n);
|
|
366
378
|
}
|
|
367
|
-
return (t, n) => (R(), w(
|
|
379
|
+
return (t, n) => (R(), w(cr, {
|
|
368
380
|
"data-glim": "InfoVersionCard",
|
|
369
381
|
title: e.text.title,
|
|
370
382
|
hint: e.text.hint,
|
|
371
383
|
"hue-index": e.hueIndex
|
|
372
384
|
}, {
|
|
373
|
-
default: Y(() => [D("ul",
|
|
385
|
+
default: Y(() => [D("ul", Sr, [(R(!0), E(S, null, B(e.rows, (t) => (R(), E("li", {
|
|
374
386
|
key: t.name,
|
|
375
387
|
class: "glim-version-row"
|
|
376
|
-
}, [D("span",
|
|
388
|
+
}, [D("span", Cr, [D("span", wr, W(t.name), 1), t.sub ? (R(), E("span", Tr, W(t.sub), 1)) : T("", !0)]), G(er)(t).href ? (R(), E("a", {
|
|
377
389
|
key: 0,
|
|
378
|
-
href: G(
|
|
390
|
+
href: G(er)(t).href,
|
|
379
391
|
target: "_blank",
|
|
380
392
|
rel: "noopener noreferrer",
|
|
381
393
|
class: "glim-num glim-version-number",
|
|
382
|
-
onClick: (e) => c(e, G(
|
|
383
|
-
}, W(G(
|
|
394
|
+
onClick: (e) => c(e, G(er)(t).href)
|
|
395
|
+
}, W(G(er)(t).shown), 9, Er)) : (R(), E("span", Dr, W(G(er)(t).released ? G(er)(t).shown : e.text.unreleased(G(er)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (R(), E("div", Or, [
|
|
384
396
|
r.value ? (R(), w(f, {
|
|
385
397
|
key: 0,
|
|
386
398
|
label: e.text.releaseNotes,
|
|
@@ -393,7 +405,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
393
405
|
label: o.value.label,
|
|
394
406
|
"label-key": o.value.labelKey,
|
|
395
407
|
tone: o.value.tone,
|
|
396
|
-
stage: G(
|
|
408
|
+
stage: G($n)(e.updateCheck.text, o.value.label),
|
|
397
409
|
busy: i.value.kind === "busy",
|
|
398
410
|
class: P(a.value > 0 ? "glim-shake" : ""),
|
|
399
411
|
onClick: s
|
|
@@ -404,7 +416,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
404
416
|
"stage",
|
|
405
417
|
"busy",
|
|
406
418
|
"class"
|
|
407
|
-
])), D("span",
|
|
419
|
+
])), D("span", kr, W(o.value.announced), 1)], 64)) : T("", !0)
|
|
408
420
|
])) : T("", !0)]),
|
|
409
421
|
_: 3
|
|
410
422
|
}, 8, [
|
|
@@ -413,10 +425,10 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
413
425
|
"hue-index"
|
|
414
426
|
]));
|
|
415
427
|
}
|
|
416
|
-
}),
|
|
428
|
+
}), jr = {
|
|
417
429
|
"data-glim": "InfoTile",
|
|
418
430
|
style: { display: "contents" }
|
|
419
|
-
},
|
|
431
|
+
}, Mr = /* @__PURE__ */ j({
|
|
420
432
|
__name: "InfoTile",
|
|
421
433
|
props: {
|
|
422
434
|
version: {},
|
|
@@ -426,17 +438,17 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
426
438
|
},
|
|
427
439
|
setup(e) {
|
|
428
440
|
let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
429
|
-
return (t, r) => (R(), E("div",
|
|
430
|
-
A(
|
|
441
|
+
return (t, r) => (R(), E("div", jr, [
|
|
442
|
+
A(Ar, N(e.version, { "hue-index": n(0) }), O({ _: 2 }, [t.$slots["whats-new"] ? {
|
|
431
443
|
name: "whats-new",
|
|
432
444
|
fn: Y(() => [V(t.$slots, "whats-new")]),
|
|
433
445
|
key: "0"
|
|
434
446
|
} : void 0]), 1040, ["hue-index"]),
|
|
435
|
-
A(
|
|
436
|
-
A(
|
|
447
|
+
A(xr, N(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
448
|
+
A(vr, N(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
437
449
|
]));
|
|
438
450
|
}
|
|
439
|
-
}),
|
|
451
|
+
}), Nr = /* @__PURE__ */ j({
|
|
440
452
|
__name: "AboutCard",
|
|
441
453
|
props: {
|
|
442
454
|
text: {},
|
|
@@ -457,13 +469,13 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
457
469
|
mailGlyph: {},
|
|
458
470
|
openUrl: {
|
|
459
471
|
type: Function,
|
|
460
|
-
default:
|
|
472
|
+
default: qt
|
|
461
473
|
},
|
|
462
474
|
hueIndex: {}
|
|
463
475
|
},
|
|
464
476
|
setup(e) {
|
|
465
477
|
let t = e;
|
|
466
|
-
|
|
478
|
+
tr("AboutCard");
|
|
467
479
|
let n = C(() => [...t.version ? [{
|
|
468
480
|
name: t.text.version,
|
|
469
481
|
version: t.version,
|
|
@@ -473,7 +485,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
473
485
|
version: t.glimstoneVersion,
|
|
474
486
|
repoUrl: t.glimstoneRepoUrl
|
|
475
487
|
}]);
|
|
476
|
-
return (t, r) => (R(), w(
|
|
488
|
+
return (t, r) => (R(), w(Mr, {
|
|
477
489
|
"data-glim": "AboutCard",
|
|
478
490
|
"hue-index": e.hueIndex,
|
|
479
491
|
about: {
|
|
@@ -517,7 +529,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
517
529
|
"help"
|
|
518
530
|
]));
|
|
519
531
|
}
|
|
520
|
-
}),
|
|
532
|
+
}), Pr = ["innerHTML"], Fr = /* @__PURE__ */ j({
|
|
521
533
|
__name: "BrandMark",
|
|
522
534
|
props: { svg: {} },
|
|
523
535
|
setup(e) {
|
|
@@ -526,16 +538,16 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
526
538
|
class: "glim-brand-svg",
|
|
527
539
|
"aria-hidden": "true",
|
|
528
540
|
innerHTML: e.svg
|
|
529
|
-
}, null, 8,
|
|
541
|
+
}, null, 8, Pr));
|
|
530
542
|
}
|
|
531
|
-
}),
|
|
543
|
+
}), Ir = [
|
|
532
544
|
"aria-checked",
|
|
533
545
|
"aria-label",
|
|
534
546
|
"disabled"
|
|
535
|
-
],
|
|
547
|
+
], Lr = {
|
|
536
548
|
class: "glim-checkbox-box",
|
|
537
549
|
"aria-hidden": "true"
|
|
538
|
-
},
|
|
550
|
+
}, Rr = { key: 0 }, zr = /* @__PURE__ */ j({
|
|
539
551
|
__name: "Checkbox",
|
|
540
552
|
props: /*@__PURE__*/ M({
|
|
541
553
|
label: {},
|
|
@@ -570,13 +582,13 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
570
582
|
disabled: e.disabled,
|
|
571
583
|
class: P(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
572
584
|
onClick: i[0] ||= (e) => r.value = !r.value,
|
|
573
|
-
onKeydown: i[1] ||=
|
|
574
|
-
}, [D("span",
|
|
585
|
+
onKeydown: i[1] ||= ze(X(() => {}, ["prevent"]), ["enter"])
|
|
586
|
+
}, [D("span", Lr, [A(G(b))]), n.value ? T("", !0) : (R(), E("span", Rr, W(e.label), 1))], 42, Ir));
|
|
575
587
|
}
|
|
576
|
-
}),
|
|
588
|
+
}), Br = ["data-glim-title"], Vr = { class: "glim-modal-head" }, Hr = {
|
|
577
589
|
id: "coffee-title",
|
|
578
590
|
class: "glim-modal-title"
|
|
579
|
-
},
|
|
591
|
+
}, Ur = { class: "glim-give-body" }, Wr = { class: "glim-give-appeal" }, Gr = { class: "glim-give-intro" }, Kr = { class: "glim-give-frame" }, qr = ["src", "title"], Jr = { class: "glim-give-foot" }, Yr = /* @__PURE__ */ j({
|
|
580
592
|
__name: "CoffeeDialog",
|
|
581
593
|
props: {
|
|
582
594
|
widgetUrl: {},
|
|
@@ -599,7 +611,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
599
611
|
"aria-labelledby": "coffee-title",
|
|
600
612
|
class: "glim-modal-card glim-modal-card--wide glim-modal-card--tall"
|
|
601
613
|
}, [
|
|
602
|
-
D("div",
|
|
614
|
+
D("div", Vr, [D("h2", Hr, [A(e, {
|
|
603
615
|
tone: "heading",
|
|
604
616
|
size: "heading",
|
|
605
617
|
wrap: ""
|
|
@@ -607,34 +619,34 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
607
619
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
608
620
|
_: 1
|
|
609
621
|
})])]),
|
|
610
|
-
D("div",
|
|
611
|
-
D("p",
|
|
612
|
-
D("p",
|
|
613
|
-
D("div",
|
|
622
|
+
D("div", Ur, [
|
|
623
|
+
D("p", Wr, W(t.text.appeal), 1),
|
|
624
|
+
D("p", Gr, W(t.text.intro), 1),
|
|
625
|
+
D("div", Kr, [D("iframe", {
|
|
614
626
|
src: t.widgetUrl,
|
|
615
627
|
title: t.text.title,
|
|
616
628
|
allow: "payment",
|
|
617
629
|
class: "glim-give-iframe"
|
|
618
|
-
}, null, 8,
|
|
630
|
+
}, null, 8, qr)])
|
|
619
631
|
]),
|
|
620
|
-
D("div",
|
|
632
|
+
D("div", Jr, [A(f, {
|
|
621
633
|
label: t.text.closeLabel,
|
|
622
634
|
"label-key": "common.close",
|
|
623
635
|
tone: "neutral",
|
|
624
636
|
onClick: r[0] ||= (e) => i("close")
|
|
625
637
|
}, null, 8, ["label"])])
|
|
626
|
-
], 8,
|
|
638
|
+
], 8, Br)]));
|
|
627
639
|
}
|
|
628
|
-
}),
|
|
640
|
+
}), Xr = { class: "glim-picker-foot" }, Zr = {
|
|
629
641
|
key: 0,
|
|
630
642
|
class: "glim-picker-name"
|
|
631
|
-
},
|
|
643
|
+
}, Qr = ["value", "aria-label"], $r = { class: "glim-picker-actions" }, ei = /* @__PURE__ */ j({
|
|
632
644
|
__name: "ColorPicker",
|
|
633
645
|
props: /*@__PURE__*/ M({
|
|
634
646
|
anchor: { default: null },
|
|
635
647
|
names: {
|
|
636
648
|
type: [Array, Boolean],
|
|
637
|
-
default: () =>
|
|
649
|
+
default: () => Be
|
|
638
650
|
},
|
|
639
651
|
text: {}
|
|
640
652
|
}, {
|
|
@@ -648,20 +660,20 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
648
660
|
], ["update:modelValue"]),
|
|
649
661
|
setup(e, { emit: t }) {
|
|
650
662
|
let n = e, r = q(e, "modelValue"), i = t, a = {
|
|
651
|
-
...
|
|
663
|
+
...Ve,
|
|
652
664
|
...n.text
|
|
653
|
-
}, o = U(null), s = U(null), c = z(
|
|
665
|
+
}, o = U(null), s = U(null), c = z(Wt(r.value) ?? "#000000"), l = z(c.value), u = C(() => n.names === !1 ? null : Ht(c.value, n.names)), d = rt(c.value, (e) => {
|
|
654
666
|
c.value = e, l.value = e, i("input", e);
|
|
655
667
|
}, { text: a }), p;
|
|
656
668
|
L(() => {
|
|
657
|
-
s.value.appendChild(d.el), n.anchor && o.value && (p =
|
|
669
|
+
s.value.appendChild(d.el), n.anchor && o.value && (p = mt(o.value, n.anchor, () => i("close")), d.focus());
|
|
658
670
|
}), I(() => p?.()), J(r, (e) => {
|
|
659
|
-
let t =
|
|
671
|
+
let t = Wt(e);
|
|
660
672
|
t && (c.value = t, l.value = t, d.setValue(t));
|
|
661
673
|
});
|
|
662
674
|
function m(e) {
|
|
663
675
|
l.value = e.target.value;
|
|
664
|
-
let t =
|
|
676
|
+
let t = Wt(l.value);
|
|
665
677
|
t && (c.value = t, d.setValue(t), i("input", t));
|
|
666
678
|
}
|
|
667
679
|
function h() {
|
|
@@ -670,8 +682,8 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
670
682
|
function g(e) {
|
|
671
683
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
|
|
672
684
|
}
|
|
673
|
-
return (t, n) => (R(), w(
|
|
674
|
-
to: G(
|
|
685
|
+
return (t, n) => (R(), w(Se, {
|
|
686
|
+
to: G(un)(),
|
|
675
687
|
disabled: !e.anchor
|
|
676
688
|
}, [D("div", {
|
|
677
689
|
"data-glim": "ColorPicker",
|
|
@@ -686,12 +698,12 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
686
698
|
ref: s,
|
|
687
699
|
style: { display: "contents" }
|
|
688
700
|
}, null, 512),
|
|
689
|
-
D("div",
|
|
701
|
+
D("div", Xr, [
|
|
690
702
|
n[0] ||= D("span", {
|
|
691
703
|
class: "glim-picker-swatch",
|
|
692
704
|
"aria-hidden": "true"
|
|
693
705
|
}, null, -1),
|
|
694
|
-
u.value === null ? T("", !0) : (R(), E("span",
|
|
706
|
+
u.value === null ? T("", !0) : (R(), E("span", Zr, W(u.value), 1)),
|
|
695
707
|
D("input", {
|
|
696
708
|
class: "glim-picker-hex",
|
|
697
709
|
value: l.value,
|
|
@@ -699,27 +711,27 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
699
711
|
spellcheck: "false",
|
|
700
712
|
"aria-label": a.hex,
|
|
701
713
|
onInput: m
|
|
702
|
-
}, null, 40,
|
|
714
|
+
}, null, 40, Qr)
|
|
703
715
|
]),
|
|
704
|
-
D("div",
|
|
716
|
+
D("div", $r, [A(f, {
|
|
705
717
|
label: a.apply,
|
|
706
718
|
"label-key": "apply",
|
|
707
|
-
glyph: G(
|
|
719
|
+
glyph: G(b),
|
|
708
720
|
tone: "accent",
|
|
709
721
|
onClick: h
|
|
710
722
|
}, null, 8, ["label", "glyph"])])
|
|
711
723
|
], 38)], 8, ["to", "disabled"]));
|
|
712
724
|
}
|
|
713
|
-
}),
|
|
725
|
+
}), ti = ["data-glim-title"], ni = { class: "glim-modal-head" }, ri = {
|
|
714
726
|
id: "confirmdialog-title",
|
|
715
727
|
class: "glim-modal-title"
|
|
716
|
-
},
|
|
728
|
+
}, ii = { class: "glim-modal-body" }, ai = {
|
|
717
729
|
id: "confirmdialog-message",
|
|
718
730
|
class: "glim-modal-text"
|
|
719
|
-
},
|
|
731
|
+
}, oi = {
|
|
720
732
|
key: 0,
|
|
721
733
|
class: "glim-modal-extra"
|
|
722
|
-
},
|
|
734
|
+
}, si = { class: "glim-modal-foot" }, ci = /* @__PURE__ */ j({
|
|
723
735
|
__name: "ConfirmDialog",
|
|
724
736
|
props: {
|
|
725
737
|
title: {},
|
|
@@ -747,7 +759,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
747
759
|
"aria-describedby": "confirmdialog-message",
|
|
748
760
|
class: "glim-modal-card"
|
|
749
761
|
}, [
|
|
750
|
-
D("div",
|
|
762
|
+
D("div", ni, [D("h2", ri, [A(e, {
|
|
751
763
|
tone: "heading",
|
|
752
764
|
size: "heading",
|
|
753
765
|
wrap: ""
|
|
@@ -762,13 +774,13 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
762
774
|
class: "glim-modal-close",
|
|
763
775
|
onClick: r[0] ||= (e) => i("cancel")
|
|
764
776
|
}, null, 8, ["label", "glyph"]))]),
|
|
765
|
-
D("div",
|
|
766
|
-
D("div",
|
|
777
|
+
D("div", ii, [D("p", ai, W(t.message), 1), n.$slots.extra ? (R(), E("div", oi, [V(n.$slots, "extra")])) : T("", !0)]),
|
|
778
|
+
D("div", si, [A(f, {
|
|
767
779
|
ref_key: "cancel",
|
|
768
780
|
ref: o,
|
|
769
781
|
label: t.cancelLabel,
|
|
770
782
|
"label-key": "common.cancel",
|
|
771
|
-
glyph: G(
|
|
783
|
+
glyph: G(ce),
|
|
772
784
|
onClick: r[1] ||= (e) => i("cancel")
|
|
773
785
|
}, null, 8, ["label", "glyph"]), A(f, {
|
|
774
786
|
label: t.confirmLabel,
|
|
@@ -780,25 +792,25 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
780
792
|
"label-key",
|
|
781
793
|
"glyph"
|
|
782
794
|
])])
|
|
783
|
-
], 8,
|
|
795
|
+
], 8, ti)]));
|
|
784
796
|
}
|
|
785
|
-
}),
|
|
797
|
+
}), li = {
|
|
786
798
|
"data-glim": "Kbd",
|
|
787
799
|
class: "glim-kbd"
|
|
788
|
-
},
|
|
800
|
+
}, ui = /* @__PURE__ */ j({
|
|
789
801
|
__name: "Kbd",
|
|
790
802
|
setup(e) {
|
|
791
|
-
return (e, t) => (R(), E("kbd",
|
|
803
|
+
return (e, t) => (R(), E("kbd", li, [V(e.$slots, "default")]));
|
|
792
804
|
}
|
|
793
|
-
}),
|
|
805
|
+
}), di = {
|
|
794
806
|
key: 0,
|
|
795
807
|
class: "glim-menu-sep",
|
|
796
808
|
role: "separator"
|
|
797
|
-
},
|
|
809
|
+
}, fi = {
|
|
798
810
|
key: 1,
|
|
799
811
|
class: "glim-menu-head",
|
|
800
812
|
role: "presentation"
|
|
801
|
-
},
|
|
813
|
+
}, pi = [
|
|
802
814
|
"role",
|
|
803
815
|
"aria-checked",
|
|
804
816
|
"aria-haspopup",
|
|
@@ -806,26 +818,26 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
806
818
|
"disabled",
|
|
807
819
|
"data-row",
|
|
808
820
|
"onClick"
|
|
809
|
-
],
|
|
821
|
+
], mi = {
|
|
810
822
|
key: 0,
|
|
811
823
|
class: "glim-checkbox-box",
|
|
812
824
|
"aria-hidden": "true"
|
|
813
|
-
},
|
|
825
|
+
}, hi = {
|
|
814
826
|
key: 2,
|
|
815
827
|
class: "glim-menu-glyph",
|
|
816
828
|
"aria-hidden": "true"
|
|
817
|
-
},
|
|
829
|
+
}, gi = { class: "glim-menu-label" }, _i = {
|
|
818
830
|
key: 3,
|
|
819
831
|
class: "glim-menu-end glim-menu-caret",
|
|
820
832
|
"aria-hidden": "true"
|
|
821
|
-
},
|
|
833
|
+
}, vi = {
|
|
822
834
|
key: 4,
|
|
823
835
|
class: "glim-menu-end glim-menu-tick",
|
|
824
836
|
"aria-hidden": "true"
|
|
825
|
-
},
|
|
837
|
+
}, yi = {
|
|
826
838
|
key: 6,
|
|
827
839
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
828
|
-
},
|
|
840
|
+
}, bi = /* @__PURE__ */ j({
|
|
829
841
|
__name: "MenuRows",
|
|
830
842
|
props: {
|
|
831
843
|
entries: {},
|
|
@@ -833,15 +845,15 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
833
845
|
},
|
|
834
846
|
emits: ["pick"],
|
|
835
847
|
setup(e, { emit: t }) {
|
|
836
|
-
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } :
|
|
848
|
+
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : wt(e) ? {
|
|
837
849
|
kind: "head",
|
|
838
850
|
head: e
|
|
839
851
|
} : {
|
|
840
852
|
kind: "item",
|
|
841
853
|
item: e,
|
|
842
|
-
view:
|
|
854
|
+
view: Bt(e)
|
|
843
855
|
}));
|
|
844
|
-
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div",
|
|
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", di)) : t.kind === "head" ? (R(), E("div", fi, [D("span", null, W(t.head.head), 1), t.head.edit ? (R(), w(ge, {
|
|
845
857
|
key: 0,
|
|
846
858
|
tip: t.head.edit.tip,
|
|
847
859
|
role: "menuitem",
|
|
@@ -850,7 +862,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
850
862
|
"data-row": n,
|
|
851
863
|
onClick: (e) => r("pick", n)
|
|
852
864
|
}, {
|
|
853
|
-
default: Y(() => [(R(), w(H(t.head.edit.glyph ?? G(
|
|
865
|
+
default: Y(() => [(R(), w(H(t.head.edit.glyph ?? G(se))))]),
|
|
854
866
|
_: 2
|
|
855
867
|
}, 1032, [
|
|
856
868
|
"tip",
|
|
@@ -869,23 +881,23 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
869
881
|
"data-row": n,
|
|
870
882
|
onClick: (e) => r("pick", n)
|
|
871
883
|
}, [
|
|
872
|
-
t.view.lead === "box" ? (R(), E("span",
|
|
884
|
+
t.view.lead === "box" ? (R(), E("span", mi, [A(G(b))])) : t.view.lead === "dot" ? (R(), E("span", {
|
|
873
885
|
key: 1,
|
|
874
886
|
class: "glim-menu-dot",
|
|
875
887
|
style: F({ backgroundColor: t.item.color }),
|
|
876
888
|
"aria-hidden": "true"
|
|
877
|
-
}, null, 4)) : (R(), E("span",
|
|
878
|
-
D("span",
|
|
879
|
-
t.view.end === "submenu" ? (R(), E("span",
|
|
889
|
+
}, null, 4)) : (R(), E("span", hi, [t.view.lead === "glyph" ? (R(), w(H(t.item.glyph), { key: 0 })) : T("", !0)])),
|
|
890
|
+
D("span", gi, W(t.item.label), 1),
|
|
891
|
+
t.view.end === "submenu" ? (R(), E("span", _i, [A(G(le))])) : t.view.end === "tick" ? (R(), E("span", vi, [A(G(b))])) : t.view.end === "shortcut" ? (R(), w(ui, {
|
|
880
892
|
key: 5,
|
|
881
893
|
class: "glim-menu-end"
|
|
882
894
|
}, {
|
|
883
895
|
default: Y(() => [k(W(t.item.shortcut), 1)]),
|
|
884
896
|
_: 2
|
|
885
|
-
}, 1024)) : t.view.end === "count" ? (R(), E("span",
|
|
886
|
-
], 10,
|
|
897
|
+
}, 1024)) : t.view.end === "count" ? (R(), E("span", yi, W(t.item.count), 1)) : T("", !0)
|
|
898
|
+
], 10, pi))], 64))), 128));
|
|
887
899
|
}
|
|
888
|
-
}),
|
|
900
|
+
}), xi = ["id", "aria-label"], Si = ["id", "aria-label"], Ci = /* @__PURE__ */ j({
|
|
889
901
|
__name: "ContextMenu",
|
|
890
902
|
props: {
|
|
891
903
|
x: {},
|
|
@@ -905,22 +917,22 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
905
917
|
},
|
|
906
918
|
emits: ["close", "step"],
|
|
907
919
|
setup(e, { emit: t }) {
|
|
908
|
-
let n = e, r = t, i = U(null), a = U(null), o =
|
|
920
|
+
let n = e, r = t, i = U(null), a = U(null), o = xt(), s = z({
|
|
909
921
|
left: n.x,
|
|
910
922
|
top: n.y
|
|
911
|
-
}), c = U(null), l = z(null), u = C(() =>
|
|
923
|
+
}), c = U(null), l = z(null), u = C(() => Kn(n.items)), d = C(() => {
|
|
912
924
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
913
|
-
return e && e !== "-" && !
|
|
914
|
-
}), f = C(() => d.value?.sub ?
|
|
925
|
+
return e && e !== "-" && !wt(e) && e.sub ? e : null;
|
|
926
|
+
}), f = C(() => d.value?.sub ? Kn(d.value.sub) : null), p = () => ({
|
|
915
927
|
width: innerWidth,
|
|
916
928
|
height: innerHeight
|
|
917
929
|
});
|
|
918
930
|
function m(e) {
|
|
919
|
-
r("close"), e &&
|
|
931
|
+
r("close"), e && bn(n.opener ?? o);
|
|
920
932
|
}
|
|
921
933
|
function h() {
|
|
922
934
|
let e = i.value;
|
|
923
|
-
e && (s.value =
|
|
935
|
+
e && (s.value = cn(n.x, n.y, {
|
|
924
936
|
width: e.offsetWidth,
|
|
925
937
|
height: e.offsetHeight
|
|
926
938
|
}, p(), n.above));
|
|
@@ -930,62 +942,62 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
930
942
|
n.y,
|
|
931
943
|
n.above
|
|
932
944
|
], h, { flush: "post" });
|
|
933
|
-
let g,
|
|
945
|
+
let g, _;
|
|
934
946
|
L(() => {
|
|
935
|
-
h(), g =
|
|
947
|
+
h(), g = tt(m), _ = nt(() => [
|
|
936
948
|
i.value,
|
|
937
949
|
a.value,
|
|
938
950
|
n.opener
|
|
939
|
-
], () => m(!1)), i.value && n.fromEnd ?
|
|
940
|
-
}),
|
|
941
|
-
g?.(),
|
|
951
|
+
], () => m(!1)), i.value && n.fromEnd ? vt(i.value, "last") : i.value && _t(i.value);
|
|
952
|
+
}), De(() => {
|
|
953
|
+
g?.(), _?.();
|
|
942
954
|
}), J(c, (e) => {
|
|
943
955
|
l.value = null;
|
|
944
956
|
let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
|
|
945
957
|
if (!e || !t || !n) return;
|
|
946
958
|
let r = getComputedStyle(i.value).direction === "rtl";
|
|
947
|
-
l.value =
|
|
959
|
+
l.value = ln(t.getBoundingClientRect(), {
|
|
948
960
|
width: n.offsetWidth,
|
|
949
961
|
height: n.offsetHeight
|
|
950
|
-
}, p(), r), e.focus &&
|
|
962
|
+
}, p(), r), e.focus && _t(n);
|
|
951
963
|
}, { flush: "post" });
|
|
952
|
-
function
|
|
964
|
+
function v(e, t) {
|
|
953
965
|
let n = e[t];
|
|
954
|
-
n !== "-" && (
|
|
966
|
+
n !== "-" && (wt(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
|
|
955
967
|
at: t,
|
|
956
968
|
focus: !0
|
|
957
|
-
} : (
|
|
969
|
+
} : (Bt(n).staysOpen || m(!0), n.onSelect?.()));
|
|
958
970
|
}
|
|
959
|
-
function
|
|
971
|
+
function ee(e, t) {
|
|
960
972
|
if (e.key === "Tab") return m(!1);
|
|
961
973
|
let n = e.currentTarget;
|
|
962
|
-
if (
|
|
963
|
-
|
|
974
|
+
if (Et(e)) {
|
|
975
|
+
yt(n, e.key) && e.preventDefault();
|
|
964
976
|
return;
|
|
965
977
|
}
|
|
966
|
-
let a =
|
|
978
|
+
let a = zt(e.key, getComputedStyle(n).direction === "rtl");
|
|
967
979
|
if (!a) return;
|
|
968
|
-
if (e.preventDefault(), a !== "in" && a !== "out") return
|
|
980
|
+
if (e.preventDefault(), a !== "in" && a !== "out") return vt(n, a);
|
|
969
981
|
if (t) {
|
|
970
982
|
a === "out" && c.value && (i.value?.querySelector(`[data-row="${c.value.at}"]`)?.focus(), c.value = null);
|
|
971
983
|
return;
|
|
972
984
|
}
|
|
973
985
|
let o = Number(document.activeElement?.dataset.row), s = u.value[o];
|
|
974
|
-
a === "in" && s && s !== "-" && !
|
|
986
|
+
a === "in" && s && s !== "-" && !wt(s) && s.sub && !s.disabled ? c.value = {
|
|
975
987
|
at: o,
|
|
976
988
|
focus: !0
|
|
977
989
|
} : r("step", a === "in" ? 1 : -1);
|
|
978
990
|
}
|
|
979
|
-
function
|
|
991
|
+
function te(e) {
|
|
980
992
|
let t = e.target.closest("[data-row]");
|
|
981
993
|
if (!t) return;
|
|
982
|
-
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !
|
|
994
|
+
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !wt(r) && !!r.sub && !r.disabled;
|
|
983
995
|
i && c.value?.at !== n ? c.value = {
|
|
984
996
|
at: n,
|
|
985
997
|
focus: !1
|
|
986
998
|
} : !i && c.value && (c.value = null);
|
|
987
999
|
}
|
|
988
|
-
return (t, n) => (R(), w(
|
|
1000
|
+
return (t, n) => (R(), w(Se, { to: G(un)() }, [D("div", {
|
|
989
1001
|
id: e.id,
|
|
990
1002
|
ref_key: "menu",
|
|
991
1003
|
ref: i,
|
|
@@ -997,14 +1009,14 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
997
1009
|
left: `${s.value.left}px`,
|
|
998
1010
|
top: `${s.value.top}px`
|
|
999
1011
|
}),
|
|
1000
|
-
onKeydown: n[1] ||= (e) =>
|
|
1001
|
-
onMouseover:
|
|
1012
|
+
onKeydown: n[1] ||= (e) => ee(e, !1),
|
|
1013
|
+
onMouseover: te,
|
|
1002
1014
|
onContextmenu: n[2] ||= X(() => {}, ["prevent"])
|
|
1003
|
-
}, [A(
|
|
1015
|
+
}, [A(bi, {
|
|
1004
1016
|
entries: u.value,
|
|
1005
1017
|
"open-at": c.value?.at,
|
|
1006
|
-
onPick: n[0] ||= (e) =>
|
|
1007
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
1018
|
+
onPick: n[0] ||= (e) => v(u.value, e)
|
|
1019
|
+
}, null, 8, ["entries", "open-at"])], 44, xi), f.value ? (R(), E("div", {
|
|
1008
1020
|
key: 0,
|
|
1009
1021
|
id: d.value?.subId,
|
|
1010
1022
|
ref_key: "subMenu",
|
|
@@ -1016,17 +1028,17 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1016
1028
|
left: `${l.value?.left ?? 0}px`,
|
|
1017
1029
|
top: `${l.value?.top ?? 0}px`
|
|
1018
1030
|
}),
|
|
1019
|
-
onKeydown: n[4] ||= (e) =>
|
|
1031
|
+
onKeydown: n[4] ||= (e) => ee(e, !0),
|
|
1020
1032
|
onContextmenu: n[5] ||= X(() => {}, ["prevent"])
|
|
1021
|
-
}, [A(
|
|
1033
|
+
}, [A(bi, {
|
|
1022
1034
|
entries: f.value,
|
|
1023
|
-
onPick: n[3] ||= (e) =>
|
|
1024
|
-
}, null, 8, ["entries"])], 44,
|
|
1035
|
+
onPick: n[3] ||= (e) => v(f.value, e)
|
|
1036
|
+
}, null, 8, ["entries"])], 44, Si)) : T("", !0)], 8, ["to"]));
|
|
1025
1037
|
}
|
|
1026
|
-
}),
|
|
1038
|
+
}), wi = ["value", "aria-label"], Ti = {
|
|
1027
1039
|
role: "status",
|
|
1028
1040
|
class: "glim-sr-only"
|
|
1029
|
-
},
|
|
1041
|
+
}, Ei = /* @__PURE__ */ j({
|
|
1030
1042
|
__name: "CopyField",
|
|
1031
1043
|
props: {
|
|
1032
1044
|
value: {},
|
|
@@ -1042,12 +1054,12 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1042
1054
|
let n = e, r = t, i = x(() => n.label), a = z(!1), o = U(null), s;
|
|
1043
1055
|
I(() => clearTimeout(s));
|
|
1044
1056
|
async function c() {
|
|
1045
|
-
let e = await
|
|
1046
|
-
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1,
|
|
1057
|
+
let e = await ot(n.value);
|
|
1058
|
+
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, He)) : (o.value?.focus(), o.value?.select());
|
|
1047
1059
|
}
|
|
1048
1060
|
return (t, n) => (R(), E("span", {
|
|
1049
1061
|
"data-glim": "CopyField",
|
|
1050
|
-
class: P(["glim-copy", G(
|
|
1062
|
+
class: P(["glim-copy", G(pt)(e.width)])
|
|
1051
1063
|
}, [
|
|
1052
1064
|
D("input", {
|
|
1053
1065
|
ref_key: "field",
|
|
@@ -1057,11 +1069,11 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1057
1069
|
"aria-label": G(i),
|
|
1058
1070
|
spellcheck: "false",
|
|
1059
1071
|
class: "glim-input glim-input--mono"
|
|
1060
|
-
}, null, 8,
|
|
1072
|
+
}, null, 8, wi),
|
|
1061
1073
|
A(f, {
|
|
1062
1074
|
label: a.value ? e.text.copied : e.text.copy,
|
|
1063
1075
|
"label-key": a.value ? "copied" : "copy",
|
|
1064
|
-
glyph: a.value ? G(
|
|
1076
|
+
glyph: a.value ? G(b) : G(oe),
|
|
1065
1077
|
variant: "icon",
|
|
1066
1078
|
onClick: c
|
|
1067
1079
|
}, null, 8, [
|
|
@@ -1069,27 +1081,27 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1069
1081
|
"label-key",
|
|
1070
1082
|
"glyph"
|
|
1071
1083
|
]),
|
|
1072
|
-
D("span",
|
|
1084
|
+
D("span", Ti, W(a.value ? e.text.copied : ""), 1)
|
|
1073
1085
|
], 2));
|
|
1074
1086
|
}
|
|
1075
|
-
}),
|
|
1087
|
+
}), Di = ["data-glim-title"], Oi = { class: "glim-modal-head" }, ki = {
|
|
1076
1088
|
id: "cryptodonate-title",
|
|
1077
1089
|
class: "glim-modal-title"
|
|
1078
|
-
},
|
|
1090
|
+
}, Ai = { class: "glim-give-body glim-give-body--scroll" }, ji = { class: "glim-give-appeal" }, Mi = { class: "glim-give-intro" }, Ni = { class: "glim-give-well" }, Pi = {
|
|
1079
1091
|
dir: "ltr",
|
|
1080
1092
|
class: "glim-give-address"
|
|
1081
|
-
},
|
|
1093
|
+
}, Fi = ["aria-label"], Ii = ["aria-selected", "onClick"], Li = {
|
|
1082
1094
|
key: 0,
|
|
1083
1095
|
class: "glim-give-note"
|
|
1084
|
-
},
|
|
1096
|
+
}, Ri = ["aria-label"], zi = [
|
|
1085
1097
|
"aria-selected",
|
|
1086
1098
|
"aria-label",
|
|
1087
1099
|
"title",
|
|
1088
1100
|
"onClick"
|
|
1089
|
-
],
|
|
1101
|
+
], Bi = {
|
|
1090
1102
|
key: 1,
|
|
1091
1103
|
class: "glim-give-ticker"
|
|
1092
|
-
},
|
|
1104
|
+
}, Vi = { class: "glim-give-foot" }, Hi = /* @__PURE__ */ j({
|
|
1093
1105
|
__name: "CryptoDonateDialog",
|
|
1094
1106
|
props: {
|
|
1095
1107
|
coins: {},
|
|
@@ -1108,7 +1120,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1108
1120
|
function d(e, t) {
|
|
1109
1121
|
let n = e.id !== i.coin.id && e.tile;
|
|
1110
1122
|
return {
|
|
1111
|
-
...
|
|
1123
|
+
...Ct(t),
|
|
1112
1124
|
...n ? {
|
|
1113
1125
|
"--tile": e.tile.color,
|
|
1114
1126
|
"--tile-ink": e.tile.ink
|
|
@@ -1133,7 +1145,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1133
1145
|
"aria-labelledby": "cryptodonate-title",
|
|
1134
1146
|
class: "glim-modal-card glim-modal-card--wide"
|
|
1135
1147
|
}, [
|
|
1136
|
-
D("div",
|
|
1148
|
+
D("div", Oi, [D("h2", ki, [A(e, {
|
|
1137
1149
|
tone: "heading",
|
|
1138
1150
|
size: "heading",
|
|
1139
1151
|
wrap: ""
|
|
@@ -1141,12 +1153,12 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1141
1153
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
1142
1154
|
_: 1
|
|
1143
1155
|
})])]),
|
|
1144
|
-
D("div",
|
|
1145
|
-
D("p",
|
|
1146
|
-
D("p",
|
|
1147
|
-
D("div",
|
|
1156
|
+
D("div", Ai, [
|
|
1157
|
+
D("p", ji, W(t.text.appeal), 1),
|
|
1158
|
+
D("p", Mi, W(t.text.intro), 1),
|
|
1159
|
+
D("div", Ni, [
|
|
1148
1160
|
V(n.$slots, "qr", { value: t.network.address }),
|
|
1149
|
-
D("p",
|
|
1161
|
+
D("p", Pi, W(t.network.address), 1),
|
|
1150
1162
|
D("div", {
|
|
1151
1163
|
class: "glim-give-networks",
|
|
1152
1164
|
role: "listbox",
|
|
@@ -1156,11 +1168,11 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1156
1168
|
type: "button",
|
|
1157
1169
|
role: "option",
|
|
1158
1170
|
"aria-selected": e.id === t.network.id,
|
|
1159
|
-
style: F(G(
|
|
1171
|
+
style: F(G(Ct)(n)),
|
|
1160
1172
|
class: P(e.id === t.network.id ? "glim-give-network glim-hue glim-active" : "glim-give-network glim-hue"),
|
|
1161
1173
|
onClick: (n) => a("pick", t.coin, e)
|
|
1162
|
-
}, W(e.name), 15,
|
|
1163
|
-
t.network.note ? (R(), E("p",
|
|
1174
|
+
}, W(e.name), 15, Ii))), 128))], 8, Fi),
|
|
1175
|
+
t.network.note ? (R(), E("p", Li, W(t.network.note), 1)) : T("", !0),
|
|
1164
1176
|
A(f, {
|
|
1165
1177
|
label: t.text.copyLabel,
|
|
1166
1178
|
"label-key": "common.copy",
|
|
@@ -1183,17 +1195,17 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1183
1195
|
style: F(d(e, r)),
|
|
1184
1196
|
class: P(p(e)),
|
|
1185
1197
|
onClick: (t) => a("pick", e, e.networks[0])
|
|
1186
|
-
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span",
|
|
1198
|
+
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span", Bi, W(e.symbol), 1)) : T("", !0)], 14, zi))), 128))], 8, Ri)
|
|
1187
1199
|
]),
|
|
1188
|
-
D("div",
|
|
1200
|
+
D("div", Vi, [A(f, {
|
|
1189
1201
|
label: t.text.closeLabel,
|
|
1190
1202
|
"label-key": "common.close",
|
|
1191
1203
|
tone: "neutral",
|
|
1192
1204
|
onClick: r[1] ||= (e) => a("close")
|
|
1193
1205
|
}, null, 8, ["label"])])
|
|
1194
|
-
], 8,
|
|
1206
|
+
], 8, Di)]));
|
|
1195
1207
|
}
|
|
1196
|
-
}),
|
|
1208
|
+
}), Ui = ["aria-multiselectable", "aria-label"], Wi = 4, Gi = /* @__PURE__ */ j({
|
|
1197
1209
|
__name: "DropdownListbox",
|
|
1198
1210
|
props: {
|
|
1199
1211
|
open: { type: Boolean },
|
|
@@ -1204,8 +1216,8 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1204
1216
|
emits: ["close"],
|
|
1205
1217
|
setup(e, { emit: t }) {
|
|
1206
1218
|
let n = e;
|
|
1207
|
-
|
|
1208
|
-
let r = t, i = U(null), a = U(null), o =
|
|
1219
|
+
tr("DropdownListbox");
|
|
1220
|
+
let r = t, i = U(null), a = U(null), o = ye(() => n.open, je(n, "triggerRef")), s = !1;
|
|
1209
1221
|
J(() => n.open, (e) => {
|
|
1210
1222
|
e || (s = !!i.value?.contains(document.activeElement));
|
|
1211
1223
|
}, { flush: "sync" });
|
|
@@ -1218,10 +1230,10 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1218
1230
|
let r = {
|
|
1219
1231
|
width: document.documentElement.clientWidth || window.innerWidth,
|
|
1220
1232
|
height: document.documentElement.clientHeight || window.innerHeight
|
|
1221
|
-
}, { left: o, top: s } =
|
|
1233
|
+
}, { left: o, top: s } = at(t, {
|
|
1222
1234
|
width: t.width,
|
|
1223
1235
|
height: i.value.offsetHeight
|
|
1224
|
-
}, r,
|
|
1236
|
+
}, r, Wi);
|
|
1225
1237
|
a.value = {
|
|
1226
1238
|
left: o,
|
|
1227
1239
|
top: s,
|
|
@@ -1249,16 +1261,16 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1249
1261
|
a.value = null, s && n.triggerRef?.focus(), s = !1;
|
|
1250
1262
|
return;
|
|
1251
1263
|
}
|
|
1252
|
-
h(), await
|
|
1264
|
+
h(), await Te(), l(), await Te();
|
|
1253
1265
|
let t = c(), r = t.find((e) => e.getAttribute("aria-selected") === "true") ?? t[0];
|
|
1254
1266
|
r?.scrollIntoView?.({ block: "nearest" }), r?.focus();
|
|
1255
1267
|
}, {
|
|
1256
1268
|
immediate: !0,
|
|
1257
1269
|
flush: "post"
|
|
1258
|
-
}),
|
|
1270
|
+
}), Ee(() => m());
|
|
1259
1271
|
function g(e) {
|
|
1260
|
-
if (
|
|
1261
|
-
|
|
1272
|
+
if (Et(e)) {
|
|
1273
|
+
ht(c(), e.key) && e.preventDefault();
|
|
1262
1274
|
return;
|
|
1263
1275
|
}
|
|
1264
1276
|
if (![
|
|
@@ -1279,9 +1291,9 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1279
1291
|
}
|
|
1280
1292
|
t[r].scrollIntoView?.({ block: "nearest" }), t[r].focus();
|
|
1281
1293
|
}
|
|
1282
|
-
return (t, n) => e.open ? (R(), w(
|
|
1294
|
+
return (t, n) => e.open ? (R(), w(Se, {
|
|
1283
1295
|
key: 0,
|
|
1284
|
-
to: G(
|
|
1296
|
+
to: G(un)()
|
|
1285
1297
|
}, [D("div", {
|
|
1286
1298
|
ref_key: "panel",
|
|
1287
1299
|
ref: i,
|
|
@@ -1302,16 +1314,16 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1302
1314
|
...G(o).style.value
|
|
1303
1315
|
}),
|
|
1304
1316
|
onKeydown: g
|
|
1305
|
-
}, [V(t.$slots, "default")], 46,
|
|
1317
|
+
}, [V(t.$slots, "default")], 46, Ui)], 8, ["to"])) : T("", !0);
|
|
1306
1318
|
}
|
|
1307
|
-
}),
|
|
1319
|
+
}), Ki = ["data-glim-title"], qi = {
|
|
1308
1320
|
key: 0,
|
|
1309
1321
|
class: "glim-empty-glyph",
|
|
1310
1322
|
"aria-hidden": "true"
|
|
1311
|
-
},
|
|
1323
|
+
}, Ji = { class: "glim-empty-title" }, Yi = {
|
|
1312
1324
|
key: 1,
|
|
1313
1325
|
class: "glim-empty-hint"
|
|
1314
|
-
},
|
|
1326
|
+
}, Xi = /* @__PURE__ */ j({
|
|
1315
1327
|
__name: "EmptyState",
|
|
1316
1328
|
props: {
|
|
1317
1329
|
glyph: {},
|
|
@@ -1328,13 +1340,13 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1328
1340
|
"data-glim-title": e.title,
|
|
1329
1341
|
class: P(e.nested ? "glim-empty" : "glim-card glim-empty")
|
|
1330
1342
|
}, [
|
|
1331
|
-
e.glyph ? (R(), E("span",
|
|
1332
|
-
D("p",
|
|
1333
|
-
e.hint ? (R(), E("p",
|
|
1343
|
+
e.glyph ? (R(), E("span", qi, [(R(), w(H(e.glyph)))])) : T("", !0),
|
|
1344
|
+
D("p", Ji, W(e.title), 1),
|
|
1345
|
+
e.hint ? (R(), E("p", Yi, W(e.hint), 1)) : T("", !0),
|
|
1334
1346
|
V(t.$slots, "default")
|
|
1335
|
-
], 10,
|
|
1347
|
+
], 10, Ki));
|
|
1336
1348
|
}
|
|
1337
|
-
}),
|
|
1349
|
+
}), Zi = ["id"], Qi = /* @__PURE__ */ j({
|
|
1338
1350
|
__name: "FieldError",
|
|
1339
1351
|
props: { id: {} },
|
|
1340
1352
|
setup(e) {
|
|
@@ -1342,22 +1354,22 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1342
1354
|
"data-glim": "FieldError",
|
|
1343
1355
|
id: e.id,
|
|
1344
1356
|
class: "glim-field-error"
|
|
1345
|
-
}, [A(G(
|
|
1357
|
+
}, [A(G(m), { mark: G(Je).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8, Zi));
|
|
1346
1358
|
}
|
|
1347
|
-
}),
|
|
1359
|
+
}), $i = /* @__PURE__ */ j({
|
|
1348
1360
|
__name: "Pill",
|
|
1349
1361
|
props: { tone: { default: "neutral" } },
|
|
1350
1362
|
setup(e) {
|
|
1351
|
-
let t = e, n = C(() =>
|
|
1363
|
+
let t = e, n = C(() => sn(t.tone));
|
|
1352
1364
|
return (e, t) => (R(), E("span", {
|
|
1353
1365
|
"data-glim": "Pill",
|
|
1354
1366
|
class: P(n.value)
|
|
1355
1367
|
}, [V(e.$slots, "default")], 2));
|
|
1356
1368
|
}
|
|
1357
|
-
}),
|
|
1369
|
+
}), ea = { class: "glim-field-row-name" }, ta = {
|
|
1358
1370
|
key: 0,
|
|
1359
1371
|
class: "glim-field-row-controls"
|
|
1360
|
-
},
|
|
1372
|
+
}, na = /* @__PURE__ */ j({
|
|
1361
1373
|
__name: "FieldRow",
|
|
1362
1374
|
props: {
|
|
1363
1375
|
label: {},
|
|
@@ -1368,27 +1380,27 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1368
1380
|
},
|
|
1369
1381
|
setup(e) {
|
|
1370
1382
|
let t = e;
|
|
1371
|
-
|
|
1372
|
-
let n =
|
|
1383
|
+
ke(ve, C(() => t.label));
|
|
1384
|
+
let n = we(_e, !1), r = U(null);
|
|
1373
1385
|
return (t, i) => (R(), E("div", {
|
|
1374
1386
|
ref_key: "row",
|
|
1375
1387
|
ref: r,
|
|
1376
1388
|
"data-glim": "FieldRow",
|
|
1377
1389
|
class: P(["glim-field-row", { "glim-field-row--wide": e.wide }])
|
|
1378
|
-
}, [D("span",
|
|
1390
|
+
}, [D("span", ea, [D("span", {
|
|
1379
1391
|
class: "glim-field-row-label",
|
|
1380
|
-
onClick: i[0] ||= (e) => G(
|
|
1392
|
+
onClick: i[0] ||= (e) => G(fn)(r.value)
|
|
1381
1393
|
}, [V(t.$slots, "label", {}, () => [k(W(e.label), 1)])]), e.hint ? (R(), w(Q, {
|
|
1382
1394
|
key: 0,
|
|
1383
1395
|
tip: e.hint
|
|
1384
|
-
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span",
|
|
1396
|
+
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span", ta, [V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w($i, {
|
|
1385
1397
|
key: 0,
|
|
1386
1398
|
class: "glim-num",
|
|
1387
1399
|
tone: e.tone
|
|
1388
1400
|
}, {
|
|
1389
1401
|
default: Y(() => [k(W(e.value), 1)]),
|
|
1390
1402
|
_: 1
|
|
1391
|
-
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(
|
|
1403
|
+
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w($i, {
|
|
1392
1404
|
key: 0,
|
|
1393
1405
|
class: "glim-num",
|
|
1394
1406
|
tone: e.tone
|
|
@@ -1397,23 +1409,23 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1397
1409
|
_: 1
|
|
1398
1410
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
1399
1411
|
}
|
|
1400
|
-
}),
|
|
1412
|
+
}), ra = /* @__PURE__ */ j({
|
|
1401
1413
|
__name: "FieldRowGroup",
|
|
1402
1414
|
props: { columns: {} },
|
|
1403
1415
|
setup(e) {
|
|
1404
|
-
return
|
|
1416
|
+
return ke(_e, !0), (t, n) => (R(), E("div", {
|
|
1405
1417
|
"data-glim": "FieldRowGroup",
|
|
1406
1418
|
class: "glim-field-row-group",
|
|
1407
1419
|
style: F(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
1408
1420
|
}, [V(t.$slots, "default")], 4));
|
|
1409
1421
|
}
|
|
1410
|
-
}),
|
|
1422
|
+
}), ia = {
|
|
1411
1423
|
key: 0,
|
|
1412
1424
|
class: "glim-modal-foot"
|
|
1413
|
-
},
|
|
1425
|
+
}, aa = {
|
|
1414
1426
|
key: 0,
|
|
1415
1427
|
class: "glim-window-start"
|
|
1416
|
-
},
|
|
1428
|
+
}, oa = /* @__PURE__ */ j({
|
|
1417
1429
|
__name: "WindowFootRow",
|
|
1418
1430
|
props: {
|
|
1419
1431
|
actions: {},
|
|
@@ -1423,11 +1435,11 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1423
1435
|
},
|
|
1424
1436
|
emits: ["close"],
|
|
1425
1437
|
setup(e, { emit: t }) {
|
|
1426
|
-
let n = e, r = t, i = C(() =>
|
|
1438
|
+
let n = e, r = t, i = C(() => ir(n.actions, n.hasStart, {
|
|
1427
1439
|
cancel: {
|
|
1428
1440
|
label: n.text.cancel,
|
|
1429
1441
|
labelKey: "common.cancel",
|
|
1430
|
-
glyph:
|
|
1442
|
+
glyph: ce,
|
|
1431
1443
|
wayOut: !0
|
|
1432
1444
|
},
|
|
1433
1445
|
close: {
|
|
@@ -1440,12 +1452,14 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1440
1452
|
function a(e) {
|
|
1441
1453
|
e.onClick?.() !== !1 && r("close");
|
|
1442
1454
|
}
|
|
1443
|
-
return (t, n) => i.value.length ? (R(), E("div",
|
|
1455
|
+
return (t, n) => i.value.length ? (R(), E("div", ia, [e.hasStart ? (R(), E("span", aa, [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, {
|
|
1444
1456
|
key: t,
|
|
1445
1457
|
label: e.label,
|
|
1446
1458
|
"label-key": e.labelKey,
|
|
1447
1459
|
glyph: e.glyph,
|
|
1448
|
-
tone: e.primary ? "accent" : "neutral",
|
|
1460
|
+
tone: e.tone ?? (e.primary ? "accent" : "neutral"),
|
|
1461
|
+
busy: e.busy,
|
|
1462
|
+
title: e.title,
|
|
1449
1463
|
disabled: e.disabled,
|
|
1450
1464
|
onClick: (t) => a(e)
|
|
1451
1465
|
}), null, 16, [
|
|
@@ -1453,15 +1467,17 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1453
1467
|
"label-key",
|
|
1454
1468
|
"glyph",
|
|
1455
1469
|
"tone",
|
|
1470
|
+
"busy",
|
|
1471
|
+
"title",
|
|
1456
1472
|
"disabled",
|
|
1457
1473
|
"onClick"
|
|
1458
1474
|
]))), 128))])) : T("", !0);
|
|
1459
1475
|
}
|
|
1460
|
-
}),
|
|
1476
|
+
}), sa = [
|
|
1461
1477
|
"data-glim-title",
|
|
1462
1478
|
"aria-labelledby",
|
|
1463
1479
|
"aria-label"
|
|
1464
|
-
],
|
|
1480
|
+
], ca = ["id"], la = { class: "glim-modal-body glim-window-body" }, ua = /* @__PURE__ */ j({
|
|
1465
1481
|
inheritAttrs: !1,
|
|
1466
1482
|
__name: "Window",
|
|
1467
1483
|
props: {
|
|
@@ -1469,23 +1485,27 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1469
1485
|
actions: { default: () => [] },
|
|
1470
1486
|
start: {},
|
|
1471
1487
|
size: { default: "normal" },
|
|
1472
|
-
text: {}
|
|
1488
|
+
text: {},
|
|
1489
|
+
closeOnBackdrop: {
|
|
1490
|
+
type: Boolean,
|
|
1491
|
+
default: !0
|
|
1492
|
+
}
|
|
1473
1493
|
},
|
|
1474
1494
|
emits: ["close"],
|
|
1475
1495
|
setup(t, { expose: n, emit: r }) {
|
|
1476
|
-
let i = t, a = r, o =
|
|
1496
|
+
let i = t, a = r, o = Ne(), s = U(null), c = K(), l = xt(), u = C(() => i.start !== void 0 || !!o.start), d;
|
|
1477
1497
|
function f() {
|
|
1478
1498
|
d?.(), a("close");
|
|
1479
1499
|
}
|
|
1480
1500
|
L(() => {
|
|
1481
|
-
d =
|
|
1482
|
-
}),
|
|
1483
|
-
d?.(),
|
|
1501
|
+
d = Rn(() => s.value, f), s.value && rr(s.value)?.focus();
|
|
1502
|
+
}), De(() => {
|
|
1503
|
+
d?.(), bn(l);
|
|
1484
1504
|
}), n({ card: s });
|
|
1485
1505
|
function p() {
|
|
1486
|
-
|
|
1506
|
+
i.closeOnBackdrop && !Rt() && f();
|
|
1487
1507
|
}
|
|
1488
|
-
return (n, r) => (R(), w(
|
|
1508
|
+
return (n, r) => (R(), w(Se, { to: G(un)() }, [D("div", {
|
|
1489
1509
|
class: "glim-modal-backdrop",
|
|
1490
1510
|
onMousedown: X(p, ["self"])
|
|
1491
1511
|
}, [D("div", N({
|
|
@@ -1515,9 +1535,9 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1515
1535
|
}, {
|
|
1516
1536
|
default: Y(() => [V(n.$slots, "title", {}, () => [k(W(t.title), 1)])]),
|
|
1517
1537
|
_: 3
|
|
1518
|
-
})], 8,
|
|
1519
|
-
D("div",
|
|
1520
|
-
A(
|
|
1538
|
+
})], 8, ca),
|
|
1539
|
+
D("div", la, [V(n.$slots, "default")]),
|
|
1540
|
+
A(oa, {
|
|
1521
1541
|
actions: t.actions,
|
|
1522
1542
|
start: t.start,
|
|
1523
1543
|
"has-start": u.value,
|
|
@@ -1533,9 +1553,9 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1533
1553
|
"has-start",
|
|
1534
1554
|
"text"
|
|
1535
1555
|
])
|
|
1536
|
-
], 16,
|
|
1556
|
+
], 16, sa)], 32)], 8, ["to"]));
|
|
1537
1557
|
}
|
|
1538
|
-
}),
|
|
1558
|
+
}), da = { class: "glim-fortress-text" }, fa = /* @__PURE__ */ j({
|
|
1539
1559
|
__name: "FortressDoubtWindow",
|
|
1540
1560
|
props: {
|
|
1541
1561
|
app: {},
|
|
@@ -1545,14 +1565,14 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1545
1565
|
onClose: { type: Function }
|
|
1546
1566
|
},
|
|
1547
1567
|
setup(e) {
|
|
1548
|
-
let t = e, n = C(() =>
|
|
1568
|
+
let t = e, n = C(() => dt(t.text, t.app, t.instance)), r = C(() => [{
|
|
1549
1569
|
label: n.value.open,
|
|
1550
1570
|
labelKey: "open",
|
|
1551
1571
|
primary: !0,
|
|
1552
1572
|
attrs: { "data-fortress": "open-anyway" },
|
|
1553
1573
|
onClick: () => t.onOpen()
|
|
1554
1574
|
}]);
|
|
1555
|
-
return (t, i) => (R(), w(
|
|
1575
|
+
return (t, i) => (R(), w(ua, {
|
|
1556
1576
|
"data-glim": "FortressDoubtWindow",
|
|
1557
1577
|
title: n.value.title,
|
|
1558
1578
|
actions: r.value,
|
|
@@ -1562,7 +1582,7 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1562
1582
|
},
|
|
1563
1583
|
onClose: i[0] ||= (t) => e.onClose()
|
|
1564
1584
|
}, {
|
|
1565
|
-
default: Y(() => [D("div",
|
|
1585
|
+
default: Y(() => [D("div", da, [D("p", null, W(n.value.body), 1)])]),
|
|
1566
1586
|
_: 1
|
|
1567
1587
|
}, 8, [
|
|
1568
1588
|
"title",
|
|
@@ -1570,32 +1590,32 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1570
1590
|
"text"
|
|
1571
1591
|
]));
|
|
1572
1592
|
}
|
|
1573
|
-
}),
|
|
1593
|
+
}), pa = ["data-glim-title"], ma = { class: "glim-instance-top" }, ha = {
|
|
1574
1594
|
key: 0,
|
|
1575
1595
|
class: "glim-instance-mark",
|
|
1576
1596
|
"aria-hidden": "true"
|
|
1577
|
-
},
|
|
1597
|
+
}, ga = ["src"], _a = { class: "glim-instance-main" }, va = { class: "glim-instance-name" }, ya = { class: "glim-instance-title" }, ba = {
|
|
1578
1598
|
key: 0,
|
|
1579
1599
|
class: "glim-instance-badges"
|
|
1580
|
-
},
|
|
1600
|
+
}, xa = {
|
|
1581
1601
|
key: 0,
|
|
1582
1602
|
class: "glim-eyebrow"
|
|
1583
|
-
},
|
|
1603
|
+
}, Sa = {
|
|
1584
1604
|
key: 1,
|
|
1585
1605
|
class: "glim-instance-facts glim-num"
|
|
1586
|
-
},
|
|
1606
|
+
}, Ca = {
|
|
1587
1607
|
key: 2,
|
|
1588
1608
|
class: "glim-instance-figures"
|
|
1589
|
-
},
|
|
1609
|
+
}, wa = { class: "glim-num" }, Ta = {
|
|
1590
1610
|
key: 3,
|
|
1591
1611
|
class: "glim-instance-acts"
|
|
1592
|
-
},
|
|
1612
|
+
}, Ea = {
|
|
1593
1613
|
key: 0,
|
|
1594
1614
|
class: "glim-instance-body"
|
|
1595
|
-
},
|
|
1615
|
+
}, Da = {
|
|
1596
1616
|
key: 1,
|
|
1597
1617
|
class: "glim-instance-acts"
|
|
1598
|
-
},
|
|
1618
|
+
}, Oa = /* @__PURE__ */ j({
|
|
1599
1619
|
__name: "InstanceCard",
|
|
1600
1620
|
props: {
|
|
1601
1621
|
logo: {},
|
|
@@ -1606,34 +1626,34 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1606
1626
|
hueIndex: {}
|
|
1607
1627
|
},
|
|
1608
1628
|
setup(e) {
|
|
1609
|
-
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 :
|
|
1629
|
+
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 : Ct(t.hueIndex));
|
|
1610
1630
|
return (t, i) => (R(), E("div", {
|
|
1611
1631
|
"data-glim": "InstanceCard",
|
|
1612
1632
|
"data-glim-title": e.name,
|
|
1613
1633
|
class: P(["glim-card glim-instance", e.hueIndex !== void 0 && "glim-hue"]),
|
|
1614
1634
|
style: F(r.value)
|
|
1615
1635
|
}, [
|
|
1616
|
-
D("div",
|
|
1636
|
+
D("div", ma, [t.$slots.logo ? (R(), E("span", ha, [V(t.$slots, "logo")])) : e.logo ? (R(), E("img", {
|
|
1617
1637
|
key: 1,
|
|
1618
1638
|
class: "glim-instance-mark",
|
|
1619
1639
|
src: e.logo,
|
|
1620
1640
|
alt: "",
|
|
1621
1641
|
draggable: "false"
|
|
1622
|
-
}, null, 8,
|
|
1623
|
-
D("div",
|
|
1624
|
-
e.eyebrow ? (R(), E("span",
|
|
1625
|
-
n.value ? (R(), E("p",
|
|
1626
|
-
e.figures?.length ? (R(), E("dl",
|
|
1627
|
-
t.$slots.actions && !t.$slots.default ? (R(), E("div",
|
|
1642
|
+
}, null, 8, ga)) : T("", !0), D("div", _a, [
|
|
1643
|
+
D("div", va, [D("h3", ya, W(e.name), 1), t.$slots.badges ? (R(), E("span", ba, [V(t.$slots, "badges")])) : T("", !0)]),
|
|
1644
|
+
e.eyebrow ? (R(), E("span", xa, W(e.eyebrow), 1)) : T("", !0),
|
|
1645
|
+
n.value ? (R(), E("p", Sa, W(n.value), 1)) : T("", !0),
|
|
1646
|
+
e.figures?.length ? (R(), E("dl", Ca, [(R(!0), E(S, null, B(e.figures, (e) => (R(), E("div", { key: e.label }, [D("dt", null, W(e.label), 1), D("dd", wa, W(e.value), 1)]))), 128))])) : T("", !0),
|
|
1647
|
+
t.$slots.actions && !t.$slots.default ? (R(), E("div", Ta, [V(t.$slots, "actions")])) : T("", !0)
|
|
1628
1648
|
])]),
|
|
1629
|
-
t.$slots.default ? (R(), E("div",
|
|
1630
|
-
t.$slots.actions && t.$slots.default ? (R(), E("div",
|
|
1631
|
-
], 14,
|
|
1649
|
+
t.$slots.default ? (R(), E("div", Ea, [V(t.$slots, "default")])) : T("", !0),
|
|
1650
|
+
t.$slots.actions && t.$slots.default ? (R(), E("div", Da, [V(t.$slots, "actions")])) : T("", !0)
|
|
1651
|
+
], 14, pa));
|
|
1632
1652
|
}
|
|
1633
|
-
}),
|
|
1653
|
+
}), ka = {
|
|
1634
1654
|
"data-glim": "PresenceBadges",
|
|
1635
1655
|
style: { display: "contents" }
|
|
1636
|
-
},
|
|
1656
|
+
}, Aa = /* @__PURE__ */ j({
|
|
1637
1657
|
__name: "PresenceBadges",
|
|
1638
1658
|
props: {
|
|
1639
1659
|
instance: {},
|
|
@@ -1645,24 +1665,24 @@ var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1645
1665
|
checking: n.text.checking,
|
|
1646
1666
|
away: n.text.away
|
|
1647
1667
|
})[n.instance.presence];
|
|
1648
|
-
return (n, i) => (R(), E("span",
|
|
1668
|
+
return (n, i) => (R(), E("span", ka, [t.instance.relay ? (R(), w(e, { key: 0 }, {
|
|
1649
1669
|
default: Y(() => [k(W(t.text.viaRelay), 1)]),
|
|
1650
1670
|
_: 1
|
|
1651
|
-
})) : T("", !0), A(e, { tone: G(
|
|
1671
|
+
})) : T("", !0), A(e, { tone: G(dn)(t.instance.presence) }, {
|
|
1652
1672
|
default: Y(() => [k(W(r()), 1)]),
|
|
1653
1673
|
_: 1
|
|
1654
1674
|
}, 8, ["tone"])]));
|
|
1655
1675
|
}
|
|
1656
1676
|
});
|
|
1657
1677
|
// src/fortressParts.ts
|
|
1658
|
-
function
|
|
1659
|
-
return e ?
|
|
1678
|
+
function ja(e) {
|
|
1679
|
+
return e ? p(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
|
|
1660
1680
|
}
|
|
1661
1681
|
// src/FortressAppCard.vue?vue&type=script&setup=true&lang.ts
|
|
1662
|
-
var
|
|
1682
|
+
var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
|
|
1663
1683
|
class: "glim-instance-device",
|
|
1664
1684
|
"aria-hidden": "true"
|
|
1665
|
-
},
|
|
1685
|
+
}, Fa = { class: "glim-instance-row-text" }, Ia = { class: "glim-instance-row-name" }, La = { class: "glim-instance-row-sub glim-num" }, Ra = { class: "glim-instance-row-end" }, za = /* @__PURE__ */ j({
|
|
1666
1686
|
inheritAttrs: !1,
|
|
1667
1687
|
__name: "FortressAppCard",
|
|
1668
1688
|
props: {
|
|
@@ -1675,15 +1695,15 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1675
1695
|
removeKey: { default: "delete" }
|
|
1676
1696
|
},
|
|
1677
1697
|
setup(t) {
|
|
1678
|
-
let n = t, r = C(() =>
|
|
1698
|
+
let n = t, r = C(() => Qe(n.app, n.text, n.lang)), i = C(() => r.value.rows.length === 0), a = (e) => ({
|
|
1679
1699
|
connected: n.text.connected,
|
|
1680
1700
|
checking: n.text.checking,
|
|
1681
1701
|
away: n.text.away
|
|
1682
|
-
})[e.presence], o = (e) =>
|
|
1702
|
+
})[e.presence], o = (e) => ja(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);
|
|
1683
1703
|
function d(e) {
|
|
1684
|
-
e.doubt ? u.value = e :
|
|
1704
|
+
e.doubt ? u.value = e : Jt(n.app, e, n.onOpen);
|
|
1685
1705
|
}
|
|
1686
|
-
return (n, p) => (R(), E(S, null, [A(
|
|
1706
|
+
return (n, p) => (R(), E(S, null, [A(Oa, N(n.$attrs, {
|
|
1687
1707
|
"data-glim": "FortressAppCard",
|
|
1688
1708
|
"data-fortress-app": t.app.id,
|
|
1689
1709
|
logo: t.app.logo,
|
|
@@ -1710,7 +1730,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1710
1730
|
default: Y(() => [k(W(r.value.needs), 1)]),
|
|
1711
1731
|
_: 1
|
|
1712
1732
|
})) : T("", !0),
|
|
1713
|
-
A(
|
|
1733
|
+
A(Aa, {
|
|
1714
1734
|
instance: r.value.main,
|
|
1715
1735
|
text: t.text
|
|
1716
1736
|
}, null, 8, ["instance", "text"])
|
|
@@ -1718,15 +1738,15 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1718
1738
|
_: 2
|
|
1719
1739
|
}, [i.value ? void 0 : {
|
|
1720
1740
|
name: "default",
|
|
1721
|
-
fn: Y(() => [D("ul",
|
|
1741
|
+
fn: Y(() => [D("ul", Ma, [(R(!0), E(S, null, B(r.value.rows, ({ instance: n, sub: r, open: i }) => (R(), E("li", {
|
|
1722
1742
|
key: n.id,
|
|
1723
1743
|
class: "glim-instance-row",
|
|
1724
1744
|
"data-instance": n.id
|
|
1725
1745
|
}, [
|
|
1726
|
-
D("span",
|
|
1727
|
-
D("span",
|
|
1728
|
-
D("span",
|
|
1729
|
-
A(e, { tone: G(
|
|
1746
|
+
D("span", Pa, [o(n) ? (R(), w(H(o(n)), { key: 0 })) : T("", !0)]),
|
|
1747
|
+
D("span", Fa, [D("span", Ia, W(n.device), 1), D("span", La, W(r), 1)]),
|
|
1748
|
+
D("span", Ra, [
|
|
1749
|
+
A(e, { tone: G(dn)(n.presence) }, {
|
|
1730
1750
|
default: Y(() => [k(W(a(n)), 1)]),
|
|
1731
1751
|
_: 2
|
|
1732
1752
|
}, 1032, ["tone"]),
|
|
@@ -1762,7 +1782,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1762
1782
|
"onClick"
|
|
1763
1783
|
])) : T("", !0)
|
|
1764
1784
|
])
|
|
1765
|
-
], 8,
|
|
1785
|
+
], 8, Na))), 128))])]),
|
|
1766
1786
|
key: "0"
|
|
1767
1787
|
}, l.value ? {
|
|
1768
1788
|
name: "actions",
|
|
@@ -1793,12 +1813,12 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1793
1813
|
"eyebrow",
|
|
1794
1814
|
"facts",
|
|
1795
1815
|
"hue-index"
|
|
1796
|
-
]), u.value ? (R(), w(
|
|
1816
|
+
]), u.value ? (R(), w(fa, {
|
|
1797
1817
|
key: 0,
|
|
1798
1818
|
app: t.app,
|
|
1799
1819
|
instance: u.value,
|
|
1800
1820
|
text: t.text,
|
|
1801
|
-
"on-open": () => G(
|
|
1821
|
+
"on-open": () => G(Jt)(t.app, u.value, t.onOpen),
|
|
1802
1822
|
"on-close": () => u.value = null
|
|
1803
1823
|
}, null, 8, [
|
|
1804
1824
|
"app",
|
|
@@ -1808,14 +1828,14 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1808
1828
|
"on-close"
|
|
1809
1829
|
])) : T("", !0)], 64));
|
|
1810
1830
|
}
|
|
1811
|
-
}),
|
|
1831
|
+
}), Ba = [
|
|
1812
1832
|
"href",
|
|
1813
1833
|
"data-sel-id",
|
|
1814
1834
|
"aria-selected",
|
|
1815
1835
|
"aria-current",
|
|
1816
1836
|
"aria-describedby",
|
|
1817
1837
|
"tabindex"
|
|
1818
|
-
],
|
|
1838
|
+
], Va = [
|
|
1819
1839
|
"data-sel-id",
|
|
1820
1840
|
"id",
|
|
1821
1841
|
"role",
|
|
@@ -1828,7 +1848,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1828
1848
|
"aria-hidden",
|
|
1829
1849
|
"disabled",
|
|
1830
1850
|
"tabindex"
|
|
1831
|
-
],
|
|
1851
|
+
], Ha = ["id"], Ua = /* @__PURE__ */ j({
|
|
1832
1852
|
__name: "SelectorSegment",
|
|
1833
1853
|
props: {
|
|
1834
1854
|
item: {},
|
|
@@ -1852,7 +1872,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1852
1872
|
},
|
|
1853
1873
|
emits: ["select"],
|
|
1854
1874
|
setup(e, { emit: i }) {
|
|
1855
|
-
let a = e, o = i, s = C(() =>
|
|
1875
|
+
let a = e, o = i, s = C(() => wn({
|
|
1856
1876
|
strip: a.strip,
|
|
1857
1877
|
orientation: a.orientation,
|
|
1858
1878
|
size: a.size,
|
|
@@ -1902,7 +1922,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1902
1922
|
key: 1,
|
|
1903
1923
|
"data-sel-label": "",
|
|
1904
1924
|
class: P(s.value.labelClass)
|
|
1905
|
-
}, W(e.item.label), 3))], 16,
|
|
1925
|
+
}, W(e.item.label), 3))], 16, Ba)) : (R(), E(S, { key: 1 }, [A(G(r), N({
|
|
1906
1926
|
on: u.value,
|
|
1907
1927
|
show: G(c).show,
|
|
1908
1928
|
hide: G(c).hide
|
|
@@ -1911,7 +1931,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1911
1931
|
ref: m,
|
|
1912
1932
|
type: "button",
|
|
1913
1933
|
"data-sel-id": e.item.id,
|
|
1914
|
-
id: e.panelId && f.value ? G(
|
|
1934
|
+
id: e.panelId && f.value ? G(kn)(e.panelId, e.item.id) : void 0,
|
|
1915
1935
|
role: e.strip.kind === "toggle" ? void 0 : e.strip.kind,
|
|
1916
1936
|
"aria-selected": f.value ? e.on : void 0,
|
|
1917
1937
|
"aria-controls": e.panelId && f.value && e.on ? e.panelId : void 0,
|
|
@@ -1933,7 +1953,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1933
1953
|
key: 1,
|
|
1934
1954
|
"data-sel-label": "",
|
|
1935
1955
|
class: P(s.value.labelClass)
|
|
1936
|
-
}, W(e.item.label), 3))], 16,
|
|
1956
|
+
}, W(e.item.label), 3))], 16, Va)]),
|
|
1937
1957
|
_: 1
|
|
1938
1958
|
}, 16, [
|
|
1939
1959
|
"on",
|
|
@@ -1943,16 +1963,16 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1943
1963
|
key: 0,
|
|
1944
1964
|
id: G(l),
|
|
1945
1965
|
hidden: ""
|
|
1946
|
-
}, W(s.value.tip), 9,
|
|
1966
|
+
}, W(s.value.tip), 9, Ha)) : T("", !0)], 64)), A(t, { state: G(c) }, null, 8, ["state"])], 64));
|
|
1947
1967
|
}
|
|
1948
|
-
}),
|
|
1968
|
+
}), Wa = [
|
|
1949
1969
|
"role",
|
|
1950
1970
|
"aria-label",
|
|
1951
1971
|
"aria-orientation"
|
|
1952
|
-
],
|
|
1972
|
+
], Ga = {
|
|
1953
1973
|
key: 0,
|
|
1954
1974
|
class: "glim-sel-list"
|
|
1955
|
-
},
|
|
1975
|
+
}, Ka = /* @__PURE__ */ j({
|
|
1956
1976
|
__name: "Selector",
|
|
1957
1977
|
props: {
|
|
1958
1978
|
items: {},
|
|
@@ -1998,10 +2018,10 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
1998
2018
|
setup(e, { emit: t }) {
|
|
1999
2019
|
let n = e, r = t, i = C(() => n.modelValue);
|
|
2000
2020
|
function a(e) {
|
|
2001
|
-
let t = U(
|
|
2002
|
-
return
|
|
2021
|
+
let t = U(It(e));
|
|
2022
|
+
return Ee(Hn(e, () => t.value = It(e))), t;
|
|
2003
2023
|
}
|
|
2004
|
-
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(
|
|
2024
|
+
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(En(n.size, n.orientation)), u = a(Ye), d = C(() => An({
|
|
2005
2025
|
mode: c.value,
|
|
2006
2026
|
select: n.select === "many" ? "many" : "one",
|
|
2007
2027
|
activation: n.activation,
|
|
@@ -2026,7 +2046,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2026
2046
|
i && r(i);
|
|
2027
2047
|
}, { flush: "post" });
|
|
2028
2048
|
}
|
|
2029
|
-
g(() => d.value.counted, (e) => d.value.counted ?
|
|
2049
|
+
g(() => d.value.counted, (e) => d.value.counted ? st(e) : void 0), g(() => [
|
|
2030
2050
|
n.orientation,
|
|
2031
2051
|
d.value.pinWidth,
|
|
2032
2052
|
n.fit,
|
|
@@ -2043,65 +2063,65 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2043
2063
|
return;
|
|
2044
2064
|
}
|
|
2045
2065
|
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
2046
|
-
return
|
|
2066
|
+
return nr(e, {
|
|
2047
2067
|
pinWidth: t,
|
|
2048
2068
|
fit: n.fit,
|
|
2049
2069
|
canSqueeze: r,
|
|
2050
2070
|
canList: i
|
|
2051
2071
|
}, (e) => p.value = e);
|
|
2052
2072
|
});
|
|
2053
|
-
let
|
|
2073
|
+
let _ = C(() => Dn({
|
|
2054
2074
|
layout: p.value,
|
|
2055
2075
|
inline: s.value,
|
|
2056
2076
|
fit: n.fit
|
|
2057
|
-
})),
|
|
2077
|
+
})), v = C(() => p.value?.fit === "list"), ee = C(() => n.items.map((e, t) => ({
|
|
2058
2078
|
value: String(e.id),
|
|
2059
2079
|
label: e.label,
|
|
2060
2080
|
glyph: e.glyph,
|
|
2061
|
-
disabled:
|
|
2062
|
-
}))),
|
|
2063
|
-
function
|
|
2081
|
+
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(() => Sn(b.value, n.items.findIndex((e) => ne(e.id))));
|
|
2083
|
+
function ie(e) {
|
|
2064
2084
|
r("press", e);
|
|
2065
|
-
let t =
|
|
2085
|
+
let t = y.value ? Jn(i.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
2066
2086
|
t !== i.value && r("update:modelValue", t);
|
|
2067
2087
|
}
|
|
2068
|
-
function
|
|
2088
|
+
function ae(e) {
|
|
2069
2089
|
let t = n.items.find((t) => String(t.id) === e);
|
|
2070
|
-
t &&
|
|
2090
|
+
t && ie(t.id);
|
|
2071
2091
|
}
|
|
2072
|
-
function
|
|
2073
|
-
if (
|
|
2092
|
+
function oe(e) {
|
|
2093
|
+
if (v.value) return;
|
|
2074
2094
|
let t = e.target;
|
|
2075
2095
|
if (n.orientation === "vertical" && e.key === " " && t.dataset.selId) {
|
|
2076
2096
|
e.preventDefault(), t.click();
|
|
2077
2097
|
return;
|
|
2078
2098
|
}
|
|
2079
|
-
let r =
|
|
2099
|
+
let r = xn(f.value, e.key, n.orientation);
|
|
2080
2100
|
if (!r) return;
|
|
2081
2101
|
e.preventDefault();
|
|
2082
2102
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
2083
|
-
d.value.autoSelect && i &&
|
|
2103
|
+
d.value.autoSelect && i && ie(i.id);
|
|
2084
2104
|
}
|
|
2085
2105
|
return (t, n) => (R(), E("div", {
|
|
2086
2106
|
ref_key: "track",
|
|
2087
2107
|
ref: f,
|
|
2088
2108
|
"data-glim": "Selector",
|
|
2089
|
-
role:
|
|
2090
|
-
"aria-label":
|
|
2091
|
-
"aria-orientation":
|
|
2092
|
-
class: P([d.value.className, { "glim-sel--listed":
|
|
2093
|
-
style: F(
|
|
2094
|
-
onKeydown:
|
|
2095
|
-
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(
|
|
2109
|
+
role: v.value ? void 0 : d.value.role,
|
|
2110
|
+
"aria-label": v.value ? void 0 : G(o),
|
|
2111
|
+
"aria-orientation": v.value || d.value.role === "group" ? void 0 : e.orientation,
|
|
2112
|
+
class: P([d.value.className, { "glim-sel--listed": v.value }]),
|
|
2113
|
+
style: F(_.value.track),
|
|
2114
|
+
onKeydown: oe
|
|
2115
|
+
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(Ua, {
|
|
2096
2116
|
key: t.id,
|
|
2097
2117
|
item: t,
|
|
2098
2118
|
index: n,
|
|
2099
2119
|
strip: d.value,
|
|
2100
|
-
on:
|
|
2101
|
-
disabled:
|
|
2102
|
-
roved: n ===
|
|
2103
|
-
listed:
|
|
2104
|
-
share: e.orientation === "vertical" ? {} :
|
|
2120
|
+
on: ne(t.id),
|
|
2121
|
+
disabled: b.value[n],
|
|
2122
|
+
roved: n === re.value,
|
|
2123
|
+
listed: v.value,
|
|
2124
|
+
share: e.orientation === "vertical" ? {} : _.value.segment,
|
|
2105
2125
|
squeezed: p.value?.fit === "squeezed",
|
|
2106
2126
|
cut: !!p.value?.cut[n],
|
|
2107
2127
|
orientation: e.orientation,
|
|
@@ -2112,7 +2132,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2112
2132
|
hue: e.hue,
|
|
2113
2133
|
"hue-offset": e.hueOffset,
|
|
2114
2134
|
"panel-id": e.panelId,
|
|
2115
|
-
onSelect: (e) =>
|
|
2135
|
+
onSelect: (e) => ie(t.id)
|
|
2116
2136
|
}, null, 8, [
|
|
2117
2137
|
"item",
|
|
2118
2138
|
"index",
|
|
@@ -2133,34 +2153,34 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2133
2153
|
"hue-offset",
|
|
2134
2154
|
"panel-id",
|
|
2135
2155
|
"onSelect"
|
|
2136
|
-
]))), 128)),
|
|
2137
|
-
"model-value":
|
|
2156
|
+
]))), 128)), v.value ? (R(), E("div", Ga, [A(be, {
|
|
2157
|
+
"model-value": te.value,
|
|
2138
2158
|
label: G(o) ?? "",
|
|
2139
2159
|
"hide-label": "",
|
|
2140
2160
|
wrap: "",
|
|
2141
2161
|
width: "fill",
|
|
2142
2162
|
size: e.size === "sm" ? "row" : "field",
|
|
2143
|
-
options:
|
|
2144
|
-
disabled:
|
|
2145
|
-
"onUpdate:modelValue":
|
|
2163
|
+
options: ee.value,
|
|
2164
|
+
disabled: b.value.every(Boolean),
|
|
2165
|
+
"onUpdate:modelValue": ae
|
|
2146
2166
|
}, null, 8, [
|
|
2147
2167
|
"model-value",
|
|
2148
2168
|
"label",
|
|
2149
2169
|
"size",
|
|
2150
2170
|
"options",
|
|
2151
2171
|
"disabled"
|
|
2152
|
-
])])) : T("", !0)], 46,
|
|
2172
|
+
])])) : T("", !0)], 46, Wa));
|
|
2153
2173
|
}
|
|
2154
|
-
}),
|
|
2174
|
+
}), qa = {
|
|
2155
2175
|
key: 0,
|
|
2156
2176
|
class: "glim-toggle-label"
|
|
2157
|
-
},
|
|
2177
|
+
}, Ja = [
|
|
2158
2178
|
"aria-checked",
|
|
2159
2179
|
"aria-label",
|
|
2160
2180
|
"aria-disabled",
|
|
2161
2181
|
"aria-describedby",
|
|
2162
2182
|
"disabled"
|
|
2163
|
-
],
|
|
2183
|
+
], Ya = ["id"], Xa = /* @__PURE__ */ j({
|
|
2164
2184
|
inheritAttrs: !1,
|
|
2165
2185
|
__name: "Toggle",
|
|
2166
2186
|
props: /*@__PURE__*/ M({
|
|
@@ -2184,9 +2204,9 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2184
2204
|
emits: ["update:modelValue"],
|
|
2185
2205
|
setup(e) {
|
|
2186
2206
|
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;
|
|
2187
|
-
|
|
2207
|
+
Ee(() => u?.());
|
|
2188
2208
|
function d() {
|
|
2189
|
-
r.refused ? (u?.(), u =
|
|
2209
|
+
r.refused ? (u?.(), u = jn(l.value)) : i.value = !i.value;
|
|
2190
2210
|
}
|
|
2191
2211
|
return (n, r) => (R(), E(S, null, [
|
|
2192
2212
|
D("span", {
|
|
@@ -2195,7 +2215,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2195
2215
|
"data-glim": "Toggle",
|
|
2196
2216
|
class: P(["glim-toggle", n.$attrs.class]),
|
|
2197
2217
|
style: F(n.$attrs.style)
|
|
2198
|
-
}, [o.value ? (R(), E("span",
|
|
2218
|
+
}, [o.value ? (R(), E("span", qa, W(e.label), 1)) : T("", !0), D("button", N({
|
|
2199
2219
|
...n.$attrs,
|
|
2200
2220
|
class: void 0,
|
|
2201
2221
|
style: void 0
|
|
@@ -2214,25 +2234,25 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2214
2234
|
onMouseleave: r[1] ||= (...e) => G(s).hide && G(s).hide(...e),
|
|
2215
2235
|
onFocus: r[2] ||= (...e) => G(s).showOnFocus && G(s).showOnFocus(...e),
|
|
2216
2236
|
onBlur: r[3] ||= (...e) => G(s).hide && G(s).hide(...e)
|
|
2217
|
-
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2237
|
+
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, Ja)], 6),
|
|
2218
2238
|
e.refused ? (R(), E("span", {
|
|
2219
2239
|
key: 0,
|
|
2220
2240
|
id: G(c),
|
|
2221
2241
|
class: "glim-toggle-refusal"
|
|
2222
|
-
}, W(e.refused), 9,
|
|
2242
|
+
}, W(e.refused), 9, Ya)) : T("", !0),
|
|
2223
2243
|
A(t, { state: G(s) }, null, 8, ["state"])
|
|
2224
2244
|
], 64));
|
|
2225
2245
|
}
|
|
2226
|
-
}),
|
|
2246
|
+
}), Za = {
|
|
2227
2247
|
key: 0,
|
|
2228
2248
|
class: "glim-fortress-sub"
|
|
2229
|
-
},
|
|
2249
|
+
}, Qa = { class: "glim-permissions" }, $a = ["data-permission"], eo = {
|
|
2230
2250
|
class: "glim-permission-pair",
|
|
2231
2251
|
"aria-hidden": "true"
|
|
2232
|
-
},
|
|
2252
|
+
}, to = ["src"], no = { class: "glim-permission-to" }, ro = ["src"], io = { class: "glim-permission-text" }, ao = { class: "glim-permission-title" }, oo = {
|
|
2233
2253
|
key: 0,
|
|
2234
2254
|
class: "glim-fortress-sub"
|
|
2235
|
-
},
|
|
2255
|
+
}, so = /* @__PURE__ */ j({
|
|
2236
2256
|
__name: "FortressPermissions",
|
|
2237
2257
|
props: {
|
|
2238
2258
|
text: {},
|
|
@@ -2244,7 +2264,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2244
2264
|
hueIndex: {}
|
|
2245
2265
|
},
|
|
2246
2266
|
setup(e) {
|
|
2247
|
-
let t = e, n = z("all"), r = C(() =>
|
|
2267
|
+
let t = e, n = z("all"), r = C(() => $t(t.permissions, t.app.id)), i = C(() => r.value.length < t.permissions.length), a = C(() => n.value === "all" || !i.value ? t.permissions : r.value), o = C(() => [{
|
|
2248
2268
|
id: "all",
|
|
2249
2269
|
label: `${t.text.all} ${t.permissions.length}`
|
|
2250
2270
|
}, {
|
|
@@ -2259,15 +2279,15 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2259
2279
|
}
|
|
2260
2280
|
t.notify?.(n.error ?? t.text.failed, "fail");
|
|
2261
2281
|
let r = document.querySelector(`[data-permission="${CSS.escape(e.id)}"] .glim-toggle`);
|
|
2262
|
-
r &&
|
|
2282
|
+
r && jn(r);
|
|
2263
2283
|
}
|
|
2264
|
-
return (t, r) => (R(), w(
|
|
2284
|
+
return (t, r) => (R(), w(cr, {
|
|
2265
2285
|
"data-glim": "FortressPermissions",
|
|
2266
2286
|
title: e.text.permissions,
|
|
2267
2287
|
hint: e.text.permissionsAbout,
|
|
2268
2288
|
"hue-index": e.hueIndex
|
|
2269
2289
|
}, {
|
|
2270
|
-
default: Y(() => [e.permissions.length === 0 ? (R(), E("p",
|
|
2290
|
+
default: Y(() => [e.permissions.length === 0 ? (R(), E("p", Za, W(e.text.noPermissions), 1)) : (R(), E(S, { key: 1 }, [i.value ? (R(), w(Ka, {
|
|
2271
2291
|
key: 0,
|
|
2272
2292
|
modelValue: n.value,
|
|
2273
2293
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -2279,35 +2299,35 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2279
2299
|
"modelValue",
|
|
2280
2300
|
"label",
|
|
2281
2301
|
"items"
|
|
2282
|
-
])) : T("", !0), D("ul",
|
|
2302
|
+
])) : T("", !0), D("ul", Qa, [(R(!0), E(S, null, B(a.value, (e) => (R(), E("li", {
|
|
2283
2303
|
key: e.id,
|
|
2284
2304
|
class: P(["glim-permission", e.on && "glim-permission--on"]),
|
|
2285
2305
|
"data-permission": e.id
|
|
2286
2306
|
}, [
|
|
2287
|
-
D("span",
|
|
2307
|
+
D("span", eo, [
|
|
2288
2308
|
s(e.from) ? (R(), E("img", {
|
|
2289
2309
|
key: 0,
|
|
2290
2310
|
src: s(e.from),
|
|
2291
2311
|
alt: "",
|
|
2292
2312
|
draggable: "false"
|
|
2293
|
-
}, null, 8,
|
|
2294
|
-
A(G(
|
|
2295
|
-
mark: G(
|
|
2313
|
+
}, null, 8, to)) : T("", !0),
|
|
2314
|
+
A(G(m), {
|
|
2315
|
+
mark: G(Ke).expand,
|
|
2296
2316
|
class: "glim-permission-arrow"
|
|
2297
2317
|
}, null, 8, ["mark"]),
|
|
2298
|
-
D("span",
|
|
2318
|
+
D("span", no, [(R(!0), E(S, null, B(e.to, (e) => (R(), E(S, { key: e }, [s(e) ? (R(), E("img", {
|
|
2299
2319
|
key: 0,
|
|
2300
2320
|
src: s(e),
|
|
2301
2321
|
alt: "",
|
|
2302
2322
|
draggable: "false"
|
|
2303
|
-
}, null, 8,
|
|
2323
|
+
}, null, 8, ro)) : T("", !0)], 64))), 128))])
|
|
2304
2324
|
]),
|
|
2305
|
-
D("span",
|
|
2306
|
-
D("span",
|
|
2307
|
-
e.detail ? (R(), E("span",
|
|
2325
|
+
D("span", io, [
|
|
2326
|
+
D("span", ao, W(e.title), 1),
|
|
2327
|
+
e.detail ? (R(), E("span", oo, W(e.detail), 1)) : T("", !0),
|
|
2308
2328
|
V(t.$slots, "extra", { permission: e })
|
|
2309
2329
|
]),
|
|
2310
|
-
A(
|
|
2330
|
+
A(Xa, {
|
|
2311
2331
|
"model-value": e.on,
|
|
2312
2332
|
label: e.title,
|
|
2313
2333
|
"hide-label": "",
|
|
@@ -2317,7 +2337,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2317
2337
|
"label",
|
|
2318
2338
|
"onUpdate:modelValue"
|
|
2319
2339
|
])
|
|
2320
|
-
], 10,
|
|
2340
|
+
], 10, $a))), 128))])], 64))]),
|
|
2321
2341
|
_: 3
|
|
2322
2342
|
}, 8, [
|
|
2323
2343
|
"title",
|
|
@@ -2325,13 +2345,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2325
2345
|
"hue-index"
|
|
2326
2346
|
]));
|
|
2327
2347
|
}
|
|
2328
|
-
}),
|
|
2348
|
+
}), co = [
|
|
2329
2349
|
"aria-label",
|
|
2330
2350
|
"aria-invalid",
|
|
2331
2351
|
"aria-describedby",
|
|
2332
2352
|
"disabled",
|
|
2333
2353
|
"type"
|
|
2334
|
-
],
|
|
2354
|
+
], lo = /* @__PURE__ */ j({
|
|
2335
2355
|
inheritAttrs: !1,
|
|
2336
2356
|
__name: "PasswordField",
|
|
2337
2357
|
props: /*@__PURE__*/ M({
|
|
@@ -2352,7 +2372,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2352
2372
|
}),
|
|
2353
2373
|
emits: ["update:modelValue"],
|
|
2354
2374
|
setup(e, { expose: t }) {
|
|
2355
|
-
let n = e, r = q(e, "modelValue"), i = z(!1), a =
|
|
2375
|
+
let n = e, r = q(e, "modelValue"), i = z(!1), a = Me(), o = x(() => a["aria-label"]), s = C(() => pt(n.width)), c = K(), l = C(() => ft(n.error, a.id ?? c, a["aria-describedby"])), u = U(null);
|
|
2356
2376
|
return t({ input: u }), (t, n) => (R(), E(S, null, [D("span", {
|
|
2357
2377
|
"data-glim": "PasswordField",
|
|
2358
2378
|
class: P([
|
|
@@ -2361,7 +2381,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2361
2381
|
t.$attrs.class
|
|
2362
2382
|
]),
|
|
2363
2383
|
style: F(t.$attrs.style)
|
|
2364
|
-
}, [
|
|
2384
|
+
}, [Re(D("input", N({
|
|
2365
2385
|
ref_key: "input",
|
|
2366
2386
|
ref: u,
|
|
2367
2387
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -2378,15 +2398,15 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2378
2398
|
disabled: e.disabled,
|
|
2379
2399
|
type: i.value ? "text" : "password",
|
|
2380
2400
|
class: "glim-input"
|
|
2381
|
-
}), null, 16,
|
|
2401
|
+
}), null, 16, co), [[Pe, r.value]]), A(ge, N(e.eyeAttrs, {
|
|
2382
2402
|
tip: i.value ? e.text.hide : e.text.show,
|
|
2383
2403
|
class: "glim-secret-eye",
|
|
2384
2404
|
disabled: e.disabled,
|
|
2385
2405
|
onClick: n[1] ||= (e) => i.value = !i.value
|
|
2386
2406
|
}), {
|
|
2387
|
-
default: Y(() => [(R(), w(H(i.value ? G(
|
|
2407
|
+
default: Y(() => [(R(), w(H(i.value ? G(re) : G(v))))]),
|
|
2388
2408
|
_: 1
|
|
2389
|
-
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(
|
|
2409
|
+
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(Qi, {
|
|
2390
2410
|
key: 0,
|
|
2391
2411
|
id: l.value.errorId
|
|
2392
2412
|
}, {
|
|
@@ -2394,67 +2414,67 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2394
2414
|
_: 1
|
|
2395
2415
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
2396
2416
|
}
|
|
2397
|
-
}),
|
|
2417
|
+
}), uo = { class: "glim-phrase-fields" }, fo = { class: "glim-phrase-number glim-num" }, po = [
|
|
2398
2418
|
"data-word",
|
|
2399
2419
|
"value",
|
|
2400
2420
|
"aria-label",
|
|
2401
2421
|
"onInput"
|
|
2402
|
-
],
|
|
2422
|
+
], mo = { class: "glim-fortress-sub" }, ho = {
|
|
2403
2423
|
key: 0,
|
|
2404
2424
|
class: "glim-fortress-note",
|
|
2405
2425
|
"data-fortress": "moves"
|
|
2406
|
-
},
|
|
2426
|
+
}, go = {
|
|
2407
2427
|
key: 1,
|
|
2408
2428
|
class: "glim-fortress-error",
|
|
2409
2429
|
role: "alert"
|
|
2410
|
-
},
|
|
2430
|
+
}, _o = {
|
|
2411
2431
|
key: 1,
|
|
2412
2432
|
class: "glim-fortress-result"
|
|
2413
|
-
},
|
|
2433
|
+
}, vo = {
|
|
2414
2434
|
class: "glim-fortress-result-mark",
|
|
2415
2435
|
"aria-hidden": "true"
|
|
2416
|
-
},
|
|
2436
|
+
}, yo = { class: "glim-fortress-text" }, bo = { class: "glim-fortress-result-title" }, xo = { class: "glim-fortress-sub" }, So = {
|
|
2417
2437
|
key: 2,
|
|
2418
2438
|
class: "glim-fortress-text"
|
|
2419
|
-
},
|
|
2439
|
+
}, Co = { class: "glim-fortress-sub" }, wo = {
|
|
2420
2440
|
key: 0,
|
|
2421
2441
|
class: "glim-fortress-error",
|
|
2422
2442
|
role: "alert"
|
|
2423
|
-
},
|
|
2443
|
+
}, To = {
|
|
2424
2444
|
key: 3,
|
|
2425
2445
|
class: "glim-fortress-text"
|
|
2426
|
-
},
|
|
2446
|
+
}, Eo = { class: "glim-fortress-sub" }, Do = {
|
|
2427
2447
|
key: 0,
|
|
2428
2448
|
class: "glim-fortress-error",
|
|
2429
2449
|
role: "alert"
|
|
2430
|
-
},
|
|
2450
|
+
}, Oo = {
|
|
2431
2451
|
key: 4,
|
|
2432
2452
|
class: "glim-fortress-text"
|
|
2433
|
-
},
|
|
2453
|
+
}, ko = {
|
|
2434
2454
|
key: 0,
|
|
2435
2455
|
class: "glim-fortress-error",
|
|
2436
2456
|
role: "alert"
|
|
2437
|
-
},
|
|
2457
|
+
}, Ao = {
|
|
2438
2458
|
key: 0,
|
|
2439
2459
|
class: "glim-fortress-error",
|
|
2440
2460
|
role: "alert"
|
|
2441
|
-
},
|
|
2461
|
+
}, jo = {
|
|
2442
2462
|
key: 6,
|
|
2443
2463
|
class: "glim-fortress-text"
|
|
2444
|
-
},
|
|
2464
|
+
}, Mo = { class: "glim-fortress-sub" }, No = {
|
|
2445
2465
|
key: 0,
|
|
2446
2466
|
class: "glim-fortress-error",
|
|
2447
2467
|
role: "alert"
|
|
2448
|
-
},
|
|
2468
|
+
}, Po = {
|
|
2449
2469
|
key: 7,
|
|
2450
2470
|
class: "glim-fortress-text"
|
|
2451
|
-
},
|
|
2471
|
+
}, Fo = { class: "glim-phrase-show" }, Io = {
|
|
2452
2472
|
class: "glim-phrase-words",
|
|
2453
2473
|
"data-fortress": "words"
|
|
2454
|
-
},
|
|
2474
|
+
}, Lo = { class: "glim-phrase-number glim-num" }, Ro = ["aria-label", "viewBox"], zo = ["width", "height"], Bo = ["d"], Vo = { class: "glim-phrase-scan" }, Ho = {
|
|
2455
2475
|
key: 0,
|
|
2456
2476
|
class: "glim-fortress-sub"
|
|
2457
|
-
},
|
|
2477
|
+
}, Uo = /* @__PURE__ */ j({
|
|
2458
2478
|
__name: "FortressWindow",
|
|
2459
2479
|
props: {
|
|
2460
2480
|
flow: {},
|
|
@@ -2469,20 +2489,20 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2469
2489
|
},
|
|
2470
2490
|
setup(e) {
|
|
2471
2491
|
let t = e, n = U(null), r = z(!1), i;
|
|
2472
|
-
|
|
2473
|
-
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ?
|
|
2492
|
+
Ee(() => clearTimeout(i));
|
|
2493
|
+
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ? jt(t.lang, t.pairedWith) : null), s = C(() => ({
|
|
2474
2494
|
cancel: t.text.cancel,
|
|
2475
2495
|
close: t.text.close
|
|
2476
2496
|
})), c = C(() => t.state.busy !== null), l;
|
|
2477
|
-
|
|
2497
|
+
Ee(() => l?.()), J(() => t.state.refusal, (e) => {
|
|
2478
2498
|
let t = e && n.value?.card?.querySelector(`[data-fortress="${e.button}"]`);
|
|
2479
|
-
t && (l =
|
|
2499
|
+
t && (l = jn(t));
|
|
2480
2500
|
}), J(() => a.value.kind === "join" ? a.value.focus : -1, async (e) => {
|
|
2481
|
-
await
|
|
2501
|
+
await Te(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
|
|
2482
2502
|
}), J(() => a.value.kind, async () => {
|
|
2483
|
-
await
|
|
2503
|
+
await Te();
|
|
2484
2504
|
let e = n.value?.card;
|
|
2485
|
-
e &&
|
|
2505
|
+
e && rr(e)?.focus();
|
|
2486
2506
|
});
|
|
2487
2507
|
function u(e, t, n, r, i = !1) {
|
|
2488
2508
|
return {
|
|
@@ -2499,35 +2519,35 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2499
2519
|
label: t.text.copy,
|
|
2500
2520
|
labelKey: t.keys.copy,
|
|
2501
2521
|
attrs: { "data-fortress": "copy" },
|
|
2502
|
-
onClick: () => (
|
|
2503
|
-
r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1,
|
|
2522
|
+
onClick: () => (ot(e.join(" ")).then((e) => {
|
|
2523
|
+
r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1, He);
|
|
2504
2524
|
}), !1)
|
|
2505
2525
|
};
|
|
2506
2526
|
}
|
|
2507
2527
|
let f = C(() => {
|
|
2508
2528
|
let e = a.value;
|
|
2509
2529
|
if (e.kind !== "phrase" && e.kind !== "changed") return null;
|
|
2510
|
-
let n =
|
|
2530
|
+
let n = mn(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
|
|
2511
2531
|
return {
|
|
2512
2532
|
...n,
|
|
2513
2533
|
side: n.size + 8
|
|
2514
2534
|
};
|
|
2515
|
-
}),
|
|
2535
|
+
}), h = C(() => ({
|
|
2516
2536
|
label: t.text.close,
|
|
2517
2537
|
labelKey: "common.close",
|
|
2518
2538
|
glyph: g,
|
|
2519
2539
|
wayOut: !0
|
|
2520
|
-
})),
|
|
2540
|
+
})), _ = C(() => {
|
|
2521
2541
|
let e = t.text, n = a.value, r = t.flow, i = t.keys;
|
|
2522
2542
|
switch (n.kind) {
|
|
2523
2543
|
case "join": return {
|
|
2524
2544
|
title: e.joinTitle,
|
|
2525
2545
|
size: "wide",
|
|
2526
|
-
actions: [u("join", r.join, e.join, i.join, !
|
|
2546
|
+
actions: [u("join", r.join, e.join, i.join, !en(n.words))]
|
|
2527
2547
|
};
|
|
2528
2548
|
case "joined": return {
|
|
2529
2549
|
title: e.joinTitle,
|
|
2530
|
-
actions: [
|
|
2550
|
+
actions: [h.value]
|
|
2531
2551
|
};
|
|
2532
2552
|
case "leave": return {
|
|
2533
2553
|
title: e.leaveTitle,
|
|
@@ -2569,12 +2589,12 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2569
2589
|
actions: []
|
|
2570
2590
|
};
|
|
2571
2591
|
});
|
|
2572
|
-
return (t, i) => (R(), w(
|
|
2592
|
+
return (t, i) => (R(), w(ua, {
|
|
2573
2593
|
ref_key: "win",
|
|
2574
2594
|
ref: n,
|
|
2575
|
-
title:
|
|
2576
|
-
size:
|
|
2577
|
-
actions:
|
|
2595
|
+
title: _.value.title,
|
|
2596
|
+
size: _.value.size,
|
|
2597
|
+
actions: _.value.actions,
|
|
2578
2598
|
start: r.value ? e.text.copied : void 0,
|
|
2579
2599
|
text: s.value,
|
|
2580
2600
|
onClose: i[3] ||= (t) => e.flow.close()
|
|
@@ -2585,10 +2605,10 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2585
2605
|
onSubmit: i[0] ||= X((t) => e.flow.join(), ["prevent"])
|
|
2586
2606
|
}, [
|
|
2587
2607
|
D("p", null, W(e.text.about), 1),
|
|
2588
|
-
D("div",
|
|
2608
|
+
D("div", uo, [(R(!0), E(S, null, B(a.value.words, (t, n) => (R(), E("label", {
|
|
2589
2609
|
key: n,
|
|
2590
2610
|
class: "glim-phrase-field"
|
|
2591
|
-
}, [D("span",
|
|
2611
|
+
}, [D("span", fo, W(n + 1), 1), D("input", {
|
|
2592
2612
|
class: "glim-input",
|
|
2593
2613
|
"data-word": n,
|
|
2594
2614
|
value: t,
|
|
@@ -2598,32 +2618,32 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2598
2618
|
autocorrect: "off",
|
|
2599
2619
|
spellcheck: "false",
|
|
2600
2620
|
onInput: (t) => e.flow.enter(n, t.target.value)
|
|
2601
|
-
}, null, 40,
|
|
2621
|
+
}, null, 40, po)]))), 128))]),
|
|
2602
2622
|
i[4] ||= D("button", {
|
|
2603
2623
|
type: "submit",
|
|
2604
2624
|
hidden: ""
|
|
2605
2625
|
}, null, -1),
|
|
2606
|
-
D("p",
|
|
2607
|
-
o.value ? (R(), E("p",
|
|
2626
|
+
D("p", mo, W(e.text.phraseWhere), 1),
|
|
2627
|
+
o.value ? (R(), E("p", ho, [G(p)("info") ? (R(), w(H(G(p)("info")), { key: 0 })) : T("", !0), D("span", null, W(G(Z)(e.text.moves, {
|
|
2608
2628
|
app: e.app.name,
|
|
2609
2629
|
devices: o.value
|
|
2610
2630
|
})), 1)])) : T("", !0),
|
|
2611
|
-
e.state.error ? (R(), E("p",
|
|
2612
|
-
], 32)) : a.value.kind === "joined" ? (R(), E("div",
|
|
2631
|
+
e.state.error ? (R(), E("p", go, W(e.state.error), 1)) : T("", !0)
|
|
2632
|
+
], 32)) : a.value.kind === "joined" ? (R(), E("div", _o, [D("span", vo, [A(G(m), { mark: G(Ke).check }, null, 8, ["mark"])]), D("div", yo, [D("p", bo, W(G(Z)(e.text.joinedTitle, { app: e.app.name })), 1), D("p", xo, W(o.value ? `${G(Z)(e.text.joinedMoved, { devices: o.value })} ` : "") + W(e.text.joinedNext), 1)])])) : a.value.kind === "leave" ? (R(), E("div", So, [
|
|
2613
2633
|
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),
|
|
2614
|
-
D("p",
|
|
2615
|
-
e.state.error ? (R(), E("p",
|
|
2616
|
-
])) : a.value.kind === "remove" ? (R(), E("div",
|
|
2634
|
+
D("p", Co, W(e.text.leaveBack), 1),
|
|
2635
|
+
e.state.error ? (R(), E("p", wo, W(e.state.error), 1)) : T("", !0)
|
|
2636
|
+
])) : a.value.kind === "remove" ? (R(), E("div", To, [
|
|
2617
2637
|
D("p", null, W(G(Z)(e.text.removeBody, { device: a.value.device })), 1),
|
|
2618
|
-
D("p",
|
|
2619
|
-
e.state.error ? (R(), E("p",
|
|
2620
|
-
])) : a.value.kind === "removed" ? (R(), E("div",
|
|
2638
|
+
D("p", Eo, W(e.text.removeBack), 1),
|
|
2639
|
+
e.state.error ? (R(), E("p", Do, W(e.state.error), 1)) : T("", !0)
|
|
2640
|
+
])) : a.value.kind === "removed" ? (R(), E("div", Oo, [D("p", null, W(G(Z)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (R(), E("p", ko, W(e.state.error), 1)) : T("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (R(), E("form", {
|
|
2621
2641
|
key: 5,
|
|
2622
2642
|
class: "glim-fortress-text",
|
|
2623
2643
|
onSubmit: i[2] ||= X((t) => e.flow.unlock(), ["prevent"])
|
|
2624
2644
|
}, [
|
|
2625
2645
|
D("p", null, W(G(Z)(e.text.phrasePassword, { app: e.app.name })), 1),
|
|
2626
|
-
A(
|
|
2646
|
+
A(lo, {
|
|
2627
2647
|
"model-value": a.value.password,
|
|
2628
2648
|
"aria-label": G(Z)(e.text.password, { app: e.app.name }),
|
|
2629
2649
|
placeholder: G(Z)(e.text.password, { app: e.app.name }),
|
|
@@ -2638,15 +2658,15 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2638
2658
|
"placeholder",
|
|
2639
2659
|
"text"
|
|
2640
2660
|
]),
|
|
2641
|
-
e.state.error ? (R(), E("p",
|
|
2642
|
-
], 32)) : a.value.kind === "change" ? (R(), E("div",
|
|
2661
|
+
e.state.error ? (R(), E("p", Ao, W(e.state.error), 1)) : T("", !0)
|
|
2662
|
+
], 32)) : a.value.kind === "change" ? (R(), E("div", jo, [
|
|
2643
2663
|
D("p", null, W(e.text.changeBody), 1),
|
|
2644
|
-
D("p",
|
|
2645
|
-
e.state.error ? (R(), E("p",
|
|
2646
|
-
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div",
|
|
2664
|
+
D("p", Mo, W(e.text.changeAway), 1),
|
|
2665
|
+
e.state.error ? (R(), E("p", No, W(e.state.error), 1)) : T("", !0)
|
|
2666
|
+
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div", Po, [
|
|
2647
2667
|
D("p", null, W(e.text.phraseBody), 1),
|
|
2648
|
-
D("div",
|
|
2649
|
-
D("ol",
|
|
2668
|
+
D("div", Fo, [
|
|
2669
|
+
D("ol", Io, [(R(!0), E(S, null, B(a.value.words, (e, t) => (R(), E("li", { key: t }, [D("span", Lo, W(t + 1), 1), k(W(e), 1)]))), 128))]),
|
|
2650
2670
|
f.value ? (R(), E("svg", {
|
|
2651
2671
|
key: 0,
|
|
2652
2672
|
class: "glim-phrase-qr",
|
|
@@ -2661,13 +2681,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2661
2681
|
width: f.value.side,
|
|
2662
2682
|
height: f.value.side,
|
|
2663
2683
|
fill: "#ffffff"
|
|
2664
|
-
}, null, 8,
|
|
2684
|
+
}, null, 8, zo), D("path", {
|
|
2665
2685
|
d: f.value.path,
|
|
2666
2686
|
fill: "#161616"
|
|
2667
|
-
}, null, 8,
|
|
2668
|
-
D("p",
|
|
2687
|
+
}, null, 8, Bo)], 8, Ro)) : T("", !0),
|
|
2688
|
+
D("p", Vo, W(e.text.scanHint), 1)
|
|
2669
2689
|
]),
|
|
2670
|
-
a.value.kind === "changed" && a.value.left.length ? (R(), E("p",
|
|
2690
|
+
a.value.kind === "changed" && a.value.left.length ? (R(), E("p", Ho, W(G(Z)(e.text.changedLeft, { devices: G(jt)(e.lang, a.value.left) })), 1)) : T("", !0)
|
|
2671
2691
|
])) : T("", !0)]),
|
|
2672
2692
|
_: 1
|
|
2673
2693
|
}, 8, [
|
|
@@ -2678,25 +2698,25 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2678
2698
|
"text"
|
|
2679
2699
|
]));
|
|
2680
2700
|
}
|
|
2681
|
-
}),
|
|
2701
|
+
}), Wo = {
|
|
2682
2702
|
"data-glim": "Fortress",
|
|
2683
2703
|
class: "glim-fortress"
|
|
2684
|
-
},
|
|
2704
|
+
}, Go = { class: "glim-fortress-grid" }, Ko = {
|
|
2685
2705
|
key: 0,
|
|
2686
2706
|
class: "glim-card glim-instance glim-instance--out",
|
|
2687
2707
|
"data-fortress": "out"
|
|
2688
|
-
},
|
|
2708
|
+
}, qo = { class: "glim-instance-title" }, Jo = { class: "glim-instance-hint" }, Yo = {
|
|
2689
2709
|
key: 0,
|
|
2690
2710
|
class: "glim-instance-found"
|
|
2691
|
-
},
|
|
2711
|
+
}, Xo = ["src"], Zo = { class: "glim-fortress-switch-text" }, Qo = { class: "glim-fortress-switch-name" }, $o = { class: "glim-fortress-sub" }, es = {
|
|
2692
2712
|
key: 1,
|
|
2693
2713
|
class: "glim-fortress-removed",
|
|
2694
2714
|
"data-fortress": "removed",
|
|
2695
2715
|
role: "status"
|
|
2696
|
-
},
|
|
2716
|
+
}, ts = { class: "glim-fortress-grid" }, ns = {
|
|
2697
2717
|
key: 3,
|
|
2698
2718
|
class: "glim-fortress-actions"
|
|
2699
|
-
},
|
|
2719
|
+
}, rs = /* @__PURE__ */ j({
|
|
2700
2720
|
__name: "Fortress",
|
|
2701
2721
|
props: {
|
|
2702
2722
|
text: {},
|
|
@@ -2734,10 +2754,10 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2734
2754
|
},
|
|
2735
2755
|
emits: ["update:showOthers"],
|
|
2736
2756
|
setup(e, { emit: t }) {
|
|
2737
|
-
let n = e, r = t, i =
|
|
2757
|
+
let n = e, r = t, i = ct(() => ({
|
|
2738
2758
|
...n,
|
|
2739
2759
|
failed: n.text.failed,
|
|
2740
|
-
joinRefusal: (e) =>
|
|
2760
|
+
joinRefusal: (e) => Dt(n.text, e)
|
|
2741
2761
|
})), a = U(i.state()), o = i.subscribe(() => a.value = i.state());
|
|
2742
2762
|
I(o);
|
|
2743
2763
|
let s = C(() => ({
|
|
@@ -2750,20 +2770,20 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2750
2770
|
unlock: "unlock",
|
|
2751
2771
|
copy: "copy",
|
|
2752
2772
|
...n.labelKeys
|
|
2753
|
-
})), c = z(
|
|
2773
|
+
})), c = z(Vn()), l = C(() => n.showOthers ?? c.value);
|
|
2754
2774
|
function u(e) {
|
|
2755
|
-
r("update:showOthers", e), n.showOthers === void 0 && (
|
|
2775
|
+
r("update:showOthers", e), n.showOthers === void 0 && (Bn(e), c.value = e);
|
|
2756
2776
|
}
|
|
2757
|
-
let d = C(() => Z(n.text.removedNote, { devices:
|
|
2758
|
-
return (t, n) => (R(), E("div",
|
|
2759
|
-
D("div",
|
|
2760
|
-
D("h3",
|
|
2761
|
-
D("p",
|
|
2762
|
-
e.found ? (R(), E("p",
|
|
2777
|
+
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", Wo, [
|
|
2779
|
+
D("div", Go, [V(t.$slots, "default", { remove: G(i).openRemove }), e.joined ? T("", !0) : (R(), E("div", Ko, [
|
|
2780
|
+
D("h3", qo, W(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
|
|
2781
|
+
D("p", Jo, W(G(Z)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
|
|
2782
|
+
e.found ? (R(), E("p", Yo, [e.found.logo ? (R(), E("img", {
|
|
2763
2783
|
key: 0,
|
|
2764
2784
|
src: e.found.logo,
|
|
2765
2785
|
alt: ""
|
|
2766
|
-
}, null, 8,
|
|
2786
|
+
}, null, 8, Xo)) : T("", !0), D("span", null, W(G(Z)(e.text.found, {
|
|
2767
2787
|
app: e.found.app,
|
|
2768
2788
|
device: e.found.device
|
|
2769
2789
|
})), 1)])) : T("", !0)
|
|
@@ -2771,16 +2791,16 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2771
2791
|
e.joined && !e.hideSwitch ? (R(), E("div", {
|
|
2772
2792
|
key: 0,
|
|
2773
2793
|
class: "glim-card glim-fortress-switch glim-hue",
|
|
2774
|
-
style: F(G(
|
|
2775
|
-
}, [D("span",
|
|
2794
|
+
style: F(G(Ct)(e.hueStart))
|
|
2795
|
+
}, [D("span", Zo, [D("span", Qo, [k(W(e.text.showOthers), 1), A(Q, { tip: e.text.about }, null, 8, ["tip"])]), D("span", $o, W(m.value), 1)]), A(Xa, {
|
|
2776
2796
|
"model-value": l.value,
|
|
2777
2797
|
label: e.text.showOthers,
|
|
2778
2798
|
"hide-label": "",
|
|
2779
2799
|
"data-fortress": "others",
|
|
2780
2800
|
"onUpdate:modelValue": u
|
|
2781
2801
|
}, null, 8, ["model-value", "label"])], 4)) : T("", !0),
|
|
2782
|
-
e.joined && e.removed.length ? (R(), E("div",
|
|
2783
|
-
G(
|
|
2802
|
+
e.joined && e.removed.length ? (R(), E("div", es, [
|
|
2803
|
+
G(p)("info") ? (R(), w(H(G(p)("info")), { key: 0 })) : T("", !0),
|
|
2784
2804
|
D("span", null, W(d.value), 1),
|
|
2785
2805
|
e.onChangePhrase ? (R(), w(f, {
|
|
2786
2806
|
key: 1,
|
|
@@ -2791,11 +2811,11 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2791
2811
|
onClick: n[0] ||= (e) => G(i).openChange()
|
|
2792
2812
|
}, null, 8, ["label", "label-key"])) : T("", !0)
|
|
2793
2813
|
])) : T("", !0),
|
|
2794
|
-
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div",
|
|
2814
|
+
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div", ts, [(R(!0), E(S, null, B(e.apps, (n, r) => (R(), E(S, { key: n.id }, [t.$slots.app ? V(t.$slots, "app", {
|
|
2795
2815
|
app: n,
|
|
2796
2816
|
hueIndex: e.hueStart + 1 + r,
|
|
2797
2817
|
remove: e.onRemove && G(i).openRemove
|
|
2798
|
-
}, void 0, void 0, 0) : (R(), w(
|
|
2818
|
+
}, void 0, void 0, 0) : (R(), w(za, {
|
|
2799
2819
|
key: 1,
|
|
2800
2820
|
app: n,
|
|
2801
2821
|
text: e.text,
|
|
@@ -2812,7 +2832,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2812
2832
|
"on-open",
|
|
2813
2833
|
"on-remove",
|
|
2814
2834
|
"remove-key"
|
|
2815
|
-
]))], 64))), 128))]), A(
|
|
2835
|
+
]))], 64))), 128))]), A(so, {
|
|
2816
2836
|
text: e.text,
|
|
2817
2837
|
app: e.app,
|
|
2818
2838
|
apps: [e.app, ...e.apps],
|
|
@@ -2832,7 +2852,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2832
2852
|
"notify",
|
|
2833
2853
|
"hue-index"
|
|
2834
2854
|
])], 64)) : T("", !0),
|
|
2835
|
-
!e.joined || e.onShowPhrase ? (R(), E("div",
|
|
2855
|
+
!e.joined || e.onShowPhrase ? (R(), E("div", ns, [e.joined ? (R(), w(f, {
|
|
2836
2856
|
key: 0,
|
|
2837
2857
|
label: e.text.showPhrase,
|
|
2838
2858
|
"label-key": s.value.showPhrase,
|
|
@@ -2854,7 +2874,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2854
2874
|
"data-fortress": "open-join",
|
|
2855
2875
|
onClick: n[2] ||= (e) => G(i).openJoin()
|
|
2856
2876
|
}, null, 8, ["label", "label-key"]))])) : T("", !0),
|
|
2857
|
-
a.value.window ? (R(), w(
|
|
2877
|
+
a.value.window ? (R(), w(Uo, {
|
|
2858
2878
|
key: 4,
|
|
2859
2879
|
flow: G(i),
|
|
2860
2880
|
state: a.value,
|
|
@@ -2876,7 +2896,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2876
2896
|
])) : T("", !0)
|
|
2877
2897
|
]));
|
|
2878
2898
|
}
|
|
2879
|
-
}),
|
|
2899
|
+
}), is = /* @__PURE__ */ j({
|
|
2880
2900
|
__name: "FortressPairing",
|
|
2881
2901
|
props: {
|
|
2882
2902
|
text: {},
|
|
@@ -2893,7 +2913,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2893
2913
|
hueIndex: {}
|
|
2894
2914
|
},
|
|
2895
2915
|
setup(e) {
|
|
2896
|
-
let t = e, n =
|
|
2916
|
+
let t = e, n = ct(() => ({
|
|
2897
2917
|
...t,
|
|
2898
2918
|
failed: t.text.failed
|
|
2899
2919
|
})), r = U(n.state()), i = n.subscribe(() => r.value = n.state());
|
|
@@ -2909,14 +2929,14 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2909
2929
|
copy: "copy",
|
|
2910
2930
|
...t.labelKeys
|
|
2911
2931
|
}));
|
|
2912
|
-
return (t, i) => (R(), w(
|
|
2932
|
+
return (t, i) => (R(), w(cr, {
|
|
2913
2933
|
"data-glim": "FortressPairing",
|
|
2914
2934
|
title: e.text.pairing,
|
|
2915
2935
|
"hue-index": e.hueIndex
|
|
2916
2936
|
}, {
|
|
2917
2937
|
default: Y(() => [
|
|
2918
2938
|
V(t.$slots, "default"),
|
|
2919
|
-
e.onShowPhrase || e.onChangePhrase ? (R(), w(
|
|
2939
|
+
e.onShowPhrase || e.onChangePhrase ? (R(), w(na, {
|
|
2920
2940
|
key: 0,
|
|
2921
2941
|
label: e.text.phraseTitle,
|
|
2922
2942
|
hint: e.onChangePhrase ? e.text.changePhraseAbout : void 0
|
|
@@ -2941,7 +2961,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2941
2961
|
}, null, 8, ["label", "label-key"])) : T("", !0)]),
|
|
2942
2962
|
_: 1
|
|
2943
2963
|
}, 8, ["label", "hint"])) : T("", !0),
|
|
2944
|
-
A(
|
|
2964
|
+
A(na, {
|
|
2945
2965
|
label: e.text.leaveRow,
|
|
2946
2966
|
hint: G(Z)(e.text.leaveAbout, { app: e.app.name })
|
|
2947
2967
|
}, {
|
|
@@ -2954,7 +2974,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2954
2974
|
_: 1
|
|
2955
2975
|
}, 8, ["label", "hint"]),
|
|
2956
2976
|
V(t.$slots, "after"),
|
|
2957
|
-
r.value.window ? (R(), w(
|
|
2977
|
+
r.value.window ? (R(), w(Uo, {
|
|
2958
2978
|
key: 1,
|
|
2959
2979
|
flow: G(n),
|
|
2960
2980
|
state: r.value,
|
|
@@ -2980,13 +3000,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
2980
3000
|
_: 3
|
|
2981
3001
|
}, 8, ["title", "hue-index"]));
|
|
2982
3002
|
}
|
|
2983
|
-
}),
|
|
3003
|
+
}), as = [
|
|
2984
3004
|
"aria-label",
|
|
2985
3005
|
"aria-valuemin",
|
|
2986
3006
|
"aria-valuemax",
|
|
2987
3007
|
"aria-valuenow",
|
|
2988
3008
|
"aria-valuetext"
|
|
2989
|
-
],
|
|
3009
|
+
], os = /* @__PURE__ */ j({
|
|
2990
3010
|
__name: "ProgressBar",
|
|
2991
3011
|
props: {
|
|
2992
3012
|
value: { default: null },
|
|
@@ -3002,7 +3022,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3002
3022
|
valueText: {}
|
|
3003
3023
|
},
|
|
3004
3024
|
setup(e) {
|
|
3005
|
-
let t = e, n = C(() =>
|
|
3025
|
+
let t = e, n = C(() => pn(t.value, {
|
|
3006
3026
|
paused: t.paused,
|
|
3007
3027
|
failed: t.failed
|
|
3008
3028
|
}));
|
|
@@ -3018,48 +3038,48 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3018
3038
|
}, [D("span", {
|
|
3019
3039
|
class: "glim-progress-fill",
|
|
3020
3040
|
style: F(n.value.width ? { width: n.value.width } : void 0)
|
|
3021
|
-
}, null, 4)], 10,
|
|
3041
|
+
}, null, 4)], 10, as));
|
|
3022
3042
|
}
|
|
3023
|
-
}),
|
|
3043
|
+
}), ss = { class: "glim-status-title" }, cs = ["src"], ls = {
|
|
3024
3044
|
class: "glim-fortress-text",
|
|
3025
3045
|
"data-fortress": "status"
|
|
3026
|
-
},
|
|
3046
|
+
}, us = {
|
|
3027
3047
|
key: 0,
|
|
3028
3048
|
class: "glim-fortress-note",
|
|
3029
3049
|
"data-fortress": "loading"
|
|
3030
|
-
},
|
|
3050
|
+
}, ds = { role: "status" }, fs = {
|
|
3031
3051
|
key: 1,
|
|
3032
3052
|
class: "glim-fortress-note",
|
|
3033
3053
|
role: "status",
|
|
3034
3054
|
"data-fortress": "error"
|
|
3035
|
-
},
|
|
3055
|
+
}, ps = {
|
|
3036
3056
|
key: 2,
|
|
3037
3057
|
class: "glim-status-state",
|
|
3038
3058
|
"data-fortress": "state"
|
|
3039
|
-
},
|
|
3059
|
+
}, ms = {
|
|
3040
3060
|
key: 0,
|
|
3041
3061
|
class: "glim-fortress-sub"
|
|
3042
|
-
},
|
|
3062
|
+
}, hs = {
|
|
3043
3063
|
key: 3,
|
|
3044
3064
|
class: "glim-status-section",
|
|
3045
3065
|
"data-fortress": "needs"
|
|
3046
|
-
},
|
|
3066
|
+
}, gs = { class: "glim-status-heading" }, _s = { class: "glim-status-list" }, vs = {
|
|
3047
3067
|
key: 4,
|
|
3048
3068
|
class: "glim-status-section",
|
|
3049
3069
|
"data-fortress": "work"
|
|
3050
|
-
},
|
|
3070
|
+
}, ys = { class: "glim-status-heading" }, bs = { class: "glim-status-list" }, xs = {
|
|
3051
3071
|
key: 5,
|
|
3052
3072
|
class: "glim-status-section",
|
|
3053
3073
|
"data-fortress": "next"
|
|
3054
|
-
},
|
|
3074
|
+
}, Ss = { class: "glim-status-heading" }, Cs = { class: "glim-status-list" }, ws = { class: "glim-status-at glim-num" }, Ts = {
|
|
3055
3075
|
key: 6,
|
|
3056
3076
|
class: "glim-status-section",
|
|
3057
3077
|
"data-fortress": "log"
|
|
3058
|
-
},
|
|
3078
|
+
}, Es = { class: "glim-status-heading" }, Ds = { class: "glim-status-list" }, Os = { class: "glim-status-at glim-num" }, ks = {
|
|
3059
3079
|
key: 7,
|
|
3060
3080
|
class: "glim-fortress-sub",
|
|
3061
3081
|
"data-fortress": "where"
|
|
3062
|
-
},
|
|
3082
|
+
}, As = /* @__PURE__ */ j({
|
|
3063
3083
|
__name: "FortressStatusWindow",
|
|
3064
3084
|
props: {
|
|
3065
3085
|
app: {},
|
|
@@ -3073,7 +3093,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3073
3093
|
onClose: { type: Function }
|
|
3074
3094
|
},
|
|
3075
3095
|
setup(t) {
|
|
3076
|
-
let n = t, r = C(() =>
|
|
3096
|
+
let n = t, r = C(() => zn({
|
|
3077
3097
|
app: n.app,
|
|
3078
3098
|
instance: n.instance,
|
|
3079
3099
|
report: n.report,
|
|
@@ -3086,8 +3106,8 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3086
3106
|
labelKey: "common.close",
|
|
3087
3107
|
glyph: g,
|
|
3088
3108
|
wayOut: !0
|
|
3089
|
-
}]), a =
|
|
3090
|
-
return (n, o) => (R(), w(
|
|
3109
|
+
}]), a = p("info");
|
|
3110
|
+
return (n, o) => (R(), w(ua, {
|
|
3091
3111
|
"data-glim": "FortressStatusWindow",
|
|
3092
3112
|
lang: t.lang,
|
|
3093
3113
|
title: r.value.title,
|
|
@@ -3098,22 +3118,22 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3098
3118
|
},
|
|
3099
3119
|
onClose: o[0] ||= (e) => t.onClose()
|
|
3100
3120
|
}, {
|
|
3101
|
-
title: Y(() => [D("span",
|
|
3121
|
+
title: Y(() => [D("span", ss, [t.app.logo ? (R(), E("img", {
|
|
3102
3122
|
key: 0,
|
|
3103
3123
|
src: t.app.logo,
|
|
3104
3124
|
alt: ""
|
|
3105
|
-
}, null, 8,
|
|
3106
|
-
default: Y(() => [D("div",
|
|
3107
|
-
r.value.loading ? (R(), E("p",
|
|
3125
|
+
}, null, 8, cs)) : T("", !0), k(W(r.value.title), 1)])]),
|
|
3126
|
+
default: Y(() => [D("div", ls, [
|
|
3127
|
+
r.value.loading ? (R(), E("p", us, [A(c, {
|
|
3108
3128
|
size: "small",
|
|
3109
3129
|
delay: 0
|
|
3110
|
-
}), D("span",
|
|
3111
|
-
r.value.error === void 0 ? T("", !0) : (R(), E("p",
|
|
3112
|
-
r.value.state ? (R(), E("p",
|
|
3130
|
+
}), D("span", ds, W(r.value.loading), 1)])) : T("", !0),
|
|
3131
|
+
r.value.error === void 0 ? T("", !0) : (R(), E("p", fs, [G(a) ? (R(), w(H(G(a)), { key: 0 })) : T("", !0), D("span", null, W(r.value.error), 1)])),
|
|
3132
|
+
r.value.state ? (R(), E("p", ps, [A(e, { tone: r.value.state.tone }, {
|
|
3113
3133
|
default: Y(() => [k(W(r.value.state.label), 1)]),
|
|
3114
3134
|
_: 1
|
|
3115
|
-
}, 8, ["tone"]), r.value.quiet ? (R(), E("span",
|
|
3116
|
-
r.value.needsYou.length ? (R(), E("section",
|
|
3135
|
+
}, 8, ["tone"]), r.value.quiet ? (R(), E("span", ms, W(r.value.quiet), 1)) : T("", !0)])) : T("", !0),
|
|
3136
|
+
r.value.needsYou.length ? (R(), E("section", hs, [D("h3", gs, W(t.text.statusNeedsYou), 1), D("ul", _s, [(R(!0), E(S, null, B(r.value.needsYou, (t, n) => (R(), E("li", {
|
|
3117
3137
|
key: n,
|
|
3118
3138
|
class: "glim-status-line"
|
|
3119
3139
|
}, [
|
|
@@ -3127,26 +3147,26 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3127
3147
|
o[1] ||= k(),
|
|
3128
3148
|
D("span", null, W(t.text), 1)
|
|
3129
3149
|
]))), 128))])])) : T("", !0),
|
|
3130
|
-
r.value.work.length ? (R(), E("section",
|
|
3150
|
+
r.value.work.length ? (R(), E("section", vs, [D("h3", ys, W(t.text.statusWork), 1), D("ul", bs, [(R(!0), E(S, null, B(r.value.work, (e, t) => (R(), E("li", {
|
|
3131
3151
|
key: t,
|
|
3132
3152
|
class: "glim-status-work"
|
|
3133
|
-
}, [D("span", null, W(e.title), 1), A(
|
|
3153
|
+
}, [D("span", null, W(e.title), 1), A(os, {
|
|
3134
3154
|
value: e.progress,
|
|
3135
3155
|
label: e.title
|
|
3136
3156
|
}, null, 8, ["value", "label"])]))), 128))])])) : T("", !0),
|
|
3137
|
-
r.value.next.length ? (R(), E("section",
|
|
3157
|
+
r.value.next.length ? (R(), E("section", xs, [D("h3", Ss, W(t.text.statusNext), 1), D("ul", Cs, [(R(!0), E(S, null, B(r.value.next, (e, t) => (R(), E("li", {
|
|
3138
3158
|
key: t,
|
|
3139
3159
|
class: "glim-status-line"
|
|
3140
3160
|
}, [
|
|
3141
3161
|
D("span", null, W(e.title), 1),
|
|
3142
3162
|
o[2] ||= k(),
|
|
3143
|
-
D("span",
|
|
3163
|
+
D("span", ws, W(e.at), 1)
|
|
3144
3164
|
]))), 128))])])) : T("", !0),
|
|
3145
|
-
r.value.log.length ? (R(), E("section",
|
|
3165
|
+
r.value.log.length ? (R(), E("section", Ts, [D("h3", Es, W(t.text.statusLog), 1), D("ul", Ds, [(R(!0), E(S, null, B(r.value.log, (t, n) => (R(), E("li", {
|
|
3146
3166
|
key: n,
|
|
3147
3167
|
class: "glim-status-line"
|
|
3148
3168
|
}, [
|
|
3149
|
-
D("span",
|
|
3169
|
+
D("span", Os, W(t.at), 1),
|
|
3150
3170
|
o[3] ||= k(),
|
|
3151
3171
|
t.level ? (R(), w(e, {
|
|
3152
3172
|
key: 0,
|
|
@@ -3158,7 +3178,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3158
3178
|
o[4] ||= k(),
|
|
3159
3179
|
D("span", null, W(t.text), 1)
|
|
3160
3180
|
]))), 128))])])) : T("", !0),
|
|
3161
|
-
r.value.where ? (R(), E("p",
|
|
3181
|
+
r.value.where ? (R(), E("p", ks, W(r.value.where), 1)) : T("", !0)
|
|
3162
3182
|
])]),
|
|
3163
3183
|
_: 1
|
|
3164
3184
|
}, 8, [
|
|
@@ -3168,10 +3188,10 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3168
3188
|
"text"
|
|
3169
3189
|
]));
|
|
3170
3190
|
}
|
|
3171
|
-
}),
|
|
3191
|
+
}), js = {
|
|
3172
3192
|
class: "glim-glyph-field-glyph",
|
|
3173
3193
|
"aria-hidden": "true"
|
|
3174
|
-
},
|
|
3194
|
+
}, Ms = ["aria-label"], Ns = /* @__PURE__ */ j({
|
|
3175
3195
|
inheritAttrs: !1,
|
|
3176
3196
|
__name: "GlyphField",
|
|
3177
3197
|
props: /*@__PURE__*/ M({
|
|
@@ -3185,7 +3205,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3185
3205
|
}),
|
|
3186
3206
|
emits: ["update:modelValue"],
|
|
3187
3207
|
setup(e, { expose: t }) {
|
|
3188
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
3208
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => pt(n.width)), o = U(null);
|
|
3189
3209
|
return t({ input: o }), (t, n) => (R(), E("label", {
|
|
3190
3210
|
"data-glim": "GlyphField",
|
|
3191
3211
|
class: P([
|
|
@@ -3197,8 +3217,8 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3197
3217
|
]),
|
|
3198
3218
|
style: F(t.$attrs.style)
|
|
3199
3219
|
}, [
|
|
3200
|
-
D("span",
|
|
3201
|
-
|
|
3220
|
+
D("span", js, [(R(), w(H(e.glyph)))]),
|
|
3221
|
+
Re(D("input", N({
|
|
3202
3222
|
ref_key: "input",
|
|
3203
3223
|
ref: o,
|
|
3204
3224
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -3208,11 +3228,11 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3208
3228
|
...t.$attrs,
|
|
3209
3229
|
class: void 0,
|
|
3210
3230
|
style: void 0
|
|
3211
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
3231
|
+
}, { class: "glim-glyph-field-input" }), null, 16, Ms), [[Fe, r.value]]),
|
|
3212
3232
|
V(t.$slots, "after")
|
|
3213
3233
|
], 6));
|
|
3214
3234
|
}
|
|
3215
|
-
}),
|
|
3235
|
+
}), Ps = /* @__PURE__ */ j({
|
|
3216
3236
|
__name: "GlyphTile",
|
|
3217
3237
|
props: {
|
|
3218
3238
|
glyph: {},
|
|
@@ -3231,17 +3251,17 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3231
3251
|
"aria-hidden": "true"
|
|
3232
3252
|
}, [(R(), w(H(e.glyph)))], 2));
|
|
3233
3253
|
}
|
|
3234
|
-
}),
|
|
3254
|
+
}), Fs = [
|
|
3235
3255
|
"aria-label",
|
|
3236
3256
|
"tabindex",
|
|
3237
3257
|
"onKeydown"
|
|
3238
|
-
],
|
|
3258
|
+
], Is = {
|
|
3239
3259
|
key: 0,
|
|
3240
3260
|
class: "glim-list-row-tile"
|
|
3241
|
-
},
|
|
3261
|
+
}, Ls = { class: "glim-list-row-title" }, Rs = {
|
|
3242
3262
|
key: 1,
|
|
3243
3263
|
class: "glim-list-row-badges"
|
|
3244
|
-
},
|
|
3264
|
+
}, zs = /* @__PURE__ */ j({
|
|
3245
3265
|
__name: "ListRow",
|
|
3246
3266
|
props: {
|
|
3247
3267
|
name: {},
|
|
@@ -3249,7 +3269,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3249
3269
|
mono: { type: Boolean }
|
|
3250
3270
|
},
|
|
3251
3271
|
setup(e) {
|
|
3252
|
-
let t = e, n =
|
|
3272
|
+
let t = e, n = Me(), r = C(() => !!n.onClick), i = C(() => ["glim-list-row-name", { "glim-list-row-name--mono": t.mono }]);
|
|
3253
3273
|
function a(e) {
|
|
3254
3274
|
e.preventDefault(), e.currentTarget.click();
|
|
3255
3275
|
}
|
|
@@ -3259,23 +3279,23 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3259
3279
|
"aria-label": e.name,
|
|
3260
3280
|
tabindex: r.value ? 0 : void 0,
|
|
3261
3281
|
class: P(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
3262
|
-
onKeydown: [
|
|
3282
|
+
onKeydown: [ze(X(a, ["self"]), ["enter"]), ze(X(a, ["self"]), ["space"])]
|
|
3263
3283
|
}, [
|
|
3264
|
-
t.$slots.tile ? (R(), E("span",
|
|
3265
|
-
D("span", { class: P(i.value) }, [D("span",
|
|
3284
|
+
t.$slots.tile ? (R(), E("span", Is, [V(t.$slots, "tile")])) : T("", !0),
|
|
3285
|
+
D("span", { class: P(i.value) }, [D("span", Ls, W(e.name), 1), e.tip ? (R(), E("span", {
|
|
3266
3286
|
key: 0,
|
|
3267
3287
|
class: "glim-list-row-tip",
|
|
3268
3288
|
onClick: n[0] ||= X(() => {}, ["stop"])
|
|
3269
3289
|
}, [A(Q, { tip: e.tip }, null, 8, ["tip"])])) : T("", !0)], 2),
|
|
3270
|
-
t.$slots.badges ? (R(), E("span",
|
|
3290
|
+
t.$slots.badges ? (R(), E("span", Rs, [V(t.$slots, "badges")])) : T("", !0),
|
|
3271
3291
|
t.$slots.actions ? (R(), E("span", {
|
|
3272
3292
|
key: 2,
|
|
3273
3293
|
class: "glim-list-row-actions",
|
|
3274
3294
|
onClick: n[1] ||= X(() => {}, ["stop"])
|
|
3275
3295
|
}, [V(t.$slots, "actions")])) : T("", !0)
|
|
3276
|
-
], 42,
|
|
3296
|
+
], 42, Fs));
|
|
3277
3297
|
}
|
|
3278
|
-
}),
|
|
3298
|
+
}), Bs = ["aria-label"], Vs = /* @__PURE__ */ j({
|
|
3279
3299
|
__name: "Popover",
|
|
3280
3300
|
props: {
|
|
3281
3301
|
open: { type: Boolean },
|
|
@@ -3284,13 +3304,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3284
3304
|
},
|
|
3285
3305
|
emits: ["close"],
|
|
3286
3306
|
setup(e, { emit: t }) {
|
|
3287
|
-
let n = e, r = t, i = z(null), a =
|
|
3307
|
+
let n = e, r = t, i = z(null), a = Xe(K() ?? "popover"), o;
|
|
3288
3308
|
return J([
|
|
3289
3309
|
() => n.open,
|
|
3290
3310
|
() => n.anchor,
|
|
3291
3311
|
i
|
|
3292
3312
|
], ([e, t, n]) => {
|
|
3293
|
-
o?.(), o = void 0, e && t && n && (o =
|
|
3313
|
+
o?.(), o = void 0, e && t && n && (o = Yt(n, t, a, () => r("close")));
|
|
3294
3314
|
}, { flush: "post" }), I(() => o?.()), (t, n) => e.open ? (R(), E("div", {
|
|
3295
3315
|
key: 0,
|
|
3296
3316
|
"data-glim": "Popover",
|
|
@@ -3300,24 +3320,24 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3300
3320
|
role: "dialog",
|
|
3301
3321
|
"aria-label": e.label,
|
|
3302
3322
|
class: "glim-popover"
|
|
3303
|
-
}, [V(t.$slots, "default")], 8,
|
|
3323
|
+
}, [V(t.$slots, "default")], 8, Bs)) : T("", !0);
|
|
3304
3324
|
}
|
|
3305
|
-
}),
|
|
3325
|
+
}), Hs = {
|
|
3306
3326
|
"data-glim": "ListTable",
|
|
3307
3327
|
class: "glim-list"
|
|
3308
|
-
},
|
|
3328
|
+
}, Us = ["aria-label", "onKeydown"], Ws = ["aria-label", "aria-describedby"], Gs = ["aria-sort"], Ks = { class: "glim-list-th-box" }, qs = ["onClick"], Js = [
|
|
3309
3329
|
"aria-label",
|
|
3310
3330
|
"aria-expanded",
|
|
3311
3331
|
"aria-pressed",
|
|
3312
3332
|
"onClick"
|
|
3313
|
-
],
|
|
3333
|
+
], Ys = [
|
|
3314
3334
|
"aria-selected",
|
|
3315
3335
|
"onClick",
|
|
3316
3336
|
"onDblclick"
|
|
3317
|
-
],
|
|
3337
|
+
], Xs = ["tabindex"], Zs = {
|
|
3318
3338
|
key: 1,
|
|
3319
3339
|
class: "glim-list-empty"
|
|
3320
|
-
},
|
|
3340
|
+
}, Qs = ["id"], $s = { class: "glim-list-filter-values" }, ec = /* @__PURE__ */ j({
|
|
3321
3341
|
__name: "ListTable",
|
|
3322
3342
|
props: {
|
|
3323
3343
|
label: {},
|
|
@@ -3333,12 +3353,12 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3333
3353
|
keys: [],
|
|
3334
3354
|
anchor: null,
|
|
3335
3355
|
focus: null
|
|
3336
|
-
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() =>
|
|
3356
|
+
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() => Mt(n.rows, {
|
|
3337
3357
|
sort: i.value,
|
|
3338
3358
|
filters: a.value,
|
|
3339
3359
|
query: o.value ?? "",
|
|
3340
3360
|
search: n.search ?? [n.columns[0].key]
|
|
3341
|
-
})), p = C(() => f.value.map(n.rowKey)),
|
|
3361
|
+
})), p = C(() => f.value.map(n.rowKey)), h = C(() => {
|
|
3342
3362
|
let e = (e) => e === null ? -1 : p.value.indexOf(e);
|
|
3343
3363
|
return {
|
|
3344
3364
|
selected: p.value.flatMap((e, t) => s.value.keys.includes(e) ? [t] : []),
|
|
@@ -3346,50 +3366,50 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3346
3366
|
focus: Math.max(0, e(s.value.focus))
|
|
3347
3367
|
};
|
|
3348
3368
|
});
|
|
3349
|
-
function
|
|
3350
|
-
|
|
3369
|
+
function g() {
|
|
3370
|
+
Te(() => l.value?.querySelector(`tbody tr:nth-child(${h.value.focus + 1}) > td`)?.focus());
|
|
3351
3371
|
}
|
|
3352
|
-
function
|
|
3372
|
+
function _(e) {
|
|
3353
3373
|
let t = p.value;
|
|
3354
3374
|
s.value = {
|
|
3355
3375
|
keys: e.selected.map((e) => t[e]),
|
|
3356
3376
|
anchor: e.anchor === null ? null : t[e.anchor],
|
|
3357
3377
|
focus: t[e.focus] ?? null
|
|
3358
|
-
}, r("select", e.selected.map((e) => f.value[e])),
|
|
3378
|
+
}, r("select", e.selected.map((e) => f.value[e])), g();
|
|
3359
3379
|
}
|
|
3360
|
-
function
|
|
3361
|
-
let t =
|
|
3380
|
+
function v(e) {
|
|
3381
|
+
let t = At(h.value, e.key, {
|
|
3362
3382
|
toggle: e.ctrlKey || e.metaKey,
|
|
3363
3383
|
range: e.shiftKey
|
|
3364
3384
|
}, f.value.length);
|
|
3365
|
-
t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search,
|
|
3385
|
+
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));
|
|
3366
3386
|
}
|
|
3367
|
-
function
|
|
3368
|
-
|
|
3387
|
+
function ee(e, t) {
|
|
3388
|
+
_(Tn(h.value, t, {
|
|
3369
3389
|
toggle: e.ctrlKey || e.metaKey,
|
|
3370
3390
|
range: e.shiftKey
|
|
3371
3391
|
}));
|
|
3372
3392
|
}
|
|
3373
3393
|
function te() {
|
|
3374
|
-
o.value = null,
|
|
3394
|
+
o.value = null, g();
|
|
3375
3395
|
}
|
|
3376
|
-
let
|
|
3377
|
-
function
|
|
3396
|
+
let y = C(() => c.value && n.columns.find((e) => e.key === c.value.key)), ne = (e) => a.value[e] ?? [];
|
|
3397
|
+
function b(e, t) {
|
|
3378
3398
|
let n = ne(e);
|
|
3379
3399
|
a.value = {
|
|
3380
3400
|
...a.value,
|
|
3381
3401
|
[e]: n.includes(t) ? n.filter((e) => e !== t) : [...n, t]
|
|
3382
3402
|
};
|
|
3383
3403
|
}
|
|
3384
|
-
function
|
|
3404
|
+
function re(e, t) {
|
|
3385
3405
|
c.value = c.value?.key === e ? null : {
|
|
3386
3406
|
key: e,
|
|
3387
3407
|
at: t
|
|
3388
3408
|
};
|
|
3389
3409
|
}
|
|
3390
3410
|
let ie = (e, t) => String(e[t] ?? "");
|
|
3391
|
-
return (t, n) => (R(), E("div",
|
|
3392
|
-
o.value === null ? T("", !0) :
|
|
3411
|
+
return (t, n) => (R(), E("div", Hs, [
|
|
3412
|
+
o.value === null ? T("", !0) : Re((R(), E("input", {
|
|
3393
3413
|
key: 0,
|
|
3394
3414
|
ref_key: "searchField",
|
|
3395
3415
|
ref: u,
|
|
@@ -3397,8 +3417,8 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3397
3417
|
class: "glim-input glim-list-search",
|
|
3398
3418
|
type: "search",
|
|
3399
3419
|
"aria-label": e.text.search,
|
|
3400
|
-
onKeydown:
|
|
3401
|
-
}, null, 40,
|
|
3420
|
+
onKeydown: ze(X(te, ["prevent", "stop"]), ["esc"])
|
|
3421
|
+
}, null, 40, Us)), [[Fe, o.value]]),
|
|
3402
3422
|
D("table", {
|
|
3403
3423
|
ref_key: "grid",
|
|
3404
3424
|
ref: l,
|
|
@@ -3410,17 +3430,17 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3410
3430
|
}, [D("thead", null, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (t) => (R(), E("th", {
|
|
3411
3431
|
key: t.key,
|
|
3412
3432
|
scope: "col",
|
|
3413
|
-
"aria-sort": G(
|
|
3433
|
+
"aria-sort": G($e)(i.value, t.key),
|
|
3414
3434
|
class: P(t.end ? "glim-list-th glim-table-end" : "glim-list-th")
|
|
3415
|
-
}, [D("span",
|
|
3435
|
+
}, [D("span", Ks, [D("button", {
|
|
3416
3436
|
type: "button",
|
|
3417
3437
|
class: "glim-list-sort",
|
|
3418
|
-
onClick: (e) => i.value = G(
|
|
3419
|
-
}, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(
|
|
3438
|
+
onClick: (e) => i.value = G(Ut)(i.value, t.key)
|
|
3439
|
+
}, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(m), {
|
|
3420
3440
|
key: 0,
|
|
3421
|
-
mark: G(
|
|
3441
|
+
mark: G(Ke).expand,
|
|
3422
3442
|
class: P(`glim-list-sort-mark glim-list-sort-mark--${i.value.dir}`)
|
|
3423
|
-
}, null, 8, ["mark", "class"])) : T("", !0)], 8,
|
|
3443
|
+
}, null, 8, ["mark", "class"])) : T("", !0)], 8, qs), t.filter ? (R(), E("button", {
|
|
3424
3444
|
key: 0,
|
|
3425
3445
|
type: "button",
|
|
3426
3446
|
"aria-label": e.text.filterOf(t.label),
|
|
@@ -3428,38 +3448,38 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3428
3448
|
"aria-expanded": c.value?.key === t.key,
|
|
3429
3449
|
"aria-pressed": ne(t.key).length > 0,
|
|
3430
3450
|
class: "glim-list-filter",
|
|
3431
|
-
onClick: (e) =>
|
|
3432
|
-
}, [A(G(
|
|
3451
|
+
onClick: (e) => re(t.key, e.currentTarget)
|
|
3452
|
+
}, [A(G(m), { mark: G(Ke).expand }, null, 8, ["mark"])], 8, Js)) : T("", !0)])], 10, Gs))), 128))])]), D("tbody", { onKeydown: v }, [(R(!0), E(S, null, B(f.value, (n, i) => (R(), E("tr", {
|
|
3433
3453
|
key: p.value[i],
|
|
3434
|
-
"aria-selected":
|
|
3454
|
+
"aria-selected": h.value.selected.includes(i),
|
|
3435
3455
|
class: "glim-list-tr",
|
|
3436
|
-
onClick: (e) =>
|
|
3456
|
+
onClick: (e) => ee(e, i),
|
|
3437
3457
|
onDblclick: (e) => r("open", n)
|
|
3438
3458
|
}, [(R(!0), E(S, null, B(e.columns, (e, r) => (R(), E("td", {
|
|
3439
3459
|
key: e.key,
|
|
3440
|
-
tabindex: r === 0 ? i ===
|
|
3441
|
-
class: P(G(
|
|
3460
|
+
tabindex: r === 0 ? i === h.value.focus ? 0 : -1 : void 0,
|
|
3461
|
+
class: P(G(Wn)(e) || void 0)
|
|
3442
3462
|
}, [V(t.$slots, "cell", {
|
|
3443
3463
|
row: n,
|
|
3444
3464
|
column: e
|
|
3445
|
-
}, () => [k(W(ie(n, e.key)), 1)])], 10,
|
|
3446
|
-
f.value.length === 0 ? (R(), E("p",
|
|
3465
|
+
}, () => [k(W(ie(n, e.key)), 1)])], 10, Xs))), 128))], 40, Ys))), 128))], 32)], 8, Ws),
|
|
3466
|
+
f.value.length === 0 ? (R(), E("p", Zs, W(e.text.noMatch), 1)) : T("", !0),
|
|
3447
3467
|
D("p", {
|
|
3448
3468
|
id: G(d),
|
|
3449
3469
|
class: "glim-list-hint"
|
|
3450
|
-
}, W(e.text.hint), 9,
|
|
3451
|
-
|
|
3470
|
+
}, W(e.text.hint), 9, Qs),
|
|
3471
|
+
y.value ? (R(), w(Vs, {
|
|
3452
3472
|
key: 2,
|
|
3453
3473
|
open: !0,
|
|
3454
3474
|
anchor: c.value.at,
|
|
3455
|
-
label: e.text.filterOf(
|
|
3475
|
+
label: e.text.filterOf(y.value.label),
|
|
3456
3476
|
onClose: n[1] ||= (e) => c.value = null
|
|
3457
3477
|
}, {
|
|
3458
|
-
default: Y(() => [D("div",
|
|
3478
|
+
default: Y(() => [D("div", $s, [(R(!0), E(S, null, B(G(it)(e.rows, y.value.key), (e) => (R(), w(zr, {
|
|
3459
3479
|
key: e,
|
|
3460
3480
|
label: e,
|
|
3461
|
-
"model-value": ne(
|
|
3462
|
-
"onUpdate:modelValue": (t) =>
|
|
3481
|
+
"model-value": ne(y.value.key).includes(e),
|
|
3482
|
+
"onUpdate:modelValue": (t) => b(y.value.key, e)
|
|
3463
3483
|
}, null, 8, [
|
|
3464
3484
|
"label",
|
|
3465
3485
|
"model-value",
|
|
@@ -3469,14 +3489,14 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3469
3489
|
}, 8, ["anchor", "label"])) : T("", !0)
|
|
3470
3490
|
]));
|
|
3471
3491
|
}
|
|
3472
|
-
}),
|
|
3492
|
+
}), tc = ["aria-label"], nc = [
|
|
3473
3493
|
"aria-expanded",
|
|
3474
3494
|
"tabindex",
|
|
3475
3495
|
"onClick",
|
|
3476
3496
|
"onMouseenter",
|
|
3477
3497
|
"onKeydown",
|
|
3478
3498
|
"onFocus"
|
|
3479
|
-
],
|
|
3499
|
+
], rc = /* @__PURE__ */ j({
|
|
3480
3500
|
__name: "MenuBar",
|
|
3481
3501
|
props: {
|
|
3482
3502
|
label: {},
|
|
@@ -3530,7 +3550,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3530
3550
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
3531
3551
|
onKeydown: (e) => l(e, t),
|
|
3532
3552
|
onFocus: (e) => a.value = t
|
|
3533
|
-
}, W(e.label), 41,
|
|
3553
|
+
}, W(e.label), 41, nc))), 128)), i.value && e.menus[i.value.at] ? (R(), w(Ci, {
|
|
3534
3554
|
key: i.value.at,
|
|
3535
3555
|
x: i.value.x,
|
|
3536
3556
|
y: i.value.y,
|
|
@@ -3549,9 +3569,9 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3549
3569
|
"id",
|
|
3550
3570
|
"opener",
|
|
3551
3571
|
"from-end"
|
|
3552
|
-
])) : T("", !0)], 8,
|
|
3572
|
+
])) : T("", !0)], 8, tc));
|
|
3553
3573
|
}
|
|
3554
|
-
}),
|
|
3574
|
+
}), ic = [
|
|
3555
3575
|
"role",
|
|
3556
3576
|
"aria-label",
|
|
3557
3577
|
"aria-valuemin",
|
|
@@ -3559,7 +3579,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3559
3579
|
"aria-valuenow",
|
|
3560
3580
|
"aria-valuetext",
|
|
3561
3581
|
"aria-busy"
|
|
3562
|
-
],
|
|
3582
|
+
], ac = /* @__PURE__ */ j({
|
|
3563
3583
|
inheritAttrs: !1,
|
|
3564
3584
|
__name: "Meter",
|
|
3565
3585
|
props: {
|
|
@@ -3574,7 +3594,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3574
3594
|
valueText: {}
|
|
3575
3595
|
},
|
|
3576
3596
|
setup(e) {
|
|
3577
|
-
let r = e, i = C(() =>
|
|
3597
|
+
let r = e, i = C(() => Vt(r.value, {
|
|
3578
3598
|
size: r.size,
|
|
3579
3599
|
threshold: r.threshold,
|
|
3580
3600
|
quiet: r.quiet
|
|
@@ -3594,16 +3614,16 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3594
3614
|
}), [D("span", {
|
|
3595
3615
|
class: "glim-meter-fill",
|
|
3596
3616
|
style: F(i.value.width ? { width: i.value.width } : void 0)
|
|
3597
|
-
}, null, 4)], 16,
|
|
3617
|
+
}, null, 4)], 16, ic), A(t, { state: G(o) }, null, 8, ["state"])], 64));
|
|
3598
3618
|
}
|
|
3599
|
-
}),
|
|
3619
|
+
}), oc = {
|
|
3600
3620
|
"data-glim": "NumberField",
|
|
3601
3621
|
class: "glim-num-wrap"
|
|
3602
|
-
},
|
|
3622
|
+
}, sc = [
|
|
3603
3623
|
"aria-label",
|
|
3604
3624
|
"aria-invalid",
|
|
3605
3625
|
"aria-describedby"
|
|
3606
|
-
],
|
|
3626
|
+
], cc = /* @__PURE__ */ j({
|
|
3607
3627
|
inheritAttrs: !1,
|
|
3608
3628
|
__name: "NumberField",
|
|
3609
3629
|
props: /*@__PURE__*/ M({ error: {} }, {
|
|
@@ -3612,9 +3632,9 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3612
3632
|
}),
|
|
3613
3633
|
emits: ["update:modelValue"],
|
|
3614
3634
|
setup(e) {
|
|
3615
|
-
let t = e, n = q(e, "modelValue"), r =
|
|
3635
|
+
let t = e, n = q(e, "modelValue"), r = Me(), i = x(() => r["aria-label"]), a = K(), o = C(() => ft(t.error, r.id ?? a, r["aria-describedby"])), s = U(null), c;
|
|
3616
3636
|
L(() => {
|
|
3617
|
-
l(n.value), c =
|
|
3637
|
+
l(n.value), c = et(s.value);
|
|
3618
3638
|
}), I(() => c?.());
|
|
3619
3639
|
function l(e) {
|
|
3620
3640
|
let t = s.value;
|
|
@@ -3628,13 +3648,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3628
3648
|
() => r.disabled,
|
|
3629
3649
|
() => r.readonly
|
|
3630
3650
|
], () => {
|
|
3631
|
-
l(n.value), s.value &&
|
|
3651
|
+
l(n.value), s.value && Un(s.value);
|
|
3632
3652
|
}, { flush: "post" });
|
|
3633
3653
|
function u(e) {
|
|
3634
3654
|
let t = e.target;
|
|
3635
3655
|
n.value = t.value === "" ? null : t.valueAsNumber;
|
|
3636
3656
|
}
|
|
3637
|
-
return (t, n) => (R(), E(S, null, [D("span",
|
|
3657
|
+
return (t, n) => (R(), E(S, null, [D("span", oc, [D("input", N(t.$attrs, {
|
|
3638
3658
|
ref_key: "input",
|
|
3639
3659
|
ref: s,
|
|
3640
3660
|
"aria-label": G(i),
|
|
@@ -3643,7 +3663,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3643
3663
|
type: "number",
|
|
3644
3664
|
class: "glim-num-input glim-num-field glim-num",
|
|
3645
3665
|
onInput: u
|
|
3646
|
-
}), null, 16,
|
|
3666
|
+
}), null, 16, sc)]), o.value.errorId ? (R(), w(Qi, {
|
|
3647
3667
|
key: 0,
|
|
3648
3668
|
id: o.value.errorId
|
|
3649
3669
|
}, {
|
|
@@ -3651,7 +3671,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3651
3671
|
_: 1
|
|
3652
3672
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
3653
3673
|
}
|
|
3654
|
-
}),
|
|
3674
|
+
}), lc = ["aria-label", "disabled"], uc = /* @__PURE__ */ j({
|
|
3655
3675
|
inheritAttrs: !1,
|
|
3656
3676
|
__name: "PathField",
|
|
3657
3677
|
props: /*@__PURE__*/ M({
|
|
@@ -3674,7 +3694,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3674
3694
|
setup(e, { expose: t, emit: n }) {
|
|
3675
3695
|
let r = e, i = q(e, "modelValue"), a = n, o = x(() => r.label), s = U(null);
|
|
3676
3696
|
t({ input: s });
|
|
3677
|
-
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width <
|
|
3697
|
+
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width < qe);
|
|
3678
3698
|
L(() => u.observe(c.value)), I(() => u.disconnect());
|
|
3679
3699
|
async function d() {
|
|
3680
3700
|
let e = await r.pick(i.value);
|
|
@@ -3686,11 +3706,11 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3686
3706
|
"data-glim": "PathField",
|
|
3687
3707
|
class: P([
|
|
3688
3708
|
"glim-path",
|
|
3689
|
-
G(
|
|
3709
|
+
G(pt)(e.width),
|
|
3690
3710
|
t.$attrs.class
|
|
3691
3711
|
]),
|
|
3692
3712
|
style: F(t.$attrs.style)
|
|
3693
|
-
}, [
|
|
3713
|
+
}, [Re(D("input", N({
|
|
3694
3714
|
ref_key: "input",
|
|
3695
3715
|
ref: s,
|
|
3696
3716
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
@@ -3705,11 +3725,11 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3705
3725
|
}, {
|
|
3706
3726
|
disabled: e.disabled,
|
|
3707
3727
|
class: "glim-input glim-input--mono"
|
|
3708
|
-
}), null, 16,
|
|
3728
|
+
}), null, 16, lc), [[Fe, i.value]]), A(f, N(e.buttonAttrs, {
|
|
3709
3729
|
variant: "icon",
|
|
3710
3730
|
label: e.text.pick,
|
|
3711
3731
|
"label-key": null,
|
|
3712
|
-
glyph: e.glyph ?? G(
|
|
3732
|
+
glyph: e.glyph ?? G(de),
|
|
3713
3733
|
compact: e.compact || l.value,
|
|
3714
3734
|
disabled: e.disabled,
|
|
3715
3735
|
onClick: d
|
|
@@ -3720,27 +3740,27 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3720
3740
|
"disabled"
|
|
3721
3741
|
])], 6));
|
|
3722
3742
|
}
|
|
3723
|
-
}),
|
|
3743
|
+
}), dc = ["data-glim-title"], fc = { class: "glim-modal-head" }, pc = {
|
|
3724
3744
|
id: "paypal-window-title",
|
|
3725
3745
|
class: "glim-modal-title"
|
|
3726
|
-
},
|
|
3746
|
+
}, mc = { class: "glim-give-body glim-give-body--scroll" }, hc = { class: "glim-give-appeal" }, gc = { class: "glim-give-intro" }, _c = { class: "glim-give-group" }, vc = {
|
|
3727
3747
|
id: "paypal-frequency",
|
|
3728
3748
|
class: "glim-eyebrow"
|
|
3729
|
-
},
|
|
3749
|
+
}, yc = { class: "glim-give-group" }, bc = {
|
|
3730
3750
|
id: "paypal-amount",
|
|
3731
3751
|
class: "glim-eyebrow"
|
|
3732
|
-
},
|
|
3752
|
+
}, xc = { class: "glim-give-amounts" }, Sc = [
|
|
3733
3753
|
"value",
|
|
3734
3754
|
"placeholder",
|
|
3735
3755
|
"aria-label",
|
|
3736
3756
|
"aria-invalid"
|
|
3737
|
-
],
|
|
3757
|
+
], Cc = { class: "glim-give-loading" }, wc = {
|
|
3738
3758
|
key: 0,
|
|
3739
3759
|
class: "glim-give-status glim-give-status--ok"
|
|
3740
|
-
},
|
|
3760
|
+
}, Tc = {
|
|
3741
3761
|
key: 1,
|
|
3742
3762
|
class: "glim-give-status glim-give-status--fail"
|
|
3743
|
-
},
|
|
3763
|
+
}, Ec = { class: "glim-give-foot" }, Dc = /* @__PURE__ */ j({
|
|
3744
3764
|
__name: "PaypalDialog",
|
|
3745
3765
|
props: {
|
|
3746
3766
|
text: {},
|
|
@@ -3781,7 +3801,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3781
3801
|
"aria-labelledby": "paypal-window-title",
|
|
3782
3802
|
class: "glim-modal-card glim-modal-card--wide"
|
|
3783
3803
|
}, [
|
|
3784
|
-
D("div",
|
|
3804
|
+
D("div", fc, [D("h2", pc, [A(e, {
|
|
3785
3805
|
tone: "heading",
|
|
3786
3806
|
size: "heading",
|
|
3787
3807
|
wrap: ""
|
|
@@ -3789,10 +3809,10 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3789
3809
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
3790
3810
|
_: 1
|
|
3791
3811
|
})])]),
|
|
3792
|
-
D("div",
|
|
3793
|
-
D("p",
|
|
3794
|
-
D("p",
|
|
3795
|
-
D("div",
|
|
3812
|
+
D("div", mc, [
|
|
3813
|
+
D("p", hc, W(t.text.appeal), 1),
|
|
3814
|
+
D("p", gc, W(t.text.intro), 1),
|
|
3815
|
+
D("div", _c, [D("span", vc, W(t.text.frequencyLabel), 1), V(n.$slots, "selector", {
|
|
3796
3816
|
labelledBy: "paypal-frequency",
|
|
3797
3817
|
options: a.map((e) => ({
|
|
3798
3818
|
value: e,
|
|
@@ -3801,7 +3821,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3801
3821
|
value: t.frequency,
|
|
3802
3822
|
onChange: s
|
|
3803
3823
|
})]),
|
|
3804
|
-
D("div",
|
|
3824
|
+
D("div", yc, [D("span", bc, W(t.text.amountLabel), 1), D("div", xc, [D("div", null, [V(n.$slots, "selector", {
|
|
3805
3825
|
labelledBy: "paypal-amount",
|
|
3806
3826
|
options: t.amounts.map((e) => ({
|
|
3807
3827
|
value: e,
|
|
@@ -3818,23 +3838,165 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3818
3838
|
"aria-invalid": t.typed !== "" && !t.typedValid,
|
|
3819
3839
|
class: P(t.typedValid ? "glim-give-amount glim-give-amount--valid" : "glim-give-amount"),
|
|
3820
3840
|
onInput: l
|
|
3821
|
-
}, null, 42,
|
|
3841
|
+
}, null, 42, Sc)])]),
|
|
3822
3842
|
D("div", {
|
|
3823
3843
|
ref: t.buttonsRef,
|
|
3824
3844
|
class: "glim-give-wallet"
|
|
3825
|
-
}, [D("p",
|
|
3826
|
-
t.status === "done" ? (R(), E("p",
|
|
3827
|
-
t.status === "failed" ? (R(), E("p",
|
|
3845
|
+
}, [D("p", Cc, W(t.text.loading), 1)], 512),
|
|
3846
|
+
t.status === "done" ? (R(), E("p", wc, W(t.text.thanks), 1)) : T("", !0),
|
|
3847
|
+
t.status === "failed" ? (R(), E("p", Tc, W(t.text.failed), 1)) : T("", !0)
|
|
3828
3848
|
]),
|
|
3829
|
-
D("div",
|
|
3849
|
+
D("div", Ec, [A(f, {
|
|
3830
3850
|
label: t.text.closeLabel,
|
|
3831
3851
|
"label-key": "common.close",
|
|
3832
3852
|
tone: "neutral",
|
|
3833
3853
|
onClick: r[0] ||= (e) => i("close")
|
|
3834
3854
|
}, null, 8, ["label"])])
|
|
3835
|
-
], 8,
|
|
3855
|
+
], 8, dc)]));
|
|
3836
3856
|
}
|
|
3837
|
-
}),
|
|
3857
|
+
}), Oc = {
|
|
3858
|
+
key: 0,
|
|
3859
|
+
class: "glim-pick-none"
|
|
3860
|
+
}, kc = {
|
|
3861
|
+
key: 0,
|
|
3862
|
+
class: "glim-eyebrow"
|
|
3863
|
+
}, Ac = { class: "glim-provider-pick" }, jc = /* @__PURE__ */ j({
|
|
3864
|
+
__name: "PickerWindow",
|
|
3865
|
+
props: {
|
|
3866
|
+
title: {},
|
|
3867
|
+
hint: {},
|
|
3868
|
+
items: {},
|
|
3869
|
+
groups: { default: () => [] },
|
|
3870
|
+
text: {},
|
|
3871
|
+
actions: { default: () => [] }
|
|
3872
|
+
},
|
|
3873
|
+
emits: [
|
|
3874
|
+
"pick",
|
|
3875
|
+
"back",
|
|
3876
|
+
"close"
|
|
3877
|
+
],
|
|
3878
|
+
setup(e, { emit: t }) {
|
|
3879
|
+
let n = e, r = t, i = Ne(), a = z(""), o = U(null), s = U(null), c = () => s.value?.input ?? null, l = on(), u = U(null), d = () => !!i.default, f = !1;
|
|
3880
|
+
L(() => {
|
|
3881
|
+
f = d(), u.value && St(u.value);
|
|
3882
|
+
}), Oe(() => {
|
|
3883
|
+
d() !== f && (f = d(), u.value && St(u.value), o.value?.card && rr(o.value.card)?.focus());
|
|
3884
|
+
});
|
|
3885
|
+
let p = C(() => ({
|
|
3886
|
+
label: n.text.back,
|
|
3887
|
+
labelKey: "common.back",
|
|
3888
|
+
glyph: ue,
|
|
3889
|
+
onClick: () => (r("back"), !1)
|
|
3890
|
+
})), m = () => d() ? [p.value, ...n.actions] : [{
|
|
3891
|
+
label: n.text.close,
|
|
3892
|
+
labelKey: "common.close",
|
|
3893
|
+
glyph: g,
|
|
3894
|
+
wayOut: !0
|
|
3895
|
+
}], h = C(() => nn(n.items, n.groups, a.value, Qt())), _ = (e, t) => {
|
|
3896
|
+
t && (e.preventDefault(), e.stopPropagation());
|
|
3897
|
+
};
|
|
3898
|
+
function v() {
|
|
3899
|
+
a.value = "", c()?.focus();
|
|
3900
|
+
}
|
|
3901
|
+
let ee = (e) => _(e, tn(e.key, a.value, u.value, () => a.value = "")), te = (e) => {
|
|
3902
|
+
e.target !== e.currentTarget && _(e, rn(e.key, e.target, e.currentTarget, c()));
|
|
3903
|
+
};
|
|
3904
|
+
return (t, n) => (R(), w(ua, {
|
|
3905
|
+
ref_key: "win",
|
|
3906
|
+
ref: o,
|
|
3907
|
+
"data-glim": "PickerWindow",
|
|
3908
|
+
title: e.title,
|
|
3909
|
+
class: P(["glim-pick-window", {
|
|
3910
|
+
"glim-pick-window--form": d(),
|
|
3911
|
+
"glim-hue": G(l)
|
|
3912
|
+
}]),
|
|
3913
|
+
style: F(G(l) ?? void 0),
|
|
3914
|
+
text: {
|
|
3915
|
+
cancel: e.text.cancel,
|
|
3916
|
+
close: e.text.close
|
|
3917
|
+
},
|
|
3918
|
+
"close-on-backdrop": !d(),
|
|
3919
|
+
actions: m(),
|
|
3920
|
+
onClose: n[1] ||= (e) => r("close")
|
|
3921
|
+
}, O({
|
|
3922
|
+
default: Y(() => [d() ? V(t.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A(Ns, {
|
|
3923
|
+
ref_key: "field",
|
|
3924
|
+
ref: s,
|
|
3925
|
+
modelValue: a.value,
|
|
3926
|
+
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
3927
|
+
class: "glim-pick-search",
|
|
3928
|
+
glyph: G(y),
|
|
3929
|
+
type: "search",
|
|
3930
|
+
label: e.text.search,
|
|
3931
|
+
placeholder: e.text.search,
|
|
3932
|
+
spellcheck: "false",
|
|
3933
|
+
autocomplete: "off",
|
|
3934
|
+
onKeydown: ee
|
|
3935
|
+
}, O({ _: 2 }, [a.value ? {
|
|
3936
|
+
name: "after",
|
|
3937
|
+
fn: Y(() => [A(xe, {
|
|
3938
|
+
tip: e.text.clear,
|
|
3939
|
+
glyph: G(g),
|
|
3940
|
+
onClick: v
|
|
3941
|
+
}, null, 8, ["tip", "glyph"])]),
|
|
3942
|
+
key: "0"
|
|
3943
|
+
} : void 0]), 1032, [
|
|
3944
|
+
"modelValue",
|
|
3945
|
+
"glyph",
|
|
3946
|
+
"label",
|
|
3947
|
+
"placeholder"
|
|
3948
|
+
]), D("div", {
|
|
3949
|
+
ref_key: "scroll",
|
|
3950
|
+
ref: u,
|
|
3951
|
+
class: "glim-pick-scroll",
|
|
3952
|
+
onKeydown: te
|
|
3953
|
+
}, [h.value.length === 0 ? (R(), E("p", Oc, W(G(Z)(e.text.none, { query: a.value.trim() })), 1)) : (R(!0), E(S, { key: 1 }, B(h.value, (e) => (R(), E("section", {
|
|
3954
|
+
key: e.id,
|
|
3955
|
+
class: "glim-pick-section"
|
|
3956
|
+
}, [e.title ? (R(), E("h3", kc, W(e.title), 1)) : T("", !0), D("ul", Ac, [(R(!0), E(S, null, B(e.items, (e) => (R(), E("li", {
|
|
3957
|
+
key: e.id,
|
|
3958
|
+
style: F(G(an)(e.mark))
|
|
3959
|
+
}, [A($, {
|
|
3960
|
+
brand: "house",
|
|
3961
|
+
parts: [{
|
|
3962
|
+
name: e.label,
|
|
3963
|
+
sub: e.sub,
|
|
3964
|
+
onClick: () => r("pick", e.id)
|
|
3965
|
+
}],
|
|
3966
|
+
"mark-class": G(Tt)(e.mark) ? void 0 : "glim-house-mark",
|
|
3967
|
+
hint: e.hint,
|
|
3968
|
+
tip: e.tip
|
|
3969
|
+
}, O({ _: 2 }, [e.mark ? {
|
|
3970
|
+
name: "mark",
|
|
3971
|
+
fn: Y(() => [G(Tt)(e.mark) ? (R(), w(Fr, {
|
|
3972
|
+
key: 0,
|
|
3973
|
+
svg: e.mark.svg
|
|
3974
|
+
}, null, 8, ["svg"])) : (R(), w(H(e.mark), { key: 1 }))]),
|
|
3975
|
+
key: "0"
|
|
3976
|
+
} : void 0]), 1032, [
|
|
3977
|
+
"parts",
|
|
3978
|
+
"mark-class",
|
|
3979
|
+
"hint",
|
|
3980
|
+
"tip"
|
|
3981
|
+
])], 4))), 128))])]))), 128))], 544)], 64))]),
|
|
3982
|
+
_: 2
|
|
3983
|
+
}, [e.hint ? {
|
|
3984
|
+
name: "title",
|
|
3985
|
+
fn: Y(() => [k(W(e.title), 1), A(Q, {
|
|
3986
|
+
tip: e.hint,
|
|
3987
|
+
"on-accent": ""
|
|
3988
|
+
}, null, 8, ["tip"])]),
|
|
3989
|
+
key: "0"
|
|
3990
|
+
} : void 0]), 1032, [
|
|
3991
|
+
"title",
|
|
3992
|
+
"class",
|
|
3993
|
+
"style",
|
|
3994
|
+
"text",
|
|
3995
|
+
"close-on-backdrop",
|
|
3996
|
+
"actions"
|
|
3997
|
+
]));
|
|
3998
|
+
}
|
|
3999
|
+
}), Mc = /* @__PURE__ */ j({
|
|
3838
4000
|
__name: "RowMark",
|
|
3839
4001
|
props: { on: { type: Boolean } },
|
|
3840
4002
|
setup(e) {
|
|
@@ -3842,9 +4004,9 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3842
4004
|
"data-glim": "RowMark",
|
|
3843
4005
|
class: P(["glim-rowmark", { "glim-rowmark--on": e.on }]),
|
|
3844
4006
|
"aria-hidden": "true"
|
|
3845
|
-
}, [A(G(
|
|
4007
|
+
}, [A(G(b))], 2));
|
|
3846
4008
|
}
|
|
3847
|
-
}),
|
|
4009
|
+
}), Nc = { class: "glim-sr-only" }, Pc = /* @__PURE__ */ j({
|
|
3848
4010
|
inheritAttrs: !1,
|
|
3849
4011
|
__name: "SidebarRowLink",
|
|
3850
4012
|
props: {
|
|
@@ -3879,7 +4041,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3879
4041
|
e.view.countClass && e.count ? (R(), E(S, { key: 1 }, [D("span", {
|
|
3880
4042
|
class: P(e.view.countClass),
|
|
3881
4043
|
"aria-hidden": "true"
|
|
3882
|
-
}, W(e.count.value), 3), D("span",
|
|
4044
|
+
}, W(e.count.value), 3), D("span", Nc, W(e.count.label), 1)], 64)) : T("", !0)
|
|
3883
4045
|
]),
|
|
3884
4046
|
_: 1
|
|
3885
4047
|
}, 16, [
|
|
@@ -3894,13 +4056,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3894
4056
|
"onBlur"
|
|
3895
4057
|
])), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
3896
4058
|
}
|
|
3897
|
-
}),
|
|
4059
|
+
}), Fc = {
|
|
3898
4060
|
key: 0,
|
|
3899
4061
|
class: "glim-nav-row-slot"
|
|
3900
|
-
},
|
|
4062
|
+
}, Ic = {
|
|
3901
4063
|
key: 1,
|
|
3902
4064
|
class: "glim-nav-row-slot"
|
|
3903
|
-
},
|
|
4065
|
+
}, Lc = /* @__PURE__ */ j({
|
|
3904
4066
|
inheritAttrs: !1,
|
|
3905
4067
|
__name: "SidebarRow",
|
|
3906
4068
|
props: {
|
|
@@ -3916,7 +4078,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3916
4078
|
depth: {}
|
|
3917
4079
|
},
|
|
3918
4080
|
setup(e) {
|
|
3919
|
-
let t = e, n = l("sidebar"), r =
|
|
4081
|
+
let t = e, n = l("sidebar"), r = Ne(), i = C(() => Nn({
|
|
3920
4082
|
mode: n.value,
|
|
3921
4083
|
label: t.label,
|
|
3922
4084
|
hasGlyph: !!t.glyph,
|
|
@@ -3943,15 +4105,15 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3943
4105
|
]),
|
|
3944
4106
|
style: F([i.value.style, e.$attrs.style])
|
|
3945
4107
|
}, [
|
|
3946
|
-
e.$slots.before ? (R(), E("span",
|
|
3947
|
-
A(
|
|
4108
|
+
e.$slots.before ? (R(), E("span", Fc, [V(e.$slots, "before")])) : T("", !0),
|
|
4109
|
+
A(Pc, N({
|
|
3948
4110
|
...e.$attrs,
|
|
3949
4111
|
...a.value,
|
|
3950
4112
|
class: void 0,
|
|
3951
4113
|
style: void 0
|
|
3952
4114
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
3953
|
-
e.$slots.after ? (R(), E("span",
|
|
3954
|
-
], 6)) : (R(), w(
|
|
4115
|
+
e.$slots.after ? (R(), E("span", Ic, [V(e.$slots, "after")])) : T("", !0)
|
|
4116
|
+
], 6)) : (R(), w(Pc, N({
|
|
3955
4117
|
key: 1,
|
|
3956
4118
|
"data-glim": "SidebarRow"
|
|
3957
4119
|
}, {
|
|
@@ -3968,7 +4130,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3968
4130
|
"style"
|
|
3969
4131
|
]));
|
|
3970
4132
|
}
|
|
3971
|
-
}),
|
|
4133
|
+
}), Rc = ["data-glim-title", "aria-labelledby"], zc = { class: "glim-sheet-panel" }, Bc = ["id"], Vc = { class: "glim-sheet-body" }, Hc = /* @__PURE__ */ j({
|
|
3972
4134
|
__name: "Sheet",
|
|
3973
4135
|
props: {
|
|
3974
4136
|
open: { type: Boolean },
|
|
@@ -3979,9 +4141,9 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3979
4141
|
},
|
|
3980
4142
|
emits: ["close"],
|
|
3981
4143
|
setup(t, { emit: n }) {
|
|
3982
|
-
let r = t, i = n, a =
|
|
4144
|
+
let r = t, i = n, a = Ne(), o = z(null), s = K(), c = C(() => r.start !== void 0 || !!a.start), l;
|
|
3983
4145
|
return J([() => r.open, o], ([e, t]) => {
|
|
3984
|
-
l?.(), l = void 0, e && t && (l =
|
|
4146
|
+
l?.(), l = void 0, e && t && (l = Xt(t, () => i("close")));
|
|
3985
4147
|
}, { flush: "post" }), I(() => l?.()), (n, r) => t.open ? (R(), E("dialog", {
|
|
3986
4148
|
key: 0,
|
|
3987
4149
|
"data-glim": "Sheet",
|
|
@@ -3990,7 +4152,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
3990
4152
|
ref: o,
|
|
3991
4153
|
"aria-labelledby": G(s),
|
|
3992
4154
|
class: "glim-sheet"
|
|
3993
|
-
}, [D("div",
|
|
4155
|
+
}, [D("div", zc, [
|
|
3994
4156
|
D("h2", {
|
|
3995
4157
|
id: G(s),
|
|
3996
4158
|
class: "glim-sheet-title"
|
|
@@ -4002,9 +4164,9 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4002
4164
|
}, {
|
|
4003
4165
|
default: Y(() => [k(W(t.title), 1)]),
|
|
4004
4166
|
_: 1
|
|
4005
|
-
})], 8,
|
|
4006
|
-
D("div",
|
|
4007
|
-
A(
|
|
4167
|
+
})], 8, Bc),
|
|
4168
|
+
D("div", Vc, [V(n.$slots, "default")]),
|
|
4169
|
+
A(oa, {
|
|
4008
4170
|
actions: t.actions,
|
|
4009
4171
|
start: t.start,
|
|
4010
4172
|
"has-start": c.value,
|
|
@@ -4020,12 +4182,12 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4020
4182
|
"has-start",
|
|
4021
4183
|
"text"
|
|
4022
4184
|
])
|
|
4023
|
-
])], 8,
|
|
4185
|
+
])], 8, Rc)) : T("", !0);
|
|
4024
4186
|
}
|
|
4025
|
-
}),
|
|
4187
|
+
}), Uc = {
|
|
4026
4188
|
"data-glim": "SignInField",
|
|
4027
4189
|
class: "glim-signin-field"
|
|
4028
|
-
},
|
|
4190
|
+
}, Wc = ["for"], Gc = /* @__PURE__ */ j({
|
|
4029
4191
|
__name: "SignInField",
|
|
4030
4192
|
props: {
|
|
4031
4193
|
label: {},
|
|
@@ -4034,21 +4196,21 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4034
4196
|
},
|
|
4035
4197
|
setup(e) {
|
|
4036
4198
|
let t = e, n = z(!1), r = (e) => {
|
|
4037
|
-
n.value =
|
|
4199
|
+
n.value = kt(document.getElementById(t.for), t.label, t.hint, e);
|
|
4038
4200
|
};
|
|
4039
|
-
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div",
|
|
4201
|
+
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div", Uc, [D("label", {
|
|
4040
4202
|
for: t.$props.for,
|
|
4041
4203
|
class: P(n.value ? "glim-sr-only" : "glim-signin-label")
|
|
4042
4204
|
}, [k(W(e.label), 1), e.hint ? (R(), w(Q, {
|
|
4043
4205
|
key: 0,
|
|
4044
4206
|
tip: e.hint
|
|
4045
|
-
}, null, 8, ["tip"])) : T("", !0)], 10,
|
|
4207
|
+
}, null, 8, ["tip"])) : T("", !0)], 10, Wc), V(t.$slots, "default")]));
|
|
4046
4208
|
}
|
|
4047
|
-
}),
|
|
4209
|
+
}), Kc = [
|
|
4048
4210
|
"aria-label",
|
|
4049
4211
|
"aria-invalid",
|
|
4050
4212
|
"aria-describedby"
|
|
4051
|
-
],
|
|
4213
|
+
], qc = /* @__PURE__ */ j({
|
|
4052
4214
|
inheritAttrs: !1,
|
|
4053
4215
|
__name: "TextField",
|
|
4054
4216
|
props: /*@__PURE__*/ M({
|
|
@@ -4062,11 +4224,11 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4062
4224
|
}),
|
|
4063
4225
|
emits: ["update:modelValue"],
|
|
4064
4226
|
setup(e, { expose: t }) {
|
|
4065
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4227
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => Gn({
|
|
4066
4228
|
width: n.width,
|
|
4067
4229
|
mono: n.mono
|
|
4068
|
-
})), o =
|
|
4069
|
-
return t({ input: l }), (t, n) => (R(), E(S, null, [
|
|
4230
|
+
})), o = Me(), s = K(), c = C(() => ft(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4231
|
+
return t({ input: l }), (t, n) => (R(), E(S, null, [Re(D("input", N({ "data-glim": "TextField" }, t.$attrs, {
|
|
4070
4232
|
ref_key: "input",
|
|
4071
4233
|
ref: l,
|
|
4072
4234
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -4075,7 +4237,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4075
4237
|
"aria-invalid": c.value.invalid,
|
|
4076
4238
|
"aria-describedby": c.value.describedBy,
|
|
4077
4239
|
class: a.value
|
|
4078
|
-
}), null, 16,
|
|
4240
|
+
}), null, 16, Kc), [[Fe, r.value]]), c.value.errorId ? (R(), w(Qi, {
|
|
4079
4241
|
key: 0,
|
|
4080
4242
|
id: c.value.errorId
|
|
4081
4243
|
}, {
|
|
@@ -4083,26 +4245,26 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4083
4245
|
_: 1
|
|
4084
4246
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4085
4247
|
}
|
|
4086
|
-
}),
|
|
4248
|
+
}), Jc = {
|
|
4087
4249
|
"data-glim": "SignInCard",
|
|
4088
4250
|
class: "glim-signin"
|
|
4089
|
-
},
|
|
4251
|
+
}, Yc = { class: "glim-signin-head" }, Xc = {
|
|
4090
4252
|
key: 0,
|
|
4091
4253
|
class: "glim-signin-logo",
|
|
4092
4254
|
"aria-hidden": "true"
|
|
4093
|
-
},
|
|
4255
|
+
}, Zc = ["src"], Qc = { class: "glim-signin-name" }, $c = {
|
|
4094
4256
|
key: 0,
|
|
4095
4257
|
class: "glim-signin-error",
|
|
4096
4258
|
role: "alert"
|
|
4097
|
-
},
|
|
4259
|
+
}, el = {
|
|
4098
4260
|
key: 0,
|
|
4099
4261
|
class: "glim-signin-note",
|
|
4100
4262
|
role: "status"
|
|
4101
|
-
},
|
|
4263
|
+
}, tl = { class: "glim-signin-hint" }, nl = {
|
|
4102
4264
|
key: 3,
|
|
4103
4265
|
class: "glim-signin-error",
|
|
4104
4266
|
role: "alert"
|
|
4105
|
-
},
|
|
4267
|
+
}, rl = /* @__PURE__ */ j({
|
|
4106
4268
|
__name: "SignInCard",
|
|
4107
4269
|
props: {
|
|
4108
4270
|
logo: {},
|
|
@@ -4130,7 +4292,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4130
4292
|
onSetPassword: {}
|
|
4131
4293
|
},
|
|
4132
4294
|
setup(e) {
|
|
4133
|
-
let t = e, n =
|
|
4295
|
+
let t = e, n = Ne(), r = lt(() => t), i = U(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
4134
4296
|
I(a);
|
|
4135
4297
|
let o = K(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = C(() => ({
|
|
4136
4298
|
signIn: "signIn",
|
|
@@ -4144,32 +4306,32 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4144
4306
|
hide: t.text.hide
|
|
4145
4307
|
})), u = U(null), d = "";
|
|
4146
4308
|
function p() {
|
|
4147
|
-
let e = n.step ? "step" :
|
|
4148
|
-
e !== d && ((d || t.autoFocus) &&
|
|
4309
|
+
let e = n.step ? "step" : Fn(i.value);
|
|
4310
|
+
e !== d && ((d || t.autoFocus) && gt(u.value), d = e);
|
|
4149
4311
|
}
|
|
4150
|
-
return L(p),
|
|
4312
|
+
return L(p), Oe(p), J(() => i.value.refusal?.count, (e, t, n) => {
|
|
4151
4313
|
let r = i.value.refusal;
|
|
4152
|
-
r && n(
|
|
4153
|
-
}, { flush: "post" }), (t, n) => (R(), E("div",
|
|
4314
|
+
r && n(Mn(u.value, r));
|
|
4315
|
+
}, { flush: "post" }), (t, n) => (R(), E("div", Jc, [D("div", {
|
|
4154
4316
|
ref_key: "card",
|
|
4155
4317
|
ref: u,
|
|
4156
4318
|
class: "glim-card glim-signin-card"
|
|
4157
|
-
}, [D("div",
|
|
4319
|
+
}, [D("div", Yc, [e.logo || t.$slots.logo ? (R(), E("span", Xc, [V(t.$slots, "logo", {}, () => [D("img", {
|
|
4158
4320
|
src: e.logo,
|
|
4159
4321
|
alt: "",
|
|
4160
4322
|
draggable: "false"
|
|
4161
|
-
}, null, 8,
|
|
4323
|
+
}, null, 8, Zc)])])) : T("", !0), D("h1", Qc, W(e.appName), 1)]), t.$slots.step ? V(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (R(), E("form", {
|
|
4162
4324
|
key: 1,
|
|
4163
4325
|
class: "glim-signin-form",
|
|
4164
4326
|
novalidate: "",
|
|
4165
4327
|
onSubmit: n[4] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4166
4328
|
}, [
|
|
4167
|
-
A(
|
|
4329
|
+
A(Gc, {
|
|
4168
4330
|
label: e.text.resetCode,
|
|
4169
4331
|
for: s("reset-code"),
|
|
4170
4332
|
hint: e.text.resetCodeTip
|
|
4171
4333
|
}, {
|
|
4172
|
-
default: Y(() => [A(
|
|
4334
|
+
default: Y(() => [A(qc, {
|
|
4173
4335
|
id: s("reset-code"),
|
|
4174
4336
|
"data-signin-field": "resetCode",
|
|
4175
4337
|
class: "glim-signin-log-code",
|
|
@@ -4186,11 +4348,11 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4186
4348
|
"for",
|
|
4187
4349
|
"hint"
|
|
4188
4350
|
]),
|
|
4189
|
-
A(
|
|
4351
|
+
A(Gc, {
|
|
4190
4352
|
label: e.text.newPassword,
|
|
4191
4353
|
for: s("new")
|
|
4192
4354
|
}, {
|
|
4193
|
-
default: Y(() => [A(
|
|
4355
|
+
default: Y(() => [A(lo, {
|
|
4194
4356
|
id: s("new"),
|
|
4195
4357
|
"data-signin-field": "newPassword",
|
|
4196
4358
|
"model-value": i.value.newPassword,
|
|
@@ -4204,11 +4366,11 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4204
4366
|
])]),
|
|
4205
4367
|
_: 1
|
|
4206
4368
|
}, 8, ["label", "for"]),
|
|
4207
|
-
A(
|
|
4369
|
+
A(Gc, {
|
|
4208
4370
|
label: e.text.confirmPassword,
|
|
4209
4371
|
for: s("confirm")
|
|
4210
4372
|
}, {
|
|
4211
|
-
default: Y(() => [A(
|
|
4373
|
+
default: Y(() => [A(lo, {
|
|
4212
4374
|
id: s("confirm"),
|
|
4213
4375
|
"data-signin-field": "confirm",
|
|
4214
4376
|
"model-value": i.value.confirm,
|
|
@@ -4222,14 +4384,14 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4222
4384
|
])]),
|
|
4223
4385
|
_: 1
|
|
4224
4386
|
}, 8, ["label", "for"]),
|
|
4225
|
-
i.value.error ? (R(), E("p",
|
|
4387
|
+
i.value.error ? (R(), E("p", $c, W(i.value.error), 1)) : T("", !0),
|
|
4226
4388
|
A(f, {
|
|
4227
4389
|
label: e.text.setPassword,
|
|
4228
4390
|
"label-key": c.value.setPassword,
|
|
4229
4391
|
tone: "accent",
|
|
4230
4392
|
type: "submit",
|
|
4231
4393
|
"data-signin": "set-password",
|
|
4232
|
-
disabled: G(
|
|
4394
|
+
disabled: G(yn)(i.value),
|
|
4233
4395
|
busy: i.value.busy === "setPassword",
|
|
4234
4396
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
4235
4397
|
}, null, 8, [
|
|
@@ -4257,13 +4419,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4257
4419
|
novalidate: "",
|
|
4258
4420
|
onSubmit: n[10] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4259
4421
|
}, [
|
|
4260
|
-
e.note ? (R(), E("p",
|
|
4422
|
+
e.note ? (R(), E("p", el, W(e.note), 1)) : T("", !0),
|
|
4261
4423
|
i.value.viaPasskey ? T("", !0) : V(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
4262
|
-
|
|
4424
|
+
Re(A(Gc, {
|
|
4263
4425
|
label: e.text.password,
|
|
4264
4426
|
for: s("password")
|
|
4265
4427
|
}, {
|
|
4266
|
-
default: Y(() => [A(
|
|
4428
|
+
default: Y(() => [A(lo, {
|
|
4267
4429
|
id: s("password"),
|
|
4268
4430
|
"data-signin-field": "password",
|
|
4269
4431
|
"model-value": i.value.password,
|
|
@@ -4276,13 +4438,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4276
4438
|
"text"
|
|
4277
4439
|
])]),
|
|
4278
4440
|
_: 1
|
|
4279
|
-
}, 8, ["label", "for"]), [[
|
|
4280
|
-
i.value.needCode ? (R(), w(
|
|
4441
|
+
}, 8, ["label", "for"]), [[Ie, !i.value.viaPasskey]]),
|
|
4442
|
+
i.value.needCode ? (R(), w(Gc, {
|
|
4281
4443
|
key: 2,
|
|
4282
4444
|
label: e.text.code,
|
|
4283
4445
|
for: s("code")
|
|
4284
4446
|
}, {
|
|
4285
|
-
default: Y(() => [A(
|
|
4447
|
+
default: Y(() => [A(qc, {
|
|
4286
4448
|
id: s("code"),
|
|
4287
4449
|
"data-signin-field": "code",
|
|
4288
4450
|
class: "glim-signin-code",
|
|
@@ -4292,17 +4454,17 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4292
4454
|
spellcheck: "false",
|
|
4293
4455
|
placeholder: "000000",
|
|
4294
4456
|
"onUpdate:modelValue": n[6] ||= (e) => G(r).set("code", e)
|
|
4295
|
-
}, null, 8, ["id", "model-value"]), D("p",
|
|
4457
|
+
}, null, 8, ["id", "model-value"]), D("p", tl, W(e.text.codeHint), 1)]),
|
|
4296
4458
|
_: 1
|
|
4297
4459
|
}, 8, ["label", "for"])) : T("", !0),
|
|
4298
|
-
i.value.error ? (R(), E("p",
|
|
4460
|
+
i.value.error ? (R(), E("p", nl, W(i.value.error), 1)) : T("", !0),
|
|
4299
4461
|
A(f, {
|
|
4300
4462
|
label: e.text.signIn,
|
|
4301
4463
|
"label-key": c.value.signIn,
|
|
4302
4464
|
tone: "accent",
|
|
4303
4465
|
type: "submit",
|
|
4304
4466
|
"data-signin": "submit",
|
|
4305
|
-
disabled: G(
|
|
4467
|
+
disabled: G(Pn)(i.value),
|
|
4306
4468
|
busy: i.value.busy === "signIn",
|
|
4307
4469
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
4308
4470
|
}, null, 8, [
|
|
@@ -4356,13 +4518,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4356
4518
|
])) : T("", !0)
|
|
4357
4519
|
], 32))], 512)]));
|
|
4358
4520
|
}
|
|
4359
|
-
}),
|
|
4521
|
+
}), il = {
|
|
4360
4522
|
key: 0,
|
|
4361
4523
|
class: "glim-skeleton-block glim-skeleton-tile"
|
|
4362
|
-
},
|
|
4524
|
+
}, al = {
|
|
4363
4525
|
key: 1,
|
|
4364
4526
|
class: "glim-skeleton-block glim-skeleton-badge"
|
|
4365
|
-
},
|
|
4527
|
+
}, ol = /* @__PURE__ */ j({
|
|
4366
4528
|
__name: "SkeletonRow",
|
|
4367
4529
|
props: {
|
|
4368
4530
|
delay: {},
|
|
@@ -4376,7 +4538,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4376
4538
|
}
|
|
4377
4539
|
},
|
|
4378
4540
|
setup(e) {
|
|
4379
|
-
let t = e, n = C(() =>
|
|
4541
|
+
let t = e, n = C(() => In({
|
|
4380
4542
|
delay: t.delay,
|
|
4381
4543
|
tile: t.tile,
|
|
4382
4544
|
badge: t.badge
|
|
@@ -4387,18 +4549,18 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4387
4549
|
class: P(n.value.className),
|
|
4388
4550
|
style: F(n.value.style)
|
|
4389
4551
|
}, [
|
|
4390
|
-
n.value.tile ? (R(), E("span",
|
|
4552
|
+
n.value.tile ? (R(), E("span", il)) : T("", !0),
|
|
4391
4553
|
t[0] ||= D("span", { class: "glim-skeleton-block glim-skeleton-name" }, null, -1),
|
|
4392
|
-
n.value.badge ? (R(), E("span",
|
|
4554
|
+
n.value.badge ? (R(), E("span", al)) : T("", !0)
|
|
4393
4555
|
], 6));
|
|
4394
4556
|
}
|
|
4395
|
-
}),
|
|
4557
|
+
}), sl = ["data-glim-title", "aria-labelledby"], cl = {
|
|
4396
4558
|
key: 0,
|
|
4397
4559
|
class: "glim-panel-heading"
|
|
4398
|
-
},
|
|
4560
|
+
}, ll = ["id"], ul = {
|
|
4399
4561
|
key: 1,
|
|
4400
4562
|
class: "glim-subcard-end"
|
|
4401
|
-
},
|
|
4563
|
+
}, dl = /* @__PURE__ */ j({
|
|
4402
4564
|
__name: "SubCard",
|
|
4403
4565
|
props: {
|
|
4404
4566
|
title: {},
|
|
@@ -4412,23 +4574,23 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4412
4574
|
class: P(["glim-subcard", { "glim-subcard--titled": t.title }]),
|
|
4413
4575
|
"aria-labelledby": t.title ? G(n) : void 0
|
|
4414
4576
|
}, [
|
|
4415
|
-
t.title ? (R(), E("h3",
|
|
4577
|
+
t.title ? (R(), E("h3", cl, [A(e, {
|
|
4416
4578
|
tone: "heading",
|
|
4417
4579
|
size: "heading",
|
|
4418
4580
|
wrap: ""
|
|
4419
4581
|
}, {
|
|
4420
|
-
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9,
|
|
4582
|
+
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9, ll), t.hint ? (R(), w(Q, {
|
|
4421
4583
|
key: 0,
|
|
4422
4584
|
tip: t.hint,
|
|
4423
4585
|
"on-accent": ""
|
|
4424
4586
|
}, null, 8, ["tip"])) : T("", !0)]),
|
|
4425
4587
|
_: 1
|
|
4426
4588
|
})])) : T("", !0),
|
|
4427
|
-
r.$slots.end ? (R(), E("div",
|
|
4589
|
+
r.$slots.end ? (R(), E("div", ul, [V(r.$slots, "end")])) : T("", !0),
|
|
4428
4590
|
V(r.$slots, "default")
|
|
4429
|
-
], 10,
|
|
4591
|
+
], 10, sl));
|
|
4430
4592
|
}
|
|
4431
|
-
}),
|
|
4593
|
+
}), fl = ["aria-label"], pl = { key: 0 }, ml = { key: 0 }, hl = ["colspan"], gl = /* @__PURE__ */ j({
|
|
4432
4594
|
__name: "Table",
|
|
4433
4595
|
props: {
|
|
4434
4596
|
label: {},
|
|
@@ -4442,27 +4604,27 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4442
4604
|
"data-glim": "Table",
|
|
4443
4605
|
class: "glim-table",
|
|
4444
4606
|
"aria-label": e.label
|
|
4445
|
-
}, [n.value ? (R(), E("thead",
|
|
4607
|
+
}, [n.value ? (R(), E("thead", pl, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("th", {
|
|
4446
4608
|
key: e.key,
|
|
4447
4609
|
scope: "col",
|
|
4448
4610
|
class: P({ "glim-table-end": e.end })
|
|
4449
4611
|
}, 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", {
|
|
4450
4612
|
key: e.key,
|
|
4451
|
-
class: P(G(
|
|
4613
|
+
class: P(G(Wn)(e))
|
|
4452
4614
|
}, [V(t.$slots, "cell", {
|
|
4453
4615
|
row: n,
|
|
4454
4616
|
column: e,
|
|
4455
4617
|
value: r(n, e)
|
|
4456
|
-
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr",
|
|
4618
|
+
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr", ml, [D("td", {
|
|
4457
4619
|
colspan: e.columns.length,
|
|
4458
4620
|
class: "glim-table-muted"
|
|
4459
|
-
}, W(e.more), 9,
|
|
4621
|
+
}, W(e.more), 9, hl)])) : T("", !0)])], 8, fl));
|
|
4460
4622
|
}
|
|
4461
|
-
}),
|
|
4623
|
+
}), _l = [
|
|
4462
4624
|
"aria-label",
|
|
4463
4625
|
"aria-invalid",
|
|
4464
4626
|
"aria-describedby"
|
|
4465
|
-
],
|
|
4627
|
+
], vl = /* @__PURE__ */ j({
|
|
4466
4628
|
inheritAttrs: !1,
|
|
4467
4629
|
__name: "TextArea",
|
|
4468
4630
|
props: /*@__PURE__*/ M({
|
|
@@ -4476,12 +4638,12 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4476
4638
|
}),
|
|
4477
4639
|
emits: ["update:modelValue"],
|
|
4478
4640
|
setup(e, { expose: t }) {
|
|
4479
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4641
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => Gn({
|
|
4480
4642
|
width: n.width,
|
|
4481
4643
|
mono: n.mono,
|
|
4482
4644
|
area: !0
|
|
4483
|
-
})), o =
|
|
4484
|
-
return t({ input: l }), (t, n) => (R(), E(S, null, [
|
|
4645
|
+
})), o = Me(), s = K(), c = C(() => ft(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4646
|
+
return t({ input: l }), (t, n) => (R(), E(S, null, [Re(D("textarea", N({ "data-glim": "TextArea" }, t.$attrs, {
|
|
4485
4647
|
ref_key: "input",
|
|
4486
4648
|
ref: l,
|
|
4487
4649
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -4489,7 +4651,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4489
4651
|
"aria-invalid": c.value.invalid,
|
|
4490
4652
|
"aria-describedby": c.value.describedBy,
|
|
4491
4653
|
class: a.value
|
|
4492
|
-
}), null, 16,
|
|
4654
|
+
}), null, 16, _l), [[Fe, r.value]]), c.value.errorId ? (R(), w(Qi, {
|
|
4493
4655
|
key: 0,
|
|
4494
4656
|
id: c.value.errorId
|
|
4495
4657
|
}, {
|
|
@@ -4497,7 +4659,7 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4497
4659
|
_: 1
|
|
4498
4660
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4499
4661
|
}
|
|
4500
|
-
}),
|
|
4662
|
+
}), yl = { class: "glim-toast-body" }, bl = { class: "glim-toast-message" }, xl = { key: 0 }, Sl = ["aria-label"], Cl = /* @__PURE__ */ j({
|
|
4501
4663
|
__name: "ToastCard",
|
|
4502
4664
|
props: {
|
|
4503
4665
|
id: {},
|
|
@@ -4525,13 +4687,13 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4525
4687
|
onMouseleave: n[3] ||= (t) => r("mouseLeave", e.id),
|
|
4526
4688
|
onFocusin: n[4] ||= (t) => r("focus", e.id),
|
|
4527
4689
|
onFocusout: n[5] ||= (t) => r("blur", e.id),
|
|
4528
|
-
onKeydown: n[6] ||=
|
|
4690
|
+
onKeydown: n[6] ||= ze(X((t) => r("dismiss", e.id), ["stop"]), ["esc"])
|
|
4529
4691
|
}, [
|
|
4530
|
-
A(G(
|
|
4531
|
-
mark: G(
|
|
4692
|
+
A(G(m), {
|
|
4693
|
+
mark: G(Je)[e.severity],
|
|
4532
4694
|
class: P(`glim-toast-glyph glim-toast-glyph--${e.severity}`)
|
|
4533
4695
|
}, null, 8, ["mark", "class"]),
|
|
4534
|
-
D("div",
|
|
4696
|
+
D("div", yl, [D("p", bl, [(R(!0), E(S, null, B(G(Ln)(e.message), (e, t) => (R(), E(S, { key: t }, [t > 0 ? (R(), E("wbr", xl)) : T("", !0), k(W(e), 1)], 64))), 128))]), e.action ? (R(), w(f, {
|
|
4535
4697
|
key: 0,
|
|
4536
4698
|
class: "glim-toast-action",
|
|
4537
4699
|
tone: "subtle",
|
|
@@ -4544,19 +4706,19 @@ var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
|
4544
4706
|
"aria-label": e.dismissLabel,
|
|
4545
4707
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
4546
4708
|
onClick: n[1] ||= (t) => r("dismiss", e.id)
|
|
4547
|
-
}, [A(G(
|
|
4709
|
+
}, [A(G(m), { mark: G(Ke).dismiss }, null, 8, ["mark"])], 8, Sl)
|
|
4548
4710
|
], 32));
|
|
4549
4711
|
}
|
|
4550
|
-
}),
|
|
4551
|
-
function
|
|
4552
|
-
for (let i of Object.values(t)) typeof n[
|
|
4712
|
+
}), wl = (e) => `on${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
4713
|
+
function Tl(e, t, n, r) {
|
|
4714
|
+
for (let i of Object.values(t)) typeof n[wl(i)] == "function" && r(`${e} ${i}`);
|
|
4553
4715
|
return (e, ...r) => {
|
|
4554
|
-
let i = t[e], a = i === void 0 ? void 0 : n[
|
|
4716
|
+
let i = t[e], a = i === void 0 ? void 0 : n[wl(i)];
|
|
4555
4717
|
typeof a == "function" && a(...r);
|
|
4556
4718
|
};
|
|
4557
4719
|
}
|
|
4558
4720
|
// src/ToastViewport.vue
|
|
4559
|
-
var
|
|
4721
|
+
var El = /* @__PURE__ */ j({
|
|
4560
4722
|
inheritAttrs: !1,
|
|
4561
4723
|
__name: "ToastViewport",
|
|
4562
4724
|
props: {
|
|
@@ -4575,12 +4737,12 @@ var pl = /* @__PURE__ */ j({
|
|
|
4575
4737
|
"blur"
|
|
4576
4738
|
],
|
|
4577
4739
|
setup(e, { emit: t }) {
|
|
4578
|
-
let n = e, r = t, i =
|
|
4740
|
+
let n = e, r = t, i = Tl("ToastViewport", {
|
|
4579
4741
|
mouseEnter: "enter",
|
|
4580
4742
|
mouseLeave: "leave",
|
|
4581
4743
|
focus: "focusin",
|
|
4582
4744
|
blur: "focusout"
|
|
4583
|
-
}, n,
|
|
4745
|
+
}, n, tr);
|
|
4584
4746
|
function a(e) {
|
|
4585
4747
|
r("mouseEnter", e), i("mouseEnter", e);
|
|
4586
4748
|
}
|
|
@@ -4597,18 +4759,18 @@ var pl = /* @__PURE__ */ j({
|
|
|
4597
4759
|
return J(() => n.toasts, (e) => {
|
|
4598
4760
|
let t = new Set(e.map((e) => e.id));
|
|
4599
4761
|
for (let e of l) t.has(e) || l.delete(e);
|
|
4600
|
-
for (let t of e) l.has(t.id) || (l.add(t.id),
|
|
4762
|
+
for (let t of e) l.has(t.id) || (l.add(t.id), Ze(t.message, qn(t.severity)));
|
|
4601
4763
|
}, {
|
|
4602
4764
|
immediate: !0,
|
|
4603
4765
|
deep: 1,
|
|
4604
4766
|
flush: "post"
|
|
4605
4767
|
}), (t, n) => (R(), E(S, null, [
|
|
4606
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4607
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4768
|
+
D("div", N({ class: "glim-sr-only" }, G(Nt)("polite")), null, 16),
|
|
4769
|
+
D("div", N({ class: "glim-sr-only" }, G(Nt)("assertive")), null, 16),
|
|
4608
4770
|
D("div", N({
|
|
4609
4771
|
"data-glim": "ToastViewport",
|
|
4610
4772
|
class: "glim-toast-stack"
|
|
4611
|
-
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(
|
|
4773
|
+
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(Cl, {
|
|
4612
4774
|
id: t.id,
|
|
4613
4775
|
key: t.id,
|
|
4614
4776
|
message: t.message,
|
|
@@ -4629,7 +4791,7 @@ var pl = /* @__PURE__ */ j({
|
|
|
4629
4791
|
]))), 128))], 16)
|
|
4630
4792
|
], 64));
|
|
4631
4793
|
}
|
|
4632
|
-
}),
|
|
4794
|
+
}), Dl = ["aria-label"], Ol = [
|
|
4633
4795
|
"aria-level",
|
|
4634
4796
|
"aria-posinset",
|
|
4635
4797
|
"aria-setsize",
|
|
@@ -4640,11 +4802,11 @@ var pl = /* @__PURE__ */ j({
|
|
|
4640
4802
|
"onClick",
|
|
4641
4803
|
"onDblclick",
|
|
4642
4804
|
"onKeydown"
|
|
4643
|
-
],
|
|
4805
|
+
], kl = ["onClick"], Al = {
|
|
4644
4806
|
key: 0,
|
|
4645
4807
|
class: "glim-tree-glyph",
|
|
4646
4808
|
"aria-hidden": "true"
|
|
4647
|
-
},
|
|
4809
|
+
}, jl = { class: "glim-tree-label" }, Ml = /* @__PURE__ */ j({
|
|
4648
4810
|
__name: "Tree",
|
|
4649
4811
|
props: /*@__PURE__*/ M({
|
|
4650
4812
|
label: {},
|
|
@@ -4657,12 +4819,12 @@ var pl = /* @__PURE__ */ j({
|
|
|
4657
4819
|
}),
|
|
4658
4820
|
emits: /*@__PURE__*/ M(["activate"], ["update:modelValue", "update:open"]),
|
|
4659
4821
|
setup(e, { emit: t }) {
|
|
4660
|
-
let n = e, r = q(e, "modelValue"), i = q(e, "open"), a = t, o =
|
|
4822
|
+
let n = e, r = q(e, "modelValue"), i = q(e, "open"), a = t, o = Ae(/* @__PURE__ */ new Map()), s = /* @__PURE__ */ new Set(), c = U(null);
|
|
4661
4823
|
function l(e) {
|
|
4662
4824
|
s.has(e) || (s.add(e), Promise.resolve(n.load(e)).then((t) => o.set(e, t), () => s.delete(e)));
|
|
4663
4825
|
}
|
|
4664
4826
|
J(i, (e) => [null, ...e].forEach(l), { immediate: !0 });
|
|
4665
|
-
let u = C(() =>
|
|
4827
|
+
let u = C(() => Xn(o, i.value)), d = C(() => Math.max(u.value.findIndex((e) => e.node.id === r.value), 0));
|
|
4666
4828
|
function f(e) {
|
|
4667
4829
|
i.value = i.value.includes(e) ? i.value.filter((t) => t !== e) : [...i.value, e];
|
|
4668
4830
|
}
|
|
@@ -4673,8 +4835,8 @@ var pl = /* @__PURE__ */ j({
|
|
|
4673
4835
|
e.preventDefault(), r.value = n, e.key === "Enter" && a("activate", n);
|
|
4674
4836
|
return;
|
|
4675
4837
|
}
|
|
4676
|
-
let i =
|
|
4677
|
-
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus,
|
|
4838
|
+
let i = Zn(u.value, t, e.key, getComputedStyle(c.value).direction === "rtl");
|
|
4839
|
+
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, bt(c.value, i.focus)) : f("open" in i ? i.open : i.close));
|
|
4678
4840
|
}
|
|
4679
4841
|
return (t, n) => (R(), E("div", {
|
|
4680
4842
|
ref_key: "tree",
|
|
@@ -4704,15 +4866,15 @@ var pl = /* @__PURE__ */ j({
|
|
|
4704
4866
|
"aria-hidden": "true",
|
|
4705
4867
|
onClick: X((t) => e.node.hasChildren && f(e.node.id), ["stop"]),
|
|
4706
4868
|
onDblclick: n[0] ||= X(() => {}, ["stop"])
|
|
4707
|
-
}, [e.node.hasChildren ? (R(), w(G(
|
|
4708
|
-
e.node.glyph ? (R(), E("span",
|
|
4709
|
-
D("span",
|
|
4710
|
-
], 16,
|
|
4869
|
+
}, [e.node.hasChildren ? (R(), w(G(le), { key: 0 })) : T("", !0)], 40, kl),
|
|
4870
|
+
e.node.glyph ? (R(), E("span", Al, [(R(), w(H(e.open && e.node.openGlyph || e.node.glyph)))])) : T("", !0),
|
|
4871
|
+
D("span", jl, W(e.node.label), 1)
|
|
4872
|
+
], 16, Ol))), 128))], 8, Dl));
|
|
4711
4873
|
}
|
|
4712
|
-
}),
|
|
4874
|
+
}), Nl = ["data-glim-title"], Pl = { class: "glim-notice-title" }, Fl = { class: "glim-notice-reason" }, Il = {
|
|
4713
4875
|
key: 0,
|
|
4714
4876
|
class: "glim-notice-action"
|
|
4715
|
-
},
|
|
4877
|
+
}, Ll = /* @__PURE__ */ j({
|
|
4716
4878
|
__name: "UnavailableNotice",
|
|
4717
4879
|
props: { title: {} },
|
|
4718
4880
|
setup(e) {
|
|
@@ -4721,12 +4883,12 @@ var pl = /* @__PURE__ */ j({
|
|
|
4721
4883
|
"data-glim-title": e.title,
|
|
4722
4884
|
class: "glim-notice"
|
|
4723
4885
|
}, [
|
|
4724
|
-
D("p",
|
|
4725
|
-
D("p",
|
|
4726
|
-
t.$slots.action ? (R(), E("div",
|
|
4727
|
-
], 8,
|
|
4886
|
+
D("p", Pl, W(e.title), 1),
|
|
4887
|
+
D("p", Fl, [V(t.$slots, "default")]),
|
|
4888
|
+
t.$slots.action ? (R(), E("div", Il, [V(t.$slots, "action")])) : T("", !0)
|
|
4889
|
+
], 8, Nl));
|
|
4728
4890
|
}
|
|
4729
|
-
}),
|
|
4891
|
+
}), Rl = ["aria-label"], zl = { class: "glim-window-square" }, Bl = { class: "glim-window-square" }, Vl = { class: "glim-window-square" }, Hl = /* @__PURE__ */ j({
|
|
4730
4892
|
__name: "WindowBar",
|
|
4731
4893
|
props: {
|
|
4732
4894
|
appName: {},
|
|
@@ -4762,38 +4924,38 @@ var pl = /* @__PURE__ */ j({
|
|
|
4762
4924
|
onMouseup: c,
|
|
4763
4925
|
onDblclick: s
|
|
4764
4926
|
}, [
|
|
4765
|
-
A(
|
|
4927
|
+
A(ge, {
|
|
4766
4928
|
tip: e.text.minimise,
|
|
4767
4929
|
class: "glim-window-button",
|
|
4768
4930
|
onClick: r[0] ||= (e) => n("minimise")
|
|
4769
4931
|
}, {
|
|
4770
|
-
default: Y(() => [D("span",
|
|
4932
|
+
default: Y(() => [D("span", zl, [A(G(_))])]),
|
|
4771
4933
|
_: 1
|
|
4772
4934
|
}, 8, ["tip"]),
|
|
4773
|
-
A(
|
|
4935
|
+
A(ge, {
|
|
4774
4936
|
tip: e.maximised ? e.text.restore : e.text.maximise,
|
|
4775
4937
|
class: "glim-window-button",
|
|
4776
4938
|
onClick: r[1] ||= (e) => n("toggleMaximise")
|
|
4777
4939
|
}, {
|
|
4778
|
-
default: Y(() => [D("span",
|
|
4940
|
+
default: Y(() => [D("span", Bl, [e.maximised ? (R(), w(G(me), { key: 0 })) : (R(), w(G(he), { key: 1 }))])]),
|
|
4779
4941
|
_: 1
|
|
4780
4942
|
}, 8, ["tip"]),
|
|
4781
|
-
A(
|
|
4943
|
+
A(ge, {
|
|
4782
4944
|
tip: e.text.close,
|
|
4783
4945
|
class: "glim-window-button",
|
|
4784
4946
|
onClick: r[2] ||= (e) => n("close")
|
|
4785
4947
|
}, {
|
|
4786
|
-
default: Y(() => [D("span",
|
|
4948
|
+
default: Y(() => [D("span", Vl, [A(G(g))])]),
|
|
4787
4949
|
_: 1
|
|
4788
4950
|
}, 8, ["tip"])
|
|
4789
|
-
], 40,
|
|
4951
|
+
], 40, Rl));
|
|
4790
4952
|
}
|
|
4791
4953
|
});
|
|
4792
4954
|
// src/confirm.ts
|
|
4793
|
-
function
|
|
4955
|
+
function Ul(e) {
|
|
4794
4956
|
let t = U(null), n = U(null), r = null, i = null;
|
|
4795
4957
|
function a(e, n) {
|
|
4796
|
-
return i =
|
|
4958
|
+
return i = xt(), new Promise((i) => {
|
|
4797
4959
|
r = i, t.value = {
|
|
4798
4960
|
message: e,
|
|
4799
4961
|
...n
|
|
@@ -4801,15 +4963,15 @@ function Al(e) {
|
|
|
4801
4963
|
});
|
|
4802
4964
|
}
|
|
4803
4965
|
function o(e) {
|
|
4804
|
-
r?.(e), r = null, t.value = null,
|
|
4966
|
+
r?.(e), r = null, t.value = null, bn(i), i = null;
|
|
4805
4967
|
}
|
|
4806
4968
|
let s = () => o(!1);
|
|
4807
|
-
return
|
|
4969
|
+
return Wl(() => t.value !== null, n, s), {
|
|
4808
4970
|
confirm: a,
|
|
4809
4971
|
dismiss: s,
|
|
4810
4972
|
ConfirmHost: j(() => () => {
|
|
4811
4973
|
let r = t.value;
|
|
4812
|
-
return r ? Se
|
|
4974
|
+
return r ? Ce(Se, { to: un() }, [Ce(ci, {
|
|
4813
4975
|
ref: (e) => n.value = e?.card ?? null,
|
|
4814
4976
|
title: e.title,
|
|
4815
4977
|
message: r.message,
|
|
@@ -4819,17 +4981,17 @@ function Al(e) {
|
|
|
4819
4981
|
cancelLabel: e.cancel,
|
|
4820
4982
|
onConfirm: () => o(!0),
|
|
4821
4983
|
onCancel: () => o(!1)
|
|
4822
|
-
}, r.extra ? { extra: () =>
|
|
4984
|
+
}, r.extra ? { extra: () => Ce(r.extra) } : void 0)]) : null;
|
|
4823
4985
|
})
|
|
4824
4986
|
};
|
|
4825
4987
|
}
|
|
4826
|
-
function
|
|
4988
|
+
function Wl(e, t, n) {
|
|
4827
4989
|
J(e, (e, r, i) => {
|
|
4828
|
-
e && i(
|
|
4990
|
+
e && i(Yn(() => t.value, n));
|
|
4829
4991
|
}, { immediate: !0 });
|
|
4830
4992
|
}
|
|
4831
4993
|
// src/paypalButtons.ts
|
|
4832
|
-
function
|
|
4994
|
+
function Gl(e) {
|
|
4833
4995
|
let t = U(null), n = () => {};
|
|
4834
4996
|
return J([
|
|
4835
4997
|
t,
|
|
@@ -4841,7 +5003,7 @@ function Ml(e) {
|
|
|
4841
5003
|
let o = null, s = !1;
|
|
4842
5004
|
n = () => {
|
|
4843
5005
|
s = !0, o?.close().catch(() => {});
|
|
4844
|
-
},
|
|
5006
|
+
}, Pt(r, i !== "once").then((n) => {
|
|
4845
5007
|
if (s) return;
|
|
4846
5008
|
let c = n.Buttons({
|
|
4847
5009
|
style: {
|
|
@@ -4853,18 +5015,18 @@ function Ml(e) {
|
|
|
4853
5015
|
height: 40
|
|
4854
5016
|
},
|
|
4855
5017
|
onClick: (t, n) => e().amount ? n.resolve() : n.reject(),
|
|
4856
|
-
...
|
|
5018
|
+
...ut(r, i, () => e().amount ?? "0", a, () => e().onDone()),
|
|
4857
5019
|
onError: () => e().onError()
|
|
4858
5020
|
});
|
|
4859
5021
|
o = c, t.replaceChildren(), c.render(t).catch(() => e().onError());
|
|
4860
5022
|
}, () => {
|
|
4861
5023
|
s || e().onError();
|
|
4862
5024
|
});
|
|
4863
|
-
}),
|
|
5025
|
+
}), Ee(() => n()), (e) => t.value = e;
|
|
4864
5026
|
}
|
|
4865
5027
|
// src/dragArmed.ts
|
|
4866
|
-
function
|
|
5028
|
+
function Kl(e, t) {
|
|
4867
5029
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
4868
|
-
|
|
5030
|
+
Le(n, { flush: "post" }), Oe(n);
|
|
4869
5031
|
}
|
|
4870
|
-
export {
|
|
5032
|
+
export { Nr as AboutCard, e as Badge, Fr as BrandMark, c as BusyRing, f as Button, cr as Card, zr as Checkbox, Yr as CoffeeDialog, ei as ColorPicker, ci as ConfirmDialog, Ci as ContextMenu, Ei as CopyField, Hi as CryptoDonateDialog, Gi as DropdownListbox, Xi as EmptyState, Qi as FieldError, na as FieldRow, ra as FieldRowGroup, rs as Fortress, za as FortressAppCard, fa as FortressDoubtWindow, is as FortressPairing, so as FortressPermissions, As as FortressStatusWindow, Ue as GLIMSTONE_RELEASE_URL, We as GLIMSTONE_REPO, Ge as GLIMSTONE_VERSION, Ns as GlyphField, Ps 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, vr as InfoAboutCard, Q as InfoBubble, xr as InfoHelpCard, Mr as InfoTile, Ar as InfoVersionCard, Oa as InstanceCard, ui as Kbd, zs as ListRow, ec as ListTable, m as MarkSvg, rc as MenuBar, ac as Meter, cc as NumberField, lo as PasswordField, uc as PathField, Dc as PaypalDialog, jc as PickerWindow, $i as Pill, Vs as Popover, Aa as PresenceBadges, os as ProgressBar, $ as ReadmeButton, Mc as RowMark, Ka as Selector, Hc as Sheet, Lc as SidebarRow, rl as SignInCard, Gc as SignInField, ol as SkeletonRow, dl as SubCard, gl as Table, vl as TextArea, qc as TextField, Cl as ToastCard, El as ToastViewport, Xa as Toggle, Ml as Tree, Ll as UnavailableNotice, ua as Window, Hl as WindowBar, ja as deviceGlyph, p as glyphFor, On as selectorTabId, pe as setGlyphResolver, u as useAccent, Ul as useConfirm, o as useDensity, Wl as useDialogKeys, Kl as useDragArmed, x as useFieldName, i as useHue, l as useLabelMode, d as useMotion, Gl as usePaypalButtons, ye as usePortalHue, a as useRainbow, s as useShape, n as useTipBubble };
|