@glimstone/vue 4.2.8 → 4.3.5
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/InfoHelpCard.vue.d.ts +1 -1
- package/dist/InfoVersionCard.vue.d.ts +1 -1
- package/dist/Select-ohRK0e4y.js +514 -0
- package/dist/Select.js +1 -467
- package/dist/Selector.vue.d.ts +4 -3
- package/dist/SelectorSegment.vue.d.ts +3 -1
- package/dist/index.js +511 -472
- package/dist/info.d.ts +3 -1
- package/package.json +2 -2
- package/dist/TipWrap-rNAEgvb0.js +0 -51
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { n 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
|
|
5
|
-
import { COLOR_NAMES_DE as
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./Select-ohRK0e4y.js";
|
|
2
|
+
import { a as i, c as a, d as o, f as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v } from "./glyphs-CYhs4mrY.js";
|
|
3
|
+
import { n as ee, r as y, t as te } 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 ne, inject as re, mergeModels as j, mergeProps as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as ie, onMounted as F, onScopeDispose as I, onUnmounted as ae, onUpdated as oe, openBlock as L, provide as se, ref as R, renderList as z, renderSlot as B, resolveDynamicComponent as V, shallowReactive as ce, shallowRef as H, toDisplayString as U, unref as W, useAttrs as le, useId as ue, useModel as G, useSlots as de, vModelDynamic as fe, vModelText as pe, vShow as me, watch as K, watchEffect as he, withCtx as q, withDirectives as J, withKeys as ge, withModifiers as Y } from "vue";
|
|
5
|
+
import { COLOR_NAMES_DE as _e, COLOR_PICKER_TEXT as ve, COPIED_MS as ye, DEFAULT_MOTION as be, DEFAULT_SHAPE as xe, 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, labelInside as Ze, labelModeChanged as Qe, mailHref as $e, mediaMatches as et, menuIsOpen as tt, menuMove as nt, menuRowView as rt, meterView as it, narrowerThan as at, nearestColorName as ot, normalizeHex as st, offersMail as ct, openInBrowser as lt, pillClassName as ut, placeMenu as dt, placeSubmenu as ft, pressRowControl as pt, progressView as mt, rainbowState as ht, readmePartClass as gt, readmePartLabel as _t, readmeSoon as vt, readmeUnitClass as yt, resetBlocked as bt, returnFocus as xt, roveSelector as St, rovedIndex as Ct, runUpdateCheck as wt, segmentView as Tt, selectorAxis as Et, selectorFlex as Dt, selectorTabId as Ot, selectorTabId as kt, selectorView as At, setLabelMode as jt, shake as Mt, showRefusal as Nt, sidebarRowView as Pt, signInBlocked as Ft, signInStage as It, softBreaks as Lt, stackWindow as Rt, subscribeLabelMode as zt, subscribeMedia as Bt, subscribeRainbow as Vt, syncNumberSteppers as Ht, tableCellClass as Ut, takePageHue as Wt, textFieldClass as Gt, tidyMenu as Kt, toggleSelection as qt, trapDialogKeys as Jt, treeRows as Yt, treeStep as Xt, updateFace as Zt, updateStage as Qt, versionLink as X, watchSelectorFit as $t, windowFocusTarget as en, windowFoot as tn } from "@glimstone/core";
|
|
6
6
|
// src/IconTipButton.vue
|
|
7
|
-
var
|
|
7
|
+
var nn = /* @__PURE__ */ A({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "IconTipButton",
|
|
10
10
|
props: {
|
|
@@ -17,13 +17,13 @@ var tn = /* @__PURE__ */ A({
|
|
|
17
17
|
type: { default: "button" }
|
|
18
18
|
},
|
|
19
19
|
setup(r) {
|
|
20
|
-
let i = r, a =
|
|
21
|
-
return (
|
|
20
|
+
let i = r, a = e(() => i.tip, () => i.disabled);
|
|
21
|
+
return (e, i) => (L(), T(b, null, [k(W(t), {
|
|
22
22
|
on: r.disabled,
|
|
23
23
|
show: W(a).show,
|
|
24
24
|
hide: W(a).hide
|
|
25
25
|
}, {
|
|
26
|
-
default: q(() => [(L(), C(V(r.href && !r.disabled ? "a" : "button"), M(
|
|
26
|
+
default: q(() => [(L(), C(V(r.href && !r.disabled ? "a" : "button"), M(e.$attrs, {
|
|
27
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,
|
|
@@ -35,7 +35,7 @@ var tn = /* @__PURE__ */ A({
|
|
|
35
35
|
onFocus: W(a).showOnFocus,
|
|
36
36
|
onBlur: W(a).hide
|
|
37
37
|
}), {
|
|
38
|
-
default: q(() => [B(
|
|
38
|
+
default: q(() => [B(e.$slots, "default")]),
|
|
39
39
|
_: 3
|
|
40
40
|
}, 16, [
|
|
41
41
|
"href",
|
|
@@ -53,9 +53,9 @@ var tn = /* @__PURE__ */ A({
|
|
|
53
53
|
"on",
|
|
54
54
|
"show",
|
|
55
55
|
"hide"
|
|
56
|
-
]), k(
|
|
56
|
+
]), k(n, { state: W(a) }, null, 8, ["state"])], 64));
|
|
57
57
|
}
|
|
58
|
-
}),
|
|
58
|
+
}), rn = ["disabled"], an = /* @__PURE__ */ A({
|
|
59
59
|
__name: "Badge",
|
|
60
60
|
props: {
|
|
61
61
|
tone: { default: "neutral" },
|
|
@@ -93,7 +93,7 @@ var tn = /* @__PURE__ */ A({
|
|
|
93
93
|
action: t.as !== "span"
|
|
94
94
|
})
|
|
95
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(
|
|
96
|
+
return (t, n) => e.as === "button" && e.tip !== void 0 ? (L(), C(nn, {
|
|
97
97
|
key: 0,
|
|
98
98
|
tip: e.tip,
|
|
99
99
|
disabled: e.disabled,
|
|
@@ -113,7 +113,7 @@ var tn = /* @__PURE__ */ A({
|
|
|
113
113
|
disabled: e.disabled,
|
|
114
114
|
class: N(r.value),
|
|
115
115
|
style: P(i.value)
|
|
116
|
-
}, [B(t.$slots, "default")], 14,
|
|
116
|
+
}, [B(t.$slots, "default")], 14, rn)) : e.as === "a" ? (L(), T("a", {
|
|
117
117
|
key: 2,
|
|
118
118
|
class: N(r.value),
|
|
119
119
|
style: P(i.value)
|
|
@@ -123,7 +123,7 @@ var tn = /* @__PURE__ */ A({
|
|
|
123
123
|
style: P(i.value)
|
|
124
124
|
}, [B(t.$slots, "default")], 6));
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
126
|
+
}), on = ["innerHTML"], sn = /* @__PURE__ */ A({
|
|
127
127
|
__name: "BrandMark",
|
|
128
128
|
props: { svg: {} },
|
|
129
129
|
setup(e) {
|
|
@@ -131,65 +131,65 @@ var tn = /* @__PURE__ */ A({
|
|
|
131
131
|
class: "glim-brand-svg",
|
|
132
132
|
"aria-hidden": "true",
|
|
133
133
|
innerHTML: e.svg
|
|
134
|
-
}, null, 8,
|
|
134
|
+
}, null, 8, on));
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
// src/engines.ts
|
|
138
|
-
function
|
|
138
|
+
function cn(e) {
|
|
139
139
|
let t = H(qe(e));
|
|
140
|
-
return I(
|
|
140
|
+
return I(zt(() => t.value = qe(e))), S({
|
|
141
141
|
get: () => t.value,
|
|
142
142
|
set: (t) => {
|
|
143
|
-
|
|
143
|
+
jt(e, t), Qe();
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
let e = H(
|
|
149
|
-
return I(
|
|
147
|
+
function ln() {
|
|
148
|
+
let e = H(ht());
|
|
149
|
+
return I(Vt(() => e.value = ht())), S({
|
|
150
150
|
get: () => e.value,
|
|
151
151
|
set: (e) => ke(e)
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function un(e) {
|
|
155
155
|
return S(() => {
|
|
156
156
|
let t = e();
|
|
157
157
|
return t === void 0 ? void 0 : Je(t);
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function dn(e, t) {
|
|
161
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
|
-
function
|
|
168
|
-
let e =
|
|
167
|
+
function fn() {
|
|
168
|
+
let e = dn("data-shape", () => document.documentElement.getAttribute("data-shape") ?? xe);
|
|
169
169
|
return S({
|
|
170
170
|
get: () => e.value,
|
|
171
171
|
set: Ae
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
let e =
|
|
174
|
+
function pn() {
|
|
175
|
+
let e = dn("data-motion", () => document.documentElement.getAttribute("data-motion") ?? be);
|
|
176
176
|
return S({
|
|
177
177
|
get: () => e.value,
|
|
178
178
|
set: Oe
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
let e =
|
|
181
|
+
function mn() {
|
|
182
|
+
let e = dn("style", () => document.documentElement.style.getPropertyValue("--accent"));
|
|
183
183
|
return S({
|
|
184
184
|
get: () => e.value,
|
|
185
185
|
set: (e) => De(e || void 0)
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
// src/Button.vue?vue&type=script&setup=true&lang.ts
|
|
189
|
-
var
|
|
189
|
+
var hn = {
|
|
190
190
|
key: 0,
|
|
191
191
|
class: "glim-btn-glyph"
|
|
192
|
-
},
|
|
192
|
+
}, gn = {
|
|
193
193
|
key: 0,
|
|
194
194
|
class: "glim-spinner"
|
|
195
195
|
}, Z = /* @__PURE__ */ A({
|
|
@@ -223,13 +223,13 @@ var mn = {
|
|
|
223
223
|
size: {}
|
|
224
224
|
},
|
|
225
225
|
setup(r, { expose: i }) {
|
|
226
|
-
let a = r, o =
|
|
227
|
-
|
|
226
|
+
let a = r, o = cn("buttons"), s = H(!1);
|
|
227
|
+
he((e) => {
|
|
228
228
|
if (a.compactBelow === void 0) return void (s.value = !1);
|
|
229
|
-
let t =
|
|
230
|
-
n(), e(
|
|
229
|
+
let t = at(a.compactBelow), n = () => s.value = et(t);
|
|
230
|
+
n(), e(Bt(t, n));
|
|
231
231
|
});
|
|
232
|
-
let c = S(() => a.glyph ?? (a.labelKey ?
|
|
232
|
+
let c = S(() => a.glyph ?? (a.labelKey ? d(a.labelKey) : void 0) ?? (a.variant === "chip" ? h : void 0)), l = S(() => Ne({
|
|
233
233
|
mode: o.value,
|
|
234
234
|
label: a.label,
|
|
235
235
|
hasGlyph: !!c.value || a.busy,
|
|
@@ -242,26 +242,26 @@ var mn = {
|
|
|
242
242
|
title: a.title,
|
|
243
243
|
hueIndex: a.hueIndex,
|
|
244
244
|
stage: a.stage
|
|
245
|
-
})),
|
|
246
|
-
function
|
|
245
|
+
})), u = S(() => !!a.href && !a.disabled), f = e(() => l.value.tip, () => a.disabled), p = H(null);
|
|
246
|
+
function m(e) {
|
|
247
247
|
p.value = e, f.trigger.value = p.value;
|
|
248
248
|
}
|
|
249
249
|
function g(e) {
|
|
250
|
-
l.value.pageHue &&
|
|
250
|
+
l.value.pageHue && Wt(e.currentTarget), f.show();
|
|
251
251
|
}
|
|
252
252
|
function _(e) {
|
|
253
|
-
l.value.pageHue &&
|
|
253
|
+
l.value.pageHue && Wt(e.currentTarget), f.showOnFocus();
|
|
254
254
|
}
|
|
255
|
-
return i({ el: p }), (
|
|
255
|
+
return i({ el: p }), (e, i) => (L(), T(b, null, [k(W(t), {
|
|
256
256
|
on: r.disabled && !!l.value.tip,
|
|
257
257
|
show: W(f).show,
|
|
258
258
|
hide: W(f).hide
|
|
259
259
|
}, {
|
|
260
|
-
default: q(() => [(L(), C(V(
|
|
261
|
-
ref:
|
|
262
|
-
href:
|
|
263
|
-
type:
|
|
264
|
-
disabled:
|
|
260
|
+
default: q(() => [(L(), C(V(u.value ? "a" : "button"), M(e.$attrs, {
|
|
261
|
+
ref: m,
|
|
262
|
+
href: u.value ? r.href : void 0,
|
|
263
|
+
type: u.value ? void 0 : r.type,
|
|
264
|
+
disabled: u.value ? void 0 : r.disabled,
|
|
265
265
|
"aria-busy": r.busy || void 0,
|
|
266
266
|
"aria-describedby": W(f).describedBy.value,
|
|
267
267
|
style: l.value.style,
|
|
@@ -272,10 +272,10 @@ var mn = {
|
|
|
272
272
|
onBlur: W(f).hide
|
|
273
273
|
}), {
|
|
274
274
|
default: q(() => [
|
|
275
|
-
B(
|
|
276
|
-
l.value.showGlyph ? (L(), T("span",
|
|
275
|
+
B(e.$slots, "before"),
|
|
276
|
+
l.value.showGlyph ? (L(), T("span", hn, [r.busy ? (L(), T("span", gn)) : (L(), C(V(c.value), { key: 1 }))])) : w("", !0),
|
|
277
277
|
E("span", { class: N(l.value.labelClass) }, U(r.label), 3),
|
|
278
|
-
B(
|
|
278
|
+
B(e.$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(
|
|
297
|
+
]), k(n, { state: W(f) }, null, 8, ["state"])], 64));
|
|
298
298
|
}
|
|
299
|
-
}),
|
|
299
|
+
}), _n = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ A({
|
|
300
300
|
__name: "InfoBubble",
|
|
301
301
|
props: {
|
|
302
302
|
tip: {},
|
|
@@ -305,14 +305,14 @@ var mn = {
|
|
|
305
305
|
default: !1
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
|
-
setup(
|
|
309
|
-
let r =
|
|
310
|
-
return (
|
|
308
|
+
setup(t) {
|
|
309
|
+
let r = t, i = e(() => r.tip);
|
|
310
|
+
return (e, r) => (L(), T(b, null, [E("span", {
|
|
311
311
|
ref: (e) => W(i).trigger.value = e,
|
|
312
|
-
"aria-label":
|
|
312
|
+
"aria-label": t.tip,
|
|
313
313
|
"aria-describedby": W(i).describedBy.value,
|
|
314
314
|
tabindex: "0",
|
|
315
|
-
class: N(
|
|
315
|
+
class: N(t.onAccent ? "glim-info-icon glim-info-icon--on-accent" : "glim-info-icon"),
|
|
316
316
|
onMouseenter: r[0] ||= (...e) => W(i).show && W(i).show(...e),
|
|
317
317
|
onMouseleave: r[1] ||= (...e) => W(i).hide && W(i).hide(...e),
|
|
318
318
|
onFocus: r[2] ||= (...e) => W(i).showOnFocus && W(i).showOnFocus(...e),
|
|
@@ -344,12 +344,12 @@ var mn = {
|
|
|
344
344
|
"stroke-width": "1.3",
|
|
345
345
|
"stroke-linecap": "round"
|
|
346
346
|
})
|
|
347
|
-
], -1)]], 42,
|
|
347
|
+
], -1)]], 42, _n), k(n, { state: W(i) }, null, 8, ["state"])], 64));
|
|
348
348
|
}
|
|
349
|
-
}),
|
|
349
|
+
}), vn = {
|
|
350
350
|
key: 0,
|
|
351
351
|
class: "glim-panel-heading"
|
|
352
|
-
},
|
|
352
|
+
}, yn = /* @__PURE__ */ A({
|
|
353
353
|
__name: "Card",
|
|
354
354
|
props: {
|
|
355
355
|
title: {},
|
|
@@ -369,7 +369,7 @@ var mn = {
|
|
|
369
369
|
}
|
|
370
370
|
]),
|
|
371
371
|
style: P(n.value)
|
|
372
|
-
}, [e.title || e.hint || t.$slots.title ? (L(), T("h2",
|
|
372
|
+
}, [e.title || e.hint || t.$slots.title ? (L(), T("h2", vn, [k(an, {
|
|
373
373
|
tone: "heading",
|
|
374
374
|
size: "heading",
|
|
375
375
|
wrap: "",
|
|
@@ -383,14 +383,14 @@ var mn = {
|
|
|
383
383
|
_: 3
|
|
384
384
|
}, 8, ["hue-index"])])) : w("", !0), B(t.$slots, "default")], 6));
|
|
385
385
|
}
|
|
386
|
-
}),
|
|
386
|
+
}), bn = [
|
|
387
387
|
"aria-checked",
|
|
388
388
|
"aria-label",
|
|
389
389
|
"disabled"
|
|
390
|
-
],
|
|
390
|
+
], xn = {
|
|
391
391
|
class: "glim-checkbox-box",
|
|
392
392
|
"aria-hidden": "true"
|
|
393
|
-
},
|
|
393
|
+
}, Sn = { key: 0 }, Cn = /* @__PURE__ */ A({
|
|
394
394
|
__name: "Checkbox",
|
|
395
395
|
props: /*@__PURE__*/ j({
|
|
396
396
|
label: {},
|
|
@@ -424,18 +424,18 @@ 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",
|
|
427
|
+
}, [E("span", xn, [k(W(f))]), n.value ? w("", !0) : (L(), T("span", Sn, U(e.label), 1))], 10, bn));
|
|
428
428
|
}
|
|
429
|
-
}),
|
|
429
|
+
}), wn = { class: "glim-picker-foot" }, Tn = {
|
|
430
430
|
key: 0,
|
|
431
431
|
class: "glim-picker-name"
|
|
432
|
-
},
|
|
432
|
+
}, En = ["value", "aria-label"], Dn = { class: "glim-picker-actions" }, On = /* @__PURE__ */ A({
|
|
433
433
|
__name: "ColorPicker",
|
|
434
434
|
props: /*@__PURE__*/ j({
|
|
435
435
|
anchor: { default: null },
|
|
436
436
|
names: {
|
|
437
437
|
type: [Array, Boolean],
|
|
438
|
-
default: () =>
|
|
438
|
+
default: () => _e
|
|
439
439
|
},
|
|
440
440
|
text: {}
|
|
441
441
|
}, {
|
|
@@ -449,21 +449,21 @@ var mn = {
|
|
|
449
449
|
], ["update:modelValue"]),
|
|
450
450
|
setup(e, { emit: t }) {
|
|
451
451
|
let n = e, r = G(e, "modelValue"), i = t, a = {
|
|
452
|
-
...
|
|
452
|
+
...ve,
|
|
453
453
|
...n.text
|
|
454
|
-
}, o = H(null), s = H(null), c = R(
|
|
454
|
+
}, o = H(null), s = H(null), c = R(st(r.value) ?? "#000000"), l = R(c.value), u = S(() => n.names === !1 ? null : ot(c.value, n.names)), d = 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(
|
|
459
|
-
}),
|
|
460
|
-
let t =
|
|
461
|
-
t && (c.value = t, l.value = t,
|
|
458
|
+
s.value.appendChild(d.el), n.anchor && o.value && (p = Ve(o.value, n.anchor, () => i("close")), d.focus());
|
|
459
|
+
}), ie(() => p?.()), K(r, (e) => {
|
|
460
|
+
let t = st(e);
|
|
461
|
+
t && (c.value = t, l.value = t, d.setValue(t));
|
|
462
462
|
});
|
|
463
463
|
function m(e) {
|
|
464
464
|
l.value = e.target.value;
|
|
465
|
-
let t =
|
|
466
|
-
t && (c.value = t,
|
|
465
|
+
let t = st(l.value);
|
|
466
|
+
t && (c.value = t, d.setValue(t), i("input", t));
|
|
467
467
|
}
|
|
468
468
|
function h() {
|
|
469
469
|
r.value = c.value, i("apply", c.value, u.value), n.anchor && (n.anchor.focus(), i("close"));
|
|
@@ -486,12 +486,12 @@ var mn = {
|
|
|
486
486
|
ref: s,
|
|
487
487
|
style: { display: "contents" }
|
|
488
488
|
}, null, 512),
|
|
489
|
-
E("div",
|
|
489
|
+
E("div", wn, [
|
|
490
490
|
n[0] ||= E("span", {
|
|
491
491
|
class: "glim-picker-swatch",
|
|
492
492
|
"aria-hidden": "true"
|
|
493
493
|
}, null, -1),
|
|
494
|
-
u.value === null ? w("", !0) : (L(), T("span",
|
|
494
|
+
u.value === null ? w("", !0) : (L(), T("span", Tn, U(u.value), 1)),
|
|
495
495
|
E("input", {
|
|
496
496
|
class: "glim-picker-hex",
|
|
497
497
|
value: l.value,
|
|
@@ -499,27 +499,27 @@ var mn = {
|
|
|
499
499
|
spellcheck: "false",
|
|
500
500
|
"aria-label": a.hex,
|
|
501
501
|
onInput: m
|
|
502
|
-
}, null, 40,
|
|
502
|
+
}, null, 40, En)
|
|
503
503
|
]),
|
|
504
|
-
E("div",
|
|
504
|
+
E("div", Dn, [k(Z, {
|
|
505
505
|
label: a.apply,
|
|
506
506
|
"label-key": "apply",
|
|
507
|
-
glyph: W(
|
|
507
|
+
glyph: W(f),
|
|
508
508
|
tone: "accent",
|
|
509
509
|
onClick: h
|
|
510
510
|
}, null, 8, ["label", "glyph"])])
|
|
511
511
|
], 38)], 8, ["disabled"]));
|
|
512
512
|
}
|
|
513
|
-
}),
|
|
513
|
+
}), kn = { class: "glim-modal-head" }, An = {
|
|
514
514
|
id: "confirmdialog-title",
|
|
515
515
|
class: "glim-modal-title"
|
|
516
|
-
},
|
|
516
|
+
}, jn = { class: "glim-modal-body" }, Mn = {
|
|
517
517
|
id: "confirmdialog-message",
|
|
518
518
|
class: "glim-modal-text"
|
|
519
|
-
},
|
|
519
|
+
}, Nn = {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: "glim-modal-extra"
|
|
522
|
-
},
|
|
522
|
+
}, Pn = { class: "glim-modal-foot" }, Fn = /* @__PURE__ */ A({
|
|
523
523
|
__name: "ConfirmDialog",
|
|
524
524
|
props: {
|
|
525
525
|
title: {},
|
|
@@ -545,7 +545,7 @@ var mn = {
|
|
|
545
545
|
"aria-describedby": "confirmdialog-message",
|
|
546
546
|
class: "glim-modal-card"
|
|
547
547
|
}, [
|
|
548
|
-
E("div",
|
|
548
|
+
E("div", kn, [E("h2", An, [k(an, {
|
|
549
549
|
tone: "heading",
|
|
550
550
|
size: "heading",
|
|
551
551
|
wrap: ""
|
|
@@ -556,17 +556,17 @@ var mn = {
|
|
|
556
556
|
key: 0,
|
|
557
557
|
label: e.closeLabel,
|
|
558
558
|
"label-key": "common.close",
|
|
559
|
-
glyph: W(
|
|
559
|
+
glyph: W(h),
|
|
560
560
|
class: "glim-modal-close",
|
|
561
561
|
onClick: n[0] ||= (e) => r("cancel")
|
|
562
562
|
}, null, 8, ["label", "glyph"]))]),
|
|
563
|
-
E("div",
|
|
564
|
-
E("div",
|
|
563
|
+
E("div", jn, [E("p", Mn, U(e.message), 1), t.$slots.extra ? (L(), T("div", Nn, [B(t.$slots, "extra")])) : w("", !0)]),
|
|
564
|
+
E("div", Pn, [k(Z, {
|
|
565
565
|
ref_key: "cancel",
|
|
566
566
|
ref: a,
|
|
567
567
|
label: e.cancelLabel,
|
|
568
568
|
"label-key": "common.cancel",
|
|
569
|
-
glyph: W(
|
|
569
|
+
glyph: W(_),
|
|
570
570
|
onClick: n[1] ||= (e) => r("cancel")
|
|
571
571
|
}, null, 8, ["label", "glyph"]), k(Z, {
|
|
572
572
|
label: e.confirmLabel,
|
|
@@ -580,20 +580,20 @@ var mn = {
|
|
|
580
580
|
])])
|
|
581
581
|
], 512)]));
|
|
582
582
|
}
|
|
583
|
-
}),
|
|
583
|
+
}), In = { class: "glim-kbd" }, Ln = /* @__PURE__ */ A({
|
|
584
584
|
__name: "Kbd",
|
|
585
585
|
setup(e) {
|
|
586
|
-
return (e, t) => (L(), T("kbd",
|
|
586
|
+
return (e, t) => (L(), T("kbd", In, [B(e.$slots, "default")]));
|
|
587
587
|
}
|
|
588
|
-
}),
|
|
588
|
+
}), Rn = {
|
|
589
589
|
key: 0,
|
|
590
590
|
class: "glim-menu-sep",
|
|
591
591
|
role: "separator"
|
|
592
|
-
},
|
|
592
|
+
}, zn = {
|
|
593
593
|
key: 1,
|
|
594
594
|
class: "glim-menu-head",
|
|
595
595
|
role: "presentation"
|
|
596
|
-
},
|
|
596
|
+
}, Bn = [
|
|
597
597
|
"role",
|
|
598
598
|
"aria-checked",
|
|
599
599
|
"aria-haspopup",
|
|
@@ -601,26 +601,26 @@ var mn = {
|
|
|
601
601
|
"disabled",
|
|
602
602
|
"data-row",
|
|
603
603
|
"onClick"
|
|
604
|
-
],
|
|
604
|
+
], Vn = {
|
|
605
605
|
key: 0,
|
|
606
606
|
class: "glim-checkbox-box",
|
|
607
607
|
"aria-hidden": "true"
|
|
608
|
-
},
|
|
608
|
+
}, Hn = {
|
|
609
609
|
key: 2,
|
|
610
610
|
class: "glim-menu-glyph",
|
|
611
611
|
"aria-hidden": "true"
|
|
612
|
-
},
|
|
612
|
+
}, Un = { class: "glim-menu-label" }, Wn = {
|
|
613
613
|
key: 3,
|
|
614
614
|
class: "glim-menu-end glim-menu-caret",
|
|
615
615
|
"aria-hidden": "true"
|
|
616
|
-
},
|
|
616
|
+
}, Gn = {
|
|
617
617
|
key: 4,
|
|
618
618
|
class: "glim-menu-end glim-menu-tick",
|
|
619
619
|
"aria-hidden": "true"
|
|
620
|
-
},
|
|
620
|
+
}, Kn = {
|
|
621
621
|
key: 6,
|
|
622
622
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
623
|
-
},
|
|
623
|
+
}, qn = /* @__PURE__ */ A({
|
|
624
624
|
__name: "MenuRows",
|
|
625
625
|
props: {
|
|
626
626
|
entries: {},
|
|
@@ -628,24 +628,24 @@ var mn = {
|
|
|
628
628
|
},
|
|
629
629
|
emits: ["pick"],
|
|
630
630
|
setup(e, { emit: t }) {
|
|
631
|
-
let n = e,
|
|
631
|
+
let n = e, r = 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: rt(e)
|
|
638
638
|
}));
|
|
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",
|
|
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", Rn)) : t.kind === "head" ? (L(), T("div", zn, [E("span", null, U(t.head.head), 1), t.head.edit ? (L(), C(nn, {
|
|
640
640
|
key: 0,
|
|
641
641
|
tip: t.head.edit.tip,
|
|
642
642
|
role: "menuitem",
|
|
643
643
|
tabindex: "-1",
|
|
644
644
|
class: "glim-menu-head-edit",
|
|
645
645
|
"data-row": n,
|
|
646
|
-
onClick: (e) =>
|
|
646
|
+
onClick: (e) => r("pick", n)
|
|
647
647
|
}, {
|
|
648
|
-
default: q(() => [(L(), C(V(t.head.edit.glyph ?? W(
|
|
648
|
+
default: q(() => [(L(), C(V(t.head.edit.glyph ?? W(u))))]),
|
|
649
649
|
_: 2
|
|
650
650
|
}, 1032, [
|
|
651
651
|
"tip",
|
|
@@ -662,25 +662,25 @@ var mn = {
|
|
|
662
662
|
disabled: t.item.disabled,
|
|
663
663
|
class: N(["glim-menu-item", { "glim-menu-item--current": t.view.current }]),
|
|
664
664
|
"data-row": n,
|
|
665
|
-
onClick: (e) =>
|
|
665
|
+
onClick: (e) => r("pick", n)
|
|
666
666
|
}, [
|
|
667
|
-
t.view.lead === "box" ? (L(), T("span",
|
|
667
|
+
t.view.lead === "box" ? (L(), T("span", Vn, [k(W(f))])) : 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)) : (L(), T("span",
|
|
673
|
-
E("span",
|
|
674
|
-
t.view.end === "submenu" ? (L(), T("span",
|
|
672
|
+
}, null, 4)) : (L(), T("span", Hn, [t.view.lead === "glyph" ? (L(), C(V(t.item.glyph), { key: 0 })) : w("", !0)])),
|
|
673
|
+
E("span", Un, U(t.item.label), 1),
|
|
674
|
+
t.view.end === "submenu" ? (L(), T("span", Wn, [k(W(i))])) : t.view.end === "tick" ? (L(), T("span", Gn, [k(W(f))])) : t.view.end === "shortcut" ? (L(), C(Ln, {
|
|
675
675
|
key: 5,
|
|
676
676
|
class: "glim-menu-end"
|
|
677
677
|
}, {
|
|
678
678
|
default: q(() => [O(U(t.item.shortcut), 1)]),
|
|
679
679
|
_: 2
|
|
680
|
-
}, 1024)) : t.view.end === "count" ? (L(), T("span",
|
|
681
|
-
], 10,
|
|
680
|
+
}, 1024)) : t.view.end === "count" ? (L(), T("span", Kn, U(t.item.count), 1)) : w("", !0)
|
|
681
|
+
], 10, Bn))], 64))), 128));
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), Jn = ["id", "aria-label"], Yn = ["id", "aria-label"], Xn = /* @__PURE__ */ A({
|
|
684
684
|
__name: "ContextMenu",
|
|
685
685
|
props: {
|
|
686
686
|
x: {},
|
|
@@ -699,19 +699,19 @@ var mn = {
|
|
|
699
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 = H(null), l = R(null), u = S(() =>
|
|
702
|
+
}), c = H(null), l = R(null), u = S(() => Kt(n.items)), d = S(() => {
|
|
703
703
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
704
704
|
return e && e !== "-" && !Ye(e) && e.sub ? e : null;
|
|
705
|
-
}), f = S(() => d.value?.sub ?
|
|
705
|
+
}), f = S(() => d.value?.sub ? Kt(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 && xt(n.opener ?? o);
|
|
711
711
|
}
|
|
712
712
|
function h() {
|
|
713
713
|
let e = i.value;
|
|
714
|
-
e && (s.value =
|
|
714
|
+
e && (s.value = dt(n.x, n.y, {
|
|
715
715
|
width: e.offsetWidth,
|
|
716
716
|
height: e.offsetHeight
|
|
717
717
|
}, p(), n.above));
|
|
@@ -728,14 +728,14 @@ var mn = {
|
|
|
728
728
|
a.value,
|
|
729
729
|
n.opener
|
|
730
730
|
], () => m(!1)), i.value && Ue(i.value);
|
|
731
|
-
}),
|
|
731
|
+
}), ae(() => {
|
|
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 = ft(t.getBoundingClientRect(), {
|
|
739
739
|
width: n.offsetWidth,
|
|
740
740
|
height: n.offsetHeight
|
|
741
741
|
}, p(), r), e.focus && Ue(n);
|
|
@@ -745,11 +745,11 @@ var mn = {
|
|
|
745
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
|
+
} : (rt(n).staysOpen || m(!0), n.onSelect?.()));
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function ee(e, t) {
|
|
751
751
|
if (e.key === "Tab") return m(!1);
|
|
752
|
-
let n = e.currentTarget, a =
|
|
752
|
+
let n = e.currentTarget, a = nt(e.key, getComputedStyle(n).direction === "rtl");
|
|
753
753
|
if (!a) return;
|
|
754
754
|
if (e.preventDefault(), a !== "in" && a !== "out") return We(n, a);
|
|
755
755
|
if (t) {
|
|
@@ -762,7 +762,7 @@ var mn = {
|
|
|
762
762
|
focus: !0
|
|
763
763
|
} : r("step", a === "in" ? 1 : -1);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function y(e) {
|
|
766
766
|
let t = e.target.closest("[data-row]");
|
|
767
767
|
if (!t) return;
|
|
768
768
|
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !Ye(r) && !!r.sub && !r.disabled;
|
|
@@ -782,14 +782,14 @@ var mn = {
|
|
|
782
782
|
left: `${s.value.left}px`,
|
|
783
783
|
top: `${s.value.top}px`
|
|
784
784
|
}),
|
|
785
|
-
onKeydown: n[1] ||= (e) =>
|
|
786
|
-
onMouseover:
|
|
785
|
+
onKeydown: n[1] ||= (e) => ee(e, !1),
|
|
786
|
+
onMouseover: y,
|
|
787
787
|
onContextmenu: n[2] ||= Y(() => {}, ["prevent"])
|
|
788
|
-
}, [k(
|
|
788
|
+
}, [k(qn, {
|
|
789
789
|
entries: u.value,
|
|
790
790
|
"open-at": c.value?.at,
|
|
791
791
|
onPick: n[0] ||= (e) => v(u.value, e)
|
|
792
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
792
|
+
}, null, 8, ["entries", "open-at"])], 44, Jn), f.value ? (L(), T("div", {
|
|
793
793
|
key: 0,
|
|
794
794
|
id: d.value?.subId,
|
|
795
795
|
ref_key: "subMenu",
|
|
@@ -801,17 +801,17 @@ var mn = {
|
|
|
801
801
|
left: `${l.value?.left ?? 0}px`,
|
|
802
802
|
top: `${l.value?.top ?? 0}px`
|
|
803
803
|
}),
|
|
804
|
-
onKeydown: n[4] ||= (e) =>
|
|
804
|
+
onKeydown: n[4] ||= (e) => ee(e, !0),
|
|
805
805
|
onContextmenu: n[5] ||= Y(() => {}, ["prevent"])
|
|
806
|
-
}, [k(
|
|
806
|
+
}, [k(qn, {
|
|
807
807
|
entries: f.value,
|
|
808
808
|
onPick: n[3] ||= (e) => v(f.value, e)
|
|
809
|
-
}, null, 8, ["entries"])], 44,
|
|
809
|
+
}, null, 8, ["entries"])], 44, Yn)) : w("", !0)]));
|
|
810
810
|
}
|
|
811
|
-
}),
|
|
811
|
+
}), Zn = ["value", "aria-label"], Qn = {
|
|
812
812
|
role: "status",
|
|
813
813
|
class: "glim-sr-only"
|
|
814
|
-
},
|
|
814
|
+
}, $n = /* @__PURE__ */ A({
|
|
815
815
|
__name: "CopyField",
|
|
816
816
|
props: {
|
|
817
817
|
value: {},
|
|
@@ -825,10 +825,10 @@ var mn = {
|
|
|
825
825
|
emits: ["copy"],
|
|
826
826
|
setup(e, { emit: t }) {
|
|
827
827
|
let n = e, r = t, i = y(() => n.label), a = R(!1), o = H(null), s;
|
|
828
|
-
|
|
829
|
-
async function
|
|
828
|
+
ie(() => clearTimeout(s));
|
|
829
|
+
async function c() {
|
|
830
830
|
let e = await Le(n.value);
|
|
831
|
-
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1,
|
|
831
|
+
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, ye)) : (o.value?.focus(), o.value?.select());
|
|
832
832
|
}
|
|
833
833
|
return (t, n) => (L(), T("span", { class: N(["glim-copy", W(Be)(e.width)]) }, [
|
|
834
834
|
E("input", {
|
|
@@ -839,29 +839,29 @@ var mn = {
|
|
|
839
839
|
"aria-label": W(i),
|
|
840
840
|
spellcheck: "false",
|
|
841
841
|
class: "glim-input glim-input--mono"
|
|
842
|
-
}, null, 8,
|
|
842
|
+
}, null, 8, Zn),
|
|
843
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 ? W(
|
|
846
|
+
glyph: a.value ? W(f) : W(l),
|
|
847
847
|
variant: "icon",
|
|
848
|
-
onClick:
|
|
848
|
+
onClick: c
|
|
849
849
|
}, null, 8, [
|
|
850
850
|
"label",
|
|
851
851
|
"label-key",
|
|
852
852
|
"glyph"
|
|
853
853
|
]),
|
|
854
|
-
E("span",
|
|
854
|
+
E("span", Qn, U(a.value ? e.text.copied : ""), 1)
|
|
855
855
|
], 2));
|
|
856
856
|
}
|
|
857
|
-
}),
|
|
857
|
+
}), er = {
|
|
858
858
|
key: 0,
|
|
859
859
|
class: "glim-empty-glyph",
|
|
860
860
|
"aria-hidden": "true"
|
|
861
|
-
},
|
|
861
|
+
}, tr = { class: "glim-empty-title" }, nr = {
|
|
862
862
|
key: 1,
|
|
863
863
|
class: "glim-empty-hint"
|
|
864
|
-
},
|
|
864
|
+
}, rr = /* @__PURE__ */ A({
|
|
865
865
|
__name: "EmptyState",
|
|
866
866
|
props: {
|
|
867
867
|
glyph: {},
|
|
@@ -874,23 +874,23 @@ var mn = {
|
|
|
874
874
|
},
|
|
875
875
|
setup(e) {
|
|
876
876
|
return (t, n) => (L(), T("div", { class: N(e.nested ? "glim-empty" : "glim-card glim-empty") }, [
|
|
877
|
-
e.glyph ? (L(), T("span",
|
|
878
|
-
E("p",
|
|
879
|
-
e.hint ? (L(), T("p",
|
|
877
|
+
e.glyph ? (L(), T("span", er, [(L(), C(V(e.glyph)))])) : w("", !0),
|
|
878
|
+
E("p", tr, U(e.title), 1),
|
|
879
|
+
e.hint ? (L(), T("p", nr, U(e.hint), 1)) : w("", !0),
|
|
880
880
|
B(t.$slots, "default")
|
|
881
881
|
], 2));
|
|
882
882
|
}
|
|
883
|
-
}),
|
|
883
|
+
}), ir = /* @__PURE__ */ A({
|
|
884
884
|
__name: "Pill",
|
|
885
885
|
props: { tone: { default: "neutral" } },
|
|
886
886
|
setup(e) {
|
|
887
|
-
let t = e, n = S(() =>
|
|
887
|
+
let t = e, n = S(() => ut(t.tone));
|
|
888
888
|
return (e, t) => (L(), T("span", { class: N(n.value) }, [B(e.$slots, "default")], 2));
|
|
889
889
|
}
|
|
890
|
-
}),
|
|
890
|
+
}), ar = { class: "glim-field-row-name" }, or = {
|
|
891
891
|
key: 0,
|
|
892
892
|
class: "glim-field-row-controls"
|
|
893
|
-
},
|
|
893
|
+
}, sr = /* @__PURE__ */ A({
|
|
894
894
|
__name: "FieldRow",
|
|
895
895
|
props: {
|
|
896
896
|
label: {},
|
|
@@ -901,26 +901,26 @@ var mn = {
|
|
|
901
901
|
},
|
|
902
902
|
setup(e) {
|
|
903
903
|
let t = e;
|
|
904
|
-
|
|
905
|
-
let n =
|
|
904
|
+
se(te, S(() => t.label));
|
|
905
|
+
let n = re(ee, !1), r = H(null);
|
|
906
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
|
-
}, [E("span",
|
|
910
|
+
}, [E("span", ar, [E("span", {
|
|
911
911
|
class: "glim-field-row-label",
|
|
912
|
-
onClick: i[0] ||= (e) => W(
|
|
912
|
+
onClick: i[0] ||= (e) => W(pt)(r.value)
|
|
913
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)]), W(n) ? (L(), T("span",
|
|
916
|
+
}, null, 8, ["tip"])) : w("", !0)]), W(n) ? (L(), T("span", or, [B(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (L(), C(ir, {
|
|
917
917
|
key: 0,
|
|
918
918
|
class: "glim-num",
|
|
919
919
|
tone: e.tone
|
|
920
920
|
}, {
|
|
921
921
|
default: q(() => [O(U(e.value), 1)]),
|
|
922
922
|
_: 1
|
|
923
|
-
}, 8, ["tone"]))])])) : B(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (L(), C(
|
|
923
|
+
}, 8, ["tone"]))])])) : B(t.$slots, "default", {}, () => [e.value === void 0 ? w("", !0) : (L(), C(ir, {
|
|
924
924
|
key: 0,
|
|
925
925
|
class: "glim-num",
|
|
926
926
|
tone: e.tone
|
|
@@ -929,19 +929,19 @@ var mn = {
|
|
|
929
929
|
_: 1
|
|
930
930
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
931
931
|
}
|
|
932
|
-
}),
|
|
932
|
+
}), cr = /* @__PURE__ */ A({
|
|
933
933
|
__name: "FieldRowGroup",
|
|
934
934
|
props: { columns: {} },
|
|
935
935
|
setup(e) {
|
|
936
|
-
return
|
|
936
|
+
return se(ee, !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
|
+
}), lr = {
|
|
942
942
|
class: "glim-glyph-field-glyph",
|
|
943
943
|
"aria-hidden": "true"
|
|
944
|
-
},
|
|
944
|
+
}, ur = ["aria-label"], dr = /* @__PURE__ */ A({
|
|
945
945
|
inheritAttrs: !1,
|
|
946
946
|
__name: "GlyphField",
|
|
947
947
|
props: /*@__PURE__*/ j({
|
|
@@ -966,7 +966,7 @@ var mn = {
|
|
|
966
966
|
]),
|
|
967
967
|
style: P(t.$attrs.style)
|
|
968
968
|
}, [
|
|
969
|
-
E("span",
|
|
969
|
+
E("span", lr, [(L(), C(V(e.glyph)))]),
|
|
970
970
|
J(E("input", M({
|
|
971
971
|
ref_key: "input",
|
|
972
972
|
ref: o,
|
|
@@ -977,11 +977,11 @@ var mn = {
|
|
|
977
977
|
...t.$attrs,
|
|
978
978
|
class: void 0,
|
|
979
979
|
style: void 0
|
|
980
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
980
|
+
}, { class: "glim-glyph-field-input" }), null, 16, ur), [[pe, r.value]]),
|
|
981
981
|
B(t.$slots, "after")
|
|
982
982
|
], 6));
|
|
983
983
|
}
|
|
984
|
-
}),
|
|
984
|
+
}), fr = /* @__PURE__ */ A({
|
|
985
985
|
__name: "GlyphTile",
|
|
986
986
|
props: {
|
|
987
987
|
glyph: {},
|
|
@@ -999,11 +999,11 @@ var mn = {
|
|
|
999
999
|
"aria-hidden": "true"
|
|
1000
1000
|
}, [(L(), C(V(e.glyph)))], 2));
|
|
1001
1001
|
}
|
|
1002
|
-
}),
|
|
1002
|
+
}), pr = {
|
|
1003
1003
|
key: 0,
|
|
1004
1004
|
class: "glim-icon-btn-gap",
|
|
1005
1005
|
"aria-hidden": "true"
|
|
1006
|
-
},
|
|
1006
|
+
}, mr = /* @__PURE__ */ A({
|
|
1007
1007
|
__name: "IconButton",
|
|
1008
1008
|
props: {
|
|
1009
1009
|
tip: {},
|
|
@@ -1018,9 +1018,9 @@ var mn = {
|
|
|
1018
1018
|
},
|
|
1019
1019
|
setup(e) {
|
|
1020
1020
|
function t(e) {
|
|
1021
|
-
|
|
1021
|
+
Wt(e.currentTarget);
|
|
1022
1022
|
}
|
|
1023
|
-
return (n, r) => e.absent ? (L(), T("span",
|
|
1023
|
+
return (n, r) => e.absent ? (L(), T("span", pr)) : (L(), C(nn, {
|
|
1024
1024
|
key: 1,
|
|
1025
1025
|
tip: e.tip,
|
|
1026
1026
|
href: e.href,
|
|
@@ -1039,18 +1039,18 @@ var mn = {
|
|
|
1039
1039
|
"disabled"
|
|
1040
1040
|
]));
|
|
1041
1041
|
}
|
|
1042
|
-
}),
|
|
1042
|
+
}), hr = {
|
|
1043
1043
|
key: 0,
|
|
1044
1044
|
class: "glim-readme-btn-art",
|
|
1045
1045
|
"aria-hidden": "true"
|
|
1046
|
-
},
|
|
1046
|
+
}, gr = { class: "glim-readme-btn-text" }, _r = { class: "glim-readme-btn-name" }, vr = {
|
|
1047
1047
|
key: 0,
|
|
1048
1048
|
class: "glim-readme-btn-sub"
|
|
1049
|
-
},
|
|
1049
|
+
}, yr = {
|
|
1050
1050
|
key: 0,
|
|
1051
1051
|
class: "glim-readme-btn-sheen",
|
|
1052
1052
|
"aria-hidden": "true"
|
|
1053
|
-
},
|
|
1053
|
+
}, br = {
|
|
1054
1054
|
key: 1,
|
|
1055
1055
|
class: "glim-readme-btn-hint"
|
|
1056
1056
|
}, $ = /* @__PURE__ */ A({
|
|
@@ -1068,11 +1068,11 @@ var mn = {
|
|
|
1068
1068
|
},
|
|
1069
1069
|
emits: ["linkClick"],
|
|
1070
1070
|
setup(e, { emit: t }) {
|
|
1071
|
-
let n = e, r = t, i = S(() =>
|
|
1071
|
+
let n = e, r = t, i = S(() => vt(n.parts)), a = H(null), o = S(() => n.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (i.value ? n.soonLabel : "")), s;
|
|
1072
1072
|
K([a, o], () => {
|
|
1073
1073
|
s?.(), s = a.value ? Xe(a.value) : void 0;
|
|
1074
1074
|
}, { flush: "post" }), I(() => s?.());
|
|
1075
|
-
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) =>
|
|
1075
|
+
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) => _t(e, c(e)), 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",
|
|
1078
1078
|
rel: "noreferrer noopener",
|
|
@@ -1084,24 +1084,24 @@ var mn = {
|
|
|
1084
1084
|
return (t, n) => (L(), T("div", {
|
|
1085
1085
|
ref_key: "root",
|
|
1086
1086
|
ref: a,
|
|
1087
|
-
class: N(W(
|
|
1087
|
+
class: N(W(yt)(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: W(
|
|
1091
|
+
class: W(gt)(r, i.value)
|
|
1092
1092
|
}), {
|
|
1093
|
-
default: q(() => [r === 0 && t.$slots.art ? (L(), T("span",
|
|
1093
|
+
default: q(() => [r === 0 && t.$slots.art ? (L(), T("span", hr, [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
|
-
}, [B(t.$slots, "mark")], 2)) : w("", !0), E("span",
|
|
1097
|
+
}, [B(t.$slots, "mark")], 2)) : w("", !0), E("span", gr, [E("span", _r, U(n.name), 1), c(n) ? (L(), T("span", vr, U(c(n)), 1)) : w("", !0)])], 64))]),
|
|
1098
1098
|
_: 2
|
|
1099
1099
|
}, 1040, ["aria-label", "class"]))), 128)),
|
|
1100
|
-
i.value ? w("", !0) : (L(), T("span",
|
|
1101
|
-
e.hint ? (L(), T("span",
|
|
1100
|
+
i.value ? w("", !0) : (L(), T("span", yr)),
|
|
1101
|
+
e.hint ? (L(), T("span", br, [k(Q, { tip: e.hint }, null, 8, ["tip"])])) : w("", !0)
|
|
1102
1102
|
], 2));
|
|
1103
1103
|
}
|
|
1104
|
-
}),
|
|
1104
|
+
}), xr = { class: "glim-info-text" }, Sr = { class: "glim-info-text" }, Cr = { class: "glim-readme-btn-rows glim-about-give" }, wr = /* @__PURE__ */ A({
|
|
1105
1105
|
__name: "InfoAboutCard",
|
|
1106
1106
|
props: {
|
|
1107
1107
|
text: {},
|
|
@@ -1114,14 +1114,14 @@ var mn = {
|
|
|
1114
1114
|
hueIndex: {}
|
|
1115
1115
|
},
|
|
1116
1116
|
setup(e) {
|
|
1117
|
-
return (t, n) => (L(), C(
|
|
1117
|
+
return (t, n) => (L(), C(yn, {
|
|
1118
1118
|
title: e.text.title,
|
|
1119
1119
|
"hue-index": e.hueIndex
|
|
1120
1120
|
}, {
|
|
1121
1121
|
default: q(() => [
|
|
1122
|
-
E("p",
|
|
1123
|
-
E("p",
|
|
1124
|
-
E("div",
|
|
1122
|
+
E("p", xr, U(e.text.body), 1),
|
|
1123
|
+
E("p", Sr, U(e.text.coffee), 1),
|
|
1124
|
+
E("div", Cr, [
|
|
1125
1125
|
k($, {
|
|
1126
1126
|
brand: "coffee",
|
|
1127
1127
|
parts: [{
|
|
@@ -1163,7 +1163,7 @@ var mn = {
|
|
|
1163
1163
|
_: 1
|
|
1164
1164
|
}, 8, ["title", "hue-index"]));
|
|
1165
1165
|
}
|
|
1166
|
-
}),
|
|
1166
|
+
}), Tr = { class: "glim-info-text" }, Er = { class: "glim-readme-btn-rows" }, Dr = /* @__PURE__ */ A({
|
|
1167
1167
|
__name: "InfoHelpCard",
|
|
1168
1168
|
props: {
|
|
1169
1169
|
text: {},
|
|
@@ -1175,17 +1175,20 @@ var mn = {
|
|
|
1175
1175
|
manualGlyph: {},
|
|
1176
1176
|
onBugReport: {},
|
|
1177
1177
|
bugGlyph: {},
|
|
1178
|
-
openUrl: {
|
|
1178
|
+
openUrl: {
|
|
1179
|
+
type: Function,
|
|
1180
|
+
default: lt
|
|
1181
|
+
},
|
|
1179
1182
|
hueIndex: {}
|
|
1180
1183
|
},
|
|
1181
1184
|
setup(e) {
|
|
1182
|
-
let t = e, n = S(() =>
|
|
1183
|
-
return (t, r) => (L(), C(
|
|
1185
|
+
let t = e, n = S(() => ct(t.text.report, t.mailAddress));
|
|
1186
|
+
return (t, r) => (L(), C(yn, {
|
|
1184
1187
|
title: e.text.title,
|
|
1185
1188
|
hint: e.text.hint,
|
|
1186
1189
|
"hue-index": e.hueIndex
|
|
1187
1190
|
}, {
|
|
1188
|
-
default: q(() => [E("p",
|
|
1191
|
+
default: q(() => [E("p", Tr, U(e.text.report), 1), E("div", Er, [
|
|
1189
1192
|
k($, {
|
|
1190
1193
|
brand: "github",
|
|
1191
1194
|
parts: [{
|
|
@@ -1203,7 +1206,7 @@ var mn = {
|
|
|
1203
1206
|
brand: "house",
|
|
1204
1207
|
parts: [{
|
|
1205
1208
|
name: e.text.mailButton,
|
|
1206
|
-
onClick: () => e.openUrl(W(
|
|
1209
|
+
onClick: () => e.openUrl(W($e)(e.mailAddress, e.text.mailSubject))
|
|
1207
1210
|
}],
|
|
1208
1211
|
"mark-class": "glim-house-mark"
|
|
1209
1212
|
}, D({ _: 2 }, [e.mailGlyph ? {
|
|
@@ -1246,54 +1249,57 @@ var mn = {
|
|
|
1246
1249
|
"hue-index"
|
|
1247
1250
|
]));
|
|
1248
1251
|
}
|
|
1249
|
-
}),
|
|
1252
|
+
}), Or = { class: "glim-version-rows" }, kr = { class: "glim-version-name" }, Ar = { class: "glim-version-part" }, jr = {
|
|
1250
1253
|
key: 0,
|
|
1251
1254
|
class: "glim-version-sub"
|
|
1252
|
-
},
|
|
1255
|
+
}, Mr = ["href", "onClick"], Nr = {
|
|
1253
1256
|
key: 1,
|
|
1254
1257
|
class: "glim-num glim-version-number"
|
|
1255
|
-
},
|
|
1258
|
+
}, Pr = {
|
|
1256
1259
|
key: 0,
|
|
1257
1260
|
class: "glim-version-actions"
|
|
1258
|
-
},
|
|
1261
|
+
}, Fr = {
|
|
1259
1262
|
role: "status",
|
|
1260
1263
|
class: "glim-sr-only"
|
|
1261
|
-
},
|
|
1264
|
+
}, Ir = /* @__PURE__ */ A({
|
|
1262
1265
|
__name: "InfoVersionCard",
|
|
1263
1266
|
props: {
|
|
1264
1267
|
text: {},
|
|
1265
1268
|
rows: {},
|
|
1266
1269
|
updateCheck: {},
|
|
1267
1270
|
onReleaseNotes: {},
|
|
1268
|
-
openUrl: {
|
|
1271
|
+
openUrl: {
|
|
1272
|
+
type: Function,
|
|
1273
|
+
default: lt
|
|
1274
|
+
},
|
|
1269
1275
|
hueIndex: {}
|
|
1270
1276
|
},
|
|
1271
1277
|
setup(e) {
|
|
1272
|
-
let t = e, n =
|
|
1278
|
+
let t = e, n = de(), r = S(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = H({ kind: "idle" }), a = H(0), o = S(() => t.updateCheck && Zt(i.value, t.updateCheck.text));
|
|
1273
1279
|
function s() {
|
|
1274
|
-
|
|
1280
|
+
wt(t.updateCheck, i.value, (e) => {
|
|
1275
1281
|
i.value = e, e.kind === "failed" && a.value++;
|
|
1276
1282
|
});
|
|
1277
1283
|
}
|
|
1278
1284
|
function c(e, n) {
|
|
1279
1285
|
e.preventDefault(), t.openUrl(n);
|
|
1280
1286
|
}
|
|
1281
|
-
return (t, n) => (L(), C(
|
|
1287
|
+
return (t, n) => (L(), C(yn, {
|
|
1282
1288
|
title: e.text.title,
|
|
1283
1289
|
hint: e.text.hint,
|
|
1284
1290
|
"hue-index": e.hueIndex
|
|
1285
1291
|
}, {
|
|
1286
|
-
default: q(() => [E("ul",
|
|
1292
|
+
default: q(() => [E("ul", Or, [(L(!0), T(b, null, z(e.rows, (t) => (L(), T("li", {
|
|
1287
1293
|
key: t.name,
|
|
1288
1294
|
class: "glim-version-row"
|
|
1289
|
-
}, [E("span",
|
|
1295
|
+
}, [E("span", kr, [E("span", Ar, U(t.name), 1), t.sub ? (L(), T("span", jr, U(t.sub), 1)) : w("", !0)]), W(X)(t).href ? (L(), T("a", {
|
|
1290
1296
|
key: 0,
|
|
1291
1297
|
href: W(X)(t).href,
|
|
1292
1298
|
target: "_blank",
|
|
1293
1299
|
rel: "noopener noreferrer",
|
|
1294
1300
|
class: "glim-num glim-version-number",
|
|
1295
1301
|
onClick: (e) => c(e, W(X)(t).href)
|
|
1296
|
-
}, U(W(X)(t).shown), 9,
|
|
1302
|
+
}, U(W(X)(t).shown), 9, Mr)) : (L(), T("span", Nr, 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", Pr, [
|
|
1297
1303
|
r.value ? (L(), C(Z, {
|
|
1298
1304
|
key: 0,
|
|
1299
1305
|
label: e.text.releaseNotes,
|
|
@@ -1306,7 +1312,7 @@ var mn = {
|
|
|
1306
1312
|
label: o.value.label,
|
|
1307
1313
|
"label-key": o.value.labelKey,
|
|
1308
1314
|
tone: o.value.tone,
|
|
1309
|
-
stage: W(
|
|
1315
|
+
stage: W(Qt)(e.updateCheck.text, o.value.label),
|
|
1310
1316
|
busy: i.value.kind === "busy",
|
|
1311
1317
|
class: N(a.value > 0 ? "glim-shake" : ""),
|
|
1312
1318
|
onClick: s
|
|
@@ -1317,7 +1323,7 @@ var mn = {
|
|
|
1317
1323
|
"stage",
|
|
1318
1324
|
"busy",
|
|
1319
1325
|
"class"
|
|
1320
|
-
])), E("span",
|
|
1326
|
+
])), E("span", Fr, U(o.value.announced), 1)], 64)) : w("", !0)
|
|
1321
1327
|
])) : w("", !0)]),
|
|
1322
1328
|
_: 3
|
|
1323
1329
|
}, 8, [
|
|
@@ -1326,7 +1332,7 @@ var mn = {
|
|
|
1326
1332
|
"hue-index"
|
|
1327
1333
|
]));
|
|
1328
1334
|
}
|
|
1329
|
-
}),
|
|
1335
|
+
}), Lr = /* @__PURE__ */ A({
|
|
1330
1336
|
__name: "InfoTile",
|
|
1331
1337
|
props: {
|
|
1332
1338
|
version: {},
|
|
@@ -1337,26 +1343,26 @@ var mn = {
|
|
|
1337
1343
|
setup(e) {
|
|
1338
1344
|
let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
1339
1345
|
return (t, r) => (L(), T(b, null, [
|
|
1340
|
-
k(
|
|
1346
|
+
k(Ir, M(e.version, { "hue-index": n(0) }), D({ _: 2 }, [t.$slots["whats-new"] ? {
|
|
1341
1347
|
name: "whats-new",
|
|
1342
1348
|
fn: q(() => [B(t.$slots, "whats-new")]),
|
|
1343
1349
|
key: "0"
|
|
1344
1350
|
} : void 0]), 1040, ["hue-index"]),
|
|
1345
|
-
k(
|
|
1346
|
-
k(
|
|
1351
|
+
k(Dr, M(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
1352
|
+
k(wr, M(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
1347
1353
|
], 64));
|
|
1348
1354
|
}
|
|
1349
|
-
}),
|
|
1355
|
+
}), Rr = [
|
|
1350
1356
|
"aria-label",
|
|
1351
1357
|
"tabindex",
|
|
1352
1358
|
"onKeydown"
|
|
1353
|
-
],
|
|
1359
|
+
], zr = {
|
|
1354
1360
|
key: 0,
|
|
1355
1361
|
class: "glim-list-row-tile"
|
|
1356
|
-
},
|
|
1362
|
+
}, Br = { class: "glim-list-row-title" }, Vr = {
|
|
1357
1363
|
key: 1,
|
|
1358
1364
|
class: "glim-list-row-badges"
|
|
1359
|
-
},
|
|
1365
|
+
}, Hr = /* @__PURE__ */ A({
|
|
1360
1366
|
__name: "ListRow",
|
|
1361
1367
|
props: {
|
|
1362
1368
|
name: {},
|
|
@@ -1364,7 +1370,7 @@ var mn = {
|
|
|
1364
1370
|
mono: { type: Boolean }
|
|
1365
1371
|
},
|
|
1366
1372
|
setup(e) {
|
|
1367
|
-
let t = e, n =
|
|
1373
|
+
let t = e, n = le(), r = S(() => !!n.onClick), i = S(() => ["glim-list-row-name", { "glim-list-row-name--mono": t.mono }]);
|
|
1368
1374
|
function a(e) {
|
|
1369
1375
|
e.preventDefault(), e.currentTarget.click();
|
|
1370
1376
|
}
|
|
@@ -1373,30 +1379,30 @@ var mn = {
|
|
|
1373
1379
|
"aria-label": e.name,
|
|
1374
1380
|
tabindex: r.value ? 0 : void 0,
|
|
1375
1381
|
class: N(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
1376
|
-
onKeydown: [
|
|
1382
|
+
onKeydown: [ge(Y(a, ["self"]), ["enter"]), ge(Y(a, ["self"]), ["space"])]
|
|
1377
1383
|
}, [
|
|
1378
|
-
t.$slots.tile ? (L(), T("span",
|
|
1379
|
-
E("span", { class: N(i.value) }, [E("span",
|
|
1384
|
+
t.$slots.tile ? (L(), T("span", zr, [B(t.$slots, "tile")])) : w("", !0),
|
|
1385
|
+
E("span", { class: N(i.value) }, [E("span", Br, U(e.name), 1), e.tip ? (L(), T("span", {
|
|
1380
1386
|
key: 0,
|
|
1381
1387
|
class: "glim-list-row-tip",
|
|
1382
1388
|
onClick: n[0] ||= Y(() => {}, ["stop"])
|
|
1383
1389
|
}, [k(Q, { tip: e.tip }, null, 8, ["tip"])])) : w("", !0)], 2),
|
|
1384
|
-
t.$slots.badges ? (L(), T("span",
|
|
1390
|
+
t.$slots.badges ? (L(), T("span", Vr, [B(t.$slots, "badges")])) : w("", !0),
|
|
1385
1391
|
t.$slots.actions ? (L(), T("span", {
|
|
1386
1392
|
key: 2,
|
|
1387
1393
|
class: "glim-list-row-actions",
|
|
1388
1394
|
onClick: n[1] ||= Y(() => {}, ["stop"])
|
|
1389
1395
|
}, [B(t.$slots, "actions")])) : w("", !0)
|
|
1390
|
-
], 42,
|
|
1396
|
+
], 42, Rr));
|
|
1391
1397
|
}
|
|
1392
|
-
}),
|
|
1398
|
+
}), Ur = ["aria-label"], Wr = [
|
|
1393
1399
|
"aria-expanded",
|
|
1394
1400
|
"tabindex",
|
|
1395
1401
|
"onClick",
|
|
1396
1402
|
"onMouseenter",
|
|
1397
1403
|
"onKeydown",
|
|
1398
1404
|
"onFocus"
|
|
1399
|
-
],
|
|
1405
|
+
], Gr = /* @__PURE__ */ A({
|
|
1400
1406
|
__name: "MenuBar",
|
|
1401
1407
|
props: {
|
|
1402
1408
|
label: {},
|
|
@@ -1445,7 +1451,7 @@ var mn = {
|
|
|
1445
1451
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
1446
1452
|
onKeydown: (e) => l(e, t),
|
|
1447
1453
|
onFocus: (e) => a.value = t
|
|
1448
|
-
}, U(e.label), 41,
|
|
1454
|
+
}, U(e.label), 41, Wr))), 128)), i.value && e.menus[i.value.at] ? (L(), C(Xn, {
|
|
1449
1455
|
key: i.value.at,
|
|
1450
1456
|
x: i.value.x,
|
|
1451
1457
|
y: i.value.y,
|
|
@@ -1462,9 +1468,9 @@ var mn = {
|
|
|
1462
1468
|
"label",
|
|
1463
1469
|
"id",
|
|
1464
1470
|
"opener"
|
|
1465
|
-
])) : w("", !0)], 8,
|
|
1471
|
+
])) : w("", !0)], 8, Ur));
|
|
1466
1472
|
}
|
|
1467
|
-
}),
|
|
1473
|
+
}), Kr = [
|
|
1468
1474
|
"role",
|
|
1469
1475
|
"aria-label",
|
|
1470
1476
|
"aria-valuemin",
|
|
@@ -1472,7 +1478,7 @@ var mn = {
|
|
|
1472
1478
|
"aria-valuenow",
|
|
1473
1479
|
"aria-valuetext",
|
|
1474
1480
|
"aria-busy"
|
|
1475
|
-
],
|
|
1481
|
+
], qr = /* @__PURE__ */ A({
|
|
1476
1482
|
inheritAttrs: !1,
|
|
1477
1483
|
__name: "Meter",
|
|
1478
1484
|
props: {
|
|
@@ -1486,20 +1492,20 @@ var mn = {
|
|
|
1486
1492
|
},
|
|
1487
1493
|
valueText: {}
|
|
1488
1494
|
},
|
|
1489
|
-
setup(
|
|
1490
|
-
let r =
|
|
1495
|
+
setup(t) {
|
|
1496
|
+
let r = t, i = S(() => it(r.value, {
|
|
1491
1497
|
size: r.size,
|
|
1492
1498
|
threshold: r.threshold,
|
|
1493
1499
|
quiet: r.quiet
|
|
1494
|
-
})), a = S(() => i.value.percent === null), o =
|
|
1495
|
-
return (
|
|
1500
|
+
})), a = S(() => i.value.percent === null), o = e(() => r.valueText);
|
|
1501
|
+
return (e, r) => (L(), T(b, null, [E("span", M(e.$attrs, {
|
|
1496
1502
|
ref: (e) => W(o).trigger.value = e,
|
|
1497
1503
|
role: a.value ? "progressbar" : "meter",
|
|
1498
|
-
"aria-label":
|
|
1504
|
+
"aria-label": t.label,
|
|
1499
1505
|
"aria-valuemin": a.value ? void 0 : 0,
|
|
1500
1506
|
"aria-valuemax": a.value ? void 0 : 100,
|
|
1501
1507
|
"aria-valuenow": i.value.percent ?? void 0,
|
|
1502
|
-
"aria-valuetext":
|
|
1508
|
+
"aria-valuetext": t.valueText,
|
|
1503
1509
|
"aria-busy": a.value || void 0,
|
|
1504
1510
|
class: i.value.className,
|
|
1505
1511
|
onMouseenter: r[0] ||= (...e) => W(o).show && W(o).show(...e),
|
|
@@ -1507,9 +1513,9 @@ var mn = {
|
|
|
1507
1513
|
}), [E("span", {
|
|
1508
1514
|
class: "glim-meter-fill",
|
|
1509
1515
|
style: P(i.value.width ? { width: i.value.width } : void 0)
|
|
1510
|
-
}, null, 4)], 16,
|
|
1516
|
+
}, null, 4)], 16, Kr), k(n, { state: W(o) }, null, 8, ["state"])], 64));
|
|
1511
1517
|
}
|
|
1512
|
-
}),
|
|
1518
|
+
}), Jr = { class: "glim-num-wrap" }, Yr = ["aria-label"], Xr = /* @__PURE__ */ A({
|
|
1513
1519
|
inheritAttrs: !1,
|
|
1514
1520
|
__name: "NumberField",
|
|
1515
1521
|
props: {
|
|
@@ -1518,10 +1524,10 @@ var mn = {
|
|
|
1518
1524
|
},
|
|
1519
1525
|
emits: ["update:modelValue"],
|
|
1520
1526
|
setup(e) {
|
|
1521
|
-
let t = G(e, "modelValue"), n =
|
|
1527
|
+
let t = G(e, "modelValue"), n = le(), r = y(() => n["aria-label"]), i = H(null), a;
|
|
1522
1528
|
F(() => {
|
|
1523
1529
|
o(t.value), a = je(i.value);
|
|
1524
|
-
}),
|
|
1530
|
+
}), ie(() => a?.());
|
|
1525
1531
|
function o(e) {
|
|
1526
1532
|
let t = i.value;
|
|
1527
1533
|
t && (t.value === "" ? null : t.valueAsNumber) !== e && (t.value = e === null ? "" : String(e));
|
|
@@ -1534,26 +1540,26 @@ var mn = {
|
|
|
1534
1540
|
() => n.disabled,
|
|
1535
1541
|
() => n.readonly
|
|
1536
1542
|
], () => {
|
|
1537
|
-
o(t.value), i.value &&
|
|
1543
|
+
o(t.value), i.value && Ht(i.value);
|
|
1538
1544
|
}, { flush: "post" });
|
|
1539
1545
|
function s(e) {
|
|
1540
1546
|
let n = e.target;
|
|
1541
1547
|
t.value = n.value === "" ? null : n.valueAsNumber;
|
|
1542
1548
|
}
|
|
1543
|
-
return (e, t) => (L(), T("span",
|
|
1549
|
+
return (e, t) => (L(), T("span", Jr, [E("input", M(e.$attrs, {
|
|
1544
1550
|
ref_key: "input",
|
|
1545
1551
|
ref: i,
|
|
1546
1552
|
"aria-label": W(r),
|
|
1547
1553
|
type: "number",
|
|
1548
1554
|
class: "glim-num-input glim-num-field glim-num",
|
|
1549
1555
|
onInput: s
|
|
1550
|
-
}), null, 16,
|
|
1556
|
+
}), null, 16, Yr)]));
|
|
1551
1557
|
}
|
|
1552
|
-
}),
|
|
1558
|
+
}), Zr = [
|
|
1553
1559
|
"aria-label",
|
|
1554
1560
|
"disabled",
|
|
1555
1561
|
"type"
|
|
1556
|
-
],
|
|
1562
|
+
], Qr = /* @__PURE__ */ A({
|
|
1557
1563
|
inheritAttrs: !1,
|
|
1558
1564
|
__name: "PasswordField",
|
|
1559
1565
|
props: /*@__PURE__*/ j({
|
|
@@ -1573,7 +1579,7 @@ var mn = {
|
|
|
1573
1579
|
}),
|
|
1574
1580
|
emits: ["update:modelValue"],
|
|
1575
1581
|
setup(e, { expose: t }) {
|
|
1576
|
-
let n = e, r = G(e, "modelValue"), i = R(!1), a =
|
|
1582
|
+
let n = e, r = G(e, "modelValue"), i = R(!1), a = le(), o = y(() => a["aria-label"]), s = S(() => Be(n.width)), c = H(null);
|
|
1577
1583
|
return t({ input: c }), (t, n) => (L(), T("span", {
|
|
1578
1584
|
class: N([
|
|
1579
1585
|
"glim-secret",
|
|
@@ -1596,17 +1602,17 @@ var mn = {
|
|
|
1596
1602
|
disabled: e.disabled,
|
|
1597
1603
|
type: i.value ? "text" : "password",
|
|
1598
1604
|
class: "glim-input"
|
|
1599
|
-
}), null, 16,
|
|
1605
|
+
}), null, 16, Zr), [[fe, r.value]]), k(nn, M(e.eyeAttrs, {
|
|
1600
1606
|
tip: i.value ? e.text.hide : e.text.show,
|
|
1601
1607
|
class: "glim-secret-eye",
|
|
1602
1608
|
disabled: e.disabled,
|
|
1603
1609
|
onClick: n[1] ||= (e) => i.value = !i.value
|
|
1604
1610
|
}), {
|
|
1605
|
-
default: q(() => [(L(), C(V(i.value ? W(
|
|
1611
|
+
default: q(() => [(L(), C(V(i.value ? W(g) : W(p))))]),
|
|
1606
1612
|
_: 1
|
|
1607
1613
|
}, 16, ["tip", "disabled"])], 6));
|
|
1608
1614
|
}
|
|
1609
|
-
}),
|
|
1615
|
+
}), $r = ["aria-label", "disabled"], ei = /* @__PURE__ */ A({
|
|
1610
1616
|
inheritAttrs: !1,
|
|
1611
1617
|
__name: "PathField",
|
|
1612
1618
|
props: /*@__PURE__*/ j({
|
|
@@ -1627,13 +1633,13 @@ var mn = {
|
|
|
1627
1633
|
}),
|
|
1628
1634
|
emits: /*@__PURE__*/ j(["picked"], ["update:modelValue"]),
|
|
1629
1635
|
setup(e, { expose: t, emit: n }) {
|
|
1630
|
-
let r = e,
|
|
1636
|
+
let r = e, i = G(e, "modelValue"), o = n, s = y(() => r.label), c = H(null);
|
|
1631
1637
|
t({ input: c });
|
|
1632
1638
|
let l = H(null), u = R(!1), d = new ResizeObserver(([e]) => u.value = e.contentRect.width < we);
|
|
1633
|
-
F(() => d.observe(l.value)),
|
|
1639
|
+
F(() => d.observe(l.value)), ie(() => d.disconnect());
|
|
1634
1640
|
async function f() {
|
|
1635
|
-
let e = await r.pick(
|
|
1636
|
-
c.value?.focus(), e && (
|
|
1641
|
+
let e = await r.pick(i.value);
|
|
1642
|
+
c.value?.focus(), e && (i.value = e, o("picked", e));
|
|
1637
1643
|
}
|
|
1638
1644
|
return (t, n) => (L(), T("span", {
|
|
1639
1645
|
ref_key: "box",
|
|
@@ -1647,7 +1653,7 @@ var mn = {
|
|
|
1647
1653
|
}, [J(E("input", M({
|
|
1648
1654
|
ref_key: "input",
|
|
1649
1655
|
ref: c,
|
|
1650
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1656
|
+
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
1651
1657
|
type: "text",
|
|
1652
1658
|
spellcheck: "false",
|
|
1653
1659
|
autocomplete: "off",
|
|
@@ -1659,11 +1665,11 @@ var mn = {
|
|
|
1659
1665
|
}, {
|
|
1660
1666
|
disabled: e.disabled,
|
|
1661
1667
|
class: "glim-input glim-input--mono"
|
|
1662
|
-
}), null, 16,
|
|
1668
|
+
}), null, 16, $r), [[pe, i.value]]), k(Z, M(e.buttonAttrs, {
|
|
1663
1669
|
variant: "icon",
|
|
1664
1670
|
label: e.text.pick,
|
|
1665
1671
|
"label-key": null,
|
|
1666
|
-
glyph: e.glyph ?? W(
|
|
1672
|
+
glyph: e.glyph ?? W(a),
|
|
1667
1673
|
compact: e.compact || u.value,
|
|
1668
1674
|
disabled: e.disabled,
|
|
1669
1675
|
onClick: f
|
|
@@ -1674,13 +1680,13 @@ var mn = {
|
|
|
1674
1680
|
"disabled"
|
|
1675
1681
|
])], 6));
|
|
1676
1682
|
}
|
|
1677
|
-
}),
|
|
1683
|
+
}), ti = [
|
|
1678
1684
|
"aria-label",
|
|
1679
1685
|
"aria-valuemin",
|
|
1680
1686
|
"aria-valuemax",
|
|
1681
1687
|
"aria-valuenow",
|
|
1682
1688
|
"aria-valuetext"
|
|
1683
|
-
],
|
|
1689
|
+
], ni = /* @__PURE__ */ A({
|
|
1684
1690
|
__name: "ProgressBar",
|
|
1685
1691
|
props: {
|
|
1686
1692
|
value: { default: null },
|
|
@@ -1696,7 +1702,7 @@ var mn = {
|
|
|
1696
1702
|
valueText: {}
|
|
1697
1703
|
},
|
|
1698
1704
|
setup(e) {
|
|
1699
|
-
let t = e, n = S(() =>
|
|
1705
|
+
let t = e, n = S(() => mt(t.value, {
|
|
1700
1706
|
paused: t.paused,
|
|
1701
1707
|
failed: t.failed
|
|
1702
1708
|
}));
|
|
@@ -1711,25 +1717,25 @@ var mn = {
|
|
|
1711
1717
|
}, [E("span", {
|
|
1712
1718
|
class: "glim-progress-fill",
|
|
1713
1719
|
style: P(n.value.width ? { width: n.value.width } : void 0)
|
|
1714
|
-
}, null, 4)], 10,
|
|
1720
|
+
}, null, 4)], 10, ti));
|
|
1715
1721
|
}
|
|
1716
|
-
}),
|
|
1722
|
+
}), ri = /* @__PURE__ */ A({
|
|
1717
1723
|
__name: "RowMark",
|
|
1718
1724
|
props: { on: { type: Boolean } },
|
|
1719
1725
|
setup(e) {
|
|
1720
1726
|
return (t, n) => (L(), T("span", {
|
|
1721
1727
|
class: N(["glim-rowmark", { "glim-rowmark--on": e.on }]),
|
|
1722
1728
|
"aria-hidden": "true"
|
|
1723
|
-
}, [k(W(
|
|
1729
|
+
}, [k(W(f))], 2));
|
|
1724
1730
|
}
|
|
1725
|
-
}),
|
|
1731
|
+
}), ii = [
|
|
1726
1732
|
"href",
|
|
1727
1733
|
"data-sel-id",
|
|
1728
1734
|
"aria-selected",
|
|
1729
1735
|
"aria-current",
|
|
1730
1736
|
"aria-describedby",
|
|
1731
1737
|
"tabindex"
|
|
1732
|
-
],
|
|
1738
|
+
], ai = [
|
|
1733
1739
|
"data-sel-id",
|
|
1734
1740
|
"id",
|
|
1735
1741
|
"role",
|
|
@@ -1739,9 +1745,10 @@ var mn = {
|
|
|
1739
1745
|
"aria-pressed",
|
|
1740
1746
|
"aria-label",
|
|
1741
1747
|
"aria-describedby",
|
|
1748
|
+
"aria-hidden",
|
|
1742
1749
|
"disabled",
|
|
1743
1750
|
"tabindex"
|
|
1744
|
-
],
|
|
1751
|
+
], oi = ["id"], si = /* @__PURE__ */ A({
|
|
1745
1752
|
__name: "SelectorSegment",
|
|
1746
1753
|
props: {
|
|
1747
1754
|
item: {},
|
|
@@ -1750,28 +1757,28 @@ var mn = {
|
|
|
1750
1757
|
on: { type: Boolean },
|
|
1751
1758
|
disabled: { type: Boolean },
|
|
1752
1759
|
roved: { type: Boolean },
|
|
1760
|
+
listed: { type: Boolean },
|
|
1753
1761
|
share: {},
|
|
1754
1762
|
squeezed: { type: Boolean },
|
|
1763
|
+
cut: { type: Boolean },
|
|
1755
1764
|
orientation: {},
|
|
1756
1765
|
size: {},
|
|
1757
1766
|
variant: {},
|
|
1758
1767
|
equalWidth: { type: Boolean },
|
|
1759
1768
|
buttonHeight: { type: Boolean },
|
|
1760
|
-
pairsOnPhone: { type: Boolean },
|
|
1761
1769
|
hue: { type: Boolean },
|
|
1762
1770
|
hueOffset: {},
|
|
1763
1771
|
panelId: {}
|
|
1764
1772
|
},
|
|
1765
1773
|
emits: ["select"],
|
|
1766
1774
|
setup(r, { emit: i }) {
|
|
1767
|
-
let a = r, o = i, s = S(() =>
|
|
1775
|
+
let a = r, o = i, s = S(() => Tt({
|
|
1768
1776
|
strip: a.strip,
|
|
1769
1777
|
orientation: a.orientation,
|
|
1770
1778
|
size: a.size,
|
|
1771
1779
|
variant: a.variant,
|
|
1772
1780
|
equalWidth: a.equalWidth,
|
|
1773
1781
|
buttonHeight: a.buttonHeight,
|
|
1774
|
-
pairsOnPhone: a.pairsOnPhone,
|
|
1775
1782
|
hue: a.hue,
|
|
1776
1783
|
hueOffset: a.hueOffset,
|
|
1777
1784
|
index: a.index,
|
|
@@ -1783,8 +1790,9 @@ var mn = {
|
|
|
1783
1790
|
on: a.on,
|
|
1784
1791
|
disabled: a.disabled,
|
|
1785
1792
|
dim: a.item.dim,
|
|
1786
|
-
squeezed: a.squeezed
|
|
1787
|
-
|
|
1793
|
+
squeezed: a.squeezed,
|
|
1794
|
+
cut: a.cut
|
|
1795
|
+
})), c = e(() => s.value.tip, () => a.disabled), l = ue(), u = S(() => a.disabled && !!s.value.tip), d = S(() => u.value ? l : c.describedBy.value), f = S(() => a.strip.kind === "tab"), p = S(() => ({
|
|
1788
1796
|
...s.value.style,
|
|
1789
1797
|
...a.share
|
|
1790
1798
|
}));
|
|
@@ -1794,7 +1802,7 @@ var mn = {
|
|
|
1794
1802
|
function h(e) {
|
|
1795
1803
|
e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), o("select"));
|
|
1796
1804
|
}
|
|
1797
|
-
return (
|
|
1805
|
+
return (e, i) => (L(), T(b, null, [r.orientation === "vertical" ? (L(), T("a", M({ key: 0 }, r.item.attrs, {
|
|
1798
1806
|
ref: m,
|
|
1799
1807
|
href: r.item.href,
|
|
1800
1808
|
"data-sel-id": r.item.id,
|
|
@@ -1814,7 +1822,7 @@ var mn = {
|
|
|
1814
1822
|
key: 1,
|
|
1815
1823
|
"data-sel-label": "",
|
|
1816
1824
|
class: N(s.value.labelClass)
|
|
1817
|
-
}, U(r.item.label), 3))], 16,
|
|
1825
|
+
}, U(r.item.label), 3))], 16, ii)) : (L(), T(b, { key: 1 }, [k(W(t), M({
|
|
1818
1826
|
on: u.value,
|
|
1819
1827
|
show: W(c).show,
|
|
1820
1828
|
hide: W(c).hide
|
|
@@ -1823,7 +1831,7 @@ var mn = {
|
|
|
1823
1831
|
ref: m,
|
|
1824
1832
|
type: "button",
|
|
1825
1833
|
"data-sel-id": r.item.id,
|
|
1826
|
-
id: r.panelId && f.value ? W(
|
|
1834
|
+
id: r.panelId && f.value ? W(kt)(r.panelId, r.item.id) : void 0,
|
|
1827
1835
|
role: r.strip.kind === "toggle" ? void 0 : r.strip.kind,
|
|
1828
1836
|
"aria-selected": f.value ? r.on : void 0,
|
|
1829
1837
|
"aria-controls": r.panelId && f.value && r.on ? r.panelId : void 0,
|
|
@@ -1831,8 +1839,9 @@ var mn = {
|
|
|
1831
1839
|
"aria-pressed": r.strip.kind === "toggle" ? r.on : void 0,
|
|
1832
1840
|
"aria-label": s.value.ariaLabel,
|
|
1833
1841
|
"aria-describedby": d.value,
|
|
1842
|
+
"aria-hidden": r.listed || void 0,
|
|
1834
1843
|
disabled: r.disabled,
|
|
1835
|
-
tabindex: r.roved ? 0 : -1,
|
|
1844
|
+
tabindex: r.roved && !r.listed ? 0 : -1,
|
|
1836
1845
|
class: s.value.className,
|
|
1837
1846
|
style: p.value,
|
|
1838
1847
|
onClick: i[4] ||= (e) => o("select"),
|
|
@@ -1844,7 +1853,7 @@ var mn = {
|
|
|
1844
1853
|
key: 1,
|
|
1845
1854
|
"data-sel-label": "",
|
|
1846
1855
|
class: N(s.value.labelClass)
|
|
1847
|
-
}, U(r.item.label), 3))], 16,
|
|
1856
|
+
}, U(r.item.label), 3))], 16, ai)]),
|
|
1848
1857
|
_: 1
|
|
1849
1858
|
}, 16, [
|
|
1850
1859
|
"on",
|
|
@@ -1854,13 +1863,16 @@ var mn = {
|
|
|
1854
1863
|
key: 0,
|
|
1855
1864
|
id: W(l),
|
|
1856
1865
|
hidden: ""
|
|
1857
|
-
}, U(s.value.tip), 9,
|
|
1866
|
+
}, U(s.value.tip), 9, oi)) : w("", !0)], 64)), k(n, { state: W(c) }, null, 8, ["state"])], 64));
|
|
1858
1867
|
}
|
|
1859
|
-
}),
|
|
1868
|
+
}), ci = [
|
|
1860
1869
|
"role",
|
|
1861
1870
|
"aria-label",
|
|
1862
1871
|
"aria-orientation"
|
|
1863
|
-
],
|
|
1872
|
+
], li = {
|
|
1873
|
+
key: 0,
|
|
1874
|
+
class: "glim-sel-list"
|
|
1875
|
+
}, ui = /* @__PURE__ */ A({
|
|
1864
1876
|
__name: "Selector",
|
|
1865
1877
|
props: {
|
|
1866
1878
|
items: {},
|
|
@@ -1904,115 +1916,122 @@ var mn = {
|
|
|
1904
1916
|
},
|
|
1905
1917
|
emits: ["update:modelValue", "press"],
|
|
1906
1918
|
setup(e, { emit: t }) {
|
|
1907
|
-
let n = e,
|
|
1908
|
-
function
|
|
1909
|
-
let t = H(
|
|
1910
|
-
return I(
|
|
1919
|
+
let n = e, i = t, a = S(() => n.modelValue);
|
|
1920
|
+
function o(e) {
|
|
1921
|
+
let t = H(et(e));
|
|
1922
|
+
return I(Bt(e, () => t.value = et(e))), t;
|
|
1911
1923
|
}
|
|
1912
|
-
let
|
|
1913
|
-
mode:
|
|
1924
|
+
let s = y(() => n.label), c = S(() => n.inline || n.label === void 0 && s.value !== void 0), l = cn(Et(n.size, n.orientation)), u = o(Ee), d = S(() => At({
|
|
1925
|
+
mode: l.value,
|
|
1914
1926
|
select: n.select === "many" ? "many" : "one",
|
|
1915
1927
|
activation: n.activation,
|
|
1916
1928
|
orientation: n.orientation,
|
|
1917
1929
|
size: n.size,
|
|
1918
1930
|
variant: n.variant,
|
|
1919
1931
|
equalWidth: n.equalWidth,
|
|
1920
|
-
inline:
|
|
1932
|
+
inline: c.value,
|
|
1921
1933
|
fit: n.fit,
|
|
1922
|
-
pairsOnPhone: n.pairsOnPhone,
|
|
1923
1934
|
hue: n.hue,
|
|
1924
1935
|
hueOffset: n.hueOffset,
|
|
1925
|
-
desktop: l.value,
|
|
1926
1936
|
wide: u.value,
|
|
1927
1937
|
items: n.items.map((e) => ({
|
|
1928
1938
|
hasGlyph: !!e.glyph,
|
|
1929
1939
|
iconOnly: !!e.iconOnly
|
|
1930
1940
|
}))
|
|
1931
|
-
})), f = H(null), p = H(null), m =
|
|
1932
|
-
function
|
|
1941
|
+
})), f = H(null), p = H(null), m = S(() => n.items.map((e) => e.label).join("\n")), h = S(() => n.items.map((e) => n.disabled || e.disabled ? "1" : "0").join(""));
|
|
1942
|
+
function g(e, t) {
|
|
1933
1943
|
K([f, e], (e, n, r) => {
|
|
1934
1944
|
if (!f.value) return;
|
|
1935
1945
|
let i = t(f.value);
|
|
1936
1946
|
i && r(i);
|
|
1937
1947
|
}, { flush: "post" });
|
|
1938
1948
|
}
|
|
1939
|
-
|
|
1949
|
+
g(() => d.value.counted, (e) => d.value.counted ? Re(e) : void 0), g(() => [
|
|
1950
|
+
n.orientation,
|
|
1940
1951
|
d.value.pinWidth,
|
|
1941
|
-
n.
|
|
1942
|
-
|
|
1952
|
+
n.fit,
|
|
1953
|
+
d.value.canSqueeze,
|
|
1954
|
+
d.value.canList,
|
|
1955
|
+
c.value,
|
|
1956
|
+
m.value,
|
|
1943
1957
|
h.value,
|
|
1944
|
-
g.value,
|
|
1945
1958
|
n.size,
|
|
1946
1959
|
d.value.mode
|
|
1947
1960
|
].join("|"), (e) => {
|
|
1948
|
-
if (
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1961
|
+
if (n.orientation === "vertical") {
|
|
1962
|
+
p.value = null;
|
|
1963
|
+
return;
|
|
1964
|
+
}
|
|
1965
|
+
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
1966
|
+
return $t(e, {
|
|
1967
|
+
pinWidth: t,
|
|
1968
|
+
fit: n.fit,
|
|
1969
|
+
canSqueeze: r,
|
|
1970
|
+
canList: i
|
|
1952
1971
|
}, (e) => p.value = e);
|
|
1953
|
-
}), _(() => [
|
|
1954
|
-
d.value.canSqueeze,
|
|
1955
|
-
h.value,
|
|
1956
|
-
g.value,
|
|
1957
|
-
n.size
|
|
1958
|
-
].join("|"), (e) => {
|
|
1959
|
-
if (!d.value.canSqueeze) m.value = "even";
|
|
1960
|
-
else return Zt(e, (e) => m.value = e);
|
|
1961
1972
|
});
|
|
1962
|
-
let
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1973
|
+
let _ = S(() => Dt({
|
|
1974
|
+
layout: p.value,
|
|
1975
|
+
inline: c.value,
|
|
1976
|
+
fit: n.fit
|
|
1977
|
+
})), v = S(() => p.value?.fit === "list"), ee = S(() => n.items.map((e, t) => ({
|
|
1978
|
+
value: String(e.id),
|
|
1979
|
+
label: e.label,
|
|
1980
|
+
glyph: e.glyph,
|
|
1981
|
+
disabled: D.value[t]
|
|
1982
|
+
}))), te = S(() => a.value === null ? null : String(a.value)), x = S(() => n.select === "many"), E = (e) => x.value ? (a.value ?? []).includes(e) : a.value === e, D = S(() => n.items.map((e) => n.disabled || !!e.disabled)), O = S(() => Ct(D.value, n.items.findIndex((e) => E(e.id))));
|
|
1983
|
+
function A(e) {
|
|
1984
|
+
i("press", e);
|
|
1985
|
+
let t = x.value ? qt(a.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
1986
|
+
t !== a.value && i("update:modelValue", t);
|
|
1987
|
+
}
|
|
1988
|
+
function ne(e) {
|
|
1989
|
+
let t = n.items.find((t) => String(t.id) === e);
|
|
1990
|
+
t && A(t.id);
|
|
1974
1991
|
}
|
|
1975
|
-
function
|
|
1992
|
+
function re(e) {
|
|
1993
|
+
if (v.value) return;
|
|
1976
1994
|
let t = e.target;
|
|
1977
1995
|
if (n.orientation === "vertical" && e.key === " " && t.dataset.selId) {
|
|
1978
1996
|
e.preventDefault(), t.click();
|
|
1979
1997
|
return;
|
|
1980
1998
|
}
|
|
1981
|
-
let r =
|
|
1999
|
+
let r = St(f.value, e.key, n.orientation);
|
|
1982
2000
|
if (!r) return;
|
|
1983
2001
|
e.preventDefault();
|
|
1984
2002
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
1985
|
-
d.value.autoSelect && i &&
|
|
2003
|
+
d.value.autoSelect && i && A(i.id);
|
|
1986
2004
|
}
|
|
1987
2005
|
return (t, n) => (L(), T("div", {
|
|
1988
2006
|
ref_key: "track",
|
|
1989
2007
|
ref: f,
|
|
1990
|
-
role: d.value.role,
|
|
1991
|
-
"aria-label": W(
|
|
1992
|
-
"aria-orientation": d.value.role === "group" ? void 0 : e.orientation,
|
|
1993
|
-
class: N(d.value.className),
|
|
1994
|
-
style: P(
|
|
1995
|
-
onKeydown:
|
|
1996
|
-
}, [(L(!0), T(b, null, z(e.items, (t, n) => (L(), C(
|
|
2008
|
+
role: v.value ? void 0 : d.value.role,
|
|
2009
|
+
"aria-label": v.value ? void 0 : W(s),
|
|
2010
|
+
"aria-orientation": v.value || d.value.role === "group" ? void 0 : e.orientation,
|
|
2011
|
+
class: N([d.value.className, { "glim-sel--listed": v.value }]),
|
|
2012
|
+
style: P(_.value.track),
|
|
2013
|
+
onKeydown: re
|
|
2014
|
+
}, [(L(!0), T(b, null, z(e.items, (t, n) => (L(), C(si, {
|
|
1997
2015
|
key: t.id,
|
|
1998
2016
|
item: t,
|
|
1999
2017
|
index: n,
|
|
2000
2018
|
strip: d.value,
|
|
2001
|
-
on:
|
|
2002
|
-
disabled:
|
|
2003
|
-
roved: n ===
|
|
2004
|
-
|
|
2005
|
-
|
|
2019
|
+
on: E(t.id),
|
|
2020
|
+
disabled: D.value[n],
|
|
2021
|
+
roved: n === O.value,
|
|
2022
|
+
listed: v.value,
|
|
2023
|
+
share: e.orientation === "vertical" ? {} : _.value.segment,
|
|
2024
|
+
squeezed: p.value?.fit === "squeezed",
|
|
2025
|
+
cut: !!p.value?.cut[n],
|
|
2006
2026
|
orientation: e.orientation,
|
|
2007
2027
|
size: e.size,
|
|
2008
2028
|
variant: e.variant,
|
|
2009
2029
|
"equal-width": e.equalWidth,
|
|
2010
2030
|
"button-height": e.buttonHeight,
|
|
2011
|
-
"pairs-on-phone": e.pairsOnPhone,
|
|
2012
2031
|
hue: e.hue,
|
|
2013
2032
|
"hue-offset": e.hueOffset,
|
|
2014
2033
|
"panel-id": e.panelId,
|
|
2015
|
-
onSelect: (e) =>
|
|
2034
|
+
onSelect: (e) => A(t.id)
|
|
2016
2035
|
}, null, 8, [
|
|
2017
2036
|
"item",
|
|
2018
2037
|
"index",
|
|
@@ -2020,21 +2039,38 @@ var mn = {
|
|
|
2020
2039
|
"on",
|
|
2021
2040
|
"disabled",
|
|
2022
2041
|
"roved",
|
|
2042
|
+
"listed",
|
|
2023
2043
|
"share",
|
|
2024
2044
|
"squeezed",
|
|
2045
|
+
"cut",
|
|
2025
2046
|
"orientation",
|
|
2026
2047
|
"size",
|
|
2027
2048
|
"variant",
|
|
2028
2049
|
"equal-width",
|
|
2029
2050
|
"button-height",
|
|
2030
|
-
"pairs-on-phone",
|
|
2031
2051
|
"hue",
|
|
2032
2052
|
"hue-offset",
|
|
2033
2053
|
"panel-id",
|
|
2034
2054
|
"onSelect"
|
|
2035
|
-
]))), 128))
|
|
2055
|
+
]))), 128)), v.value ? (L(), T("div", li, [k(r, {
|
|
2056
|
+
"model-value": te.value,
|
|
2057
|
+
label: W(s) ?? "",
|
|
2058
|
+
"hide-label": "",
|
|
2059
|
+
wrap: "",
|
|
2060
|
+
width: "fill",
|
|
2061
|
+
size: e.size === "sm" ? "row" : "field",
|
|
2062
|
+
options: ee.value,
|
|
2063
|
+
disabled: D.value.every(Boolean),
|
|
2064
|
+
"onUpdate:modelValue": ne
|
|
2065
|
+
}, null, 8, [
|
|
2066
|
+
"model-value",
|
|
2067
|
+
"label",
|
|
2068
|
+
"size",
|
|
2069
|
+
"options",
|
|
2070
|
+
"disabled"
|
|
2071
|
+
])])) : w("", !0)], 46, ci));
|
|
2036
2072
|
}
|
|
2037
|
-
}),
|
|
2073
|
+
}), di = { class: "glim-sr-only" }, fi = /* @__PURE__ */ A({
|
|
2038
2074
|
inheritAttrs: !1,
|
|
2039
2075
|
__name: "SidebarRowLink",
|
|
2040
2076
|
props: {
|
|
@@ -2046,30 +2082,30 @@ var mn = {
|
|
|
2046
2082
|
active: { type: Boolean },
|
|
2047
2083
|
count: {}
|
|
2048
2084
|
},
|
|
2049
|
-
setup(
|
|
2050
|
-
let r =
|
|
2085
|
+
setup(t) {
|
|
2086
|
+
let r = t, i = e(() => r.view.tip);
|
|
2051
2087
|
function a(e) {
|
|
2052
2088
|
i.trigger.value = e;
|
|
2053
2089
|
}
|
|
2054
|
-
return (
|
|
2090
|
+
return (e, r) => (L(), T(b, null, [(L(), C(V(t.href ? "a" : "button"), M(e.$attrs, {
|
|
2055
2091
|
ref: a,
|
|
2056
|
-
href:
|
|
2057
|
-
type:
|
|
2058
|
-
"aria-current":
|
|
2092
|
+
href: t.href,
|
|
2093
|
+
type: t.href ? void 0 : "button",
|
|
2094
|
+
"aria-current": t.active ? "page" : void 0,
|
|
2059
2095
|
"aria-describedby": W(i).describedBy.value,
|
|
2060
|
-
class:
|
|
2096
|
+
class: t.className,
|
|
2061
2097
|
onMouseenter: W(i).show,
|
|
2062
2098
|
onMouseleave: W(i).hide,
|
|
2063
2099
|
onFocus: W(i).showOnFocus,
|
|
2064
2100
|
onBlur: W(i).hide
|
|
2065
2101
|
}), {
|
|
2066
2102
|
default: q(() => [
|
|
2067
|
-
|
|
2068
|
-
E("span", { class: N(
|
|
2069
|
-
|
|
2070
|
-
class: N(
|
|
2103
|
+
t.view.showGlyph && t.glyph ? (L(), C(V(t.glyph), { key: 0 })) : w("", !0),
|
|
2104
|
+
E("span", { class: N(t.view.labelClass) }, U(t.label), 3),
|
|
2105
|
+
t.view.countClass && t.count ? (L(), T(b, { key: 1 }, [E("span", {
|
|
2106
|
+
class: N(t.view.countClass),
|
|
2071
2107
|
"aria-hidden": "true"
|
|
2072
|
-
}, U(
|
|
2108
|
+
}, U(t.count.value), 3), E("span", di, U(t.count.label), 1)], 64)) : w("", !0)
|
|
2073
2109
|
]),
|
|
2074
2110
|
_: 1
|
|
2075
2111
|
}, 16, [
|
|
@@ -2082,15 +2118,15 @@ var mn = {
|
|
|
2082
2118
|
"onMouseleave",
|
|
2083
2119
|
"onFocus",
|
|
2084
2120
|
"onBlur"
|
|
2085
|
-
])), k(
|
|
2121
|
+
])), k(n, { state: W(i) }, null, 8, ["state"])], 64));
|
|
2086
2122
|
}
|
|
2087
|
-
}),
|
|
2123
|
+
}), pi = {
|
|
2088
2124
|
key: 0,
|
|
2089
2125
|
class: "glim-nav-row-slot"
|
|
2090
|
-
},
|
|
2126
|
+
}, mi = {
|
|
2091
2127
|
key: 1,
|
|
2092
2128
|
class: "glim-nav-row-slot"
|
|
2093
|
-
},
|
|
2129
|
+
}, hi = /* @__PURE__ */ A({
|
|
2094
2130
|
inheritAttrs: !1,
|
|
2095
2131
|
__name: "SidebarRow",
|
|
2096
2132
|
props: {
|
|
@@ -2106,7 +2142,7 @@ var mn = {
|
|
|
2106
2142
|
depth: {}
|
|
2107
2143
|
},
|
|
2108
2144
|
setup(e) {
|
|
2109
|
-
let t = e, n =
|
|
2145
|
+
let t = e, n = cn("sidebar"), r = de(), i = S(() => Pt({
|
|
2110
2146
|
mode: n.value,
|
|
2111
2147
|
label: t.label,
|
|
2112
2148
|
hasGlyph: !!t.glyph,
|
|
@@ -2132,15 +2168,15 @@ var mn = {
|
|
|
2132
2168
|
]),
|
|
2133
2169
|
style: P([i.value.style, e.$attrs.style])
|
|
2134
2170
|
}, [
|
|
2135
|
-
e.$slots.before ? (L(), T("span",
|
|
2136
|
-
k(
|
|
2171
|
+
e.$slots.before ? (L(), T("span", pi, [B(e.$slots, "before")])) : w("", !0),
|
|
2172
|
+
k(fi, M({
|
|
2137
2173
|
...e.$attrs,
|
|
2138
2174
|
...a.value,
|
|
2139
2175
|
class: void 0,
|
|
2140
2176
|
style: void 0
|
|
2141
2177
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
2142
|
-
e.$slots.after ? (L(), T("span",
|
|
2143
|
-
], 6)) : (L(), C(
|
|
2178
|
+
e.$slots.after ? (L(), T("span", mi, [B(e.$slots, "after")])) : w("", !0)
|
|
2179
|
+
], 6)) : (L(), C(fi, M({ key: 1 }, {
|
|
2144
2180
|
...e.$attrs,
|
|
2145
2181
|
...a.value,
|
|
2146
2182
|
class: void 0
|
|
@@ -2154,7 +2190,7 @@ var mn = {
|
|
|
2154
2190
|
"style"
|
|
2155
2191
|
]));
|
|
2156
2192
|
}
|
|
2157
|
-
}),
|
|
2193
|
+
}), gi = { class: "glim-signin-field" }, _i = ["for"], vi = /* @__PURE__ */ A({
|
|
2158
2194
|
__name: "SignInField",
|
|
2159
2195
|
props: {
|
|
2160
2196
|
label: {},
|
|
@@ -2162,15 +2198,18 @@ var mn = {
|
|
|
2162
2198
|
hint: {}
|
|
2163
2199
|
},
|
|
2164
2200
|
setup(e) {
|
|
2165
|
-
|
|
2201
|
+
let t = e, n = R(!1), r = (e) => {
|
|
2202
|
+
n.value = Ze(document.getElementById(t.for), t.label, t.hint, e);
|
|
2203
|
+
};
|
|
2204
|
+
return F(() => r()), K(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (L(), T("div", gi, [E("label", {
|
|
2166
2205
|
for: t.$props.for,
|
|
2167
|
-
class: "glim-signin-label"
|
|
2206
|
+
class: N(n.value ? "glim-sr-only" : "glim-signin-label")
|
|
2168
2207
|
}, [O(U(e.label), 1), e.hint ? (L(), C(Q, {
|
|
2169
2208
|
key: 0,
|
|
2170
2209
|
tip: e.hint
|
|
2171
|
-
}, null, 8, ["tip"])) : w("", !0)],
|
|
2210
|
+
}, null, 8, ["tip"])) : w("", !0)], 10, _i), B(t.$slots, "default")]));
|
|
2172
2211
|
}
|
|
2173
|
-
}),
|
|
2212
|
+
}), yi = ["aria-label"], bi = /* @__PURE__ */ A({
|
|
2174
2213
|
__name: "TextField",
|
|
2175
2214
|
props: /*@__PURE__*/ j({
|
|
2176
2215
|
label: {},
|
|
@@ -2182,7 +2221,7 @@ var mn = {
|
|
|
2182
2221
|
}),
|
|
2183
2222
|
emits: ["update:modelValue"],
|
|
2184
2223
|
setup(e, { expose: t }) {
|
|
2185
|
-
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() =>
|
|
2224
|
+
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() => Gt({
|
|
2186
2225
|
width: n.width,
|
|
2187
2226
|
mono: n.mono
|
|
2188
2227
|
})), o = H(null);
|
|
@@ -2193,25 +2232,25 @@ var mn = {
|
|
|
2193
2232
|
type: "text",
|
|
2194
2233
|
"aria-label": W(i),
|
|
2195
2234
|
class: N(a.value)
|
|
2196
|
-
}, null, 10,
|
|
2235
|
+
}, null, 10, yi)), [[pe, r.value]]);
|
|
2197
2236
|
}
|
|
2198
|
-
}),
|
|
2237
|
+
}), xi = { class: "glim-signin" }, Si = { class: "glim-signin-head" }, Ci = {
|
|
2199
2238
|
key: 0,
|
|
2200
2239
|
class: "glim-signin-logo",
|
|
2201
2240
|
"aria-hidden": "true"
|
|
2202
|
-
},
|
|
2241
|
+
}, wi = ["src"], Ti = { class: "glim-signin-name" }, Ei = {
|
|
2203
2242
|
key: 0,
|
|
2204
2243
|
class: "glim-signin-error",
|
|
2205
2244
|
role: "alert"
|
|
2206
|
-
},
|
|
2245
|
+
}, Di = {
|
|
2207
2246
|
key: 0,
|
|
2208
2247
|
class: "glim-signin-note",
|
|
2209
2248
|
role: "status"
|
|
2210
|
-
},
|
|
2249
|
+
}, Oi = { class: "glim-signin-hint" }, ki = {
|
|
2211
2250
|
key: 3,
|
|
2212
2251
|
class: "glim-signin-error",
|
|
2213
2252
|
role: "alert"
|
|
2214
|
-
},
|
|
2253
|
+
}, Ai = /* @__PURE__ */ A({
|
|
2215
2254
|
__name: "SignInCard",
|
|
2216
2255
|
props: {
|
|
2217
2256
|
logo: {},
|
|
@@ -2239,9 +2278,9 @@ var mn = {
|
|
|
2239
2278
|
onSetPassword: {}
|
|
2240
2279
|
},
|
|
2241
2280
|
setup(e) {
|
|
2242
|
-
let t = e, n =
|
|
2243
|
-
|
|
2244
|
-
let o =
|
|
2281
|
+
let t = e, n = de(), r = ze(() => t), i = H(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
2282
|
+
ie(a);
|
|
2283
|
+
let o = ue(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = S(() => ({
|
|
2245
2284
|
signIn: "signIn",
|
|
2246
2285
|
passkey: "signInWithPasskey",
|
|
2247
2286
|
forgot: "forgotPassword",
|
|
@@ -2253,32 +2292,32 @@ var mn = {
|
|
|
2253
2292
|
hide: t.text.hide
|
|
2254
2293
|
})), u = H(null), d = "";
|
|
2255
2294
|
function f() {
|
|
2256
|
-
let e = n.step ? "step" :
|
|
2295
|
+
let e = n.step ? "step" : It(i.value);
|
|
2257
2296
|
e !== d && ((d || t.autoFocus) && He(u.value), d = e);
|
|
2258
2297
|
}
|
|
2259
|
-
return F(f),
|
|
2298
|
+
return F(f), oe(f), K(() => i.value.refusal?.count, (e, t, n) => {
|
|
2260
2299
|
let r = i.value.refusal;
|
|
2261
|
-
r && n(
|
|
2262
|
-
}, { flush: "post" }), (t, n) => (L(), T("div",
|
|
2300
|
+
r && n(Nt(u.value, r));
|
|
2301
|
+
}, { flush: "post" }), (t, n) => (L(), T("div", xi, [E("div", {
|
|
2263
2302
|
ref_key: "card",
|
|
2264
2303
|
ref: u,
|
|
2265
2304
|
class: "glim-card glim-signin-card"
|
|
2266
|
-
}, [E("div",
|
|
2305
|
+
}, [E("div", Si, [e.logo || t.$slots.logo ? (L(), T("span", Ci, [B(t.$slots, "logo", {}, () => [E("img", {
|
|
2267
2306
|
src: e.logo,
|
|
2268
2307
|
alt: "",
|
|
2269
2308
|
draggable: "false"
|
|
2270
|
-
}, null, 8,
|
|
2309
|
+
}, null, 8, wi)])])) : w("", !0), E("h1", Ti, U(e.appName), 1)]), t.$slots.step ? B(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (L(), T("form", {
|
|
2271
2310
|
key: 1,
|
|
2272
2311
|
class: "glim-signin-form",
|
|
2273
2312
|
novalidate: "",
|
|
2274
2313
|
onSubmit: n[4] ||= Y((e) => W(r).submit(), ["prevent"])
|
|
2275
2314
|
}, [
|
|
2276
|
-
k(
|
|
2315
|
+
k(vi, {
|
|
2277
2316
|
label: e.text.resetCode,
|
|
2278
2317
|
for: s("reset-code"),
|
|
2279
2318
|
hint: e.text.resetCodeTip
|
|
2280
2319
|
}, {
|
|
2281
|
-
default: q(() => [k(
|
|
2320
|
+
default: q(() => [k(bi, {
|
|
2282
2321
|
id: s("reset-code"),
|
|
2283
2322
|
"data-signin-field": "resetCode",
|
|
2284
2323
|
class: "glim-signin-log-code",
|
|
@@ -2295,11 +2334,11 @@ var mn = {
|
|
|
2295
2334
|
"for",
|
|
2296
2335
|
"hint"
|
|
2297
2336
|
]),
|
|
2298
|
-
k(
|
|
2337
|
+
k(vi, {
|
|
2299
2338
|
label: e.text.newPassword,
|
|
2300
2339
|
for: s("new")
|
|
2301
2340
|
}, {
|
|
2302
|
-
default: q(() => [k(
|
|
2341
|
+
default: q(() => [k(Qr, {
|
|
2303
2342
|
id: s("new"),
|
|
2304
2343
|
"data-signin-field": "newPassword",
|
|
2305
2344
|
"model-value": i.value.newPassword,
|
|
@@ -2313,11 +2352,11 @@ var mn = {
|
|
|
2313
2352
|
])]),
|
|
2314
2353
|
_: 1
|
|
2315
2354
|
}, 8, ["label", "for"]),
|
|
2316
|
-
k(
|
|
2355
|
+
k(vi, {
|
|
2317
2356
|
label: e.text.confirmPassword,
|
|
2318
2357
|
for: s("confirm")
|
|
2319
2358
|
}, {
|
|
2320
|
-
default: q(() => [k(
|
|
2359
|
+
default: q(() => [k(Qr, {
|
|
2321
2360
|
id: s("confirm"),
|
|
2322
2361
|
"data-signin-field": "confirm",
|
|
2323
2362
|
"model-value": i.value.confirm,
|
|
@@ -2331,14 +2370,14 @@ var mn = {
|
|
|
2331
2370
|
])]),
|
|
2332
2371
|
_: 1
|
|
2333
2372
|
}, 8, ["label", "for"]),
|
|
2334
|
-
i.value.error ? (L(), T("p",
|
|
2373
|
+
i.value.error ? (L(), T("p", Ei, U(i.value.error), 1)) : w("", !0),
|
|
2335
2374
|
k(Z, {
|
|
2336
2375
|
label: e.text.setPassword,
|
|
2337
2376
|
"label-key": c.value.setPassword,
|
|
2338
2377
|
tone: "accent",
|
|
2339
2378
|
type: "submit",
|
|
2340
2379
|
"data-signin": "set-password",
|
|
2341
|
-
disabled: W(
|
|
2380
|
+
disabled: W(bt)(i.value),
|
|
2342
2381
|
busy: i.value.busy === "setPassword",
|
|
2343
2382
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
2344
2383
|
}, null, 8, [
|
|
@@ -2366,13 +2405,13 @@ var mn = {
|
|
|
2366
2405
|
novalidate: "",
|
|
2367
2406
|
onSubmit: n[10] ||= Y((e) => W(r).submit(), ["prevent"])
|
|
2368
2407
|
}, [
|
|
2369
|
-
e.note ? (L(), T("p",
|
|
2408
|
+
e.note ? (L(), T("p", Di, U(e.note), 1)) : w("", !0),
|
|
2370
2409
|
i.value.viaPasskey ? w("", !0) : B(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
2371
|
-
J(k(
|
|
2410
|
+
J(k(vi, {
|
|
2372
2411
|
label: e.text.password,
|
|
2373
2412
|
for: s("password")
|
|
2374
2413
|
}, {
|
|
2375
|
-
default: q(() => [k(
|
|
2414
|
+
default: q(() => [k(Qr, {
|
|
2376
2415
|
id: s("password"),
|
|
2377
2416
|
"data-signin-field": "password",
|
|
2378
2417
|
"model-value": i.value.password,
|
|
@@ -2385,13 +2424,13 @@ var mn = {
|
|
|
2385
2424
|
"text"
|
|
2386
2425
|
])]),
|
|
2387
2426
|
_: 1
|
|
2388
|
-
}, 8, ["label", "for"]), [[
|
|
2389
|
-
i.value.needCode ? (L(), C(
|
|
2427
|
+
}, 8, ["label", "for"]), [[me, !i.value.viaPasskey]]),
|
|
2428
|
+
i.value.needCode ? (L(), C(vi, {
|
|
2390
2429
|
key: 2,
|
|
2391
2430
|
label: e.text.code,
|
|
2392
2431
|
for: s("code")
|
|
2393
2432
|
}, {
|
|
2394
|
-
default: q(() => [k(
|
|
2433
|
+
default: q(() => [k(bi, {
|
|
2395
2434
|
id: s("code"),
|
|
2396
2435
|
"data-signin-field": "code",
|
|
2397
2436
|
class: "glim-signin-code",
|
|
@@ -2401,17 +2440,17 @@ var mn = {
|
|
|
2401
2440
|
spellcheck: "false",
|
|
2402
2441
|
placeholder: "000000",
|
|
2403
2442
|
"onUpdate:modelValue": n[6] ||= (e) => W(r).set("code", e)
|
|
2404
|
-
}, null, 8, ["id", "model-value"]), E("p",
|
|
2443
|
+
}, null, 8, ["id", "model-value"]), E("p", Oi, U(e.text.codeHint), 1)]),
|
|
2405
2444
|
_: 1
|
|
2406
2445
|
}, 8, ["label", "for"])) : w("", !0),
|
|
2407
|
-
i.value.error ? (L(), T("p",
|
|
2446
|
+
i.value.error ? (L(), T("p", ki, U(i.value.error), 1)) : w("", !0),
|
|
2408
2447
|
k(Z, {
|
|
2409
2448
|
label: e.text.signIn,
|
|
2410
2449
|
"label-key": c.value.signIn,
|
|
2411
2450
|
tone: "accent",
|
|
2412
2451
|
type: "submit",
|
|
2413
2452
|
"data-signin": "submit",
|
|
2414
|
-
disabled: W(
|
|
2453
|
+
disabled: W(Ft)(i.value),
|
|
2415
2454
|
busy: i.value.busy === "signIn",
|
|
2416
2455
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
2417
2456
|
}, null, 8, [
|
|
@@ -2465,26 +2504,26 @@ var mn = {
|
|
|
2465
2504
|
])) : w("", !0)
|
|
2466
2505
|
], 32))], 512)]));
|
|
2467
2506
|
}
|
|
2468
|
-
}),
|
|
2507
|
+
}), ji = ["aria-labelledby"], Mi = {
|
|
2469
2508
|
key: 0,
|
|
2470
2509
|
class: "glim-subcard-title"
|
|
2471
|
-
},
|
|
2510
|
+
}, Ni = ["id"], Pi = /* @__PURE__ */ A({
|
|
2472
2511
|
__name: "SubCard",
|
|
2473
2512
|
props: {
|
|
2474
2513
|
title: {},
|
|
2475
2514
|
hint: {}
|
|
2476
2515
|
},
|
|
2477
2516
|
setup(e) {
|
|
2478
|
-
let t =
|
|
2517
|
+
let t = ue();
|
|
2479
2518
|
return (n, r) => (L(), T("section", {
|
|
2480
2519
|
class: "glim-subcard",
|
|
2481
2520
|
"aria-labelledby": e.title ? W(t) : void 0
|
|
2482
|
-
}, [e.title ? (L(), T("h3",
|
|
2521
|
+
}, [e.title ? (L(), T("h3", Mi, [E("span", { id: W(t) }, U(e.title), 9, Ni), e.hint ? (L(), C(Q, {
|
|
2483
2522
|
key: 0,
|
|
2484
2523
|
tip: e.hint
|
|
2485
|
-
}, null, 8, ["tip"])) : w("", !0)])) : w("", !0), B(n.$slots, "default")], 8,
|
|
2524
|
+
}, null, 8, ["tip"])) : w("", !0)])) : w("", !0), B(n.$slots, "default")], 8, ji));
|
|
2486
2525
|
}
|
|
2487
|
-
}),
|
|
2526
|
+
}), Fi = ["aria-label"], Ii = { key: 0 }, Li = { key: 0 }, Ri = ["colspan"], zi = /* @__PURE__ */ A({
|
|
2488
2527
|
__name: "Table",
|
|
2489
2528
|
props: {
|
|
2490
2529
|
label: {},
|
|
@@ -2497,23 +2536,23 @@ var mn = {
|
|
|
2497
2536
|
return (t, i) => (L(), T("table", {
|
|
2498
2537
|
class: "glim-table",
|
|
2499
2538
|
"aria-label": e.label
|
|
2500
|
-
}, [n.value ? (L(), T("thead",
|
|
2539
|
+
}, [n.value ? (L(), T("thead", Ii, [E("tr", null, [(L(!0), T(b, null, z(e.columns, (e) => (L(), T("th", {
|
|
2501
2540
|
key: e.key,
|
|
2502
2541
|
scope: "col",
|
|
2503
2542
|
class: N({ "glim-table-end": e.end })
|
|
2504
2543
|
}, 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
2544
|
key: e.key,
|
|
2506
|
-
class: N(W(
|
|
2545
|
+
class: N(W(Ut)(e))
|
|
2507
2546
|
}, [B(t.$slots, "cell", {
|
|
2508
2547
|
row: n,
|
|
2509
2548
|
column: e,
|
|
2510
2549
|
value: r(n, e)
|
|
2511
|
-
}, () => [O(U(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (L(), T("tr",
|
|
2550
|
+
}, () => [O(U(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (L(), T("tr", Li, [E("td", {
|
|
2512
2551
|
colspan: e.columns.length,
|
|
2513
2552
|
class: "glim-table-muted"
|
|
2514
|
-
}, U(e.more), 9,
|
|
2553
|
+
}, U(e.more), 9, Ri)])) : w("", !0)])], 8, Fi));
|
|
2515
2554
|
}
|
|
2516
|
-
}),
|
|
2555
|
+
}), Bi = ["aria-label"], Vi = /* @__PURE__ */ A({
|
|
2517
2556
|
__name: "TextArea",
|
|
2518
2557
|
props: /*@__PURE__*/ j({
|
|
2519
2558
|
label: {},
|
|
@@ -2525,7 +2564,7 @@ var mn = {
|
|
|
2525
2564
|
}),
|
|
2526
2565
|
emits: ["update:modelValue"],
|
|
2527
2566
|
setup(e, { expose: t }) {
|
|
2528
|
-
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() =>
|
|
2567
|
+
let n = e, r = G(e, "modelValue"), i = y(() => n.label), a = S(() => Gt({
|
|
2529
2568
|
width: n.width,
|
|
2530
2569
|
mono: n.mono,
|
|
2531
2570
|
area: !0
|
|
@@ -2536,16 +2575,16 @@ var mn = {
|
|
|
2536
2575
|
"onUpdate:modelValue": t[0] ||= (e) => r.value = e,
|
|
2537
2576
|
"aria-label": W(i),
|
|
2538
2577
|
class: N(a.value)
|
|
2539
|
-
}, null, 10,
|
|
2578
|
+
}, null, 10, Bi)), [[pe, r.value]]);
|
|
2540
2579
|
}
|
|
2541
|
-
}),
|
|
2580
|
+
}), Hi = { class: "glim-toast-stack" }, Ui = [
|
|
2542
2581
|
"role",
|
|
2543
2582
|
"onMouseenter",
|
|
2544
2583
|
"onMouseleave",
|
|
2545
2584
|
"onFocusin",
|
|
2546
2585
|
"onFocusout",
|
|
2547
2586
|
"onKeydown"
|
|
2548
|
-
],
|
|
2587
|
+
], Wi = { class: "glim-toast-body" }, Gi = { class: "glim-toast-message" }, Ki = { key: 0 }, qi = ["aria-label", "onClick"], Ji = /* @__PURE__ */ A({
|
|
2549
2588
|
__name: "ToastViewport",
|
|
2550
2589
|
props: {
|
|
2551
2590
|
toasts: {},
|
|
@@ -2563,7 +2602,7 @@ var mn = {
|
|
|
2563
2602
|
function i(e, t) {
|
|
2564
2603
|
t.onClick(), n("dismiss", e);
|
|
2565
2604
|
}
|
|
2566
|
-
return (t, a) => (L(), T("div",
|
|
2605
|
+
return (t, a) => (L(), T("div", Hi, [(L(!0), T(b, null, z(e.toasts, (t) => (L(), T("div", {
|
|
2567
2606
|
key: t.id,
|
|
2568
2607
|
role: r(t.severity),
|
|
2569
2608
|
class: "glim-toast glim-toast-card",
|
|
@@ -2571,13 +2610,13 @@ var mn = {
|
|
|
2571
2610
|
onMouseleave: (e) => n("leave", t.id),
|
|
2572
2611
|
onFocusin: (e) => n("focusin", t.id),
|
|
2573
2612
|
onFocusout: (e) => n("focusout", t.id),
|
|
2574
|
-
onKeydown:
|
|
2613
|
+
onKeydown: ge(Y((e) => n("dismiss", t.id), ["stop"]), ["esc"])
|
|
2575
2614
|
}, [
|
|
2576
|
-
k(W(
|
|
2615
|
+
k(W(m), {
|
|
2577
2616
|
mark: W(Te)[t.severity],
|
|
2578
2617
|
class: N(`glim-toast-glyph glim-toast-glyph--${t.severity}`)
|
|
2579
2618
|
}, null, 8, ["mark", "class"]),
|
|
2580
|
-
E("div",
|
|
2619
|
+
E("div", Wi, [E("p", Gi, [(L(!0), T(b, null, z(W(Lt)(t.message), (e, t) => (L(), T(b, { key: t }, [t > 0 ? (L(), T("wbr", Ki)) : w("", !0), O(U(e), 1)], 64))), 128))]), t.action ? (L(), C(Z, {
|
|
2581
2620
|
key: 0,
|
|
2582
2621
|
class: "glim-toast-action",
|
|
2583
2622
|
tone: "subtle",
|
|
@@ -2590,19 +2629,19 @@ var mn = {
|
|
|
2590
2629
|
"aria-label": e.dismissLabel,
|
|
2591
2630
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
2592
2631
|
onClick: (e) => n("dismiss", t.id)
|
|
2593
|
-
}, [k(W(
|
|
2594
|
-
], 40,
|
|
2632
|
+
}, [k(W(m), { mark: W(Ce).dismiss }, null, 8, ["mark"])], 8, qi)
|
|
2633
|
+
], 40, Ui))), 128))]));
|
|
2595
2634
|
}
|
|
2596
|
-
}),
|
|
2635
|
+
}), Yi = {
|
|
2597
2636
|
key: 0,
|
|
2598
2637
|
class: "glim-toggle-label"
|
|
2599
|
-
},
|
|
2638
|
+
}, Xi = [
|
|
2600
2639
|
"aria-checked",
|
|
2601
2640
|
"aria-label",
|
|
2602
2641
|
"aria-disabled",
|
|
2603
2642
|
"aria-describedby",
|
|
2604
2643
|
"disabled"
|
|
2605
|
-
],
|
|
2644
|
+
], Zi = ["id"], Qi = /* @__PURE__ */ A({
|
|
2606
2645
|
inheritAttrs: !1,
|
|
2607
2646
|
__name: "Toggle",
|
|
2608
2647
|
props: /*@__PURE__*/ j({
|
|
@@ -2624,20 +2663,20 @@ var mn = {
|
|
|
2624
2663
|
modelModifiers: {}
|
|
2625
2664
|
}),
|
|
2626
2665
|
emits: ["update:modelValue"],
|
|
2627
|
-
setup(
|
|
2628
|
-
let r =
|
|
2666
|
+
setup(t) {
|
|
2667
|
+
let r = t, i = G(t, "modelValue"), a = y(() => r.label), o = S(() => r.label !== void 0 && !r.hideLabel), s = e(() => r.refused), c = ue(), l = H(null), u;
|
|
2629
2668
|
I(() => u?.());
|
|
2630
2669
|
function d() {
|
|
2631
|
-
r.refused ? (u?.(), u =
|
|
2670
|
+
r.refused ? (u?.(), u = Mt(l.value)) : i.value = !i.value;
|
|
2632
2671
|
}
|
|
2633
|
-
return (
|
|
2672
|
+
return (e, r) => (L(), T(b, null, [
|
|
2634
2673
|
E("span", {
|
|
2635
2674
|
ref_key: "frame",
|
|
2636
2675
|
ref: l,
|
|
2637
|
-
class: N(["glim-toggle",
|
|
2638
|
-
style: P(
|
|
2639
|
-
}, [o.value ? (L(), T("span",
|
|
2640
|
-
...
|
|
2676
|
+
class: N(["glim-toggle", e.$attrs.class]),
|
|
2677
|
+
style: P(e.$attrs.style)
|
|
2678
|
+
}, [o.value ? (L(), T("span", Yi, U(t.label), 1)) : w("", !0), E("button", M({
|
|
2679
|
+
...e.$attrs,
|
|
2641
2680
|
class: void 0,
|
|
2642
2681
|
style: void 0
|
|
2643
2682
|
}, {
|
|
@@ -2646,25 +2685,25 @@ var mn = {
|
|
|
2646
2685
|
role: "switch",
|
|
2647
2686
|
"aria-checked": i.value,
|
|
2648
2687
|
"aria-label": W(a),
|
|
2649
|
-
"aria-disabled":
|
|
2650
|
-
"aria-describedby":
|
|
2651
|
-
disabled:
|
|
2688
|
+
"aria-disabled": t.refused ? !0 : void 0,
|
|
2689
|
+
"aria-describedby": t.refused ? W(c) : e.$attrs["aria-describedby"],
|
|
2690
|
+
disabled: t.disabled,
|
|
2652
2691
|
class: "glim-toggle-track",
|
|
2653
2692
|
onClick: d,
|
|
2654
2693
|
onMouseenter: r[0] ||= (...e) => W(s).show && W(s).show(...e),
|
|
2655
2694
|
onMouseleave: r[1] ||= (...e) => W(s).hide && W(s).hide(...e),
|
|
2656
2695
|
onFocus: r[2] ||= (...e) => W(s).showOnFocus && W(s).showOnFocus(...e),
|
|
2657
2696
|
onBlur: r[3] ||= (...e) => W(s).hide && W(s).hide(...e)
|
|
2658
|
-
}), [...r[4] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2659
|
-
|
|
2697
|
+
}), [...r[4] ||= [E("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, Xi)], 6),
|
|
2698
|
+
t.refused ? (L(), T("span", {
|
|
2660
2699
|
key: 0,
|
|
2661
2700
|
id: W(c),
|
|
2662
2701
|
class: "glim-toggle-refusal"
|
|
2663
|
-
}, U(
|
|
2664
|
-
k(
|
|
2702
|
+
}, U(t.refused), 9, Zi)) : w("", !0),
|
|
2703
|
+
k(n, { state: W(s) }, null, 8, ["state"])
|
|
2665
2704
|
], 64));
|
|
2666
2705
|
}
|
|
2667
|
-
}),
|
|
2706
|
+
}), $i = ["aria-label"], ea = [
|
|
2668
2707
|
"aria-level",
|
|
2669
2708
|
"aria-posinset",
|
|
2670
2709
|
"aria-setsize",
|
|
@@ -2675,11 +2714,11 @@ var mn = {
|
|
|
2675
2714
|
"onClick",
|
|
2676
2715
|
"onDblclick",
|
|
2677
2716
|
"onKeydown"
|
|
2678
|
-
],
|
|
2717
|
+
], ta = ["onClick"], na = {
|
|
2679
2718
|
key: 0,
|
|
2680
2719
|
class: "glim-tree-glyph",
|
|
2681
2720
|
"aria-hidden": "true"
|
|
2682
|
-
},
|
|
2721
|
+
}, ra = { class: "glim-tree-label" }, ia = /* @__PURE__ */ A({
|
|
2683
2722
|
__name: "Tree",
|
|
2684
2723
|
props: /*@__PURE__*/ j({
|
|
2685
2724
|
label: {},
|
|
@@ -2692,12 +2731,12 @@ var mn = {
|
|
|
2692
2731
|
}),
|
|
2693
2732
|
emits: /*@__PURE__*/ j(["activate"], ["update:modelValue", "update:open"]),
|
|
2694
2733
|
setup(e, { emit: t }) {
|
|
2695
|
-
let n = e,
|
|
2734
|
+
let n = e, r = G(e, "modelValue"), a = G(e, "open"), o = t, s = ce(/* @__PURE__ */ new Map()), c = /* @__PURE__ */ new Set(), l = H(null);
|
|
2696
2735
|
function u(e) {
|
|
2697
2736
|
c.has(e) || (c.add(e), Promise.resolve(n.load(e)).then((t) => s.set(e, t), () => c.delete(e)));
|
|
2698
2737
|
}
|
|
2699
2738
|
K(a, (e) => [null, ...e].forEach(u), { immediate: !0 });
|
|
2700
|
-
let d = S(() =>
|
|
2739
|
+
let d = S(() => Yt(s, a.value)), f = S(() => Math.max(d.value.findIndex((e) => e.node.id === r.value), 0));
|
|
2701
2740
|
function p(e) {
|
|
2702
2741
|
a.value = a.value.includes(e) ? a.value.filter((t) => t !== e) : [...a.value, e];
|
|
2703
2742
|
}
|
|
@@ -2705,11 +2744,11 @@ var mn = {
|
|
|
2705
2744
|
if (e.ctrlKey || e.metaKey || e.altKey) return;
|
|
2706
2745
|
let n = d.value[t].node.id;
|
|
2707
2746
|
if (e.key === " " || e.key === "Enter") {
|
|
2708
|
-
e.preventDefault(),
|
|
2747
|
+
e.preventDefault(), r.value = n, e.key === "Enter" && o("activate", n);
|
|
2709
2748
|
return;
|
|
2710
2749
|
}
|
|
2711
|
-
let
|
|
2712
|
-
|
|
2750
|
+
let i = Xt(d.value, t, e.key, getComputedStyle(l.value).direction === "rtl");
|
|
2751
|
+
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, Ge(l.value, i.focus)) : p("open" in i ? i.open : i.close));
|
|
2713
2752
|
}
|
|
2714
2753
|
return (t, n) => (L(), T("div", {
|
|
2715
2754
|
ref_key: "tree",
|
|
@@ -2724,12 +2763,12 @@ var mn = {
|
|
|
2724
2763
|
"aria-posinset": e.position,
|
|
2725
2764
|
"aria-setsize": e.siblings,
|
|
2726
2765
|
"aria-expanded": e.node.hasChildren ? e.open : void 0,
|
|
2727
|
-
"aria-selected": e.node.id ===
|
|
2766
|
+
"aria-selected": e.node.id === r.value,
|
|
2728
2767
|
tabindex: t === f.value ? 0 : -1,
|
|
2729
2768
|
"data-tree-id": e.node.id,
|
|
2730
2769
|
class: "glim-tree-row",
|
|
2731
2770
|
style: { "--tree-level": e.level - 1 },
|
|
2732
|
-
onClick: (t) =>
|
|
2771
|
+
onClick: (t) => r.value = e.node.id,
|
|
2733
2772
|
onDblclick: (t) => o("activate", e.node.id),
|
|
2734
2773
|
onKeydown: (e) => m(e, t)
|
|
2735
2774
|
}), [
|
|
@@ -2738,31 +2777,31 @@ var mn = {
|
|
|
2738
2777
|
"aria-hidden": "true",
|
|
2739
2778
|
onClick: Y((t) => e.node.hasChildren && p(e.node.id), ["stop"]),
|
|
2740
2779
|
onDblclick: n[0] ||= Y(() => {}, ["stop"])
|
|
2741
|
-
}, [e.node.hasChildren ? (L(), C(W(
|
|
2742
|
-
e.node.glyph ? (L(), T("span",
|
|
2743
|
-
E("span",
|
|
2744
|
-
], 16,
|
|
2780
|
+
}, [e.node.hasChildren ? (L(), C(W(i), { key: 0 })) : w("", !0)], 40, ta),
|
|
2781
|
+
e.node.glyph ? (L(), T("span", na, [(L(), C(V(e.open && e.node.openGlyph || e.node.glyph)))])) : w("", !0),
|
|
2782
|
+
E("span", ra, U(e.node.label), 1)
|
|
2783
|
+
], 16, ea))), 128))], 8, $i));
|
|
2745
2784
|
}
|
|
2746
|
-
}),
|
|
2785
|
+
}), aa = { class: "glim-notice" }, oa = { class: "glim-notice-title" }, sa = { class: "glim-notice-reason" }, ca = {
|
|
2747
2786
|
key: 0,
|
|
2748
2787
|
class: "glim-notice-action"
|
|
2749
|
-
},
|
|
2788
|
+
}, la = /* @__PURE__ */ A({
|
|
2750
2789
|
__name: "UnavailableNotice",
|
|
2751
2790
|
props: { title: {} },
|
|
2752
2791
|
setup(e) {
|
|
2753
|
-
return (t, n) => (L(), T("div",
|
|
2754
|
-
E("p",
|
|
2755
|
-
E("p",
|
|
2756
|
-
t.$slots.action ? (L(), T("div",
|
|
2792
|
+
return (t, n) => (L(), T("div", aa, [
|
|
2793
|
+
E("p", oa, U(e.title), 1),
|
|
2794
|
+
E("p", sa, [B(t.$slots, "default")]),
|
|
2795
|
+
t.$slots.action ? (L(), T("div", ca, [B(t.$slots, "action")])) : w("", !0)
|
|
2757
2796
|
]));
|
|
2758
2797
|
}
|
|
2759
|
-
}),
|
|
2798
|
+
}), ua = ["aria-labelledby", "aria-label"], da = ["id"], fa = { class: "glim-modal-body glim-window-body" }, pa = {
|
|
2760
2799
|
key: 0,
|
|
2761
2800
|
class: "glim-modal-foot"
|
|
2762
|
-
},
|
|
2801
|
+
}, ma = {
|
|
2763
2802
|
key: 0,
|
|
2764
2803
|
class: "glim-window-start"
|
|
2765
|
-
},
|
|
2804
|
+
}, ha = /* @__PURE__ */ A({
|
|
2766
2805
|
inheritAttrs: !1,
|
|
2767
2806
|
__name: "Window",
|
|
2768
2807
|
props: {
|
|
@@ -2774,30 +2813,30 @@ var mn = {
|
|
|
2774
2813
|
},
|
|
2775
2814
|
emits: ["close"],
|
|
2776
2815
|
setup(e, { expose: t, emit: n }) {
|
|
2777
|
-
let r = e, i = n, a =
|
|
2816
|
+
let r = e, i = n, a = de(), o = H(null), s = ue(), c = Ke(), l = S(() => r.start !== void 0 || !!a.start), u = S(() => tn(r.actions, l.value, {
|
|
2778
2817
|
cancel: {
|
|
2779
2818
|
label: r.text.cancel,
|
|
2780
2819
|
labelKey: "common.cancel",
|
|
2781
|
-
glyph:
|
|
2820
|
+
glyph: _,
|
|
2782
2821
|
wayOut: !0
|
|
2783
2822
|
},
|
|
2784
2823
|
close: {
|
|
2785
2824
|
label: r.text.close,
|
|
2786
2825
|
labelKey: "common.close",
|
|
2787
|
-
glyph:
|
|
2826
|
+
glyph: h,
|
|
2788
2827
|
wayOut: !0
|
|
2789
2828
|
}
|
|
2790
2829
|
})), d;
|
|
2791
2830
|
F(() => {
|
|
2792
|
-
d =
|
|
2793
|
-
}),
|
|
2794
|
-
d?.(),
|
|
2831
|
+
d = Rt(() => o.value, () => i("close")), o.value && en(o.value)?.focus();
|
|
2832
|
+
}), ae(() => {
|
|
2833
|
+
d?.(), xt(c);
|
|
2795
2834
|
}), t({ card: o });
|
|
2796
2835
|
function f(e) {
|
|
2797
2836
|
e.onClick?.() !== !1 && i("close");
|
|
2798
2837
|
}
|
|
2799
2838
|
function p() {
|
|
2800
|
-
|
|
2839
|
+
tt() || i("close");
|
|
2801
2840
|
}
|
|
2802
2841
|
return (t, n) => (L(), C(x, { to: "body" }, [E("div", {
|
|
2803
2842
|
class: "glim-modal-backdrop",
|
|
@@ -2818,7 +2857,7 @@ var mn = {
|
|
|
2818
2857
|
E("h2", {
|
|
2819
2858
|
id: W(s),
|
|
2820
2859
|
class: "glim-window-title"
|
|
2821
|
-
}, [k(
|
|
2860
|
+
}, [k(an, {
|
|
2822
2861
|
tone: "heading",
|
|
2823
2862
|
size: "heading",
|
|
2824
2863
|
wrap: "",
|
|
@@ -2826,9 +2865,9 @@ var mn = {
|
|
|
2826
2865
|
}, {
|
|
2827
2866
|
default: q(() => [B(t.$slots, "title", {}, () => [O(U(e.title), 1)])]),
|
|
2828
2867
|
_: 3
|
|
2829
|
-
})], 8,
|
|
2830
|
-
E("div",
|
|
2831
|
-
u.value.length ? (L(), T("div",
|
|
2868
|
+
})], 8, da),
|
|
2869
|
+
E("div", fa, [B(t.$slots, "default")]),
|
|
2870
|
+
u.value.length ? (L(), T("div", pa, [l.value ? (L(), T("span", ma, [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, {
|
|
2832
2871
|
key: t,
|
|
2833
2872
|
label: e.label,
|
|
2834
2873
|
"label-key": e.labelKey,
|
|
@@ -2844,11 +2883,11 @@ var mn = {
|
|
|
2844
2883
|
"disabled",
|
|
2845
2884
|
"onClick"
|
|
2846
2885
|
]))), 128))])) : w("", !0)
|
|
2847
|
-
], 16,
|
|
2886
|
+
], 16, ua)], 32)]));
|
|
2848
2887
|
}
|
|
2849
2888
|
});
|
|
2850
2889
|
// src/confirm.ts
|
|
2851
|
-
function
|
|
2890
|
+
function ga(e) {
|
|
2852
2891
|
let t = H(null), n = H(null), r = null, i = null;
|
|
2853
2892
|
function a(e, n) {
|
|
2854
2893
|
return i = Ke(), new Promise((i) => {
|
|
@@ -2859,17 +2898,17 @@ function ma(e) {
|
|
|
2859
2898
|
});
|
|
2860
2899
|
}
|
|
2861
2900
|
function o(e) {
|
|
2862
|
-
r?.(e), r = null, t.value = null,
|
|
2901
|
+
r?.(e), r = null, t.value = null, xt(i), i = null;
|
|
2863
2902
|
}
|
|
2864
2903
|
let s = () => o(!1);
|
|
2865
2904
|
return K(t, (e, t, r) => {
|
|
2866
|
-
e && r(
|
|
2905
|
+
e && r(Jt(() => n.value, s));
|
|
2867
2906
|
}), {
|
|
2868
2907
|
confirm: a,
|
|
2869
2908
|
dismiss: s,
|
|
2870
2909
|
ConfirmHost: A(() => () => {
|
|
2871
2910
|
let r = t.value;
|
|
2872
|
-
return r ?
|
|
2911
|
+
return r ? ne(x, { to: "body" }, [ne(Fn, {
|
|
2873
2912
|
ref: (e) => n.value = e?.card ?? null,
|
|
2874
2913
|
title: e.title,
|
|
2875
2914
|
message: r.message,
|
|
@@ -2879,13 +2918,13 @@ function ma(e) {
|
|
|
2879
2918
|
cancelLabel: e.cancel,
|
|
2880
2919
|
onConfirm: () => o(!0),
|
|
2881
2920
|
onCancel: () => o(!1)
|
|
2882
|
-
}, r.extra ? { extra: () =>
|
|
2921
|
+
}, r.extra ? { extra: () => ne(r.extra) } : void 0)]) : null;
|
|
2883
2922
|
})
|
|
2884
2923
|
};
|
|
2885
2924
|
}
|
|
2886
2925
|
// src/dragArmed.ts
|
|
2887
|
-
function
|
|
2926
|
+
function _a(e, t) {
|
|
2888
2927
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
2889
|
-
|
|
2928
|
+
he(n, { flush: "post" }), oe(n);
|
|
2890
2929
|
}
|
|
2891
|
-
export {
|
|
2930
|
+
export { an as Badge, sn as BrandMark, Z as Button, yn as Card, Cn as Checkbox, On as ColorPicker, Fn as ConfirmDialog, Xn as ContextMenu, $n as CopyField, rr as EmptyState, sr as FieldRow, cr as FieldRowGroup, Se as GLIMSTONE_VERSION, dr as GlyphField, fr as GlyphTile, mr as IconButton, _ as IconCancel, f as IconCheck, h as IconClose, l as IconCopy, i as IconExpand, p as IconEye, g as IconEyeOff, a as IconFolderOpen, u as IconPencil, nn as IconTipButton, v as IconWindowMaximise, o as IconWindowMinimise, s as IconWindowRestore, wr as InfoAboutCard, Q as InfoBubble, Dr as InfoHelpCard, Lr as InfoTile, Ir as InfoVersionCard, Ln as Kbd, Hr as ListRow, m as MarkSvg, Gr as MenuBar, qr as Meter, Xr as NumberField, Qr as PasswordField, ei as PathField, ir as Pill, ni as ProgressBar, $ as ReadmeButton, ri as RowMark, ui as Selector, hi as SidebarRow, Ai as SignInCard, vi as SignInField, Pi as SubCard, zi as Table, Vi as TextArea, bi as TextField, Ji as ToastViewport, Qi as Toggle, ia as Tree, la as UnavailableNotice, ha as Window, d as glyphFor, Ot as selectorTabId, c as setGlyphResolver, mn as useAccent, ga as useConfirm, _a as useDragArmed, y as useFieldName, un as useHue, cn as useLabelMode, pn as useMotion, ln as useRainbow, fn as useShape, e as useTipBubble };
|