@vaadin/multi-select-combo-box 24.0.5 → 24.1.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
CHANGED
|
@@ -13,7 +13,7 @@ A web component that wraps `<vaadin-combo-box>` and allows selecting multiple it
|
|
|
13
13
|
</script>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
[<img src="https://raw.githubusercontent.com/vaadin/web-components/
|
|
16
|
+
[<img src="https://raw.githubusercontent.com/vaadin/web-components/main/packages/multi-select-combo-box/screenshot.png" width="300" alt="Screenshot of vaadin-multi-select-combo-box">](https://vaadin.com/docs/latest/components/multi-select-combo-box)
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
@@ -32,7 +32,7 @@ import '@vaadin/multi-select-combo-box';
|
|
|
32
32
|
## Themes
|
|
33
33
|
|
|
34
34
|
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
|
|
35
|
-
The [main entrypoint](https://github.com/vaadin/web-components/blob/
|
|
35
|
+
The [main entrypoint](https://github.com/vaadin/web-components/blob/main/packages/multi-select-combo-box/vaadin-multi-select-combo-box.js) of the package uses the Lumo theme.
|
|
36
36
|
|
|
37
37
|
To use the Material theme, import the component from the `theme/material` folder:
|
|
38
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/multi-select-combo-box",
|
|
3
|
-
"version": "24.0
|
|
3
|
+
"version": "24.1.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,16 +37,17 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/
|
|
41
|
-
"@vaadin/
|
|
42
|
-
"@vaadin/
|
|
43
|
-
"@vaadin/
|
|
44
|
-
"@vaadin/
|
|
45
|
-
"@vaadin/
|
|
46
|
-
"@vaadin/
|
|
47
|
-
"@vaadin/
|
|
48
|
-
"@vaadin/vaadin-
|
|
49
|
-
"@vaadin/vaadin-
|
|
40
|
+
"@vaadin/a11y-base": "24.1.0-alpha10",
|
|
41
|
+
"@vaadin/combo-box": "24.1.0-alpha10",
|
|
42
|
+
"@vaadin/component-base": "24.1.0-alpha10",
|
|
43
|
+
"@vaadin/field-base": "24.1.0-alpha10",
|
|
44
|
+
"@vaadin/input-container": "24.1.0-alpha10",
|
|
45
|
+
"@vaadin/item": "24.1.0-alpha10",
|
|
46
|
+
"@vaadin/lit-renderer": "24.1.0-alpha10",
|
|
47
|
+
"@vaadin/overlay": "24.1.0-alpha10",
|
|
48
|
+
"@vaadin/vaadin-lumo-styles": "24.1.0-alpha10",
|
|
49
|
+
"@vaadin/vaadin-material-styles": "24.1.0-alpha10",
|
|
50
|
+
"@vaadin/vaadin-themable-mixin": "24.1.0-alpha10"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -58,5 +59,5 @@
|
|
|
58
59
|
"web-types.json",
|
|
59
60
|
"web-types.lit.json"
|
|
60
61
|
],
|
|
61
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "12e39be7eb3b49c68708e8ca3de2fb22e91051a1"
|
|
62
63
|
}
|
|
@@ -70,6 +70,13 @@ class MultiSelectComboBoxChip extends ThemableMixin(PolymerElement) {
|
|
|
70
70
|
:host(:is([readonly], [disabled], [slot='overflow'])) [part='remove-button'] {
|
|
71
71
|
display: none !important;
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
@media (forced-colors: active) {
|
|
75
|
+
:host {
|
|
76
|
+
outline: 1px solid;
|
|
77
|
+
outline-offset: -1px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
73
80
|
</style>
|
|
74
81
|
<div part="label">[[label]]</div>
|
|
75
82
|
<div part="remove-button" role="button" on-click="_onRemoveClick"></div>
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
+
import type { DelegateFocusMixinClass } from '@vaadin/a11y-base/src/delegate-focus-mixin.js';
|
|
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';
|
|
6
10
|
import type {
|
|
7
11
|
ComboBoxDataProvider,
|
|
8
12
|
ComboBoxDefaultItem,
|
|
9
13
|
ComboBoxItemModel,
|
|
10
14
|
} from '@vaadin/combo-box/src/vaadin-combo-box.js';
|
|
11
15
|
import type { ControllerMixinClass } from '@vaadin/component-base/src/controller-mixin.js';
|
|
12
|
-
import type { DelegateFocusMixinClass } from '@vaadin/component-base/src/delegate-focus-mixin.js';
|
|
13
16
|
import type { DelegateStateMixinClass } from '@vaadin/component-base/src/delegate-state-mixin.js';
|
|
14
|
-
import type { DisabledMixinClass } from '@vaadin/component-base/src/disabled-mixin.js';
|
|
15
17
|
import type { ElementMixinClass } from '@vaadin/component-base/src/element-mixin.js';
|
|
16
|
-
import type { FocusMixinClass } from '@vaadin/component-base/src/focus-mixin.js';
|
|
17
|
-
import type { KeyboardMixinClass } from '@vaadin/component-base/src/keyboard-mixin.js';
|
|
18
18
|
import type { ResizeMixinClass } from '@vaadin/component-base/src/resize-mixin.js';
|
|
19
19
|
import type { ClearButtonMixinClass } from '@vaadin/field-base/src/clear-button-mixin.js';
|
|
20
20
|
import type { FieldMixinClass } from '@vaadin/field-base/src/field-mixin.js';
|
|
@@ -7,7 +7,7 @@ import './vaadin-multi-select-combo-box-chip.js';
|
|
|
7
7
|
import './vaadin-multi-select-combo-box-container.js';
|
|
8
8
|
import './vaadin-multi-select-combo-box-internal.js';
|
|
9
9
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
10
|
-
import { announce } from '@vaadin/
|
|
10
|
+
import { announce } from '@vaadin/a11y-base/src/announce.js';
|
|
11
11
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
12
12
|
import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
|
|
13
13
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
@@ -479,6 +479,7 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
|
|
|
479
479
|
`
|
|
480
480
|
${tag}[has-value] input::placeholder {
|
|
481
481
|
color: transparent !important;
|
|
482
|
+
forced-color-adjust: none;
|
|
482
483
|
}
|
|
483
484
|
`,
|
|
484
485
|
];
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/multi-select-combo-box",
|
|
4
|
-
"version": "24.0
|
|
4
|
+
"version": "24.1.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -87,6 +87,28 @@
|
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
+
{
|
|
91
|
+
"name": "accessible-name",
|
|
92
|
+
"description": "String used to label the component to screen reader users.",
|
|
93
|
+
"value": {
|
|
94
|
+
"type": [
|
|
95
|
+
"string",
|
|
96
|
+
"null",
|
|
97
|
+
"undefined"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "accessible-name-ref",
|
|
103
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
104
|
+
"value": {
|
|
105
|
+
"type": [
|
|
106
|
+
"string",
|
|
107
|
+
"null",
|
|
108
|
+
"undefined"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
90
112
|
{
|
|
91
113
|
"name": "value",
|
|
92
114
|
"description": "The value of the field.",
|
|
@@ -387,6 +409,28 @@
|
|
|
387
409
|
]
|
|
388
410
|
}
|
|
389
411
|
},
|
|
412
|
+
{
|
|
413
|
+
"name": "accessibleName",
|
|
414
|
+
"description": "String used to label the component to screen reader users.",
|
|
415
|
+
"value": {
|
|
416
|
+
"type": [
|
|
417
|
+
"string",
|
|
418
|
+
"null",
|
|
419
|
+
"undefined"
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "accessibleNameRef",
|
|
425
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
426
|
+
"value": {
|
|
427
|
+
"type": [
|
|
428
|
+
"string",
|
|
429
|
+
"null",
|
|
430
|
+
"undefined"
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
},
|
|
390
434
|
{
|
|
391
435
|
"name": "clearButtonVisible",
|
|
392
436
|
"description": "Set to true to display the clear icon which clears the input.",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/multi-select-combo-box",
|
|
4
|
-
"version": "24.0
|
|
4
|
+
"version": "24.1.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -117,6 +117,20 @@
|
|
|
117
117
|
"kind": "expression"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
+
{
|
|
121
|
+
"name": ".accessibleName",
|
|
122
|
+
"description": "String used to label the component to screen reader users.",
|
|
123
|
+
"value": {
|
|
124
|
+
"kind": "expression"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": ".accessibleNameRef",
|
|
129
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
130
|
+
"value": {
|
|
131
|
+
"kind": "expression"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
120
134
|
{
|
|
121
135
|
"name": ".allowedCharPattern",
|
|
122
136
|
"description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
|