@lumx/vue 4.25.1-alpha.2 → 4.25.1-alpha.3
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/ComboboxList.d.ts +15 -0
- package/components/{listbox/ListboxOption.d.ts → combobox/ComboboxOption.d.ts} +5 -5
- package/components/combobox/ComboboxOptionAction.d.ts +20 -0
- package/components/{listbox/ListboxOptionMoreInfo.d.ts → combobox/ComboboxOptionMoreInfo.d.ts} +5 -5
- package/components/combobox/ComboboxOptionSkeleton.d.ts +14 -0
- package/components/combobox/ComboboxSection.d.ts +14 -0
- package/components/combobox/ComboboxSelectionIcon.d.ts +14 -0
- package/components/combobox/ComboboxState.d.ts +14 -0
- package/components/combobox/context/ComboboxListContext.d.ts +16 -0
- package/components/{listbox/context/ListboxOptionContext.d.ts → combobox/context/ComboboxOptionContext.d.ts} +5 -3
- package/components/combobox/context/useComboboxEvent.d.ts +5 -6
- package/components/combobox/index.d.ts +21 -18
- package/components/combobox/useWrappedRenderOptionSlot.d.ts +1 -1
- package/components/select-button/index.d.ts +1 -1
- package/components/select-text-field/index.d.ts +4 -4
- package/index.js +6827 -6964
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/components/listbox/ListboxList.d.ts +0 -25
- package/components/listbox/ListboxOptionAction.d.ts +0 -23
- package/components/listbox/ListboxOptionSkeleton.d.ts +0 -14
- package/components/listbox/ListboxProvider.d.ts +0 -16
- package/components/listbox/ListboxSection.d.ts +0 -14
- package/components/listbox/ListboxState.d.ts +0 -14
- package/components/listbox/context/ListboxContext.d.ts +0 -23
- package/components/listbox/context/useListboxEvent.d.ts +0 -13
- package/components/listbox/index.d.ts +0 -47
- /package/components/{listbox/ListboxOption.test.d.ts → combobox/ComboboxOption.test.d.ts} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComboboxListProps as UIProps, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxList';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ComboboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy' | 'aria-multiselectable' | 'id'>;
|
|
4
|
+
/**
|
|
5
|
+
* Combobox.List component - wraps List with listbox ARIA attributes.
|
|
6
|
+
* Registers itself as the combobox listbox on mount.
|
|
7
|
+
*
|
|
8
|
+
* @param props Component props.
|
|
9
|
+
* @return Vue element.
|
|
10
|
+
*/
|
|
11
|
+
declare const ComboboxList: import('vue').DefineSetupFnComponent<ComboboxListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-multiselectable" | "aria-busy"> & {
|
|
12
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
13
|
+
} & {}, import('vue').PublicProps>;
|
|
14
|
+
export { COMPONENT_NAME, CLASSNAME };
|
|
15
|
+
export default ComboboxList;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComboboxOptionProps as UIProps, ComboboxOptionPropsToOverride, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxOption';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
3
|
import { TooltipProps } from '../tooltip/Tooltip';
|
|
4
|
-
export type
|
|
4
|
+
export type ComboboxOptionProps = VueToJSXProps<UIProps, ComboboxOptionPropsToOverride | 'descriptionId' | 'hidden' | 'isGrid' | 'id'> & {
|
|
5
5
|
/** Props forwarded to a Tooltip wrapping the option trigger element. */
|
|
6
6
|
tooltipProps?: Partial<TooltipProps>;
|
|
7
7
|
/** Props forwarded to the inner action element (e.g. `{ as: 'a', href: '/foo' }`). */
|
|
@@ -16,9 +16,9 @@ export declare const emitSchema: {
|
|
|
16
16
|
* @param props Component props.
|
|
17
17
|
* @return Vue element.
|
|
18
18
|
*/
|
|
19
|
-
declare const
|
|
19
|
+
declare const ComboboxOption: import('vue').DefineSetupFnComponent<ComboboxOptionProps, {
|
|
20
20
|
click: () => boolean;
|
|
21
|
-
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" |
|
|
21
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | ComboboxOptionPropsToOverride> & {
|
|
22
22
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
23
23
|
} & {
|
|
24
24
|
/** Props forwarded to a Tooltip wrapping the option trigger element. */
|
|
@@ -29,4 +29,4 @@ declare const ListboxOption: import('vue').DefineSetupFnComponent<ListboxOptionP
|
|
|
29
29
|
onClick?: (() => any) | undefined;
|
|
30
30
|
}, import('vue').PublicProps>;
|
|
31
31
|
export { COMPONENT_NAME, CLASSNAME };
|
|
32
|
-
export default
|
|
32
|
+
export default ComboboxOption;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComboboxOptionActionProps as UIProps, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxOptionAction';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ComboboxOptionActionProps = Pick<VueToJSXProps<UIProps>, 'isDisabled' | 'class'> & {
|
|
4
|
+
/** On click callback. */
|
|
5
|
+
onClick?: (evt: MouseEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Combobox.OptionAction sub-component.
|
|
9
|
+
*
|
|
10
|
+
* Renders a secondary action button within a combobox option row (grid mode).
|
|
11
|
+
*
|
|
12
|
+
* @param props Component props.
|
|
13
|
+
* @return Vue element.
|
|
14
|
+
*/
|
|
15
|
+
declare const ComboboxOptionAction: import('vue').DefineSetupFnComponent<ComboboxOptionActionProps, {}, {}, Pick<VueToJSXProps<UIProps>, "class" | "isDisabled"> & {
|
|
16
|
+
/** On click callback. */
|
|
17
|
+
onClick?: (evt: MouseEvent) => void;
|
|
18
|
+
} & {}, import('vue').PublicProps>;
|
|
19
|
+
export { COMPONENT_NAME, CLASSNAME };
|
|
20
|
+
export default ComboboxOptionAction;
|
package/components/{listbox/ListboxOptionMoreInfo.d.ts → combobox/ComboboxOptionMoreInfo.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComboboxOptionMoreInfoProps as UIProps, ComboboxOptionMoreInfoPropsToOverride, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxOptionMoreInfo';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
-
export type
|
|
3
|
+
export type ComboboxOptionMoreInfoProps = VueToJSXProps<UIProps, ComboboxOptionMoreInfoPropsToOverride | 'onMouseEnter' | 'onMouseLeave' | 'buttonProps'> & {
|
|
4
4
|
/** Callback when the popover opens or closes. */
|
|
5
5
|
onToggle?: (isOpen: boolean) => void;
|
|
6
6
|
};
|
|
@@ -15,9 +15,9 @@ export type ListboxOptionMoreInfoProps = VueToJSXProps<UIProps, ListboxOptionMor
|
|
|
15
15
|
* @param props Component props.
|
|
16
16
|
* @return Vue element.
|
|
17
17
|
*/
|
|
18
|
-
declare const
|
|
18
|
+
declare const ComboboxOptionMoreInfo: import('vue').DefineSetupFnComponent<ComboboxOptionMoreInfoProps, {
|
|
19
19
|
toggle: (isOpen: boolean) => boolean;
|
|
20
|
-
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "onMouseEnter" | "onMouseLeave" | "buttonProps" |
|
|
20
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "onMouseEnter" | "onMouseLeave" | "buttonProps" | ComboboxOptionMoreInfoPropsToOverride> & {
|
|
21
21
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
22
22
|
} & {
|
|
23
23
|
/** Callback when the popover opens or closes. */
|
|
@@ -26,4 +26,4 @@ declare const ListboxOptionMoreInfo: import('vue').DefineSetupFnComponent<Listbo
|
|
|
26
26
|
onToggle?: ((isOpen: boolean) => any) | undefined;
|
|
27
27
|
}, import('vue').PublicProps>;
|
|
28
28
|
export { COMPONENT_NAME, CLASSNAME };
|
|
29
|
-
export default
|
|
29
|
+
export default ComboboxOptionMoreInfo;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComboboxOptionSkeletonProps as UIProps, ComboboxOptionSkeletonPropsToOverride, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxOptionSkeleton';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ComboboxOptionSkeletonProps = VueToJSXProps<UIProps, ComboboxOptionSkeletonPropsToOverride>;
|
|
4
|
+
/**
|
|
5
|
+
* Combobox.OptionSkeleton component — renders skeleton placeholder(s) inside a combobox list.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const ComboboxOptionSkeleton: import('vue').DefineSetupFnComponent<ComboboxOptionSkeletonProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | ComboboxOptionSkeletonPropsToOverride> & {
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export { COMPONENT_NAME, CLASSNAME };
|
|
14
|
+
export default ComboboxOptionSkeleton;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComboboxSectionProps as UIProps, ComboboxSectionPropsToOverride, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxSection';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ComboboxSectionProps = VueToJSXProps<UIProps, ComboboxSectionPropsToOverride | 'hidden' | 'aria-hidden'>;
|
|
4
|
+
/**
|
|
5
|
+
* Combobox.Section component - groups Combobox.Option items under a labelled section.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const ComboboxSection: import('vue').DefineSetupFnComponent<ComboboxSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-hidden" | "hidden"> & {
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export { COMPONENT_NAME, CLASSNAME };
|
|
14
|
+
export default ComboboxSection;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Combobox.SelectionIcon component.
|
|
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 ComboboxSelectionIcon: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
14
|
+
export default ComboboxSelectionIcon;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComboboxStateProps as UIProps, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxState';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ComboboxStateProps = VueToJSXProps<UIProps, 'state'>;
|
|
4
|
+
/**
|
|
5
|
+
* Combobox.State component - displays empty and error states for the combobox list.
|
|
6
|
+
*
|
|
7
|
+
* @param props Component props.
|
|
8
|
+
* @return Vue element.
|
|
9
|
+
*/
|
|
10
|
+
declare const ComboboxState: import('vue').DefineSetupFnComponent<ComboboxStateProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "state"> & {
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
|
+
} & {}, import('vue').PublicProps>;
|
|
13
|
+
export { COMPONENT_NAME, CLASSNAME };
|
|
14
|
+
export default ComboboxState;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Context value for the Combobox.List sub-tree. */
|
|
2
|
+
export interface ComboboxListContextValue {
|
|
3
|
+
/** The popup type. "grid" enables 2D keyboard navigation and action buttons on options. */
|
|
4
|
+
type: 'listbox' | 'grid';
|
|
5
|
+
/** The selection type of the list (from `aria-multiselectable`). */
|
|
6
|
+
selectionType?: 'single' | 'multiple';
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Provides the combobox list context.
|
|
10
|
+
*/
|
|
11
|
+
export declare function provideComboboxListContext(value: ComboboxListContextValue): void;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to access the Combobox.List context (provides the `type`).
|
|
14
|
+
* @returns The list context value.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useComboboxListContext(): ComboboxListContextValue;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/** Context value provided by Combobox.Option to its `after` slot children. */
|
|
2
|
-
export interface
|
|
2
|
+
export interface ComboboxOptionContextValue {
|
|
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.
|
|
8
10
|
*/
|
|
9
|
-
export declare function
|
|
11
|
+
export declare function provideComboboxOptionContext(value: ComboboxOptionContextValue): void;
|
|
10
12
|
/**
|
|
11
13
|
* Hook to access the Combobox.Option context.
|
|
12
14
|
* Must be used within a Combobox.Option's `after` slot.
|
|
13
15
|
* @throws Error if used outside of a Combobox.Option.
|
|
14
16
|
* @returns The option context value.
|
|
15
17
|
*/
|
|
16
|
-
export declare function
|
|
18
|
+
export declare function useComboboxOptionContext(): ComboboxOptionContextValue;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { ComboboxEventMap } from '@lumx/core/js/components/Combobox/types';
|
|
3
3
|
/**
|
|
4
|
-
* Composable to subscribe to a combobox event
|
|
5
|
-
* `activeDescendantChange`, …). Must be used within a `Combobox.Provider`.
|
|
6
|
-
*
|
|
7
|
-
* The events are dispatched by the listbox handle of the combobox (see {@link useListboxEvent}).
|
|
4
|
+
* Composable to subscribe to a combobox event via the handle's subscriber system.
|
|
8
5
|
*
|
|
9
6
|
* `optionsChange` updates are coalesced into a microtask. Mounting a large option list fires one
|
|
10
7
|
* `optionsChange` per option registration; applying each synchronously makes a consumer that both
|
|
@@ -14,5 +11,7 @@ import { ListboxEventMap } from '@lumx/core/js/components/Listbox/types';
|
|
|
14
11
|
*
|
|
15
12
|
* (React does not need this: it batches synchronous store updates itself, and coalescing there
|
|
16
13
|
* would defer the update into a microtask that fires outside `act` in consumers' unit tests.)
|
|
14
|
+
*
|
|
15
|
+
* Re-subscribes when the handle changes (e.g. trigger mount/unmount).
|
|
17
16
|
*/
|
|
18
|
-
export declare function useComboboxEvent<K extends keyof
|
|
17
|
+
export declare function useComboboxEvent<K extends keyof ComboboxEventMap>(event: K, initialValue: ComboboxEventMap[K]): Ref<ComboboxEventMap[K]>;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export type { ComboboxProviderProps } from './ComboboxProvider';
|
|
2
|
+
export type { ComboboxListProps } from './ComboboxList';
|
|
2
3
|
export type { ComboboxPopoverProps } from './ComboboxPopover';
|
|
3
4
|
export type { ComboboxButtonProps } from './ComboboxButton';
|
|
4
5
|
export type { ComboboxInputProps } from './ComboboxInput';
|
|
5
|
-
export type {
|
|
6
|
-
export type {
|
|
7
|
-
export type {
|
|
8
|
-
export type {
|
|
9
|
-
export type {
|
|
10
|
-
export type {
|
|
11
|
-
export type { ListboxStateProps as ComboboxStateProps } from '../listbox/ListboxState';
|
|
6
|
+
export type { ComboboxOptionProps } from './ComboboxOption';
|
|
7
|
+
export type { ComboboxOptionActionProps } from './ComboboxOptionAction';
|
|
8
|
+
export type { ComboboxOptionMoreInfoProps } from './ComboboxOptionMoreInfo';
|
|
9
|
+
export type { ComboboxOptionSkeletonProps } from './ComboboxOptionSkeleton';
|
|
10
|
+
export type { ComboboxSectionProps } from './ComboboxSection';
|
|
11
|
+
export type { ComboboxStateProps } from './ComboboxState';
|
|
12
12
|
export type { ComboboxButtonLabelDisplayMode } from '@lumx/core/js/components/Combobox/ComboboxButton';
|
|
13
|
-
export type {
|
|
13
|
+
export type { ComboboxListType } from '@lumx/core/js/components/Combobox/ComboboxList';
|
|
14
|
+
export type { ComboboxHandle, ComboboxCallbacks } from '@lumx/core/js/components/Combobox/types';
|
|
14
15
|
/**
|
|
15
16
|
* Combobox compound component namespace.
|
|
16
17
|
*/
|
|
@@ -59,14 +60,14 @@ export declare const Combobox: {
|
|
|
59
60
|
onFocus?: ((_event?: FocusEvent | undefined) => any) | undefined;
|
|
60
61
|
onClear?: ((_event?: MouseEvent | undefined) => any) | undefined;
|
|
61
62
|
}, import('vue').PublicProps>;
|
|
62
|
-
/** Listbox container
|
|
63
|
-
List: import('vue').DefineSetupFnComponent<import('
|
|
63
|
+
/** Listbox container that registers with the combobox handle and tracks loading state. */
|
|
64
|
+
List: import('vue').DefineSetupFnComponent<import('./ComboboxList').ComboboxListProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxList').ComboboxListProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-multiselectable" | "aria-busy"> & {
|
|
64
65
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
65
66
|
} & {}, import('vue').PublicProps>;
|
|
66
67
|
/** Selectable option item with filtering and keyboard navigation support. */
|
|
67
|
-
Option: import('vue').DefineSetupFnComponent<import('
|
|
68
|
+
Option: import('vue').DefineSetupFnComponent<import('./ComboboxOption').ComboboxOptionProps, {
|
|
68
69
|
click: () => boolean;
|
|
69
|
-
}, {}, Omit<import('@lumx/core/js/components/
|
|
70
|
+
}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionPropsToOverride> & {
|
|
70
71
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
71
72
|
} & {
|
|
72
73
|
tooltipProps?: Partial<import('../tooltip').TooltipProps>;
|
|
@@ -75,13 +76,13 @@ export declare const Combobox: {
|
|
|
75
76
|
onClick?: (() => any) | undefined;
|
|
76
77
|
}, import('vue').PublicProps>;
|
|
77
78
|
/** Secondary action button within a grid-mode option row, rendered as an independent gridcell. */
|
|
78
|
-
OptionAction: import('vue').DefineSetupFnComponent<import('
|
|
79
|
+
OptionAction: import('vue').DefineSetupFnComponent<import('./ComboboxOptionAction').ComboboxOptionActionProps, {}, {}, Pick<import('../../utils/VueToJSX').VueToJSXProps<import('@lumx/core/js/components/Combobox/ComboboxOptionAction').ComboboxOptionActionProps>, "class" | "isDisabled"> & {
|
|
79
80
|
onClick?: (evt: MouseEvent) => void;
|
|
80
81
|
} & {}, import('vue').PublicProps>;
|
|
81
82
|
/** Info button on an option that shows a popover on hover or keyboard highlight. */
|
|
82
|
-
OptionMoreInfo: import('vue').DefineSetupFnComponent<import('
|
|
83
|
+
OptionMoreInfo: import('vue').DefineSetupFnComponent<import('./ComboboxOptionMoreInfo').ComboboxOptionMoreInfoProps, {
|
|
83
84
|
toggle: (isOpen: boolean) => boolean;
|
|
84
|
-
}, {}, Omit<import('@lumx/core/js/components/
|
|
85
|
+
}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOptionMoreInfo').ComboboxOptionMoreInfoProps, "className" | import('@lumx/core/js/types').PropsToOverride | "onMouseEnter" | "onMouseLeave" | "buttonProps" | import('@lumx/core/js/components/Combobox/ComboboxOptionMoreInfo').ComboboxOptionMoreInfoPropsToOverride> & {
|
|
85
86
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
86
87
|
} & {
|
|
87
88
|
onToggle?: (isOpen: boolean) => void;
|
|
@@ -89,19 +90,21 @@ export declare const Combobox: {
|
|
|
89
90
|
onToggle?: ((isOpen: boolean) => any) | undefined;
|
|
90
91
|
}, import('vue').PublicProps>;
|
|
91
92
|
/** Loading placeholder skeleton(s) that auto-register loading state with the combobox handle. */
|
|
92
|
-
OptionSkeleton: import('vue').DefineSetupFnComponent<import('
|
|
93
|
+
OptionSkeleton: import('vue').DefineSetupFnComponent<import('./ComboboxOptionSkeleton').ComboboxOptionSkeletonProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOptionSkeleton').ComboboxOptionSkeletonProps, "className" | import('@lumx/core/js/types').PropsToOverride | import('@lumx/core/js/components/Combobox/ComboboxOptionSkeleton').ComboboxOptionSkeletonPropsToOverride> & {
|
|
93
94
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
94
95
|
} & {}, import('vue').PublicProps>;
|
|
96
|
+
/** 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`. */
|
|
97
|
+
SelectionIcon: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
95
98
|
/** Floating popover container that auto-binds to the combobox anchor and open/close state. */
|
|
96
99
|
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
100
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
98
101
|
} & Partial<Omit<import('../popover').PopoverProps, "isOpen" | "class" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
|
|
99
102
|
/** Labelled group of options that auto-hides when all its child options are filtered out. */
|
|
100
|
-
Section: import('vue').DefineSetupFnComponent<import('
|
|
103
|
+
Section: import('vue').DefineSetupFnComponent<import('./ComboboxSection').ComboboxSectionProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxSection').ComboboxSectionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-hidden" | "hidden"> & {
|
|
101
104
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
102
105
|
} & {}, import('vue').PublicProps>;
|
|
103
106
|
/** Displays empty, error, and loading state messages for the combobox list. */
|
|
104
|
-
State: import('vue').DefineSetupFnComponent<import('
|
|
107
|
+
State: import('vue').DefineSetupFnComponent<import('./ComboboxState').ComboboxStateProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxState').ComboboxStateProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "state"> & {
|
|
105
108
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
106
109
|
} & {}, import('vue').PublicProps>;
|
|
107
110
|
/** Visual separator between option groups (alias for ListDivider). Purely decorative — invisible to screen readers. */
|
|
@@ -4,7 +4,7 @@ import { RenderOptionContext } from '@lumx/core/js/utils/select/types';
|
|
|
4
4
|
/** Render function passed as `renderOption` to a core Select* template. */
|
|
5
5
|
type WrappedRenderOption = (option: unknown, context: RenderOptionContext) => JSXElement;
|
|
6
6
|
/**
|
|
7
|
-
* Adapts a Vue scoped slot returning a `<
|
|
7
|
+
* Adapts a Vue scoped slot returning a `<ComboboxOption>` into the `renderOption`
|
|
8
8
|
* callback shape expected by the core Select* templates.
|
|
9
9
|
*/
|
|
10
10
|
export declare function useWrappedRenderOptionSlot(slot: Slot | undefined): ComputedRef<WrappedRenderOption | undefined>;
|
|
@@ -3,7 +3,7 @@ export type { SelectListStatus, SelectListStatus as SelectButtonStatus, SelectBu
|
|
|
3
3
|
/** Selectable option within the dropdown list. */
|
|
4
4
|
export declare const SelectButtonOption: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionProps, {
|
|
5
5
|
click: () => boolean;
|
|
6
|
-
}, {}, Omit<import('@lumx/core/js/components/
|
|
6
|
+
}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionPropsToOverride> & {
|
|
7
7
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
8
8
|
} & {
|
|
9
9
|
tooltipProps?: Partial<import('../tooltip').TooltipProps>;
|
|
@@ -4,7 +4,7 @@ export type { SelectTextFieldTranslations } from '@lumx/core/js/utils/select/typ
|
|
|
4
4
|
/** Selectable option within the dropdown list. */
|
|
5
5
|
export declare const SelectTextFieldOption: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionProps, {
|
|
6
6
|
click: () => boolean;
|
|
7
|
-
}, {}, Omit<import('@lumx/core/js/components/
|
|
7
|
+
}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionPropsToOverride> & {
|
|
8
8
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
9
9
|
} & {
|
|
10
10
|
tooltipProps?: Partial<import('../tooltip').TooltipProps>;
|
|
@@ -13,13 +13,13 @@ export declare const SelectTextFieldOption: import('vue').DefineSetupFnComponent
|
|
|
13
13
|
onClick?: (() => any) | undefined;
|
|
14
14
|
}, import('vue').PublicProps>;
|
|
15
15
|
/** Labelled group of options. */
|
|
16
|
-
export declare const SelectTextFieldSection: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxSectionProps, {}, {}, Omit<import('@lumx/core/js/components/
|
|
16
|
+
export declare const SelectTextFieldSection: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxSectionProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxSection').ComboboxSectionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-hidden" | "hidden"> & {
|
|
17
17
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
18
18
|
} & {}, import('vue').PublicProps>;
|
|
19
19
|
/** Info icon on an option that reveals a popover with additional details. */
|
|
20
20
|
export declare const SelectTextFieldOptionMoreInfo: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionMoreInfoProps, {
|
|
21
21
|
toggle: (isOpen: boolean) => boolean;
|
|
22
|
-
}, {}, Omit<import('@lumx/core/js/components/
|
|
22
|
+
}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOptionMoreInfo').ComboboxOptionMoreInfoProps, "className" | import('@lumx/core/js/types').PropsToOverride | "onMouseEnter" | "onMouseLeave" | "buttonProps" | import('@lumx/core/js/components/Combobox/ComboboxOptionMoreInfo').ComboboxOptionMoreInfoPropsToOverride> & {
|
|
23
23
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
24
24
|
} & {
|
|
25
25
|
onToggle?: (isOpen: boolean) => void;
|
|
@@ -27,7 +27,7 @@ export declare const SelectTextFieldOptionMoreInfo: import('vue').DefineSetupFnC
|
|
|
27
27
|
onToggle?: ((isOpen: boolean) => any) | undefined;
|
|
28
28
|
}, import('vue').PublicProps>;
|
|
29
29
|
/** Skeleton loading placeholder for options being fetched. */
|
|
30
|
-
export declare const SelectTextFieldOptionSkeleton: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionSkeletonProps, {}, {}, Omit<import('@lumx/core/js/components/
|
|
30
|
+
export declare const SelectTextFieldOptionSkeleton: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionSkeletonProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOptionSkeleton').ComboboxOptionSkeletonProps, "className" | import('@lumx/core/js/types').PropsToOverride | import('@lumx/core/js/components/Combobox/ComboboxOptionSkeleton').ComboboxOptionSkeletonPropsToOverride> & {
|
|
31
31
|
class?: import('../../utils/VueToJSX').ClassValue;
|
|
32
32
|
} & {}, import('vue').PublicProps>;
|
|
33
33
|
/** Visual separator between option groups (alias for ListDivider). Purely decorative — invisible to screen readers. */
|