rei-kit 2.8.0 → 2.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.
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Two panes and a handle between them — a list beside a preview, an editor
3
+ * beside its output.
4
+ *
5
+ * The handle is a `separator` with a value, which is the part a hand-written
6
+ * one never has: it can be moved with the arrow keys, Home and End send it
7
+ * to its limits, and Enter puts it back where it started. A divider that
8
+ * only answers to a drag is a layout a keyboard cannot change at all.
9
+ *
10
+ * The split is a percentage, so the panes keep their proportions when the
11
+ * window changes rather than one of them swallowing the other.
12
+ */
13
+ type __VLS_Props = {
14
+ /** The handle's accessible name, e.g. "Resize the list". */
15
+ label: string;
16
+ /** `horizontal`: side by side, the handle moves left and right. */
17
+ orientation?: 'horizontal' | 'vertical' | undefined;
18
+ /** How small the first pane may get, as a percentage. */
19
+ min?: number | undefined;
20
+ max?: number | undefined;
21
+ /** How far one arrow press moves it, in percentage points. */
22
+ step?: number | undefined;
23
+ };
24
+ type __VLS_Slots = {
25
+ /** The first pane: the list, the tree, the sidebar. */
26
+ start: () => unknown;
27
+ /** The second pane. */
28
+ end: () => unknown;
29
+ };
30
+ type __VLS_ModelProps = {
31
+ /** Where the split sits, as a percentage of the whole. `v-model`. */
32
+ modelValue?: number;
33
+ };
34
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
35
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
+ "update:modelValue": (value: number) => any;
37
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
38
+ "onUpdate:modelValue"?: (value: number) => any;
39
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * A row of controls that belong together: a formatting bar, a row of view
3
+ * switches, the actions over a table.
4
+ *
5
+ * One Tab stop for the lot. The arrows move between the controls inside it,
6
+ * Home and End jump to the ends — the toolbar pattern, and the reason to
7
+ * use it is arithmetic: twelve buttons in the tab order cost twelve presses
8
+ * to get past on the way to the thing under them.
9
+ *
10
+ * The controls are yours: anything focusable inside is picked up, so a
11
+ * toolbar can mix the kit's buttons, a `ToggleGroup` and a separator
12
+ * without declaring any of them as data.
13
+ */
14
+ type __VLS_Props = {
15
+ /** The toolbar's accessible name, e.g. "Formatting". */
16
+ label: string;
17
+ orientation?: 'horizontal' | 'vertical' | undefined;
18
+ };
19
+ type __VLS_Slots = {
20
+ default: () => unknown;
21
+ };
22
+ 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>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,42 @@
1
+ import { Component } from 'vue';
2
+ export interface TreeNode<K extends string> {
3
+ key: K;
4
+ /** Already translated. */
5
+ label: string;
6
+ icon?: Component | undefined;
7
+ disabled?: boolean | undefined;
8
+ /** Omitted or empty, it is a leaf. */
9
+ children?: readonly TreeNode<K>[] | undefined;
10
+ }
11
+ declare const __VLS_export: <K extends string, M extends "single" | "multiple" = "single">(__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<{
12
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<({
13
+ /** The chosen key, or keys in `multiple` mode, with `v-model`. */
14
+ modelValue?: (M extends "multiple" ? K[] : K | undefined) | undefined;
15
+ nodes: readonly TreeNode<K>[];
16
+ /** The tree's accessible name. */
17
+ label: string;
18
+ /** `multiple` lets several be chosen, each with its own tick. */
19
+ mode?: M | undefined;
20
+ } & {
21
+ /** Which branches are open. */
22
+ expanded?: K[];
23
+ }) & {
24
+ "onUpdate:modelValue"?: (value: M extends "multiple" ? K[] : K | undefined) => any;
25
+ "onUpdate:expanded"?: (value: K[]) => any;
26
+ }> & (typeof globalThis extends {
27
+ __VLS_PROPS_FALLBACK: infer P;
28
+ } ? P : {});
29
+ expose: (exposed: {}) => void;
30
+ attrs: any;
31
+ slots: {};
32
+ emit: ((evt: "update:modelValue", value: M extends "multiple" ? K[] : K | undefined) => void) & ((event: "update:expanded", value: K[]) => void);
33
+ }>) => import('vue').VNode & {
34
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
35
+ };
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
39
+ [K in keyof T]: T[K];
40
+ } : {
41
+ [K in keyof T as K]: T[K];
42
+ }) & {};
@@ -0,0 +1,35 @@
1
+ import { ListboxOption } from '../components/BaseListbox.vue';
2
+ declare const __VLS_export: <V extends string>(__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
+ options: readonly ListboxOption<V>[];
5
+ /** Heading over the left list, e.g. "Available". Already translated. */
6
+ availableLabel: string;
7
+ /** Heading over the right list. */
8
+ chosenLabel: string;
9
+ /** The → button's accessible name, e.g. "Add the chosen ones". */
10
+ addLabel: string;
11
+ /** The ← button's accessible name. */
12
+ removeLabel: string;
13
+ height?: string | undefined;
14
+ } & {
15
+ /** What has been moved across, in the order it was moved. `v-model`. */
16
+ modelValue?: V[];
17
+ }) & {
18
+ "onUpdate:modelValue"?: (value: V[]) => any;
19
+ }> & (typeof globalThis extends {
20
+ __VLS_PROPS_FALLBACK: infer P;
21
+ } ? P : {});
22
+ expose: (exposed: {}) => void;
23
+ attrs: any;
24
+ slots: {};
25
+ emit: (event: "update:modelValue", value: V[]) => void;
26
+ }>) => import('vue').VNode & {
27
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
28
+ };
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
32
+ [K in keyof T]: T[K];
33
+ } : {
34
+ [K in keyof T as K]: T[K];
35
+ }) & {};
@@ -47,6 +47,15 @@ export type { CommandGroup, CommandItem } from './CommandMenu.vue';
47
47
  */
48
48
  export { default as DataTable } from './DataTable.vue';
49
49
  export type { DataColumn, TableSort } from './DataTable.vue';
50
+ /**
51
+ * Two panes and a handle, a tree, a toolbar and a transfer list: the shapes
52
+ * a desk-sized screen is arranged with, and that a phone never shows.
53
+ */
54
+ export { default as BaseSplitter } from './BaseSplitter.vue';
55
+ export { default as BaseToolbar } from './BaseToolbar.vue';
56
+ export { default as BaseTree } from './BaseTree.vue';
57
+ export type { TreeNode } from './BaseTree.vue';
58
+ export { default as TransferList } from './TransferList.vue';
50
59
  export { default as BaseTabs } from './BaseTabs.vue';
51
60
  export type { TabPanel } from './BaseTabs.vue';
52
61
  export { default as BaseTooltip } from './BaseTooltip.vue';