@vaadin/combo-box 25.0.0-alpha2 → 25.0.0-alpha21
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/package.json +14 -17
- package/src/styles/vaadin-combo-box-base-styles.js +2 -2
- package/src/styles/vaadin-combo-box-overlay-base-styles.js +31 -48
- package/src/vaadin-combo-box-base-mixin.d.ts +54 -0
- package/src/vaadin-combo-box-base-mixin.js +772 -0
- package/src/vaadin-combo-box-data-provider-mixin.js +17 -32
- package/src/vaadin-combo-box-item-mixin.js +6 -1
- package/src/vaadin-combo-box-item.js +5 -2
- package/src/vaadin-combo-box-items-mixin.d.ts +60 -0
- package/src/vaadin-combo-box-items-mixin.js +292 -0
- package/src/vaadin-combo-box-mixin.d.ts +3 -74
- package/src/vaadin-combo-box-mixin.js +84 -886
- package/src/vaadin-combo-box-overlay-mixin.js +1 -22
- package/src/vaadin-combo-box-overlay.js +4 -4
- package/src/vaadin-combo-box-scroller-mixin.d.ts +1 -2
- package/src/vaadin-combo-box-scroller-mixin.js +5 -0
- package/src/vaadin-combo-box-scroller.js +1 -1
- package/src/vaadin-combo-box.d.ts +33 -19
- package/src/vaadin-combo-box.js +67 -22
- package/vaadin-combo-box.js +1 -1
- package/web-types.json +59 -70
- package/web-types.lit.json +20 -20
- package/src/styles/vaadin-combo-box-core-styles.d.ts +0 -8
- package/src/styles/vaadin-combo-box-core-styles.js +0 -12
- package/src/styles/vaadin-combo-box-overlay-core-styles.js +0 -18
- package/src/styles/vaadin-combo-box-scroller-core-styles.js +0 -30
- package/theme/lumo/vaadin-combo-box-item-styles.d.ts +0 -5
- package/theme/lumo/vaadin-combo-box-item-styles.js +0 -25
- package/theme/lumo/vaadin-combo-box-overlay-styles.d.ts +0 -6
- package/theme/lumo/vaadin-combo-box-overlay-styles.js +0 -60
- package/theme/lumo/vaadin-combo-box-styles.d.ts +0 -2
- package/theme/lumo/vaadin-combo-box-styles.js +0 -12
- package/theme/lumo/vaadin-combo-box.d.ts +0 -4
- package/theme/lumo/vaadin-combo-box.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/combo-box",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha21",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
"lit.d.ts",
|
|
23
23
|
"lit.js",
|
|
24
24
|
"src",
|
|
25
|
-
"!src/styles/*-base-styles.d.ts",
|
|
26
|
-
"!src/styles/*-base-styles.js",
|
|
27
|
-
"theme",
|
|
28
25
|
"vaadin-*.d.ts",
|
|
29
26
|
"vaadin-*.js",
|
|
30
27
|
"web-types.json",
|
|
@@ -38,26 +35,26 @@
|
|
|
38
35
|
],
|
|
39
36
|
"dependencies": {
|
|
40
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
41
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
42
|
-
"@vaadin/component-base": "25.0.0-
|
|
43
|
-
"@vaadin/field-base": "25.0.0-
|
|
44
|
-
"@vaadin/input-container": "25.0.0-
|
|
45
|
-
"@vaadin/item": "25.0.0-
|
|
46
|
-
"@vaadin/lit-renderer": "25.0.0-
|
|
47
|
-
"@vaadin/overlay": "25.0.0-
|
|
48
|
-
"@vaadin/vaadin-
|
|
49
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha2",
|
|
38
|
+
"@vaadin/a11y-base": "25.0.0-alpha21",
|
|
39
|
+
"@vaadin/component-base": "25.0.0-alpha21",
|
|
40
|
+
"@vaadin/field-base": "25.0.0-alpha21",
|
|
41
|
+
"@vaadin/input-container": "25.0.0-alpha21",
|
|
42
|
+
"@vaadin/item": "25.0.0-alpha21",
|
|
43
|
+
"@vaadin/lit-renderer": "25.0.0-alpha21",
|
|
44
|
+
"@vaadin/overlay": "25.0.0-alpha21",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha21",
|
|
50
46
|
"lit": "^3.0.0"
|
|
51
47
|
},
|
|
52
48
|
"devDependencies": {
|
|
53
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
54
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
49
|
+
"@vaadin/chai-plugins": "25.0.0-alpha21",
|
|
50
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha21",
|
|
55
51
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
56
|
-
"
|
|
52
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha21",
|
|
53
|
+
"sinon": "^21.0.0"
|
|
57
54
|
},
|
|
58
55
|
"web-types": [
|
|
59
56
|
"web-types.json",
|
|
60
57
|
"web-types.lit.json"
|
|
61
58
|
],
|
|
62
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "8fb9e9710c01449edf623a1aaac4655cdc11a933"
|
|
63
60
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2015 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '@vaadin/component-base/src/style-props.js';
|
|
6
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
7
7
|
import { css } from 'lit';
|
|
8
8
|
|
|
9
9
|
export const comboBoxStyles = css`
|
|
@@ -11,7 +11,7 @@ export const comboBoxStyles = css`
|
|
|
11
11
|
pointer-events: auto;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
[part
|
|
14
|
+
[part~='toggle-button']::before {
|
|
15
15
|
mask-image: var(--_vaadin-icon-chevron-down);
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
@@ -3,61 +3,44 @@
|
|
|
3
3
|
* Copyright (c) 2015 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '@vaadin/component-base/src/style-props.js';
|
|
6
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
7
7
|
import { css } from 'lit';
|
|
8
|
+
import { loaderStyles } from '@vaadin/component-base/src/styles/loader-styles.js';
|
|
8
9
|
|
|
9
|
-
export const comboBoxOverlayStyles =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
position: relative;
|
|
16
|
-
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[part='loader'] {
|
|
20
|
-
animation: spin 1s linear infinite;
|
|
21
|
-
border: 2px solid;
|
|
22
|
-
--_spinner-color: var(--vaadin-combo-box-spinner-color, var(--_vaadin-color-strong));
|
|
23
|
-
border-color: var(--_spinner-color) var(--_spinner-color) hsl(from var(--_spinner-color) h s l / 0.2)
|
|
24
|
-
hsl(from var(--_spinner-color) h s l / 0.2);
|
|
25
|
-
border-radius: var(--_vaadin-radius-full);
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
display: none;
|
|
28
|
-
height: var(--vaadin-icon-size, 1lh);
|
|
29
|
-
inset: calc(var(--vaadin-item-overlay-padding, 4px) + 2px);
|
|
30
|
-
inset-block-end: auto;
|
|
31
|
-
inset-inline-start: auto;
|
|
32
|
-
pointer-events: none;
|
|
33
|
-
position: absolute;
|
|
34
|
-
width: var(--vaadin-icon-size, 1lh);
|
|
35
|
-
}
|
|
10
|
+
export const comboBoxOverlayStyles = [
|
|
11
|
+
loaderStyles,
|
|
12
|
+
css`
|
|
13
|
+
:host {
|
|
14
|
+
--vaadin-item-checkmark-display: block;
|
|
15
|
+
}
|
|
36
16
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
17
|
+
[part='overlay'] {
|
|
18
|
+
position: relative;
|
|
19
|
+
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
20
|
+
}
|
|
42
21
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
22
|
+
[part='content'] {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
46
27
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
28
|
+
:host([loading]) [part='content'] {
|
|
29
|
+
--_items-min-height: calc(var(--vaadin-icon-size, 1lh) + 4px);
|
|
30
|
+
}
|
|
50
31
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
32
|
+
@media (forced-colors: active) {
|
|
33
|
+
[part='loader'] {
|
|
34
|
+
forced-color-adjust: none;
|
|
35
|
+
--vaadin-combo-box-spinner-color: CanvasText;
|
|
36
|
+
}
|
|
54
37
|
}
|
|
55
|
-
}
|
|
56
38
|
|
|
57
|
-
@media (forced-colors: active) {
|
|
58
39
|
[part='loader'] {
|
|
59
|
-
|
|
60
|
-
--vaadin-
|
|
40
|
+
position: absolute;
|
|
41
|
+
inset: calc(var(--vaadin-item-overlay-padding, 4px) + 2px);
|
|
42
|
+
inset-block-end: auto;
|
|
43
|
+
inset-inline-start: auto;
|
|
61
44
|
}
|
|
62
|
-
|
|
63
|
-
|
|
45
|
+
`,
|
|
46
|
+
];
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2015 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
|
+
import type { DisabledMixinClass } from '@vaadin/a11y-base/src/disabled-mixin.js';
|
|
8
|
+
import type { FocusMixinClass } from '@vaadin/a11y-base/src/focus-mixin.js';
|
|
9
|
+
import type { KeyboardMixinClass } from '@vaadin/a11y-base/src/keyboard-mixin.js';
|
|
10
|
+
import type { InputMixinClass } from '@vaadin/field-base/src/input-mixin.js';
|
|
11
|
+
import type { ValidateMixinClass } from '@vaadin/field-base/src/validate-mixin.js';
|
|
12
|
+
|
|
13
|
+
export declare function ComboBoxBaseMixin<T extends Constructor<HTMLElement>>(
|
|
14
|
+
base: T,
|
|
15
|
+
): Constructor<ComboBoxBaseMixinClass> &
|
|
16
|
+
Constructor<DisabledMixinClass> &
|
|
17
|
+
Constructor<FocusMixinClass> &
|
|
18
|
+
Constructor<InputMixinClass> &
|
|
19
|
+
Constructor<KeyboardMixinClass> &
|
|
20
|
+
Constructor<ValidateMixinClass> &
|
|
21
|
+
T;
|
|
22
|
+
|
|
23
|
+
export declare class ComboBoxBaseMixinClass {
|
|
24
|
+
/**
|
|
25
|
+
* True if the dropdown is open, false otherwise.
|
|
26
|
+
*/
|
|
27
|
+
opened: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Set true to prevent the overlay from opening automatically.
|
|
31
|
+
* @attr {boolean} auto-open-disabled
|
|
32
|
+
*/
|
|
33
|
+
autoOpenDisabled: boolean | null | undefined;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* When present, it specifies that the field is read-only.
|
|
37
|
+
*/
|
|
38
|
+
readonly: boolean;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Tag name prefix used by scroller and items.
|
|
42
|
+
*/
|
|
43
|
+
protected readonly _tagNamePrefix: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Opens the dropdown list.
|
|
47
|
+
*/
|
|
48
|
+
open(): void;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Closes the dropdown list.
|
|
52
|
+
*/
|
|
53
|
+
close(): void;
|
|
54
|
+
}
|