@lumx/vue 4.11.0-next.5 → 4.11.0-next.7
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/chip/SelectionChipGroup.d.ts +30 -0
- package/components/chip/SelectionChipGroup.stories.d.ts +66 -0
- package/components/chip/Stories/CustomRender.vue.d.ts +2 -0
- package/components/chip/Stories/InTextField.vue.d.ts +2 -0
- package/components/chip/index.d.ts +1 -0
- package/components/combobox/Combobox.test.stories.d.ts +22 -0
- package/components/combobox/ComboboxInput.d.ts +30 -6
- package/components/combobox/index.d.ts +2 -1
- package/index.js +4093 -3913
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/isComponentType.d.ts +6 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SelectionChipGroupProps as UIProps } from '@lumx/core/js/components/Chip/SelectionChipGroup';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
/**
|
|
4
|
+
* Props omit 'ref' (handled internally).
|
|
5
|
+
* inputRef is added here for Vue (ref to an associated input element for backspace focus handling).
|
|
6
|
+
*/
|
|
7
|
+
export type SelectionChipGroupProps = VueToJSXProps<UIProps<any>> & {
|
|
8
|
+
/** Ref to the associated input element (for focus restoration on backspace) */
|
|
9
|
+
inputRef?: HTMLInputElement | null;
|
|
10
|
+
};
|
|
11
|
+
export declare const emitSchema: {
|
|
12
|
+
change: (_newValue?: any[]) => boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* SelectionChipGroup component.
|
|
16
|
+
*
|
|
17
|
+
* @param props Component props.
|
|
18
|
+
* @return Vue element.
|
|
19
|
+
*/
|
|
20
|
+
declare const SelectionChipGroup: import('vue').DefineSetupFnComponent<SelectionChipGroupProps, {
|
|
21
|
+
change: (_newValue?: any[]) => boolean;
|
|
22
|
+
}, {}, Omit<UIProps<any>, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
23
|
+
class?: string;
|
|
24
|
+
} & {
|
|
25
|
+
/** Ref to the associated input element (for focus restoration on backspace) */
|
|
26
|
+
inputRef?: HTMLInputElement | null;
|
|
27
|
+
} & {
|
|
28
|
+
onChange?: ((_newValue?: any[] | undefined) => any) | undefined;
|
|
29
|
+
}, import('vue').PublicProps>;
|
|
30
|
+
export default SelectionChipGroup;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: any;
|
|
3
|
+
args: {
|
|
4
|
+
value: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}[];
|
|
8
|
+
getOptionId: string;
|
|
9
|
+
getOptionName: string;
|
|
10
|
+
label: string;
|
|
11
|
+
chipRemoveLabel: string;
|
|
12
|
+
};
|
|
13
|
+
decorators: ((story: any, context: any) => any)[];
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const Default: {};
|
|
18
|
+
export declare const Disabled: {
|
|
19
|
+
args: {
|
|
20
|
+
isDisabled: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const IndividuallyDisabled: {
|
|
24
|
+
args: {
|
|
25
|
+
getChipProps: (option: {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
}) => {
|
|
29
|
+
isDisabled: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const Empty: {
|
|
34
|
+
args: {
|
|
35
|
+
value: never[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const ConstrainedSpace: {
|
|
39
|
+
decorators: ((story: any, context: any) => any)[];
|
|
40
|
+
args: {
|
|
41
|
+
value: ({
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
} | {
|
|
45
|
+
name: string;
|
|
46
|
+
})[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
/** Selection chip group with custom chip render */
|
|
50
|
+
export declare const CustomRender: {
|
|
51
|
+
render: () => {
|
|
52
|
+
components: {
|
|
53
|
+
StoryCustomRender: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
};
|
|
55
|
+
template: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
/** Selection chip group inside a TextField chips slot with inputRef for keyboard navigation */
|
|
59
|
+
export declare const InTextField: {
|
|
60
|
+
render: () => {
|
|
61
|
+
components: {
|
|
62
|
+
StoryInTextField: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
};
|
|
64
|
+
template: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -9,6 +9,28 @@ declare const _default: {
|
|
|
9
9
|
title: string;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
12
|
+
export declare const AutoFilterOptions: {
|
|
13
|
+
play: ({ canvasElement }: any) => Promise<void>;
|
|
14
|
+
args: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
decorators: ((story: any, context: any) => any)[];
|
|
18
|
+
render: ({ value, onChange, onSelect, }: {
|
|
19
|
+
value: string;
|
|
20
|
+
onChange: (v: string) => void;
|
|
21
|
+
onSelect?: (option: {
|
|
22
|
+
value: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
}) => import("vue/jsx-runtime").JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
export declare const FilterOffOpenOnFocus: {
|
|
27
|
+
play: ({ canvasElement }: any) => Promise<void>;
|
|
28
|
+
args: {
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
decorators: ((story: any, context: any) => any)[];
|
|
32
|
+
render: ({ value, onChange, onSelect }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
33
|
+
};
|
|
12
34
|
export declare const SelectOptionUpdatesInput: {
|
|
13
35
|
play: ({ canvasElement }: any) => Promise<void>;
|
|
14
36
|
args: {
|
|
@@ -18,10 +18,22 @@ export type ComboboxInputProps = VueToJSXProps<TextFieldProps, 'inputRef' | 'tex
|
|
|
18
18
|
value: string;
|
|
19
19
|
}) => void;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
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`.
|
|
23
27
|
*/
|
|
24
|
-
|
|
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;
|
|
25
37
|
};
|
|
26
38
|
/**
|
|
27
39
|
* Combobox.Input component - wraps TextField with combobox ARIA attributes.
|
|
@@ -51,10 +63,22 @@ declare const ComboboxInput: import('vue').DefineSetupFnComponent<ComboboxInputP
|
|
|
51
63
|
value: string;
|
|
52
64
|
}) => void;
|
|
53
65
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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')
|
|
56
80
|
*/
|
|
57
|
-
|
|
81
|
+
openOnFocus?: boolean;
|
|
58
82
|
} & {
|
|
59
83
|
onSelect?: ((option: {
|
|
60
84
|
value: string;
|