@glimstone/vue 4.8.4 → 4.9.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/dist/Accordion-JaQ-i8V1.js +36 -0
- package/dist/Accordion.js +1 -36
- package/dist/ListRow.vue.d.ts +4 -0
- package/dist/PasswordField.vue.d.ts +2 -0
- package/dist/SignInCard.vue.d.ts +20 -5
- package/dist/SignInReauthWindow.vue.d.ts +8 -0
- package/dist/SignInTile.vue.d.ts +33 -0
- package/dist/SignInTileWindow.vue.d.ts +14 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2504 -1171
- package/package.json +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { s as e } from "./glyphs-CS3VBARx.js";
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, mergeModels as c, mergeProps as l, openBlock as u, renderList as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, useId as g, useModel as _, withCtx as v } from "vue";
|
|
3
|
+
import { pageDir as y } from "@glimstone/core";
|
|
4
|
+
import { normalizeProps as b, useMachine as x } from "@zag-js/vue";
|
|
5
|
+
import * as S from "@zag-js/accordion";
|
|
6
|
+
// src/Accordion.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var C = { class: "glim-disclosure-label" }, w = { class: "glim-disclosure-body" }, T = /* @__PURE__ */ s({
|
|
8
|
+
__name: "Accordion",
|
|
9
|
+
props: /*@__PURE__*/ c({
|
|
10
|
+
items: {},
|
|
11
|
+
multiple: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
headingLevel: { default: 3 }
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: {},
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(s) {
|
|
22
|
+
let c = s, T = _(s, "modelValue"), E = g(), D = x(S.machine, n(() => ({
|
|
23
|
+
id: E,
|
|
24
|
+
dir: y(),
|
|
25
|
+
value: T.value ?? [],
|
|
26
|
+
multiple: c.multiple,
|
|
27
|
+
collapsible: !0,
|
|
28
|
+
onValueChange: (e) => T.value = e.value
|
|
29
|
+
}))), O = n(() => S.connect(D, b));
|
|
30
|
+
return (n, c) => (u(), i("div", l({ "data-glim": "Accordion" }, O.value.getRootProps(), { class: "glim-accordion" }), [(u(!0), i(t, null, d(s.items, (t) => (u(), i("div", l({ key: t.value }, { ref_for: !0 }, O.value.getItemProps(t), { class: "glim-accordion-item" }), [(u(), r(p(`h${s.headingLevel}`), { class: "glim-disclosure-heading" }, {
|
|
31
|
+
default: v(() => [a("button", l({ ref_for: !0 }, O.value.getItemTriggerProps(t), { class: "glim-disclosure-trigger" }), [a("span", C, m(t.title), 1), a("span", l({ ref_for: !0 }, O.value.getItemIndicatorProps(t), { class: "glim-disclosure-indicator" }), [o(h(e))], 16)], 16)]),
|
|
32
|
+
_: 2
|
|
33
|
+
}, 1024)), a("div", l({ ref_for: !0 }, O.value.getItemContentProps(t), { class: "glim-disclosure-content" }), [a("div", w, [f(n.$slots, "content", { item: t })])], 16)], 16))), 128))], 16));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export { T as t };
|
package/dist/Accordion.js
CHANGED
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Fragment as t, computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, mergeModels as c, mergeProps as l, openBlock as u, renderList as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, useId as g, useModel as _, withCtx as v } from "vue";
|
|
3
|
-
import { pageDir as y } from "@glimstone/core";
|
|
4
|
-
import { normalizeProps as b, useMachine as x } from "@zag-js/vue";
|
|
5
|
-
import * as S from "@zag-js/accordion";
|
|
6
|
-
// src/Accordion.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var C = { class: "glim-disclosure-label" }, w = { class: "glim-disclosure-body" }, T = /* @__PURE__ */ s({
|
|
8
|
-
__name: "Accordion",
|
|
9
|
-
props: /*@__PURE__*/ c({
|
|
10
|
-
items: {},
|
|
11
|
-
multiple: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
},
|
|
15
|
-
headingLevel: { default: 3 }
|
|
16
|
-
}, {
|
|
17
|
-
modelValue: {},
|
|
18
|
-
modelModifiers: {}
|
|
19
|
-
}),
|
|
20
|
-
emits: ["update:modelValue"],
|
|
21
|
-
setup(s) {
|
|
22
|
-
let c = s, T = _(s, "modelValue"), E = g(), D = x(S.machine, n(() => ({
|
|
23
|
-
id: E,
|
|
24
|
-
dir: y(),
|
|
25
|
-
value: T.value ?? [],
|
|
26
|
-
multiple: c.multiple,
|
|
27
|
-
collapsible: !0,
|
|
28
|
-
onValueChange: (e) => T.value = e.value
|
|
29
|
-
}))), O = n(() => S.connect(D, b));
|
|
30
|
-
return (n, c) => (u(), i("div", l({ "data-glim": "Accordion" }, O.value.getRootProps(), { class: "glim-accordion" }), [(u(!0), i(t, null, d(s.items, (t) => (u(), i("div", l({ key: t.value }, { ref_for: !0 }, O.value.getItemProps(t), { class: "glim-accordion-item" }), [(u(), r(p(`h${s.headingLevel}`), { class: "glim-disclosure-heading" }, {
|
|
31
|
-
default: v(() => [a("button", l({ ref_for: !0 }, O.value.getItemTriggerProps(t), { class: "glim-disclosure-trigger" }), [a("span", C, m(t.title), 1), a("span", l({ ref_for: !0 }, O.value.getItemIndicatorProps(t), { class: "glim-disclosure-indicator" }), [o(h(e))], 16)], 16)]),
|
|
32
|
-
_: 2
|
|
33
|
-
}, 1024)), a("div", l({ ref_for: !0 }, O.value.getItemContentProps(t), { class: "glim-disclosure-content" }), [a("div", w, [f(n.$slots, "content", { item: t })])], 16)], 16))), 128))], 16));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export { T as Accordion };
|
|
1
|
+
export { t as Accordion } from "./Accordion-JaQ-i8V1.js";
|
package/dist/ListRow.vue.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ type __VLS_Props = {
|
|
|
4
4
|
tip?: string | null;
|
|
5
5
|
/** Sets the name in monospace, for a path. */
|
|
6
6
|
mono?: boolean;
|
|
7
|
+
/** A quiet line under the name, such as when it was made or where it comes from. */
|
|
8
|
+
meta?: string;
|
|
9
|
+
/** Keeps the buttons in view at rest, for a short list of the person's own things, where each row's buttons are the point. */
|
|
10
|
+
steady?: boolean;
|
|
7
11
|
};
|
|
8
12
|
declare const __VLS_template: () => {
|
|
9
13
|
__VLS_Slots: {
|
|
@@ -8,6 +8,8 @@ type __VLS_Props = {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
/** Why the value cannot stand, as a line under the field until it is fixed. */
|
|
10
10
|
error?: string;
|
|
11
|
+
/** A quiet line under the field that only informs, such as a hint about the value. An error takes its place. */
|
|
12
|
+
note?: string;
|
|
11
13
|
/** Asks for the password again in a second field, which stands once the first holds something. */
|
|
12
14
|
confirm?: boolean;
|
|
13
15
|
};
|
package/dist/SignInCard.vue.d.ts
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { type ResetAnswer, type SignInAnswer, type SignInText } from "@glimstone/core";
|
|
1
|
+
import { type ResetAnswer, type SignInAnswer, type SignInCardService, type SignInText } from "@glimstone/core";
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/** The address of the app's logo. It stands 7.5rem tall above the name, as wide as its shape asks. */
|
|
4
4
|
logo?: string;
|
|
5
5
|
/** The page's heading. */
|
|
6
6
|
appName: string;
|
|
7
7
|
text: SignInText;
|
|
8
|
-
/**
|
|
8
|
+
/** Draws a passkey button, for a server without the browser's offer in the password field. `onPasskeyOffer` needs none. */
|
|
9
9
|
passkey?: boolean;
|
|
10
10
|
/** Offers Forgot password? and the reset form. */
|
|
11
11
|
reset?: boolean;
|
|
12
|
-
/**
|
|
12
|
+
/** Asks for the account's name in the reset form, in an app with several accounts (the kit's options say `owner: false`). */
|
|
13
|
+
resetName?: boolean;
|
|
14
|
+
/** The length, as the server says, under which the reset form suggests a longer password. It never refuses a shorter one. */
|
|
13
15
|
minPassword?: number;
|
|
14
16
|
/** One line at the top of the sign-in form, such as "You are signed out". */
|
|
15
17
|
note?: string;
|
|
18
|
+
/** A refusal from outside the card, such as a sign-in service that sent the person back, said above Sign in until the card's next try. */
|
|
19
|
+
error?: string;
|
|
20
|
+
/** The sign-in service whose button stands under Sign in, the one second way in the page offers. */
|
|
21
|
+
service?: SignInCardService;
|
|
22
|
+
/** Leaves for the sign-in service. */
|
|
23
|
+
onService?: () => void;
|
|
16
24
|
/** The label keys behind the buttons, which pick their glyphs. */
|
|
17
|
-
labelKeys?: Partial<Record<"signIn" | "passkey" | "forgot" | "back" | "setPassword", string>>;
|
|
18
|
-
/** The start of the fields' ids: `-password`, `-code`, `-reset-code`, `-new` and `-confirm` follow it. */
|
|
25
|
+
labelKeys?: Partial<Record<"signIn" | "passkey" | "forgot" | "back" | "setPassword" | "service", string>>;
|
|
26
|
+
/** The start of the fields' ids: `-password`, `-code`, `-reset-code`, `-reset-name`, `-new` and `-confirm` follow it. */
|
|
19
27
|
idPrefix?: string;
|
|
20
28
|
/** Puts the focus in the first empty field when the card opens. */
|
|
21
29
|
autoFocus?: boolean;
|
|
@@ -26,6 +34,12 @@ type __VLS_Props = {
|
|
|
26
34
|
passkey: boolean;
|
|
27
35
|
}) => Promise<SignInAnswer>;
|
|
28
36
|
onPasskey?: () => Promise<SignInAnswer>;
|
|
37
|
+
/**
|
|
38
|
+
* Lets the browser offer the passkeys it holds in the password field, with
|
|
39
|
+
* conditional mediation, until `signal` ends the offer. The card starts it
|
|
40
|
+
* whenever the password form is at rest. An empty answer leaves the card as it was.
|
|
41
|
+
*/
|
|
42
|
+
onPasskeyOffer?: (signal: AbortSignal) => Promise<SignInAnswer>;
|
|
29
43
|
/** Writes a code to the log. The reset form shows only once this answers ok. */
|
|
30
44
|
onAskCode?: () => Promise<ResetAnswer>;
|
|
31
45
|
onSetPassword?: (input: {
|
|
@@ -49,6 +63,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
49
63
|
reset: boolean;
|
|
50
64
|
autoFocus: boolean;
|
|
51
65
|
passkey: boolean;
|
|
66
|
+
resetName: boolean;
|
|
52
67
|
minPassword: number;
|
|
53
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
54
69
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SignInApi, type SignInReauthText } from "@glimstone/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
api: SignInApi;
|
|
4
|
+
text: SignInReauthText;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type Catalog, type SignInApi, type SignInTileCard, type SignInTileLabelKeys, type SignInTileText, type ToastSeverity } from "@glimstone/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
api: SignInApi;
|
|
4
|
+
text: SignInTileText;
|
|
5
|
+
/** The interface language, for counts, lists and dates. */
|
|
6
|
+
lang: string;
|
|
7
|
+
/** The identity catalog, `IDENTITY_PROVIDERS`, or the part of it the app offers. */
|
|
8
|
+
providers: Catalog;
|
|
9
|
+
/** The cards to draw, in the tile's own order. A card the account may not see stays out. */
|
|
10
|
+
cards?: readonly SignInTileCard[];
|
|
11
|
+
/** The scopes a new token can take, the narrowest first, as the app's kit knows them. */
|
|
12
|
+
scopes?: string[];
|
|
13
|
+
/** Puts what a change did, or why it failed, into the app's toasts. */
|
|
14
|
+
notify?: (message: string, severity: ToastSeverity) => void;
|
|
15
|
+
/** The path a test sign-in comes back to, where the tile stands. */
|
|
16
|
+
returnTo?: string;
|
|
17
|
+
/** The code a sign-in service sent back, from `takeSignInCode()`. */
|
|
18
|
+
arrived?: string | null;
|
|
19
|
+
/** Leaves the page for a test sign-in. Without it the browser goes there. */
|
|
20
|
+
onLeave?: (url: string) => void;
|
|
21
|
+
/** Formats a date the way the app writes them. */
|
|
22
|
+
time?: (iso: string) => string;
|
|
23
|
+
/** The rainbow position the first card takes. */
|
|
24
|
+
hueStart?: number;
|
|
25
|
+
labelKeys?: Partial<SignInTileLabelKeys>;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
28
|
+
hueStart: number;
|
|
29
|
+
scopes: string[];
|
|
30
|
+
cards: readonly SignInTileCard[];
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Catalog, type SignInApi, type SignInTileFlow, type SignInTileLabelKeys, type SignInTileState, type SignInTileText } from "@glimstone/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
state: SignInTileState;
|
|
4
|
+
flow: SignInTileFlow;
|
|
5
|
+
api: SignInApi;
|
|
6
|
+
text: SignInTileText;
|
|
7
|
+
lang: string;
|
|
8
|
+
scopes: string[];
|
|
9
|
+
providers: Catalog;
|
|
10
|
+
keys: SignInTileLabelKeys;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,8 @@ export { default as Selector } from "./Selector.vue";
|
|
|
54
54
|
export { default as SidebarRow } from "./SidebarRow.vue";
|
|
55
55
|
export { default as Sheet } from "./Sheet.vue";
|
|
56
56
|
export { default as SignInCard } from "./SignInCard.vue";
|
|
57
|
+
export { default as SignInReauthWindow } from "./SignInReauthWindow.vue";
|
|
58
|
+
export { default as SignInTile } from "./SignInTile.vue";
|
|
57
59
|
export { default as SkeletonRow } from "./SkeletonRow.vue";
|
|
58
60
|
export { default as SignInField } from "./SignInField.vue";
|
|
59
61
|
export { default as SubCard } from "./SubCard.vue";
|
|
@@ -79,7 +81,7 @@ export type { InfoAboutCardProps, InfoComponentsCardProps, InfoHelpCardProps, In
|
|
|
79
81
|
export type { SelectEntry, SelectGroup, SelectOption, SelectSubmenu } from "./selectParts";
|
|
80
82
|
export type { SelectorItem } from "./selectorItem";
|
|
81
83
|
export type { ConnectionAction, MenuBarMenu, MenuEntry, MenuHead, MenuItem, PickerItem, TreeNode, WindowAction } from "./windowParts";
|
|
82
|
-
export type { ConnectionRowLabelKeys, ConnectionRowText, ConnectionTest, PickBadge, PickGroup, PickerText, ResetAnswer, SignInAnswer, SignInText, TileMark } from "@glimstone/core";
|
|
84
|
+
export type { ConnectionRowLabelKeys, ConnectionRowText, ConnectionTest, PickBadge, PickGroup, PickerText, ResetAnswer, SignInAnswer, SignInCardService, SignInReauthText, SignInText, SignInTileCard, SignInTileLabelKeys, SignInTileText, TileMark } from "@glimstone/core";
|
|
83
85
|
export type { ChangeAnswer, FortressAnswer, FortressApp, FortressInstance, FortressLogLine, FortressPermission, FortressStatusReport, FortressText, PhraseAnswer } from "@glimstone/core";
|
|
84
86
|
export type { BadgeShape, BadgeSize, BadgeTone, ButtonTone, ButtonVariant, CryptoCoin, CryptoNetwork, FortressLabelKeys, InstanceFigure, MenuBarHandle, NotchInset, ReadmeBrand, ReadmePart } from "@glimstone/core";
|
|
85
87
|
export type { SelectMode, SelectSize, SelectWidth, SelectorActivation, SelectorOrientation, SelectorSize, SelectorVariant, SidebarCount, SignInLabelKeys, ToastViewportEntry, UpdateCheck, VersionRow } from "@glimstone/core";
|