@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 CHANGED
@@ -45,7 +45,7 @@ const { confirm, ConfirmHost } = useConfirm({ title: "Confirm", cancel: "Cancel"
45
45
  - The engines are composables: `useLabelMode`, `useRainbow`, `useShape`,
46
46
  `useMotion`, `useAccent` and `useHue`, each a writable ref that follows the
47
47
  document.
48
- - A component that waits for the app's answer, such as `SignInCard`, takes
48
+ - A component that waits for the app's answer, such as `SignInCard` or `Fortress`, takes
49
49
  async callbacks as props (`:on-sign-in`, or `@sign-in`, which Vue binds to the
50
50
  same prop), since an emitted event cannot answer.
51
51
  - `Select`, `Combobox` and `Slider` come from their own entries and need
@@ -1,7 +1,12 @@
1
- import { type BadgeShape, type BadgeSize, type BadgeTone, type NotchInset } from "@glimstone/core";
1
+ import { type BadgeForm, type BadgeShape, type BadgeSize, type BadgeTone, type NotchInset } from "@glimstone/core";
2
2
  type __VLS_Props = {
3
3
  tone?: BadgeTone;
4
4
  size?: BadgeSize;
5
+ /** The corners: rounded, square, pill or circle. Without it they follow
6
+ * the shape setting. */
7
+ form?: BadgeForm;
8
+ /** @deprecated Use `form`. Only "circle" has an effect: it makes the
9
+ * badge icon-only. */
5
10
  shape?: BadgeShape;
6
11
  as?: "span" | "button" | "a";
7
12
  disabled?: boolean;
@@ -34,7 +39,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
34
39
  disabled: boolean;
35
40
  tone: BadgeTone;
36
41
  size: BadgeSize;
37
- shape: BadgeShape;
38
42
  as: "a" | "button" | "span";
39
43
  wrap: boolean;
40
44
  inFlow: boolean;
@@ -0,0 +1,13 @@
1
+ import { type BusyRingSize } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ /** `small` fits a button's glyph slot, `large` a card that waits. */
4
+ size?: BusyRingSize;
5
+ /** What is being waited for. With it the ring is a status that says so, without
6
+ * it the ring is hidden from assistive technology and its surroundings speak. */
7
+ label?: string;
8
+ /** Milliseconds before it shows; 0 shows it at once. */
9
+ delay?: number;
10
+ };
11
+ 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>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -24,7 +24,7 @@ type __VLS_Props = {
24
24
  title?: string;
25
25
  /** This button's own rainbow position, for a colour different from its card's. */
26
26
  hueIndex?: number;
27
- /** Shows a spinner in place of the glyph. Separate from `disabled`. */
27
+ /** Shows the busy ring in place of the glyph, at once. Separate from `disabled`. */
28
28
  busy?: boolean;
29
29
  /** Forces a width stage, for two buttons in different components that should match. */
30
30
  stage?: WidthStage;
package/dist/Combobox.js CHANGED
@@ -1,13 +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, mergeModels as f, mergeProps as p, openBlock as m, renderList as h, shallowRef as g, toDisplayString as _, unref as v, useId as y, useModel as b, watch as x } from "vue";
4
- import { normalizeProps as S, useMachine as C } from "@zag-js/vue";
5
- import * as w from "@zag-js/combobox";
4
+ import { portalTarget as S } from "@glimstone/core";
5
+ import { normalizeProps as C, useMachine as w } from "@zag-js/vue";
6
+ import * as T from "@zag-js/combobox";
6
7
  // src/Combobox.vue?vue&type=script&setup=true&lang.ts
7
- var T = ["aria-label"], E = ["data-state"], D = {
8
+ var E = ["aria-label"], D = ["data-state"], O = {
8
9
  key: 0,
9
10
  class: "glim-select-empty"
10
- }, O = /* @__PURE__ */ d({
11
+ }, k = /* @__PURE__ */ d({
11
12
  __name: "Combobox",
12
13
  props: /*@__PURE__*/ f({
13
14
  label: {},
@@ -29,17 +30,17 @@ var T = ["aria-label"], E = ["data-state"], D = {
29
30
  }),
30
31
  emits: ["update:modelValue"],
31
32
  setup(d) {
32
- let f = d, O = b(d, "modelValue"), k = e(() => f.label), A = y(), j = g(f.options);
33
- x(() => f.options, (e) => j.value = e);
34
- let M = a(() => w.collection({
35
- items: j.value,
33
+ let f = d, k = b(d, "modelValue"), A = e(() => f.label), j = y(), M = g(f.options);
34
+ x(() => f.options, (e) => M.value = e);
35
+ let N = a(() => T.collection({
36
+ items: M.value,
36
37
  itemToValue: (e) => e.value,
37
38
  itemToString: (e) => e.label,
38
39
  isItemDisabled: (e) => !!e.disabled
39
- })), N = C(w.machine, a(() => ({
40
- id: A,
41
- collection: M.value,
42
- value: O.value ? [O.value] : [],
40
+ })), P = w(T.machine, a(() => ({
41
+ id: j,
42
+ collection: N.value,
43
+ value: k.value ? [k.value] : [],
43
44
  placeholder: f.placeholder,
44
45
  disabled: f.disabled,
45
46
  positioning: {
@@ -47,25 +48,25 @@ var T = ["aria-label"], E = ["data-state"], D = {
47
48
  gutter: 6
48
49
  },
49
50
  onOpenChange: ({ open: e }) => {
50
- e || (j.value = f.options);
51
+ e || (M.value = f.options);
51
52
  },
52
53
  onInputValueChange: ({ inputValue: e }) => {
53
54
  let t = e.toLocaleLowerCase();
54
- j.value = f.options.filter((e) => e.label.toLocaleLowerCase().includes(t));
55
+ M.value = f.options.filter((e) => e.label.toLocaleLowerCase().includes(t));
55
56
  },
56
- onValueChange: (e) => O.value = e.value[0] ?? ""
57
- }))), P = a(() => w.connect(N, S));
58
- return (e, a) => (m(), c("div", p(P.value.getRootProps(), { class: "glim-combobox" }), [
59
- l("label", p(P.value.getLabelProps(), { class: d.hideLabel || d.label === void 0 ? "glim-sr-only" : "glim-field-label" }), _(v(k)), 17),
60
- l("div", p(P.value.getControlProps(), { class: "glim-combobox-control" }), [l("input", p(P.value.getInputProps(), { class: "glim-combobox-input" }), null, 16), l("button", p(P.value.getTriggerProps(), {
57
+ onValueChange: (e) => k.value = e.value[0] ?? ""
58
+ }))), F = a(() => T.connect(P, C));
59
+ return (e, a) => (m(), c("div", p({ "data-glim": "Combobox" }, F.value.getRootProps(), { class: "glim-combobox" }), [
60
+ l("label", p(F.value.getLabelProps(), { class: d.hideLabel || d.label === void 0 ? "glim-sr-only" : "glim-field-label" }), _(v(A)), 17),
61
+ l("div", p(F.value.getControlProps(), { class: "glim-combobox-control" }), [l("input", p(F.value.getInputProps(), { class: "glim-combobox-input" }), null, 16), l("button", p(F.value.getTriggerProps(), {
61
62
  "aria-label": d.toggleLabel,
62
63
  class: "glim-combobox-toggle"
63
64
  }), [l("span", {
64
65
  class: "glim-select-indicator",
65
- "data-state": P.value.open ? "open" : "closed"
66
- }, [u(v(t))], 8, E)], 16, T)], 16),
67
- (m(), o(i, { to: "body" }, [l("div", p(P.value.getPositionerProps(), { class: "glim-select-positioner" }), [l("ul", p(P.value.getContentProps(), { class: "glim-select-content" }), [j.value.length === 0 ? (m(), c("li", D, _(d.empty), 1)) : s("", !0), (m(!0), c(r, null, h(j.value, (e) => (m(), c("li", p({ key: e.value }, { ref_for: !0 }, P.value.getItemProps({ item: e }), { class: "glim-select-item" }), [l("span", p({ ref_for: !0 }, P.value.getItemTextProps({ item: e })), _(e.label), 17), l("span", p({ ref_for: !0 }, P.value.getItemIndicatorProps({ item: e }), { class: "glim-select-check" }), [u(v(n))], 16)], 16))), 128))], 16)], 16)]))
66
+ "data-state": F.value.open ? "open" : "closed"
67
+ }, [u(v(t))], 8, D)], 16, E)], 16),
68
+ (m(), o(i, { to: v(S)() }, [l("div", p(F.value.getPositionerProps(), { class: "glim-select-positioner" }), [l("ul", p(F.value.getContentProps(), { class: "glim-select-content" }), [M.value.length === 0 ? (m(), c("li", O, _(d.empty), 1)) : s("", !0), (m(!0), c(r, null, h(M.value, (e) => (m(), c("li", p({ key: e.value }, { ref_for: !0 }, F.value.getItemProps({ item: e }), { class: "glim-select-item" }), [l("span", p({ ref_for: !0 }, F.value.getItemTextProps({ item: e })), _(e.label), 17), l("span", p({ ref_for: !0 }, F.value.getItemIndicatorProps({ item: e }), { class: "glim-select-check" }), [u(v(n))], 16)], 16))), 128))], 16)], 16)], 8, ["to"]))
68
69
  ], 16));
69
70
  }
70
71
  });
71
- export { O as Combobox };
72
+ export { k as Combobox };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ id: string;
3
+ };
4
+ declare const __VLS_template: () => {
5
+ __VLS_Slots: {
6
+ default?: (props: {}) => any;
7
+ };
8
+ };
9
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
10
+ declare const __VLS_base: 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>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,87 @@
1
+ import { type ChangeAnswer, type FortressAnswer, type FortressApp, type FortressInstance, type FortressPermission, type FortressText, type PhraseAnswer, type ToastSeverity } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ text: FortressText;
4
+ /** The interface language, for counts and lists. */
5
+ lang: string;
6
+ /** The app showing the page. */
7
+ app: {
8
+ id: string;
9
+ name: string;
10
+ logo?: string;
11
+ };
12
+ joined: boolean;
13
+ /** The other apps of the fortress, each with its instances. */
14
+ apps: FortressApp[];
15
+ permissions: FortressPermission[];
16
+ onPermission: (id: string, on: boolean) => Promise<FortressAnswer>;
17
+ /** Puts the small confirmation of a saved permission, or the reason it failed, into the app's toasts. */
18
+ notify?: (message: string, severity: ToastSeverity) => void;
19
+ onJoin: (words: string[]) => Promise<FortressAnswer>;
20
+ /** Removes an instance, of this app or another. Without it no other app offers Remove. */
21
+ onRemove?: (id: string) => Promise<FortressAnswer>;
22
+ /** `password` is set where `phrasePassword` asks for it first. Without it there is no Show phrase. */
23
+ onShowPhrase?: (password?: string) => Promise<PhraseAnswer>;
24
+ /** Offered right after a removal and beside `removed`, since the old phrase still lets a removed instance back in. */
25
+ onChangePhrase?: () => Promise<ChangeAnswer>;
26
+ /** The instances removed since the phrase last changed, by name ("Bravo on Atlas"). While there are any, a line says the way back is still open. */
27
+ removed?: string[];
28
+ /** Another member removed this app, so the empty place says so until it joins again. */
29
+ removedHere?: boolean;
30
+ /** Whether the other apps show. Without it the switch keeps its state on this device. */
31
+ showOthers?: boolean;
32
+ /** The app draws the switch for the other apps itself, such as at the top of its pairing card, with `showOthers` and `othersLine`. */
33
+ hideSwitch?: boolean;
34
+ /** The devices this app is paired with today, whose pairing moves into the fortress on joining. */
35
+ pairedWith?: string[];
36
+ /** A member of a fortress this app saw on the network while it is in none. */
37
+ found?: {
38
+ app: string;
39
+ device: string;
40
+ logo?: string;
41
+ };
42
+ /** Asks for the app's password before the phrase shows. */
43
+ phrasePassword?: boolean;
44
+ onOpen?: (app: FortressApp, instance: FortressInstance) => void;
45
+ /** What the QR code beside the words carries, the words alone without it. */
46
+ phraseQr?: (words: string[]) => string;
47
+ labelKeys?: Partial<Record<"join" | "leave" | "showPhrase" | "changePhrase" | "remove" | "later" | "unlock" | "copy", string>>;
48
+ /** The rainbow position the fortress's first card takes, after the app's own cards. */
49
+ hueStart?: number;
50
+ };
51
+ declare const __VLS_template: () => {
52
+ __VLS_Slots: {
53
+ default?: (props: {
54
+ remove: (id: string, device: string) => void;
55
+ }) => any;
56
+ } & {
57
+ app?: (props: {
58
+ app: FortressApp;
59
+ hueIndex: number;
60
+ remove: ((id: string, device: string) => void) | undefined;
61
+ }) => any;
62
+ } & {
63
+ 'permission-extra'?: (props: {
64
+ permission: FortressPermission;
65
+ }) => any;
66
+ };
67
+ };
68
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
69
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
+ "update:showOthers": (on: boolean) => any;
71
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
72
+ "onUpdate:showOthers"?: ((on: boolean) => any) | undefined;
73
+ }>, {
74
+ removed: string[];
75
+ removedHere: boolean;
76
+ showOthers: boolean;
77
+ phrasePassword: boolean;
78
+ hueStart: number;
79
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
80
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
81
+ declare const _default: typeof __VLS_export;
82
+ export default _default;
83
+ type __VLS_WithSlots<T, S> = T & {
84
+ new (): {
85
+ $slots: S;
86
+ };
87
+ };
@@ -0,0 +1,19 @@
1
+ import { type FortressApp, type FortressInstance, type FortressText } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ app: FortressApp;
4
+ text: FortressText;
5
+ /** The interface language, for the counts. */
6
+ lang: string;
7
+ hueIndex?: number;
8
+ /** Opens an instance, through the fortress where it runs elsewhere. Without it the instance's `open.href` opens in a new tab. */
9
+ onOpen?: (app: FortressApp, instance: FortressInstance) => void;
10
+ /** Asks before an instance is removed, with its name. Without it nothing here removes. */
11
+ onRemove?: (id: string, name: string) => void;
12
+ /** The label key behind Remove, which picks its glyph. */
13
+ removeKey?: string;
14
+ };
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ removeKey: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { type FortressApp, type FortressInstance, type FortressText } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ app: FortressApp;
4
+ instance: FortressInstance;
5
+ text: FortressText;
6
+ /** Runs on Open anyway. The window closes either way. */
7
+ onOpen: () => void;
8
+ onClose: () => void;
9
+ };
10
+ 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>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import { type ChangeAnswer, type FortressAnswer, type FortressText, type PhraseAnswer } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ text: FortressText;
4
+ lang: string;
5
+ app: {
6
+ id: string;
7
+ name: string;
8
+ };
9
+ onLeave: () => Promise<FortressAnswer>;
10
+ /** `password` is set where `phrasePassword` asks for it first. Without it there is no Show phrase here. */
11
+ onShowPhrase?: (password?: string) => Promise<PhraseAnswer>;
12
+ /** Asks for the app's password before the phrase shows. */
13
+ phrasePassword?: boolean;
14
+ /** What the QR code beside the words carries, the words alone without it. */
15
+ phraseQr?: (words: string[]) => string;
16
+ /** Without it there is no way to change the phrase here, for an app that cannot keep a new one. */
17
+ onChangePhrase?: () => Promise<ChangeAnswer>;
18
+ /** The devices whose pairing ends with leaving. */
19
+ pairedWith?: string[];
20
+ /** A sentence of the app's own for the leave window, such as what stays as it is. */
21
+ leaveNote?: string;
22
+ labelKeys?: Partial<Record<"leave" | "showPhrase" | "changePhrase" | "copy", string>>;
23
+ hueIndex?: number;
24
+ };
25
+ declare const __VLS_template: () => {
26
+ __VLS_Slots: {
27
+ default?: (props: {}) => any;
28
+ } & {
29
+ after?: (props: {}) => any;
30
+ };
31
+ };
32
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
33
+ declare const __VLS_base: 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>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,34 @@
1
+ import { type FortressAnswer, type FortressApp, type FortressPermission, type FortressText, type ToastSeverity } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ text: FortressText;
4
+ /** The app showing the card, for the filter "With {app}". */
5
+ app: {
6
+ id: string;
7
+ name: string;
8
+ };
9
+ /** Every app of the fortress, this one included, for the marks. */
10
+ apps: Pick<FortressApp, "id" | "name" | "logo">[];
11
+ permissions: FortressPermission[];
12
+ /** Saves one switch the moment it flips. A refusal leaves it as it was and shakes it. */
13
+ onPermission: (id: string, on: boolean) => Promise<FortressAnswer>;
14
+ /** Puts the small confirmation of a save, or the reason it failed, into the app's toasts. */
15
+ notify?: (message: string, severity: ToastSeverity) => void;
16
+ hueIndex?: number;
17
+ };
18
+ declare const __VLS_template: () => {
19
+ __VLS_Slots: {
20
+ extra?: (props: {
21
+ permission: FortressPermission;
22
+ }) => any;
23
+ };
24
+ };
25
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
26
+ declare const __VLS_base: 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>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,19 @@
1
+ import { type FortressApp, type FortressInstance, type FortressLogLine, type FortressStatusReport, type FortressText } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ app: FortressApp;
4
+ instance: FortressInstance;
5
+ /** The member's status report, its words and times already in the person's language. */
6
+ report?: FortressStatusReport;
7
+ /** The member's log, newest first. The window shows the first ten lines. */
8
+ log?: FortressLogLine[];
9
+ loading?: boolean;
10
+ /** Why the report did not come, such as `openRefusalText` puts it. */
11
+ error?: string;
12
+ text: FortressText;
13
+ /** The interface language. */
14
+ lang: string;
15
+ onClose: () => void;
16
+ };
17
+ 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>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { type FortressFlow, type FortressState, type FortressText } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ flow: FortressFlow;
4
+ state: FortressState;
5
+ text: FortressText;
6
+ lang: string;
7
+ app: {
8
+ id: string;
9
+ name: string;
10
+ };
11
+ pairedWith?: string[];
12
+ leaveNote?: string;
13
+ /** What the QR code beside the words carries, the words alone without it. */
14
+ phraseQr?: (words: string[]) => string;
15
+ keys: Record<"join" | "leave" | "changePhrase" | "remove" | "later" | "unlock" | "copy", string>;
16
+ };
17
+ 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>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,39 @@
1
+ type __VLS_Props = {
2
+ /** The address of the app's mark. */
3
+ logo?: string;
4
+ /** The device's name for an instance of this app, the app's name for another app. */
5
+ name: string;
6
+ eyebrow?: string;
7
+ /** One quiet line of facts, joined with a dot. Empty ones are left out. */
8
+ facts?: (string | undefined)[];
9
+ /** A few numbers under the facts, each with its small label. */
10
+ figures?: {
11
+ value: string;
12
+ label: string;
13
+ }[];
14
+ /** The card's position in the rainbow, counted over the cards on the page. */
15
+ hueIndex?: number;
16
+ };
17
+ declare const __VLS_template: () => {
18
+ __VLS_Slots: {
19
+ logo?: (props: {}) => any;
20
+ } & {
21
+ badges?: (props: {}) => any;
22
+ } & {
23
+ actions?: (props: {}) => any;
24
+ } & {
25
+ default?: (props: {}) => any;
26
+ } & {
27
+ actions?: (props: {}) => any;
28
+ };
29
+ };
30
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
31
+ declare const __VLS_base: 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>;
32
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,37 @@
1
+ import { type ListColumn, type ListTableText } from "@glimstone/core";
2
+ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
+ /** The list's accessible name. */
5
+ label: string;
6
+ columns: readonly ListColumn[];
7
+ rows: readonly T[];
8
+ /** A key that stays with a row through sorting and filtering. */
9
+ rowKey: (row: T) => string;
10
+ /** The columns the search looks in; the first column by default. */
11
+ search?: readonly string[];
12
+ text: ListTableText;
13
+ } & {
14
+ onSelect?: ((rows: T[]) => any) | undefined;
15
+ onOpen?: ((row: T) => any) | undefined;
16
+ }> & (typeof globalThis extends {
17
+ __VLS_PROPS_FALLBACK: infer P;
18
+ } ? P : {});
19
+ expose: (exposed: {}) => void;
20
+ attrs: any;
21
+ slots: {
22
+ cell?: (props: {
23
+ row: T;
24
+ column: ListColumn;
25
+ }) => any;
26
+ };
27
+ emit: ((evt: "select", rows: T[]) => void) & ((evt: "open", row: T) => void);
28
+ }>) => import("vue").VNode & {
29
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
30
+ };
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
34
+ [K in keyof T]: T[K];
35
+ } : {
36
+ [K in keyof T as K]: T[K];
37
+ }) & {};
@@ -1,9 +1,14 @@
1
+ type __VLS_Props = {
2
+ /** Why the value cannot stand, as a line under the field until it is fixed. */
3
+ error?: string;
4
+ };
1
5
  type __VLS_ModelProps = {
2
6
  modelValue?: number | null;
3
7
  };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
10
  "update:modelValue": (value: number | null) => any;
6
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
7
12
  "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
8
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
14
  declare const _default: typeof __VLS_export;
@@ -9,6 +9,8 @@ type __VLS_Props = {
9
9
  hide: string;
10
10
  };
11
11
  disabled?: boolean;
12
+ /** Why the value cannot stand, as a line under the field until it is fixed. */
13
+ error?: string;
12
14
  };
13
15
  type __VLS_ModelProps = {
14
16
  modelValue?: string;
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ /** Whether it shows. */
3
+ open: boolean;
4
+ /** The control it stands beside. */
5
+ anchor: HTMLElement | null;
6
+ /** Its accessible name. */
7
+ label: string;
8
+ };
9
+ declare const __VLS_template: () => {
10
+ __VLS_Slots: {
11
+ default?: (props: {}) => any;
12
+ };
13
+ };
14
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ close: () => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onClose?: (() => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -12,8 +12,8 @@ type __VLS_Props = {
12
12
  };
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
14
  value: number | null;
15
- failed: boolean;
16
15
  paused: boolean;
16
+ failed: boolean;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;