@glimstone/vue 4.3.5 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/Badge.vue.d.ts +6 -2
- package/dist/BusyRing.vue.d.ts +13 -0
- package/dist/Button.vue.d.ts +1 -1
- package/dist/Combobox.js +24 -23
- package/dist/FieldError.vue.d.ts +18 -0
- package/dist/Fortress.vue.d.ts +87 -0
- package/dist/FortressAppCard.vue.d.ts +19 -0
- package/dist/FortressDoubtWindow.vue.d.ts +12 -0
- package/dist/FortressPairing.vue.d.ts +41 -0
- package/dist/FortressPermissions.vue.d.ts +34 -0
- package/dist/FortressStatusWindow.vue.d.ts +19 -0
- package/dist/FortressWindow.vue.d.ts +19 -0
- package/dist/InstanceCard.vue.d.ts +39 -0
- package/dist/ListTable.vue.d.ts +37 -0
- package/dist/NumberField.vue.d.ts +7 -2
- package/dist/PasswordField.vue.d.ts +2 -0
- package/dist/Popover.vue.d.ts +27 -0
- package/dist/ProgressBar.vue.d.ts +1 -1
- package/dist/{Select-ohRK0e4y.js → Select-D8Kf1NZa.js} +52 -46
- package/dist/Select.js +1 -1
- package/dist/Sheet.vue.d.ts +38 -0
- package/dist/SkeletonRow.vue.d.ts +14 -0
- package/dist/Slider.js +1 -1
- package/dist/SubCard.vue.d.ts +4 -2
- package/dist/TextArea.vue.d.ts +2 -0
- package/dist/TextField.vue.d.ts +2 -0
- package/dist/ToastViewport.vue.d.ts +2 -2
- package/dist/WindowFootRow.vue.d.ts +29 -0
- package/dist/index.d.ts +15 -1
- package/dist/index.js +2959 -1364
- package/dist/windowParts.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as e } from "./fieldName-DBygJJfe.js";
|
|
2
2
|
import { a as t, n } from "./glyphs-CYhs4mrY.js";
|
|
3
3
|
import { Fragment as r, Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, h as p, mergeModels as m, mergeProps as h, normalizeClass as g, normalizeProps as _, onMounted as v, onScopeDispose as y, openBlock as b, ref as x, renderList as S, resolveDynamicComponent as C, shallowRef as w, toDisplayString as T, unref as E, useId as D, useModel as O, watch as k, withCtx as A } from "vue";
|
|
4
|
-
import { SELECT_POSITIONING as j, closeOnPageMove as M, defaultWidth as N, dismissBubbleOn as P, enableWheelStep as F, faceLabels as I, flattenRuns as L, hasSubmenu as R, homeRow as z, isSubmenu as B, pageDir as V, placeBubble as H, pointerWasLast as U, readPortalHue as ee, selectRootClass as
|
|
4
|
+
import { SELECT_POSITIONING as j, closeOnPageMove as M, defaultWidth as N, dismissBubbleOn as P, enableWheelStep as F, faceLabels as I, flattenRuns as L, hasSubmenu as R, homeRow as z, isSubmenu as B, pageDir as V, placeBubble as H, pointerWasLast as U, portalTarget as W, readPortalHue as ee, selectRootClass as G, selectRowParts as te, selectTriggerClass as ne, shake as re, trackInputModality as ie, wheelValue as ae } from "@glimstone/core";
|
|
5
5
|
import * as K from "@zag-js/select";
|
|
6
6
|
import { normalizeProps as q, useMachine as J } from "@zag-js/vue";
|
|
7
7
|
import * as Y from "@zag-js/menu";
|
|
8
8
|
// src/tipBubble.ts
|
|
9
9
|
function X(e, t = () => !1) {
|
|
10
10
|
let n = x(!1), r = w(null), i = w(null), o = D(), s = a(e), c = a(() => !!s.value && n.value);
|
|
11
|
-
k(t, () => n.value = !1),
|
|
11
|
+
k(t, () => n.value = !1), ie();
|
|
12
12
|
let l = () => {
|
|
13
13
|
s.value && (n.value = !0);
|
|
14
14
|
}, u = () => {
|
|
@@ -31,17 +31,17 @@ function X(e, t = () => !1) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
// src/TipBubble.vue?vue&type=script&setup=true&lang.ts
|
|
34
|
-
var
|
|
34
|
+
var oe = ["id"], Z = /* @__PURE__ */ d({
|
|
35
35
|
__name: "TipBubble",
|
|
36
36
|
props: { state: {} },
|
|
37
37
|
setup(e) {
|
|
38
|
-
return (t, n) => (b(), o(i, { to:
|
|
38
|
+
return (t, n) => (b(), o(i, { to: E(W)() }, [e.state.shown.value ? (b(), c("div", {
|
|
39
39
|
key: 0,
|
|
40
40
|
ref: (t) => e.state.bubble.value = t,
|
|
41
41
|
id: e.state.id,
|
|
42
42
|
role: "tooltip",
|
|
43
43
|
class: "glim-bubble glim-fade"
|
|
44
|
-
}, T(e.state.text.value), 9,
|
|
44
|
+
}, T(e.state.text.value), 9, oe)) : s("", !0)], 8, ["to"]));
|
|
45
45
|
}
|
|
46
46
|
}), Q = (e, { slots: t }) => e.on ? p("span", {
|
|
47
47
|
class: "glim-tip-wrap",
|
|
@@ -54,10 +54,10 @@ Q.props = [
|
|
|
54
54
|
"hide"
|
|
55
55
|
];
|
|
56
56
|
// src/SelectFace.vue?vue&type=script&setup=true&lang.ts
|
|
57
|
-
var
|
|
57
|
+
var se = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "glim-select-glyph"
|
|
60
|
-
},
|
|
60
|
+
}, ce = { class: "glim-select-value" }, le = ["aria-hidden"], ue = /* @__PURE__ */ d({
|
|
61
61
|
__name: "SelectFace",
|
|
62
62
|
props: {
|
|
63
63
|
all: {},
|
|
@@ -68,35 +68,35 @@ var oe = {
|
|
|
68
68
|
},
|
|
69
69
|
setup(e) {
|
|
70
70
|
let t = e, n = a(() => I(t.all, t.value, t.placeholder, t.width)), i = a(() => t.all.find((e) => e.value === t.value)?.glyph);
|
|
71
|
-
return (t, a) => (b(), c(r, null, [e.glyphs ? (b(), c("span",
|
|
71
|
+
return (t, a) => (b(), c(r, null, [e.glyphs ? (b(), c("span", se, [i.value ? (b(), o(C(i.value), { key: 0 })) : s("", !0)])) : s("", !0), l("span", ce, [(b(!0), c(r, null, S(n.value.labels, (e) => (b(), c("span", {
|
|
72
72
|
key: e,
|
|
73
73
|
"aria-hidden": e !== n.value.text || void 0,
|
|
74
74
|
class: g(e === n.value.text ? void 0 : "glim-select-ghost")
|
|
75
|
-
}, T(e), 11,
|
|
75
|
+
}, T(e), 11, le))), 128))])], 64));
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
// src/selectParts.ts
|
|
79
|
-
function
|
|
79
|
+
function de(e, t) {
|
|
80
80
|
let n = w(null);
|
|
81
81
|
return k(e, (e) => n.value = e && t.value ? ee(t.value) : null, { flush: "sync" }), {
|
|
82
82
|
style: a(() => n.value ?? void 0),
|
|
83
83
|
className: a(() => n.value ? "glim-hue" : "")
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function fe(e, t) {
|
|
87
87
|
let n;
|
|
88
88
|
k(e, (e) => {
|
|
89
89
|
n?.(), n = e ? F(e, (e) => {
|
|
90
90
|
if (t.inert()) return;
|
|
91
|
-
let n =
|
|
91
|
+
let n = ae(t.all(), t.value(), e);
|
|
92
92
|
n !== void 0 && t.onChange(n);
|
|
93
93
|
}) : void 0;
|
|
94
94
|
}, { immediate: !0 }), k(t.shakeCount, (t, n, r) => {
|
|
95
|
-
e.value && t > 0 && r(
|
|
95
|
+
e.value && t > 0 && r(re(e.value));
|
|
96
96
|
}), y(() => n?.());
|
|
97
97
|
}
|
|
98
98
|
// src/ListSelect.vue?vue&type=script&setup=true&lang.ts
|
|
99
|
-
var
|
|
99
|
+
var pe = ["aria-busy", "aria-describedby"], me = /* @__PURE__ */ d({
|
|
100
100
|
__name: "ListSelect",
|
|
101
101
|
props: {
|
|
102
102
|
label: {},
|
|
@@ -117,7 +117,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
117
117
|
},
|
|
118
118
|
emits: ["change"],
|
|
119
119
|
setup(e, { expose: d, emit: p }) {
|
|
120
|
-
let m = e, v = p, y = D(), x = a(() => L(m.groups)), O = a(() => x.value.some((e) => e.glyph)), N = a(() =>
|
|
120
|
+
let m = e, v = p, y = D(), x = a(() => L(m.groups)), O = a(() => x.value.some((e) => e.glyph)), N = a(() => te(m.rows, O.value)), P = a(() => K.collection({
|
|
121
121
|
items: x.value,
|
|
122
122
|
itemToValue: (e) => e.value,
|
|
123
123
|
itemToString: (e) => e.label,
|
|
@@ -139,7 +139,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
139
139
|
},
|
|
140
140
|
positioning: j
|
|
141
141
|
}))), I = a(() => K.connect(F, q)), R = w(null), z = X(() => m.tip, () => !!m.disabled);
|
|
142
|
-
|
|
142
|
+
fe(R, {
|
|
143
143
|
all: () => x.value,
|
|
144
144
|
value: () => m.value,
|
|
145
145
|
inert: () => !!(m.disabled || m.busy),
|
|
@@ -148,11 +148,11 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
148
148
|
}), k(() => I.value.open, (e, t, n) => {
|
|
149
149
|
e && n(M(() => I.value.setOpen(!1)));
|
|
150
150
|
});
|
|
151
|
-
let B =
|
|
151
|
+
let B = de(() => I.value.open, R);
|
|
152
152
|
function H(e) {
|
|
153
153
|
R.value = e, z.trigger.value = R.value;
|
|
154
154
|
}
|
|
155
|
-
return d({ trigger: R }), (a, d) => (b(), c("div", h(I.value.getRootProps(), { class: E(
|
|
155
|
+
return d({ trigger: R }), (a, d) => (b(), c("div", h(I.value.getRootProps(), { class: E(G)(e.width) }), [
|
|
156
156
|
l("label", h(I.value.getLabelProps(), { class: e.hideLabel ? "glim-sr-only" : "glim-field-label" }), T(e.label), 17),
|
|
157
157
|
l("div", _(f(I.value.getControlProps())), [u(E(Q), {
|
|
158
158
|
on: !!e.disabled && !!e.tip,
|
|
@@ -171,7 +171,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
171
171
|
onMouseleave: d[1] ||= (...e) => E(z).hide && E(z).hide(...e),
|
|
172
172
|
onFocus: d[2] ||= (...e) => E(z).showOnFocus && E(z).showOnFocus(...e),
|
|
173
173
|
onBlur: d[3] ||= (...e) => E(z).hide && E(z).hide(...e)
|
|
174
|
-
}), [u(
|
|
174
|
+
}), [u(ue, {
|
|
175
175
|
all: x.value,
|
|
176
176
|
value: e.value,
|
|
177
177
|
placeholder: e.placeholder,
|
|
@@ -183,7 +183,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
183
183
|
"placeholder",
|
|
184
184
|
"width",
|
|
185
185
|
"glyphs"
|
|
186
|
-
]), l("span", h(I.value.getIndicatorProps(), { class: "glim-select-indicator" }), [u(E(t))], 16)], 16,
|
|
186
|
+
]), l("span", h(I.value.getIndicatorProps(), { class: "glim-select-indicator" }), [u(E(t))], 16)], 16, pe)]),
|
|
187
187
|
_: 1
|
|
188
188
|
}, 8, [
|
|
189
189
|
"on",
|
|
@@ -191,7 +191,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
191
191
|
"hide"
|
|
192
192
|
])], 16),
|
|
193
193
|
u(Z, { state: E(z) }, null, 8, ["state"]),
|
|
194
|
-
(b(), o(i, { to:
|
|
194
|
+
(b(), o(i, { to: E(W)() }, [l("div", h(I.value.getPositionerProps(), {
|
|
195
195
|
style: E(B).style.value,
|
|
196
196
|
class: ["glim-select-positioner", E(B).className.value]
|
|
197
197
|
}), [l("div", h(I.value.getContentProps(), { class: N.value.content }), [(b(!0), c(r, null, S(e.groups, (e, t) => (b(), c(r, { key: t }, [e.entries.length > 0 ? (b(), c("div", h({
|
|
@@ -207,11 +207,11 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
207
207
|
}, [e.glyph ? (b(), o(C(e.glyph), { key: 0 })) : s("", !0)], 2)) : s("", !0),
|
|
208
208
|
l("span", h({ ref_for: !0 }, I.value.getItemTextProps({ item: e }), { class: N.value.label }), T(e.label), 17),
|
|
209
209
|
l("span", h({ ref_for: !0 }, I.value.getItemIndicatorProps({ item: e }), { class: N.value.check }), [u(E(n))], 16)
|
|
210
|
-
], 16))), 128))], 16)) : s("", !0)], 64))), 128))], 16)], 16)])),
|
|
210
|
+
], 16))), 128))], 16)) : s("", !0)], 64))), 128))], 16)], 16)], 8, ["to"])),
|
|
211
211
|
l("select", _(f(I.value.getHiddenSelectProps())), null, 16)
|
|
212
212
|
], 16));
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), he = ["data-state"], $ = /* @__PURE__ */ d({
|
|
215
215
|
__name: "MenuChoice",
|
|
216
216
|
props: {
|
|
217
217
|
api: {},
|
|
@@ -241,10 +241,10 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
241
241
|
"aria-hidden": "true",
|
|
242
242
|
"data-state": d.value ? "checked" : "unchecked",
|
|
243
243
|
class: g(e.parts.check)
|
|
244
|
-
}, [u(E(n))], 10,
|
|
244
|
+
}, [u(E(n))], 10, he)
|
|
245
245
|
], 16));
|
|
246
246
|
}
|
|
247
|
-
}),
|
|
247
|
+
}), ge = /* @__PURE__ */ d({
|
|
248
248
|
__name: "MenuSubmenu",
|
|
249
249
|
props: {
|
|
250
250
|
parent: {},
|
|
@@ -276,10 +276,10 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
276
276
|
"aria-hidden": "true",
|
|
277
277
|
class: g(e.parts.caret)
|
|
278
278
|
}, [u(E(t))], 2)
|
|
279
|
-
], 16), (b(), o(i, { to:
|
|
279
|
+
], 16), (b(), o(i, { to: E(W)() }, [l("div", h(m.value.getPositionerProps(), {
|
|
280
280
|
style: e.hueStyle,
|
|
281
281
|
class: ["glim-select-positioner", e.hueClass]
|
|
282
|
-
}), [l("div", h(m.value.getContentProps(), { class: e.parts.content }), [(b(!0), c(r, null, S(e.entry.options, (t) => (b(), o(
|
|
282
|
+
}), [l("div", h(m.value.getContentProps(), { class: e.parts.content }), [(b(!0), c(r, null, S(e.entry.options, (t) => (b(), o($, {
|
|
283
283
|
key: t.value,
|
|
284
284
|
api: m.value,
|
|
285
285
|
option: t,
|
|
@@ -291,20 +291,20 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
291
291
|
"option",
|
|
292
292
|
"value",
|
|
293
293
|
"parts"
|
|
294
|
-
]))), 128))], 16)], 16)]))], 64));
|
|
294
|
+
]))), 128))], 16)], 16)], 8, ["to"]))], 64));
|
|
295
295
|
}
|
|
296
|
-
}),
|
|
296
|
+
}), _e = {
|
|
297
297
|
key: 0,
|
|
298
298
|
"aria-hidden": "true",
|
|
299
299
|
class: "glim-field-label"
|
|
300
|
-
},
|
|
300
|
+
}, ve = [
|
|
301
301
|
"disabled",
|
|
302
302
|
"data-disabled",
|
|
303
303
|
"data-readonly",
|
|
304
304
|
"aria-busy",
|
|
305
305
|
"aria-label",
|
|
306
306
|
"aria-describedby"
|
|
307
|
-
],
|
|
307
|
+
], ye = /* @__PURE__ */ d({
|
|
308
308
|
__name: "MenuSelect",
|
|
309
309
|
props: {
|
|
310
310
|
label: {},
|
|
@@ -334,15 +334,15 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
334
334
|
dir: V(),
|
|
335
335
|
"aria-label": f.label,
|
|
336
336
|
positioning: j
|
|
337
|
-
}))), v = a(() => Y.connect(_, q)), y = a(() => L(f.groups)), x = a(() => y.value.some((e) => e.glyph)), C = a(() =>
|
|
338
|
-
|
|
337
|
+
}))), v = a(() => Y.connect(_, q)), y = a(() => L(f.groups)), x = a(() => y.value.some((e) => e.glyph)), C = a(() => te(f.rows, x.value)), O = a(() => I(y.value, f.value, f.placeholder, f.width).text), N = (e, t) => `${m}-sub-${e}-${t}`, P = w(null), F = X(() => f.tip, () => !!f.disabled);
|
|
338
|
+
fe(P, {
|
|
339
339
|
all: () => y.value,
|
|
340
340
|
value: () => f.value,
|
|
341
341
|
inert: () => !!(f.disabled || f.busy),
|
|
342
342
|
onChange: (e) => p("change", e),
|
|
343
343
|
shakeCount: () => f.shake ?? 0
|
|
344
344
|
});
|
|
345
|
-
let R =
|
|
345
|
+
let R = de(() => v.value.open, P);
|
|
346
346
|
k(() => v.value.open, (e, t, n) => {
|
|
347
347
|
if (!e) return;
|
|
348
348
|
n(M(() => v.value.setOpen(!1)));
|
|
@@ -370,8 +370,8 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
370
370
|
function U(e) {
|
|
371
371
|
P.value = e, F.trigger.value = P.value;
|
|
372
372
|
}
|
|
373
|
-
return n({ trigger: P }), (n, a) => (b(), c("div", { class: g(E(
|
|
374
|
-
e.hideLabel ? s("", !0) : (b(), c("span",
|
|
373
|
+
return n({ trigger: P }), (n, a) => (b(), c("div", { class: g(E(G)(e.width)) }, [
|
|
374
|
+
e.hideLabel ? s("", !0) : (b(), c("span", _e, T(e.label), 1)),
|
|
375
375
|
l("div", null, [u(E(Q), {
|
|
376
376
|
on: !!e.disabled && !!e.tip,
|
|
377
377
|
show: E(F).show,
|
|
@@ -390,7 +390,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
390
390
|
onMouseleave: a[1] ||= (...e) => E(F).hide && E(F).hide(...e),
|
|
391
391
|
onFocus: a[2] ||= (...e) => E(F).showOnFocus && E(F).showOnFocus(...e),
|
|
392
392
|
onBlur: a[3] ||= (...e) => E(F).hide && E(F).hide(...e)
|
|
393
|
-
}), [u(
|
|
393
|
+
}), [u(ue, {
|
|
394
394
|
all: y.value,
|
|
395
395
|
value: e.value,
|
|
396
396
|
placeholder: e.placeholder,
|
|
@@ -402,7 +402,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
402
402
|
"placeholder",
|
|
403
403
|
"width",
|
|
404
404
|
"glyphs"
|
|
405
|
-
]), l("span", h(v.value.getIndicatorProps(), { class: "glim-select-indicator" }), [u(E(t))], 16)], 16,
|
|
405
|
+
]), l("span", h(v.value.getIndicatorProps(), { class: "glim-select-indicator" }), [u(E(t))], 16)], 16, ve)]),
|
|
406
406
|
_: 1
|
|
407
407
|
}, 8, [
|
|
408
408
|
"on",
|
|
@@ -410,7 +410,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
410
410
|
"hide"
|
|
411
411
|
])]),
|
|
412
412
|
u(Z, { state: E(F) }, null, 8, ["state"]),
|
|
413
|
-
(b(), o(i, { to:
|
|
413
|
+
(b(), o(i, { to: E(W)() }, [l("div", h(v.value.getPositionerProps(), {
|
|
414
414
|
style: E(R).style.value,
|
|
415
415
|
class: ["glim-select-positioner", E(R).className.value]
|
|
416
416
|
}), [l("div", h(v.value.getContentProps(), { class: C.value.content }), [(b(!0), c(r, null, S(e.groups, (t, n) => (b(), c(r, { key: n }, [t.entries.length > 0 ? (b(), c("div", h({
|
|
@@ -419,7 +419,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
419
419
|
}, t.heading ? v.value.getItemGroupProps({ id: `g${n}` }) : {}, { class: "glim-select-group" }), [t.heading ? (b(), c("div", h({
|
|
420
420
|
key: 0,
|
|
421
421
|
ref_for: !0
|
|
422
|
-
}, v.value.getItemGroupLabelProps({ htmlFor: `g${n}` }), { class: C.value.heading }), T(t.heading), 17)) : s("", !0), (b(!0), c(r, null, S(t.entries, (t, i) => (b(), c(r, { key: E(B)(t) ? `s${i}` : t.value }, [E(B)(t) ? (b(), o(
|
|
422
|
+
}, v.value.getItemGroupLabelProps({ htmlFor: `g${n}` }), { class: C.value.heading }), T(t.heading), 17)) : s("", !0), (b(!0), c(r, null, S(t.entries, (t, i) => (b(), c(r, { key: E(B)(t) ? `s${i}` : t.value }, [E(B)(t) ? (b(), o(ge, {
|
|
423
423
|
key: 0,
|
|
424
424
|
parent: E(_),
|
|
425
425
|
"parent-api": v.value,
|
|
@@ -439,7 +439,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
439
439
|
"parts",
|
|
440
440
|
"hue-style",
|
|
441
441
|
"hue-class"
|
|
442
|
-
])) : (b(), o(
|
|
442
|
+
])) : (b(), o($, {
|
|
443
443
|
key: 1,
|
|
444
444
|
api: v.value,
|
|
445
445
|
option: t,
|
|
@@ -451,10 +451,10 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
451
451
|
"option",
|
|
452
452
|
"value",
|
|
453
453
|
"parts"
|
|
454
|
-
]))], 64))), 128))], 16)) : s("", !0)], 64))), 128))], 16)], 16)]))
|
|
454
|
+
]))], 64))), 128))], 16)) : s("", !0)], 64))), 128))], 16)], 16)], 8, ["to"]))
|
|
455
455
|
], 2));
|
|
456
456
|
}
|
|
457
|
-
}),
|
|
457
|
+
}), be = /* @__PURE__ */ d({
|
|
458
458
|
__name: "Select",
|
|
459
459
|
props: /*@__PURE__*/ m({
|
|
460
460
|
label: {},
|
|
@@ -499,7 +499,7 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
499
499
|
placeholder: n.placeholder,
|
|
500
500
|
width: n.width ?? (c.value ? "steady" : N(n.size)),
|
|
501
501
|
rows: n.rows,
|
|
502
|
-
triggerClass:
|
|
502
|
+
triggerClass: ne(n.size, n.wrap),
|
|
503
503
|
id: n.id,
|
|
504
504
|
triggerAttrs: n.triggerAttrs,
|
|
505
505
|
listId: n.listId,
|
|
@@ -508,7 +508,13 @@ var de = ["aria-busy", "aria-describedby"], fe = /* @__PURE__ */ d({
|
|
|
508
508
|
tip: n.tip,
|
|
509
509
|
shake: n.shake
|
|
510
510
|
}));
|
|
511
|
-
return (e, t) => E(R)(i.value) ? (b(), o(
|
|
511
|
+
return (e, t) => E(R)(i.value) ? (b(), o(ye, h({
|
|
512
|
+
key: 0,
|
|
513
|
+
"data-glim": "Select"
|
|
514
|
+
}, l.value, { onChange: t[0] ||= (e) => r.value = e }), null, 16)) : (b(), o(me, h({
|
|
515
|
+
key: 1,
|
|
516
|
+
"data-glim": "Select"
|
|
517
|
+
}, l.value, { onChange: t[1] ||= (e) => r.value = e }), null, 16));
|
|
512
518
|
}
|
|
513
519
|
});
|
|
514
|
-
export { X as i, Q as n, Z as r,
|
|
520
|
+
export { X as i, Q as n, Z as r, be as t };
|
package/dist/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Select } from "./Select-
|
|
1
|
+
export { t as Select } from "./Select-D8Kf1NZa.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { WindowAction } from "./windowParts";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
/** The notch's words, also the sheet's accessible name. */
|
|
5
|
+
title: string;
|
|
6
|
+
/** The foot's buttons, in reading order, as a Window's. */
|
|
7
|
+
actions?: WindowAction[];
|
|
8
|
+
/** A quiet line at the start of the foot; the `start` slot takes markup. */
|
|
9
|
+
start?: string;
|
|
10
|
+
/** The words of the way out the sheet adds. */
|
|
11
|
+
text: {
|
|
12
|
+
cancel: string;
|
|
13
|
+
close: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_template: () => {
|
|
17
|
+
__VLS_Slots: {
|
|
18
|
+
default?: (props: {}) => any;
|
|
19
|
+
} & {
|
|
20
|
+
start?: (props: {}) => any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
close: () => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
onClose?: (() => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
actions: WindowAction[];
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Milliseconds before it shows; 0 shows it at once. */
|
|
3
|
+
delay?: number;
|
|
4
|
+
/** The tile at the row's start, for a list whose rows have one. */
|
|
5
|
+
tile?: boolean;
|
|
6
|
+
/** The badge at the row's end, for a list whose rows have one. */
|
|
7
|
+
badge?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
tile: boolean;
|
|
11
|
+
badge: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
package/dist/Slider.js
CHANGED
|
@@ -31,7 +31,7 @@ var _ = { class: "glim-slider-head" }, v = /* @__PURE__ */ a({
|
|
|
31
31
|
onValueChange: (e) => v.value = e.value[0],
|
|
32
32
|
getAriaValueText: (e) => o.format(e.value)
|
|
33
33
|
}))), S = n(() => g.connect(x, m));
|
|
34
|
-
return (e, n) => (c(), r("div", s(S.value.getRootProps(), { class: "glim-slider" }), [i("div", _, [i("label", s(S.value.getLabelProps(), { class: a.label === void 0 ? "glim-sr-only" : "glim-field-label" }), u(d(y)), 17), i("output", s(S.value.getValueTextProps(), { class: "glim-slider-value" }), u(a.format(S.value.value[0])), 17)]), i("div", s(S.value.getControlProps(), { class: "glim-slider-control" }), [i("div", s(S.value.getTrackProps(), { class: "glim-slider-track" }), [i("div", s(S.value.getRangeProps(), { class: "glim-slider-range" }), null, 16)], 16), (c(!0), r(t, null, l(S.value.value, (e, t) => (c(), r("div", s({ key: t }, { ref_for: !0 }, S.value.getThumbProps({ index: t }), { class: "glim-slider-thumb" }), [i("input", s({ ref_for: !0 }, S.value.getHiddenInputProps({ index: t })), null, 16)], 16))), 128))], 16)], 16));
|
|
34
|
+
return (e, n) => (c(), r("div", s({ "data-glim": "Slider" }, S.value.getRootProps(), { class: "glim-slider" }), [i("div", _, [i("label", s(S.value.getLabelProps(), { class: a.label === void 0 ? "glim-sr-only" : "glim-field-label" }), u(d(y)), 17), i("output", s(S.value.getValueTextProps(), { class: "glim-slider-value" }), u(a.format(S.value.value[0])), 17)]), i("div", s(S.value.getControlProps(), { class: "glim-slider-control" }), [i("div", s(S.value.getTrackProps(), { class: "glim-slider-track" }), [i("div", s(S.value.getRangeProps(), { class: "glim-slider-range" }), null, 16)], 16), (c(!0), r(t, null, l(S.value.value, (e, t) => (c(), r("div", s({ key: t }, { ref_for: !0 }, S.value.getThumbProps({ index: t }), { class: "glim-slider-thumb" }), [i("input", s({ ref_for: !0 }, S.value.getHiddenInputProps({ index: t })), null, 16)], 16))), 128))], 16)], 16));
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
export { v as Slider };
|
package/dist/SubCard.vue.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
/** The group's name,
|
|
2
|
+
/** The group's name, drawn as a section badge on its top edge. */
|
|
3
3
|
title?: string;
|
|
4
|
-
/** One line on what the group does, drawn as an "(i)"
|
|
4
|
+
/** One line on what the group does, drawn as an "(i)" inside the badge. */
|
|
5
5
|
hint?: string;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_template: () => {
|
|
8
8
|
__VLS_Slots: {
|
|
9
|
+
end?: (props: {}) => any;
|
|
10
|
+
} & {
|
|
9
11
|
default?: (props: {}) => any;
|
|
10
12
|
};
|
|
11
13
|
};
|
package/dist/TextArea.vue.d.ts
CHANGED
package/dist/TextField.vue.d.ts
CHANGED
|
@@ -13,14 +13,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
13
13
|
focusin: (id: string) => any;
|
|
14
14
|
focusout: (id: string) => any;
|
|
15
15
|
enter: (id: string) => any;
|
|
16
|
-
dismiss: (id: string) => any;
|
|
17
16
|
leave: (id: string) => any;
|
|
17
|
+
dismiss: (id: string) => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
19
|
onFocusin?: ((id: string) => any) | undefined;
|
|
20
20
|
onFocusout?: ((id: string) => any) | undefined;
|
|
21
21
|
onEnter?: ((id: string) => any) | undefined;
|
|
22
|
-
onDismiss?: ((id: string) => any) | undefined;
|
|
23
22
|
onLeave?: ((id: string) => any) | undefined;
|
|
23
|
+
onDismiss?: ((id: string) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { WindowAction } from "./windowParts";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
actions: WindowAction[];
|
|
4
|
+
start?: string;
|
|
5
|
+
hasStart: boolean;
|
|
6
|
+
text: {
|
|
7
|
+
cancel: string;
|
|
8
|
+
close: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_template: () => {
|
|
12
|
+
__VLS_Slots: {
|
|
13
|
+
start?: (props: {}) => any;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
close: () => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onClose?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as Badge } from "./Badge.vue";
|
|
2
2
|
export { default as BrandMark } from "./BrandMark.vue";
|
|
3
3
|
export { default as Button } from "./Button.vue";
|
|
4
|
+
export { default as BusyRing } from "./BusyRing.vue";
|
|
4
5
|
export { default as Card } from "./Card.vue";
|
|
5
6
|
export { default as Checkbox } from "./Checkbox.vue";
|
|
6
7
|
export { default as ColorPicker } from "./ColorPicker.vue";
|
|
@@ -8,8 +9,15 @@ export { default as ConfirmDialog } from "./ConfirmDialog.vue";
|
|
|
8
9
|
export { default as ContextMenu } from "./ContextMenu.vue";
|
|
9
10
|
export { default as CopyField } from "./CopyField.vue";
|
|
10
11
|
export { default as EmptyState } from "./EmptyState.vue";
|
|
12
|
+
export { default as FieldError } from "./FieldError.vue";
|
|
11
13
|
export { default as FieldRow } from "./FieldRow.vue";
|
|
12
14
|
export { default as FieldRowGroup } from "./FieldRowGroup.vue";
|
|
15
|
+
export { default as Fortress } from "./Fortress.vue";
|
|
16
|
+
export { default as FortressAppCard } from "./FortressAppCard.vue";
|
|
17
|
+
export { default as FortressDoubtWindow } from "./FortressDoubtWindow.vue";
|
|
18
|
+
export { default as FortressPairing } from "./FortressPairing.vue";
|
|
19
|
+
export { default as FortressPermissions } from "./FortressPermissions.vue";
|
|
20
|
+
export { default as FortressStatusWindow } from "./FortressStatusWindow.vue";
|
|
13
21
|
export { default as GlyphField } from "./GlyphField.vue";
|
|
14
22
|
export { default as GlyphTile } from "./GlyphTile.vue";
|
|
15
23
|
export { default as IconButton } from "./IconButton.vue";
|
|
@@ -19,20 +27,25 @@ export { default as InfoBubble } from "./InfoBubble.vue";
|
|
|
19
27
|
export { default as InfoHelpCard } from "./InfoHelpCard.vue";
|
|
20
28
|
export { default as InfoTile } from "./InfoTile.vue";
|
|
21
29
|
export { default as InfoVersionCard } from "./InfoVersionCard.vue";
|
|
30
|
+
export { default as InstanceCard } from "./InstanceCard.vue";
|
|
22
31
|
export { default as Kbd } from "./Kbd.vue";
|
|
23
32
|
export { default as ListRow } from "./ListRow.vue";
|
|
33
|
+
export { default as ListTable } from "./ListTable.vue";
|
|
24
34
|
export { default as MenuBar } from "./MenuBar.vue";
|
|
25
35
|
export { default as Meter } from "./Meter.vue";
|
|
26
36
|
export { default as NumberField } from "./NumberField.vue";
|
|
27
37
|
export { default as PasswordField } from "./PasswordField.vue";
|
|
28
38
|
export { default as PathField } from "./PathField.vue";
|
|
29
39
|
export { default as Pill } from "./Pill.vue";
|
|
40
|
+
export { default as Popover } from "./Popover.vue";
|
|
30
41
|
export { default as ProgressBar } from "./ProgressBar.vue";
|
|
31
42
|
export { default as ReadmeButton } from "./ReadmeButton.vue";
|
|
32
43
|
export { default as RowMark } from "./RowMark.vue";
|
|
33
44
|
export { default as Selector } from "./Selector.vue";
|
|
34
45
|
export { default as SidebarRow } from "./SidebarRow.vue";
|
|
46
|
+
export { default as Sheet } from "./Sheet.vue";
|
|
35
47
|
export { default as SignInCard } from "./SignInCard.vue";
|
|
48
|
+
export { default as SkeletonRow } from "./SkeletonRow.vue";
|
|
36
49
|
export { default as SignInField } from "./SignInField.vue";
|
|
37
50
|
export { default as SubCard } from "./SubCard.vue";
|
|
38
51
|
export { default as Table } from "./Table.vue";
|
|
@@ -53,7 +66,8 @@ export type { SelectEntry, SelectGroup, SelectOption, SelectSubmenu } from "./se
|
|
|
53
66
|
export type { SelectorItem } from "./selectorItem";
|
|
54
67
|
export type { MenuBarMenu, MenuEntry, MenuHead, MenuItem, TreeNode, WindowAction } from "./windowParts";
|
|
55
68
|
export type { ResetAnswer, SignInAnswer, SignInText } from "@glimstone/core";
|
|
56
|
-
export type {
|
|
69
|
+
export type { ChangeAnswer, FortressAnswer, FortressApp, FortressInstance, FortressLogLine, FortressPermission, FortressStatusReport, FortressText, PhraseAnswer } from "@glimstone/core";
|
|
70
|
+
export type { BadgeForm, BusyRingSize, ButtonSize, ColorName, ColorPickerPanelText, FieldWidth, ListColumn, ListTableText, MeterSize, PillTone, SelectRows, TableColumn, ToastAction, WindowSize } from "@glimstone/core";
|
|
57
71
|
export { selectorTabId } from "@glimstone/core";
|
|
58
72
|
export { useTipBubble, type TipBubble } from "./tipBubble";
|
|
59
73
|
export { GLIMSTONE_VERSION } from "@glimstone/core";
|