@vaadin/multi-select-combo-box 24.8.4 → 25.0.0-alpha10
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/README.md +0 -23
- package/package.json +18 -19
- package/src/{vaadin-multi-select-combo-box-styles.d.ts → styles/vaadin-multi-select-combo-box-base-styles.d.ts} +1 -3
- package/src/styles/vaadin-multi-select-combo-box-base-styles.js +58 -0
- package/src/styles/vaadin-multi-select-combo-box-chip-base-styles.js +112 -0
- package/src/styles/vaadin-multi-select-combo-box-chip-core-styles.js +33 -0
- package/{theme/material/vaadin-multi-select-combo-box-chip-styles.d.ts → src/styles/vaadin-multi-select-combo-box-core-styles.d.ts} +3 -3
- package/src/{vaadin-multi-select-combo-box-styles.js → styles/vaadin-multi-select-combo-box-core-styles.js} +6 -29
- package/src/styles/vaadin-multi-select-combo-box-overlay-base-styles.js +19 -0
- package/src/styles/vaadin-multi-select-combo-box-overlay-core-styles.js +21 -0
- package/src/styles/vaadin-multi-select-combo-box-scroller-base-styles.js +8 -0
- package/src/styles/vaadin-multi-select-combo-box-scroller-core-styles.js +27 -0
- package/src/vaadin-multi-select-combo-box-chip.js +17 -11
- package/src/vaadin-multi-select-combo-box-container.js +27 -34
- package/src/vaadin-multi-select-combo-box-item.js +13 -12
- package/src/vaadin-multi-select-combo-box-mixin.d.ts +9 -82
- package/src/vaadin-multi-select-combo-box-mixin.js +380 -268
- package/src/vaadin-multi-select-combo-box-overlay.js +15 -25
- package/src/vaadin-multi-select-combo-box-scroller.js +10 -26
- package/src/vaadin-multi-select-combo-box.d.ts +14 -10
- package/src/vaadin-multi-select-combo-box.js +52 -69
- package/theme/lumo/vaadin-multi-select-combo-box-styles.js +4 -1
- package/web-types.json +207 -230
- package/web-types.lit.json +78 -78
- package/src/vaadin-lit-multi-select-combo-box-chip.js +0 -88
- package/src/vaadin-lit-multi-select-combo-box-container.js +0 -66
- package/src/vaadin-lit-multi-select-combo-box-internal.js +0 -56
- package/src/vaadin-lit-multi-select-combo-box-item.js +0 -68
- package/src/vaadin-lit-multi-select-combo-box-overlay.js +0 -64
- package/src/vaadin-lit-multi-select-combo-box-scroller.js +0 -96
- package/src/vaadin-lit-multi-select-combo-box.js +0 -146
- package/src/vaadin-multi-select-combo-box-internal-mixin.js +0 -449
- package/src/vaadin-multi-select-combo-box-internal.js +0 -51
- package/theme/lumo/vaadin-lit-multi-select-combo-box.d.ts +0 -3
- package/theme/lumo/vaadin-lit-multi-select-combo-box.js +0 -3
- package/theme/material/vaadin-lit-multi-select-combo-box.d.ts +0 -3
- package/theme/material/vaadin-lit-multi-select-combo-box.js +0 -3
- package/theme/material/vaadin-multi-select-combo-box-chip-styles.js +0 -102
- package/theme/material/vaadin-multi-select-combo-box-styles.d.ts +0 -9
- package/theme/material/vaadin-multi-select-combo-box-styles.js +0 -92
- package/theme/material/vaadin-multi-select-combo-box.d.ts +0 -8
- package/theme/material/vaadin-multi-select-combo-box.js +0 -8
- package/vaadin-lit-multi-select-combo-box.d.ts +0 -1
- package/vaadin-lit-multi-select-combo-box.js +0 -2
|
@@ -8,9 +8,12 @@ import type { DelegateFocusMixinClass } from '@vaadin/a11y-base/src/delegate-foc
|
|
|
8
8
|
import type { DisabledMixinClass } from '@vaadin/a11y-base/src/disabled-mixin.js';
|
|
9
9
|
import type { FocusMixinClass } from '@vaadin/a11y-base/src/focus-mixin.js';
|
|
10
10
|
import type { KeyboardMixinClass } from '@vaadin/a11y-base/src/keyboard-mixin.js';
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
11
|
+
import type { ComboBoxItemModel } from '@vaadin/combo-box/src/vaadin-combo-box.js';
|
|
12
|
+
import type { ComboBoxBaseMixinClass } from '@vaadin/combo-box/src/vaadin-combo-box-base-mixin.js';
|
|
13
|
+
import type { ComboBoxDataProviderMixinClass } from '@vaadin/combo-box/src/vaadin-combo-box-data-provider-mixin.js';
|
|
14
|
+
import type { ComboBoxItemsMixinClass } from '@vaadin/combo-box/src/vaadin-combo-box-items-mixin.js';
|
|
13
15
|
import type { DelegateStateMixinClass } from '@vaadin/component-base/src/delegate-state-mixin.js';
|
|
16
|
+
import type { OverlayClassMixinClass } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
14
17
|
import type { ResizeMixinClass } from '@vaadin/component-base/src/resize-mixin.js';
|
|
15
18
|
import type { SlotStylesMixinClass } from '@vaadin/component-base/src/slot-styles-mixin.js';
|
|
16
19
|
import type { ClearButtonMixinClass } from '@vaadin/field-base/src/clear-button-mixin.js';
|
|
@@ -39,7 +42,9 @@ export interface MultiSelectComboBoxI18n {
|
|
|
39
42
|
export declare function MultiSelectComboBoxMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
40
43
|
base: T,
|
|
41
44
|
): Constructor<ClearButtonMixinClass> &
|
|
42
|
-
Constructor<
|
|
45
|
+
Constructor<ComboBoxBaseMixinClass> &
|
|
46
|
+
Constructor<ComboBoxDataProviderMixinClass<TItem>> &
|
|
47
|
+
Constructor<ComboBoxItemsMixinClass<TItem>> &
|
|
43
48
|
Constructor<DelegateFocusMixinClass> &
|
|
44
49
|
Constructor<DelegateStateMixinClass> &
|
|
45
50
|
Constructor<DisabledMixinClass> &
|
|
@@ -51,6 +56,7 @@ export declare function MultiSelectComboBoxMixin<TItem, T extends Constructor<HT
|
|
|
51
56
|
Constructor<KeyboardMixinClass> &
|
|
52
57
|
Constructor<LabelMixinClass> &
|
|
53
58
|
Constructor<MultiSelectComboBoxMixinClass<TItem>> &
|
|
59
|
+
Constructor<OverlayClassMixinClass> &
|
|
54
60
|
Constructor<ResizeMixinClass> &
|
|
55
61
|
Constructor<SlotStylesMixinClass> &
|
|
56
62
|
Constructor<ValidateMixinClass> &
|
|
@@ -78,44 +84,6 @@ export declare class MultiSelectComboBoxMixinClass<TItem> {
|
|
|
78
84
|
*/
|
|
79
85
|
allowCustomValue: boolean;
|
|
80
86
|
|
|
81
|
-
/**
|
|
82
|
-
* Set true to prevent the overlay from opening automatically.
|
|
83
|
-
* @attr {boolean} auto-open-disabled
|
|
84
|
-
*/
|
|
85
|
-
autoOpenDisabled: boolean;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Function that provides items lazily. Receives two arguments:
|
|
89
|
-
*
|
|
90
|
-
* - `params` - Object with the following properties:
|
|
91
|
-
* - `params.page` Requested page index
|
|
92
|
-
* - `params.pageSize` Current page size
|
|
93
|
-
* - `params.filter` Currently applied filter
|
|
94
|
-
*
|
|
95
|
-
* - `callback(items, size)` - Callback function with arguments:
|
|
96
|
-
* - `items` Current page of items
|
|
97
|
-
* - `size` Total number of items.
|
|
98
|
-
*/
|
|
99
|
-
dataProvider: ComboBoxDataProvider<TItem> | null | undefined;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* A subset of items, filtered based on the user input. Filtered items
|
|
103
|
-
* can be assigned directly to omit the internal filtering functionality.
|
|
104
|
-
* The items can be of either `String` or `Object` type.
|
|
105
|
-
*/
|
|
106
|
-
filteredItems: TItem[] | undefined;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Filtering string the user has typed into the input field.
|
|
110
|
-
*/
|
|
111
|
-
filter: string;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* A full set of items to filter the visible options from.
|
|
115
|
-
* The items can be of either `String` or `Object` type.
|
|
116
|
-
*/
|
|
117
|
-
items: TItem[] | undefined;
|
|
118
|
-
|
|
119
87
|
/**
|
|
120
88
|
* A function used to generate CSS class names for dropdown
|
|
121
89
|
* items and selected chips based on the item. The return
|
|
@@ -124,25 +92,12 @@ export declare class MultiSelectComboBoxMixinClass<TItem> {
|
|
|
124
92
|
*/
|
|
125
93
|
itemClassNameGenerator: (item: TItem) => string;
|
|
126
94
|
|
|
127
|
-
/**
|
|
128
|
-
* The item property used for a visual representation of the item.
|
|
129
|
-
* @attr {string} item-label-path
|
|
130
|
-
*/
|
|
131
|
-
itemLabelPath: string;
|
|
132
|
-
|
|
133
95
|
/**
|
|
134
96
|
* Path for the id of the item, used to detect whether the item is selected.
|
|
135
97
|
* @attr {string} item-id-path
|
|
136
98
|
*/
|
|
137
99
|
itemIdPath: string;
|
|
138
100
|
|
|
139
|
-
/**
|
|
140
|
-
* Path for the value of the item. If `items` is an array of objects,
|
|
141
|
-
* this property is used as a string value for the selected item.
|
|
142
|
-
* @attr {string} item-value-path
|
|
143
|
-
*/
|
|
144
|
-
itemValuePath: string;
|
|
145
|
-
|
|
146
101
|
/**
|
|
147
102
|
* The object used to localize this component.
|
|
148
103
|
* To change the default localization, replace the entire
|
|
@@ -178,24 +133,6 @@ export declare class MultiSelectComboBoxMixinClass<TItem> {
|
|
|
178
133
|
*/
|
|
179
134
|
loading: boolean;
|
|
180
135
|
|
|
181
|
-
/**
|
|
182
|
-
* A space-delimited list of CSS class names to set on the overlay element.
|
|
183
|
-
*
|
|
184
|
-
* @attr {string} overlay-class
|
|
185
|
-
*/
|
|
186
|
-
overlayClass: string;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* True if the dropdown is open, false otherwise.
|
|
190
|
-
*/
|
|
191
|
-
opened: boolean;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Number of items fetched at a time from the data provider.
|
|
195
|
-
* @attr {number} page-size
|
|
196
|
-
*/
|
|
197
|
-
pageSize: number;
|
|
198
|
-
|
|
199
136
|
/**
|
|
200
137
|
* A hint to the user of what can be entered in the control.
|
|
201
138
|
* The placeholder will be only displayed in the case when
|
|
@@ -228,16 +165,6 @@ export declare class MultiSelectComboBoxMixinClass<TItem> {
|
|
|
228
165
|
*/
|
|
229
166
|
selectedItemsOnTop: boolean;
|
|
230
167
|
|
|
231
|
-
/**
|
|
232
|
-
* Total number of items.
|
|
233
|
-
*/
|
|
234
|
-
size: number | undefined;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Clears the cached pages and reloads data from data provider when needed.
|
|
238
|
-
*/
|
|
239
|
-
clearCache(): void;
|
|
240
|
-
|
|
241
168
|
/**
|
|
242
169
|
* Clears the selected items.
|
|
243
170
|
*/
|