@glimstone/vue 4.1.1 → 4.2.2
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/README.md +3 -0
- package/dist/SignInCard.vue.d.ts +61 -0
- package/dist/SignInField.vue.d.ts +22 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +825 -539
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./TipWrap-rNAEgvb0.js";
|
|
2
2
|
import { a as r, c as i, d as a, f as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _ } from "./glyphs-CYhs4mrY.js";
|
|
3
3
|
import { n as v, r as y, t as ee } from "./fieldName-DBygJJfe.js";
|
|
4
|
-
import { Fragment as b, Teleport as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createTextVNode as O, createVNode as k, defineComponent as A, h as te, inject as ne, mergeModels as j, mergeProps as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as re, onMounted as F, onScopeDispose as
|
|
5
|
-
import { COLOR_NAMES_DE as
|
|
4
|
+
import { Fragment as b, Teleport as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createTextVNode as O, createVNode as k, defineComponent as A, h as te, inject as ne, mergeModels as j, mergeProps as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as re, onMounted as F, onScopeDispose as ie, onUnmounted as ae, onUpdated as oe, openBlock as I, provide as se, ref as L, renderList as R, renderSlot as z, resolveDynamicComponent as B, shallowReactive as ce, shallowRef as V, toDisplayString as H, unref as U, useAttrs as le, useId as ue, useModel as W, useSlots as de, vModelDynamic as fe, vModelText as pe, vShow as me, watch as G, watchEffect as he, withCtx as K, withDirectives as q, withKeys as ge, withModifiers as J } from "vue";
|
|
5
|
+
import { COLOR_NAMES_DE as _e, COLOR_PICKER_TEXT as ve, COPIED_MS as ye, DEFAULT_MOTION as be, DEFAULT_SHAPE as xe, DESKTOP_QUERY as Se, GLIMSTONE_VERSION as Ce, MARKS as we, PATH_ROOM_PX as Te, TOAST_MARKS as Ee, WIDE_QUERY as De, applyAccent as Oe, applyMotion as ke, applyRainbow as Ae, applyShape as je, attachNumberSteppers as Me, badgeClassName as Ne, buttonView as Pe, claimMenu as Fe, closeMenuOutside as Ie, colorPicker as Le, copyText as Re, countSelector as ze, createSignInFlow as Be, fieldWidthClass as Ve, floatColorPicker as He, focusFirstField as Ue, focusFirstMenuRow as We, focusMenuRow as Ge, focusTreeRow as Ke, focusedAsker as qe, getLabelMode as Je, hueVars as Ye, isMenuHead as Xe, keepReadmeFit as Ze, labelModeChanged as Qe, mailHref as $e, mediaMatches as et, menuIsOpen as tt, menuMove as nt, menuRowView as rt, meterView as it, narrowerThan as at, nearestColorName as ot, normalizeHex as st, offersMail as ct, openInBrowser as lt, pillClassName as ut, placeMenu as dt, placeSubmenu as ft, pressRowControl as pt, progressView as mt, rainbowState as ht, readmePartClass as gt, readmeSoon as _t, readmeUnitClass as vt, resetBlocked as yt, returnFocus as bt, roveSelector as xt, rovedIndex as St, runUpdateCheck as Ct, segmentView as wt, selectorAxis as Tt, selectorFlex as Et, selectorTabId as Dt, selectorTabId as Ot, selectorView as kt, setLabelMode as At, showRefusal as jt, sidebarRowView as Mt, signInBlocked as Nt, signInStage as Pt, softBreaks as Ft, stackWindow as It, subscribeLabelMode as Lt, subscribeMedia as Rt, subscribeRainbow as zt, syncNumberSteppers as Bt, tableCellClass as Vt, takePageHue as Ht, textFieldClass as Ut, tidyMenu as Wt, toggleSelection as Gt, trapDialogKeys as Kt, treeRows as qt, treeStep as Jt, updateFace as Yt, updateStage as Xt, versionLink as Y, watchSelectorFit as Zt, watchSelectorRows as Qt, windowFocusTarget as $t, windowFoot as en } from "@glimstone/core";
|
|
6
6
|
// src/IconTipButton.vue
|
|
7
|
-
var
|
|
7
|
+
var tn = /* @__PURE__ */ A({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "IconTipButton",
|
|
10
10
|
props: {
|
|
@@ -18,24 +18,24 @@ var Kt = /* @__PURE__ */ A({
|
|
|
18
18
|
},
|
|
19
19
|
setup(r) {
|
|
20
20
|
let i = r, a = t(() => i.tip, () => i.disabled);
|
|
21
|
-
return (t, i) => (
|
|
21
|
+
return (t, i) => (I(), T(b, null, [k(U(n), {
|
|
22
22
|
on: r.disabled,
|
|
23
|
-
show:
|
|
24
|
-
hide:
|
|
23
|
+
show: U(a).show,
|
|
24
|
+
hide: U(a).hide
|
|
25
25
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
ref: (e) =>
|
|
26
|
+
default: K(() => [(I(), C(B(r.href && !r.disabled ? "a" : "button"), M(t.$attrs, {
|
|
27
|
+
ref: (e) => U(a).trigger.value = e,
|
|
28
28
|
href: r.disabled ? void 0 : r.href,
|
|
29
29
|
type: r.href && !r.disabled ? void 0 : r.type,
|
|
30
30
|
disabled: r.href && !r.disabled ? void 0 : r.disabled,
|
|
31
31
|
"aria-label": r.tip,
|
|
32
|
-
"aria-describedby":
|
|
33
|
-
onMouseenter:
|
|
34
|
-
onMouseleave:
|
|
35
|
-
onFocus:
|
|
36
|
-
onBlur:
|
|
32
|
+
"aria-describedby": U(a).describedBy.value,
|
|
33
|
+
onMouseenter: U(a).show,
|
|
34
|
+
onMouseleave: U(a).hide,
|
|
35
|
+
onFocus: U(a).showOnFocus,
|
|
36
|
+
onBlur: U(a).hide
|
|
37
37
|
}), {
|
|
38
|
-
default:
|
|
38
|
+
default: K(() => [z(t.$slots, "default")]),
|
|
39
39
|
_: 3
|
|
40
40
|
}, 16, [
|
|
41
41
|
"href",
|
|
@@ -53,9 +53,9 @@ var Kt = /* @__PURE__ */ A({
|
|
|
53
53
|
"on",
|
|
54
54
|
"show",
|
|
55
55
|
"hide"
|
|
56
|
-
]), k(e, { state:
|
|
56
|
+
]), k(e, { state: U(a) }, null, 8, ["state"])], 64));
|
|
57
57
|
}
|
|
58
|
-
}),
|
|
58
|
+
}), nn = ["disabled"], rn = /* @__PURE__ */ A({
|
|
59
59
|
__name: "Badge",
|
|
60
60
|
props: {
|
|
61
61
|
tone: { default: "neutral" },
|
|
@@ -82,7 +82,7 @@ var Kt = /* @__PURE__ */ A({
|
|
|
82
82
|
let t = e, n = S(() => t.hueIndex !== void 0 && (t.tone === "heading" || t.tone === "active")), r = S(() => [
|
|
83
83
|
n.value && "glim-hue",
|
|
84
84
|
n.value && t.size === "heading" && "glim-notch-hue",
|
|
85
|
-
|
|
85
|
+
Ne({
|
|
86
86
|
tone: t.tone,
|
|
87
87
|
size: t.size,
|
|
88
88
|
shape: t.shape,
|
|
@@ -92,107 +92,107 @@ var Kt = /* @__PURE__ */ A({
|
|
|
92
92
|
insetStart: t.insetStart,
|
|
93
93
|
action: t.as !== "span"
|
|
94
94
|
})
|
|
95
|
-
].filter(Boolean)), i = S(() => n.value ?
|
|
96
|
-
return (t, n) => e.as === "button" && e.tip !== void 0 ? (
|
|
95
|
+
].filter(Boolean)), i = S(() => n.value ? Ye(t.hueIndex) : void 0);
|
|
96
|
+
return (t, n) => e.as === "button" && e.tip !== void 0 ? (I(), C(tn, {
|
|
97
97
|
key: 0,
|
|
98
98
|
tip: e.tip,
|
|
99
99
|
disabled: e.disabled,
|
|
100
100
|
class: N(r.value),
|
|
101
101
|
style: P(i.value)
|
|
102
102
|
}, {
|
|
103
|
-
default:
|
|
103
|
+
default: K(() => [z(t.$slots, "default")]),
|
|
104
104
|
_: 3
|
|
105
105
|
}, 8, [
|
|
106
106
|
"tip",
|
|
107
107
|
"disabled",
|
|
108
108
|
"class",
|
|
109
109
|
"style"
|
|
110
|
-
])) : e.as === "button" ? (
|
|
110
|
+
])) : e.as === "button" ? (I(), T("button", {
|
|
111
111
|
key: 1,
|
|
112
112
|
type: "button",
|
|
113
113
|
disabled: e.disabled,
|
|
114
114
|
class: N(r.value),
|
|
115
115
|
style: P(i.value)
|
|
116
|
-
}, [
|
|
116
|
+
}, [z(t.$slots, "default")], 14, nn)) : e.as === "a" ? (I(), T("a", {
|
|
117
117
|
key: 2,
|
|
118
118
|
class: N(r.value),
|
|
119
119
|
style: P(i.value)
|
|
120
|
-
}, [
|
|
120
|
+
}, [z(t.$slots, "default")], 6)) : (I(), T("span", {
|
|
121
121
|
key: 3,
|
|
122
122
|
class: N(r.value),
|
|
123
123
|
style: P(i.value)
|
|
124
|
-
}, [
|
|
124
|
+
}, [z(t.$slots, "default")], 6));
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
126
|
+
}), an = ["innerHTML"], on = /* @__PURE__ */ A({
|
|
127
127
|
__name: "BrandMark",
|
|
128
128
|
props: { svg: {} },
|
|
129
129
|
setup(e) {
|
|
130
|
-
return (t, n) => (
|
|
130
|
+
return (t, n) => (I(), T("span", {
|
|
131
131
|
class: "glim-brand-svg",
|
|
132
132
|
"aria-hidden": "true",
|
|
133
133
|
innerHTML: e.svg
|
|
134
|
-
}, null, 8,
|
|
134
|
+
}, null, 8, an));
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
// src/engines.ts
|
|
138
|
-
function
|
|
139
|
-
let t =
|
|
140
|
-
return
|
|
138
|
+
function sn(e) {
|
|
139
|
+
let t = V(Je(e));
|
|
140
|
+
return ie(Lt(() => t.value = Je(e))), S({
|
|
141
141
|
get: () => t.value,
|
|
142
142
|
set: (t) => {
|
|
143
|
-
|
|
143
|
+
At(e, t), Qe();
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
let e =
|
|
149
|
-
return
|
|
147
|
+
function cn() {
|
|
148
|
+
let e = V(ht());
|
|
149
|
+
return ie(zt(() => e.value = ht())), S({
|
|
150
150
|
get: () => e.value,
|
|
151
|
-
set: (e) =>
|
|
151
|
+
set: (e) => Ae(e)
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function ln(e) {
|
|
155
155
|
return S(() => {
|
|
156
156
|
let t = e();
|
|
157
|
-
return t === void 0 ? void 0 :
|
|
157
|
+
return t === void 0 ? void 0 : Ye(t);
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
let n =
|
|
160
|
+
function un(e, t) {
|
|
161
|
+
let n = V(t()), r = new MutationObserver(() => n.value = t());
|
|
162
162
|
return r.observe(document.documentElement, {
|
|
163
163
|
attributes: !0,
|
|
164
164
|
attributeFilter: [e]
|
|
165
|
-
}),
|
|
165
|
+
}), ie(() => r.disconnect()), n;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
let e =
|
|
167
|
+
function dn() {
|
|
168
|
+
let e = un("data-shape", () => document.documentElement.getAttribute("data-shape") ?? xe);
|
|
169
169
|
return S({
|
|
170
170
|
get: () => e.value,
|
|
171
|
-
set:
|
|
171
|
+
set: je
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
let e =
|
|
174
|
+
function fn() {
|
|
175
|
+
let e = un("data-motion", () => document.documentElement.getAttribute("data-motion") ?? be);
|
|
176
176
|
return S({
|
|
177
177
|
get: () => e.value,
|
|
178
|
-
set:
|
|
178
|
+
set: ke
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
let e =
|
|
181
|
+
function pn() {
|
|
182
|
+
let e = un("style", () => document.documentElement.style.getPropertyValue("--accent"));
|
|
183
183
|
return S({
|
|
184
184
|
get: () => e.value,
|
|
185
|
-
set: (e) =>
|
|
185
|
+
set: (e) => Oe(e || void 0)
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
// src/Button.vue?vue&type=script&setup=true&lang.ts
|
|
189
|
-
var
|
|
189
|
+
var mn = {
|
|
190
190
|
key: 0,
|
|
191
191
|
class: "glim-btn-glyph"
|
|
192
|
-
},
|
|
192
|
+
}, hn = {
|
|
193
193
|
key: 0,
|
|
194
194
|
class: "glim-spinner"
|
|
195
|
-
},
|
|
195
|
+
}, X = /* @__PURE__ */ A({
|
|
196
196
|
inheritAttrs: !1,
|
|
197
197
|
__name: "Button",
|
|
198
198
|
props: {
|
|
@@ -223,13 +223,13 @@ var an = {
|
|
|
223
223
|
size: {}
|
|
224
224
|
},
|
|
225
225
|
setup(r, { expose: i }) {
|
|
226
|
-
let a = r, o =
|
|
227
|
-
|
|
226
|
+
let a = r, o = sn("buttons"), s = V(!1);
|
|
227
|
+
he((e) => {
|
|
228
228
|
if (a.compactBelow === void 0) return void (s.value = !1);
|
|
229
|
-
let t =
|
|
230
|
-
n(), e(
|
|
229
|
+
let t = at(a.compactBelow), n = () => s.value = et(t);
|
|
230
|
+
n(), e(Rt(t, n));
|
|
231
231
|
});
|
|
232
|
-
let c = S(() => a.glyph ?? (a.labelKey ? u(a.labelKey) : void 0) ?? (a.variant === "chip" ? m : void 0)), l = S(() =>
|
|
232
|
+
let c = S(() => a.glyph ?? (a.labelKey ? u(a.labelKey) : void 0) ?? (a.variant === "chip" ? m : void 0)), l = S(() => Pe({
|
|
233
233
|
mode: o.value,
|
|
234
234
|
label: a.label,
|
|
235
235
|
hasGlyph: !!c.value || a.busy,
|
|
@@ -242,40 +242,40 @@ var an = {
|
|
|
242
242
|
title: a.title,
|
|
243
243
|
hueIndex: a.hueIndex,
|
|
244
244
|
stage: a.stage
|
|
245
|
-
})), d = S(() => !!a.href && !a.disabled), f = t(() => l.value.tip, () => a.disabled), p =
|
|
245
|
+
})), d = S(() => !!a.href && !a.disabled), f = t(() => l.value.tip, () => a.disabled), p = V(null);
|
|
246
246
|
function h(e) {
|
|
247
247
|
p.value = e, f.trigger.value = p.value;
|
|
248
248
|
}
|
|
249
249
|
function g(e) {
|
|
250
|
-
l.value.pageHue &&
|
|
250
|
+
l.value.pageHue && Ht(e.currentTarget), f.show();
|
|
251
251
|
}
|
|
252
252
|
function _(e) {
|
|
253
|
-
l.value.pageHue &&
|
|
253
|
+
l.value.pageHue && Ht(e.currentTarget), f.showOnFocus();
|
|
254
254
|
}
|
|
255
|
-
return i({ el: p }), (t, i) => (
|
|
255
|
+
return i({ el: p }), (t, i) => (I(), T(b, null, [k(U(n), {
|
|
256
256
|
on: r.disabled && !!l.value.tip,
|
|
257
|
-
show:
|
|
258
|
-
hide:
|
|
257
|
+
show: U(f).show,
|
|
258
|
+
hide: U(f).hide
|
|
259
259
|
}, {
|
|
260
|
-
default:
|
|
260
|
+
default: K(() => [(I(), C(B(d.value ? "a" : "button"), M(t.$attrs, {
|
|
261
261
|
ref: h,
|
|
262
262
|
href: d.value ? r.href : void 0,
|
|
263
263
|
type: d.value ? void 0 : r.type,
|
|
264
264
|
disabled: d.value ? void 0 : r.disabled,
|
|
265
265
|
"aria-busy": r.busy || void 0,
|
|
266
|
-
"aria-describedby":
|
|
266
|
+
"aria-describedby": U(f).describedBy.value,
|
|
267
267
|
style: l.value.style,
|
|
268
268
|
class: l.value.className,
|
|
269
269
|
onMouseenter: g,
|
|
270
|
-
onMouseleave:
|
|
270
|
+
onMouseleave: U(f).hide,
|
|
271
271
|
onFocus: _,
|
|
272
|
-
onBlur:
|
|
272
|
+
onBlur: U(f).hide
|
|
273
273
|
}), {
|
|
274
|
-
default:
|
|
275
|
-
|
|
276
|
-
l.value.showGlyph ? (
|
|
277
|
-
E("span", { class: N(l.value.labelClass) },
|
|
278
|
-
|
|
274
|
+
default: K(() => [
|
|
275
|
+
z(t.$slots, "before"),
|
|
276
|
+
l.value.showGlyph ? (I(), T("span", mn, [r.busy ? (I(), T("span", hn)) : (I(), C(B(c.value), { key: 1 }))])) : w("", !0),
|
|
277
|
+
E("span", { class: N(l.value.labelClass) }, H(r.label), 3),
|
|
278
|
+
z(t.$slots, "after")
|
|
279
279
|
]),
|
|
280
280
|
_: 3
|
|
281
281
|
}, 16, [
|
|
@@ -294,9 +294,9 @@ var an = {
|
|
|
294
294
|
"on",
|
|
295
295
|
"show",
|
|
296
296
|
"hide"
|
|
297
|
-
]), k(e, { state:
|
|
297
|
+
]), k(e, { state: U(f) }, null, 8, ["state"])], 64));
|
|
298
298
|
}
|
|
299
|
-
}),
|
|
299
|
+
}), gn = ["aria-label", "aria-describedby"], Z = /* @__PURE__ */ A({
|
|
300
300
|
__name: "InfoBubble",
|
|
301
301
|
props: {
|
|
302
302
|
tip: {},
|
|
@@ -307,17 +307,17 @@ var an = {
|
|
|
307
307
|
},
|
|
308
308
|
setup(n) {
|
|
309
309
|
let r = n, i = t(() => r.tip);
|
|
310
|
-
return (t, r) => (
|
|
311
|
-
ref: (e) =>
|
|
310
|
+
return (t, r) => (I(), T(b, null, [E("span", {
|
|
311
|
+
ref: (e) => U(i).trigger.value = e,
|
|
312
312
|
"aria-label": n.tip,
|
|
313
|
-
"aria-describedby":
|
|
313
|
+
"aria-describedby": U(i).describedBy.value,
|
|
314
314
|
tabindex: "0",
|
|
315
315
|
class: N(n.onAccent ? "glim-info-icon glim-info-icon--on-accent" : "glim-info-icon"),
|
|
316
|
-
onMouseenter: r[0] ||= (...e) =>
|
|
317
|
-
onMouseleave: r[1] ||= (...e) =>
|
|
318
|
-
onFocus: r[2] ||= (...e) =>
|
|
319
|
-
onBlur: r[3] ||= (...e) =>
|
|
320
|
-
onClick: r[4] ||=
|
|
316
|
+
onMouseenter: r[0] ||= (...e) => U(i).show && U(i).show(...e),
|
|
317
|
+
onMouseleave: r[1] ||= (...e) => U(i).hide && U(i).hide(...e),
|
|
318
|
+
onFocus: r[2] ||= (...e) => U(i).showOnFocus && U(i).showOnFocus(...e),
|
|
319
|
+
onBlur: r[3] ||= (...e) => U(i).hide && U(i).hide(...e),
|
|
320
|
+
onClick: r[4] ||= J(() => {}, ["prevent"])
|
|
321
321
|
}, [...r[5] ||= [E("svg", {
|
|
322
322
|
viewBox: "0 0 16 16",
|
|
323
323
|
width: "15",
|
|
@@ -344,12 +344,12 @@ var an = {
|
|
|
344
344
|
"stroke-width": "1.3",
|
|
345
345
|
"stroke-linecap": "round"
|
|
346
346
|
})
|
|
347
|
-
], -1)]], 42,
|
|
347
|
+
], -1)]], 42, gn), k(e, { state: U(i) }, null, 8, ["state"])], 64));
|
|
348
348
|
}
|
|
349
|
-
}),
|
|
349
|
+
}), _n = {
|
|
350
350
|
key: 0,
|
|
351
351
|
class: "glim-panel-heading"
|
|
352
|
-
},
|
|
352
|
+
}, vn = /* @__PURE__ */ A({
|
|
353
353
|
__name: "Card",
|
|
354
354
|
props: {
|
|
355
355
|
title: {},
|
|
@@ -358,8 +358,8 @@ var an = {
|
|
|
358
358
|
nested: { type: Boolean }
|
|
359
359
|
},
|
|
360
360
|
setup(e) {
|
|
361
|
-
let t = e, n = S(() => t.hueIndex === void 0 ? void 0 :
|
|
362
|
-
return (t, r) => (
|
|
361
|
+
let t = e, n = S(() => t.hueIndex === void 0 ? void 0 : Ye(t.hueIndex));
|
|
362
|
+
return (t, r) => (I(), T("div", {
|
|
363
363
|
class: N([
|
|
364
364
|
"glim-panel",
|
|
365
365
|
"glim-notch-card",
|
|
@@ -369,28 +369,28 @@ var an = {
|
|
|
369
369
|
}
|
|
370
370
|
]),
|
|
371
371
|
style: P(n.value)
|
|
372
|
-
}, [e.title || e.hint || t.$slots.title ? (
|
|
372
|
+
}, [e.title || e.hint || t.$slots.title ? (I(), T("h2", _n, [k(rn, {
|
|
373
373
|
tone: "heading",
|
|
374
374
|
size: "heading",
|
|
375
375
|
wrap: "",
|
|
376
376
|
"hue-index": e.hueIndex
|
|
377
377
|
}, {
|
|
378
|
-
default:
|
|
378
|
+
default: K(() => [z(t.$slots, "title", {}, () => [O(H(e.title), 1)]), e.hint ? (I(), C(Z, {
|
|
379
379
|
key: 0,
|
|
380
380
|
tip: e.hint,
|
|
381
381
|
"on-accent": ""
|
|
382
382
|
}, null, 8, ["tip"])) : w("", !0)]),
|
|
383
383
|
_: 3
|
|
384
|
-
}, 8, ["hue-index"])])) : w("", !0),
|
|
384
|
+
}, 8, ["hue-index"])])) : w("", !0), z(t.$slots, "default")], 6));
|
|
385
385
|
}
|
|
386
|
-
}),
|
|
386
|
+
}), yn = [
|
|
387
387
|
"aria-checked",
|
|
388
388
|
"aria-label",
|
|
389
389
|
"disabled"
|
|
390
|
-
],
|
|
390
|
+
], bn = {
|
|
391
391
|
class: "glim-checkbox-box",
|
|
392
392
|
"aria-hidden": "true"
|
|
393
|
-
},
|
|
393
|
+
}, xn = { key: 0 }, Sn = /* @__PURE__ */ A({
|
|
394
394
|
__name: "Checkbox",
|
|
395
395
|
props: /*@__PURE__*/ j({
|
|
396
396
|
label: {},
|
|
@@ -415,8 +415,8 @@ var an = {
|
|
|
415
415
|
}),
|
|
416
416
|
emits: ["update:modelValue"],
|
|
417
417
|
setup(e) {
|
|
418
|
-
let t = e, n = S(() => t.hideLabel || t.slim), r =
|
|
419
|
-
return (t, i) => (
|
|
418
|
+
let t = e, n = S(() => t.hideLabel || t.slim), r = W(e, "modelValue");
|
|
419
|
+
return (t, i) => (I(), T("button", {
|
|
420
420
|
type: "button",
|
|
421
421
|
role: "checkbox",
|
|
422
422
|
"aria-checked": r.value,
|
|
@@ -424,18 +424,18 @@ var an = {
|
|
|
424
424
|
disabled: e.disabled,
|
|
425
425
|
class: N(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
426
426
|
onClick: i[0] ||= (e) => r.value = !r.value
|
|
427
|
-
}, [E("span",
|
|
427
|
+
}, [E("span", bn, [k(U(d))]), n.value ? w("", !0) : (I(), T("span", xn, H(e.label), 1))], 10, yn));
|
|
428
428
|
}
|
|
429
|
-
}),
|
|
429
|
+
}), Cn = { class: "glim-picker-foot" }, wn = {
|
|
430
430
|
key: 0,
|
|
431
431
|
class: "glim-picker-name"
|
|
432
|
-
},
|
|
432
|
+
}, Tn = ["value", "aria-label"], En = { class: "glim-picker-actions" }, Dn = /* @__PURE__ */ A({
|
|
433
433
|
__name: "ColorPicker",
|
|
434
434
|
props: /*@__PURE__*/ j({
|
|
435
435
|
anchor: { default: null },
|
|
436
436
|
names: {
|
|
437
437
|
type: [Array, Boolean],
|
|
438
|
-
default: () =>
|
|
438
|
+
default: () => _e
|
|
439
439
|
},
|
|
440
440
|
text: {}
|
|
441
441
|
}, {
|
|
@@ -448,21 +448,21 @@ var an = {
|
|
|
448
448
|
"close"
|
|
449
449
|
], ["update:modelValue"]),
|
|
450
450
|
setup(e, { emit: t }) {
|
|
451
|
-
let n = e, r =
|
|
452
|
-
...
|
|
451
|
+
let n = e, r = W(e, "modelValue"), i = t, a = {
|
|
452
|
+
...ve,
|
|
453
453
|
...n.text
|
|
454
|
-
}, o =
|
|
454
|
+
}, o = V(null), s = V(null), c = L(st(r.value) ?? "#000000"), l = L(c.value), u = S(() => n.names === !1 ? null : ot(c.value, n.names)), f = Le(c.value, (e) => {
|
|
455
455
|
c.value = e, l.value = e, i("input", e);
|
|
456
456
|
}, { text: a }), p;
|
|
457
457
|
F(() => {
|
|
458
|
-
s.value.appendChild(f.el), n.anchor && o.value && (p =
|
|
459
|
-
}), re(() => p?.()),
|
|
460
|
-
let t =
|
|
458
|
+
s.value.appendChild(f.el), n.anchor && o.value && (p = He(o.value, n.anchor, () => i("close")), f.focus());
|
|
459
|
+
}), re(() => p?.()), G(r, (e) => {
|
|
460
|
+
let t = st(e);
|
|
461
461
|
t && (c.value = t, l.value = t, f.setValue(t));
|
|
462
462
|
});
|
|
463
463
|
function m(e) {
|
|
464
464
|
l.value = e.target.value;
|
|
465
|
-
let t =
|
|
465
|
+
let t = st(l.value);
|
|
466
466
|
t && (c.value = t, f.setValue(t), i("input", t));
|
|
467
467
|
}
|
|
468
468
|
function h() {
|
|
@@ -471,7 +471,7 @@ var an = {
|
|
|
471
471
|
function g(e) {
|
|
472
472
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
|
|
473
473
|
}
|
|
474
|
-
return (t, n) => (
|
|
474
|
+
return (t, n) => (I(), C(x, {
|
|
475
475
|
to: "body",
|
|
476
476
|
disabled: !e.anchor
|
|
477
477
|
}, [E("div", {
|
|
@@ -486,12 +486,12 @@ var an = {
|
|
|
486
486
|
ref: s,
|
|
487
487
|
style: { display: "contents" }
|
|
488
488
|
}, null, 512),
|
|
489
|
-
E("div",
|
|
489
|
+
E("div", Cn, [
|
|
490
490
|
n[0] ||= E("span", {
|
|
491
491
|
class: "glim-picker-swatch",
|
|
492
492
|
"aria-hidden": "true"
|
|
493
493
|
}, null, -1),
|
|
494
|
-
u.value === null ? w("", !0) : (
|
|
494
|
+
u.value === null ? w("", !0) : (I(), T("span", wn, H(u.value), 1)),
|
|
495
495
|
E("input", {
|
|
496
496
|
class: "glim-picker-hex",
|
|
497
497
|
value: l.value,
|
|
@@ -499,27 +499,27 @@ var an = {
|
|
|
499
499
|
spellcheck: "false",
|
|
500
500
|
"aria-label": a.hex,
|
|
501
501
|
onInput: m
|
|
502
|
-
}, null, 40,
|
|
502
|
+
}, null, 40, Tn)
|
|
503
503
|
]),
|
|
504
|
-
E("div",
|
|
504
|
+
E("div", En, [k(X, {
|
|
505
505
|
label: a.apply,
|
|
506
506
|
"label-key": "apply",
|
|
507
|
-
glyph:
|
|
507
|
+
glyph: U(d),
|
|
508
508
|
tone: "accent",
|
|
509
509
|
onClick: h
|
|
510
510
|
}, null, 8, ["label", "glyph"])])
|
|
511
511
|
], 38)], 8, ["disabled"]));
|
|
512
512
|
}
|
|
513
|
-
}),
|
|
513
|
+
}), On = { class: "glim-modal-head" }, kn = {
|
|
514
514
|
id: "confirmdialog-title",
|
|
515
515
|
class: "glim-modal-title"
|
|
516
|
-
},
|
|
516
|
+
}, An = { class: "glim-modal-body" }, jn = {
|
|
517
517
|
id: "confirmdialog-message",
|
|
518
518
|
class: "glim-modal-text"
|
|
519
|
-
},
|
|
519
|
+
}, Mn = {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: "glim-modal-extra"
|
|
522
|
-
},
|
|
522
|
+
}, Nn = { class: "glim-modal-foot" }, Pn = /* @__PURE__ */ A({
|
|
523
523
|
__name: "ConfirmDialog",
|
|
524
524
|
props: {
|
|
525
525
|
title: {},
|
|
@@ -532,10 +532,10 @@ var an = {
|
|
|
532
532
|
},
|
|
533
533
|
emits: ["confirm", "cancel"],
|
|
534
534
|
setup(e, { expose: t, emit: n }) {
|
|
535
|
-
let r = n, i =
|
|
536
|
-
return F(() => a.value?.el?.focus()), t({ card: i }), (t, n) => (
|
|
535
|
+
let r = n, i = V(null), a = V(null);
|
|
536
|
+
return F(() => a.value?.el?.focus()), t({ card: i }), (t, n) => (I(), T("div", {
|
|
537
537
|
class: "glim-modal-backdrop",
|
|
538
|
-
onClick: n[3] ||=
|
|
538
|
+
onClick: n[3] ||= J((e) => r("cancel"), ["self"])
|
|
539
539
|
}, [E("div", {
|
|
540
540
|
ref_key: "card",
|
|
541
541
|
ref: i,
|
|
@@ -545,30 +545,30 @@ var an = {
|
|
|
545
545
|
"aria-describedby": "confirmdialog-message",
|
|
546
546
|
class: "glim-modal-card"
|
|
547
547
|
}, [
|
|
548
|
-
E("div",
|
|
548
|
+
E("div", On, [E("h2", kn, [k(rn, {
|
|
549
549
|
tone: "heading",
|
|
550
550
|
size: "heading",
|
|
551
551
|
wrap: ""
|
|
552
552
|
}, {
|
|
553
|
-
default:
|
|
553
|
+
default: K(() => [O(H(e.title), 1)]),
|
|
554
554
|
_: 1
|
|
555
|
-
})]), e.closeLabel === void 0 ? w("", !0) : (
|
|
555
|
+
})]), e.closeLabel === void 0 ? w("", !0) : (I(), C(X, {
|
|
556
556
|
key: 0,
|
|
557
557
|
label: e.closeLabel,
|
|
558
558
|
"label-key": "common.close",
|
|
559
|
-
glyph:
|
|
559
|
+
glyph: U(m),
|
|
560
560
|
class: "glim-modal-close",
|
|
561
561
|
onClick: n[0] ||= (e) => r("cancel")
|
|
562
562
|
}, null, 8, ["label", "glyph"]))]),
|
|
563
|
-
E("div",
|
|
564
|
-
E("div",
|
|
563
|
+
E("div", An, [E("p", jn, H(e.message), 1), t.$slots.extra ? (I(), T("div", Mn, [z(t.$slots, "extra")])) : w("", !0)]),
|
|
564
|
+
E("div", Nn, [k(X, {
|
|
565
565
|
ref_key: "cancel",
|
|
566
566
|
ref: a,
|
|
567
567
|
label: e.cancelLabel,
|
|
568
568
|
"label-key": "common.cancel",
|
|
569
|
-
glyph:
|
|
569
|
+
glyph: U(g),
|
|
570
570
|
onClick: n[1] ||= (e) => r("cancel")
|
|
571
|
-
}, null, 8, ["label", "glyph"]), k(
|
|
571
|
+
}, null, 8, ["label", "glyph"]), k(X, {
|
|
572
572
|
label: e.confirmLabel,
|
|
573
573
|
"label-key": e.confirmLabelKey ?? null,
|
|
574
574
|
glyph: e.confirmGlyph,
|
|
@@ -580,20 +580,20 @@ var an = {
|
|
|
580
580
|
])])
|
|
581
581
|
], 512)]));
|
|
582
582
|
}
|
|
583
|
-
}),
|
|
583
|
+
}), Fn = { class: "glim-kbd" }, In = /* @__PURE__ */ A({
|
|
584
584
|
__name: "Kbd",
|
|
585
585
|
setup(e) {
|
|
586
|
-
return (e, t) => (
|
|
586
|
+
return (e, t) => (I(), T("kbd", Fn, [z(e.$slots, "default")]));
|
|
587
587
|
}
|
|
588
|
-
}),
|
|
588
|
+
}), Ln = {
|
|
589
589
|
key: 0,
|
|
590
590
|
class: "glim-menu-sep",
|
|
591
591
|
role: "separator"
|
|
592
|
-
},
|
|
592
|
+
}, Rn = {
|
|
593
593
|
key: 1,
|
|
594
594
|
class: "glim-menu-head",
|
|
595
595
|
role: "presentation"
|
|
596
|
-
},
|
|
596
|
+
}, zn = [
|
|
597
597
|
"role",
|
|
598
598
|
"aria-checked",
|
|
599
599
|
"aria-haspopup",
|
|
@@ -601,26 +601,26 @@ var an = {
|
|
|
601
601
|
"disabled",
|
|
602
602
|
"data-row",
|
|
603
603
|
"onClick"
|
|
604
|
-
],
|
|
604
|
+
], Bn = {
|
|
605
605
|
key: 0,
|
|
606
606
|
class: "glim-checkbox-box",
|
|
607
607
|
"aria-hidden": "true"
|
|
608
|
-
},
|
|
608
|
+
}, Vn = {
|
|
609
609
|
key: 2,
|
|
610
610
|
class: "glim-menu-glyph",
|
|
611
611
|
"aria-hidden": "true"
|
|
612
|
-
},
|
|
612
|
+
}, Hn = { class: "glim-menu-label" }, Un = {
|
|
613
613
|
key: 3,
|
|
614
614
|
class: "glim-menu-end glim-menu-caret",
|
|
615
615
|
"aria-hidden": "true"
|
|
616
|
-
},
|
|
616
|
+
}, Wn = {
|
|
617
617
|
key: 4,
|
|
618
618
|
class: "glim-menu-end glim-menu-tick",
|
|
619
619
|
"aria-hidden": "true"
|
|
620
|
-
},
|
|
620
|
+
}, Gn = {
|
|
621
621
|
key: 6,
|
|
622
622
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
623
|
-
},
|
|
623
|
+
}, Kn = /* @__PURE__ */ A({
|
|
624
624
|
__name: "MenuRows",
|
|
625
625
|
props: {
|
|
626
626
|
entries: {},
|
|
@@ -628,15 +628,15 @@ var an = {
|
|
|
628
628
|
},
|
|
629
629
|
emits: ["pick"],
|
|
630
630
|
setup(e, { emit: t }) {
|
|
631
|
-
let n = e, i = t, a = S(() => n.entries.map((e) => e === "-" ? { kind: "sep" } :
|
|
631
|
+
let n = e, i = t, a = S(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : Xe(e) ? {
|
|
632
632
|
kind: "head",
|
|
633
633
|
head: e
|
|
634
634
|
} : {
|
|
635
635
|
kind: "item",
|
|
636
636
|
item: e,
|
|
637
|
-
view:
|
|
637
|
+
view: rt(e)
|
|
638
638
|
}));
|
|
639
|
-
return (t, n) => (
|
|
639
|
+
return (t, n) => (I(!0), T(b, null, R(a.value, (t, n) => (I(), T(b, { key: n }, [t.kind === "sep" ? (I(), T("div", Ln)) : t.kind === "head" ? (I(), T("div", Rn, [E("span", null, H(t.head.head), 1), t.head.edit ? (I(), C(tn, {
|
|
640
640
|
key: 0,
|
|
641
641
|
tip: t.head.edit.tip,
|
|
642
642
|
role: "menuitem",
|
|
@@ -645,13 +645,13 @@ var an = {
|
|
|
645
645
|
"data-row": n,
|
|
646
646
|
onClick: (e) => i("pick", n)
|
|
647
647
|
}, {
|
|
648
|
-
default:
|
|
648
|
+
default: K(() => [(I(), C(B(t.head.edit.glyph ?? U(l))))]),
|
|
649
649
|
_: 2
|
|
650
650
|
}, 1032, [
|
|
651
651
|
"tip",
|
|
652
652
|
"data-row",
|
|
653
653
|
"onClick"
|
|
654
|
-
])) : w("", !0)])) : (
|
|
654
|
+
])) : w("", !0)])) : (I(), T("button", {
|
|
655
655
|
key: 2,
|
|
656
656
|
type: "button",
|
|
657
657
|
role: t.view.role,
|
|
@@ -664,23 +664,23 @@ var an = {
|
|
|
664
664
|
"data-row": n,
|
|
665
665
|
onClick: (e) => i("pick", n)
|
|
666
666
|
}, [
|
|
667
|
-
t.view.lead === "box" ? (
|
|
667
|
+
t.view.lead === "box" ? (I(), T("span", Bn, [k(U(d))])) : t.view.lead === "dot" ? (I(), T("span", {
|
|
668
668
|
key: 1,
|
|
669
669
|
class: "glim-menu-dot",
|
|
670
670
|
style: P({ backgroundColor: t.item.color }),
|
|
671
671
|
"aria-hidden": "true"
|
|
672
|
-
}, null, 4)) : (
|
|
673
|
-
E("span",
|
|
674
|
-
t.view.end === "submenu" ? (
|
|
672
|
+
}, null, 4)) : (I(), T("span", Vn, [t.view.lead === "glyph" ? (I(), C(B(t.item.glyph), { key: 0 })) : w("", !0)])),
|
|
673
|
+
E("span", Hn, H(t.item.label), 1),
|
|
674
|
+
t.view.end === "submenu" ? (I(), T("span", Un, [k(U(r))])) : t.view.end === "tick" ? (I(), T("span", Wn, [k(U(d))])) : t.view.end === "shortcut" ? (I(), C(In, {
|
|
675
675
|
key: 5,
|
|
676
676
|
class: "glim-menu-end"
|
|
677
677
|
}, {
|
|
678
|
-
default:
|
|
678
|
+
default: K(() => [O(H(t.item.shortcut), 1)]),
|
|
679
679
|
_: 2
|
|
680
|
-
}, 1024)) : t.view.end === "count" ? (
|
|
681
|
-
], 10,
|
|
680
|
+
}, 1024)) : t.view.end === "count" ? (I(), T("span", Gn, H(t.item.count), 1)) : w("", !0)
|
|
681
|
+
], 10, zn))], 64))), 128));
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), qn = ["id", "aria-label"], Jn = ["id", "aria-label"], Yn = /* @__PURE__ */ A({
|
|
684
684
|
__name: "ContextMenu",
|
|
685
685
|
props: {
|
|
686
686
|
x: {},
|
|
@@ -696,68 +696,68 @@ var an = {
|
|
|
696
696
|
},
|
|
697
697
|
emits: ["close", "step"],
|
|
698
698
|
setup(e, { emit: t }) {
|
|
699
|
-
let n = e, r = t, i =
|
|
699
|
+
let n = e, r = t, i = V(null), a = V(null), o = qe(), s = L({
|
|
700
700
|
left: n.x,
|
|
701
701
|
top: n.y
|
|
702
|
-
}), c =
|
|
702
|
+
}), c = V(null), l = L(null), u = S(() => Wt(n.items)), d = S(() => {
|
|
703
703
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
704
|
-
return e && e !== "-" && !
|
|
705
|
-
}), f = S(() => d.value?.sub ?
|
|
704
|
+
return e && e !== "-" && !Xe(e) && e.sub ? e : null;
|
|
705
|
+
}), f = S(() => d.value?.sub ? Wt(d.value.sub) : null), p = () => ({
|
|
706
706
|
width: innerWidth,
|
|
707
707
|
height: innerHeight
|
|
708
708
|
});
|
|
709
709
|
function m(e) {
|
|
710
|
-
r("close"), e &&
|
|
710
|
+
r("close"), e && bt(n.opener ?? o);
|
|
711
711
|
}
|
|
712
712
|
function h() {
|
|
713
713
|
let e = i.value;
|
|
714
|
-
e && (s.value =
|
|
714
|
+
e && (s.value = dt(n.x, n.y, {
|
|
715
715
|
width: e.offsetWidth,
|
|
716
716
|
height: e.offsetHeight
|
|
717
717
|
}, p(), n.above));
|
|
718
718
|
}
|
|
719
|
-
|
|
719
|
+
G(() => [
|
|
720
720
|
n.x,
|
|
721
721
|
n.y,
|
|
722
722
|
n.above
|
|
723
723
|
], h, { flush: "post" });
|
|
724
724
|
let g, _;
|
|
725
725
|
F(() => {
|
|
726
|
-
h(), g =
|
|
726
|
+
h(), g = Fe(m), _ = Ie(() => [
|
|
727
727
|
i.value,
|
|
728
728
|
a.value,
|
|
729
729
|
n.opener
|
|
730
|
-
], () => m(!1)), i.value &&
|
|
731
|
-
}),
|
|
730
|
+
], () => m(!1)), i.value && We(i.value);
|
|
731
|
+
}), ae(() => {
|
|
732
732
|
g?.(), _?.();
|
|
733
|
-
}),
|
|
733
|
+
}), G(c, (e) => {
|
|
734
734
|
l.value = null;
|
|
735
735
|
let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
|
|
736
736
|
if (!e || !t || !n) return;
|
|
737
737
|
let r = getComputedStyle(i.value).direction === "rtl";
|
|
738
|
-
l.value =
|
|
738
|
+
l.value = ft(t.getBoundingClientRect(), {
|
|
739
739
|
width: n.offsetWidth,
|
|
740
740
|
height: n.offsetHeight
|
|
741
|
-
}, p(), r), e.focus &&
|
|
741
|
+
}, p(), r), e.focus && We(n);
|
|
742
742
|
}, { flush: "post" });
|
|
743
743
|
function v(e, t) {
|
|
744
744
|
let n = e[t];
|
|
745
|
-
n !== "-" && (
|
|
745
|
+
n !== "-" && (Xe(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
|
|
746
746
|
at: t,
|
|
747
747
|
focus: !0
|
|
748
|
-
} : (
|
|
748
|
+
} : (rt(n).staysOpen || m(!0), n.onSelect?.()));
|
|
749
749
|
}
|
|
750
750
|
function y(e, t) {
|
|
751
751
|
if (e.key === "Tab") return m(!1);
|
|
752
|
-
let n = e.currentTarget, a =
|
|
752
|
+
let n = e.currentTarget, a = nt(e.key, getComputedStyle(n).direction === "rtl");
|
|
753
753
|
if (!a) return;
|
|
754
|
-
if (e.preventDefault(), a !== "in" && a !== "out") return
|
|
754
|
+
if (e.preventDefault(), a !== "in" && a !== "out") return Ge(n, a);
|
|
755
755
|
if (t) {
|
|
756
756
|
a === "out" && c.value && (i.value?.querySelector(`[data-row="${c.value.at}"]`)?.focus(), c.value = null);
|
|
757
757
|
return;
|
|
758
758
|
}
|
|
759
759
|
let o = Number(document.activeElement?.dataset.row), s = u.value[o];
|
|
760
|
-
a === "in" && s && s !== "-" && !
|
|
760
|
+
a === "in" && s && s !== "-" && !Xe(s) && s.sub && !s.disabled ? c.value = {
|
|
761
761
|
at: o,
|
|
762
762
|
focus: !0
|
|
763
763
|
} : r("step", a === "in" ? 1 : -1);
|
|
@@ -765,13 +765,13 @@ var an = {
|
|
|
765
765
|
function ee(e) {
|
|
766
766
|
let t = e.target.closest("[data-row]");
|
|
767
767
|
if (!t) return;
|
|
768
|
-
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !
|
|
768
|
+
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !Xe(r) && !!r.sub && !r.disabled;
|
|
769
769
|
i && c.value?.at !== n ? c.value = {
|
|
770
770
|
at: n,
|
|
771
771
|
focus: !1
|
|
772
772
|
} : !i && c.value && (c.value = null);
|
|
773
773
|
}
|
|
774
|
-
return (t, n) => (
|
|
774
|
+
return (t, n) => (I(), C(x, { to: "body" }, [E("div", {
|
|
775
775
|
id: e.id,
|
|
776
776
|
ref_key: "menu",
|
|
777
777
|
ref: i,
|
|
@@ -784,12 +784,12 @@ var an = {
|
|
|
784
784
|
}),
|
|
785
785
|
onKeydown: n[1] ||= (e) => y(e, !1),
|
|
786
786
|
onMouseover: ee,
|
|
787
|
-
onContextmenu: n[2] ||=
|
|
788
|
-
}, [k(
|
|
787
|
+
onContextmenu: n[2] ||= J(() => {}, ["prevent"])
|
|
788
|
+
}, [k(Kn, {
|
|
789
789
|
entries: u.value,
|
|
790
790
|
"open-at": c.value?.at,
|
|
791
791
|
onPick: n[0] ||= (e) => v(u.value, e)
|
|
792
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
792
|
+
}, null, 8, ["entries", "open-at"])], 44, qn), f.value ? (I(), T("div", {
|
|
793
793
|
key: 0,
|
|
794
794
|
id: d.value?.subId,
|
|
795
795
|
ref_key: "subMenu",
|
|
@@ -802,16 +802,16 @@ var an = {
|
|
|
802
802
|
top: `${l.value?.top ?? 0}px`
|
|
803
803
|
}),
|
|
804
804
|
onKeydown: n[4] ||= (e) => y(e, !0),
|
|
805
|
-
onContextmenu: n[5] ||=
|
|
806
|
-
}, [k(
|
|
805
|
+
onContextmenu: n[5] ||= J(() => {}, ["prevent"])
|
|
806
|
+
}, [k(Kn, {
|
|
807
807
|
entries: f.value,
|
|
808
808
|
onPick: n[3] ||= (e) => v(f.value, e)
|
|
809
|
-
}, null, 8, ["entries"])], 44,
|
|
809
|
+
}, null, 8, ["entries"])], 44, Jn)) : w("", !0)]));
|
|
810
810
|
}
|
|
811
|
-
}),
|
|
811
|
+
}), Xn = ["value", "aria-label"], Zn = {
|
|
812
812
|
role: "status",
|
|
813
813
|
class: "glim-sr-only"
|
|
814
|
-
},
|
|
814
|
+
}, Qn = /* @__PURE__ */ A({
|
|
815
815
|
__name: "CopyField",
|
|
816
816
|
props: {
|
|
817
817
|
value: {},
|
|
@@ -824,26 +824,26 @@ var an = {
|
|
|
824
824
|
},
|
|
825
825
|
emits: ["copy"],
|
|
826
826
|
setup(e, { emit: t }) {
|
|
827
|
-
let n = e, r = t, i = y(() => n.label), a =
|
|
827
|
+
let n = e, r = t, i = y(() => n.label), a = L(!1), o = V(null), s;
|
|
828
828
|
re(() => clearTimeout(s));
|
|
829
829
|
async function l() {
|
|
830
|
-
let e = await
|
|
831
|
-
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1,
|
|
830
|
+
let e = await Re(n.value);
|
|
831
|
+
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, ye)) : (o.value?.focus(), o.value?.select());
|
|
832
832
|
}
|
|
833
|
-
return (t, n) => (
|
|
833
|
+
return (t, n) => (I(), T("span", { class: N(["glim-copy", U(Ve)(e.width)]) }, [
|
|
834
834
|
E("input", {
|
|
835
835
|
ref_key: "field",
|
|
836
836
|
ref: o,
|
|
837
837
|
readonly: "",
|
|
838
838
|
value: e.value,
|
|
839
|
-
"aria-label":
|
|
839
|
+
"aria-label": U(i),
|
|
840
840
|
spellcheck: "false",
|
|
841
841
|
class: "glim-input glim-input--mono"
|
|
842
|
-
}, null, 8,
|
|
843
|
-
k(
|
|
842
|
+
}, null, 8, Xn),
|
|
843
|
+
k(X, {
|
|
844
844
|
label: a.value ? e.text.copied : e.text.copy,
|
|
845
845
|
"label-key": a.value ? "copied" : "copy",
|
|
846
|
-
glyph: a.value ?
|
|
846
|
+
glyph: a.value ? U(d) : U(c),
|
|
847
847
|
variant: "icon",
|
|
848
848
|
onClick: l
|
|
849
849
|
}, null, 8, [
|
|
@@ -851,17 +851,17 @@ var an = {
|
|
|
851
851
|
"label-key",
|
|
852
852
|
"glyph"
|
|
853
853
|
]),
|
|
854
|
-
E("span",
|
|
854
|
+
E("span", Zn, H(a.value ? e.text.copied : ""), 1)
|
|
855
855
|
], 2));
|
|
856
856
|
}
|
|
857
|
-
}),
|
|
857
|
+
}), $n = {
|
|
858
858
|
key: 0,
|
|
859
859
|
class: "glim-empty-glyph",
|
|
860
860
|
"aria-hidden": "true"
|
|
861
|
-
},
|
|
861
|
+
}, er = { class: "glim-empty-title" }, tr = {
|
|
862
862
|
key: 1,
|
|
863
863
|
class: "glim-empty-hint"
|
|
864
|
-
},
|
|
864
|
+
}, nr = /* @__PURE__ */ A({
|
|
865
865
|
__name: "EmptyState",
|
|
866
866
|
props: {
|
|
867
867
|
glyph: {},
|
|
@@ -873,24 +873,24 @@ var an = {
|
|
|
873
873
|
}
|
|
874
874
|
},
|
|
875
875
|
setup(e) {
|
|
876
|
-
return (t, n) => (
|
|
877
|
-
e.glyph ? (
|
|
878
|
-
E("p",
|
|
879
|
-
e.hint ? (
|
|
880
|
-
|
|
876
|
+
return (t, n) => (I(), T("div", { class: N(e.nested ? "glim-empty" : "glim-card glim-empty") }, [
|
|
877
|
+
e.glyph ? (I(), T("span", $n, [(I(), C(B(e.glyph)))])) : w("", !0),
|
|
878
|
+
E("p", er, H(e.title), 1),
|
|
879
|
+
e.hint ? (I(), T("p", tr, H(e.hint), 1)) : w("", !0),
|
|
880
|
+
z(t.$slots, "default")
|
|
881
881
|
], 2));
|
|
882
882
|
}
|
|
883
|
-
}),
|
|
883
|
+
}), rr = /* @__PURE__ */ A({
|
|
884
884
|
__name: "Pill",
|
|
885
885
|
props: { tone: { default: "neutral" } },
|
|
886
886
|
setup(e) {
|
|
887
|
-
let t = e, n = S(() =>
|
|
888
|
-
return (e, t) => (
|
|
887
|
+
let t = e, n = S(() => ut(t.tone));
|
|
888
|
+
return (e, t) => (I(), T("span", { class: N(n.value) }, [z(e.$slots, "default")], 2));
|
|
889
889
|
}
|
|
890
|
-
}),
|
|
890
|
+
}), ir = { class: "glim-field-row-name" }, ar = {
|
|
891
891
|
key: 0,
|
|
892
892
|
class: "glim-field-row-controls"
|
|
893
|
-
},
|
|
893
|
+
}, or = /* @__PURE__ */ A({
|
|
894
894
|
__name: "FieldRow",
|
|
895
895
|
props: {
|
|
896
896
|
label: {},
|
|
@@ -901,47 +901,47 @@ var an = {
|
|
|
901
901
|
},
|
|
902
902
|
setup(e) {
|
|
903
903
|
let t = e;
|
|
904
|
-
|
|
905
|
-
let n = ne(v, !1), r =
|
|
906
|
-
return (t, i) => (
|
|
904
|
+
se(ee, S(() => t.label));
|
|
905
|
+
let n = ne(v, !1), r = V(null);
|
|
906
|
+
return (t, i) => (I(), T("div", {
|
|
907
907
|
ref_key: "row",
|
|
908
908
|
ref: r,
|
|
909
909
|
class: N(["glim-field-row", { "glim-field-row--wide": e.wide }])
|
|
910
|
-
}, [E("span",
|
|
910
|
+
}, [E("span", ir, [E("span", {
|
|
911
911
|
class: "glim-field-row-label",
|
|
912
|
-
onClick: i[0] ||= (e) =>
|
|
913
|
-
}, [
|
|
912
|
+
onClick: i[0] ||= (e) => U(pt)(r.value)
|
|
913
|
+
}, [z(t.$slots, "label", {}, () => [O(H(e.label), 1)])]), e.hint ? (I(), C(Z, {
|
|
914
914
|
key: 0,
|
|
915
915
|
tip: e.hint
|
|
916
|
-
}, null, 8, ["tip"])) : w("", !0)]),
|
|
916
|
+
}, null, 8, ["tip"])) : w("", !0)]), U(n) ? (I(), T("span", ar, [z(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (I(), C(rr, {
|
|
917
917
|
key: 0,
|
|
918
918
|
class: "glim-num",
|
|
919
919
|
tone: e.tone
|
|
920
920
|
}, {
|
|
921
|
-
default:
|
|
921
|
+
default: K(() => [O(H(e.value), 1)]),
|
|
922
922
|
_: 1
|
|
923
|
-
}, 8, ["tone"]))])])) :
|
|
923
|
+
}, 8, ["tone"]))])])) : z(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (I(), C(rr, {
|
|
924
924
|
key: 0,
|
|
925
925
|
class: "glim-num",
|
|
926
926
|
tone: e.tone
|
|
927
927
|
}, {
|
|
928
|
-
default:
|
|
928
|
+
default: K(() => [O(H(e.value), 1)]),
|
|
929
929
|
_: 1
|
|
930
930
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
931
931
|
}
|
|
932
|
-
}),
|
|
932
|
+
}), sr = /* @__PURE__ */ A({
|
|
933
933
|
__name: "FieldRowGroup",
|
|
934
934
|
props: { columns: {} },
|
|
935
935
|
setup(e) {
|
|
936
|
-
return
|
|
936
|
+
return se(v, !0), (t, n) => (I(), T("div", {
|
|
937
937
|
class: "glim-field-row-group",
|
|
938
938
|
style: P(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
939
|
-
}, [
|
|
939
|
+
}, [z(t.$slots, "default")], 4));
|
|
940
940
|
}
|
|
941
|
-
}),
|
|
941
|
+
}), cr = {
|
|
942
942
|
class: "glim-glyph-field-glyph",
|
|
943
943
|
"aria-hidden": "true"
|
|
944
|
-
},
|
|
944
|
+
}, lr = ["aria-label"], ur = /* @__PURE__ */ A({
|
|
945
945
|
inheritAttrs: !1,
|
|
946
946
|
__name: "GlyphField",
|
|
947
947
|
props: /*@__PURE__*/ j({
|
|
@@ -955,8 +955,8 @@ var an = {
|
|
|
955
955
|
}),
|
|
956
956
|
emits: ["update:modelValue"],
|
|
957
957
|
setup(e, { expose: t }) {
|
|
958
|
-
let n = e, r =
|
|
959
|
-
return t({ input: o }), (t, n) => (
|
|
958
|
+
let n = e, r = W(e, "modelValue"), i = y(() => n.label), a = S(() => Ve(n.width)), o = V(null);
|
|
959
|
+
return t({ input: o }), (t, n) => (I(), T("label", {
|
|
960
960
|
class: N([
|
|
961
961
|
"glim-input",
|
|
962
962
|
"glim-glyph-field",
|
|
@@ -966,22 +966,22 @@ var an = {
|
|
|
966
966
|
]),
|
|
967
967
|
style: P(t.$attrs.style)
|
|
968
968
|
}, [
|
|
969
|
-
E("span",
|
|
970
|
-
|
|
969
|
+
E("span", cr, [(I(), C(B(e.glyph)))]),
|
|
970
|
+
q(E("input", M({
|
|
971
971
|
ref_key: "input",
|
|
972
972
|
ref: o,
|
|
973
973
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
974
974
|
type: "text",
|
|
975
|
-
"aria-label":
|
|
975
|
+
"aria-label": U(i)
|
|
976
976
|
}, {
|
|
977
977
|
...t.$attrs,
|
|
978
978
|
class: void 0,
|
|
979
979
|
style: void 0
|
|
980
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
981
|
-
|
|
980
|
+
}, { class: "glim-glyph-field-input" }), null, 16, lr), [[pe, r.value]]),
|
|
981
|
+
z(t.$slots, "after")
|
|
982
982
|
], 6));
|
|
983
983
|
}
|
|
984
|
-
}),
|
|
984
|
+
}), dr = /* @__PURE__ */ A({
|
|
985
985
|
__name: "GlyphTile",
|
|
986
986
|
props: {
|
|
987
987
|
glyph: {},
|
|
@@ -990,20 +990,20 @@ var an = {
|
|
|
990
990
|
active: { type: Boolean }
|
|
991
991
|
},
|
|
992
992
|
setup(e) {
|
|
993
|
-
return (t, n) => (
|
|
993
|
+
return (t, n) => (I(), T("span", {
|
|
994
994
|
class: N(["glim-tile", {
|
|
995
995
|
"glim-tile--quiet": e.quiet,
|
|
996
996
|
"glim-tile--ground": e.ground,
|
|
997
997
|
"glim-tile--active": e.active
|
|
998
998
|
}]),
|
|
999
999
|
"aria-hidden": "true"
|
|
1000
|
-
}, [(
|
|
1000
|
+
}, [(I(), C(B(e.glyph)))], 2));
|
|
1001
1001
|
}
|
|
1002
|
-
}),
|
|
1002
|
+
}), fr = {
|
|
1003
1003
|
key: 0,
|
|
1004
1004
|
class: "glim-icon-btn-gap",
|
|
1005
1005
|
"aria-hidden": "true"
|
|
1006
|
-
},
|
|
1006
|
+
}, pr = /* @__PURE__ */ A({
|
|
1007
1007
|
__name: "IconButton",
|
|
1008
1008
|
props: {
|
|
1009
1009
|
tip: {},
|
|
@@ -1018,9 +1018,9 @@ var an = {
|
|
|
1018
1018
|
},
|
|
1019
1019
|
setup(e) {
|
|
1020
1020
|
function t(e) {
|
|
1021
|
-
|
|
1021
|
+
Ht(e.currentTarget);
|
|
1022
1022
|
}
|
|
1023
|
-
return (n, r) => e.absent ? (
|
|
1023
|
+
return (n, r) => e.absent ? (I(), T("span", fr)) : (I(), C(tn, {
|
|
1024
1024
|
key: 1,
|
|
1025
1025
|
tip: e.tip,
|
|
1026
1026
|
href: e.href,
|
|
@@ -1030,7 +1030,7 @@ var an = {
|
|
|
1030
1030
|
onPointerenter: t,
|
|
1031
1031
|
onFocusin: t
|
|
1032
1032
|
}, {
|
|
1033
|
-
default:
|
|
1033
|
+
default: K(() => [(I(), C(B(e.glyph)))]),
|
|
1034
1034
|
_: 1
|
|
1035
1035
|
}, 8, [
|
|
1036
1036
|
"tip",
|
|
@@ -1039,21 +1039,21 @@ var an = {
|
|
|
1039
1039
|
"disabled"
|
|
1040
1040
|
]));
|
|
1041
1041
|
}
|
|
1042
|
-
}),
|
|
1042
|
+
}), mr = {
|
|
1043
1043
|
key: 0,
|
|
1044
1044
|
class: "glim-readme-btn-art",
|
|
1045
1045
|
"aria-hidden": "true"
|
|
1046
|
-
},
|
|
1046
|
+
}, hr = { class: "glim-readme-btn-text" }, gr = { class: "glim-readme-btn-name" }, _r = {
|
|
1047
1047
|
key: 0,
|
|
1048
1048
|
class: "glim-readme-btn-sub"
|
|
1049
|
-
},
|
|
1049
|
+
}, vr = {
|
|
1050
1050
|
key: 0,
|
|
1051
1051
|
class: "glim-readme-btn-sheen",
|
|
1052
1052
|
"aria-hidden": "true"
|
|
1053
|
-
},
|
|
1053
|
+
}, yr = {
|
|
1054
1054
|
key: 1,
|
|
1055
1055
|
class: "glim-readme-btn-hint"
|
|
1056
|
-
},
|
|
1056
|
+
}, Q = /* @__PURE__ */ A({
|
|
1057
1057
|
__name: "ReadmeButton",
|
|
1058
1058
|
props: {
|
|
1059
1059
|
brand: {},
|
|
@@ -1068,10 +1068,10 @@ var an = {
|
|
|
1068
1068
|
},
|
|
1069
1069
|
emits: ["linkClick"],
|
|
1070
1070
|
setup(e, { emit: t }) {
|
|
1071
|
-
let n = e, r = t, i = S(() =>
|
|
1072
|
-
|
|
1073
|
-
s?.(), s = a.value ?
|
|
1074
|
-
}, { flush: "post" }),
|
|
1071
|
+
let n = e, r = t, i = S(() => _t(n.parts)), a = V(null), o = S(() => n.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (i.value ? n.soonLabel : "")), s;
|
|
1072
|
+
G([a, o], () => {
|
|
1073
|
+
s?.(), s = a.value ? Ze(a.value) : void 0;
|
|
1074
|
+
}, { flush: "post" }), ie(() => s?.());
|
|
1075
1075
|
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) => c(e) ? `${e.name} ${c(e)}` : e.name, u = (e) => i.value ? "span" : e.href ? "a" : "button", d = (e) => i.value ? { "aria-disabled": !0 } : e.href ? {
|
|
1076
1076
|
href: e.href,
|
|
1077
1077
|
target: "_blank",
|
|
@@ -1081,27 +1081,27 @@ var an = {
|
|
|
1081
1081
|
type: "button",
|
|
1082
1082
|
onClick: e.onClick
|
|
1083
1083
|
};
|
|
1084
|
-
return (t, n) => (
|
|
1084
|
+
return (t, n) => (I(), T("div", {
|
|
1085
1085
|
ref_key: "root",
|
|
1086
1086
|
ref: a,
|
|
1087
|
-
class: N(
|
|
1087
|
+
class: N(U(vt)(e.brand, e.parts.length, e.note, i.value))
|
|
1088
1088
|
}, [
|
|
1089
|
-
(
|
|
1089
|
+
(I(!0), T(b, null, R(e.parts, (n, r) => (I(), C(B(u(n)), M({ key: r }, { ref_for: !0 }, d(n), {
|
|
1090
1090
|
"aria-label": l(n),
|
|
1091
|
-
class:
|
|
1091
|
+
class: U(gt)(r, i.value)
|
|
1092
1092
|
}), {
|
|
1093
|
-
default:
|
|
1093
|
+
default: K(() => [r === 0 && t.$slots.art ? (I(), T("span", mr, [z(t.$slots, "art")])) : (I(), T(b, { key: 1 }, [r === 0 && t.$slots.mark ? (I(), T("span", {
|
|
1094
1094
|
key: 0,
|
|
1095
1095
|
class: N(`glim-readme-btn-mark ${e.markClass ?? ""}`),
|
|
1096
1096
|
"aria-hidden": "true"
|
|
1097
|
-
}, [
|
|
1097
|
+
}, [z(t.$slots, "mark")], 2)) : w("", !0), E("span", hr, [E("span", gr, H(n.name), 1), c(n) ? (I(), T("span", _r, H(c(n)), 1)) : w("", !0)])], 64))]),
|
|
1098
1098
|
_: 2
|
|
1099
1099
|
}, 1040, ["aria-label", "class"]))), 128)),
|
|
1100
|
-
i.value ? w("", !0) : (
|
|
1101
|
-
e.hint ? (
|
|
1100
|
+
i.value ? w("", !0) : (I(), T("span", vr)),
|
|
1101
|
+
e.hint ? (I(), T("span", yr, [k(Z, { tip: e.hint }, null, 8, ["tip"])])) : w("", !0)
|
|
1102
1102
|
], 2));
|
|
1103
1103
|
}
|
|
1104
|
-
}),
|
|
1104
|
+
}), br = { class: "glim-info-text" }, xr = { class: "glim-info-text" }, Sr = { class: "glim-readme-btn-rows glim-about-give" }, Cr = /* @__PURE__ */ A({
|
|
1105
1105
|
__name: "InfoAboutCard",
|
|
1106
1106
|
props: {
|
|
1107
1107
|
text: {},
|
|
@@ -1114,25 +1114,25 @@ var an = {
|
|
|
1114
1114
|
hueIndex: {}
|
|
1115
1115
|
},
|
|
1116
1116
|
setup(e) {
|
|
1117
|
-
return (t, n) => (
|
|
1117
|
+
return (t, n) => (I(), C(vn, {
|
|
1118
1118
|
title: e.text.title,
|
|
1119
1119
|
"hue-index": e.hueIndex
|
|
1120
1120
|
}, {
|
|
1121
|
-
default:
|
|
1122
|
-
E("p",
|
|
1123
|
-
E("p",
|
|
1124
|
-
E("div",
|
|
1125
|
-
k(
|
|
1121
|
+
default: K(() => [
|
|
1122
|
+
E("p", br, H(e.text.body), 1),
|
|
1123
|
+
E("p", xr, H(e.text.coffee), 1),
|
|
1124
|
+
E("div", Sr, [
|
|
1125
|
+
k(Q, {
|
|
1126
1126
|
brand: "coffee",
|
|
1127
1127
|
parts: [{
|
|
1128
1128
|
name: e.text.coffeeButton,
|
|
1129
1129
|
onClick: e.onCoffee
|
|
1130
1130
|
}]
|
|
1131
1131
|
}, {
|
|
1132
|
-
art:
|
|
1132
|
+
art: K(() => [(I(), C(B(e.coffeeArt)))]),
|
|
1133
1133
|
_: 1
|
|
1134
1134
|
}, 8, ["parts"]),
|
|
1135
|
-
e.onPaypal && e.text.paypalButton ? (
|
|
1135
|
+
e.onPaypal && e.text.paypalButton ? (I(), C(Q, {
|
|
1136
1136
|
key: 0,
|
|
1137
1137
|
brand: "paypal",
|
|
1138
1138
|
parts: [{
|
|
@@ -1142,10 +1142,10 @@ var an = {
|
|
|
1142
1142
|
"mark-class": "glim-paypal-mark"
|
|
1143
1143
|
}, D({ _: 2 }, [e.paypalGlyph ? {
|
|
1144
1144
|
name: "mark",
|
|
1145
|
-
fn:
|
|
1145
|
+
fn: K(() => [(I(), C(B(e.paypalGlyph)))]),
|
|
1146
1146
|
key: "0"
|
|
1147
1147
|
} : void 0]), 1032, ["parts"])) : w("", !0),
|
|
1148
|
-
e.onCrypto && e.text.cryptoButton ? (
|
|
1148
|
+
e.onCrypto && e.text.cryptoButton ? (I(), C(Q, {
|
|
1149
1149
|
key: 1,
|
|
1150
1150
|
brand: "bitcoin",
|
|
1151
1151
|
parts: [{
|
|
@@ -1155,7 +1155,7 @@ var an = {
|
|
|
1155
1155
|
"mark-class": "glim-bitcoin-mark"
|
|
1156
1156
|
}, D({ _: 2 }, [e.cryptoGlyph ? {
|
|
1157
1157
|
name: "mark",
|
|
1158
|
-
fn:
|
|
1158
|
+
fn: K(() => [(I(), C(B(e.cryptoGlyph)))]),
|
|
1159
1159
|
key: "0"
|
|
1160
1160
|
} : void 0]), 1032, ["parts"])) : w("", !0)
|
|
1161
1161
|
])
|
|
@@ -1163,7 +1163,7 @@ var an = {
|
|
|
1163
1163
|
_: 1
|
|
1164
1164
|
}, 8, ["title", "hue-index"]));
|
|
1165
1165
|
}
|
|
1166
|
-
}),
|
|
1166
|
+
}), wr = { class: "glim-info-text" }, Tr = { class: "glim-readme-btn-rows" }, Er = /* @__PURE__ */ A({
|
|
1167
1167
|
__name: "InfoHelpCard",
|
|
1168
1168
|
props: {
|
|
1169
1169
|
text: {},
|
|
@@ -1175,18 +1175,18 @@ var an = {
|
|
|
1175
1175
|
manualGlyph: {},
|
|
1176
1176
|
onBugReport: {},
|
|
1177
1177
|
bugGlyph: {},
|
|
1178
|
-
openUrl: { default:
|
|
1178
|
+
openUrl: { default: lt },
|
|
1179
1179
|
hueIndex: {}
|
|
1180
1180
|
},
|
|
1181
1181
|
setup(e) {
|
|
1182
|
-
let t = e, n = S(() =>
|
|
1183
|
-
return (t, r) => (
|
|
1182
|
+
let t = e, n = S(() => ct(t.text.report, t.mailAddress));
|
|
1183
|
+
return (t, r) => (I(), C(vn, {
|
|
1184
1184
|
title: e.text.title,
|
|
1185
1185
|
hint: e.text.hint,
|
|
1186
1186
|
"hue-index": e.hueIndex
|
|
1187
1187
|
}, {
|
|
1188
|
-
default:
|
|
1189
|
-
k(
|
|
1188
|
+
default: K(() => [E("p", wr, H(e.text.report), 1), E("div", Tr, [
|
|
1189
|
+
k(Q, {
|
|
1190
1190
|
brand: "github",
|
|
1191
1191
|
parts: [{
|
|
1192
1192
|
name: e.text.repoButton,
|
|
@@ -1195,23 +1195,23 @@ var an = {
|
|
|
1195
1195
|
"mark-class": "glim-github-mark"
|
|
1196
1196
|
}, D({ _: 2 }, [e.repoGlyph ? {
|
|
1197
1197
|
name: "mark",
|
|
1198
|
-
fn:
|
|
1198
|
+
fn: K(() => [(I(), C(B(e.repoGlyph)))]),
|
|
1199
1199
|
key: "0"
|
|
1200
1200
|
} : void 0]), 1032, ["parts"]),
|
|
1201
|
-
n.value ? (
|
|
1201
|
+
n.value ? (I(), C(Q, {
|
|
1202
1202
|
key: 0,
|
|
1203
1203
|
brand: "house",
|
|
1204
1204
|
parts: [{
|
|
1205
1205
|
name: e.text.mailButton,
|
|
1206
|
-
onClick: () => e.openUrl(
|
|
1206
|
+
onClick: () => e.openUrl(U($e)(e.mailAddress, e.text.mailSubject))
|
|
1207
1207
|
}],
|
|
1208
1208
|
"mark-class": "glim-house-mark"
|
|
1209
1209
|
}, D({ _: 2 }, [e.mailGlyph ? {
|
|
1210
1210
|
name: "mark",
|
|
1211
|
-
fn:
|
|
1211
|
+
fn: K(() => [(I(), C(B(e.mailGlyph)))]),
|
|
1212
1212
|
key: "0"
|
|
1213
1213
|
} : void 0]), 1032, ["parts"])) : w("", !0),
|
|
1214
|
-
e.manualUrl && e.text.manual ? (
|
|
1214
|
+
e.manualUrl && e.text.manual ? (I(), C(Q, {
|
|
1215
1215
|
key: 1,
|
|
1216
1216
|
brand: "docs",
|
|
1217
1217
|
parts: [{
|
|
@@ -1222,10 +1222,10 @@ var an = {
|
|
|
1222
1222
|
"mark-class": "glim-docs-mark"
|
|
1223
1223
|
}, D({ _: 2 }, [e.manualGlyph ? {
|
|
1224
1224
|
name: "mark",
|
|
1225
|
-
fn:
|
|
1225
|
+
fn: K(() => [(I(), C(B(e.manualGlyph)))]),
|
|
1226
1226
|
key: "0"
|
|
1227
1227
|
} : void 0]), 1032, ["parts"])) : w("", !0),
|
|
1228
|
-
e.onBugReport && e.text.bugReport ? (
|
|
1228
|
+
e.onBugReport && e.text.bugReport ? (I(), C(Q, {
|
|
1229
1229
|
key: 2,
|
|
1230
1230
|
brand: "github",
|
|
1231
1231
|
parts: [{
|
|
@@ -1235,7 +1235,7 @@ var an = {
|
|
|
1235
1235
|
}]
|
|
1236
1236
|
}, D({ _: 2 }, [e.bugGlyph ? {
|
|
1237
1237
|
name: "mark",
|
|
1238
|
-
fn:
|
|
1238
|
+
fn: K(() => [(I(), C(B(e.bugGlyph)))]),
|
|
1239
1239
|
key: "0"
|
|
1240
1240
|
} : void 0]), 1032, ["parts"])) : w("", !0)
|
|
1241
1241
|
])]),
|
|
@@ -1246,67 +1246,67 @@ var an = {
|
|
|
1246
1246
|
"hue-index"
|
|
1247
1247
|
]));
|
|
1248
1248
|
}
|
|
1249
|
-
}),
|
|
1249
|
+
}), Dr = { class: "glim-version-rows" }, Or = { class: "glim-version-name" }, kr = { class: "glim-version-part" }, Ar = {
|
|
1250
1250
|
key: 0,
|
|
1251
1251
|
class: "glim-version-sub"
|
|
1252
|
-
},
|
|
1252
|
+
}, jr = ["href", "onClick"], Mr = {
|
|
1253
1253
|
key: 1,
|
|
1254
1254
|
class: "glim-num glim-version-number"
|
|
1255
|
-
},
|
|
1255
|
+
}, Nr = {
|
|
1256
1256
|
key: 0,
|
|
1257
1257
|
class: "glim-version-actions"
|
|
1258
|
-
},
|
|
1258
|
+
}, Pr = {
|
|
1259
1259
|
role: "status",
|
|
1260
1260
|
class: "glim-sr-only"
|
|
1261
|
-
},
|
|
1261
|
+
}, Fr = /* @__PURE__ */ A({
|
|
1262
1262
|
__name: "InfoVersionCard",
|
|
1263
1263
|
props: {
|
|
1264
1264
|
text: {},
|
|
1265
1265
|
rows: {},
|
|
1266
1266
|
updateCheck: {},
|
|
1267
1267
|
onReleaseNotes: {},
|
|
1268
|
-
openUrl: { default:
|
|
1268
|
+
openUrl: { default: lt },
|
|
1269
1269
|
hueIndex: {}
|
|
1270
1270
|
},
|
|
1271
1271
|
setup(e) {
|
|
1272
|
-
let t = e, n =
|
|
1272
|
+
let t = e, n = de(), r = S(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = V({ kind: "idle" }), a = V(0), o = S(() => t.updateCheck && Yt(i.value, t.updateCheck.text));
|
|
1273
1273
|
function s() {
|
|
1274
|
-
|
|
1274
|
+
Ct(t.updateCheck, i.value, (e) => {
|
|
1275
1275
|
i.value = e, e.kind === "failed" && a.value++;
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
1278
|
function c(e, n) {
|
|
1279
1279
|
e.preventDefault(), t.openUrl(n);
|
|
1280
1280
|
}
|
|
1281
|
-
return (t, n) => (
|
|
1281
|
+
return (t, n) => (I(), C(vn, {
|
|
1282
1282
|
title: e.text.title,
|
|
1283
1283
|
hint: e.text.hint,
|
|
1284
1284
|
"hue-index": e.hueIndex
|
|
1285
1285
|
}, {
|
|
1286
|
-
default:
|
|
1286
|
+
default: K(() => [E("ul", Dr, [(I(!0), T(b, null, R(e.rows, (t) => (I(), T("li", {
|
|
1287
1287
|
key: t.name,
|
|
1288
1288
|
class: "glim-version-row"
|
|
1289
|
-
}, [E("span",
|
|
1289
|
+
}, [E("span", Or, [E("span", kr, H(t.name), 1), t.sub ? (I(), T("span", Ar, H(t.sub), 1)) : w("", !0)]), U(Y)(t).href ? (I(), T("a", {
|
|
1290
1290
|
key: 0,
|
|
1291
|
-
href:
|
|
1291
|
+
href: U(Y)(t).href,
|
|
1292
1292
|
target: "_blank",
|
|
1293
1293
|
rel: "noopener noreferrer",
|
|
1294
1294
|
class: "glim-num glim-version-number",
|
|
1295
|
-
onClick: (e) => c(e,
|
|
1296
|
-
}, U(
|
|
1297
|
-
r.value ? (
|
|
1295
|
+
onClick: (e) => c(e, U(Y)(t).href)
|
|
1296
|
+
}, H(U(Y)(t).shown), 9, jr)) : (I(), T("span", Mr, H(U(Y)(t).released ? U(Y)(t).shown : e.text.unreleased(U(Y)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (I(), T("div", Nr, [
|
|
1297
|
+
r.value ? (I(), C(X, {
|
|
1298
1298
|
key: 0,
|
|
1299
1299
|
label: e.text.releaseNotes,
|
|
1300
1300
|
"label-key": "about.releaseNotes",
|
|
1301
1301
|
onClick: n[0] ||= (t) => e.onReleaseNotes()
|
|
1302
1302
|
}, null, 8, ["label"])) : w("", !0),
|
|
1303
|
-
|
|
1304
|
-
e.updateCheck && o.value ? (
|
|
1303
|
+
z(t.$slots, "whats-new"),
|
|
1304
|
+
e.updateCheck && o.value ? (I(), T(b, { key: 1 }, [(I(), C(X, {
|
|
1305
1305
|
key: a.value,
|
|
1306
1306
|
label: o.value.label,
|
|
1307
1307
|
"label-key": o.value.labelKey,
|
|
1308
1308
|
tone: o.value.tone,
|
|
1309
|
-
stage:
|
|
1309
|
+
stage: U(Xt)(e.updateCheck.text, o.value.label),
|
|
1310
1310
|
busy: i.value.kind === "busy",
|
|
1311
1311
|
class: N(a.value > 0 ? "glim-shake" : ""),
|
|
1312
1312
|
onClick: s
|
|
@@ -1317,7 +1317,7 @@ var an = {
|
|
|
1317
1317
|
"stage",
|
|
1318
1318
|
"busy",
|
|
1319
1319
|
"class"
|
|
1320
|
-
])), E("span",
|
|
1320
|
+
])), E("span", Pr, H(o.value.announced), 1)], 64)) : w("", !0)
|
|
1321
1321
|
])) : w("", !0)]),
|
|
1322
1322
|
_: 3
|
|
1323
1323
|
}, 8, [
|
|
@@ -1326,7 +1326,7 @@ var an = {
|
|
|
1326
1326
|
"hue-index"
|
|
1327
1327
|
]));
|
|
1328
1328
|
}
|
|
1329
|
-
}),
|
|
1329
|
+
}), Ir = /* @__PURE__ */ A({
|
|
1330
1330
|
__name: "InfoTile",
|
|
1331
1331
|
props: {
|
|
1332
1332
|
version: {},
|
|
@@ -1336,27 +1336,27 @@ var an = {
|
|
|
1336
1336
|
},
|
|
1337
1337
|
setup(e) {
|
|
1338
1338
|
let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
1339
|
-
return (t, r) => (
|
|
1340
|
-
k(
|
|
1339
|
+
return (t, r) => (I(), T(b, null, [
|
|
1340
|
+
k(Fr, M(e.version, { "hue-index": n(0) }), D({ _: 2 }, [t.$slots["whats-new"] ? {
|
|
1341
1341
|
name: "whats-new",
|
|
1342
|
-
fn:
|
|
1342
|
+
fn: K(() => [z(t.$slots, "whats-new")]),
|
|
1343
1343
|
key: "0"
|
|
1344
1344
|
} : void 0]), 1040, ["hue-index"]),
|
|
1345
|
-
k(
|
|
1346
|
-
k(
|
|
1345
|
+
k(Er, M(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
1346
|
+
k(Cr, M(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
1347
1347
|
], 64));
|
|
1348
1348
|
}
|
|
1349
|
-
}),
|
|
1349
|
+
}), Lr = [
|
|
1350
1350
|
"aria-label",
|
|
1351
1351
|
"tabindex",
|
|
1352
1352
|
"onKeydown"
|
|
1353
|
-
],
|
|
1353
|
+
], Rr = {
|
|
1354
1354
|
key: 0,
|
|
1355
1355
|
class: "glim-list-row-tile"
|
|
1356
|
-
},
|
|
1356
|
+
}, zr = { class: "glim-list-row-title" }, Br = {
|
|
1357
1357
|
key: 1,
|
|
1358
1358
|
class: "glim-list-row-badges"
|
|
1359
|
-
},
|
|
1359
|
+
}, Vr = /* @__PURE__ */ A({
|
|
1360
1360
|
__name: "ListRow",
|
|
1361
1361
|
props: {
|
|
1362
1362
|
name: {},
|
|
@@ -1364,46 +1364,46 @@ var an = {
|
|
|
1364
1364
|
mono: { type: Boolean }
|
|
1365
1365
|
},
|
|
1366
1366
|
setup(e) {
|
|
1367
|
-
let t = e, n =
|
|
1367
|
+
let t = e, n = le(), r = S(() => !!n.onClick), i = S(() => ["glim-list-row-name", { "glim-list-row-name--mono": t.mono }]);
|
|
1368
1368
|
function a(e) {
|
|
1369
1369
|
e.preventDefault(), e.currentTarget.click();
|
|
1370
1370
|
}
|
|
1371
|
-
return (t, n) => (
|
|
1371
|
+
return (t, n) => (I(), T("div", {
|
|
1372
1372
|
role: "group",
|
|
1373
1373
|
"aria-label": e.name,
|
|
1374
1374
|
tabindex: r.value ? 0 : void 0,
|
|
1375
1375
|
class: N(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
1376
|
-
onKeydown: [
|
|
1376
|
+
onKeydown: [ge(J(a, ["self"]), ["enter"]), ge(J(a, ["self"]), ["space"])]
|
|
1377
1377
|
}, [
|
|
1378
|
-
t.$slots.tile ? (
|
|
1379
|
-
E("span", { class: N(i.value) }, [E("span",
|
|
1378
|
+
t.$slots.tile ? (I(), T("span", Rr, [z(t.$slots, "tile")])) : w("", !0),
|
|
1379
|
+
E("span", { class: N(i.value) }, [E("span", zr, H(e.name), 1), e.tip ? (I(), T("span", {
|
|
1380
1380
|
key: 0,
|
|
1381
1381
|
class: "glim-list-row-tip",
|
|
1382
|
-
onClick: n[0] ||=
|
|
1383
|
-
}, [k(
|
|
1384
|
-
t.$slots.badges ? (
|
|
1385
|
-
t.$slots.actions ? (
|
|
1382
|
+
onClick: n[0] ||= J(() => {}, ["stop"])
|
|
1383
|
+
}, [k(Z, { tip: e.tip }, null, 8, ["tip"])])) : w("", !0)], 2),
|
|
1384
|
+
t.$slots.badges ? (I(), T("span", Br, [z(t.$slots, "badges")])) : w("", !0),
|
|
1385
|
+
t.$slots.actions ? (I(), T("span", {
|
|
1386
1386
|
key: 2,
|
|
1387
1387
|
class: "glim-list-row-actions",
|
|
1388
|
-
onClick: n[1] ||=
|
|
1389
|
-
}, [
|
|
1390
|
-
], 42,
|
|
1388
|
+
onClick: n[1] ||= J(() => {}, ["stop"])
|
|
1389
|
+
}, [z(t.$slots, "actions")])) : w("", !0)
|
|
1390
|
+
], 42, Lr));
|
|
1391
1391
|
}
|
|
1392
|
-
}),
|
|
1392
|
+
}), Hr = ["aria-label"], Ur = [
|
|
1393
1393
|
"aria-expanded",
|
|
1394
1394
|
"tabindex",
|
|
1395
1395
|
"onClick",
|
|
1396
1396
|
"onMouseenter",
|
|
1397
1397
|
"onKeydown",
|
|
1398
1398
|
"onFocus"
|
|
1399
|
-
],
|
|
1399
|
+
], Wr = /* @__PURE__ */ A({
|
|
1400
1400
|
__name: "MenuBar",
|
|
1401
1401
|
props: {
|
|
1402
1402
|
label: {},
|
|
1403
1403
|
menus: {}
|
|
1404
1404
|
},
|
|
1405
1405
|
setup(e, { expose: t }) {
|
|
1406
|
-
let n = e, r = [], i =
|
|
1406
|
+
let n = e, r = [], i = V(null), a = V(0);
|
|
1407
1407
|
function o(e) {
|
|
1408
1408
|
let t = r[e];
|
|
1409
1409
|
if (!t) return;
|
|
@@ -1427,11 +1427,11 @@ var an = {
|
|
|
1427
1427
|
}[e.key];
|
|
1428
1428
|
i === void 0 ? e.key === "ArrowDown" && (e.preventDefault(), o(t)) : (e.preventDefault(), a.value = s(t + i), r[a.value]?.focus());
|
|
1429
1429
|
}
|
|
1430
|
-
return (t, n) => (
|
|
1430
|
+
return (t, n) => (I(), T("div", {
|
|
1431
1431
|
role: "menubar",
|
|
1432
1432
|
"aria-label": e.label,
|
|
1433
1433
|
class: "glim-menubar"
|
|
1434
|
-
}, [(
|
|
1434
|
+
}, [(I(!0), T(b, null, R(e.menus, (e, t) => (I(), T("button", {
|
|
1435
1435
|
key: t,
|
|
1436
1436
|
ref_for: !0,
|
|
1437
1437
|
ref: (e) => r[t] = e,
|
|
@@ -1445,7 +1445,7 @@ var an = {
|
|
|
1445
1445
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
1446
1446
|
onKeydown: (e) => l(e, t),
|
|
1447
1447
|
onFocus: (e) => a.value = t
|
|
1448
|
-
},
|
|
1448
|
+
}, H(e.label), 41, Ur))), 128)), i.value && e.menus[i.value.at] ? (I(), C(Yn, {
|
|
1449
1449
|
key: i.value.at,
|
|
1450
1450
|
x: i.value.x,
|
|
1451
1451
|
y: i.value.y,
|
|
@@ -1462,9 +1462,9 @@ var an = {
|
|
|
1462
1462
|
"label",
|
|
1463
1463
|
"id",
|
|
1464
1464
|
"opener"
|
|
1465
|
-
])) : w("", !0)], 8,
|
|
1465
|
+
])) : w("", !0)], 8, Hr));
|
|
1466
1466
|
}
|
|
1467
|
-
}),
|
|
1467
|
+
}), Gr = [
|
|
1468
1468
|
"role",
|
|
1469
1469
|
"aria-label",
|
|
1470
1470
|
"aria-valuemin",
|
|
@@ -1472,7 +1472,7 @@ var an = {
|
|
|
1472
1472
|
"aria-valuenow",
|
|
1473
1473
|
"aria-valuetext",
|
|
1474
1474
|
"aria-busy"
|
|
1475
|
-
],
|
|
1475
|
+
], Kr = /* @__PURE__ */ A({
|
|
1476
1476
|
inheritAttrs: !1,
|
|
1477
1477
|
__name: "Meter",
|
|
1478
1478
|
props: {
|
|
@@ -1487,13 +1487,13 @@ var an = {
|
|
|
1487
1487
|
valueText: {}
|
|
1488
1488
|
},
|
|
1489
1489
|
setup(n) {
|
|
1490
|
-
let r = n, i = S(() =>
|
|
1490
|
+
let r = n, i = S(() => it(r.value, {
|
|
1491
1491
|
size: r.size,
|
|
1492
1492
|
threshold: r.threshold,
|
|
1493
1493
|
quiet: r.quiet
|
|
1494
1494
|
})), a = S(() => i.value.percent === null), o = t(() => r.valueText);
|
|
1495
|
-
return (t, r) => (
|
|
1496
|
-
ref: (e) =>
|
|
1495
|
+
return (t, r) => (I(), T(b, null, [E("span", M(t.$attrs, {
|
|
1496
|
+
ref: (e) => U(o).trigger.value = e,
|
|
1497
1497
|
role: a.value ? "progressbar" : "meter",
|
|
1498
1498
|
"aria-label": n.label,
|
|
1499
1499
|
"aria-valuemin": a.value ? void 0 : 0,
|
|
@@ -1502,14 +1502,14 @@ var an = {
|
|
|
1502
1502
|
"aria-valuetext": n.valueText,
|
|
1503
1503
|
"aria-busy": a.value || void 0,
|
|
1504
1504
|
class: i.value.className,
|
|
1505
|
-
onMouseenter: r[0] ||= (...e) =>
|
|
1506
|
-
onMouseleave: r[1] ||= (...e) =>
|
|
1505
|
+
onMouseenter: r[0] ||= (...e) => U(o).show && U(o).show(...e),
|
|
1506
|
+
onMouseleave: r[1] ||= (...e) => U(o).hide && U(o).hide(...e)
|
|
1507
1507
|
}), [E("span", {
|
|
1508
1508
|
class: "glim-meter-fill",
|
|
1509
1509
|
style: P(i.value.width ? { width: i.value.width } : void 0)
|
|
1510
|
-
}, null, 4)], 16,
|
|
1510
|
+
}, null, 4)], 16, Gr), k(e, { state: U(o) }, null, 8, ["state"])], 64));
|
|
1511
1511
|
}
|
|
1512
|
-
}),
|
|
1512
|
+
}), qr = { class: "glim-num-wrap" }, Jr = ["aria-label"], Yr = /* @__PURE__ */ A({
|
|
1513
1513
|
inheritAttrs: !1,
|
|
1514
1514
|
__name: "NumberField",
|
|
1515
1515
|
props: {
|
|
@@ -1518,15 +1518,15 @@ var an = {
|
|
|
1518
1518
|
},
|
|
1519
1519
|
emits: ["update:modelValue"],
|
|
1520
1520
|
setup(e) {
|
|
1521
|
-
let t =
|
|
1521
|
+
let t = W(e, "modelValue"), n = le(), r = y(() => n["aria-label"]), i = V(null), a;
|
|
1522
1522
|
F(() => {
|
|
1523
|
-
o(t.value), a =
|
|
1523
|
+
o(t.value), a = Me(i.value);
|
|
1524
1524
|
}), re(() => a?.());
|
|
1525
1525
|
function o(e) {
|
|
1526
1526
|
let t = i.value;
|
|
1527
1527
|
t && (t.value === "" ? null : t.valueAsNumber) !== e && (t.value = e === null ? "" : String(e));
|
|
1528
1528
|
}
|
|
1529
|
-
|
|
1529
|
+
G([
|
|
1530
1530
|
t,
|
|
1531
1531
|
() => n.min,
|
|
1532
1532
|
() => n.max,
|
|
@@ -1534,26 +1534,26 @@ var an = {
|
|
|
1534
1534
|
() => n.disabled,
|
|
1535
1535
|
() => n.readonly
|
|
1536
1536
|
], () => {
|
|
1537
|
-
o(t.value), i.value &&
|
|
1537
|
+
o(t.value), i.value && Bt(i.value);
|
|
1538
1538
|
}, { flush: "post" });
|
|
1539
1539
|
function s(e) {
|
|
1540
1540
|
let n = e.target;
|
|
1541
1541
|
t.value = n.value === "" ? null : n.valueAsNumber;
|
|
1542
1542
|
}
|
|
1543
|
-
return (e, t) => (
|
|
1543
|
+
return (e, t) => (I(), T("span", qr, [E("input", M(e.$attrs, {
|
|
1544
1544
|
ref_key: "input",
|
|
1545
1545
|
ref: i,
|
|
1546
|
-
"aria-label":
|
|
1546
|
+
"aria-label": U(r),
|
|
1547
1547
|
type: "number",
|
|
1548
1548
|
class: "glim-num-input glim-num-field glim-num",
|
|
1549
1549
|
onInput: s
|
|
1550
|
-
}), null, 16,
|
|
1550
|
+
}), null, 16, Jr)]));
|
|
1551
1551
|
}
|
|
1552
|
-
}),
|
|
1552
|
+
}), Xr = [
|
|
1553
1553
|
"aria-label",
|
|
1554
1554
|
"disabled",
|
|
1555
1555
|
"type"
|
|
1556
|
-
],
|
|
1556
|
+
], Zr = /* @__PURE__ */ A({
|
|
1557
1557
|
inheritAttrs: !1,
|
|
1558
1558
|
__name: "PasswordField",
|
|
1559
1559
|
props: /*@__PURE__*/ j({
|
|
@@ -1573,15 +1573,15 @@ var an = {
|
|
|
1573
1573
|
}),
|
|
1574
1574
|
emits: ["update:modelValue"],
|
|
1575
1575
|
setup(e, { expose: t }) {
|
|
1576
|
-
let n = e, r =
|
|
1577
|
-
return t({ input: c }), (t, n) => (
|
|
1576
|
+
let n = e, r = W(e, "modelValue"), i = L(!1), a = le(), o = y(() => a["aria-label"]), s = S(() => Ve(n.width)), c = V(null);
|
|
1577
|
+
return t({ input: c }), (t, n) => (I(), T("span", {
|
|
1578
1578
|
class: N([
|
|
1579
1579
|
"glim-secret",
|
|
1580
1580
|
s.value,
|
|
1581
1581
|
t.$attrs.class
|
|
1582
1582
|
]),
|
|
1583
1583
|
style: P(t.$attrs.style)
|
|
1584
|
-
}, [
|
|
1584
|
+
}, [q(E("input", M({
|
|
1585
1585
|
ref_key: "input",
|
|
1586
1586
|
ref: c,
|
|
1587
1587
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -1592,21 +1592,21 @@ var an = {
|
|
|
1592
1592
|
class: void 0,
|
|
1593
1593
|
style: void 0
|
|
1594
1594
|
}, {
|
|
1595
|
-
"aria-label":
|
|
1595
|
+
"aria-label": U(o),
|
|
1596
1596
|
disabled: e.disabled,
|
|
1597
1597
|
type: i.value ? "text" : "password",
|
|
1598
1598
|
class: "glim-input"
|
|
1599
|
-
}), null, 16,
|
|
1599
|
+
}), null, 16, Xr), [[fe, r.value]]), k(tn, M(e.eyeAttrs, {
|
|
1600
1600
|
tip: i.value ? e.text.hide : e.text.show,
|
|
1601
1601
|
class: "glim-secret-eye",
|
|
1602
1602
|
disabled: e.disabled,
|
|
1603
1603
|
onClick: n[1] ||= (e) => i.value = !i.value
|
|
1604
1604
|
}), {
|
|
1605
|
-
default:
|
|
1605
|
+
default: K(() => [(I(), C(B(i.value ? U(h) : U(f))))]),
|
|
1606
1606
|
_: 1
|
|
1607
1607
|
}, 16, ["tip", "disabled"])], 6));
|
|
1608
1608
|
}
|
|
1609
|
-
}),
|
|
1609
|
+
}), Qr = ["aria-label", "disabled"], $r = /* @__PURE__ */ A({
|
|
1610
1610
|
inheritAttrs: !1,
|
|
1611
1611
|
__name: "PathField",
|
|
1612
1612
|
props: /*@__PURE__*/ j({
|
|
@@ -1627,31 +1627,31 @@ var an = {
|
|
|
1627
1627
|
}),
|
|
1628
1628
|
emits: /*@__PURE__*/ j(["picked"], ["update:modelValue"]),
|
|
1629
1629
|
setup(e, { expose: t, emit: n }) {
|
|
1630
|
-
let r = e, a =
|
|
1630
|
+
let r = e, a = W(e, "modelValue"), o = n, s = y(() => r.label), c = V(null);
|
|
1631
1631
|
t({ input: c });
|
|
1632
|
-
let l =
|
|
1632
|
+
let l = V(null), u = L(!1), d = new ResizeObserver(([e]) => u.value = e.contentRect.width < Te);
|
|
1633
1633
|
F(() => d.observe(l.value)), re(() => d.disconnect());
|
|
1634
1634
|
async function f() {
|
|
1635
1635
|
let e = await r.pick(a.value);
|
|
1636
1636
|
c.value?.focus(), e && (a.value = e, o("picked", e));
|
|
1637
1637
|
}
|
|
1638
|
-
return (t, n) => (
|
|
1638
|
+
return (t, n) => (I(), T("span", {
|
|
1639
1639
|
ref_key: "box",
|
|
1640
1640
|
ref: l,
|
|
1641
1641
|
class: N([
|
|
1642
1642
|
"glim-path",
|
|
1643
|
-
|
|
1643
|
+
U(Ve)(e.width),
|
|
1644
1644
|
t.$attrs.class
|
|
1645
1645
|
]),
|
|
1646
1646
|
style: P(t.$attrs.style)
|
|
1647
|
-
}, [
|
|
1647
|
+
}, [q(E("input", M({
|
|
1648
1648
|
ref_key: "input",
|
|
1649
1649
|
ref: c,
|
|
1650
1650
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
1651
1651
|
type: "text",
|
|
1652
1652
|
spellcheck: "false",
|
|
1653
1653
|
autocomplete: "off",
|
|
1654
|
-
"aria-label":
|
|
1654
|
+
"aria-label": U(s)
|
|
1655
1655
|
}, {
|
|
1656
1656
|
...t.$attrs,
|
|
1657
1657
|
class: void 0,
|
|
@@ -1659,11 +1659,11 @@ var an = {
|
|
|
1659
1659
|
}, {
|
|
1660
1660
|
disabled: e.disabled,
|
|
1661
1661
|
class: "glim-input glim-input--mono"
|
|
1662
|
-
}), null, 16,
|
|
1662
|
+
}), null, 16, Qr), [[pe, a.value]]), k(X, M(e.buttonAttrs, {
|
|
1663
1663
|
variant: "icon",
|
|
1664
1664
|
label: e.text.pick,
|
|
1665
1665
|
"label-key": null,
|
|
1666
|
-
glyph: e.glyph ??
|
|
1666
|
+
glyph: e.glyph ?? U(i),
|
|
1667
1667
|
compact: e.compact || u.value,
|
|
1668
1668
|
disabled: e.disabled,
|
|
1669
1669
|
onClick: f
|
|
@@ -1674,13 +1674,13 @@ var an = {
|
|
|
1674
1674
|
"disabled"
|
|
1675
1675
|
])], 6));
|
|
1676
1676
|
}
|
|
1677
|
-
}),
|
|
1677
|
+
}), ei = [
|
|
1678
1678
|
"aria-label",
|
|
1679
1679
|
"aria-valuemin",
|
|
1680
1680
|
"aria-valuemax",
|
|
1681
1681
|
"aria-valuenow",
|
|
1682
1682
|
"aria-valuetext"
|
|
1683
|
-
],
|
|
1683
|
+
], ti = /* @__PURE__ */ A({
|
|
1684
1684
|
__name: "ProgressBar",
|
|
1685
1685
|
props: {
|
|
1686
1686
|
value: { default: null },
|
|
@@ -1696,11 +1696,11 @@ var an = {
|
|
|
1696
1696
|
valueText: {}
|
|
1697
1697
|
},
|
|
1698
1698
|
setup(e) {
|
|
1699
|
-
let t = e, n = S(() =>
|
|
1699
|
+
let t = e, n = S(() => mt(t.value, {
|
|
1700
1700
|
paused: t.paused,
|
|
1701
1701
|
failed: t.failed
|
|
1702
1702
|
}));
|
|
1703
|
-
return (t, r) => (
|
|
1703
|
+
return (t, r) => (I(), T("span", {
|
|
1704
1704
|
role: "progressbar",
|
|
1705
1705
|
"aria-label": e.label,
|
|
1706
1706
|
"aria-valuemin": n.value.percent === null ? void 0 : 0,
|
|
@@ -1711,25 +1711,25 @@ var an = {
|
|
|
1711
1711
|
}, [E("span", {
|
|
1712
1712
|
class: "glim-progress-fill",
|
|
1713
1713
|
style: P(n.value.width ? { width: n.value.width } : void 0)
|
|
1714
|
-
}, null, 4)], 10,
|
|
1714
|
+
}, null, 4)], 10, ei));
|
|
1715
1715
|
}
|
|
1716
|
-
}),
|
|
1716
|
+
}), ni = /* @__PURE__ */ A({
|
|
1717
1717
|
__name: "RowMark",
|
|
1718
1718
|
props: { on: { type: Boolean } },
|
|
1719
1719
|
setup(e) {
|
|
1720
|
-
return (t, n) => (
|
|
1720
|
+
return (t, n) => (I(), T("span", {
|
|
1721
1721
|
class: N(["glim-rowmark", { "glim-rowmark--on": e.on }]),
|
|
1722
1722
|
"aria-hidden": "true"
|
|
1723
|
-
}, [k(
|
|
1723
|
+
}, [k(U(d))], 2));
|
|
1724
1724
|
}
|
|
1725
|
-
}),
|
|
1725
|
+
}), ri = [
|
|
1726
1726
|
"href",
|
|
1727
1727
|
"data-sel-id",
|
|
1728
1728
|
"aria-selected",
|
|
1729
1729
|
"aria-current",
|
|
1730
1730
|
"aria-describedby",
|
|
1731
1731
|
"tabindex"
|
|
1732
|
-
],
|
|
1732
|
+
], ii = [
|
|
1733
1733
|
"data-sel-id",
|
|
1734
1734
|
"id",
|
|
1735
1735
|
"role",
|
|
@@ -1741,7 +1741,7 @@ var an = {
|
|
|
1741
1741
|
"aria-describedby",
|
|
1742
1742
|
"disabled",
|
|
1743
1743
|
"tabindex"
|
|
1744
|
-
],
|
|
1744
|
+
], ai = ["id"], oi = /* @__PURE__ */ A({
|
|
1745
1745
|
__name: "SelectorSegment",
|
|
1746
1746
|
props: {
|
|
1747
1747
|
item: {},
|
|
@@ -1764,7 +1764,7 @@ var an = {
|
|
|
1764
1764
|
},
|
|
1765
1765
|
emits: ["select"],
|
|
1766
1766
|
setup(r, { emit: i }) {
|
|
1767
|
-
let a = r, o = i, s = S(() =>
|
|
1767
|
+
let a = r, o = i, s = S(() => wt({
|
|
1768
1768
|
strip: a.strip,
|
|
1769
1769
|
orientation: a.orientation,
|
|
1770
1770
|
size: a.size,
|
|
@@ -1784,7 +1784,7 @@ var an = {
|
|
|
1784
1784
|
disabled: a.disabled,
|
|
1785
1785
|
dim: a.item.dim,
|
|
1786
1786
|
squeezed: a.squeezed
|
|
1787
|
-
})), c = t(() => s.value.tip, () => a.disabled), l =
|
|
1787
|
+
})), c = t(() => s.value.tip, () => a.disabled), l = ue(), u = S(() => a.disabled && !!s.value.tip), d = S(() => u.value ? l : c.describedBy.value), f = S(() => a.strip.kind === "tab"), p = S(() => ({
|
|
1788
1788
|
...s.value.style,
|
|
1789
1789
|
...a.share
|
|
1790
1790
|
}));
|
|
@@ -1794,7 +1794,7 @@ var an = {
|
|
|
1794
1794
|
function h(e) {
|
|
1795
1795
|
e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), o("select"));
|
|
1796
1796
|
}
|
|
1797
|
-
return (t, i) => (
|
|
1797
|
+
return (t, i) => (I(), T(b, null, [r.orientation === "vertical" ? (I(), T("a", M({ key: 0 }, r.item.attrs, {
|
|
1798
1798
|
ref: m,
|
|
1799
1799
|
href: r.item.href,
|
|
1800
1800
|
"data-sel-id": r.item.id,
|
|
@@ -1806,24 +1806,24 @@ var an = {
|
|
|
1806
1806
|
class: s.value.className,
|
|
1807
1807
|
style: p.value,
|
|
1808
1808
|
onClick: h,
|
|
1809
|
-
onMouseenter: i[0] ||= (...e) =>
|
|
1810
|
-
onMouseleave: i[1] ||= (...e) =>
|
|
1811
|
-
onFocus: i[2] ||= (...e) =>
|
|
1812
|
-
onBlur: i[3] ||= (...e) =>
|
|
1813
|
-
}), [s.value.showGlyph && r.item.glyph ? (
|
|
1809
|
+
onMouseenter: i[0] ||= (...e) => U(c).show && U(c).show(...e),
|
|
1810
|
+
onMouseleave: i[1] ||= (...e) => U(c).hide && U(c).hide(...e),
|
|
1811
|
+
onFocus: i[2] ||= (...e) => U(c).showOnFocus && U(c).showOnFocus(...e),
|
|
1812
|
+
onBlur: i[3] ||= (...e) => U(c).hide && U(c).hide(...e)
|
|
1813
|
+
}), [s.value.showGlyph && r.item.glyph ? (I(), C(B(r.item.glyph), { key: 0 })) : w("", !0), s.value.labelClass === null ? w("", !0) : (I(), T("span", {
|
|
1814
1814
|
key: 1,
|
|
1815
1815
|
"data-sel-label": "",
|
|
1816
1816
|
class: N(s.value.labelClass)
|
|
1817
|
-
},
|
|
1817
|
+
}, H(r.item.label), 3))], 16, ri)) : (I(), T(b, { key: 1 }, [k(U(n), M({
|
|
1818
1818
|
on: u.value,
|
|
1819
|
-
show:
|
|
1820
|
-
hide:
|
|
1819
|
+
show: U(c).show,
|
|
1820
|
+
hide: U(c).hide
|
|
1821
1821
|
}, u.value ? { style: r.share } : {}), {
|
|
1822
|
-
default:
|
|
1822
|
+
default: K(() => [E("button", M(r.item.attrs, {
|
|
1823
1823
|
ref: m,
|
|
1824
1824
|
type: "button",
|
|
1825
1825
|
"data-sel-id": r.item.id,
|
|
1826
|
-
id: r.panelId && f.value ?
|
|
1826
|
+
id: r.panelId && f.value ? U(Ot)(r.panelId, r.item.id) : void 0,
|
|
1827
1827
|
role: r.strip.kind === "toggle" ? void 0 : r.strip.kind,
|
|
1828
1828
|
"aria-selected": f.value ? r.on : void 0,
|
|
1829
1829
|
"aria-controls": r.panelId && f.value && r.on ? r.panelId : void 0,
|
|
@@ -1836,31 +1836,31 @@ var an = {
|
|
|
1836
1836
|
class: s.value.className,
|
|
1837
1837
|
style: p.value,
|
|
1838
1838
|
onClick: i[4] ||= (e) => o("select"),
|
|
1839
|
-
onMouseenter: i[5] ||= (...e) =>
|
|
1840
|
-
onMouseleave: i[6] ||= (...e) =>
|
|
1841
|
-
onFocus: i[7] ||= (...e) =>
|
|
1842
|
-
onBlur: i[8] ||= (...e) =>
|
|
1843
|
-
}), [s.value.showGlyph && r.item.glyph ? (
|
|
1839
|
+
onMouseenter: i[5] ||= (...e) => U(c).show && U(c).show(...e),
|
|
1840
|
+
onMouseleave: i[6] ||= (...e) => U(c).hide && U(c).hide(...e),
|
|
1841
|
+
onFocus: i[7] ||= (...e) => U(c).showOnFocus && U(c).showOnFocus(...e),
|
|
1842
|
+
onBlur: i[8] ||= (...e) => U(c).hide && U(c).hide(...e)
|
|
1843
|
+
}), [s.value.showGlyph && r.item.glyph ? (I(), C(B(r.item.glyph), { key: 0 })) : w("", !0), s.value.labelClass === null ? w("", !0) : (I(), T("span", {
|
|
1844
1844
|
key: 1,
|
|
1845
1845
|
"data-sel-label": "",
|
|
1846
1846
|
class: N(s.value.labelClass)
|
|
1847
|
-
},
|
|
1847
|
+
}, H(r.item.label), 3))], 16, ii)]),
|
|
1848
1848
|
_: 1
|
|
1849
1849
|
}, 16, [
|
|
1850
1850
|
"on",
|
|
1851
1851
|
"show",
|
|
1852
1852
|
"hide"
|
|
1853
|
-
]), u.value ? (
|
|
1853
|
+
]), u.value ? (I(), T("span", {
|
|
1854
1854
|
key: 0,
|
|
1855
|
-
id:
|
|
1855
|
+
id: U(l),
|
|
1856
1856
|
hidden: ""
|
|
1857
|
-
},
|
|
1857
|
+
}, H(s.value.tip), 9, ai)) : w("", !0)], 64)), k(e, { state: U(c) }, null, 8, ["state"])], 64));
|
|
1858
1858
|
}
|
|
1859
|
-
}),
|
|
1859
|
+
}), si = [
|
|
1860
1860
|
"role",
|
|
1861
1861
|
"aria-label",
|
|
1862
1862
|
"aria-orientation"
|
|
1863
|
-
],
|
|
1863
|
+
], ci = /* @__PURE__ */ A({
|
|
1864
1864
|
__name: "Selector",
|
|
1865
1865
|
props: {
|
|
1866
1866
|
items: {},
|
|
@@ -1906,10 +1906,10 @@ var an = {
|
|
|
1906
1906
|
setup(e, { emit: t }) {
|
|
1907
1907
|
let n = e, r = t, i = S(() => n.modelValue);
|
|
1908
1908
|
function a(e) {
|
|
1909
|
-
let t =
|
|
1910
|
-
return
|
|
1909
|
+
let t = V(et(e));
|
|
1910
|
+
return ie(Rt(e, () => t.value = et(e))), t;
|
|
1911
1911
|
}
|
|
1912
|
-
let o = y(() => n.label), s = S(() => n.inline || n.label === void 0 && o.value !== void 0), c =
|
|
1912
|
+
let o = y(() => n.label), s = S(() => n.inline || n.label === void 0 && o.value !== void 0), c = sn(Tt(n.size, n.orientation)), l = a(Se), u = a(De), d = S(() => kt({
|
|
1913
1913
|
mode: c.value,
|
|
1914
1914
|
select: n.select === "many" ? "many" : "one",
|
|
1915
1915
|
activation: n.activation,
|
|
@@ -1928,15 +1928,15 @@ var an = {
|
|
|
1928
1928
|
hasGlyph: !!e.glyph,
|
|
1929
1929
|
iconOnly: !!e.iconOnly
|
|
1930
1930
|
}))
|
|
1931
|
-
})), f =
|
|
1931
|
+
})), f = V(null), p = V(null), m = L("even"), h = S(() => n.items.map((e) => e.label).join("\n")), g = S(() => n.items.map((e) => n.disabled || e.disabled ? "1" : "0").join(""));
|
|
1932
1932
|
function _(e, t) {
|
|
1933
|
-
|
|
1933
|
+
G([f, e], (e, n, r) => {
|
|
1934
1934
|
if (!f.value) return;
|
|
1935
1935
|
let i = t(f.value);
|
|
1936
1936
|
i && r(i);
|
|
1937
1937
|
}, { flush: "post" });
|
|
1938
1938
|
}
|
|
1939
|
-
_(() => d.value.counted, (e) => d.value.counted ?
|
|
1939
|
+
_(() => d.value.counted, (e) => d.value.counted ? ze(e) : void 0), _(() => [
|
|
1940
1940
|
d.value.pinWidth,
|
|
1941
1941
|
n.equalWidth,
|
|
1942
1942
|
s.value,
|
|
@@ -1946,7 +1946,7 @@ var an = {
|
|
|
1946
1946
|
d.value.mode
|
|
1947
1947
|
].join("|"), (e) => {
|
|
1948
1948
|
if (!d.value.pinWidth) p.value = null;
|
|
1949
|
-
else return
|
|
1949
|
+
else return Qt(e, {
|
|
1950
1950
|
inline: s.value,
|
|
1951
1951
|
equalWidth: n.equalWidth
|
|
1952
1952
|
}, (e) => p.value = e);
|
|
@@ -1957,19 +1957,19 @@ var an = {
|
|
|
1957
1957
|
n.size
|
|
1958
1958
|
].join("|"), (e) => {
|
|
1959
1959
|
if (!d.value.canSqueeze) m.value = "even";
|
|
1960
|
-
else return
|
|
1960
|
+
else return Zt(e, (e) => m.value = e);
|
|
1961
1961
|
});
|
|
1962
|
-
let v = S(() =>
|
|
1962
|
+
let v = S(() => Et({
|
|
1963
1963
|
rows: p.value,
|
|
1964
1964
|
pinWidth: d.value.pinWidth,
|
|
1965
1965
|
inline: s.value,
|
|
1966
1966
|
fit: n.fit,
|
|
1967
1967
|
fitMode: m.value,
|
|
1968
1968
|
pairsOnPhone: n.pairsOnPhone
|
|
1969
|
-
})), ee = S(() => n.select === "many"), x = (e) => ee.value ? (i.value ?? []).includes(e) : i.value === e, w = S(() => n.items.map((e) => n.disabled || !!e.disabled)), E = S(() =>
|
|
1969
|
+
})), ee = S(() => n.select === "many"), x = (e) => ee.value ? (i.value ?? []).includes(e) : i.value === e, w = S(() => n.items.map((e) => n.disabled || !!e.disabled)), E = S(() => St(w.value, n.items.findIndex((e) => x(e.id))));
|
|
1970
1970
|
function D(e) {
|
|
1971
1971
|
r("press", e);
|
|
1972
|
-
let t = ee.value ?
|
|
1972
|
+
let t = ee.value ? Gt(i.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
1973
1973
|
t !== i.value && r("update:modelValue", t);
|
|
1974
1974
|
}
|
|
1975
1975
|
function O(e) {
|
|
@@ -1978,22 +1978,22 @@ var an = {
|
|
|
1978
1978
|
e.preventDefault(), t.click();
|
|
1979
1979
|
return;
|
|
1980
1980
|
}
|
|
1981
|
-
let r =
|
|
1981
|
+
let r = xt(f.value, e.key, n.orientation);
|
|
1982
1982
|
if (!r) return;
|
|
1983
1983
|
e.preventDefault();
|
|
1984
1984
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
1985
1985
|
d.value.autoSelect && i && D(i.id);
|
|
1986
1986
|
}
|
|
1987
|
-
return (t, n) => (
|
|
1987
|
+
return (t, n) => (I(), T("div", {
|
|
1988
1988
|
ref_key: "track",
|
|
1989
1989
|
ref: f,
|
|
1990
1990
|
role: d.value.role,
|
|
1991
|
-
"aria-label":
|
|
1991
|
+
"aria-label": U(o),
|
|
1992
1992
|
"aria-orientation": d.value.role === "group" ? void 0 : e.orientation,
|
|
1993
1993
|
class: N(d.value.className),
|
|
1994
1994
|
style: P(v.value.track),
|
|
1995
1995
|
onKeydown: O
|
|
1996
|
-
}, [(
|
|
1996
|
+
}, [(I(!0), T(b, null, R(e.items, (t, n) => (I(), C(oi, {
|
|
1997
1997
|
key: t.id,
|
|
1998
1998
|
item: t,
|
|
1999
1999
|
index: n,
|
|
@@ -2032,9 +2032,9 @@ var an = {
|
|
|
2032
2032
|
"hue-offset",
|
|
2033
2033
|
"panel-id",
|
|
2034
2034
|
"onSelect"
|
|
2035
|
-
]))), 128))], 46,
|
|
2035
|
+
]))), 128))], 46, si));
|
|
2036
2036
|
}
|
|
2037
|
-
}),
|
|
2037
|
+
}), li = { class: "glim-sr-only" }, ui = /* @__PURE__ */ A({
|
|
2038
2038
|
inheritAttrs: !1,
|
|
2039
2039
|
__name: "SidebarRowLink",
|
|
2040
2040
|
props: {
|
|
@@ -2051,25 +2051,25 @@ var an = {
|
|
|
2051
2051
|
function a(e) {
|
|
2052
2052
|
i.trigger.value = e;
|
|
2053
2053
|
}
|
|
2054
|
-
return (t, r) => (
|
|
2054
|
+
return (t, r) => (I(), T(b, null, [(I(), C(B(n.href ? "a" : "button"), M(t.$attrs, {
|
|
2055
2055
|
ref: a,
|
|
2056
2056
|
href: n.href,
|
|
2057
2057
|
type: n.href ? void 0 : "button",
|
|
2058
2058
|
"aria-current": n.active ? "page" : void 0,
|
|
2059
|
-
"aria-describedby":
|
|
2059
|
+
"aria-describedby": U(i).describedBy.value,
|
|
2060
2060
|
class: n.className,
|
|
2061
|
-
onMouseenter:
|
|
2062
|
-
onMouseleave:
|
|
2063
|
-
onFocus:
|
|
2064
|
-
onBlur:
|
|
2061
|
+
onMouseenter: U(i).show,
|
|
2062
|
+
onMouseleave: U(i).hide,
|
|
2063
|
+
onFocus: U(i).showOnFocus,
|
|
2064
|
+
onBlur: U(i).hide
|
|
2065
2065
|
}), {
|
|
2066
|
-
default:
|
|
2067
|
-
n.view.showGlyph && n.glyph ? (
|
|
2068
|
-
E("span", { class: N(n.view.labelClass) },
|
|
2069
|
-
n.view.countClass && n.count ? (
|
|
2066
|
+
default: K(() => [
|
|
2067
|
+
n.view.showGlyph && n.glyph ? (I(), C(B(n.glyph), { key: 0 })) : w("", !0),
|
|
2068
|
+
E("span", { class: N(n.view.labelClass) }, H(n.label), 3),
|
|
2069
|
+
n.view.countClass && n.count ? (I(), T(b, { key: 1 }, [E("span", {
|
|
2070
2070
|
class: N(n.view.countClass),
|
|
2071
2071
|
"aria-hidden": "true"
|
|
2072
|
-
},
|
|
2072
|
+
}, H(n.count.value), 3), E("span", li, H(n.count.label), 1)], 64)) : w("", !0)
|
|
2073
2073
|
]),
|
|
2074
2074
|
_: 1
|
|
2075
2075
|
}, 16, [
|
|
@@ -2082,15 +2082,15 @@ var an = {
|
|
|
2082
2082
|
"onMouseleave",
|
|
2083
2083
|
"onFocus",
|
|
2084
2084
|
"onBlur"
|
|
2085
|
-
])), k(e, { state:
|
|
2085
|
+
])), k(e, { state: U(i) }, null, 8, ["state"])], 64));
|
|
2086
2086
|
}
|
|
2087
|
-
}),
|
|
2087
|
+
}), di = {
|
|
2088
2088
|
key: 0,
|
|
2089
2089
|
class: "glim-nav-row-slot"
|
|
2090
|
-
},
|
|
2090
|
+
}, fi = {
|
|
2091
2091
|
key: 1,
|
|
2092
2092
|
class: "glim-nav-row-slot"
|
|
2093
|
-
},
|
|
2093
|
+
}, pi = /* @__PURE__ */ A({
|
|
2094
2094
|
inheritAttrs: !1,
|
|
2095
2095
|
__name: "SidebarRow",
|
|
2096
2096
|
props: {
|
|
@@ -2106,7 +2106,7 @@ var an = {
|
|
|
2106
2106
|
depth: {}
|
|
2107
2107
|
},
|
|
2108
2108
|
setup(e) {
|
|
2109
|
-
let t = e, n =
|
|
2109
|
+
let t = e, n = sn("sidebar"), r = de(), i = S(() => Mt({
|
|
2110
2110
|
mode: n.value,
|
|
2111
2111
|
label: t.label,
|
|
2112
2112
|
hasGlyph: !!t.glyph,
|
|
@@ -2123,7 +2123,7 @@ var an = {
|
|
|
2123
2123
|
active: t.active,
|
|
2124
2124
|
count: t.count
|
|
2125
2125
|
}));
|
|
2126
|
-
return (e, t) => e.$slots.before || e.$slots.after ? (
|
|
2126
|
+
return (e, t) => e.$slots.before || e.$slots.after ? (I(), T("div", {
|
|
2127
2127
|
key: 0,
|
|
2128
2128
|
class: N([
|
|
2129
2129
|
i.value.className,
|
|
@@ -2132,15 +2132,15 @@ var an = {
|
|
|
2132
2132
|
]),
|
|
2133
2133
|
style: P([i.value.style, e.$attrs.style])
|
|
2134
2134
|
}, [
|
|
2135
|
-
e.$slots.before ? (
|
|
2136
|
-
k(
|
|
2135
|
+
e.$slots.before ? (I(), T("span", di, [z(e.$slots, "before")])) : w("", !0),
|
|
2136
|
+
k(ui, M({
|
|
2137
2137
|
...e.$attrs,
|
|
2138
2138
|
...a.value,
|
|
2139
2139
|
class: void 0,
|
|
2140
2140
|
style: void 0
|
|
2141
2141
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
2142
|
-
e.$slots.after ? (
|
|
2143
|
-
], 6)) : (
|
|
2142
|
+
e.$slots.after ? (I(), T("span", fi, [z(e.$slots, "after")])) : w("", !0)
|
|
2143
|
+
], 6)) : (I(), C(ui, M({ key: 1 }, {
|
|
2144
2144
|
...e.$attrs,
|
|
2145
2145
|
...a.value,
|
|
2146
2146
|
class: void 0
|
|
@@ -2154,26 +2154,337 @@ var an = {
|
|
|
2154
2154
|
"style"
|
|
2155
2155
|
]));
|
|
2156
2156
|
}
|
|
2157
|
-
}),
|
|
2157
|
+
}), mi = { class: "glim-signin-field" }, hi = ["for"], $ = /* @__PURE__ */ A({
|
|
2158
|
+
__name: "SignInField",
|
|
2159
|
+
props: {
|
|
2160
|
+
label: {},
|
|
2161
|
+
for: {},
|
|
2162
|
+
hint: {}
|
|
2163
|
+
},
|
|
2164
|
+
setup(e) {
|
|
2165
|
+
return (t, n) => (I(), T("div", mi, [E("label", {
|
|
2166
|
+
for: t.$props.for,
|
|
2167
|
+
class: "glim-signin-label"
|
|
2168
|
+
}, [O(H(e.label), 1), e.hint ? (I(), C(Z, {
|
|
2169
|
+
key: 0,
|
|
2170
|
+
tip: e.hint
|
|
2171
|
+
}, null, 8, ["tip"])) : w("", !0)], 8, hi), z(t.$slots, "default")]));
|
|
2172
|
+
}
|
|
2173
|
+
}), gi = ["aria-label"], _i = /* @__PURE__ */ A({
|
|
2174
|
+
__name: "TextField",
|
|
2175
|
+
props: /*@__PURE__*/ j({
|
|
2176
|
+
label: {},
|
|
2177
|
+
mono: { type: Boolean },
|
|
2178
|
+
width: {}
|
|
2179
|
+
}, {
|
|
2180
|
+
modelValue: { default: "" },
|
|
2181
|
+
modelModifiers: {}
|
|
2182
|
+
}),
|
|
2183
|
+
emits: ["update:modelValue"],
|
|
2184
|
+
setup(e, { expose: t }) {
|
|
2185
|
+
let n = e, r = W(e, "modelValue"), i = y(() => n.label), a = S(() => Ut({
|
|
2186
|
+
width: n.width,
|
|
2187
|
+
mono: n.mono
|
|
2188
|
+
})), o = V(null);
|
|
2189
|
+
return t({ input: o }), (e, t) => q((I(), T("input", {
|
|
2190
|
+
ref_key: "input",
|
|
2191
|
+
ref: o,
|
|
2192
|
+
"onUpdate:modelValue": t[0] ||= (e) => r.value = e,
|
|
2193
|
+
type: "text",
|
|
2194
|
+
"aria-label": U(i),
|
|
2195
|
+
class: N(a.value)
|
|
2196
|
+
}, null, 10, gi)), [[pe, r.value]]);
|
|
2197
|
+
}
|
|
2198
|
+
}), vi = { class: "glim-signin" }, yi = { class: "glim-signin-head" }, bi = {
|
|
2199
|
+
key: 0,
|
|
2200
|
+
class: "glim-signin-logo",
|
|
2201
|
+
"aria-hidden": "true"
|
|
2202
|
+
}, xi = ["src"], Si = { class: "glim-signin-name" }, Ci = {
|
|
2203
|
+
key: 0,
|
|
2204
|
+
class: "glim-signin-error",
|
|
2205
|
+
role: "alert"
|
|
2206
|
+
}, wi = {
|
|
2207
|
+
key: 0,
|
|
2208
|
+
class: "glim-signin-note",
|
|
2209
|
+
role: "status"
|
|
2210
|
+
}, Ti = { class: "glim-signin-hint" }, Ei = {
|
|
2211
|
+
key: 3,
|
|
2212
|
+
class: "glim-signin-error",
|
|
2213
|
+
role: "alert"
|
|
2214
|
+
}, Di = /* @__PURE__ */ A({
|
|
2215
|
+
__name: "SignInCard",
|
|
2216
|
+
props: {
|
|
2217
|
+
logo: {},
|
|
2218
|
+
appName: {},
|
|
2219
|
+
text: {},
|
|
2220
|
+
passkey: {
|
|
2221
|
+
type: Boolean,
|
|
2222
|
+
default: !1
|
|
2223
|
+
},
|
|
2224
|
+
reset: {
|
|
2225
|
+
type: Boolean,
|
|
2226
|
+
default: !1
|
|
2227
|
+
},
|
|
2228
|
+
minPassword: { default: 12 },
|
|
2229
|
+
note: {},
|
|
2230
|
+
labelKeys: {},
|
|
2231
|
+
idPrefix: {},
|
|
2232
|
+
autoFocus: {
|
|
2233
|
+
type: Boolean,
|
|
2234
|
+
default: !0
|
|
2235
|
+
},
|
|
2236
|
+
onSignIn: {},
|
|
2237
|
+
onPasskey: {},
|
|
2238
|
+
onAskCode: {},
|
|
2239
|
+
onSetPassword: {}
|
|
2240
|
+
},
|
|
2241
|
+
setup(e) {
|
|
2242
|
+
let t = e, n = de(), r = Be(() => t), i = V(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
2243
|
+
re(a);
|
|
2244
|
+
let o = ue(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = S(() => ({
|
|
2245
|
+
signIn: "signIn",
|
|
2246
|
+
passkey: "signInWithPasskey",
|
|
2247
|
+
forgot: "forgotPassword",
|
|
2248
|
+
back: "back",
|
|
2249
|
+
setPassword: "setPassword",
|
|
2250
|
+
...t.labelKeys
|
|
2251
|
+
})), l = S(() => ({
|
|
2252
|
+
show: t.text.show,
|
|
2253
|
+
hide: t.text.hide
|
|
2254
|
+
})), u = V(null), d = "";
|
|
2255
|
+
function f() {
|
|
2256
|
+
let e = n.step ? "step" : Pt(i.value);
|
|
2257
|
+
e !== d && ((d || t.autoFocus) && Ue(u.value), d = e);
|
|
2258
|
+
}
|
|
2259
|
+
return F(f), oe(f), G(() => i.value.refusal?.count, (e, t, n) => {
|
|
2260
|
+
let r = i.value.refusal;
|
|
2261
|
+
r && n(jt(u.value, r));
|
|
2262
|
+
}, { flush: "post" }), (t, n) => (I(), T("div", vi, [E("div", {
|
|
2263
|
+
ref_key: "card",
|
|
2264
|
+
ref: u,
|
|
2265
|
+
class: "glim-card glim-signin-card"
|
|
2266
|
+
}, [E("div", yi, [e.logo || t.$slots.logo ? (I(), T("span", bi, [z(t.$slots, "logo", {}, () => [E("img", {
|
|
2267
|
+
src: e.logo,
|
|
2268
|
+
alt: "",
|
|
2269
|
+
draggable: "false"
|
|
2270
|
+
}, null, 8, xi)])])) : w("", !0), E("h1", Si, H(e.appName), 1)]), t.$slots.step ? z(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (I(), T("form", {
|
|
2271
|
+
key: 1,
|
|
2272
|
+
class: "glim-signin-form",
|
|
2273
|
+
novalidate: "",
|
|
2274
|
+
onSubmit: n[4] ||= J((e) => U(r).submit(), ["prevent"])
|
|
2275
|
+
}, [
|
|
2276
|
+
k($, {
|
|
2277
|
+
label: e.text.resetCode,
|
|
2278
|
+
for: s("reset-code"),
|
|
2279
|
+
hint: e.text.resetCodeTip
|
|
2280
|
+
}, {
|
|
2281
|
+
default: K(() => [k(_i, {
|
|
2282
|
+
id: s("reset-code"),
|
|
2283
|
+
"data-signin-field": "resetCode",
|
|
2284
|
+
class: "glim-signin-log-code",
|
|
2285
|
+
"model-value": i.value.resetCode,
|
|
2286
|
+
autocomplete: "one-time-code",
|
|
2287
|
+
autocapitalize: "characters",
|
|
2288
|
+
spellcheck: "false",
|
|
2289
|
+
placeholder: "XXXX-XXXX-XXXX",
|
|
2290
|
+
"onUpdate:modelValue": n[0] ||= (e) => U(r).set("resetCode", e)
|
|
2291
|
+
}, null, 8, ["id", "model-value"])]),
|
|
2292
|
+
_: 1
|
|
2293
|
+
}, 8, [
|
|
2294
|
+
"label",
|
|
2295
|
+
"for",
|
|
2296
|
+
"hint"
|
|
2297
|
+
]),
|
|
2298
|
+
k($, {
|
|
2299
|
+
label: e.text.newPassword,
|
|
2300
|
+
for: s("new")
|
|
2301
|
+
}, {
|
|
2302
|
+
default: K(() => [k(Zr, {
|
|
2303
|
+
id: s("new"),
|
|
2304
|
+
"data-signin-field": "newPassword",
|
|
2305
|
+
"model-value": i.value.newPassword,
|
|
2306
|
+
autocomplete: "new-password",
|
|
2307
|
+
text: l.value,
|
|
2308
|
+
"onUpdate:modelValue": n[1] ||= (e) => U(r).set("newPassword", e)
|
|
2309
|
+
}, null, 8, [
|
|
2310
|
+
"id",
|
|
2311
|
+
"model-value",
|
|
2312
|
+
"text"
|
|
2313
|
+
])]),
|
|
2314
|
+
_: 1
|
|
2315
|
+
}, 8, ["label", "for"]),
|
|
2316
|
+
k($, {
|
|
2317
|
+
label: e.text.confirmPassword,
|
|
2318
|
+
for: s("confirm")
|
|
2319
|
+
}, {
|
|
2320
|
+
default: K(() => [k(Zr, {
|
|
2321
|
+
id: s("confirm"),
|
|
2322
|
+
"data-signin-field": "confirm",
|
|
2323
|
+
"model-value": i.value.confirm,
|
|
2324
|
+
autocomplete: "new-password",
|
|
2325
|
+
text: l.value,
|
|
2326
|
+
"onUpdate:modelValue": n[2] ||= (e) => U(r).set("confirm", e)
|
|
2327
|
+
}, null, 8, [
|
|
2328
|
+
"id",
|
|
2329
|
+
"model-value",
|
|
2330
|
+
"text"
|
|
2331
|
+
])]),
|
|
2332
|
+
_: 1
|
|
2333
|
+
}, 8, ["label", "for"]),
|
|
2334
|
+
i.value.error ? (I(), T("p", Ci, H(i.value.error), 1)) : w("", !0),
|
|
2335
|
+
k(X, {
|
|
2336
|
+
label: e.text.setPassword,
|
|
2337
|
+
"label-key": c.value.setPassword,
|
|
2338
|
+
tone: "accent",
|
|
2339
|
+
type: "submit",
|
|
2340
|
+
"data-signin": "set-password",
|
|
2341
|
+
disabled: U(yt)(i.value),
|
|
2342
|
+
busy: i.value.busy === "setPassword",
|
|
2343
|
+
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
2344
|
+
}, null, 8, [
|
|
2345
|
+
"label",
|
|
2346
|
+
"label-key",
|
|
2347
|
+
"disabled",
|
|
2348
|
+
"busy",
|
|
2349
|
+
"title"
|
|
2350
|
+
]),
|
|
2351
|
+
k(X, {
|
|
2352
|
+
label: e.text.back,
|
|
2353
|
+
"label-key": c.value.back,
|
|
2354
|
+
tone: "subtle",
|
|
2355
|
+
"data-signin": "back",
|
|
2356
|
+
disabled: !!i.value.busy,
|
|
2357
|
+
onClick: n[3] ||= (e) => U(r).back()
|
|
2358
|
+
}, null, 8, [
|
|
2359
|
+
"label",
|
|
2360
|
+
"label-key",
|
|
2361
|
+
"disabled"
|
|
2362
|
+
])
|
|
2363
|
+
], 32)) : (I(), T("form", {
|
|
2364
|
+
key: 2,
|
|
2365
|
+
class: "glim-signin-form",
|
|
2366
|
+
novalidate: "",
|
|
2367
|
+
onSubmit: n[10] ||= J((e) => U(r).submit(), ["prevent"])
|
|
2368
|
+
}, [
|
|
2369
|
+
e.note ? (I(), T("p", wi, H(e.note), 1)) : w("", !0),
|
|
2370
|
+
i.value.viaPasskey ? w("", !0) : z(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
2371
|
+
q(k($, {
|
|
2372
|
+
label: e.text.password,
|
|
2373
|
+
for: s("password")
|
|
2374
|
+
}, {
|
|
2375
|
+
default: K(() => [k(Zr, {
|
|
2376
|
+
id: s("password"),
|
|
2377
|
+
"data-signin-field": "password",
|
|
2378
|
+
"model-value": i.value.password,
|
|
2379
|
+
autocomplete: "current-password",
|
|
2380
|
+
text: l.value,
|
|
2381
|
+
"onUpdate:modelValue": n[5] ||= (e) => U(r).set("password", e)
|
|
2382
|
+
}, null, 8, [
|
|
2383
|
+
"id",
|
|
2384
|
+
"model-value",
|
|
2385
|
+
"text"
|
|
2386
|
+
])]),
|
|
2387
|
+
_: 1
|
|
2388
|
+
}, 8, ["label", "for"]), [[me, !i.value.viaPasskey]]),
|
|
2389
|
+
i.value.needCode ? (I(), C($, {
|
|
2390
|
+
key: 2,
|
|
2391
|
+
label: e.text.code,
|
|
2392
|
+
for: s("code")
|
|
2393
|
+
}, {
|
|
2394
|
+
default: K(() => [k(_i, {
|
|
2395
|
+
id: s("code"),
|
|
2396
|
+
"data-signin-field": "code",
|
|
2397
|
+
class: "glim-signin-code",
|
|
2398
|
+
"model-value": i.value.code,
|
|
2399
|
+
inputmode: "numeric",
|
|
2400
|
+
autocomplete: "one-time-code",
|
|
2401
|
+
spellcheck: "false",
|
|
2402
|
+
placeholder: "000000",
|
|
2403
|
+
"onUpdate:modelValue": n[6] ||= (e) => U(r).set("code", e)
|
|
2404
|
+
}, null, 8, ["id", "model-value"]), E("p", Ti, H(e.text.codeHint), 1)]),
|
|
2405
|
+
_: 1
|
|
2406
|
+
}, 8, ["label", "for"])) : w("", !0),
|
|
2407
|
+
i.value.error ? (I(), T("p", Ei, H(i.value.error), 1)) : w("", !0),
|
|
2408
|
+
k(X, {
|
|
2409
|
+
label: e.text.signIn,
|
|
2410
|
+
"label-key": c.value.signIn,
|
|
2411
|
+
tone: "accent",
|
|
2412
|
+
type: "submit",
|
|
2413
|
+
"data-signin": "submit",
|
|
2414
|
+
disabled: U(Nt)(i.value),
|
|
2415
|
+
busy: i.value.busy === "signIn",
|
|
2416
|
+
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
2417
|
+
}, null, 8, [
|
|
2418
|
+
"label",
|
|
2419
|
+
"label-key",
|
|
2420
|
+
"disabled",
|
|
2421
|
+
"busy",
|
|
2422
|
+
"title"
|
|
2423
|
+
]),
|
|
2424
|
+
!i.value.needCode && e.passkey ? (I(), C(X, {
|
|
2425
|
+
key: 4,
|
|
2426
|
+
label: e.text.passkey,
|
|
2427
|
+
"label-key": c.value.passkey,
|
|
2428
|
+
"data-signin": "passkey",
|
|
2429
|
+
disabled: !!i.value.busy,
|
|
2430
|
+
busy: i.value.busy === "passkey",
|
|
2431
|
+
onClick: n[7] ||= (e) => U(r).passkey()
|
|
2432
|
+
}, null, 8, [
|
|
2433
|
+
"label",
|
|
2434
|
+
"label-key",
|
|
2435
|
+
"disabled",
|
|
2436
|
+
"busy"
|
|
2437
|
+
])) : w("", !0),
|
|
2438
|
+
i.value.needCode ? w("", !0) : z(t.$slots, "actions", {}, void 0, void 0, 5),
|
|
2439
|
+
i.value.needCode ? (I(), C(X, {
|
|
2440
|
+
key: 6,
|
|
2441
|
+
label: e.text.back,
|
|
2442
|
+
"label-key": c.value.back,
|
|
2443
|
+
tone: "subtle",
|
|
2444
|
+
"data-signin": "back",
|
|
2445
|
+
disabled: !!i.value.busy,
|
|
2446
|
+
onClick: n[8] ||= (e) => U(r).back()
|
|
2447
|
+
}, null, 8, [
|
|
2448
|
+
"label",
|
|
2449
|
+
"label-key",
|
|
2450
|
+
"disabled"
|
|
2451
|
+
])) : e.reset ? (I(), C(X, {
|
|
2452
|
+
key: 7,
|
|
2453
|
+
label: e.text.forgot,
|
|
2454
|
+
"label-key": c.value.forgot,
|
|
2455
|
+
tone: "subtle",
|
|
2456
|
+
"data-signin": "forgot",
|
|
2457
|
+
disabled: !!i.value.busy,
|
|
2458
|
+
busy: i.value.busy === "askCode",
|
|
2459
|
+
onClick: n[9] ||= (e) => U(r).forgot()
|
|
2460
|
+
}, null, 8, [
|
|
2461
|
+
"label",
|
|
2462
|
+
"label-key",
|
|
2463
|
+
"disabled",
|
|
2464
|
+
"busy"
|
|
2465
|
+
])) : w("", !0)
|
|
2466
|
+
], 32))], 512)]));
|
|
2467
|
+
}
|
|
2468
|
+
}), Oi = ["aria-labelledby"], ki = {
|
|
2158
2469
|
key: 0,
|
|
2159
2470
|
class: "glim-subcard-title"
|
|
2160
|
-
},
|
|
2471
|
+
}, Ai = ["id"], ji = /* @__PURE__ */ A({
|
|
2161
2472
|
__name: "SubCard",
|
|
2162
2473
|
props: {
|
|
2163
2474
|
title: {},
|
|
2164
2475
|
hint: {}
|
|
2165
2476
|
},
|
|
2166
2477
|
setup(e) {
|
|
2167
|
-
let t =
|
|
2168
|
-
return (n, r) => (
|
|
2478
|
+
let t = ue();
|
|
2479
|
+
return (n, r) => (I(), T("section", {
|
|
2169
2480
|
class: "glim-subcard",
|
|
2170
|
-
"aria-labelledby": e.title ?
|
|
2171
|
-
}, [e.title ? (
|
|
2481
|
+
"aria-labelledby": e.title ? U(t) : void 0
|
|
2482
|
+
}, [e.title ? (I(), T("h3", ki, [E("span", { id: U(t) }, H(e.title), 9, Ai), e.hint ? (I(), C(Z, {
|
|
2172
2483
|
key: 0,
|
|
2173
2484
|
tip: e.hint
|
|
2174
|
-
}, null, 8, ["tip"])) : w("", !0)])) : w("", !0),
|
|
2485
|
+
}, null, 8, ["tip"])) : w("", !0)])) : w("", !0), z(n.$slots, "default")], 8, Oi));
|
|
2175
2486
|
}
|
|
2176
|
-
}),
|
|
2487
|
+
}), Mi = ["aria-label"], Ni = { key: 0 }, Pi = { key: 0 }, Fi = ["colspan"], Ii = /* @__PURE__ */ A({
|
|
2177
2488
|
__name: "Table",
|
|
2178
2489
|
props: {
|
|
2179
2490
|
label: {},
|
|
@@ -2183,26 +2494,26 @@ var an = {
|
|
|
2183
2494
|
},
|
|
2184
2495
|
setup(e) {
|
|
2185
2496
|
let t = e, n = S(() => t.columns.some((e) => e.label)), r = (e, t) => e[t.key];
|
|
2186
|
-
return (t, i) => (
|
|
2497
|
+
return (t, i) => (I(), T("table", {
|
|
2187
2498
|
class: "glim-table",
|
|
2188
2499
|
"aria-label": e.label
|
|
2189
|
-
}, [n.value ? (
|
|
2500
|
+
}, [n.value ? (I(), T("thead", Ni, [E("tr", null, [(I(!0), T(b, null, R(e.columns, (e) => (I(), T("th", {
|
|
2190
2501
|
key: e.key,
|
|
2191
2502
|
scope: "col",
|
|
2192
2503
|
class: N({ "glim-table-end": e.end })
|
|
2193
|
-
},
|
|
2504
|
+
}, H(e.label), 3))), 128))])])) : w("", !0), E("tbody", null, [(I(!0), T(b, null, R(e.rows, (n, i) => (I(), T("tr", { key: i }, [(I(!0), T(b, null, R(e.columns, (e) => (I(), T("td", {
|
|
2194
2505
|
key: e.key,
|
|
2195
|
-
class: N(
|
|
2196
|
-
}, [
|
|
2506
|
+
class: N(U(Vt)(e))
|
|
2507
|
+
}, [z(t.$slots, "cell", {
|
|
2197
2508
|
row: n,
|
|
2198
2509
|
column: e,
|
|
2199
2510
|
value: r(n, e)
|
|
2200
|
-
}, () => [O(
|
|
2511
|
+
}, () => [O(H(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (I(), T("tr", Pi, [E("td", {
|
|
2201
2512
|
colspan: e.columns.length,
|
|
2202
2513
|
class: "glim-table-muted"
|
|
2203
|
-
},
|
|
2514
|
+
}, H(e.more), 9, Fi)])) : w("", !0)])], 8, Mi));
|
|
2204
2515
|
}
|
|
2205
|
-
}),
|
|
2516
|
+
}), Li = ["aria-label"], Ri = /* @__PURE__ */ A({
|
|
2206
2517
|
__name: "TextArea",
|
|
2207
2518
|
props: /*@__PURE__*/ j({
|
|
2208
2519
|
label: {},
|
|
@@ -2214,52 +2525,27 @@ var an = {
|
|
|
2214
2525
|
}),
|
|
2215
2526
|
emits: ["update:modelValue"],
|
|
2216
2527
|
setup(e, { expose: t }) {
|
|
2217
|
-
let n = e, r =
|
|
2528
|
+
let n = e, r = W(e, "modelValue"), i = y(() => n.label), a = S(() => Ut({
|
|
2218
2529
|
width: n.width,
|
|
2219
2530
|
mono: n.mono,
|
|
2220
2531
|
area: !0
|
|
2221
|
-
})), o =
|
|
2222
|
-
return t({ input: o }), (e, t) =>
|
|
2223
|
-
ref_key: "input",
|
|
2224
|
-
ref: o,
|
|
2225
|
-
"onUpdate:modelValue": t[0] ||= (e) => r.value = e,
|
|
2226
|
-
"aria-label": W(i),
|
|
2227
|
-
class: N(a.value)
|
|
2228
|
-
}, null, 10, mi)), [[de, r.value]]);
|
|
2229
|
-
}
|
|
2230
|
-
}), gi = ["aria-label"], _i = /* @__PURE__ */ A({
|
|
2231
|
-
__name: "TextField",
|
|
2232
|
-
props: /*@__PURE__*/ j({
|
|
2233
|
-
label: {},
|
|
2234
|
-
mono: { type: Boolean },
|
|
2235
|
-
width: {}
|
|
2236
|
-
}, {
|
|
2237
|
-
modelValue: { default: "" },
|
|
2238
|
-
modelModifiers: {}
|
|
2239
|
-
}),
|
|
2240
|
-
emits: ["update:modelValue"],
|
|
2241
|
-
setup(e, { expose: t }) {
|
|
2242
|
-
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() => Pt({
|
|
2243
|
-
width: n.width,
|
|
2244
|
-
mono: n.mono
|
|
2245
|
-
})), o = H(null);
|
|
2246
|
-
return t({ input: o }), (e, t) => J((L(), T("input", {
|
|
2532
|
+
})), o = V(null);
|
|
2533
|
+
return t({ input: o }), (e, t) => q((I(), T("textarea", {
|
|
2247
2534
|
ref_key: "input",
|
|
2248
2535
|
ref: o,
|
|
2249
2536
|
"onUpdate:modelValue": t[0] ||= (e) => r.value = e,
|
|
2250
|
-
|
|
2251
|
-
"aria-label": W(i),
|
|
2537
|
+
"aria-label": U(i),
|
|
2252
2538
|
class: N(a.value)
|
|
2253
|
-
}, null, 10,
|
|
2539
|
+
}, null, 10, Li)), [[pe, r.value]]);
|
|
2254
2540
|
}
|
|
2255
|
-
}),
|
|
2541
|
+
}), zi = { class: "glim-toast-stack" }, Bi = [
|
|
2256
2542
|
"role",
|
|
2257
2543
|
"onMouseenter",
|
|
2258
2544
|
"onMouseleave",
|
|
2259
2545
|
"onFocusin",
|
|
2260
2546
|
"onFocusout",
|
|
2261
2547
|
"onKeydown"
|
|
2262
|
-
],
|
|
2548
|
+
], Vi = { class: "glim-toast-body" }, Hi = { class: "glim-toast-message" }, Ui = { key: 0 }, Wi = ["aria-label", "onClick"], Gi = /* @__PURE__ */ A({
|
|
2263
2549
|
__name: "ToastViewport",
|
|
2264
2550
|
props: {
|
|
2265
2551
|
toasts: {},
|
|
@@ -2277,7 +2563,7 @@ var an = {
|
|
|
2277
2563
|
function i(e, t) {
|
|
2278
2564
|
t.onClick(), n("dismiss", e);
|
|
2279
2565
|
}
|
|
2280
|
-
return (t, a) => (
|
|
2566
|
+
return (t, a) => (I(), T("div", zi, [(I(!0), T(b, null, R(e.toasts, (t) => (I(), T("div", {
|
|
2281
2567
|
key: t.id,
|
|
2282
2568
|
role: r(t.severity),
|
|
2283
2569
|
class: "glim-toast glim-toast-card",
|
|
@@ -2285,13 +2571,13 @@ var an = {
|
|
|
2285
2571
|
onMouseleave: (e) => n("leave", t.id),
|
|
2286
2572
|
onFocusin: (e) => n("focusin", t.id),
|
|
2287
2573
|
onFocusout: (e) => n("focusout", t.id),
|
|
2288
|
-
onKeydown:
|
|
2574
|
+
onKeydown: ge(J((e) => n("dismiss", t.id), ["stop"]), ["esc"])
|
|
2289
2575
|
}, [
|
|
2290
|
-
k(
|
|
2291
|
-
mark:
|
|
2576
|
+
k(U(p), {
|
|
2577
|
+
mark: U(Ee)[t.severity],
|
|
2292
2578
|
class: N(`glim-toast-glyph glim-toast-glyph--${t.severity}`)
|
|
2293
2579
|
}, null, 8, ["mark", "class"]),
|
|
2294
|
-
E("div",
|
|
2580
|
+
E("div", Vi, [E("p", Hi, [(I(!0), T(b, null, R(U(Ft)(t.message), (e, t) => (I(), T(b, { key: t }, [t > 0 ? (I(), T("wbr", Ui)) : w("", !0), O(H(e), 1)], 64))), 128))]), t.action ? (I(), C(X, {
|
|
2295
2581
|
key: 0,
|
|
2296
2582
|
class: "glim-toast-action",
|
|
2297
2583
|
tone: "subtle",
|
|
@@ -2304,17 +2590,17 @@ var an = {
|
|
|
2304
2590
|
"aria-label": e.dismissLabel,
|
|
2305
2591
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
2306
2592
|
onClick: (e) => n("dismiss", t.id)
|
|
2307
|
-
}, [k(
|
|
2308
|
-
], 40,
|
|
2593
|
+
}, [k(U(p), { mark: U(we).dismiss }, null, 8, ["mark"])], 8, Wi)
|
|
2594
|
+
], 40, Bi))), 128))]));
|
|
2309
2595
|
}
|
|
2310
|
-
}),
|
|
2596
|
+
}), Ki = {
|
|
2311
2597
|
key: 0,
|
|
2312
2598
|
class: "glim-toggle-label"
|
|
2313
|
-
},
|
|
2599
|
+
}, qi = [
|
|
2314
2600
|
"aria-checked",
|
|
2315
2601
|
"aria-label",
|
|
2316
2602
|
"disabled"
|
|
2317
|
-
],
|
|
2603
|
+
], Ji = /* @__PURE__ */ A({
|
|
2318
2604
|
inheritAttrs: !1,
|
|
2319
2605
|
__name: "Toggle",
|
|
2320
2606
|
props: /*@__PURE__*/ j({
|
|
@@ -2336,11 +2622,11 @@ var an = {
|
|
|
2336
2622
|
}),
|
|
2337
2623
|
emits: ["update:modelValue"],
|
|
2338
2624
|
setup(e) {
|
|
2339
|
-
let t = e, n =
|
|
2340
|
-
return (t, a) => (
|
|
2625
|
+
let t = e, n = W(e, "modelValue"), r = y(() => t.label), i = S(() => t.label !== void 0 && !t.hideLabel);
|
|
2626
|
+
return (t, a) => (I(), T("span", {
|
|
2341
2627
|
class: N(["glim-toggle", t.$attrs.class]),
|
|
2342
2628
|
style: P(t.$attrs.style)
|
|
2343
|
-
}, [i.value ? (
|
|
2629
|
+
}, [i.value ? (I(), T("span", Ki, H(e.label), 1)) : w("", !0), E("button", M({
|
|
2344
2630
|
...t.$attrs,
|
|
2345
2631
|
class: void 0,
|
|
2346
2632
|
style: void 0
|
|
@@ -2348,13 +2634,13 @@ var an = {
|
|
|
2348
2634
|
type: "button",
|
|
2349
2635
|
role: "switch",
|
|
2350
2636
|
"aria-checked": n.value,
|
|
2351
|
-
"aria-label":
|
|
2637
|
+
"aria-label": U(r),
|
|
2352
2638
|
disabled: e.disabled,
|
|
2353
2639
|
class: "glim-toggle-track",
|
|
2354
2640
|
onClick: a[0] ||= (e) => n.value = !n.value
|
|
2355
|
-
}), [...a[1] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2641
|
+
}), [...a[1] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, qi)], 6));
|
|
2356
2642
|
}
|
|
2357
|
-
}),
|
|
2643
|
+
}), Yi = ["aria-label"], Xi = [
|
|
2358
2644
|
"aria-level",
|
|
2359
2645
|
"aria-posinset",
|
|
2360
2646
|
"aria-setsize",
|
|
@@ -2365,11 +2651,11 @@ var an = {
|
|
|
2365
2651
|
"onClick",
|
|
2366
2652
|
"onDblclick",
|
|
2367
2653
|
"onKeydown"
|
|
2368
|
-
],
|
|
2654
|
+
], Zi = ["onClick"], Qi = {
|
|
2369
2655
|
key: 0,
|
|
2370
2656
|
class: "glim-tree-glyph",
|
|
2371
2657
|
"aria-hidden": "true"
|
|
2372
|
-
},
|
|
2658
|
+
}, $i = { class: "glim-tree-label" }, ea = /* @__PURE__ */ A({
|
|
2373
2659
|
__name: "Tree",
|
|
2374
2660
|
props: /*@__PURE__*/ j({
|
|
2375
2661
|
label: {},
|
|
@@ -2382,12 +2668,12 @@ var an = {
|
|
|
2382
2668
|
}),
|
|
2383
2669
|
emits: /*@__PURE__*/ j(["activate"], ["update:modelValue", "update:open"]),
|
|
2384
2670
|
setup(e, { emit: t }) {
|
|
2385
|
-
let n = e, i =
|
|
2671
|
+
let n = e, i = W(e, "modelValue"), a = W(e, "open"), o = t, s = ce(/* @__PURE__ */ new Map()), c = /* @__PURE__ */ new Set(), l = V(null);
|
|
2386
2672
|
function u(e) {
|
|
2387
2673
|
c.has(e) || (c.add(e), Promise.resolve(n.load(e)).then((t) => s.set(e, t), () => c.delete(e)));
|
|
2388
2674
|
}
|
|
2389
|
-
|
|
2390
|
-
let d = S(() =>
|
|
2675
|
+
G(a, (e) => [null, ...e].forEach(u), { immediate: !0 });
|
|
2676
|
+
let d = S(() => qt(s, a.value)), f = S(() => Math.max(d.value.findIndex((e) => e.node.id === i.value), 0));
|
|
2391
2677
|
function p(e) {
|
|
2392
2678
|
a.value = a.value.includes(e) ? a.value.filter((t) => t !== e) : [...a.value, e];
|
|
2393
2679
|
}
|
|
@@ -2398,16 +2684,16 @@ var an = {
|
|
|
2398
2684
|
e.preventDefault(), i.value = n, e.key === "Enter" && o("activate", n);
|
|
2399
2685
|
return;
|
|
2400
2686
|
}
|
|
2401
|
-
let r =
|
|
2402
|
-
r && (e.preventDefault(), "focus" in r ? (i.value = r.focus,
|
|
2687
|
+
let r = Jt(d.value, t, e.key, getComputedStyle(l.value).direction === "rtl");
|
|
2688
|
+
r && (e.preventDefault(), "focus" in r ? (i.value = r.focus, Ke(l.value, r.focus)) : p("open" in r ? r.open : r.close));
|
|
2403
2689
|
}
|
|
2404
|
-
return (t, n) => (
|
|
2690
|
+
return (t, n) => (I(), T("div", {
|
|
2405
2691
|
ref_key: "tree",
|
|
2406
2692
|
ref: l,
|
|
2407
2693
|
role: "tree",
|
|
2408
2694
|
"aria-label": e.label,
|
|
2409
2695
|
class: "glim-tree"
|
|
2410
|
-
}, [(
|
|
2696
|
+
}, [(I(!0), T(b, null, R(d.value, (e, t) => (I(), T("div", M({ ref_for: !0 }, e.node.attrs, {
|
|
2411
2697
|
key: e.node.id,
|
|
2412
2698
|
role: "treeitem",
|
|
2413
2699
|
"aria-level": e.level,
|
|
@@ -2426,33 +2712,33 @@ var an = {
|
|
|
2426
2712
|
E("span", {
|
|
2427
2713
|
class: "glim-tree-toggle",
|
|
2428
2714
|
"aria-hidden": "true",
|
|
2429
|
-
onClick:
|
|
2430
|
-
onDblclick: n[0] ||=
|
|
2431
|
-
}, [e.node.hasChildren ? (
|
|
2432
|
-
e.node.glyph ? (
|
|
2433
|
-
E("span",
|
|
2434
|
-
], 16,
|
|
2715
|
+
onClick: J((t) => e.node.hasChildren && p(e.node.id), ["stop"]),
|
|
2716
|
+
onDblclick: n[0] ||= J(() => {}, ["stop"])
|
|
2717
|
+
}, [e.node.hasChildren ? (I(), C(U(r), { key: 0 })) : w("", !0)], 40, Zi),
|
|
2718
|
+
e.node.glyph ? (I(), T("span", Qi, [(I(), C(B(e.open && e.node.openGlyph || e.node.glyph)))])) : w("", !0),
|
|
2719
|
+
E("span", $i, H(e.node.label), 1)
|
|
2720
|
+
], 16, Xi))), 128))], 8, Yi));
|
|
2435
2721
|
}
|
|
2436
|
-
}),
|
|
2722
|
+
}), ta = { class: "glim-notice" }, na = { class: "glim-notice-title" }, ra = { class: "glim-notice-reason" }, ia = {
|
|
2437
2723
|
key: 0,
|
|
2438
2724
|
class: "glim-notice-action"
|
|
2439
|
-
},
|
|
2725
|
+
}, aa = /* @__PURE__ */ A({
|
|
2440
2726
|
__name: "UnavailableNotice",
|
|
2441
2727
|
props: { title: {} },
|
|
2442
2728
|
setup(e) {
|
|
2443
|
-
return (t, n) => (
|
|
2444
|
-
E("p",
|
|
2445
|
-
E("p",
|
|
2446
|
-
t.$slots.action ? (
|
|
2729
|
+
return (t, n) => (I(), T("div", ta, [
|
|
2730
|
+
E("p", na, H(e.title), 1),
|
|
2731
|
+
E("p", ra, [z(t.$slots, "default")]),
|
|
2732
|
+
t.$slots.action ? (I(), T("div", ia, [z(t.$slots, "action")])) : w("", !0)
|
|
2447
2733
|
]));
|
|
2448
2734
|
}
|
|
2449
|
-
}),
|
|
2735
|
+
}), oa = ["aria-labelledby", "aria-label"], sa = ["id"], ca = { class: "glim-modal-body glim-window-body" }, la = {
|
|
2450
2736
|
key: 0,
|
|
2451
2737
|
class: "glim-modal-foot"
|
|
2452
|
-
},
|
|
2738
|
+
}, ua = {
|
|
2453
2739
|
key: 0,
|
|
2454
2740
|
class: "glim-window-start"
|
|
2455
|
-
},
|
|
2741
|
+
}, da = /* @__PURE__ */ A({
|
|
2456
2742
|
inheritAttrs: !1,
|
|
2457
2743
|
__name: "Window",
|
|
2458
2744
|
props: {
|
|
@@ -2464,7 +2750,7 @@ var an = {
|
|
|
2464
2750
|
},
|
|
2465
2751
|
emits: ["close"],
|
|
2466
2752
|
setup(e, { expose: t, emit: n }) {
|
|
2467
|
-
let r = e, i = n, a =
|
|
2753
|
+
let r = e, i = n, a = de(), o = V(null), s = ue(), c = qe(), l = S(() => r.start !== void 0 || !!a.start), u = S(() => en(r.actions, l.value, {
|
|
2468
2754
|
cancel: {
|
|
2469
2755
|
label: r.text.cancel,
|
|
2470
2756
|
labelKey: "common.cancel",
|
|
@@ -2479,25 +2765,25 @@ var an = {
|
|
|
2479
2765
|
}
|
|
2480
2766
|
})), d;
|
|
2481
2767
|
F(() => {
|
|
2482
|
-
d =
|
|
2483
|
-
}),
|
|
2484
|
-
d?.(),
|
|
2768
|
+
d = It(() => o.value, () => i("close")), o.value && $t(o.value)?.focus();
|
|
2769
|
+
}), ae(() => {
|
|
2770
|
+
d?.(), bt(c);
|
|
2485
2771
|
}), t({ card: o });
|
|
2486
2772
|
function f(e) {
|
|
2487
2773
|
e.onClick?.() !== !1 && i("close");
|
|
2488
2774
|
}
|
|
2489
2775
|
function p() {
|
|
2490
|
-
|
|
2776
|
+
tt() || i("close");
|
|
2491
2777
|
}
|
|
2492
|
-
return (t, n) => (
|
|
2778
|
+
return (t, n) => (I(), C(x, { to: "body" }, [E("div", {
|
|
2493
2779
|
class: "glim-modal-backdrop",
|
|
2494
|
-
onMousedown:
|
|
2780
|
+
onMousedown: J(p, ["self"])
|
|
2495
2781
|
}, [E("div", M(t.$attrs, {
|
|
2496
2782
|
ref_key: "card",
|
|
2497
2783
|
ref: o,
|
|
2498
2784
|
role: "dialog",
|
|
2499
2785
|
"aria-modal": "true",
|
|
2500
|
-
"aria-labelledby": t.$slots.title ? void 0 :
|
|
2786
|
+
"aria-labelledby": t.$slots.title ? void 0 : U(s),
|
|
2501
2787
|
"aria-label": t.$slots.title ? e.title : void 0,
|
|
2502
2788
|
class: [
|
|
2503
2789
|
"glim-modal-card",
|
|
@@ -2506,19 +2792,19 @@ var an = {
|
|
|
2506
2792
|
]
|
|
2507
2793
|
}), [
|
|
2508
2794
|
E("h2", {
|
|
2509
|
-
id:
|
|
2795
|
+
id: U(s),
|
|
2510
2796
|
class: "glim-window-title"
|
|
2511
|
-
}, [k(
|
|
2797
|
+
}, [k(rn, {
|
|
2512
2798
|
tone: "heading",
|
|
2513
2799
|
size: "heading",
|
|
2514
2800
|
wrap: "",
|
|
2515
2801
|
"inset-start": 5
|
|
2516
2802
|
}, {
|
|
2517
|
-
default:
|
|
2803
|
+
default: K(() => [z(t.$slots, "title", {}, () => [O(H(e.title), 1)])]),
|
|
2518
2804
|
_: 3
|
|
2519
|
-
})], 8,
|
|
2520
|
-
E("div",
|
|
2521
|
-
u.value.length ? (
|
|
2805
|
+
})], 8, sa),
|
|
2806
|
+
E("div", ca, [z(t.$slots, "default")]),
|
|
2807
|
+
u.value.length ? (I(), T("div", la, [l.value ? (I(), T("span", ua, [z(t.$slots, "start", {}, () => [O(H(e.start), 1)])])) : w("", !0), (I(!0), T(b, null, R(u.value, (e, t) => (I(), C(X, M({ ref_for: !0 }, e.attrs, {
|
|
2522
2808
|
key: t,
|
|
2523
2809
|
label: e.label,
|
|
2524
2810
|
"label-key": e.labelKey,
|
|
@@ -2534,14 +2820,14 @@ var an = {
|
|
|
2534
2820
|
"disabled",
|
|
2535
2821
|
"onClick"
|
|
2536
2822
|
]))), 128))])) : w("", !0)
|
|
2537
|
-
], 16,
|
|
2823
|
+
], 16, oa)], 32)]));
|
|
2538
2824
|
}
|
|
2539
2825
|
});
|
|
2540
2826
|
// src/confirm.ts
|
|
2541
|
-
function
|
|
2542
|
-
let t =
|
|
2827
|
+
function fa(e) {
|
|
2828
|
+
let t = V(null), n = V(null), r = null, i = null;
|
|
2543
2829
|
function a(e, n) {
|
|
2544
|
-
return i =
|
|
2830
|
+
return i = qe(), new Promise((i) => {
|
|
2545
2831
|
r = i, t.value = {
|
|
2546
2832
|
message: e,
|
|
2547
2833
|
...n
|
|
@@ -2549,17 +2835,17 @@ function Gi(e) {
|
|
|
2549
2835
|
});
|
|
2550
2836
|
}
|
|
2551
2837
|
function o(e) {
|
|
2552
|
-
r?.(e), r = null, t.value = null,
|
|
2838
|
+
r?.(e), r = null, t.value = null, bt(i), i = null;
|
|
2553
2839
|
}
|
|
2554
2840
|
let s = () => o(!1);
|
|
2555
|
-
return
|
|
2556
|
-
e && r(
|
|
2841
|
+
return G(t, (e, t, r) => {
|
|
2842
|
+
e && r(Kt(() => n.value, s));
|
|
2557
2843
|
}), {
|
|
2558
2844
|
confirm: a,
|
|
2559
2845
|
dismiss: s,
|
|
2560
2846
|
ConfirmHost: A(() => () => {
|
|
2561
2847
|
let r = t.value;
|
|
2562
|
-
return r ? te(x, { to: "body" }, [te(
|
|
2848
|
+
return r ? te(x, { to: "body" }, [te(Pn, {
|
|
2563
2849
|
ref: (e) => n.value = e?.card ?? null,
|
|
2564
2850
|
title: e.title,
|
|
2565
2851
|
message: r.message,
|
|
@@ -2573,4 +2859,4 @@ function Gi(e) {
|
|
|
2573
2859
|
})
|
|
2574
2860
|
};
|
|
2575
2861
|
}
|
|
2576
|
-
export {
|
|
2862
|
+
export { rn as Badge, on as BrandMark, X as Button, vn as Card, Sn as Checkbox, Dn as ColorPicker, Pn as ConfirmDialog, Yn as ContextMenu, Qn as CopyField, nr as EmptyState, or as FieldRow, sr as FieldRowGroup, Ce as GLIMSTONE_VERSION, ur as GlyphField, dr as GlyphTile, pr as IconButton, g as IconCancel, d as IconCheck, m as IconClose, c as IconCopy, r as IconExpand, f as IconEye, h as IconEyeOff, i as IconFolderOpen, l as IconPencil, tn as IconTipButton, _ as IconWindowMaximise, a as IconWindowMinimise, o as IconWindowRestore, Cr as InfoAboutCard, Z as InfoBubble, Er as InfoHelpCard, Ir as InfoTile, Fr as InfoVersionCard, In as Kbd, Vr as ListRow, p as MarkSvg, Wr as MenuBar, Kr as Meter, Yr as NumberField, Zr as PasswordField, $r as PathField, rr as Pill, ti as ProgressBar, Q as ReadmeButton, ni as RowMark, ci as Selector, pi as SidebarRow, Di as SignInCard, $ as SignInField, ji as SubCard, Ii as Table, Ri as TextArea, _i as TextField, Gi as ToastViewport, Ji as Toggle, ea as Tree, aa as UnavailableNotice, da as Window, u as glyphFor, Dt as selectorTabId, s as setGlyphResolver, pn as useAccent, fa as useConfirm, y as useFieldName, ln as useHue, sn as useLabelMode, fn as useMotion, cn as useRainbow, dn as useShape, t as useTipBubble };
|