@lumx/vue 4.12.0 → 4.12.1-next.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/components/combobox/ComboboxButton.d.ts +0 -8
- package/components/combobox/ComboboxInput.d.ts +4 -55
- package/components/combobox/index.d.ts +1 -13
- package/index.js +569 -569
- package/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -7,10 +7,6 @@ export type ComboboxButtonProps = VueToJSXProps<UIProps, 'label'> & {
|
|
|
7
7
|
value?: string;
|
|
8
8
|
/** Controls how the label/value is displayed. @default 'show-selection' */
|
|
9
9
|
labelDisplayMode?: ComboboxButtonLabelDisplayMode;
|
|
10
|
-
/** Called when an option is selected. */
|
|
11
|
-
onSelect?: (option: {
|
|
12
|
-
value: string;
|
|
13
|
-
}) => void;
|
|
14
10
|
};
|
|
15
11
|
/**
|
|
16
12
|
* Combobox.Button component - Button trigger for select-only combobox mode.
|
|
@@ -31,10 +27,6 @@ declare const ComboboxButton: import('vue').DefineSetupFnComponent<ComboboxButto
|
|
|
31
27
|
value?: string;
|
|
32
28
|
/** Controls how the label/value is displayed. @default 'show-selection' */
|
|
33
29
|
labelDisplayMode?: ComboboxButtonLabelDisplayMode;
|
|
34
|
-
/** Called when an option is selected. */
|
|
35
|
-
onSelect?: (option: {
|
|
36
|
-
value: string;
|
|
37
|
-
}) => void;
|
|
38
30
|
} & {
|
|
39
31
|
onSelect?: ((option: {
|
|
40
32
|
value: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxInput';
|
|
1
|
+
import { ComboboxInputProps as UIProps, ComboboxInputPropsToOverride, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxInput';
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
3
|
import { TextFieldProps } from '../text-field/TextField';
|
|
4
4
|
import { IconButtonProps } from '../button/IconButton';
|
|
@@ -6,35 +6,14 @@ import { IconButtonProps } from '../button/IconButton';
|
|
|
6
6
|
* Props for Combobox.Input component.
|
|
7
7
|
* Note: role, aria-autocomplete, aria-controls, aria-expanded are set internally and cannot be overridden.
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export interface ComboboxInputProps extends TextFieldProps, VueToJSXProps<UIProps, ComboboxInputPropsToOverride> {
|
|
10
10
|
/**
|
|
11
11
|
* Props for the toggle button.
|
|
12
12
|
* When provided, a chevron button will be rendered in the text field's afterElement
|
|
13
13
|
* to toggle the listbox visibility.
|
|
14
14
|
*/
|
|
15
15
|
toggleButtonProps?: Pick<IconButtonProps, 'label'> & Partial<Omit<IconButtonProps, 'label'>>;
|
|
16
|
-
|
|
17
|
-
onSelect?: (option: {
|
|
18
|
-
value: string;
|
|
19
|
-
}) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Controls how the combobox filters options as the user types.
|
|
22
|
-
*
|
|
23
|
-
* - `'auto'` (default) — Options are automatically filtered client-side.
|
|
24
|
-
* - `'manual'` — Filtering is the consumer's responsibility.
|
|
25
|
-
* - `'off'` — Like `'manual'`, but the input is rendered as `readOnly`
|
|
26
|
-
* and `openOnFocus` defaults to `true`.
|
|
27
|
-
*/
|
|
28
|
-
filter?: 'auto' | 'manual' | 'off';
|
|
29
|
-
/**
|
|
30
|
-
* When true, the combobox opens automatically when the input receives focus.
|
|
31
|
-
* When false (default, unless `filter` is `'off'`), the combobox only opens
|
|
32
|
-
* on click, typing, or keyboard navigation.
|
|
33
|
-
*
|
|
34
|
-
* @default false (true when filter is 'off')
|
|
35
|
-
*/
|
|
36
|
-
openOnFocus?: boolean;
|
|
37
|
-
};
|
|
16
|
+
}
|
|
38
17
|
/**
|
|
39
18
|
* Combobox.Input component - wraps TextField with combobox ARIA attributes.
|
|
40
19
|
*
|
|
@@ -49,37 +28,7 @@ declare const ComboboxInput: import('vue').DefineSetupFnComponent<ComboboxInputP
|
|
|
49
28
|
focus: (_event?: FocusEvent) => true;
|
|
50
29
|
blur: (_event?: FocusEvent) => true;
|
|
51
30
|
clear: (_event?: MouseEvent) => true;
|
|
52
|
-
}, {},
|
|
53
|
-
class?: string;
|
|
54
|
-
} & {
|
|
55
|
-
/**
|
|
56
|
-
* Props for the toggle button.
|
|
57
|
-
* When provided, a chevron button will be rendered in the text field's afterElement
|
|
58
|
-
* to toggle the listbox visibility.
|
|
59
|
-
*/
|
|
60
|
-
toggleButtonProps?: Pick<IconButtonProps, "label"> & Partial<Omit<IconButtonProps, "label">>;
|
|
61
|
-
/** Called when an option is selected. */
|
|
62
|
-
onSelect?: (option: {
|
|
63
|
-
value: string;
|
|
64
|
-
}) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Controls how the combobox filters options as the user types.
|
|
67
|
-
*
|
|
68
|
-
* - `'auto'` (default) — Options are automatically filtered client-side.
|
|
69
|
-
* - `'manual'` — Filtering is the consumer's responsibility.
|
|
70
|
-
* - `'off'` — Like `'manual'`, but the input is rendered as `readOnly`
|
|
71
|
-
* and `openOnFocus` defaults to `true`.
|
|
72
|
-
*/
|
|
73
|
-
filter?: "auto" | "manual" | "off";
|
|
74
|
-
/**
|
|
75
|
-
* When true, the combobox opens automatically when the input receives focus.
|
|
76
|
-
* When false (default, unless `filter` is `'off'`), the combobox only opens
|
|
77
|
-
* on click, typing, or keyboard navigation.
|
|
78
|
-
*
|
|
79
|
-
* @default false (true when filter is 'off')
|
|
80
|
-
*/
|
|
81
|
-
openOnFocus?: boolean;
|
|
82
|
-
} & {
|
|
31
|
+
}, {}, ComboboxInputProps & {
|
|
83
32
|
onSelect?: ((option: {
|
|
84
33
|
value: string;
|
|
85
34
|
}) => any) | undefined;
|
|
@@ -33,9 +33,6 @@ export declare const Combobox: {
|
|
|
33
33
|
label: string;
|
|
34
34
|
value?: string;
|
|
35
35
|
labelDisplayMode?: import('@lumx/core/js/components/Combobox/ComboboxButton').ComboboxButtonLabelDisplayMode;
|
|
36
|
-
onSelect?: (option: {
|
|
37
|
-
value: string;
|
|
38
|
-
}) => void;
|
|
39
36
|
} & {
|
|
40
37
|
onSelect?: ((option: {
|
|
41
38
|
value: string;
|
|
@@ -50,16 +47,7 @@ export declare const Combobox: {
|
|
|
50
47
|
focus: (_event?: FocusEvent) => true;
|
|
51
48
|
blur: (_event?: FocusEvent) => true;
|
|
52
49
|
clear: (_event?: MouseEvent) => true;
|
|
53
|
-
}, {},
|
|
54
|
-
class?: string;
|
|
55
|
-
} & {
|
|
56
|
-
toggleButtonProps?: Pick<import('../button').IconButtonProps, "label"> & Partial<Omit<import('../button').IconButtonProps, "label">>;
|
|
57
|
-
onSelect?: (option: {
|
|
58
|
-
value: string;
|
|
59
|
-
}) => void;
|
|
60
|
-
filter?: "auto" | "manual" | "off";
|
|
61
|
-
openOnFocus?: boolean;
|
|
62
|
-
} & {
|
|
50
|
+
}, {}, import('./ComboboxInput').ComboboxInputProps & {
|
|
63
51
|
onSelect?: ((option: {
|
|
64
52
|
value: string;
|
|
65
53
|
}) => any) | undefined;
|