@lumx/vue 4.11.0 → 4.12.0-alpha.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/_internal/CO3BhTbu.js +161 -0
- package/_internal/CO3BhTbu.js.map +1 -0
- package/components/chip/SelectionChipGroup.d.ts +33 -3
- package/components/combobox/Combobox.stories.d.ts +1 -0
- package/components/combobox/ComboboxOption.d.ts +9 -6
- package/components/combobox/ComboboxOption.test.d.ts +1 -0
- package/components/combobox/ComboboxProvider.d.ts +5 -1
- package/components/combobox/index.d.ts +11 -4
- package/components/lightbox/Lightbox.d.ts +28 -0
- package/components/lightbox/Lightbox.stories.d.ts +27 -0
- package/components/lightbox/index.d.ts +1 -0
- package/components/select-text-field/SelectTextField.d.ts +127 -0
- package/components/select-text-field/SelectTextField.stories.d.ts +203 -0
- package/components/select-text-field/SelectTextField.test.d.ts +1 -0
- package/components/select-text-field/SelectTextField.test.stories.d.ts +37 -0
- package/components/select-text-field/Stories/CustomRender.vue.d.ts +2 -0
- package/components/select-text-field/Stories/MultipleWithSearch.vue.d.ts +2 -0
- package/components/select-text-field/Stories/WithCreatableOptions.vue.d.ts +2 -0
- package/components/select-text-field/Stories/WithInfiniteScroll.vue.d.ts +2 -0
- package/components/select-text-field/Stories/WithSearch.vue.d.ts +2 -0
- package/components/select-text-field/index.d.ts +58 -0
- package/index.d.ts +2 -0
- package/index.js +4052 -3538
- package/index.js.map +1 -1
- package/package.json +6 -5
- package/utils/index.js +19 -55
- package/utils/index.js.map +1 -1
- package/_internal/BiLpoFMC.js +0 -124
- package/_internal/BiLpoFMC.js.map +0 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: any;
|
|
3
|
+
play({ canvas }: any): Promise<void>;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
args: {
|
|
9
|
+
value: undefined;
|
|
10
|
+
};
|
|
11
|
+
decorators: ((story: any, context: any) => any)[];
|
|
12
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export declare const WithSelectedValue: {
|
|
15
|
+
args: {
|
|
16
|
+
value: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
category: string;
|
|
21
|
+
categoryIcon: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
decorators: ((story: any, context: any) => any)[];
|
|
26
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export declare const NoClearButton: {
|
|
29
|
+
args: {
|
|
30
|
+
value: {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
category: string;
|
|
35
|
+
categoryIcon: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
decorators: ((story: any, context: any) => any)[];
|
|
40
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
41
|
+
};
|
|
42
|
+
export declare const WithDescriptions: {
|
|
43
|
+
args: {
|
|
44
|
+
value: undefined;
|
|
45
|
+
};
|
|
46
|
+
decorators: ((story: any, context: any) => any)[];
|
|
47
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
48
|
+
};
|
|
49
|
+
export declare const WithSections: {
|
|
50
|
+
args: {
|
|
51
|
+
value: undefined;
|
|
52
|
+
};
|
|
53
|
+
decorators: ((story: any, context: any) => any)[];
|
|
54
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
55
|
+
};
|
|
56
|
+
export declare const WithIcon: {
|
|
57
|
+
args: {
|
|
58
|
+
value: undefined;
|
|
59
|
+
};
|
|
60
|
+
decorators: ((story: any, context: any) => any)[];
|
|
61
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
62
|
+
};
|
|
63
|
+
export declare const Disabled: {
|
|
64
|
+
args: {
|
|
65
|
+
value: {
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
category: string;
|
|
70
|
+
categoryIcon: string;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
decorators: ((story: any, context: any) => any)[];
|
|
75
|
+
play: any;
|
|
76
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
77
|
+
};
|
|
78
|
+
export declare const WithError: {
|
|
79
|
+
args: {
|
|
80
|
+
value: undefined;
|
|
81
|
+
};
|
|
82
|
+
decorators: ((story: any, context: any) => any)[];
|
|
83
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
84
|
+
};
|
|
85
|
+
export declare const WithHelper: {
|
|
86
|
+
args: {
|
|
87
|
+
value: undefined;
|
|
88
|
+
};
|
|
89
|
+
decorators: ((story: any, context: any) => any)[];
|
|
90
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
91
|
+
};
|
|
92
|
+
export declare const MultipleSelection: {
|
|
93
|
+
args: {
|
|
94
|
+
value: never[];
|
|
95
|
+
};
|
|
96
|
+
decorators: ((story: any, context: any) => any)[];
|
|
97
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
98
|
+
};
|
|
99
|
+
export declare const MultipleWithPreselected: {
|
|
100
|
+
args: {
|
|
101
|
+
value: {
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
icon: string;
|
|
105
|
+
category: string;
|
|
106
|
+
categoryIcon: string;
|
|
107
|
+
description: string;
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
110
|
+
decorators: ((story: any, context: any) => any)[];
|
|
111
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
112
|
+
};
|
|
113
|
+
export declare const MultipleWithManyChips: {
|
|
114
|
+
args: {
|
|
115
|
+
value: ({
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
icon: string;
|
|
119
|
+
category: string;
|
|
120
|
+
categoryIcon: string;
|
|
121
|
+
description: string;
|
|
122
|
+
} | {
|
|
123
|
+
id: string;
|
|
124
|
+
name: string;
|
|
125
|
+
category: string;
|
|
126
|
+
})[];
|
|
127
|
+
};
|
|
128
|
+
decorators: ((story: any, context: any) => any)[];
|
|
129
|
+
play: any;
|
|
130
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
131
|
+
};
|
|
132
|
+
export declare const MultipleDisabled: {
|
|
133
|
+
args: {
|
|
134
|
+
value: {
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
icon: string;
|
|
138
|
+
category: string;
|
|
139
|
+
categoryIcon: string;
|
|
140
|
+
description: string;
|
|
141
|
+
}[];
|
|
142
|
+
};
|
|
143
|
+
decorators: ((story: any, context: any) => any)[];
|
|
144
|
+
play: any;
|
|
145
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
146
|
+
};
|
|
147
|
+
export declare const Loading: {
|
|
148
|
+
args: {
|
|
149
|
+
value: undefined;
|
|
150
|
+
};
|
|
151
|
+
decorators: ((story: any, context: any) => any)[];
|
|
152
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
153
|
+
};
|
|
154
|
+
export declare const LoadingMore: {
|
|
155
|
+
args: {
|
|
156
|
+
value: undefined;
|
|
157
|
+
};
|
|
158
|
+
decorators: ((story: any, context: any) => any)[];
|
|
159
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
160
|
+
};
|
|
161
|
+
export declare const ErrorState: {
|
|
162
|
+
args: {
|
|
163
|
+
value: undefined;
|
|
164
|
+
};
|
|
165
|
+
decorators: ((story: any, context: any) => any)[];
|
|
166
|
+
render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
167
|
+
};
|
|
168
|
+
/** SelectTextField with custom option, section title, and chip rendering via scoped slots */
|
|
169
|
+
export declare const CustomRender: {
|
|
170
|
+
render: () => {
|
|
171
|
+
components: {
|
|
172
|
+
StoryCustomRender: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
173
|
+
};
|
|
174
|
+
template: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
/** SelectTextField with a creatable option before the list */
|
|
178
|
+
export declare const WithCreatableOptions: {
|
|
179
|
+
render: () => {
|
|
180
|
+
components: {
|
|
181
|
+
StoryWithCreatableOptions: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
182
|
+
};
|
|
183
|
+
template: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
/** Single-select with consumer-controlled search (`filter="manual"` + `@search` listener) */
|
|
187
|
+
export declare const WithSearch: {
|
|
188
|
+
render: () => {
|
|
189
|
+
components: {
|
|
190
|
+
StoryWithSearch: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
191
|
+
};
|
|
192
|
+
template: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
/** Multi-select with consumer-controlled search (`filter="manual"` + `@search` listener) */
|
|
196
|
+
export declare const MultipleWithSearch: {
|
|
197
|
+
render: () => {
|
|
198
|
+
components: {
|
|
199
|
+
StoryMultipleWithSearch: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
200
|
+
};
|
|
201
|
+
template: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: any;
|
|
4
|
+
tags: string[];
|
|
5
|
+
parameters: {
|
|
6
|
+
chromatic: {
|
|
7
|
+
disable: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const ClickOutsideCloses: {
|
|
13
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
14
|
+
play({ canvas }: any): Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export declare const BlurResetsToSelectedValue: {
|
|
17
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
18
|
+
play({ canvas }: any): Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
export declare const BlurResetsToEmpty: {
|
|
21
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
22
|
+
play({ canvas }: any): Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
export declare const MultiBlurResetsSearch: {
|
|
25
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
26
|
+
play({ canvas }: any): Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
/** Test infinite scroll loads more options when scrolling to the bottom */
|
|
29
|
+
export declare const WithInfiniteScroll: {
|
|
30
|
+
render: () => {
|
|
31
|
+
components: {
|
|
32
|
+
StoryWithInfiniteScroll: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
};
|
|
34
|
+
template: string;
|
|
35
|
+
};
|
|
36
|
+
play({ canvas }: any): Promise<void>;
|
|
37
|
+
};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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,58 @@
|
|
|
1
|
+
export { type SelectTextFieldProps, type SingleSelectTextFieldProps, type MultipleSelectTextFieldProps, } from './SelectTextField';
|
|
2
|
+
export type { SelectTextFieldStatus, SelectTextFieldTranslations } from '@lumx/core/js/utils/select/types';
|
|
3
|
+
/**
|
|
4
|
+
* SelectTextField compound component.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SelectTextField: import('./SelectTextField').SelectTextFieldConstructor & import('vue').DefineSetupFnComponent<import('./SelectTextField').SelectTextFieldProps<any>, {
|
|
7
|
+
change: (_newValue?: unknown) => boolean;
|
|
8
|
+
search: (_searchText: string) => boolean;
|
|
9
|
+
'load-more': () => boolean;
|
|
10
|
+
blur: (_event?: FocusEvent) => boolean;
|
|
11
|
+
focus: (_event?: FocusEvent) => boolean;
|
|
12
|
+
keydown: (_event?: KeyboardEvent) => boolean;
|
|
13
|
+
clear: (_event?: MouseEvent) => boolean;
|
|
14
|
+
open: (_isOpen: boolean) => boolean;
|
|
15
|
+
}, {}, import('./SelectTextField').SelectTextFieldProps<any> & {
|
|
16
|
+
onSearch?: ((_searchText: string) => any) | undefined;
|
|
17
|
+
onBlur?: ((_event?: FocusEvent | undefined) => any) | undefined;
|
|
18
|
+
onChange?: ((_newValue?: unknown) => any) | undefined;
|
|
19
|
+
onFocus?: ((_event?: FocusEvent | undefined) => any) | undefined;
|
|
20
|
+
onKeydown?: ((_event?: KeyboardEvent | undefined) => any) | undefined;
|
|
21
|
+
onClear?: ((_event?: MouseEvent | undefined) => any) | undefined;
|
|
22
|
+
onOpen?: ((_isOpen: boolean) => any) | undefined;
|
|
23
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
24
|
+
}, import('vue').PublicProps> & {
|
|
25
|
+
/** Selectable option within the dropdown list. */
|
|
26
|
+
Option: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionProps, {
|
|
27
|
+
click: () => boolean;
|
|
28
|
+
}, {}, 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> & {
|
|
29
|
+
class?: string;
|
|
30
|
+
} & {
|
|
31
|
+
tooltipProps?: Partial<import('../tooltip').TooltipProps>;
|
|
32
|
+
actionProps?: Record<string, any>;
|
|
33
|
+
} & {
|
|
34
|
+
onClick?: (() => any) | undefined;
|
|
35
|
+
}, import('vue').PublicProps>;
|
|
36
|
+
/** Labelled group of options. */
|
|
37
|
+
Section: 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"> & {
|
|
38
|
+
class?: string;
|
|
39
|
+
} & {}, import('vue').PublicProps>;
|
|
40
|
+
/** Info icon on an option that reveals a popover with additional details. */
|
|
41
|
+
OptionMoreInfo: import('vue').DefineSetupFnComponent<import('../combobox').ComboboxOptionMoreInfoProps, {
|
|
42
|
+
toggle: (isOpen: boolean) => boolean;
|
|
43
|
+
}, {}, 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> & {
|
|
44
|
+
class?: string;
|
|
45
|
+
} & {
|
|
46
|
+
onToggle?: (isOpen: boolean) => void;
|
|
47
|
+
} & {
|
|
48
|
+
onToggle?: ((isOpen: boolean) => any) | undefined;
|
|
49
|
+
}, import('vue').PublicProps>;
|
|
50
|
+
/** Skeleton loading placeholder for options being fetched. */
|
|
51
|
+
OptionSkeleton: 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> & {
|
|
52
|
+
class?: string;
|
|
53
|
+
} & {}, import('vue').PublicProps>;
|
|
54
|
+
/** Visual separator between option groups (alias for ListDivider). Purely decorative — invisible to screen readers. */
|
|
55
|
+
Divider: import('vue').DefineSetupFnComponent<import('../list').ListDividerProps, {}, {}, Omit<import('@lumx/core/js/components/List/ListDivider').ListDividerProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
56
|
+
class?: string;
|
|
57
|
+
} & {}, import('vue').PublicProps>;
|
|
58
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './components/button';
|
|
|
8
8
|
export * from './components/checkbox';
|
|
9
9
|
export * from './components/chip';
|
|
10
10
|
export * from './components/dialog';
|
|
11
|
+
export * from './components/lightbox';
|
|
11
12
|
export * from './components/divider';
|
|
12
13
|
export * from './components/drag-handle';
|
|
13
14
|
export * from './components/expansion-panel';
|
|
@@ -41,3 +42,4 @@ export * from './components/thumbnail';
|
|
|
41
42
|
export * from './components/toolbar';
|
|
42
43
|
export * from './components/tooltip';
|
|
43
44
|
export * from './components/user-block';
|
|
45
|
+
export * from './components/select-text-field';
|