@lumx/vue 4.25.1-next.2 → 4.26.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.
@@ -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
+ };
@@ -1,6 +1,6 @@
1
1
  import { ComboboxListProps as UIProps, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxList';
2
2
  import { VueToJSXProps } from '../../utils/VueToJSX';
3
- export type ComboboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy' | 'id'>;
3
+ export type ComboboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy' | 'aria-multiselectable' | 'id'>;
4
4
  /**
5
5
  * Combobox.List component - wraps List with listbox ARIA attributes.
6
6
  * Registers itself as the combobox listbox on mount.
@@ -8,7 +8,7 @@ export type ComboboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy
8
8
  * @param props Component props.
9
9
  * @return Vue element.
10
10
  */
11
- declare const ComboboxList: import('vue').DefineSetupFnComponent<ComboboxListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy"> & {
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
12
  class?: import('../../utils/VueToJSX').ClassValue;
13
13
  } & {}, import('vue').PublicProps>;
14
14
  export { COMPONENT_NAME, CLASSNAME };
@@ -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;
@@ -2,6 +2,8 @@
2
2
  export interface ComboboxListContextValue {
3
3
  /** The popup type. "grid" enables 2D keyboard navigation and action buttons on options. */
4
4
  type: 'listbox' | 'grid';
5
+ /** The selection type of the list (from `aria-multiselectable`). */
6
+ selectionType?: 'single' | 'multiple';
5
7
  }
6
8
  /**
7
9
  * Provides the combobox list context.
@@ -2,6 +2,8 @@
2
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.
@@ -61,7 +61,7 @@ export declare const Combobox: {
61
61
  onClear?: ((_event?: MouseEvent | undefined) => any) | undefined;
62
62
  }, import('vue').PublicProps>;
63
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-busy"> & {
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"> & {
65
65
  class?: import('../../utils/VueToJSX').ClassValue;
66
66
  } & {}, import('vue').PublicProps>;
67
67
  /** Selectable option item with filtering and keyboard navigation support. */
@@ -93,6 +93,8 @@ export declare const Combobox: {
93
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> & {
94
94
  class?: import('../../utils/VueToJSX').ClassValue;
95
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>;
96
98
  /** Floating popover container that auto-binds to the combobox anchor and open/close state. */
97
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"> & {
98
100
  class?: import('../../utils/VueToJSX').ClassValue;