@vaadin/multi-select-combo-box 25.3.0-alpha1 → 25.3.0-alpha11

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.
@@ -26,6 +26,20 @@
26
26
  "description": "",
27
27
  "name": "MultiSelectComboBoxMixin",
28
28
  "members": [
29
+ {
30
+ "kind": "field",
31
+ "name": "accessibleDescriptionRef",
32
+ "privacy": "public",
33
+ "type": {
34
+ "text": "string"
35
+ },
36
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
37
+ "attribute": "accessible-description-ref",
38
+ "inheritedFrom": {
39
+ "name": "FieldMixin",
40
+ "package": "@vaadin/field-base/src/field-mixin.js"
41
+ }
42
+ },
29
43
  {
30
44
  "kind": "field",
31
45
  "name": "accessibleName",
@@ -33,7 +47,7 @@
33
47
  "type": {
34
48
  "text": "string"
35
49
  },
36
- "description": "String used to label the component to screen reader users.",
50
+ "description": "String used to label the component for screen reader users.",
37
51
  "attribute": "accessible-name",
38
52
  "inheritedFrom": {
39
53
  "name": "FieldMixin",
@@ -47,7 +61,7 @@
47
61
  "type": {
48
62
  "text": "string"
49
63
  },
50
- "description": "Id of the element used as label of the component to screen reader users.",
64
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
51
65
  "attribute": "accessible-name-ref",
52
66
  "inheritedFrom": {
53
67
  "name": "FieldMixin",
@@ -170,7 +184,7 @@
170
184
  "type": {
171
185
  "text": "boolean"
172
186
  },
173
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
187
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
174
188
  "attribute": "clear-button-visible",
175
189
  "inheritedFrom": {
176
190
  "name": "ClearButtonMixin",
@@ -655,12 +669,24 @@
655
669
  }
656
670
  ],
657
671
  "attributes": [
672
+ {
673
+ "name": "accessible-description-ref",
674
+ "type": {
675
+ "text": "string"
676
+ },
677
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
678
+ "fieldName": "accessibleDescriptionRef",
679
+ "inheritedFrom": {
680
+ "name": "FieldMixin",
681
+ "package": "@vaadin/field-base/src/field-mixin.js"
682
+ }
683
+ },
658
684
  {
659
685
  "name": "accessible-name",
660
686
  "type": {
661
687
  "text": "string"
662
688
  },
663
- "description": "String used to label the component to screen reader users.",
689
+ "description": "String used to label the component for screen reader users.",
664
690
  "fieldName": "accessibleName",
665
691
  "inheritedFrom": {
666
692
  "name": "FieldMixin",
@@ -672,7 +698,7 @@
672
698
  "type": {
673
699
  "text": "string"
674
700
  },
675
- "description": "Id of the element used as label of the component to screen reader users.",
701
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
676
702
  "fieldName": "accessibleNameRef",
677
703
  "inheritedFrom": {
678
704
  "name": "FieldMixin",
@@ -756,7 +782,7 @@
756
782
  "type": {
757
783
  "text": "boolean"
758
784
  },
759
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
785
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
760
786
  "fieldName": "clearButtonVisible",
761
787
  "inheritedFrom": {
762
788
  "name": "ClearButtonMixin",
@@ -1113,6 +1139,20 @@
1113
1139
  "description": "`<vaadin-multi-select-combo-box>` is a web component that wraps `<vaadin-combo-box>` and extends\nits functionality to allow selecting multiple items, in addition to basic features.\n\n```html\n<vaadin-multi-select-combo-box id=\"comboBox\"></vaadin-multi-select-combo-box>\n```\n\n```js\nconst comboBox = document.querySelector('#comboBox');\ncomboBox.items = ['apple', 'banana', 'lemon', 'orange'];\ncomboBox.selectedItems = ['lemon', 'orange'];\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------------|----------------\n`chips` | The element that wraps slotted chips for selected items\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and toggle buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n`loader` | The loading indicator shown while loading items\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------------|-----------------\n`disabled` | Set to a disabled element\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`loading` | Set when loading items from the data provider\n`opened` | Set when the dropdown is open\n`readonly` | Set to a readonly element\n\nThe following custom CSS properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------------------|----------------------------|--------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-multi-select-combo-box-overlay-width` | Width of the overlay | `auto`\n`--vaadin-multi-select-combo-box-overlay-max-height` | Max height of the overlay | `65vh`\n`--vaadin-multi-select-combo-box-input-min-width` | Min width of the input | `4em`\n\n### Internal components\n\nIn addition to `<vaadin-multi-select-combo-box>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-multi-select-combo-box-chip>`\n- `<vaadin-multi-select-combo-box-item>` - has the same API as `<vaadin-item>`.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
1114
1140
  "name": "MultiSelectComboBox",
1115
1141
  "members": [
1142
+ {
1143
+ "kind": "field",
1144
+ "name": "accessibleDescriptionRef",
1145
+ "privacy": "public",
1146
+ "type": {
1147
+ "text": "string"
1148
+ },
1149
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
1150
+ "attribute": "accessible-description-ref",
1151
+ "inheritedFrom": {
1152
+ "name": "FieldMixin",
1153
+ "package": "@vaadin/field-base/src/field-mixin.js"
1154
+ }
1155
+ },
1116
1156
  {
1117
1157
  "kind": "field",
1118
1158
  "name": "accessibleName",
@@ -1120,7 +1160,7 @@
1120
1160
  "type": {
1121
1161
  "text": "string"
1122
1162
  },
1123
- "description": "String used to label the component to screen reader users.",
1163
+ "description": "String used to label the component for screen reader users.",
1124
1164
  "attribute": "accessible-name",
1125
1165
  "inheritedFrom": {
1126
1166
  "name": "FieldMixin",
@@ -1134,7 +1174,7 @@
1134
1174
  "type": {
1135
1175
  "text": "string"
1136
1176
  },
1137
- "description": "Id of the element used as label of the component to screen reader users.",
1177
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
1138
1178
  "attribute": "accessible-name-ref",
1139
1179
  "inheritedFrom": {
1140
1180
  "name": "FieldMixin",
@@ -1269,7 +1309,7 @@
1269
1309
  "type": {
1270
1310
  "text": "boolean"
1271
1311
  },
1272
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
1312
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
1273
1313
  "attribute": "clear-button-visible",
1274
1314
  "inheritedFrom": {
1275
1315
  "name": "ClearButtonMixin",
@@ -1806,41 +1846,25 @@
1806
1846
  "name": "validated"
1807
1847
  }
1808
1848
  ],
1809
- "mixins": [
1810
- {
1811
- "name": "MultiSelectComboBoxMixin",
1812
- "module": "src/vaadin-multi-select-combo-box-mixin.js"
1813
- },
1814
- {
1815
- "name": "ThemableMixin",
1816
- "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
1817
- },
1818
- {
1819
- "name": "ElementMixin",
1820
- "package": "@vaadin/component-base/src/element-mixin.js"
1821
- },
1849
+ "attributes": [
1822
1850
  {
1823
- "name": "PolylitMixin",
1824
- "package": "@vaadin/component-base/src/polylit-mixin.js"
1851
+ "name": "accessible-description-ref",
1852
+ "type": {
1853
+ "text": "string"
1854
+ },
1855
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
1856
+ "fieldName": "accessibleDescriptionRef",
1857
+ "inheritedFrom": {
1858
+ "name": "FieldMixin",
1859
+ "package": "@vaadin/field-base/src/field-mixin.js"
1860
+ }
1825
1861
  },
1826
- {
1827
- "name": "LumoInjectionMixin",
1828
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
1829
- }
1830
- ],
1831
- "superclass": {
1832
- "name": "LitElement",
1833
- "package": "lit"
1834
- },
1835
- "tagName": "vaadin-multi-select-combo-box",
1836
- "customElement": true,
1837
- "attributes": [
1838
1862
  {
1839
1863
  "name": "accessible-name",
1840
1864
  "type": {
1841
1865
  "text": "string"
1842
1866
  },
1843
- "description": "String used to label the component to screen reader users.",
1867
+ "description": "String used to label the component for screen reader users.",
1844
1868
  "fieldName": "accessibleName",
1845
1869
  "inheritedFrom": {
1846
1870
  "name": "FieldMixin",
@@ -1852,7 +1876,7 @@
1852
1876
  "type": {
1853
1877
  "text": "string"
1854
1878
  },
1855
- "description": "Id of the element used as label of the component to screen reader users.",
1879
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
1856
1880
  "fieldName": "accessibleNameRef",
1857
1881
  "inheritedFrom": {
1858
1882
  "name": "FieldMixin",
@@ -1948,7 +1972,7 @@
1948
1972
  "type": {
1949
1973
  "text": "boolean"
1950
1974
  },
1951
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
1975
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
1952
1976
  "fieldName": "clearButtonVisible",
1953
1977
  "inheritedFrom": {
1954
1978
  "name": "ClearButtonMixin",
@@ -2255,6 +2279,13 @@
2255
2279
  "package": "@vaadin/combo-box/src/vaadin-combo-box-data-provider-mixin.js"
2256
2280
  }
2257
2281
  },
2282
+ {
2283
+ "type": {
2284
+ "text": "string"
2285
+ },
2286
+ "description": "The theme variants to apply to the component.",
2287
+ "name": "theme"
2288
+ },
2258
2289
  {
2259
2290
  "name": "title",
2260
2291
  "type": {
@@ -2267,7 +2298,35 @@
2267
2298
  "package": "@vaadin/field-base/src/input-control-mixin.js"
2268
2299
  }
2269
2300
  }
2270
- ]
2301
+ ],
2302
+ "mixins": [
2303
+ {
2304
+ "name": "MultiSelectComboBoxMixin",
2305
+ "module": "src/vaadin-multi-select-combo-box-mixin.js"
2306
+ },
2307
+ {
2308
+ "name": "ThemableMixin",
2309
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
2310
+ },
2311
+ {
2312
+ "name": "ElementMixin",
2313
+ "package": "@vaadin/component-base/src/element-mixin.js"
2314
+ },
2315
+ {
2316
+ "name": "PolylitMixin",
2317
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
2318
+ },
2319
+ {
2320
+ "name": "LumoInjectionMixin",
2321
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
2322
+ }
2323
+ ],
2324
+ "superclass": {
2325
+ "name": "LitElement",
2326
+ "package": "lit"
2327
+ },
2328
+ "tagName": "vaadin-multi-select-combo-box",
2329
+ "customElement": true
2271
2330
  }
2272
2331
  ],
2273
2332
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/multi-select-combo-box",
3
- "version": "25.3.0-alpha1",
3
+ "version": "25.3.0-alpha11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,23 +37,23 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
- "@vaadin/a11y-base": "25.3.0-alpha1",
41
- "@vaadin/combo-box": "25.3.0-alpha1",
42
- "@vaadin/component-base": "25.3.0-alpha1",
43
- "@vaadin/field-base": "25.3.0-alpha1",
44
- "@vaadin/input-container": "25.3.0-alpha1",
45
- "@vaadin/item": "25.3.0-alpha1",
46
- "@vaadin/lit-renderer": "25.3.0-alpha1",
47
- "@vaadin/overlay": "25.3.0-alpha1",
48
- "@vaadin/vaadin-themable-mixin": "25.3.0-alpha1",
40
+ "@vaadin/a11y-base": "25.3.0-alpha11",
41
+ "@vaadin/combo-box": "25.3.0-alpha11",
42
+ "@vaadin/component-base": "25.3.0-alpha11",
43
+ "@vaadin/field-base": "25.3.0-alpha11",
44
+ "@vaadin/input-container": "25.3.0-alpha11",
45
+ "@vaadin/item": "25.3.0-alpha11",
46
+ "@vaadin/lit-renderer": "25.3.0-alpha11",
47
+ "@vaadin/overlay": "25.3.0-alpha11",
48
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha11",
49
49
  "lit": "^3.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@vaadin/aura": "25.3.0-alpha1",
53
- "@vaadin/chai-plugins": "25.3.0-alpha1",
54
- "@vaadin/test-runner-commands": "25.3.0-alpha1",
52
+ "@vaadin/aura": "25.3.0-alpha11",
53
+ "@vaadin/chai-plugins": "25.3.0-alpha11",
54
+ "@vaadin/test-runner-commands": "25.3.0-alpha11",
55
55
  "@vaadin/testing-helpers": "^2.0.0",
56
- "@vaadin/vaadin-lumo-styles": "25.3.0-alpha1",
56
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha11",
57
57
  "sinon": "^22.0.0"
58
58
  },
59
59
  "customElements": "custom-elements.json",
@@ -61,5 +61,5 @@
61
61
  "web-types.json",
62
62
  "web-types.lit.json"
63
63
  ],
64
- "gitHead": "5824d54c995945aafd50d30edc2cb763a58a18b6"
64
+ "gitHead": "7e0c61a37e68d8971def9cdf28ad0548a0f530a9"
65
65
  }
@@ -24,6 +24,7 @@ import { multiSelectComboBoxChipStyles } from './styles/vaadin-multi-select-comb
24
24
  *
25
25
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
26
26
  *
27
+ * @attr {string} theme - The theme variants to apply to the component.
27
28
  * @customElement vaadin-multi-select-combo-box-chip
28
29
  * @extends HTMLElement
29
30
  * @private
@@ -34,10 +34,11 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
34
34
  *
35
35
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
36
36
  *
37
+ * @attr {string} theme - The theme variants to apply to the component.
37
38
  * @customElement vaadin-multi-select-combo-box-item
38
39
  * @private
39
40
  */
40
- export class MultiSelectComboBoxItem extends ComboBoxItemMixin(
41
+ class MultiSelectComboBoxItem extends ComboBoxItemMixin(
41
42
  ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement)))),
42
43
  ) {
43
44
  static get is() {
@@ -60,3 +61,5 @@ export class MultiSelectComboBoxItem extends ComboBoxItemMixin(
60
61
  }
61
62
 
62
63
  defineCustomElement(MultiSelectComboBoxItem);
64
+
65
+ export { MultiSelectComboBoxItem };
@@ -481,8 +481,10 @@ export const MultiSelectComboBoxMixin = (superClass) =>
481
481
  getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`) || '65vh';
482
482
  }
483
483
 
484
+ const isClosing = this.hasAttribute('closing');
485
+
484
486
  this._scroller.setProperties({
485
- items: opened ? items : [],
487
+ items: opened || isClosing ? items : [],
486
488
  opened,
487
489
  focusedIndex,
488
490
  theme,
@@ -572,7 +574,11 @@ export const MultiSelectComboBoxMixin = (superClass) =>
572
574
  * @protected
573
575
  */
574
576
  _setFocused(focused) {
575
- if (!focused) {
577
+ // Do not validate, commit or close on internal blur triggered
578
+ // on overlay touch action needed to hide the virtual keyboard.
579
+ const blurred = !focused && !this._closeOnBlurIsPrevented;
580
+
581
+ if (blurred) {
576
582
  this._ignoreCommitValue = true;
577
583
  }
578
584
 
@@ -580,12 +586,12 @@ export const MultiSelectComboBoxMixin = (superClass) =>
580
586
 
581
587
  // Do not validate when focusout is caused by document
582
588
  // losing focus, which happens on browser tab switch.
583
- if (!focused && document.hasFocus()) {
589
+ if (blurred && document.hasFocus()) {
584
590
  this._focusedChipIndex = -1;
585
591
  this._requestValidation();
586
592
  }
587
593
 
588
- if (!focused && this.readonly && !this._closeOnBlurIsPrevented) {
594
+ if (blurred && this.readonly) {
589
595
  this.close();
590
596
  }
591
597
  }
@@ -1107,7 +1113,7 @@ export const MultiSelectComboBoxMixin = (superClass) =>
1107
1113
 
1108
1114
  if (this.clearButtonVisible && !this.opened && this.selectedItems && this.selectedItems.length) {
1109
1115
  event.stopPropagation();
1110
- this.selectedItems = [];
1116
+ this._onClearAction();
1111
1117
  }
1112
1118
 
1113
1119
  super._onEscape(event);
@@ -1314,6 +1320,10 @@ export const MultiSelectComboBoxMixin = (superClass) =>
1314
1320
  _overlaySelectedItemChanged(event) {
1315
1321
  event.stopPropagation();
1316
1322
 
1323
+ if (this.hasAttribute('closing')) {
1324
+ return;
1325
+ }
1326
+
1317
1327
  // Do not un-select on click when readonly
1318
1328
  if (this.readonly) {
1319
1329
  return;
@@ -17,6 +17,7 @@ import { multiSelectComboBoxOverlayStyles } from './styles/vaadin-multi-select-c
17
17
  /**
18
18
  * An element used internally by `<vaadin-multi-select-combo-box>`. Not intended to be used separately.
19
19
  *
20
+ * @attr {string} theme - The theme variants to apply to the component.
20
21
  * @customElement vaadin-multi-select-combo-box-overlay
21
22
  * @extends HTMLElement
22
23
  * @private
@@ -17,7 +17,7 @@ import { multiSelectComboBoxScrollerStyles } from './styles/vaadin-multi-select-
17
17
  * @extends HTMLElement
18
18
  * @private
19
19
  */
20
- export class MultiSelectComboBoxScroller extends ComboBoxScrollerMixin(PolylitMixin(LitElement)) {
20
+ class MultiSelectComboBoxScroller extends ComboBoxScrollerMixin(PolylitMixin(LitElement)) {
21
21
  static get is() {
22
22
  return 'vaadin-multi-select-combo-box-scroller';
23
23
  }
@@ -72,3 +72,5 @@ export class MultiSelectComboBoxScroller extends ComboBoxScrollerMixin(PolylitMi
72
72
  }
73
73
 
74
74
  defineCustomElement(MultiSelectComboBoxScroller);
75
+
76
+ export { MultiSelectComboBoxScroller };
@@ -96,6 +96,7 @@ import { MultiSelectComboBoxMixin } from './vaadin-multi-select-combo-box-mixin.
96
96
  * @fires {CustomEvent} selected-items-changed - Fired when the `selectedItems` property changes.
97
97
  * @fires {CustomEvent} validated - Fired whenever the field is validated.
98
98
  *
99
+ * @attr {string} theme - The theme variants to apply to the component.
99
100
  * @customElement vaadin-multi-select-combo-box
100
101
  * @extends HTMLElement
101
102
  */
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": "25.3.0-alpha1",
4
+ "version": "25.3.0-alpha11",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -10,9 +10,18 @@
10
10
  "name": "vaadin-multi-select-combo-box",
11
11
  "description": "`<vaadin-multi-select-combo-box>` is a web component that wraps `<vaadin-combo-box>` and extends\nits functionality to allow selecting multiple items, in addition to basic features.\n\n```html\n<vaadin-multi-select-combo-box id=\"comboBox\"></vaadin-multi-select-combo-box>\n```\n```js\nconst comboBox = document.querySelector('#comboBox');\ncomboBox.items = ['apple', 'banana', 'lemon', 'orange'];\ncomboBox.selectedItems = ['lemon', 'orange'];\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------------|----------------\n`chips` | The element that wraps slotted chips for selected items\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and toggle buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n`loader` | The loading indicator shown while loading items\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------------|-----------------\n`disabled` | Set to a disabled element\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`loading` | Set when loading items from the data provider\n`opened` | Set when the dropdown is open\n`readonly` | Set to a readonly element\n\nThe following custom CSS properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------------------|----------------------------|--------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-multi-select-combo-box-overlay-width` | Width of the overlay | `auto`\n`--vaadin-multi-select-combo-box-overlay-max-height` | Max height of the overlay | `65vh`\n`--vaadin-multi-select-combo-box-input-min-width` | Min width of the input | `4em`\n\n### Internal components\n\nIn addition to `<vaadin-multi-select-combo-box>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-multi-select-combo-box-chip>`\n- `<vaadin-multi-select-combo-box-item>` - has the same API as `<vaadin-item>`.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
12
  "attributes": [
13
+ {
14
+ "name": "accessible-description-ref",
15
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
16
+ "value": {
17
+ "type": [
18
+ "string"
19
+ ]
20
+ }
21
+ },
13
22
  {
14
23
  "name": "accessible-name",
15
- "description": "String used to label the component to screen reader users.",
24
+ "description": "String used to label the component for screen reader users.",
16
25
  "value": {
17
26
  "type": [
18
27
  "string"
@@ -21,7 +30,7 @@
21
30
  },
22
31
  {
23
32
  "name": "accessible-name-ref",
24
- "description": "Id of the element used as label of the component to screen reader users.",
33
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
25
34
  "value": {
26
35
  "type": [
27
36
  "string"
@@ -93,7 +102,7 @@
93
102
  },
94
103
  {
95
104
  "name": "clear-button-visible",
96
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
105
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
97
106
  "value": {
98
107
  "type": [
99
108
  "boolean"
@@ -294,9 +303,7 @@
294
303
  "description": "The theme variants to apply to the component.",
295
304
  "value": {
296
305
  "type": [
297
- "string",
298
- "null",
299
- "undefined"
306
+ "string"
300
307
  ]
301
308
  }
302
309
  },
@@ -312,9 +319,18 @@
312
319
  ],
313
320
  "js": {
314
321
  "properties": [
322
+ {
323
+ "name": "accessibleDescriptionRef",
324
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
325
+ "value": {
326
+ "type": [
327
+ "string"
328
+ ]
329
+ }
330
+ },
315
331
  {
316
332
  "name": "accessibleName",
317
- "description": "String used to label the component to screen reader users.",
333
+ "description": "String used to label the component for screen reader users.",
318
334
  "value": {
319
335
  "type": [
320
336
  "string"
@@ -323,7 +339,7 @@
323
339
  },
324
340
  {
325
341
  "name": "accessibleNameRef",
326
- "description": "Id of the element used as label of the component to screen reader users.",
342
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
327
343
  "value": {
328
344
  "type": [
329
345
  "string"
@@ -395,7 +411,7 @@
395
411
  },
396
412
  {
397
413
  "name": "clearButtonVisible",
398
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
414
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
399
415
  "value": {
400
416
  "type": [
401
417
  "boolean"
@@ -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": "25.3.0-alpha1",
4
+ "version": "25.3.0-alpha11",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -19,16 +19,23 @@
19
19
  "description": "`<vaadin-multi-select-combo-box>` is a web component that wraps `<vaadin-combo-box>` and extends\nits functionality to allow selecting multiple items, in addition to basic features.\n\n```html\n<vaadin-multi-select-combo-box id=\"comboBox\"></vaadin-multi-select-combo-box>\n```\n```js\nconst comboBox = document.querySelector('#comboBox');\ncomboBox.items = ['apple', 'banana', 'lemon', 'orange'];\ncomboBox.selectedItems = ['lemon', 'orange'];\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------------|----------------\n`chips` | The element that wraps slotted chips for selected items\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and toggle buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n`loader` | The loading indicator shown while loading items\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------------|-----------------\n`disabled` | Set to a disabled element\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`loading` | Set when loading items from the data provider\n`opened` | Set when the dropdown is open\n`readonly` | Set to a readonly element\n\nThe following custom CSS properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------------------|----------------------------|--------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-multi-select-combo-box-overlay-width` | Width of the overlay | `auto`\n`--vaadin-multi-select-combo-box-overlay-max-height` | Max height of the overlay | `65vh`\n`--vaadin-multi-select-combo-box-input-min-width` | Min width of the input | `4em`\n\n### Internal components\n\nIn addition to `<vaadin-multi-select-combo-box>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-multi-select-combo-box-chip>`\n- `<vaadin-multi-select-combo-box-item>` - has the same API as `<vaadin-item>`.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
+ {
23
+ "name": ".accessibleDescriptionRef",
24
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
25
+ "value": {
26
+ "kind": "expression"
27
+ }
28
+ },
22
29
  {
23
30
  "name": ".accessibleName",
24
- "description": "String used to label the component to screen reader users.",
31
+ "description": "String used to label the component for screen reader users.",
25
32
  "value": {
26
33
  "kind": "expression"
27
34
  }
28
35
  },
29
36
  {
30
37
  "name": ".accessibleNameRef",
31
- "description": "Id of the element used as label of the component to screen reader users.",
38
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
32
39
  "value": {
33
40
  "kind": "expression"
34
41
  }
@@ -84,7 +91,7 @@
84
91
  },
85
92
  {
86
93
  "name": "?clearButtonVisible",
87
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
94
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
88
95
  "value": {
89
96
  "kind": "expression"
90
97
  }