@lumx/vue 4.27.1-alpha.2 → 4.28.0-next.1
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/components/composite/CompositeContext.d.ts +1 -2
- package/components/composite/useCompositeList.d.ts +4 -13
- package/index.d.ts +0 -1
- package/index.js +4774 -5361
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/components/tree-list/TreeList.d.ts +0 -98
- package/components/tree-list/TreeList.stories.d.ts +0 -63
- package/components/tree-list/TreeList.test.stories.d.ts +0 -83
- package/components/tree-list/TreeListContext.d.ts +0 -9
- package/components/tree-list/TreeListItem.d.ts +0 -73
- package/components/tree-list/index.d.ts +0 -34
|
@@ -5,8 +5,7 @@ import { CompositeHandle, CompositeType } from '@lumx/core/js/components/Composi
|
|
|
5
5
|
* its items, sections, skeletons and state.
|
|
6
6
|
*
|
|
7
7
|
* Provided by `ListboxProvider` (standalone listbox) and by `Combobox.Provider` (the list registered on
|
|
8
|
-
* the combobox, with `comboboxListId`), then re-provided by the list with its `type
|
|
9
|
-
* the next `level`), without `comboboxListId`.
|
|
8
|
+
* the combobox, with `comboboxListId`), then re-provided by the list with its `type`, without `comboboxListId`.
|
|
10
9
|
*/
|
|
11
10
|
export interface CompositeContextValue {
|
|
12
11
|
/** The composite handle (null inside a combobox until a list registers). */
|
|
@@ -4,24 +4,15 @@ import { CompositeHandle, CompositeOptions } from '@lumx/core/js/components/Comp
|
|
|
4
4
|
export interface UseCompositeListOptions<H extends CompositeHandle> {
|
|
5
5
|
/** The list element, mounted on the handle. */
|
|
6
6
|
elementRef: Readonly<Ref<HTMLElement | null>>;
|
|
7
|
-
/** Create the list handle (e.g. `setupListbox`)
|
|
7
|
+
/** Create the list handle (e.g. `setupListbox`) with the combobox list options. */
|
|
8
8
|
createList(options: CompositeOptions): H;
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
* the composable creates the standalone handle with `createList` (and destroys it on unmount).
|
|
12
|
-
*/
|
|
13
|
-
standaloneHandle?: Readonly<Ref<H | null>>;
|
|
14
|
-
/** Standalone list created by the composable: called on a selection. */
|
|
15
|
-
onSelect?(option: {
|
|
16
|
-
value: string;
|
|
17
|
-
}): void;
|
|
9
|
+
/** Standalone list: the handle of the list provider above the list (e.g. `ListboxProvider`). */
|
|
10
|
+
standaloneHandle: Readonly<Ref<H | null>>;
|
|
18
11
|
}
|
|
19
12
|
/** Result of {@link useCompositeList}. */
|
|
20
13
|
export interface UseCompositeListResult<H extends CompositeHandle> {
|
|
21
14
|
/** The list handle (null inside a combobox until the trigger mounts). */
|
|
22
15
|
handle: Readonly<Ref<H | null>>;
|
|
23
|
-
/** The combobox list ID when the list is the combobox list (the trigger `aria-controls` it), else undefined. */
|
|
24
|
-
comboboxListId?: string;
|
|
25
16
|
/** Whether the items are visible (standalone: always; combobox: while open). */
|
|
26
17
|
isOpen: Readonly<Ref<boolean>>;
|
|
27
18
|
/** Whether root skeletons are registered (`aria-busy` on the list). */
|
|
@@ -33,7 +24,7 @@ export interface UseCompositeListResult<H extends CompositeHandle> {
|
|
|
33
24
|
* carries `comboboxListId`). Set on setup.
|
|
34
25
|
* - Combobox list: attach the handle (linked to the trigger) when the combobox handle exists, then detach it on
|
|
35
26
|
* unmount or when the combobox handle changes.
|
|
36
|
-
* - Standalone list: the handle of the list provider
|
|
27
|
+
* - Standalone list: the handle of the list provider.
|
|
37
28
|
* - Mount the list element on the handle.
|
|
38
29
|
* - Replay the pending keyboard navigation after the items render on open.
|
|
39
30
|
*/
|
package/index.d.ts
CHANGED
|
@@ -44,7 +44,6 @@ export * from './components/text';
|
|
|
44
44
|
export * from './components/thumbnail';
|
|
45
45
|
export * from './components/toolbar';
|
|
46
46
|
export * from './components/tooltip';
|
|
47
|
-
export * from './components/tree-list';
|
|
48
47
|
export * from './components/user-block';
|
|
49
48
|
export * from './components/select-button';
|
|
50
49
|
export * from './components/select-text-field';
|