@glimstone/vue 4.2.2 → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SignInCard.vue.d.ts +1 -1
- package/dist/Toggle.vue.d.ts +5 -0
- package/dist/index.js +492 -468
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 I, onUnmounted as ie, onUpdated as ae, openBlock as L, provide as oe, ref as R, renderList as z, renderSlot as B, resolveDynamicComponent as V, shallowReactive as se, shallowRef as H, toDisplayString as U, unref as W, useAttrs as ce, useId as le, useModel as G, useSlots as ue, vModelDynamic as de, vModelText as fe, vShow as pe, watch as K, watchEffect as me, withCtx as q, withDirectives as J, withKeys as he, withModifiers as Y } from "vue";
|
|
5
|
+
import { COLOR_NAMES_DE as ge, COLOR_PICKER_TEXT as _e, COPIED_MS as ve, DEFAULT_MOTION as ye, DEFAULT_SHAPE as be, DESKTOP_QUERY as xe, GLIMSTONE_VERSION as Se, MARKS as Ce, PATH_ROOM_PX as we, TOAST_MARKS as Te, WIDE_QUERY as Ee, applyAccent as De, applyMotion as Oe, applyRainbow as ke, applyShape as Ae, attachNumberSteppers as je, badgeClassName as Me, buttonView as Ne, claimMenu as Pe, closeMenuOutside as Fe, colorPicker as Ie, copyText as Le, countSelector as Re, createSignInFlow as ze, fieldWidthClass as Be, floatColorPicker as Ve, focusFirstField as He, focusFirstMenuRow as Ue, focusMenuRow as We, focusTreeRow as Ge, focusedAsker as Ke, getLabelMode as qe, hueVars as Je, isMenuHead as Ye, keepReadmeFit as Xe, labelModeChanged as Ze, mailHref as Qe, mediaMatches as $e, menuIsOpen as et, menuMove as tt, menuRowView as nt, meterView as rt, narrowerThan as it, nearestColorName as at, normalizeHex as ot, offersMail as st, openInBrowser as ct, pillClassName as lt, placeMenu as ut, placeSubmenu as dt, pressRowControl as ft, progressView as pt, rainbowState as mt, readmePartClass as ht, readmeSoon as gt, readmeUnitClass as _t, resetBlocked as vt, returnFocus as yt, roveSelector as bt, rovedIndex as xt, runUpdateCheck as St, segmentView as Ct, selectorAxis as wt, selectorFlex as Tt, selectorTabId as Et, selectorTabId as Dt, selectorView as Ot, setLabelMode as kt, shake 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 X, watchSelectorFit as Zt, watchSelectorRows as Qt, windowFocusTarget as $t, windowFoot as en } from "@glimstone/core";
|
|
6
6
|
// src/IconTipButton.vue
|
|
7
7
|
var tn = /* @__PURE__ */ A({
|
|
8
8
|
inheritAttrs: !1,
|
|
@@ -18,24 +18,24 @@ var tn = /* @__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) => (L(), T(b, null, [k(W(n), {
|
|
22
22
|
on: r.disabled,
|
|
23
|
-
show:
|
|
24
|
-
hide:
|
|
23
|
+
show: W(a).show,
|
|
24
|
+
hide: W(a).hide
|
|
25
25
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
ref: (e) =>
|
|
26
|
+
default: q(() => [(L(), C(V(r.href && !r.disabled ? "a" : "button"), M(t.$attrs, {
|
|
27
|
+
ref: (e) => W(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": W(a).describedBy.value,
|
|
33
|
+
onMouseenter: W(a).show,
|
|
34
|
+
onMouseleave: W(a).hide,
|
|
35
|
+
onFocus: W(a).showOnFocus,
|
|
36
|
+
onBlur: W(a).hide
|
|
37
37
|
}), {
|
|
38
|
-
default:
|
|
38
|
+
default: q(() => [B(t.$slots, "default")]),
|
|
39
39
|
_: 3
|
|
40
40
|
}, 16, [
|
|
41
41
|
"href",
|
|
@@ -53,7 +53,7 @@ var tn = /* @__PURE__ */ A({
|
|
|
53
53
|
"on",
|
|
54
54
|
"show",
|
|
55
55
|
"hide"
|
|
56
|
-
]), k(e, { state:
|
|
56
|
+
]), k(e, { state: W(a) }, null, 8, ["state"])], 64));
|
|
57
57
|
}
|
|
58
58
|
}), nn = ["disabled"], rn = /* @__PURE__ */ A({
|
|
59
59
|
__name: "Badge",
|
|
@@ -82,7 +82,7 @@ var tn = /* @__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
|
+
Me({
|
|
86
86
|
tone: t.tone,
|
|
87
87
|
size: t.size,
|
|
88
88
|
shape: t.shape,
|
|
@@ -92,42 +92,42 @@ var tn = /* @__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 ? Je(t.hueIndex) : void 0);
|
|
96
|
+
return (t, n) => e.as === "button" && e.tip !== void 0 ? (L(), 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: q(() => [B(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" ? (L(), 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
|
+
}, [B(t.$slots, "default")], 14, nn)) : e.as === "a" ? (L(), T("a", {
|
|
117
117
|
key: 2,
|
|
118
118
|
class: N(r.value),
|
|
119
119
|
style: P(i.value)
|
|
120
|
-
}, [
|
|
120
|
+
}, [B(t.$slots, "default")], 6)) : (L(), T("span", {
|
|
121
121
|
key: 3,
|
|
122
122
|
class: N(r.value),
|
|
123
123
|
style: P(i.value)
|
|
124
|
-
}, [
|
|
124
|
+
}, [B(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) => (L(), T("span", {
|
|
131
131
|
class: "glim-brand-svg",
|
|
132
132
|
"aria-hidden": "true",
|
|
133
133
|
innerHTML: e.svg
|
|
@@ -136,53 +136,53 @@ var tn = /* @__PURE__ */ A({
|
|
|
136
136
|
});
|
|
137
137
|
// src/engines.ts
|
|
138
138
|
function sn(e) {
|
|
139
|
-
let t =
|
|
140
|
-
return
|
|
139
|
+
let t = H(qe(e));
|
|
140
|
+
return I(Lt(() => t.value = qe(e))), S({
|
|
141
141
|
get: () => t.value,
|
|
142
142
|
set: (t) => {
|
|
143
|
-
|
|
143
|
+
kt(e, t), Ze();
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
function cn() {
|
|
148
|
-
let e =
|
|
149
|
-
return
|
|
148
|
+
let e = H(mt());
|
|
149
|
+
return I(zt(() => e.value = mt())), S({
|
|
150
150
|
get: () => e.value,
|
|
151
|
-
set: (e) =>
|
|
151
|
+
set: (e) => ke(e)
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
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 : Je(t);
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
function un(e, t) {
|
|
161
|
-
let n =
|
|
161
|
+
let n = H(t()), r = new MutationObserver(() => n.value = t());
|
|
162
162
|
return r.observe(document.documentElement, {
|
|
163
163
|
attributes: !0,
|
|
164
164
|
attributeFilter: [e]
|
|
165
|
-
}),
|
|
165
|
+
}), I(() => r.disconnect()), n;
|
|
166
166
|
}
|
|
167
167
|
function dn() {
|
|
168
|
-
let e = un("data-shape", () => document.documentElement.getAttribute("data-shape") ??
|
|
168
|
+
let e = un("data-shape", () => document.documentElement.getAttribute("data-shape") ?? be);
|
|
169
169
|
return S({
|
|
170
170
|
get: () => e.value,
|
|
171
|
-
set:
|
|
171
|
+
set: Ae
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
function fn() {
|
|
175
|
-
let e = un("data-motion", () => document.documentElement.getAttribute("data-motion") ??
|
|
175
|
+
let e = un("data-motion", () => document.documentElement.getAttribute("data-motion") ?? ye);
|
|
176
176
|
return S({
|
|
177
177
|
get: () => e.value,
|
|
178
|
-
set:
|
|
178
|
+
set: Oe
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
function pn() {
|
|
182
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) => De(e || void 0)
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
// src/Button.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -192,7 +192,7 @@ var mn = {
|
|
|
192
192
|
}, hn = {
|
|
193
193
|
key: 0,
|
|
194
194
|
class: "glim-spinner"
|
|
195
|
-
},
|
|
195
|
+
}, Z = /* @__PURE__ */ A({
|
|
196
196
|
inheritAttrs: !1,
|
|
197
197
|
__name: "Button",
|
|
198
198
|
props: {
|
|
@@ -223,13 +223,13 @@ var mn = {
|
|
|
223
223
|
size: {}
|
|
224
224
|
},
|
|
225
225
|
setup(r, { expose: i }) {
|
|
226
|
-
let a = r, o = sn("buttons"), s =
|
|
227
|
-
|
|
226
|
+
let a = r, o = sn("buttons"), s = H(!1);
|
|
227
|
+
me((e) => {
|
|
228
228
|
if (a.compactBelow === void 0) return void (s.value = !1);
|
|
229
|
-
let t =
|
|
229
|
+
let t = it(a.compactBelow), n = () => s.value = $e(t);
|
|
230
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(() => Ne({
|
|
233
233
|
mode: o.value,
|
|
234
234
|
label: a.label,
|
|
235
235
|
hasGlyph: !!c.value || a.busy,
|
|
@@ -242,7 +242,7 @@ var mn = {
|
|
|
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 = H(null);
|
|
246
246
|
function h(e) {
|
|
247
247
|
p.value = e, f.trigger.value = p.value;
|
|
248
248
|
}
|
|
@@ -252,30 +252,30 @@ var mn = {
|
|
|
252
252
|
function _(e) {
|
|
253
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) => (L(), T(b, null, [k(W(n), {
|
|
256
256
|
on: r.disabled && !!l.value.tip,
|
|
257
|
-
show:
|
|
258
|
-
hide:
|
|
257
|
+
show: W(f).show,
|
|
258
|
+
hide: W(f).hide
|
|
259
259
|
}, {
|
|
260
|
-
default:
|
|
260
|
+
default: q(() => [(L(), C(V(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": W(f).describedBy.value,
|
|
267
267
|
style: l.value.style,
|
|
268
268
|
class: l.value.className,
|
|
269
269
|
onMouseenter: g,
|
|
270
|
-
onMouseleave:
|
|
270
|
+
onMouseleave: W(f).hide,
|
|
271
271
|
onFocus: _,
|
|
272
|
-
onBlur:
|
|
272
|
+
onBlur: W(f).hide
|
|
273
273
|
}), {
|
|
274
|
-
default:
|
|
275
|
-
|
|
276
|
-
l.value.showGlyph ? (
|
|
277
|
-
E("span", { class: N(l.value.labelClass) },
|
|
278
|
-
|
|
274
|
+
default: q(() => [
|
|
275
|
+
B(t.$slots, "before"),
|
|
276
|
+
l.value.showGlyph ? (L(), T("span", mn, [r.busy ? (L(), T("span", hn)) : (L(), C(V(c.value), { key: 1 }))])) : w("", !0),
|
|
277
|
+
E("span", { class: N(l.value.labelClass) }, U(r.label), 3),
|
|
278
|
+
B(t.$slots, "after")
|
|
279
279
|
]),
|
|
280
280
|
_: 3
|
|
281
281
|
}, 16, [
|
|
@@ -294,9 +294,9 @@ var mn = {
|
|
|
294
294
|
"on",
|
|
295
295
|
"show",
|
|
296
296
|
"hide"
|
|
297
|
-
]), k(e, { state:
|
|
297
|
+
]), k(e, { state: W(f) }, null, 8, ["state"])], 64));
|
|
298
298
|
}
|
|
299
|
-
}), gn = ["aria-label", "aria-describedby"],
|
|
299
|
+
}), gn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ A({
|
|
300
300
|
__name: "InfoBubble",
|
|
301
301
|
props: {
|
|
302
302
|
tip: {},
|
|
@@ -307,17 +307,17 @@ var mn = {
|
|
|
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) => (L(), T(b, null, [E("span", {
|
|
311
|
+
ref: (e) => W(i).trigger.value = e,
|
|
312
312
|
"aria-label": n.tip,
|
|
313
|
-
"aria-describedby":
|
|
313
|
+
"aria-describedby": W(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) => W(i).show && W(i).show(...e),
|
|
317
|
+
onMouseleave: r[1] ||= (...e) => W(i).hide && W(i).hide(...e),
|
|
318
|
+
onFocus: r[2] ||= (...e) => W(i).showOnFocus && W(i).showOnFocus(...e),
|
|
319
|
+
onBlur: r[3] ||= (...e) => W(i).hide && W(i).hide(...e),
|
|
320
|
+
onClick: r[4] ||= Y(() => {}, ["prevent"])
|
|
321
321
|
}, [...r[5] ||= [E("svg", {
|
|
322
322
|
viewBox: "0 0 16 16",
|
|
323
323
|
width: "15",
|
|
@@ -344,7 +344,7 @@ var mn = {
|
|
|
344
344
|
"stroke-width": "1.3",
|
|
345
345
|
"stroke-linecap": "round"
|
|
346
346
|
})
|
|
347
|
-
], -1)]], 42, gn), k(e, { state:
|
|
347
|
+
], -1)]], 42, gn), k(e, { state: W(i) }, null, 8, ["state"])], 64));
|
|
348
348
|
}
|
|
349
349
|
}), _n = {
|
|
350
350
|
key: 0,
|
|
@@ -358,8 +358,8 @@ var mn = {
|
|
|
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 : Je(t.hueIndex));
|
|
362
|
+
return (t, r) => (L(), T("div", {
|
|
363
363
|
class: N([
|
|
364
364
|
"glim-panel",
|
|
365
365
|
"glim-notch-card",
|
|
@@ -369,19 +369,19 @@ var mn = {
|
|
|
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 ? (L(), 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: q(() => [B(t.$slots, "title", {}, () => [O(U(e.title), 1)]), e.hint ? (L(), C(Q, {
|
|
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), B(t.$slots, "default")], 6));
|
|
385
385
|
}
|
|
386
386
|
}), yn = [
|
|
387
387
|
"aria-checked",
|
|
@@ -415,8 +415,8 @@ var mn = {
|
|
|
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 = G(e, "modelValue");
|
|
419
|
+
return (t, i) => (L(), T("button", {
|
|
420
420
|
type: "button",
|
|
421
421
|
role: "checkbox",
|
|
422
422
|
"aria-checked": r.value,
|
|
@@ -424,7 +424,7 @@ var mn = {
|
|
|
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", bn, [k(
|
|
427
|
+
}, [E("span", bn, [k(W(d))]), n.value ? w("", !0) : (L(), T("span", xn, U(e.label), 1))], 10, yn));
|
|
428
428
|
}
|
|
429
429
|
}), Cn = { class: "glim-picker-foot" }, wn = {
|
|
430
430
|
key: 0,
|
|
@@ -435,7 +435,7 @@ var mn = {
|
|
|
435
435
|
anchor: { default: null },
|
|
436
436
|
names: {
|
|
437
437
|
type: [Array, Boolean],
|
|
438
|
-
default: () =>
|
|
438
|
+
default: () => ge
|
|
439
439
|
},
|
|
440
440
|
text: {}
|
|
441
441
|
}, {
|
|
@@ -448,21 +448,21 @@ var mn = {
|
|
|
448
448
|
"close"
|
|
449
449
|
], ["update:modelValue"]),
|
|
450
450
|
setup(e, { emit: t }) {
|
|
451
|
-
let n = e, r =
|
|
452
|
-
...
|
|
451
|
+
let n = e, r = G(e, "modelValue"), i = t, a = {
|
|
452
|
+
..._e,
|
|
453
453
|
...n.text
|
|
454
|
-
}, o =
|
|
454
|
+
}, o = H(null), s = H(null), c = R(ot(r.value) ?? "#000000"), l = R(c.value), u = S(() => n.names === !1 ? null : at(c.value, n.names)), f = Ie(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 = Ve(o.value, n.anchor, () => i("close")), f.focus());
|
|
459
|
+
}), re(() => p?.()), K(r, (e) => {
|
|
460
|
+
let t = ot(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 = ot(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 mn = {
|
|
|
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) => (L(), C(x, {
|
|
475
475
|
to: "body",
|
|
476
476
|
disabled: !e.anchor
|
|
477
477
|
}, [E("div", {
|
|
@@ -491,7 +491,7 @@ var mn = {
|
|
|
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) : (L(), T("span", wn, U(u.value), 1)),
|
|
495
495
|
E("input", {
|
|
496
496
|
class: "glim-picker-hex",
|
|
497
497
|
value: l.value,
|
|
@@ -501,10 +501,10 @@ var mn = {
|
|
|
501
501
|
onInput: m
|
|
502
502
|
}, null, 40, Tn)
|
|
503
503
|
]),
|
|
504
|
-
E("div", En, [k(
|
|
504
|
+
E("div", En, [k(Z, {
|
|
505
505
|
label: a.apply,
|
|
506
506
|
"label-key": "apply",
|
|
507
|
-
glyph:
|
|
507
|
+
glyph: W(d),
|
|
508
508
|
tone: "accent",
|
|
509
509
|
onClick: h
|
|
510
510
|
}, null, 8, ["label", "glyph"])])
|
|
@@ -532,10 +532,10 @@ var mn = {
|
|
|
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 = H(null), a = H(null);
|
|
536
|
+
return F(() => a.value?.el?.focus()), t({ card: i }), (t, n) => (L(), T("div", {
|
|
537
537
|
class: "glim-modal-backdrop",
|
|
538
|
-
onClick: n[3] ||=
|
|
538
|
+
onClick: n[3] ||= Y((e) => r("cancel"), ["self"])
|
|
539
539
|
}, [E("div", {
|
|
540
540
|
ref_key: "card",
|
|
541
541
|
ref: i,
|
|
@@ -550,25 +550,25 @@ var mn = {
|
|
|
550
550
|
size: "heading",
|
|
551
551
|
wrap: ""
|
|
552
552
|
}, {
|
|
553
|
-
default:
|
|
553
|
+
default: q(() => [O(U(e.title), 1)]),
|
|
554
554
|
_: 1
|
|
555
|
-
})]), e.closeLabel === void 0 ? w("", !0) : (
|
|
555
|
+
})]), e.closeLabel === void 0 ? w("", !0) : (L(), C(Z, {
|
|
556
556
|
key: 0,
|
|
557
557
|
label: e.closeLabel,
|
|
558
558
|
"label-key": "common.close",
|
|
559
|
-
glyph:
|
|
559
|
+
glyph: W(m),
|
|
560
560
|
class: "glim-modal-close",
|
|
561
561
|
onClick: n[0] ||= (e) => r("cancel")
|
|
562
562
|
}, null, 8, ["label", "glyph"]))]),
|
|
563
|
-
E("div", An, [E("p", jn,
|
|
564
|
-
E("div", Nn, [k(
|
|
563
|
+
E("div", An, [E("p", jn, U(e.message), 1), t.$slots.extra ? (L(), T("div", Mn, [B(t.$slots, "extra")])) : w("", !0)]),
|
|
564
|
+
E("div", Nn, [k(Z, {
|
|
565
565
|
ref_key: "cancel",
|
|
566
566
|
ref: a,
|
|
567
567
|
label: e.cancelLabel,
|
|
568
568
|
"label-key": "common.cancel",
|
|
569
|
-
glyph:
|
|
569
|
+
glyph: W(g),
|
|
570
570
|
onClick: n[1] ||= (e) => r("cancel")
|
|
571
|
-
}, null, 8, ["label", "glyph"]), k(
|
|
571
|
+
}, null, 8, ["label", "glyph"]), k(Z, {
|
|
572
572
|
label: e.confirmLabel,
|
|
573
573
|
"label-key": e.confirmLabelKey ?? null,
|
|
574
574
|
glyph: e.confirmGlyph,
|
|
@@ -583,7 +583,7 @@ var mn = {
|
|
|
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) => (L(), T("kbd", Fn, [B(e.$slots, "default")]));
|
|
587
587
|
}
|
|
588
588
|
}), Ln = {
|
|
589
589
|
key: 0,
|
|
@@ -628,15 +628,15 @@ var mn = {
|
|
|
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" } : Ye(e) ? {
|
|
632
632
|
kind: "head",
|
|
633
633
|
head: e
|
|
634
634
|
} : {
|
|
635
635
|
kind: "item",
|
|
636
636
|
item: e,
|
|
637
|
-
view:
|
|
637
|
+
view: nt(e)
|
|
638
638
|
}));
|
|
639
|
-
return (t, n) => (
|
|
639
|
+
return (t, n) => (L(!0), T(b, null, z(a.value, (t, n) => (L(), T(b, { key: n }, [t.kind === "sep" ? (L(), T("div", Ln)) : t.kind === "head" ? (L(), T("div", Rn, [E("span", null, U(t.head.head), 1), t.head.edit ? (L(), C(tn, {
|
|
640
640
|
key: 0,
|
|
641
641
|
tip: t.head.edit.tip,
|
|
642
642
|
role: "menuitem",
|
|
@@ -645,13 +645,13 @@ var mn = {
|
|
|
645
645
|
"data-row": n,
|
|
646
646
|
onClick: (e) => i("pick", n)
|
|
647
647
|
}, {
|
|
648
|
-
default:
|
|
648
|
+
default: q(() => [(L(), C(V(t.head.edit.glyph ?? W(l))))]),
|
|
649
649
|
_: 2
|
|
650
650
|
}, 1032, [
|
|
651
651
|
"tip",
|
|
652
652
|
"data-row",
|
|
653
653
|
"onClick"
|
|
654
|
-
])) : w("", !0)])) : (
|
|
654
|
+
])) : w("", !0)])) : (L(), T("button", {
|
|
655
655
|
key: 2,
|
|
656
656
|
type: "button",
|
|
657
657
|
role: t.view.role,
|
|
@@ -664,20 +664,20 @@ var mn = {
|
|
|
664
664
|
"data-row": n,
|
|
665
665
|
onClick: (e) => i("pick", n)
|
|
666
666
|
}, [
|
|
667
|
-
t.view.lead === "box" ? (
|
|
667
|
+
t.view.lead === "box" ? (L(), T("span", Bn, [k(W(d))])) : t.view.lead === "dot" ? (L(), 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", Hn,
|
|
674
|
-
t.view.end === "submenu" ? (
|
|
672
|
+
}, null, 4)) : (L(), T("span", Vn, [t.view.lead === "glyph" ? (L(), C(V(t.item.glyph), { key: 0 })) : w("", !0)])),
|
|
673
|
+
E("span", Hn, U(t.item.label), 1),
|
|
674
|
+
t.view.end === "submenu" ? (L(), T("span", Un, [k(W(r))])) : t.view.end === "tick" ? (L(), T("span", Wn, [k(W(d))])) : t.view.end === "shortcut" ? (L(), C(In, {
|
|
675
675
|
key: 5,
|
|
676
676
|
class: "glim-menu-end"
|
|
677
677
|
}, {
|
|
678
|
-
default:
|
|
678
|
+
default: q(() => [O(U(t.item.shortcut), 1)]),
|
|
679
679
|
_: 2
|
|
680
|
-
}, 1024)) : t.view.end === "count" ? (
|
|
680
|
+
}, 1024)) : t.view.end === "count" ? (L(), T("span", Gn, U(t.item.count), 1)) : w("", !0)
|
|
681
681
|
], 10, zn))], 64))), 128));
|
|
682
682
|
}
|
|
683
683
|
}), qn = ["id", "aria-label"], Jn = ["id", "aria-label"], Yn = /* @__PURE__ */ A({
|
|
@@ -696,68 +696,68 @@ var mn = {
|
|
|
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 = H(null), a = H(null), o = Ke(), s = R({
|
|
700
700
|
left: n.x,
|
|
701
701
|
top: n.y
|
|
702
|
-
}), c =
|
|
702
|
+
}), c = H(null), l = R(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 !== "-" && !
|
|
704
|
+
return e && e !== "-" && !Ye(e) && e.sub ? e : null;
|
|
705
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 && yt(n.opener ?? o);
|
|
711
711
|
}
|
|
712
712
|
function h() {
|
|
713
713
|
let e = i.value;
|
|
714
|
-
e && (s.value =
|
|
714
|
+
e && (s.value = ut(n.x, n.y, {
|
|
715
715
|
width: e.offsetWidth,
|
|
716
716
|
height: e.offsetHeight
|
|
717
717
|
}, p(), n.above));
|
|
718
718
|
}
|
|
719
|
-
|
|
719
|
+
K(() => [
|
|
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 = Pe(m), _ = Fe(() => [
|
|
727
727
|
i.value,
|
|
728
728
|
a.value,
|
|
729
729
|
n.opener
|
|
730
|
-
], () => m(!1)), i.value &&
|
|
731
|
-
}),
|
|
730
|
+
], () => m(!1)), i.value && Ue(i.value);
|
|
731
|
+
}), ie(() => {
|
|
732
732
|
g?.(), _?.();
|
|
733
|
-
}),
|
|
733
|
+
}), K(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 = dt(t.getBoundingClientRect(), {
|
|
739
739
|
width: n.offsetWidth,
|
|
740
740
|
height: n.offsetHeight
|
|
741
|
-
}, p(), r), e.focus &&
|
|
741
|
+
}, p(), r), e.focus && Ue(n);
|
|
742
742
|
}, { flush: "post" });
|
|
743
743
|
function v(e, t) {
|
|
744
744
|
let n = e[t];
|
|
745
|
-
n !== "-" && (
|
|
745
|
+
n !== "-" && (Ye(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
|
|
746
746
|
at: t,
|
|
747
747
|
focus: !0
|
|
748
|
-
} : (
|
|
748
|
+
} : (nt(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 = tt(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 We(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 !== "-" && !Ye(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 mn = {
|
|
|
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 !== "-" && !Ye(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) => (L(), 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 mn = {
|
|
|
784
784
|
}),
|
|
785
785
|
onKeydown: n[1] ||= (e) => y(e, !1),
|
|
786
786
|
onMouseover: ee,
|
|
787
|
-
onContextmenu: n[2] ||=
|
|
787
|
+
onContextmenu: n[2] ||= Y(() => {}, ["prevent"])
|
|
788
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, qn), f.value ? (
|
|
792
|
+
}, null, 8, ["entries", "open-at"])], 44, qn), f.value ? (L(), T("div", {
|
|
793
793
|
key: 0,
|
|
794
794
|
id: d.value?.subId,
|
|
795
795
|
ref_key: "subMenu",
|
|
@@ -802,7 +802,7 @@ var mn = {
|
|
|
802
802
|
top: `${l.value?.top ?? 0}px`
|
|
803
803
|
}),
|
|
804
804
|
onKeydown: n[4] ||= (e) => y(e, !0),
|
|
805
|
-
onContextmenu: n[5] ||=
|
|
805
|
+
onContextmenu: n[5] ||= Y(() => {}, ["prevent"])
|
|
806
806
|
}, [k(Kn, {
|
|
807
807
|
entries: f.value,
|
|
808
808
|
onPick: n[3] ||= (e) => v(f.value, e)
|
|
@@ -824,26 +824,26 @@ var mn = {
|
|
|
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 = R(!1), o = H(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 Le(n.value);
|
|
831
|
+
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, ve)) : (o.value?.focus(), o.value?.select());
|
|
832
832
|
}
|
|
833
|
-
return (t, n) => (
|
|
833
|
+
return (t, n) => (L(), T("span", { class: N(["glim-copy", W(Be)(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": W(i),
|
|
840
840
|
spellcheck: "false",
|
|
841
841
|
class: "glim-input glim-input--mono"
|
|
842
842
|
}, null, 8, Xn),
|
|
843
|
-
k(
|
|
843
|
+
k(Z, {
|
|
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 ? W(d) : W(c),
|
|
847
847
|
variant: "icon",
|
|
848
848
|
onClick: l
|
|
849
849
|
}, null, 8, [
|
|
@@ -851,7 +851,7 @@ var mn = {
|
|
|
851
851
|
"label-key",
|
|
852
852
|
"glyph"
|
|
853
853
|
]),
|
|
854
|
-
E("span", Zn,
|
|
854
|
+
E("span", Zn, U(a.value ? e.text.copied : ""), 1)
|
|
855
855
|
], 2));
|
|
856
856
|
}
|
|
857
857
|
}), $n = {
|
|
@@ -873,19 +873,19 @@ var mn = {
|
|
|
873
873
|
}
|
|
874
874
|
},
|
|
875
875
|
setup(e) {
|
|
876
|
-
return (t, n) => (
|
|
877
|
-
e.glyph ? (
|
|
878
|
-
E("p", er,
|
|
879
|
-
e.hint ? (
|
|
880
|
-
|
|
876
|
+
return (t, n) => (L(), T("div", { class: N(e.nested ? "glim-empty" : "glim-card glim-empty") }, [
|
|
877
|
+
e.glyph ? (L(), T("span", $n, [(L(), C(V(e.glyph)))])) : w("", !0),
|
|
878
|
+
E("p", er, U(e.title), 1),
|
|
879
|
+
e.hint ? (L(), T("p", tr, U(e.hint), 1)) : w("", !0),
|
|
880
|
+
B(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(() => lt(t.tone));
|
|
888
|
+
return (e, t) => (L(), T("span", { class: N(n.value) }, [B(e.$slots, "default")], 2));
|
|
889
889
|
}
|
|
890
890
|
}), ir = { class: "glim-field-row-name" }, ar = {
|
|
891
891
|
key: 0,
|
|
@@ -901,31 +901,31 @@ var mn = {
|
|
|
901
901
|
},
|
|
902
902
|
setup(e) {
|
|
903
903
|
let t = e;
|
|
904
|
-
|
|
905
|
-
let n = ne(v, !1), r =
|
|
906
|
-
return (t, i) => (
|
|
904
|
+
oe(ee, S(() => t.label));
|
|
905
|
+
let n = ne(v, !1), r = H(null);
|
|
906
|
+
return (t, i) => (L(), 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
910
|
}, [E("span", ir, [E("span", {
|
|
911
911
|
class: "glim-field-row-label",
|
|
912
|
-
onClick: i[0] ||= (e) =>
|
|
913
|
-
}, [
|
|
912
|
+
onClick: i[0] ||= (e) => W(ft)(r.value)
|
|
913
|
+
}, [B(t.$slots, "label", {}, () => [O(U(e.label), 1)])]), e.hint ? (L(), C(Q, {
|
|
914
914
|
key: 0,
|
|
915
915
|
tip: e.hint
|
|
916
|
-
}, null, 8, ["tip"])) : w("", !0)]),
|
|
916
|
+
}, null, 8, ["tip"])) : w("", !0)]), W(n) ? (L(), T("span", ar, [B(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (L(), C(rr, {
|
|
917
917
|
key: 0,
|
|
918
918
|
class: "glim-num",
|
|
919
919
|
tone: e.tone
|
|
920
920
|
}, {
|
|
921
|
-
default:
|
|
921
|
+
default: q(() => [O(U(e.value), 1)]),
|
|
922
922
|
_: 1
|
|
923
|
-
}, 8, ["tone"]))])])) :
|
|
923
|
+
}, 8, ["tone"]))])])) : B(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (L(), C(rr, {
|
|
924
924
|
key: 0,
|
|
925
925
|
class: "glim-num",
|
|
926
926
|
tone: e.tone
|
|
927
927
|
}, {
|
|
928
|
-
default:
|
|
928
|
+
default: q(() => [O(U(e.value), 1)]),
|
|
929
929
|
_: 1
|
|
930
930
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
931
931
|
}
|
|
@@ -933,10 +933,10 @@ var mn = {
|
|
|
933
933
|
__name: "FieldRowGroup",
|
|
934
934
|
props: { columns: {} },
|
|
935
935
|
setup(e) {
|
|
936
|
-
return
|
|
936
|
+
return oe(v, !0), (t, n) => (L(), T("div", {
|
|
937
937
|
class: "glim-field-row-group",
|
|
938
938
|
style: P(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
939
|
-
}, [
|
|
939
|
+
}, [B(t.$slots, "default")], 4));
|
|
940
940
|
}
|
|
941
941
|
}), cr = {
|
|
942
942
|
class: "glim-glyph-field-glyph",
|
|
@@ -955,8 +955,8 @@ var mn = {
|
|
|
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 = G(e, "modelValue"), i = y(() => n.label), a = S(() => Be(n.width)), o = H(null);
|
|
959
|
+
return t({ input: o }), (t, n) => (L(), T("label", {
|
|
960
960
|
class: N([
|
|
961
961
|
"glim-input",
|
|
962
962
|
"glim-glyph-field",
|
|
@@ -966,19 +966,19 @@ var mn = {
|
|
|
966
966
|
]),
|
|
967
967
|
style: P(t.$attrs.style)
|
|
968
968
|
}, [
|
|
969
|
-
E("span", cr, [(
|
|
970
|
-
|
|
969
|
+
E("span", cr, [(L(), C(V(e.glyph)))]),
|
|
970
|
+
J(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": W(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, lr), [[
|
|
981
|
-
|
|
980
|
+
}, { class: "glim-glyph-field-input" }), null, 16, lr), [[fe, r.value]]),
|
|
981
|
+
B(t.$slots, "after")
|
|
982
982
|
], 6));
|
|
983
983
|
}
|
|
984
984
|
}), dr = /* @__PURE__ */ A({
|
|
@@ -990,14 +990,14 @@ var mn = {
|
|
|
990
990
|
active: { type: Boolean }
|
|
991
991
|
},
|
|
992
992
|
setup(e) {
|
|
993
|
-
return (t, n) => (
|
|
993
|
+
return (t, n) => (L(), 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
|
+
}, [(L(), C(V(e.glyph)))], 2));
|
|
1001
1001
|
}
|
|
1002
1002
|
}), fr = {
|
|
1003
1003
|
key: 0,
|
|
@@ -1020,7 +1020,7 @@ var mn = {
|
|
|
1020
1020
|
function t(e) {
|
|
1021
1021
|
Ht(e.currentTarget);
|
|
1022
1022
|
}
|
|
1023
|
-
return (n, r) => e.absent ? (
|
|
1023
|
+
return (n, r) => e.absent ? (L(), T("span", fr)) : (L(), C(tn, {
|
|
1024
1024
|
key: 1,
|
|
1025
1025
|
tip: e.tip,
|
|
1026
1026
|
href: e.href,
|
|
@@ -1030,7 +1030,7 @@ var mn = {
|
|
|
1030
1030
|
onPointerenter: t,
|
|
1031
1031
|
onFocusin: t
|
|
1032
1032
|
}, {
|
|
1033
|
-
default:
|
|
1033
|
+
default: q(() => [(L(), C(V(e.glyph)))]),
|
|
1034
1034
|
_: 1
|
|
1035
1035
|
}, 8, [
|
|
1036
1036
|
"tip",
|
|
@@ -1053,7 +1053,7 @@ var mn = {
|
|
|
1053
1053
|
}, yr = {
|
|
1054
1054
|
key: 1,
|
|
1055
1055
|
class: "glim-readme-btn-hint"
|
|
1056
|
-
},
|
|
1056
|
+
}, $ = /* @__PURE__ */ A({
|
|
1057
1057
|
__name: "ReadmeButton",
|
|
1058
1058
|
props: {
|
|
1059
1059
|
brand: {},
|
|
@@ -1068,10 +1068,10 @@ var mn = {
|
|
|
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(() => gt(n.parts)), a = H(null), o = S(() => n.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (i.value ? n.soonLabel : "")), s;
|
|
1072
|
+
K([a, o], () => {
|
|
1073
|
+
s?.(), s = a.value ? Xe(a.value) : void 0;
|
|
1074
|
+
}, { flush: "post" }), I(() => 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,24 +1081,24 @@ var mn = {
|
|
|
1081
1081
|
type: "button",
|
|
1082
1082
|
onClick: e.onClick
|
|
1083
1083
|
};
|
|
1084
|
-
return (t, n) => (
|
|
1084
|
+
return (t, n) => (L(), T("div", {
|
|
1085
1085
|
ref_key: "root",
|
|
1086
1086
|
ref: a,
|
|
1087
|
-
class: N(
|
|
1087
|
+
class: N(W(_t)(e.brand, e.parts.length, e.note, i.value))
|
|
1088
1088
|
}, [
|
|
1089
|
-
(
|
|
1089
|
+
(L(!0), T(b, null, z(e.parts, (n, r) => (L(), C(V(u(n)), M({ key: r }, { ref_for: !0 }, d(n), {
|
|
1090
1090
|
"aria-label": l(n),
|
|
1091
|
-
class:
|
|
1091
|
+
class: W(ht)(r, i.value)
|
|
1092
1092
|
}), {
|
|
1093
|
-
default:
|
|
1093
|
+
default: q(() => [r === 0 && t.$slots.art ? (L(), T("span", mr, [B(t.$slots, "art")])) : (L(), T(b, { key: 1 }, [r === 0 && t.$slots.mark ? (L(), T("span", {
|
|
1094
1094
|
key: 0,
|
|
1095
1095
|
class: N(`glim-readme-btn-mark ${e.markClass ?? ""}`),
|
|
1096
1096
|
"aria-hidden": "true"
|
|
1097
|
-
}, [
|
|
1097
|
+
}, [B(t.$slots, "mark")], 2)) : w("", !0), E("span", hr, [E("span", gr, U(n.name), 1), c(n) ? (L(), T("span", _r, U(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) : (L(), T("span", vr)),
|
|
1101
|
+
e.hint ? (L(), T("span", yr, [k(Q, { 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({
|
|
@@ -1114,25 +1114,25 @@ var mn = {
|
|
|
1114
1114
|
hueIndex: {}
|
|
1115
1115
|
},
|
|
1116
1116
|
setup(e) {
|
|
1117
|
-
return (t, n) => (
|
|
1117
|
+
return (t, n) => (L(), C(vn, {
|
|
1118
1118
|
title: e.text.title,
|
|
1119
1119
|
"hue-index": e.hueIndex
|
|
1120
1120
|
}, {
|
|
1121
|
-
default:
|
|
1122
|
-
E("p", br,
|
|
1123
|
-
E("p", xr,
|
|
1121
|
+
default: q(() => [
|
|
1122
|
+
E("p", br, U(e.text.body), 1),
|
|
1123
|
+
E("p", xr, U(e.text.coffee), 1),
|
|
1124
1124
|
E("div", Sr, [
|
|
1125
|
-
k(
|
|
1125
|
+
k($, {
|
|
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: q(() => [(L(), C(V(e.coffeeArt)))]),
|
|
1133
1133
|
_: 1
|
|
1134
1134
|
}, 8, ["parts"]),
|
|
1135
|
-
e.onPaypal && e.text.paypalButton ? (
|
|
1135
|
+
e.onPaypal && e.text.paypalButton ? (L(), C($, {
|
|
1136
1136
|
key: 0,
|
|
1137
1137
|
brand: "paypal",
|
|
1138
1138
|
parts: [{
|
|
@@ -1142,10 +1142,10 @@ var mn = {
|
|
|
1142
1142
|
"mark-class": "glim-paypal-mark"
|
|
1143
1143
|
}, D({ _: 2 }, [e.paypalGlyph ? {
|
|
1144
1144
|
name: "mark",
|
|
1145
|
-
fn:
|
|
1145
|
+
fn: q(() => [(L(), C(V(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 ? (L(), C($, {
|
|
1149
1149
|
key: 1,
|
|
1150
1150
|
brand: "bitcoin",
|
|
1151
1151
|
parts: [{
|
|
@@ -1155,7 +1155,7 @@ var mn = {
|
|
|
1155
1155
|
"mark-class": "glim-bitcoin-mark"
|
|
1156
1156
|
}, D({ _: 2 }, [e.cryptoGlyph ? {
|
|
1157
1157
|
name: "mark",
|
|
1158
|
-
fn:
|
|
1158
|
+
fn: q(() => [(L(), C(V(e.cryptoGlyph)))]),
|
|
1159
1159
|
key: "0"
|
|
1160
1160
|
} : void 0]), 1032, ["parts"])) : w("", !0)
|
|
1161
1161
|
])
|
|
@@ -1175,18 +1175,18 @@ var mn = {
|
|
|
1175
1175
|
manualGlyph: {},
|
|
1176
1176
|
onBugReport: {},
|
|
1177
1177
|
bugGlyph: {},
|
|
1178
|
-
openUrl: { default:
|
|
1178
|
+
openUrl: { default: ct },
|
|
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(() => st(t.text.report, t.mailAddress));
|
|
1183
|
+
return (t, r) => (L(), 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: q(() => [E("p", wr, U(e.text.report), 1), E("div", Tr, [
|
|
1189
|
+
k($, {
|
|
1190
1190
|
brand: "github",
|
|
1191
1191
|
parts: [{
|
|
1192
1192
|
name: e.text.repoButton,
|
|
@@ -1195,23 +1195,23 @@ var mn = {
|
|
|
1195
1195
|
"mark-class": "glim-github-mark"
|
|
1196
1196
|
}, D({ _: 2 }, [e.repoGlyph ? {
|
|
1197
1197
|
name: "mark",
|
|
1198
|
-
fn:
|
|
1198
|
+
fn: q(() => [(L(), C(V(e.repoGlyph)))]),
|
|
1199
1199
|
key: "0"
|
|
1200
1200
|
} : void 0]), 1032, ["parts"]),
|
|
1201
|
-
n.value ? (
|
|
1201
|
+
n.value ? (L(), C($, {
|
|
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(W(Qe)(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: q(() => [(L(), C(V(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 ? (L(), C($, {
|
|
1215
1215
|
key: 1,
|
|
1216
1216
|
brand: "docs",
|
|
1217
1217
|
parts: [{
|
|
@@ -1222,10 +1222,10 @@ var mn = {
|
|
|
1222
1222
|
"mark-class": "glim-docs-mark"
|
|
1223
1223
|
}, D({ _: 2 }, [e.manualGlyph ? {
|
|
1224
1224
|
name: "mark",
|
|
1225
|
-
fn:
|
|
1225
|
+
fn: q(() => [(L(), C(V(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 ? (L(), C($, {
|
|
1229
1229
|
key: 2,
|
|
1230
1230
|
brand: "github",
|
|
1231
1231
|
parts: [{
|
|
@@ -1235,7 +1235,7 @@ var mn = {
|
|
|
1235
1235
|
}]
|
|
1236
1236
|
}, D({ _: 2 }, [e.bugGlyph ? {
|
|
1237
1237
|
name: "mark",
|
|
1238
|
-
fn:
|
|
1238
|
+
fn: q(() => [(L(), C(V(e.bugGlyph)))]),
|
|
1239
1239
|
key: "0"
|
|
1240
1240
|
} : void 0]), 1032, ["parts"])) : w("", !0)
|
|
1241
1241
|
])]),
|
|
@@ -1265,48 +1265,48 @@ var mn = {
|
|
|
1265
1265
|
rows: {},
|
|
1266
1266
|
updateCheck: {},
|
|
1267
1267
|
onReleaseNotes: {},
|
|
1268
|
-
openUrl: { default:
|
|
1268
|
+
openUrl: { default: ct },
|
|
1269
1269
|
hueIndex: {}
|
|
1270
1270
|
},
|
|
1271
1271
|
setup(e) {
|
|
1272
|
-
let t = e, n =
|
|
1272
|
+
let t = e, n = ue(), r = S(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = H({ kind: "idle" }), a = H(0), o = S(() => t.updateCheck && Yt(i.value, t.updateCheck.text));
|
|
1273
1273
|
function s() {
|
|
1274
|
-
|
|
1274
|
+
St(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) => (L(), 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: q(() => [E("ul", Dr, [(L(!0), T(b, null, z(e.rows, (t) => (L(), T("li", {
|
|
1287
1287
|
key: t.name,
|
|
1288
1288
|
class: "glim-version-row"
|
|
1289
|
-
}, [E("span", Or, [E("span", kr,
|
|
1289
|
+
}, [E("span", Or, [E("span", kr, U(t.name), 1), t.sub ? (L(), T("span", Ar, U(t.sub), 1)) : w("", !0)]), W(X)(t).href ? (L(), T("a", {
|
|
1290
1290
|
key: 0,
|
|
1291
|
-
href:
|
|
1291
|
+
href: W(X)(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
|
-
},
|
|
1297
|
-
r.value ? (
|
|
1295
|
+
onClick: (e) => c(e, W(X)(t).href)
|
|
1296
|
+
}, U(W(X)(t).shown), 9, jr)) : (L(), T("span", Mr, U(W(X)(t).released ? W(X)(t).shown : e.text.unreleased(W(X)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (L(), T("div", Nr, [
|
|
1297
|
+
r.value ? (L(), C(Z, {
|
|
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
|
+
B(t.$slots, "whats-new"),
|
|
1304
|
+
e.updateCheck && o.value ? (L(), T(b, { key: 1 }, [(L(), C(Z, {
|
|
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: W(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 mn = {
|
|
|
1317
1317
|
"stage",
|
|
1318
1318
|
"busy",
|
|
1319
1319
|
"class"
|
|
1320
|
-
])), E("span", Pr,
|
|
1320
|
+
])), E("span", Pr, U(o.value.announced), 1)], 64)) : w("", !0)
|
|
1321
1321
|
])) : w("", !0)]),
|
|
1322
1322
|
_: 3
|
|
1323
1323
|
}, 8, [
|
|
@@ -1336,10 +1336,10 @@ var mn = {
|
|
|
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) => (
|
|
1339
|
+
return (t, r) => (L(), T(b, null, [
|
|
1340
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: q(() => [B(t.$slots, "whats-new")]),
|
|
1343
1343
|
key: "0"
|
|
1344
1344
|
} : void 0]), 1040, ["hue-index"]),
|
|
1345
1345
|
k(Er, M(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
@@ -1364,29 +1364,29 @@ var mn = {
|
|
|
1364
1364
|
mono: { type: Boolean }
|
|
1365
1365
|
},
|
|
1366
1366
|
setup(e) {
|
|
1367
|
-
let t = e, n =
|
|
1367
|
+
let t = e, n = ce(), 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) => (L(), 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: [he(Y(a, ["self"]), ["enter"]), he(Y(a, ["self"]), ["space"])]
|
|
1377
1377
|
}, [
|
|
1378
|
-
t.$slots.tile ? (
|
|
1379
|
-
E("span", { class: N(i.value) }, [E("span", zr,
|
|
1378
|
+
t.$slots.tile ? (L(), T("span", Rr, [B(t.$slots, "tile")])) : w("", !0),
|
|
1379
|
+
E("span", { class: N(i.value) }, [E("span", zr, U(e.name), 1), e.tip ? (L(), 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] ||= Y(() => {}, ["stop"])
|
|
1383
|
+
}, [k(Q, { tip: e.tip }, null, 8, ["tip"])])) : w("", !0)], 2),
|
|
1384
|
+
t.$slots.badges ? (L(), T("span", Br, [B(t.$slots, "badges")])) : w("", !0),
|
|
1385
|
+
t.$slots.actions ? (L(), T("span", {
|
|
1386
1386
|
key: 2,
|
|
1387
1387
|
class: "glim-list-row-actions",
|
|
1388
|
-
onClick: n[1] ||=
|
|
1389
|
-
}, [
|
|
1388
|
+
onClick: n[1] ||= Y(() => {}, ["stop"])
|
|
1389
|
+
}, [B(t.$slots, "actions")])) : w("", !0)
|
|
1390
1390
|
], 42, Lr));
|
|
1391
1391
|
}
|
|
1392
1392
|
}), Hr = ["aria-label"], Ur = [
|
|
@@ -1403,7 +1403,7 @@ var mn = {
|
|
|
1403
1403
|
menus: {}
|
|
1404
1404
|
},
|
|
1405
1405
|
setup(e, { expose: t }) {
|
|
1406
|
-
let n = e, r = [], i =
|
|
1406
|
+
let n = e, r = [], i = H(null), a = H(0);
|
|
1407
1407
|
function o(e) {
|
|
1408
1408
|
let t = r[e];
|
|
1409
1409
|
if (!t) return;
|
|
@@ -1427,11 +1427,11 @@ var mn = {
|
|
|
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) => (L(), T("div", {
|
|
1431
1431
|
role: "menubar",
|
|
1432
1432
|
"aria-label": e.label,
|
|
1433
1433
|
class: "glim-menubar"
|
|
1434
|
-
}, [(
|
|
1434
|
+
}, [(L(!0), T(b, null, z(e.menus, (e, t) => (L(), T("button", {
|
|
1435
1435
|
key: t,
|
|
1436
1436
|
ref_for: !0,
|
|
1437
1437
|
ref: (e) => r[t] = e,
|
|
@@ -1445,7 +1445,7 @@ var mn = {
|
|
|
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
|
+
}, U(e.label), 41, Ur))), 128)), i.value && e.menus[i.value.at] ? (L(), C(Yn, {
|
|
1449
1449
|
key: i.value.at,
|
|
1450
1450
|
x: i.value.x,
|
|
1451
1451
|
y: i.value.y,
|
|
@@ -1487,13 +1487,13 @@ var mn = {
|
|
|
1487
1487
|
valueText: {}
|
|
1488
1488
|
},
|
|
1489
1489
|
setup(n) {
|
|
1490
|
-
let r = n, i = S(() =>
|
|
1490
|
+
let r = n, i = S(() => rt(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) => (L(), T(b, null, [E("span", M(t.$attrs, {
|
|
1496
|
+
ref: (e) => W(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,12 +1502,12 @@ var mn = {
|
|
|
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) => W(o).show && W(o).show(...e),
|
|
1506
|
+
onMouseleave: r[1] ||= (...e) => W(o).hide && W(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, Gr), k(e, { state:
|
|
1510
|
+
}, null, 4)], 16, Gr), k(e, { state: W(o) }, null, 8, ["state"])], 64));
|
|
1511
1511
|
}
|
|
1512
1512
|
}), qr = { class: "glim-num-wrap" }, Jr = ["aria-label"], Yr = /* @__PURE__ */ A({
|
|
1513
1513
|
inheritAttrs: !1,
|
|
@@ -1518,15 +1518,15 @@ var mn = {
|
|
|
1518
1518
|
},
|
|
1519
1519
|
emits: ["update:modelValue"],
|
|
1520
1520
|
setup(e) {
|
|
1521
|
-
let t =
|
|
1521
|
+
let t = G(e, "modelValue"), n = ce(), r = y(() => n["aria-label"]), i = H(null), a;
|
|
1522
1522
|
F(() => {
|
|
1523
|
-
o(t.value), a =
|
|
1523
|
+
o(t.value), a = je(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
|
+
K([
|
|
1530
1530
|
t,
|
|
1531
1531
|
() => n.min,
|
|
1532
1532
|
() => n.max,
|
|
@@ -1540,10 +1540,10 @@ var mn = {
|
|
|
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) => (L(), T("span", qr, [E("input", M(e.$attrs, {
|
|
1544
1544
|
ref_key: "input",
|
|
1545
1545
|
ref: i,
|
|
1546
|
-
"aria-label":
|
|
1546
|
+
"aria-label": W(r),
|
|
1547
1547
|
type: "number",
|
|
1548
1548
|
class: "glim-num-input glim-num-field glim-num",
|
|
1549
1549
|
onInput: s
|
|
@@ -1573,15 +1573,15 @@ var mn = {
|
|
|
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 = G(e, "modelValue"), i = R(!1), a = ce(), o = y(() => a["aria-label"]), s = S(() => Be(n.width)), c = H(null);
|
|
1577
|
+
return t({ input: c }), (t, n) => (L(), 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
|
+
}, [J(E("input", M({
|
|
1585
1585
|
ref_key: "input",
|
|
1586
1586
|
ref: c,
|
|
1587
1587
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -1592,17 +1592,17 @@ var mn = {
|
|
|
1592
1592
|
class: void 0,
|
|
1593
1593
|
style: void 0
|
|
1594
1594
|
}, {
|
|
1595
|
-
"aria-label":
|
|
1595
|
+
"aria-label": W(o),
|
|
1596
1596
|
disabled: e.disabled,
|
|
1597
1597
|
type: i.value ? "text" : "password",
|
|
1598
1598
|
class: "glim-input"
|
|
1599
|
-
}), null, 16, Xr), [[
|
|
1599
|
+
}), null, 16, Xr), [[de, 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: q(() => [(L(), C(V(i.value ? W(h) : W(f))))]),
|
|
1606
1606
|
_: 1
|
|
1607
1607
|
}, 16, ["tip", "disabled"])], 6));
|
|
1608
1608
|
}
|
|
@@ -1627,31 +1627,31 @@ var mn = {
|
|
|
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 = G(e, "modelValue"), o = n, s = y(() => r.label), c = H(null);
|
|
1631
1631
|
t({ input: c });
|
|
1632
|
-
let l =
|
|
1632
|
+
let l = H(null), u = R(!1), d = new ResizeObserver(([e]) => u.value = e.contentRect.width < we);
|
|
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) => (L(), T("span", {
|
|
1639
1639
|
ref_key: "box",
|
|
1640
1640
|
ref: l,
|
|
1641
1641
|
class: N([
|
|
1642
1642
|
"glim-path",
|
|
1643
|
-
|
|
1643
|
+
W(Be)(e.width),
|
|
1644
1644
|
t.$attrs.class
|
|
1645
1645
|
]),
|
|
1646
1646
|
style: P(t.$attrs.style)
|
|
1647
|
-
}, [
|
|
1647
|
+
}, [J(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": W(s)
|
|
1655
1655
|
}, {
|
|
1656
1656
|
...t.$attrs,
|
|
1657
1657
|
class: void 0,
|
|
@@ -1659,11 +1659,11 @@ var mn = {
|
|
|
1659
1659
|
}, {
|
|
1660
1660
|
disabled: e.disabled,
|
|
1661
1661
|
class: "glim-input glim-input--mono"
|
|
1662
|
-
}), null, 16, Qr), [[
|
|
1662
|
+
}), null, 16, Qr), [[fe, a.value]]), k(Z, 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 ?? W(i),
|
|
1667
1667
|
compact: e.compact || u.value,
|
|
1668
1668
|
disabled: e.disabled,
|
|
1669
1669
|
onClick: f
|
|
@@ -1696,11 +1696,11 @@ var mn = {
|
|
|
1696
1696
|
valueText: {}
|
|
1697
1697
|
},
|
|
1698
1698
|
setup(e) {
|
|
1699
|
-
let t = e, n = S(() =>
|
|
1699
|
+
let t = e, n = S(() => pt(t.value, {
|
|
1700
1700
|
paused: t.paused,
|
|
1701
1701
|
failed: t.failed
|
|
1702
1702
|
}));
|
|
1703
|
-
return (t, r) => (
|
|
1703
|
+
return (t, r) => (L(), T("span", {
|
|
1704
1704
|
role: "progressbar",
|
|
1705
1705
|
"aria-label": e.label,
|
|
1706
1706
|
"aria-valuemin": n.value.percent === null ? void 0 : 0,
|
|
@@ -1717,10 +1717,10 @@ var mn = {
|
|
|
1717
1717
|
__name: "RowMark",
|
|
1718
1718
|
props: { on: { type: Boolean } },
|
|
1719
1719
|
setup(e) {
|
|
1720
|
-
return (t, n) => (
|
|
1720
|
+
return (t, n) => (L(), T("span", {
|
|
1721
1721
|
class: N(["glim-rowmark", { "glim-rowmark--on": e.on }]),
|
|
1722
1722
|
"aria-hidden": "true"
|
|
1723
|
-
}, [k(
|
|
1723
|
+
}, [k(W(d))], 2));
|
|
1724
1724
|
}
|
|
1725
1725
|
}), ri = [
|
|
1726
1726
|
"href",
|
|
@@ -1764,7 +1764,7 @@ var mn = {
|
|
|
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(() => Ct({
|
|
1768
1768
|
strip: a.strip,
|
|
1769
1769
|
orientation: a.orientation,
|
|
1770
1770
|
size: a.size,
|
|
@@ -1784,7 +1784,7 @@ var mn = {
|
|
|
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 = le(), 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 mn = {
|
|
|
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) => (L(), T(b, null, [r.orientation === "vertical" ? (L(), 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 mn = {
|
|
|
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) => W(c).show && W(c).show(...e),
|
|
1810
|
+
onMouseleave: i[1] ||= (...e) => W(c).hide && W(c).hide(...e),
|
|
1811
|
+
onFocus: i[2] ||= (...e) => W(c).showOnFocus && W(c).showOnFocus(...e),
|
|
1812
|
+
onBlur: i[3] ||= (...e) => W(c).hide && W(c).hide(...e)
|
|
1813
|
+
}), [s.value.showGlyph && r.item.glyph ? (L(), C(V(r.item.glyph), { key: 0 })) : w("", !0), s.value.labelClass === null ? w("", !0) : (L(), T("span", {
|
|
1814
1814
|
key: 1,
|
|
1815
1815
|
"data-sel-label": "",
|
|
1816
1816
|
class: N(s.value.labelClass)
|
|
1817
|
-
},
|
|
1817
|
+
}, U(r.item.label), 3))], 16, ri)) : (L(), T(b, { key: 1 }, [k(W(n), M({
|
|
1818
1818
|
on: u.value,
|
|
1819
|
-
show:
|
|
1820
|
-
hide:
|
|
1819
|
+
show: W(c).show,
|
|
1820
|
+
hide: W(c).hide
|
|
1821
1821
|
}, u.value ? { style: r.share } : {}), {
|
|
1822
|
-
default:
|
|
1822
|
+
default: q(() => [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 ? W(Dt)(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,25 +1836,25 @@ var mn = {
|
|
|
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) => W(c).show && W(c).show(...e),
|
|
1840
|
+
onMouseleave: i[6] ||= (...e) => W(c).hide && W(c).hide(...e),
|
|
1841
|
+
onFocus: i[7] ||= (...e) => W(c).showOnFocus && W(c).showOnFocus(...e),
|
|
1842
|
+
onBlur: i[8] ||= (...e) => W(c).hide && W(c).hide(...e)
|
|
1843
|
+
}), [s.value.showGlyph && r.item.glyph ? (L(), C(V(r.item.glyph), { key: 0 })) : w("", !0), s.value.labelClass === null ? w("", !0) : (L(), T("span", {
|
|
1844
1844
|
key: 1,
|
|
1845
1845
|
"data-sel-label": "",
|
|
1846
1846
|
class: N(s.value.labelClass)
|
|
1847
|
-
},
|
|
1847
|
+
}, U(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 ? (L(), T("span", {
|
|
1854
1854
|
key: 0,
|
|
1855
|
-
id:
|
|
1855
|
+
id: W(l),
|
|
1856
1856
|
hidden: ""
|
|
1857
|
-
},
|
|
1857
|
+
}, U(s.value.tip), 9, ai)) : w("", !0)], 64)), k(e, { state: W(c) }, null, 8, ["state"])], 64));
|
|
1858
1858
|
}
|
|
1859
1859
|
}), si = [
|
|
1860
1860
|
"role",
|
|
@@ -1906,10 +1906,10 @@ var mn = {
|
|
|
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 = H($e(e));
|
|
1910
|
+
return I(Rt(e, () => t.value = $e(e))), t;
|
|
1911
1911
|
}
|
|
1912
|
-
let o = y(() => n.label), s = S(() => n.inline || n.label === void 0 && o.value !== void 0), c = sn(
|
|
1912
|
+
let o = y(() => n.label), s = S(() => n.inline || n.label === void 0 && o.value !== void 0), c = sn(wt(n.size, n.orientation)), l = a(xe), u = a(Ee), d = S(() => Ot({
|
|
1913
1913
|
mode: c.value,
|
|
1914
1914
|
select: n.select === "many" ? "many" : "one",
|
|
1915
1915
|
activation: n.activation,
|
|
@@ -1928,15 +1928,15 @@ var mn = {
|
|
|
1928
1928
|
hasGlyph: !!e.glyph,
|
|
1929
1929
|
iconOnly: !!e.iconOnly
|
|
1930
1930
|
}))
|
|
1931
|
-
})), f =
|
|
1931
|
+
})), f = H(null), p = H(null), m = R("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
|
+
K([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 ? Re(e) : void 0), _(() => [
|
|
1940
1940
|
d.value.pinWidth,
|
|
1941
1941
|
n.equalWidth,
|
|
1942
1942
|
s.value,
|
|
@@ -1959,14 +1959,14 @@ var mn = {
|
|
|
1959
1959
|
if (!d.value.canSqueeze) m.value = "even";
|
|
1960
1960
|
else return Zt(e, (e) => m.value = e);
|
|
1961
1961
|
});
|
|
1962
|
-
let v = S(() =>
|
|
1962
|
+
let v = S(() => Tt({
|
|
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(() => xt(w.value, n.items.findIndex((e) => x(e.id))));
|
|
1970
1970
|
function D(e) {
|
|
1971
1971
|
r("press", e);
|
|
1972
1972
|
let t = ee.value ? Gt(i.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
@@ -1978,22 +1978,22 @@ var mn = {
|
|
|
1978
1978
|
e.preventDefault(), t.click();
|
|
1979
1979
|
return;
|
|
1980
1980
|
}
|
|
1981
|
-
let r =
|
|
1981
|
+
let r = bt(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) => (L(), T("div", {
|
|
1988
1988
|
ref_key: "track",
|
|
1989
1989
|
ref: f,
|
|
1990
1990
|
role: d.value.role,
|
|
1991
|
-
"aria-label":
|
|
1991
|
+
"aria-label": W(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
|
+
}, [(L(!0), T(b, null, z(e.items, (t, n) => (L(), C(oi, {
|
|
1997
1997
|
key: t.id,
|
|
1998
1998
|
item: t,
|
|
1999
1999
|
index: n,
|
|
@@ -2051,25 +2051,25 @@ var mn = {
|
|
|
2051
2051
|
function a(e) {
|
|
2052
2052
|
i.trigger.value = e;
|
|
2053
2053
|
}
|
|
2054
|
-
return (t, r) => (
|
|
2054
|
+
return (t, r) => (L(), T(b, null, [(L(), C(V(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": W(i).describedBy.value,
|
|
2060
2060
|
class: n.className,
|
|
2061
|
-
onMouseenter:
|
|
2062
|
-
onMouseleave:
|
|
2063
|
-
onFocus:
|
|
2064
|
-
onBlur:
|
|
2061
|
+
onMouseenter: W(i).show,
|
|
2062
|
+
onMouseleave: W(i).hide,
|
|
2063
|
+
onFocus: W(i).showOnFocus,
|
|
2064
|
+
onBlur: W(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: q(() => [
|
|
2067
|
+
n.view.showGlyph && n.glyph ? (L(), C(V(n.glyph), { key: 0 })) : w("", !0),
|
|
2068
|
+
E("span", { class: N(n.view.labelClass) }, U(n.label), 3),
|
|
2069
|
+
n.view.countClass && n.count ? (L(), T(b, { key: 1 }, [E("span", {
|
|
2070
2070
|
class: N(n.view.countClass),
|
|
2071
2071
|
"aria-hidden": "true"
|
|
2072
|
-
},
|
|
2072
|
+
}, U(n.count.value), 3), E("span", li, U(n.count.label), 1)], 64)) : w("", !0)
|
|
2073
2073
|
]),
|
|
2074
2074
|
_: 1
|
|
2075
2075
|
}, 16, [
|
|
@@ -2082,7 +2082,7 @@ var mn = {
|
|
|
2082
2082
|
"onMouseleave",
|
|
2083
2083
|
"onFocus",
|
|
2084
2084
|
"onBlur"
|
|
2085
|
-
])), k(e, { state:
|
|
2085
|
+
])), k(e, { state: W(i) }, null, 8, ["state"])], 64));
|
|
2086
2086
|
}
|
|
2087
2087
|
}), di = {
|
|
2088
2088
|
key: 0,
|
|
@@ -2106,7 +2106,7 @@ var mn = {
|
|
|
2106
2106
|
depth: {}
|
|
2107
2107
|
},
|
|
2108
2108
|
setup(e) {
|
|
2109
|
-
let t = e, n = sn("sidebar"), r =
|
|
2109
|
+
let t = e, n = sn("sidebar"), r = ue(), i = S(() => Mt({
|
|
2110
2110
|
mode: n.value,
|
|
2111
2111
|
label: t.label,
|
|
2112
2112
|
hasGlyph: !!t.glyph,
|
|
@@ -2123,7 +2123,7 @@ var mn = {
|
|
|
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 ? (L(), T("div", {
|
|
2127
2127
|
key: 0,
|
|
2128
2128
|
class: N([
|
|
2129
2129
|
i.value.className,
|
|
@@ -2132,15 +2132,15 @@ var mn = {
|
|
|
2132
2132
|
]),
|
|
2133
2133
|
style: P([i.value.style, e.$attrs.style])
|
|
2134
2134
|
}, [
|
|
2135
|
-
e.$slots.before ? (
|
|
2135
|
+
e.$slots.before ? (L(), T("span", di, [B(e.$slots, "before")])) : w("", !0),
|
|
2136
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 ? (L(), T("span", fi, [B(e.$slots, "after")])) : w("", !0)
|
|
2143
|
+
], 6)) : (L(), C(ui, M({ key: 1 }, {
|
|
2144
2144
|
...e.$attrs,
|
|
2145
2145
|
...a.value,
|
|
2146
2146
|
class: void 0
|
|
@@ -2154,7 +2154,7 @@ var mn = {
|
|
|
2154
2154
|
"style"
|
|
2155
2155
|
]));
|
|
2156
2156
|
}
|
|
2157
|
-
}), mi = { class: "glim-signin-field" }, hi = ["for"],
|
|
2157
|
+
}), mi = { class: "glim-signin-field" }, hi = ["for"], gi = /* @__PURE__ */ A({
|
|
2158
2158
|
__name: "SignInField",
|
|
2159
2159
|
props: {
|
|
2160
2160
|
label: {},
|
|
@@ -2162,15 +2162,15 @@ var mn = {
|
|
|
2162
2162
|
hint: {}
|
|
2163
2163
|
},
|
|
2164
2164
|
setup(e) {
|
|
2165
|
-
return (t, n) => (
|
|
2165
|
+
return (t, n) => (L(), T("div", mi, [E("label", {
|
|
2166
2166
|
for: t.$props.for,
|
|
2167
2167
|
class: "glim-signin-label"
|
|
2168
|
-
}, [O(
|
|
2168
|
+
}, [O(U(e.label), 1), e.hint ? (L(), C(Q, {
|
|
2169
2169
|
key: 0,
|
|
2170
2170
|
tip: e.hint
|
|
2171
|
-
}, null, 8, ["tip"])) : w("", !0)], 8, hi),
|
|
2171
|
+
}, null, 8, ["tip"])) : w("", !0)], 8, hi), B(t.$slots, "default")]));
|
|
2172
2172
|
}
|
|
2173
|
-
}),
|
|
2173
|
+
}), _i = ["aria-label"], vi = /* @__PURE__ */ A({
|
|
2174
2174
|
__name: "TextField",
|
|
2175
2175
|
props: /*@__PURE__*/ j({
|
|
2176
2176
|
label: {},
|
|
@@ -2182,36 +2182,36 @@ var mn = {
|
|
|
2182
2182
|
}),
|
|
2183
2183
|
emits: ["update:modelValue"],
|
|
2184
2184
|
setup(e, { expose: t }) {
|
|
2185
|
-
let n = e, r =
|
|
2185
|
+
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() => Ut({
|
|
2186
2186
|
width: n.width,
|
|
2187
2187
|
mono: n.mono
|
|
2188
|
-
})), o =
|
|
2189
|
-
return t({ input: o }), (e, t) =>
|
|
2188
|
+
})), o = H(null);
|
|
2189
|
+
return t({ input: o }), (e, t) => J((L(), T("input", {
|
|
2190
2190
|
ref_key: "input",
|
|
2191
2191
|
ref: o,
|
|
2192
2192
|
"onUpdate:modelValue": t[0] ||= (e) => r.value = e,
|
|
2193
2193
|
type: "text",
|
|
2194
|
-
"aria-label":
|
|
2194
|
+
"aria-label": W(i),
|
|
2195
2195
|
class: N(a.value)
|
|
2196
|
-
}, null, 10,
|
|
2196
|
+
}, null, 10, _i)), [[fe, r.value]]);
|
|
2197
2197
|
}
|
|
2198
|
-
}),
|
|
2198
|
+
}), yi = { class: "glim-signin" }, bi = { class: "glim-signin-head" }, xi = {
|
|
2199
2199
|
key: 0,
|
|
2200
2200
|
class: "glim-signin-logo",
|
|
2201
2201
|
"aria-hidden": "true"
|
|
2202
|
-
},
|
|
2202
|
+
}, Si = ["src"], Ci = { class: "glim-signin-name" }, wi = {
|
|
2203
2203
|
key: 0,
|
|
2204
2204
|
class: "glim-signin-error",
|
|
2205
2205
|
role: "alert"
|
|
2206
|
-
},
|
|
2206
|
+
}, Ti = {
|
|
2207
2207
|
key: 0,
|
|
2208
2208
|
class: "glim-signin-note",
|
|
2209
2209
|
role: "status"
|
|
2210
|
-
},
|
|
2210
|
+
}, Ei = { class: "glim-signin-hint" }, Di = {
|
|
2211
2211
|
key: 3,
|
|
2212
2212
|
class: "glim-signin-error",
|
|
2213
2213
|
role: "alert"
|
|
2214
|
-
},
|
|
2214
|
+
}, Oi = /* @__PURE__ */ A({
|
|
2215
2215
|
__name: "SignInCard",
|
|
2216
2216
|
props: {
|
|
2217
2217
|
logo: {},
|
|
@@ -2239,9 +2239,9 @@ var mn = {
|
|
|
2239
2239
|
onSetPassword: {}
|
|
2240
2240
|
},
|
|
2241
2241
|
setup(e) {
|
|
2242
|
-
let t = e, n =
|
|
2242
|
+
let t = e, n = ue(), r = ze(() => t), i = H(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
2243
2243
|
re(a);
|
|
2244
|
-
let o =
|
|
2244
|
+
let o = le(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = S(() => ({
|
|
2245
2245
|
signIn: "signIn",
|
|
2246
2246
|
passkey: "signInWithPasskey",
|
|
2247
2247
|
forgot: "forgotPassword",
|
|
@@ -2251,34 +2251,34 @@ var mn = {
|
|
|
2251
2251
|
})), l = S(() => ({
|
|
2252
2252
|
show: t.text.show,
|
|
2253
2253
|
hide: t.text.hide
|
|
2254
|
-
})), u =
|
|
2254
|
+
})), u = H(null), d = "";
|
|
2255
2255
|
function f() {
|
|
2256
2256
|
let e = n.step ? "step" : Pt(i.value);
|
|
2257
|
-
e !== d && ((d || t.autoFocus) &&
|
|
2257
|
+
e !== d && ((d || t.autoFocus) && He(u.value), d = e);
|
|
2258
2258
|
}
|
|
2259
|
-
return F(f),
|
|
2259
|
+
return F(f), ae(f), K(() => i.value.refusal?.count, (e, t, n) => {
|
|
2260
2260
|
let r = i.value.refusal;
|
|
2261
2261
|
r && n(jt(u.value, r));
|
|
2262
|
-
}, { flush: "post" }), (t, n) => (
|
|
2262
|
+
}, { flush: "post" }), (t, n) => (L(), T("div", yi, [E("div", {
|
|
2263
2263
|
ref_key: "card",
|
|
2264
2264
|
ref: u,
|
|
2265
2265
|
class: "glim-card glim-signin-card"
|
|
2266
|
-
}, [E("div",
|
|
2266
|
+
}, [E("div", bi, [e.logo || t.$slots.logo ? (L(), T("span", xi, [B(t.$slots, "logo", {}, () => [E("img", {
|
|
2267
2267
|
src: e.logo,
|
|
2268
2268
|
alt: "",
|
|
2269
2269
|
draggable: "false"
|
|
2270
|
-
}, null, 8,
|
|
2270
|
+
}, null, 8, Si)])])) : w("", !0), E("h1", Ci, U(e.appName), 1)]), t.$slots.step ? B(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (L(), T("form", {
|
|
2271
2271
|
key: 1,
|
|
2272
2272
|
class: "glim-signin-form",
|
|
2273
2273
|
novalidate: "",
|
|
2274
|
-
onSubmit: n[4] ||=
|
|
2274
|
+
onSubmit: n[4] ||= Y((e) => W(r).submit(), ["prevent"])
|
|
2275
2275
|
}, [
|
|
2276
|
-
k(
|
|
2276
|
+
k(gi, {
|
|
2277
2277
|
label: e.text.resetCode,
|
|
2278
2278
|
for: s("reset-code"),
|
|
2279
2279
|
hint: e.text.resetCodeTip
|
|
2280
2280
|
}, {
|
|
2281
|
-
default:
|
|
2281
|
+
default: q(() => [k(vi, {
|
|
2282
2282
|
id: s("reset-code"),
|
|
2283
2283
|
"data-signin-field": "resetCode",
|
|
2284
2284
|
class: "glim-signin-log-code",
|
|
@@ -2287,7 +2287,7 @@ var mn = {
|
|
|
2287
2287
|
autocapitalize: "characters",
|
|
2288
2288
|
spellcheck: "false",
|
|
2289
2289
|
placeholder: "XXXX-XXXX-XXXX",
|
|
2290
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2290
|
+
"onUpdate:modelValue": n[0] ||= (e) => W(r).set("resetCode", e)
|
|
2291
2291
|
}, null, 8, ["id", "model-value"])]),
|
|
2292
2292
|
_: 1
|
|
2293
2293
|
}, 8, [
|
|
@@ -2295,17 +2295,17 @@ var mn = {
|
|
|
2295
2295
|
"for",
|
|
2296
2296
|
"hint"
|
|
2297
2297
|
]),
|
|
2298
|
-
k(
|
|
2298
|
+
k(gi, {
|
|
2299
2299
|
label: e.text.newPassword,
|
|
2300
2300
|
for: s("new")
|
|
2301
2301
|
}, {
|
|
2302
|
-
default:
|
|
2302
|
+
default: q(() => [k(Zr, {
|
|
2303
2303
|
id: s("new"),
|
|
2304
2304
|
"data-signin-field": "newPassword",
|
|
2305
2305
|
"model-value": i.value.newPassword,
|
|
2306
2306
|
autocomplete: "new-password",
|
|
2307
2307
|
text: l.value,
|
|
2308
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
2308
|
+
"onUpdate:modelValue": n[1] ||= (e) => W(r).set("newPassword", e)
|
|
2309
2309
|
}, null, 8, [
|
|
2310
2310
|
"id",
|
|
2311
2311
|
"model-value",
|
|
@@ -2313,17 +2313,17 @@ var mn = {
|
|
|
2313
2313
|
])]),
|
|
2314
2314
|
_: 1
|
|
2315
2315
|
}, 8, ["label", "for"]),
|
|
2316
|
-
k(
|
|
2316
|
+
k(gi, {
|
|
2317
2317
|
label: e.text.confirmPassword,
|
|
2318
2318
|
for: s("confirm")
|
|
2319
2319
|
}, {
|
|
2320
|
-
default:
|
|
2320
|
+
default: q(() => [k(Zr, {
|
|
2321
2321
|
id: s("confirm"),
|
|
2322
2322
|
"data-signin-field": "confirm",
|
|
2323
2323
|
"model-value": i.value.confirm,
|
|
2324
2324
|
autocomplete: "new-password",
|
|
2325
2325
|
text: l.value,
|
|
2326
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
2326
|
+
"onUpdate:modelValue": n[2] ||= (e) => W(r).set("confirm", e)
|
|
2327
2327
|
}, null, 8, [
|
|
2328
2328
|
"id",
|
|
2329
2329
|
"model-value",
|
|
@@ -2331,14 +2331,14 @@ var mn = {
|
|
|
2331
2331
|
])]),
|
|
2332
2332
|
_: 1
|
|
2333
2333
|
}, 8, ["label", "for"]),
|
|
2334
|
-
i.value.error ? (
|
|
2335
|
-
k(
|
|
2334
|
+
i.value.error ? (L(), T("p", wi, U(i.value.error), 1)) : w("", !0),
|
|
2335
|
+
k(Z, {
|
|
2336
2336
|
label: e.text.setPassword,
|
|
2337
2337
|
"label-key": c.value.setPassword,
|
|
2338
2338
|
tone: "accent",
|
|
2339
2339
|
type: "submit",
|
|
2340
2340
|
"data-signin": "set-password",
|
|
2341
|
-
disabled:
|
|
2341
|
+
disabled: W(vt)(i.value),
|
|
2342
2342
|
busy: i.value.busy === "setPassword",
|
|
2343
2343
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
2344
2344
|
}, null, 8, [
|
|
@@ -2348,50 +2348,50 @@ var mn = {
|
|
|
2348
2348
|
"busy",
|
|
2349
2349
|
"title"
|
|
2350
2350
|
]),
|
|
2351
|
-
k(
|
|
2351
|
+
k(Z, {
|
|
2352
2352
|
label: e.text.back,
|
|
2353
2353
|
"label-key": c.value.back,
|
|
2354
2354
|
tone: "subtle",
|
|
2355
2355
|
"data-signin": "back",
|
|
2356
2356
|
disabled: !!i.value.busy,
|
|
2357
|
-
onClick: n[3] ||= (e) =>
|
|
2357
|
+
onClick: n[3] ||= (e) => W(r).back()
|
|
2358
2358
|
}, null, 8, [
|
|
2359
2359
|
"label",
|
|
2360
2360
|
"label-key",
|
|
2361
2361
|
"disabled"
|
|
2362
2362
|
])
|
|
2363
|
-
], 32)) : (
|
|
2363
|
+
], 32)) : (L(), T("form", {
|
|
2364
2364
|
key: 2,
|
|
2365
2365
|
class: "glim-signin-form",
|
|
2366
2366
|
novalidate: "",
|
|
2367
|
-
onSubmit: n[10] ||=
|
|
2367
|
+
onSubmit: n[10] ||= Y((e) => W(r).submit(), ["prevent"])
|
|
2368
2368
|
}, [
|
|
2369
|
-
e.note ? (
|
|
2370
|
-
i.value.viaPasskey ? w("", !0) :
|
|
2371
|
-
|
|
2369
|
+
e.note ? (L(), T("p", Ti, U(e.note), 1)) : w("", !0),
|
|
2370
|
+
i.value.viaPasskey ? w("", !0) : B(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
2371
|
+
J(k(gi, {
|
|
2372
2372
|
label: e.text.password,
|
|
2373
2373
|
for: s("password")
|
|
2374
2374
|
}, {
|
|
2375
|
-
default:
|
|
2375
|
+
default: q(() => [k(Zr, {
|
|
2376
2376
|
id: s("password"),
|
|
2377
2377
|
"data-signin-field": "password",
|
|
2378
2378
|
"model-value": i.value.password,
|
|
2379
2379
|
autocomplete: "current-password",
|
|
2380
2380
|
text: l.value,
|
|
2381
|
-
"onUpdate:modelValue": n[5] ||= (e) =>
|
|
2381
|
+
"onUpdate:modelValue": n[5] ||= (e) => W(r).set("password", e)
|
|
2382
2382
|
}, null, 8, [
|
|
2383
2383
|
"id",
|
|
2384
2384
|
"model-value",
|
|
2385
2385
|
"text"
|
|
2386
2386
|
])]),
|
|
2387
2387
|
_: 1
|
|
2388
|
-
}, 8, ["label", "for"]), [[
|
|
2389
|
-
i.value.needCode ? (
|
|
2388
|
+
}, 8, ["label", "for"]), [[pe, !i.value.viaPasskey]]),
|
|
2389
|
+
i.value.needCode ? (L(), C(gi, {
|
|
2390
2390
|
key: 2,
|
|
2391
2391
|
label: e.text.code,
|
|
2392
2392
|
for: s("code")
|
|
2393
2393
|
}, {
|
|
2394
|
-
default:
|
|
2394
|
+
default: q(() => [k(vi, {
|
|
2395
2395
|
id: s("code"),
|
|
2396
2396
|
"data-signin-field": "code",
|
|
2397
2397
|
class: "glim-signin-code",
|
|
@@ -2400,18 +2400,18 @@ var mn = {
|
|
|
2400
2400
|
autocomplete: "one-time-code",
|
|
2401
2401
|
spellcheck: "false",
|
|
2402
2402
|
placeholder: "000000",
|
|
2403
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
2404
|
-
}, null, 8, ["id", "model-value"]), E("p",
|
|
2403
|
+
"onUpdate:modelValue": n[6] ||= (e) => W(r).set("code", e)
|
|
2404
|
+
}, null, 8, ["id", "model-value"]), E("p", Ei, U(e.text.codeHint), 1)]),
|
|
2405
2405
|
_: 1
|
|
2406
2406
|
}, 8, ["label", "for"])) : w("", !0),
|
|
2407
|
-
i.value.error ? (
|
|
2408
|
-
k(
|
|
2407
|
+
i.value.error ? (L(), T("p", Di, U(i.value.error), 1)) : w("", !0),
|
|
2408
|
+
k(Z, {
|
|
2409
2409
|
label: e.text.signIn,
|
|
2410
2410
|
"label-key": c.value.signIn,
|
|
2411
2411
|
tone: "accent",
|
|
2412
2412
|
type: "submit",
|
|
2413
2413
|
"data-signin": "submit",
|
|
2414
|
-
disabled:
|
|
2414
|
+
disabled: W(Nt)(i.value),
|
|
2415
2415
|
busy: i.value.busy === "signIn",
|
|
2416
2416
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
2417
2417
|
}, null, 8, [
|
|
@@ -2421,34 +2421,34 @@ var mn = {
|
|
|
2421
2421
|
"busy",
|
|
2422
2422
|
"title"
|
|
2423
2423
|
]),
|
|
2424
|
-
!i.value.needCode && e.passkey ? (
|
|
2424
|
+
!i.value.needCode && e.passkey ? (L(), C(Z, {
|
|
2425
2425
|
key: 4,
|
|
2426
2426
|
label: e.text.passkey,
|
|
2427
2427
|
"label-key": c.value.passkey,
|
|
2428
2428
|
"data-signin": "passkey",
|
|
2429
2429
|
disabled: !!i.value.busy,
|
|
2430
2430
|
busy: i.value.busy === "passkey",
|
|
2431
|
-
onClick: n[7] ||= (e) =>
|
|
2431
|
+
onClick: n[7] ||= (e) => W(r).passkey()
|
|
2432
2432
|
}, null, 8, [
|
|
2433
2433
|
"label",
|
|
2434
2434
|
"label-key",
|
|
2435
2435
|
"disabled",
|
|
2436
2436
|
"busy"
|
|
2437
2437
|
])) : w("", !0),
|
|
2438
|
-
i.value.needCode ? w("", !0) :
|
|
2439
|
-
i.value.needCode ? (
|
|
2438
|
+
i.value.needCode ? w("", !0) : B(t.$slots, "actions", {}, void 0, void 0, 5),
|
|
2439
|
+
i.value.needCode ? (L(), C(Z, {
|
|
2440
2440
|
key: 6,
|
|
2441
2441
|
label: e.text.back,
|
|
2442
2442
|
"label-key": c.value.back,
|
|
2443
2443
|
tone: "subtle",
|
|
2444
2444
|
"data-signin": "back",
|
|
2445
2445
|
disabled: !!i.value.busy,
|
|
2446
|
-
onClick: n[8] ||= (e) =>
|
|
2446
|
+
onClick: n[8] ||= (e) => W(r).back()
|
|
2447
2447
|
}, null, 8, [
|
|
2448
2448
|
"label",
|
|
2449
2449
|
"label-key",
|
|
2450
2450
|
"disabled"
|
|
2451
|
-
])) : e.reset ? (
|
|
2451
|
+
])) : e.reset ? (L(), C(Z, {
|
|
2452
2452
|
key: 7,
|
|
2453
2453
|
label: e.text.forgot,
|
|
2454
2454
|
"label-key": c.value.forgot,
|
|
@@ -2456,7 +2456,7 @@ var mn = {
|
|
|
2456
2456
|
"data-signin": "forgot",
|
|
2457
2457
|
disabled: !!i.value.busy,
|
|
2458
2458
|
busy: i.value.busy === "askCode",
|
|
2459
|
-
onClick: n[9] ||= (e) =>
|
|
2459
|
+
onClick: n[9] ||= (e) => W(r).forgot()
|
|
2460
2460
|
}, null, 8, [
|
|
2461
2461
|
"label",
|
|
2462
2462
|
"label-key",
|
|
@@ -2465,26 +2465,26 @@ var mn = {
|
|
|
2465
2465
|
])) : w("", !0)
|
|
2466
2466
|
], 32))], 512)]));
|
|
2467
2467
|
}
|
|
2468
|
-
}),
|
|
2468
|
+
}), ki = ["aria-labelledby"], Ai = {
|
|
2469
2469
|
key: 0,
|
|
2470
2470
|
class: "glim-subcard-title"
|
|
2471
|
-
},
|
|
2471
|
+
}, ji = ["id"], Mi = /* @__PURE__ */ A({
|
|
2472
2472
|
__name: "SubCard",
|
|
2473
2473
|
props: {
|
|
2474
2474
|
title: {},
|
|
2475
2475
|
hint: {}
|
|
2476
2476
|
},
|
|
2477
2477
|
setup(e) {
|
|
2478
|
-
let t =
|
|
2479
|
-
return (n, r) => (
|
|
2478
|
+
let t = le();
|
|
2479
|
+
return (n, r) => (L(), T("section", {
|
|
2480
2480
|
class: "glim-subcard",
|
|
2481
|
-
"aria-labelledby": e.title ?
|
|
2482
|
-
}, [e.title ? (
|
|
2481
|
+
"aria-labelledby": e.title ? W(t) : void 0
|
|
2482
|
+
}, [e.title ? (L(), T("h3", Ai, [E("span", { id: W(t) }, U(e.title), 9, ji), e.hint ? (L(), C(Q, {
|
|
2483
2483
|
key: 0,
|
|
2484
2484
|
tip: e.hint
|
|
2485
|
-
}, null, 8, ["tip"])) : w("", !0)])) : w("", !0),
|
|
2485
|
+
}, null, 8, ["tip"])) : w("", !0)])) : w("", !0), B(n.$slots, "default")], 8, ki));
|
|
2486
2486
|
}
|
|
2487
|
-
}),
|
|
2487
|
+
}), Ni = ["aria-label"], Pi = { key: 0 }, Fi = { key: 0 }, Ii = ["colspan"], Li = /* @__PURE__ */ A({
|
|
2488
2488
|
__name: "Table",
|
|
2489
2489
|
props: {
|
|
2490
2490
|
label: {},
|
|
@@ -2494,26 +2494,26 @@ var mn = {
|
|
|
2494
2494
|
},
|
|
2495
2495
|
setup(e) {
|
|
2496
2496
|
let t = e, n = S(() => t.columns.some((e) => e.label)), r = (e, t) => e[t.key];
|
|
2497
|
-
return (t, i) => (
|
|
2497
|
+
return (t, i) => (L(), T("table", {
|
|
2498
2498
|
class: "glim-table",
|
|
2499
2499
|
"aria-label": e.label
|
|
2500
|
-
}, [n.value ? (
|
|
2500
|
+
}, [n.value ? (L(), T("thead", Pi, [E("tr", null, [(L(!0), T(b, null, z(e.columns, (e) => (L(), T("th", {
|
|
2501
2501
|
key: e.key,
|
|
2502
2502
|
scope: "col",
|
|
2503
2503
|
class: N({ "glim-table-end": e.end })
|
|
2504
|
-
},
|
|
2504
|
+
}, U(e.label), 3))), 128))])])) : w("", !0), E("tbody", null, [(L(!0), T(b, null, z(e.rows, (n, i) => (L(), T("tr", { key: i }, [(L(!0), T(b, null, z(e.columns, (e) => (L(), T("td", {
|
|
2505
2505
|
key: e.key,
|
|
2506
|
-
class: N(
|
|
2507
|
-
}, [
|
|
2506
|
+
class: N(W(Vt)(e))
|
|
2507
|
+
}, [B(t.$slots, "cell", {
|
|
2508
2508
|
row: n,
|
|
2509
2509
|
column: e,
|
|
2510
2510
|
value: r(n, e)
|
|
2511
|
-
}, () => [O(
|
|
2511
|
+
}, () => [O(U(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (L(), T("tr", Fi, [E("td", {
|
|
2512
2512
|
colspan: e.columns.length,
|
|
2513
2513
|
class: "glim-table-muted"
|
|
2514
|
-
},
|
|
2514
|
+
}, U(e.more), 9, Ii)])) : w("", !0)])], 8, Ni));
|
|
2515
2515
|
}
|
|
2516
|
-
}),
|
|
2516
|
+
}), Ri = ["aria-label"], zi = /* @__PURE__ */ A({
|
|
2517
2517
|
__name: "TextArea",
|
|
2518
2518
|
props: /*@__PURE__*/ j({
|
|
2519
2519
|
label: {},
|
|
@@ -2525,27 +2525,27 @@ var mn = {
|
|
|
2525
2525
|
}),
|
|
2526
2526
|
emits: ["update:modelValue"],
|
|
2527
2527
|
setup(e, { expose: t }) {
|
|
2528
|
-
let n = e, r =
|
|
2528
|
+
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() => Ut({
|
|
2529
2529
|
width: n.width,
|
|
2530
2530
|
mono: n.mono,
|
|
2531
2531
|
area: !0
|
|
2532
|
-
})), o =
|
|
2533
|
-
return t({ input: o }), (e, t) =>
|
|
2532
|
+
})), o = H(null);
|
|
2533
|
+
return t({ input: o }), (e, t) => J((L(), T("textarea", {
|
|
2534
2534
|
ref_key: "input",
|
|
2535
2535
|
ref: o,
|
|
2536
2536
|
"onUpdate:modelValue": t[0] ||= (e) => r.value = e,
|
|
2537
|
-
"aria-label":
|
|
2537
|
+
"aria-label": W(i),
|
|
2538
2538
|
class: N(a.value)
|
|
2539
|
-
}, null, 10,
|
|
2539
|
+
}, null, 10, Ri)), [[fe, r.value]]);
|
|
2540
2540
|
}
|
|
2541
|
-
}),
|
|
2541
|
+
}), Bi = { class: "glim-toast-stack" }, Vi = [
|
|
2542
2542
|
"role",
|
|
2543
2543
|
"onMouseenter",
|
|
2544
2544
|
"onMouseleave",
|
|
2545
2545
|
"onFocusin",
|
|
2546
2546
|
"onFocusout",
|
|
2547
2547
|
"onKeydown"
|
|
2548
|
-
],
|
|
2548
|
+
], Hi = { class: "glim-toast-body" }, Ui = { class: "glim-toast-message" }, Wi = { key: 0 }, Gi = ["aria-label", "onClick"], Ki = /* @__PURE__ */ A({
|
|
2549
2549
|
__name: "ToastViewport",
|
|
2550
2550
|
props: {
|
|
2551
2551
|
toasts: {},
|
|
@@ -2563,7 +2563,7 @@ var mn = {
|
|
|
2563
2563
|
function i(e, t) {
|
|
2564
2564
|
t.onClick(), n("dismiss", e);
|
|
2565
2565
|
}
|
|
2566
|
-
return (t, a) => (
|
|
2566
|
+
return (t, a) => (L(), T("div", Bi, [(L(!0), T(b, null, z(e.toasts, (t) => (L(), T("div", {
|
|
2567
2567
|
key: t.id,
|
|
2568
2568
|
role: r(t.severity),
|
|
2569
2569
|
class: "glim-toast glim-toast-card",
|
|
@@ -2571,13 +2571,13 @@ var mn = {
|
|
|
2571
2571
|
onMouseleave: (e) => n("leave", t.id),
|
|
2572
2572
|
onFocusin: (e) => n("focusin", t.id),
|
|
2573
2573
|
onFocusout: (e) => n("focusout", t.id),
|
|
2574
|
-
onKeydown:
|
|
2574
|
+
onKeydown: he(Y((e) => n("dismiss", t.id), ["stop"]), ["esc"])
|
|
2575
2575
|
}, [
|
|
2576
|
-
k(
|
|
2577
|
-
mark:
|
|
2576
|
+
k(W(p), {
|
|
2577
|
+
mark: W(Te)[t.severity],
|
|
2578
2578
|
class: N(`glim-toast-glyph glim-toast-glyph--${t.severity}`)
|
|
2579
2579
|
}, null, 8, ["mark", "class"]),
|
|
2580
|
-
E("div",
|
|
2580
|
+
E("div", Hi, [E("p", Ui, [(L(!0), T(b, null, z(W(Ft)(t.message), (e, t) => (L(), T(b, { key: t }, [t > 0 ? (L(), T("wbr", Wi)) : w("", !0), O(U(e), 1)], 64))), 128))]), t.action ? (L(), C(Z, {
|
|
2581
2581
|
key: 0,
|
|
2582
2582
|
class: "glim-toast-action",
|
|
2583
2583
|
tone: "subtle",
|
|
@@ -2590,17 +2590,19 @@ var mn = {
|
|
|
2590
2590
|
"aria-label": e.dismissLabel,
|
|
2591
2591
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
2592
2592
|
onClick: (e) => n("dismiss", t.id)
|
|
2593
|
-
}, [k(
|
|
2594
|
-
], 40,
|
|
2593
|
+
}, [k(W(p), { mark: W(Ce).dismiss }, null, 8, ["mark"])], 8, Gi)
|
|
2594
|
+
], 40, Vi))), 128))]));
|
|
2595
2595
|
}
|
|
2596
|
-
}),
|
|
2596
|
+
}), qi = {
|
|
2597
2597
|
key: 0,
|
|
2598
2598
|
class: "glim-toggle-label"
|
|
2599
|
-
},
|
|
2599
|
+
}, Ji = [
|
|
2600
2600
|
"aria-checked",
|
|
2601
2601
|
"aria-label",
|
|
2602
|
+
"aria-disabled",
|
|
2603
|
+
"aria-describedby",
|
|
2602
2604
|
"disabled"
|
|
2603
|
-
],
|
|
2605
|
+
], Yi = ["id"], Xi = /* @__PURE__ */ A({
|
|
2604
2606
|
inheritAttrs: !1,
|
|
2605
2607
|
__name: "Toggle",
|
|
2606
2608
|
props: /*@__PURE__*/ j({
|
|
@@ -2612,7 +2614,8 @@ var mn = {
|
|
|
2612
2614
|
disabled: {
|
|
2613
2615
|
type: Boolean,
|
|
2614
2616
|
default: !1
|
|
2615
|
-
}
|
|
2617
|
+
},
|
|
2618
|
+
refused: {}
|
|
2616
2619
|
}, {
|
|
2617
2620
|
modelValue: {
|
|
2618
2621
|
type: Boolean,
|
|
@@ -2621,26 +2624,47 @@ var mn = {
|
|
|
2621
2624
|
modelModifiers: {}
|
|
2622
2625
|
}),
|
|
2623
2626
|
emits: ["update:modelValue"],
|
|
2624
|
-
setup(
|
|
2625
|
-
let
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
"
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2627
|
+
setup(n) {
|
|
2628
|
+
let r = n, i = G(n, "modelValue"), a = y(() => r.label), o = S(() => r.label !== void 0 && !r.hideLabel), s = t(() => r.refused), c = le(), l = H(null), u;
|
|
2629
|
+
I(() => u?.());
|
|
2630
|
+
function d() {
|
|
2631
|
+
r.refused ? (u?.(), u = At(l.value)) : i.value = !i.value;
|
|
2632
|
+
}
|
|
2633
|
+
return (t, r) => (L(), T(b, null, [
|
|
2634
|
+
E("span", {
|
|
2635
|
+
ref_key: "frame",
|
|
2636
|
+
ref: l,
|
|
2637
|
+
class: N(["glim-toggle", t.$attrs.class]),
|
|
2638
|
+
style: P(t.$attrs.style)
|
|
2639
|
+
}, [o.value ? (L(), T("span", qi, U(n.label), 1)) : w("", !0), E("button", M({
|
|
2640
|
+
...t.$attrs,
|
|
2641
|
+
class: void 0,
|
|
2642
|
+
style: void 0
|
|
2643
|
+
}, {
|
|
2644
|
+
ref: (e) => W(s).trigger.value = e,
|
|
2645
|
+
type: "button",
|
|
2646
|
+
role: "switch",
|
|
2647
|
+
"aria-checked": i.value,
|
|
2648
|
+
"aria-label": W(a),
|
|
2649
|
+
"aria-disabled": n.refused ? !0 : void 0,
|
|
2650
|
+
"aria-describedby": n.refused ? W(c) : t.$attrs["aria-describedby"],
|
|
2651
|
+
disabled: n.disabled,
|
|
2652
|
+
class: "glim-toggle-track",
|
|
2653
|
+
onClick: d,
|
|
2654
|
+
onMouseenter: r[0] ||= (...e) => W(s).show && W(s).show(...e),
|
|
2655
|
+
onMouseleave: r[1] ||= (...e) => W(s).hide && W(s).hide(...e),
|
|
2656
|
+
onFocus: r[2] ||= (...e) => W(s).showOnFocus && W(s).showOnFocus(...e),
|
|
2657
|
+
onBlur: r[3] ||= (...e) => W(s).hide && W(s).hide(...e)
|
|
2658
|
+
}), [...r[4] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, Ji)], 6),
|
|
2659
|
+
n.refused ? (L(), T("span", {
|
|
2660
|
+
key: 0,
|
|
2661
|
+
id: W(c),
|
|
2662
|
+
class: "glim-toggle-refusal"
|
|
2663
|
+
}, U(n.refused), 9, Yi)) : w("", !0),
|
|
2664
|
+
k(e, { state: W(s) }, null, 8, ["state"])
|
|
2665
|
+
], 64));
|
|
2642
2666
|
}
|
|
2643
|
-
}),
|
|
2667
|
+
}), Zi = ["aria-label"], Qi = [
|
|
2644
2668
|
"aria-level",
|
|
2645
2669
|
"aria-posinset",
|
|
2646
2670
|
"aria-setsize",
|
|
@@ -2651,11 +2675,11 @@ var mn = {
|
|
|
2651
2675
|
"onClick",
|
|
2652
2676
|
"onDblclick",
|
|
2653
2677
|
"onKeydown"
|
|
2654
|
-
],
|
|
2678
|
+
], $i = ["onClick"], ea = {
|
|
2655
2679
|
key: 0,
|
|
2656
2680
|
class: "glim-tree-glyph",
|
|
2657
2681
|
"aria-hidden": "true"
|
|
2658
|
-
},
|
|
2682
|
+
}, ta = { class: "glim-tree-label" }, na = /* @__PURE__ */ A({
|
|
2659
2683
|
__name: "Tree",
|
|
2660
2684
|
props: /*@__PURE__*/ j({
|
|
2661
2685
|
label: {},
|
|
@@ -2668,11 +2692,11 @@ var mn = {
|
|
|
2668
2692
|
}),
|
|
2669
2693
|
emits: /*@__PURE__*/ j(["activate"], ["update:modelValue", "update:open"]),
|
|
2670
2694
|
setup(e, { emit: t }) {
|
|
2671
|
-
let n = e, i =
|
|
2695
|
+
let n = e, i = G(e, "modelValue"), a = G(e, "open"), o = t, s = se(/* @__PURE__ */ new Map()), c = /* @__PURE__ */ new Set(), l = H(null);
|
|
2672
2696
|
function u(e) {
|
|
2673
2697
|
c.has(e) || (c.add(e), Promise.resolve(n.load(e)).then((t) => s.set(e, t), () => c.delete(e)));
|
|
2674
2698
|
}
|
|
2675
|
-
|
|
2699
|
+
K(a, (e) => [null, ...e].forEach(u), { immediate: !0 });
|
|
2676
2700
|
let d = S(() => qt(s, a.value)), f = S(() => Math.max(d.value.findIndex((e) => e.node.id === i.value), 0));
|
|
2677
2701
|
function p(e) {
|
|
2678
2702
|
a.value = a.value.includes(e) ? a.value.filter((t) => t !== e) : [...a.value, e];
|
|
@@ -2685,15 +2709,15 @@ var mn = {
|
|
|
2685
2709
|
return;
|
|
2686
2710
|
}
|
|
2687
2711
|
let r = Jt(d.value, t, e.key, getComputedStyle(l.value).direction === "rtl");
|
|
2688
|
-
r && (e.preventDefault(), "focus" in r ? (i.value = r.focus,
|
|
2712
|
+
r && (e.preventDefault(), "focus" in r ? (i.value = r.focus, Ge(l.value, r.focus)) : p("open" in r ? r.open : r.close));
|
|
2689
2713
|
}
|
|
2690
|
-
return (t, n) => (
|
|
2714
|
+
return (t, n) => (L(), T("div", {
|
|
2691
2715
|
ref_key: "tree",
|
|
2692
2716
|
ref: l,
|
|
2693
2717
|
role: "tree",
|
|
2694
2718
|
"aria-label": e.label,
|
|
2695
2719
|
class: "glim-tree"
|
|
2696
|
-
}, [(
|
|
2720
|
+
}, [(L(!0), T(b, null, z(d.value, (e, t) => (L(), T("div", M({ ref_for: !0 }, e.node.attrs, {
|
|
2697
2721
|
key: e.node.id,
|
|
2698
2722
|
role: "treeitem",
|
|
2699
2723
|
"aria-level": e.level,
|
|
@@ -2712,33 +2736,33 @@ var mn = {
|
|
|
2712
2736
|
E("span", {
|
|
2713
2737
|
class: "glim-tree-toggle",
|
|
2714
2738
|
"aria-hidden": "true",
|
|
2715
|
-
onClick:
|
|
2716
|
-
onDblclick: n[0] ||=
|
|
2717
|
-
}, [e.node.hasChildren ? (
|
|
2718
|
-
e.node.glyph ? (
|
|
2719
|
-
E("span",
|
|
2720
|
-
], 16,
|
|
2739
|
+
onClick: Y((t) => e.node.hasChildren && p(e.node.id), ["stop"]),
|
|
2740
|
+
onDblclick: n[0] ||= Y(() => {}, ["stop"])
|
|
2741
|
+
}, [e.node.hasChildren ? (L(), C(W(r), { key: 0 })) : w("", !0)], 40, $i),
|
|
2742
|
+
e.node.glyph ? (L(), T("span", ea, [(L(), C(V(e.open && e.node.openGlyph || e.node.glyph)))])) : w("", !0),
|
|
2743
|
+
E("span", ta, U(e.node.label), 1)
|
|
2744
|
+
], 16, Qi))), 128))], 8, Zi));
|
|
2721
2745
|
}
|
|
2722
|
-
}),
|
|
2746
|
+
}), ra = { class: "glim-notice" }, ia = { class: "glim-notice-title" }, aa = { class: "glim-notice-reason" }, oa = {
|
|
2723
2747
|
key: 0,
|
|
2724
2748
|
class: "glim-notice-action"
|
|
2725
|
-
},
|
|
2749
|
+
}, sa = /* @__PURE__ */ A({
|
|
2726
2750
|
__name: "UnavailableNotice",
|
|
2727
2751
|
props: { title: {} },
|
|
2728
2752
|
setup(e) {
|
|
2729
|
-
return (t, n) => (
|
|
2730
|
-
E("p",
|
|
2731
|
-
E("p",
|
|
2732
|
-
t.$slots.action ? (
|
|
2753
|
+
return (t, n) => (L(), T("div", ra, [
|
|
2754
|
+
E("p", ia, U(e.title), 1),
|
|
2755
|
+
E("p", aa, [B(t.$slots, "default")]),
|
|
2756
|
+
t.$slots.action ? (L(), T("div", oa, [B(t.$slots, "action")])) : w("", !0)
|
|
2733
2757
|
]));
|
|
2734
2758
|
}
|
|
2735
|
-
}),
|
|
2759
|
+
}), ca = ["aria-labelledby", "aria-label"], la = ["id"], ua = { class: "glim-modal-body glim-window-body" }, da = {
|
|
2736
2760
|
key: 0,
|
|
2737
2761
|
class: "glim-modal-foot"
|
|
2738
|
-
},
|
|
2762
|
+
}, fa = {
|
|
2739
2763
|
key: 0,
|
|
2740
2764
|
class: "glim-window-start"
|
|
2741
|
-
},
|
|
2765
|
+
}, pa = /* @__PURE__ */ A({
|
|
2742
2766
|
inheritAttrs: !1,
|
|
2743
2767
|
__name: "Window",
|
|
2744
2768
|
props: {
|
|
@@ -2750,7 +2774,7 @@ var mn = {
|
|
|
2750
2774
|
},
|
|
2751
2775
|
emits: ["close"],
|
|
2752
2776
|
setup(e, { expose: t, emit: n }) {
|
|
2753
|
-
let r = e, i = n, a =
|
|
2777
|
+
let r = e, i = n, a = ue(), o = H(null), s = le(), c = Ke(), l = S(() => r.start !== void 0 || !!a.start), u = S(() => en(r.actions, l.value, {
|
|
2754
2778
|
cancel: {
|
|
2755
2779
|
label: r.text.cancel,
|
|
2756
2780
|
labelKey: "common.cancel",
|
|
@@ -2766,24 +2790,24 @@ var mn = {
|
|
|
2766
2790
|
})), d;
|
|
2767
2791
|
F(() => {
|
|
2768
2792
|
d = It(() => o.value, () => i("close")), o.value && $t(o.value)?.focus();
|
|
2769
|
-
}),
|
|
2770
|
-
d?.(),
|
|
2793
|
+
}), ie(() => {
|
|
2794
|
+
d?.(), yt(c);
|
|
2771
2795
|
}), t({ card: o });
|
|
2772
2796
|
function f(e) {
|
|
2773
2797
|
e.onClick?.() !== !1 && i("close");
|
|
2774
2798
|
}
|
|
2775
2799
|
function p() {
|
|
2776
|
-
|
|
2800
|
+
et() || i("close");
|
|
2777
2801
|
}
|
|
2778
|
-
return (t, n) => (
|
|
2802
|
+
return (t, n) => (L(), C(x, { to: "body" }, [E("div", {
|
|
2779
2803
|
class: "glim-modal-backdrop",
|
|
2780
|
-
onMousedown:
|
|
2804
|
+
onMousedown: Y(p, ["self"])
|
|
2781
2805
|
}, [E("div", M(t.$attrs, {
|
|
2782
2806
|
ref_key: "card",
|
|
2783
2807
|
ref: o,
|
|
2784
2808
|
role: "dialog",
|
|
2785
2809
|
"aria-modal": "true",
|
|
2786
|
-
"aria-labelledby": t.$slots.title ? void 0 :
|
|
2810
|
+
"aria-labelledby": t.$slots.title ? void 0 : W(s),
|
|
2787
2811
|
"aria-label": t.$slots.title ? e.title : void 0,
|
|
2788
2812
|
class: [
|
|
2789
2813
|
"glim-modal-card",
|
|
@@ -2792,7 +2816,7 @@ var mn = {
|
|
|
2792
2816
|
]
|
|
2793
2817
|
}), [
|
|
2794
2818
|
E("h2", {
|
|
2795
|
-
id:
|
|
2819
|
+
id: W(s),
|
|
2796
2820
|
class: "glim-window-title"
|
|
2797
2821
|
}, [k(rn, {
|
|
2798
2822
|
tone: "heading",
|
|
@@ -2800,11 +2824,11 @@ var mn = {
|
|
|
2800
2824
|
wrap: "",
|
|
2801
2825
|
"inset-start": 5
|
|
2802
2826
|
}, {
|
|
2803
|
-
default:
|
|
2827
|
+
default: q(() => [B(t.$slots, "title", {}, () => [O(U(e.title), 1)])]),
|
|
2804
2828
|
_: 3
|
|
2805
|
-
})], 8,
|
|
2806
|
-
E("div",
|
|
2807
|
-
u.value.length ? (
|
|
2829
|
+
})], 8, la),
|
|
2830
|
+
E("div", ua, [B(t.$slots, "default")]),
|
|
2831
|
+
u.value.length ? (L(), T("div", da, [l.value ? (L(), T("span", fa, [B(t.$slots, "start", {}, () => [O(U(e.start), 1)])])) : w("", !0), (L(!0), T(b, null, z(u.value, (e, t) => (L(), C(Z, M({ ref_for: !0 }, e.attrs, {
|
|
2808
2832
|
key: t,
|
|
2809
2833
|
label: e.label,
|
|
2810
2834
|
"label-key": e.labelKey,
|
|
@@ -2820,14 +2844,14 @@ var mn = {
|
|
|
2820
2844
|
"disabled",
|
|
2821
2845
|
"onClick"
|
|
2822
2846
|
]))), 128))])) : w("", !0)
|
|
2823
|
-
], 16,
|
|
2847
|
+
], 16, ca)], 32)]));
|
|
2824
2848
|
}
|
|
2825
2849
|
});
|
|
2826
2850
|
// src/confirm.ts
|
|
2827
|
-
function
|
|
2828
|
-
let t =
|
|
2851
|
+
function ma(e) {
|
|
2852
|
+
let t = H(null), n = H(null), r = null, i = null;
|
|
2829
2853
|
function a(e, n) {
|
|
2830
|
-
return i =
|
|
2854
|
+
return i = Ke(), new Promise((i) => {
|
|
2831
2855
|
r = i, t.value = {
|
|
2832
2856
|
message: e,
|
|
2833
2857
|
...n
|
|
@@ -2835,10 +2859,10 @@ function fa(e) {
|
|
|
2835
2859
|
});
|
|
2836
2860
|
}
|
|
2837
2861
|
function o(e) {
|
|
2838
|
-
r?.(e), r = null, t.value = null,
|
|
2862
|
+
r?.(e), r = null, t.value = null, yt(i), i = null;
|
|
2839
2863
|
}
|
|
2840
2864
|
let s = () => o(!1);
|
|
2841
|
-
return
|
|
2865
|
+
return K(t, (e, t, r) => {
|
|
2842
2866
|
e && r(Kt(() => n.value, s));
|
|
2843
2867
|
}), {
|
|
2844
2868
|
confirm: a,
|
|
@@ -2859,4 +2883,4 @@ function fa(e) {
|
|
|
2859
2883
|
})
|
|
2860
2884
|
};
|
|
2861
2885
|
}
|
|
2862
|
-
export { rn as Badge, on as BrandMark,
|
|
2886
|
+
export { rn as Badge, on as BrandMark, Z 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, Se 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, Q 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, $ as ReadmeButton, ni as RowMark, ci as Selector, pi as SidebarRow, Oi as SignInCard, gi as SignInField, Mi as SubCard, Li as Table, zi as TextArea, vi as TextField, Ki as ToastViewport, Xi as Toggle, na as Tree, sa as UnavailableNotice, pa as Window, u as glyphFor, Et as selectorTabId, s as setGlyphResolver, pn as useAccent, ma as useConfirm, y as useFieldName, ln as useHue, sn as useLabelMode, fn as useMotion, cn as useRainbow, dn as useShape, t as useTipBubble };
|