@lumx/vue 4.25.1-alpha.2 → 4.25.1-alpha.4
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/combobox/Combobox.stories.d.ts +30 -0
- package/components/combobox/index.d.ts +3 -1
- package/components/listbox/ListboxList.d.ts +2 -2
- package/components/listbox/ListboxOptionSelectionIcon.d.ts +14 -0
- package/components/listbox/context/ListboxContext.d.ts +2 -0
- package/components/listbox/context/ListboxOptionContext.d.ts +2 -0
- package/components/listbox/index.d.ts +2 -1
- package/index.js +3060 -3046
- package/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -66,6 +66,26 @@ export declare const ComboboxWithOptionMoreInfo: {
|
|
|
66
66
|
onChange: (v: string) => void;
|
|
67
67
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
68
68
|
};
|
|
69
|
+
export declare const ComboboxWithSelectionIconSingle: {
|
|
70
|
+
args: {
|
|
71
|
+
value: string;
|
|
72
|
+
};
|
|
73
|
+
decorators: ((story: any, context: any) => any)[];
|
|
74
|
+
render: ({ value, onChange }: {
|
|
75
|
+
value: string;
|
|
76
|
+
onChange: (v: string) => void;
|
|
77
|
+
}) => import("vue/jsx-runtime").JSX.Element;
|
|
78
|
+
};
|
|
79
|
+
export declare const ComboboxWithSelectionIconMultiple: {
|
|
80
|
+
args: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
83
|
+
decorators: ((story: any, context: any) => any)[];
|
|
84
|
+
render: ({ value, onChange }: {
|
|
85
|
+
value: string;
|
|
86
|
+
onChange: (v: string) => void;
|
|
87
|
+
}) => import("vue/jsx-runtime").JSX.Element;
|
|
88
|
+
};
|
|
69
89
|
export declare const GridComboboxWithInput: {
|
|
70
90
|
args: {
|
|
71
91
|
value: string;
|
|
@@ -161,3 +181,13 @@ export declare const ComboboxWithOptionTooltips: {
|
|
|
161
181
|
onChange: (v: string) => void;
|
|
162
182
|
}) => import("vue/jsx-runtime").JSX.Element;
|
|
163
183
|
};
|
|
184
|
+
export declare const ComboboxWithTruncatedOption: {
|
|
185
|
+
args: {
|
|
186
|
+
value: string;
|
|
187
|
+
};
|
|
188
|
+
decorators: ((story: any, context: any) => any)[];
|
|
189
|
+
render: ({ value, onChange }: {
|
|
190
|
+
value: string;
|
|
191
|
+
onChange: (v: string) => void;
|
|
192
|
+
}) => import("vue/jsx-runtime").JSX.Element;
|
|
193
|
+
};
|
|
@@ -60,7 +60,7 @@ export declare const Combobox: {
|
|
|
60
60
|
onClear?: ((_event?: MouseEvent | undefined) => any) | undefined;
|
|
61
61
|
}, import('vue').PublicProps>;
|
|
62
62
|
/** Listbox container linked to the combobox trigger (must be rendered inside `Combobox.Provider`). */
|
|
63
|
-
List: import('vue').DefineSetupFnComponent<import('.').ComboboxListProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxList').ListboxListProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy"> & {
|
|
63
|
+
List: import('vue').DefineSetupFnComponent<import('.').ComboboxListProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxList').ListboxListProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy" | "aria-multiselectable"> & {
|
|
64
64
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
65
65
|
} & {}, import('vue').PublicProps>;
|
|
66
66
|
/** Selectable option item with filtering and keyboard navigation support. */
|
|
@@ -92,6 +92,8 @@ export declare const Combobox: {
|
|
|
92
92
|
OptionSkeleton: import('vue').DefineSetupFnComponent<import('.').ComboboxOptionSkeletonProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxOptionSkeleton').ListboxOptionSkeletonProps, "className" | import('@lumx/core/js/types').PropsToOverride | import('@lumx/core/js/components/Listbox/ListboxOptionSkeleton').ListboxOptionSkeletonPropsToOverride> & {
|
|
93
93
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
94
94
|
} & {}, import('vue').PublicProps>;
|
|
95
|
+
/** Selection state icon (check circle / radio, or checkbox in multiple lists) for the `after` slot of an option. Reads the option `isSelected` and the list `aria-multiselectable`. */
|
|
96
|
+
SelectionIcon: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
95
97
|
/** Floating popover container that auto-binds to the combobox anchor and open/close state. */
|
|
96
98
|
Popover: import('vue').DefineSetupFnComponent<import('./ComboboxPopover').ComboboxPopoverProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxPopover').ComboboxPopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "children" | "anchorRef"> & {
|
|
97
99
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ListboxListProps as UIProps, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Listbox/ListboxList';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
-
export type ListboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy' | 'id'>;
|
|
3
|
+
export type ListboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy' | 'aria-multiselectable' | 'id'>;
|
|
4
4
|
/**
|
|
5
5
|
* List component (`Combobox.List` and `Listbox.List`): the WAI-ARIA listbox pattern by default (`role="listbox"` with
|
|
6
6
|
* `role="option"` items), or the grid pattern with `type="grid"` (`role="grid"` with one
|
|
@@ -18,7 +18,7 @@ export type ListboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy'
|
|
|
18
18
|
* @param props Component props.
|
|
19
19
|
* @return Vue element.
|
|
20
20
|
*/
|
|
21
|
-
declare const ListboxList: import('vue').DefineSetupFnComponent<ListboxListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy"> & {
|
|
21
|
+
declare const ListboxList: import('vue').DefineSetupFnComponent<ListboxListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy" | "aria-multiselectable"> & {
|
|
22
22
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
23
23
|
} & {}, import('vue').PublicProps>;
|
|
24
24
|
export { COMPONENT_NAME, CLASSNAME };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Combobox.SelectionIcon component (`Listbox.SelectionIcon`, re-exported by the combobox).
|
|
3
|
+
*
|
|
4
|
+
* Displays the selection state icon of an option (the same icon as in `SelectTextField` and `SelectButton`):
|
|
5
|
+
* - `single` list: a check circle icon when selected, a blank radio icon otherwise.
|
|
6
|
+
* - `multiple` list (`aria-multiselectable` on `Combobox.List`): a checkbox icon, marked or blank.
|
|
7
|
+
*
|
|
8
|
+
* The option selected state (`isSelected`) and the list selection type are read from the parent context.
|
|
9
|
+
* Must be placed in the `after` slot of a `Combobox.Option`.
|
|
10
|
+
*
|
|
11
|
+
* @return Vue element.
|
|
12
|
+
*/
|
|
13
|
+
declare const ListboxOptionSelectionIcon: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
14
|
+
export default ListboxOptionSelectionIcon;
|
|
@@ -13,6 +13,8 @@ export interface ListboxContextValue {
|
|
|
13
13
|
listboxId: string;
|
|
14
14
|
/** The pattern of the list. "grid" enables 2D keyboard navigation and action buttons on options. */
|
|
15
15
|
type: 'listbox' | 'grid';
|
|
16
|
+
/** The selection type of the list (from `aria-multiselectable`). Provided by the list. */
|
|
17
|
+
selectionType?: 'single' | 'multiple';
|
|
16
18
|
}
|
|
17
19
|
/** Provide the listbox context (see `ListboxProvider` and `Combobox.Provider`). */
|
|
18
20
|
export declare function provideListboxContext(value: ListboxContextValue): void;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export interface ListboxOptionContextValue {
|
|
3
3
|
/** The ID of the parent option element (matches the aria-activedescendant value when highlighted). */
|
|
4
4
|
optionId: string;
|
|
5
|
+
/** Whether the parent option is selected. */
|
|
6
|
+
isSelected: boolean;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Provides the combobox option context.
|
|
@@ -10,7 +10,7 @@ export declare const Listbox: {
|
|
|
10
10
|
}) => any) | undefined;
|
|
11
11
|
}, import('vue').PublicProps>;
|
|
12
12
|
/** List (listbox pattern by default, grid pattern with `type="grid"` for options with actions). */
|
|
13
|
-
List: import('vue').DefineSetupFnComponent<import('./ListboxList').ListboxListProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxList').ListboxListProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy"> & {
|
|
13
|
+
List: import('vue').DefineSetupFnComponent<import('./ListboxList').ListboxListProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxList').ListboxListProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy" | "aria-multiselectable"> & {
|
|
14
14
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
15
15
|
} & {}, import('vue').PublicProps>;
|
|
16
16
|
Option: import('vue').DefineSetupFnComponent<import('./ListboxOption').ListboxOptionProps, {
|
|
@@ -38,6 +38,7 @@ export declare const Listbox: {
|
|
|
38
38
|
OptionSkeleton: import('vue').DefineSetupFnComponent<import('./ListboxOptionSkeleton').ListboxOptionSkeletonProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxOptionSkeleton').ListboxOptionSkeletonProps, "className" | import('@lumx/core/js/types').PropsToOverride | import('@lumx/core/js/components/Listbox/ListboxOptionSkeleton').ListboxOptionSkeletonPropsToOverride> & {
|
|
39
39
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
40
40
|
} & {}, import('vue').PublicProps>;
|
|
41
|
+
SelectionIcon: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
41
42
|
Section: import('vue').DefineSetupFnComponent<import('./ListboxSection').ListboxSectionProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxSection').ListboxSectionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-hidden" | "hidden"> & {
|
|
42
43
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
43
44
|
} & {}, import('vue').PublicProps>;
|