@vaadin/multi-select-combo-box 25.3.0-alpha9 → 25.3.0-beta2
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/custom-elements.json
CHANGED
|
@@ -506,6 +506,20 @@
|
|
|
506
506
|
"package": "@vaadin/combo-box/src/vaadin-combo-box-data-provider-mixin.js"
|
|
507
507
|
}
|
|
508
508
|
},
|
|
509
|
+
{
|
|
510
|
+
"kind": "field",
|
|
511
|
+
"name": "partialMatchMode",
|
|
512
|
+
"privacy": "public",
|
|
513
|
+
"type": {
|
|
514
|
+
"text": "string"
|
|
515
|
+
},
|
|
516
|
+
"description": "Controls which item is automatically set to be selected, for\nexample on Enter, when the typed filter only partially matches\nits label. The item that will be selected is highlighted in the\ndropdown while typing:\n\n- `none` (default): an item is automatically set to be selected only when the filter matches its label exactly.\n- `first-match`: the first item in the filtered results is automatically set to be selected.\n- `only-match`: the item is automatically set to be selected when filtering narrows the results to a single item.\n\nIn general, an exact match is always set to be selected and takes\nprecedence over partial matches, regardless of the mode.\n\nA partial match is only applied while the dropdown is open. For\nexample, when auto-open is disabled with `autoOpenDisabled`, typing\ndoes not highlight a match or set it to be selected until the\ndropdown is opened.\n\nThis feature cannot be used together with custom values, because a\npartial match is also a valid custom value. A partial match is not\napplied when custom values are allowed with `allowCustomValue`.",
|
|
517
|
+
"attribute": "partial-match-mode",
|
|
518
|
+
"inheritedFrom": {
|
|
519
|
+
"name": "ComboBoxItemsMixin",
|
|
520
|
+
"package": "@vaadin/combo-box/src/vaadin-combo-box-items-mixin.js"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
509
523
|
{
|
|
510
524
|
"kind": "field",
|
|
511
525
|
"name": "placeholder",
|
|
@@ -989,6 +1003,18 @@
|
|
|
989
1003
|
"package": "@vaadin/combo-box/src/vaadin-combo-box-data-provider-mixin.js"
|
|
990
1004
|
}
|
|
991
1005
|
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "partial-match-mode",
|
|
1008
|
+
"type": {
|
|
1009
|
+
"text": "string"
|
|
1010
|
+
},
|
|
1011
|
+
"description": "Controls which item is automatically set to be selected, for\nexample on Enter, when the typed filter only partially matches\nits label. The item that will be selected is highlighted in the\ndropdown while typing:\n\n- `none` (default): an item is automatically set to be selected only when the filter matches its label exactly.\n- `first-match`: the first item in the filtered results is automatically set to be selected.\n- `only-match`: the item is automatically set to be selected when filtering narrows the results to a single item.\n\nIn general, an exact match is always set to be selected and takes\nprecedence over partial matches, regardless of the mode.\n\nA partial match is only applied while the dropdown is open. For\nexample, when auto-open is disabled with `autoOpenDisabled`, typing\ndoes not highlight a match or set it to be selected until the\ndropdown is opened.\n\nThis feature cannot be used together with custom values, because a\npartial match is also a valid custom value. A partial match is not\napplied when custom values are allowed with `allowCustomValue`.",
|
|
1012
|
+
"fieldName": "partialMatchMode",
|
|
1013
|
+
"inheritedFrom": {
|
|
1014
|
+
"name": "ComboBoxItemsMixin",
|
|
1015
|
+
"package": "@vaadin/combo-box/src/vaadin-combo-box-items-mixin.js"
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
992
1018
|
{
|
|
993
1019
|
"name": "placeholder",
|
|
994
1020
|
"type": {
|
|
@@ -1136,7 +1162,7 @@
|
|
|
1136
1162
|
"declarations": [
|
|
1137
1163
|
{
|
|
1138
1164
|
"kind": "class",
|
|
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
|
|
1165
|
+
"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 CSS property |\n:-------------------------------------------------------|\n| `--vaadin-chip-background` |\n| `--vaadin-chip-border-color` |\n| `--vaadin-chip-border-radius` |\n| `--vaadin-chip-border-width` |\n| `--vaadin-chip-font-size` |\n| `--vaadin-chip-font-weight` |\n| `--vaadin-chip-gap` |\n| `--vaadin-chip-height` |\n| `--vaadin-chip-padding` |\n| `--vaadin-chip-remove-button-text-color` |\n| `--vaadin-chip-text-color` |\n| `--vaadin-field-default-width` |\n| `--vaadin-input-field-background` |\n| `--vaadin-input-field-border-color` |\n| `--vaadin-input-field-border-radius` |\n| `--vaadin-input-field-border-width` |\n| `--vaadin-input-field-bottom-end-radius` |\n| `--vaadin-input-field-bottom-start-radius` |\n| `--vaadin-input-field-button-text-color` |\n| `--vaadin-input-field-container-gap` |\n| `--vaadin-input-field-disabled-background` |\n| `--vaadin-input-field-disabled-text-color` |\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-gap` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-padding` |\n| `--vaadin-input-field-placeholder-color` |\n| `--vaadin-input-field-required-indicator` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-top-end-radius` |\n| `--vaadin-input-field-top-start-radius` |\n| `--vaadin-input-field-value-color` |\n| `--vaadin-input-field-value-font-size` |\n| `--vaadin-input-field-value-font-weight` |\n| `--vaadin-input-field-value-line-height` |\n| `--vaadin-item-overlay-padding` |\n| `--vaadin-multi-select-combo-box-chip-min-width` |\n| `--vaadin-multi-select-combo-box-chips-gap` |\n| `--vaadin-multi-select-combo-box-input-min-width` |\n| `--vaadin-multi-select-combo-box-overlay-max-height` |\n| `--vaadin-multi-select-combo-box-overlay-width` |\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.",
|
|
1140
1166
|
"name": "MultiSelectComboBox",
|
|
1141
1167
|
"members": [
|
|
1142
1168
|
{
|
|
@@ -1651,6 +1677,20 @@
|
|
|
1651
1677
|
"package": "@vaadin/combo-box/src/vaadin-combo-box-data-provider-mixin.js"
|
|
1652
1678
|
}
|
|
1653
1679
|
},
|
|
1680
|
+
{
|
|
1681
|
+
"kind": "field",
|
|
1682
|
+
"name": "partialMatchMode",
|
|
1683
|
+
"privacy": "public",
|
|
1684
|
+
"type": {
|
|
1685
|
+
"text": "string"
|
|
1686
|
+
},
|
|
1687
|
+
"description": "Controls which item is automatically set to be selected, for\nexample on Enter, when the typed filter only partially matches\nits label. The item that will be selected is highlighted in the\ndropdown while typing:\n\n- `none` (default): an item is automatically set to be selected only when the filter matches its label exactly.\n- `first-match`: the first item in the filtered results is automatically set to be selected.\n- `only-match`: the item is automatically set to be selected when filtering narrows the results to a single item.\n\nIn general, an exact match is always set to be selected and takes\nprecedence over partial matches, regardless of the mode.\n\nA partial match is only applied while the dropdown is open. For\nexample, when auto-open is disabled with `autoOpenDisabled`, typing\ndoes not highlight a match or set it to be selected until the\ndropdown is opened.\n\nThis feature cannot be used together with custom values, because a\npartial match is also a valid custom value. A partial match is not\napplied when custom values are allowed with `allowCustomValue`.",
|
|
1688
|
+
"attribute": "partial-match-mode",
|
|
1689
|
+
"inheritedFrom": {
|
|
1690
|
+
"name": "ComboBoxItemsMixin",
|
|
1691
|
+
"package": "@vaadin/combo-box/src/vaadin-combo-box-items-mixin.js"
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1654
1694
|
{
|
|
1655
1695
|
"kind": "field",
|
|
1656
1696
|
"name": "placeholder",
|
|
@@ -2195,6 +2235,18 @@
|
|
|
2195
2235
|
"package": "@vaadin/combo-box/src/vaadin-combo-box-data-provider-mixin.js"
|
|
2196
2236
|
}
|
|
2197
2237
|
},
|
|
2238
|
+
{
|
|
2239
|
+
"name": "partial-match-mode",
|
|
2240
|
+
"type": {
|
|
2241
|
+
"text": "string"
|
|
2242
|
+
},
|
|
2243
|
+
"description": "Controls which item is automatically set to be selected, for\nexample on Enter, when the typed filter only partially matches\nits label. The item that will be selected is highlighted in the\ndropdown while typing:\n\n- `none` (default): an item is automatically set to be selected only when the filter matches its label exactly.\n- `first-match`: the first item in the filtered results is automatically set to be selected.\n- `only-match`: the item is automatically set to be selected when filtering narrows the results to a single item.\n\nIn general, an exact match is always set to be selected and takes\nprecedence over partial matches, regardless of the mode.\n\nA partial match is only applied while the dropdown is open. For\nexample, when auto-open is disabled with `autoOpenDisabled`, typing\ndoes not highlight a match or set it to be selected until the\ndropdown is opened.\n\nThis feature cannot be used together with custom values, because a\npartial match is also a valid custom value. A partial match is not\napplied when custom values are allowed with `allowCustomValue`.",
|
|
2244
|
+
"fieldName": "partialMatchMode",
|
|
2245
|
+
"inheritedFrom": {
|
|
2246
|
+
"name": "ComboBoxItemsMixin",
|
|
2247
|
+
"package": "@vaadin/combo-box/src/vaadin-combo-box-items-mixin.js"
|
|
2248
|
+
}
|
|
2249
|
+
},
|
|
2198
2250
|
{
|
|
2199
2251
|
"name": "placeholder",
|
|
2200
2252
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/multi-select-combo-box",
|
|
3
|
-
"version": "25.3.0-
|
|
3
|
+
"version": "25.3.0-beta2",
|
|
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-
|
|
41
|
-
"@vaadin/combo-box": "25.3.0-
|
|
42
|
-
"@vaadin/component-base": "25.3.0-
|
|
43
|
-
"@vaadin/field-base": "25.3.0-
|
|
44
|
-
"@vaadin/input-container": "25.3.0-
|
|
45
|
-
"@vaadin/item": "25.3.0-
|
|
46
|
-
"@vaadin/lit-renderer": "25.3.0-
|
|
47
|
-
"@vaadin/overlay": "25.3.0-
|
|
48
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0-
|
|
40
|
+
"@vaadin/a11y-base": "25.3.0-beta2",
|
|
41
|
+
"@vaadin/combo-box": "25.3.0-beta2",
|
|
42
|
+
"@vaadin/component-base": "25.3.0-beta2",
|
|
43
|
+
"@vaadin/field-base": "25.3.0-beta2",
|
|
44
|
+
"@vaadin/input-container": "25.3.0-beta2",
|
|
45
|
+
"@vaadin/item": "25.3.0-beta2",
|
|
46
|
+
"@vaadin/lit-renderer": "25.3.0-beta2",
|
|
47
|
+
"@vaadin/overlay": "25.3.0-beta2",
|
|
48
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-beta2",
|
|
49
49
|
"lit": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@vaadin/aura": "25.3.0-
|
|
53
|
-
"@vaadin/chai-plugins": "25.3.0-
|
|
54
|
-
"@vaadin/test-runner-commands": "25.3.0-
|
|
52
|
+
"@vaadin/aura": "25.3.0-beta2",
|
|
53
|
+
"@vaadin/chai-plugins": "25.3.0-beta2",
|
|
54
|
+
"@vaadin/test-runner-commands": "25.3.0-beta2",
|
|
55
55
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
56
|
-
"@vaadin/vaadin-lumo-styles": "25.3.0-
|
|
56
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-beta2",
|
|
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": "
|
|
64
|
+
"gitHead": "d97ccbec217b60c39f3c8b2dd52473c79a48c8c1"
|
|
65
65
|
}
|
|
@@ -537,6 +537,16 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
537
537
|
__commitUserInput() {
|
|
538
538
|
if (this._focusedIndex > -1) {
|
|
539
539
|
const focusedItem = this._dropdownItems[this._focusedIndex];
|
|
540
|
+
// Do not unselect an already selected item when it was focused by
|
|
541
|
+
// filtering, in which case the input value still equals the filter.
|
|
542
|
+
if (
|
|
543
|
+
this._lastFilter &&
|
|
544
|
+
this._lastFilter === this._inputElementValue &&
|
|
545
|
+
this._findIndex(focusedItem, this.selectedItems, this.itemIdPath) !== -1
|
|
546
|
+
) {
|
|
547
|
+
this.__clearInternalValue();
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
540
550
|
this.__selectItem(focusedItem);
|
|
541
551
|
} else if (this._inputElementValue) {
|
|
542
552
|
// Detect if input value doesn't match an existing item
|
|
@@ -754,7 +764,7 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
754
764
|
} else {
|
|
755
765
|
// When the user filled in something that is different from the current value = filtering is enabled,
|
|
756
766
|
// set the focused index to the item that matches the filter query.
|
|
757
|
-
this._focusedIndex = this.
|
|
767
|
+
this._focusedIndex = this.__getItemIndexByFilter(newItems);
|
|
758
768
|
}
|
|
759
769
|
}
|
|
760
770
|
|
|
@@ -133,12 +133,59 @@ export interface MultiSelectComboBoxEventMap<TItem> extends HTMLElementEventMap
|
|
|
133
133
|
*
|
|
134
134
|
* The following custom CSS properties are available for styling:
|
|
135
135
|
*
|
|
136
|
-
* Custom property
|
|
137
|
-
*
|
|
138
|
-
* `--vaadin-
|
|
139
|
-
* `--vaadin-
|
|
140
|
-
* `--vaadin-
|
|
141
|
-
* `--vaadin-
|
|
136
|
+
* Custom CSS property |
|
|
137
|
+
* :-------------------------------------------------------|
|
|
138
|
+
* | `--vaadin-chip-background` |
|
|
139
|
+
* | `--vaadin-chip-border-color` |
|
|
140
|
+
* | `--vaadin-chip-border-radius` |
|
|
141
|
+
* | `--vaadin-chip-border-width` |
|
|
142
|
+
* | `--vaadin-chip-font-size` |
|
|
143
|
+
* | `--vaadin-chip-font-weight` |
|
|
144
|
+
* | `--vaadin-chip-gap` |
|
|
145
|
+
* | `--vaadin-chip-height` |
|
|
146
|
+
* | `--vaadin-chip-padding` |
|
|
147
|
+
* | `--vaadin-chip-remove-button-text-color` |
|
|
148
|
+
* | `--vaadin-chip-text-color` |
|
|
149
|
+
* | `--vaadin-field-default-width` |
|
|
150
|
+
* | `--vaadin-input-field-background` |
|
|
151
|
+
* | `--vaadin-input-field-border-color` |
|
|
152
|
+
* | `--vaadin-input-field-border-radius` |
|
|
153
|
+
* | `--vaadin-input-field-border-width` |
|
|
154
|
+
* | `--vaadin-input-field-bottom-end-radius` |
|
|
155
|
+
* | `--vaadin-input-field-bottom-start-radius` |
|
|
156
|
+
* | `--vaadin-input-field-button-text-color` |
|
|
157
|
+
* | `--vaadin-input-field-container-gap` |
|
|
158
|
+
* | `--vaadin-input-field-disabled-background` |
|
|
159
|
+
* | `--vaadin-input-field-disabled-text-color` |
|
|
160
|
+
* | `--vaadin-input-field-error-color` |
|
|
161
|
+
* | `--vaadin-input-field-error-font-size` |
|
|
162
|
+
* | `--vaadin-input-field-error-font-weight` |
|
|
163
|
+
* | `--vaadin-input-field-error-line-height` |
|
|
164
|
+
* | `--vaadin-input-field-gap` |
|
|
165
|
+
* | `--vaadin-input-field-helper-color` |
|
|
166
|
+
* | `--vaadin-input-field-helper-font-size` |
|
|
167
|
+
* | `--vaadin-input-field-helper-font-weight` |
|
|
168
|
+
* | `--vaadin-input-field-helper-line-height` |
|
|
169
|
+
* | `--vaadin-input-field-label-color` |
|
|
170
|
+
* | `--vaadin-input-field-label-font-size` |
|
|
171
|
+
* | `--vaadin-input-field-label-font-weight` |
|
|
172
|
+
* | `--vaadin-input-field-label-line-height` |
|
|
173
|
+
* | `--vaadin-input-field-padding` |
|
|
174
|
+
* | `--vaadin-input-field-placeholder-color` |
|
|
175
|
+
* | `--vaadin-input-field-required-indicator` |
|
|
176
|
+
* | `--vaadin-input-field-required-indicator-color` |
|
|
177
|
+
* | `--vaadin-input-field-top-end-radius` |
|
|
178
|
+
* | `--vaadin-input-field-top-start-radius` |
|
|
179
|
+
* | `--vaadin-input-field-value-color` |
|
|
180
|
+
* | `--vaadin-input-field-value-font-size` |
|
|
181
|
+
* | `--vaadin-input-field-value-font-weight` |
|
|
182
|
+
* | `--vaadin-input-field-value-line-height` |
|
|
183
|
+
* | `--vaadin-item-overlay-padding` |
|
|
184
|
+
* | `--vaadin-multi-select-combo-box-chip-min-width` |
|
|
185
|
+
* | `--vaadin-multi-select-combo-box-chips-gap` |
|
|
186
|
+
* | `--vaadin-multi-select-combo-box-input-min-width` |
|
|
187
|
+
* | `--vaadin-multi-select-combo-box-overlay-max-height` |
|
|
188
|
+
* | `--vaadin-multi-select-combo-box-overlay-width` |
|
|
142
189
|
*
|
|
143
190
|
* ### Internal components
|
|
144
191
|
*
|
|
@@ -71,12 +71,59 @@ import { MultiSelectComboBoxMixin } from './vaadin-multi-select-combo-box-mixin.
|
|
|
71
71
|
*
|
|
72
72
|
* The following custom CSS properties are available for styling:
|
|
73
73
|
*
|
|
74
|
-
* Custom property
|
|
75
|
-
*
|
|
76
|
-
* `--vaadin-
|
|
77
|
-
* `--vaadin-
|
|
78
|
-
* `--vaadin-
|
|
79
|
-
* `--vaadin-
|
|
74
|
+
* Custom CSS property |
|
|
75
|
+
* :-------------------------------------------------------|
|
|
76
|
+
* | `--vaadin-chip-background` |
|
|
77
|
+
* | `--vaadin-chip-border-color` |
|
|
78
|
+
* | `--vaadin-chip-border-radius` |
|
|
79
|
+
* | `--vaadin-chip-border-width` |
|
|
80
|
+
* | `--vaadin-chip-font-size` |
|
|
81
|
+
* | `--vaadin-chip-font-weight` |
|
|
82
|
+
* | `--vaadin-chip-gap` |
|
|
83
|
+
* | `--vaadin-chip-height` |
|
|
84
|
+
* | `--vaadin-chip-padding` |
|
|
85
|
+
* | `--vaadin-chip-remove-button-text-color` |
|
|
86
|
+
* | `--vaadin-chip-text-color` |
|
|
87
|
+
* | `--vaadin-field-default-width` |
|
|
88
|
+
* | `--vaadin-input-field-background` |
|
|
89
|
+
* | `--vaadin-input-field-border-color` |
|
|
90
|
+
* | `--vaadin-input-field-border-radius` |
|
|
91
|
+
* | `--vaadin-input-field-border-width` |
|
|
92
|
+
* | `--vaadin-input-field-bottom-end-radius` |
|
|
93
|
+
* | `--vaadin-input-field-bottom-start-radius` |
|
|
94
|
+
* | `--vaadin-input-field-button-text-color` |
|
|
95
|
+
* | `--vaadin-input-field-container-gap` |
|
|
96
|
+
* | `--vaadin-input-field-disabled-background` |
|
|
97
|
+
* | `--vaadin-input-field-disabled-text-color` |
|
|
98
|
+
* | `--vaadin-input-field-error-color` |
|
|
99
|
+
* | `--vaadin-input-field-error-font-size` |
|
|
100
|
+
* | `--vaadin-input-field-error-font-weight` |
|
|
101
|
+
* | `--vaadin-input-field-error-line-height` |
|
|
102
|
+
* | `--vaadin-input-field-gap` |
|
|
103
|
+
* | `--vaadin-input-field-helper-color` |
|
|
104
|
+
* | `--vaadin-input-field-helper-font-size` |
|
|
105
|
+
* | `--vaadin-input-field-helper-font-weight` |
|
|
106
|
+
* | `--vaadin-input-field-helper-line-height` |
|
|
107
|
+
* | `--vaadin-input-field-label-color` |
|
|
108
|
+
* | `--vaadin-input-field-label-font-size` |
|
|
109
|
+
* | `--vaadin-input-field-label-font-weight` |
|
|
110
|
+
* | `--vaadin-input-field-label-line-height` |
|
|
111
|
+
* | `--vaadin-input-field-padding` |
|
|
112
|
+
* | `--vaadin-input-field-placeholder-color` |
|
|
113
|
+
* | `--vaadin-input-field-required-indicator` |
|
|
114
|
+
* | `--vaadin-input-field-required-indicator-color` |
|
|
115
|
+
* | `--vaadin-input-field-top-end-radius` |
|
|
116
|
+
* | `--vaadin-input-field-top-start-radius` |
|
|
117
|
+
* | `--vaadin-input-field-value-color` |
|
|
118
|
+
* | `--vaadin-input-field-value-font-size` |
|
|
119
|
+
* | `--vaadin-input-field-value-font-weight` |
|
|
120
|
+
* | `--vaadin-input-field-value-line-height` |
|
|
121
|
+
* | `--vaadin-item-overlay-padding` |
|
|
122
|
+
* | `--vaadin-multi-select-combo-box-chip-min-width` |
|
|
123
|
+
* | `--vaadin-multi-select-combo-box-chips-gap` |
|
|
124
|
+
* | `--vaadin-multi-select-combo-box-input-min-width` |
|
|
125
|
+
* | `--vaadin-multi-select-combo-box-overlay-max-height` |
|
|
126
|
+
* | `--vaadin-multi-select-combo-box-overlay-width` |
|
|
80
127
|
*
|
|
81
128
|
* ### Internal components
|
|
82
129
|
*
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/multi-select-combo-box",
|
|
4
|
-
"version": "25.3.0-
|
|
4
|
+
"version": "25.3.0-beta2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-multi-select-combo-box",
|
|
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
|
|
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 CSS property |\n:-------------------------------------------------------|\n| `--vaadin-chip-background` |\n| `--vaadin-chip-border-color` |\n| `--vaadin-chip-border-radius` |\n| `--vaadin-chip-border-width` |\n| `--vaadin-chip-font-size` |\n| `--vaadin-chip-font-weight` |\n| `--vaadin-chip-gap` |\n| `--vaadin-chip-height` |\n| `--vaadin-chip-padding` |\n| `--vaadin-chip-remove-button-text-color` |\n| `--vaadin-chip-text-color` |\n| `--vaadin-field-default-width` |\n| `--vaadin-input-field-background` |\n| `--vaadin-input-field-border-color` |\n| `--vaadin-input-field-border-radius` |\n| `--vaadin-input-field-border-width` |\n| `--vaadin-input-field-bottom-end-radius` |\n| `--vaadin-input-field-bottom-start-radius` |\n| `--vaadin-input-field-button-text-color` |\n| `--vaadin-input-field-container-gap` |\n| `--vaadin-input-field-disabled-background` |\n| `--vaadin-input-field-disabled-text-color` |\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-gap` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-padding` |\n| `--vaadin-input-field-placeholder-color` |\n| `--vaadin-input-field-required-indicator` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-top-end-radius` |\n| `--vaadin-input-field-top-start-radius` |\n| `--vaadin-input-field-value-color` |\n| `--vaadin-input-field-value-font-size` |\n| `--vaadin-input-field-value-font-weight` |\n| `--vaadin-input-field-value-line-height` |\n| `--vaadin-item-overlay-padding` |\n| `--vaadin-multi-select-combo-box-chip-min-width` |\n| `--vaadin-multi-select-combo-box-chips-gap` |\n| `--vaadin-multi-select-combo-box-input-min-width` |\n| `--vaadin-multi-select-combo-box-overlay-max-height` |\n| `--vaadin-multi-select-combo-box-overlay-width` |\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
13
|
{
|
|
14
14
|
"name": "accessible-description-ref",
|
|
@@ -253,6 +253,15 @@
|
|
|
253
253
|
]
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
|
+
{
|
|
257
|
+
"name": "partial-match-mode",
|
|
258
|
+
"description": "Controls which item is automatically set to be selected, for\nexample on Enter, when the typed filter only partially matches\nits label. The item that will be selected is highlighted in the\ndropdown while typing:\n\n- `none` (default): an item is automatically set to be selected only when the filter matches its label exactly.\n- `first-match`: the first item in the filtered results is automatically set to be selected.\n- `only-match`: the item is automatically set to be selected when filtering narrows the results to a single item.\n\nIn general, an exact match is always set to be selected and takes\nprecedence over partial matches, regardless of the mode.\n\nA partial match is only applied while the dropdown is open. For\nexample, when auto-open is disabled with `autoOpenDisabled`, typing\ndoes not highlight a match or set it to be selected until the\ndropdown is opened.\n\nThis feature cannot be used together with custom values, because a\npartial match is also a valid custom value. A partial match is not\napplied when custom values are allowed with `allowCustomValue`.",
|
|
259
|
+
"value": {
|
|
260
|
+
"type": [
|
|
261
|
+
"string"
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
},
|
|
256
265
|
{
|
|
257
266
|
"name": "placeholder",
|
|
258
267
|
"description": "A hint to the user of what can be entered in the control.\nThe placeholder will be only displayed in the case when\nthere is no item selected.",
|
|
@@ -621,6 +630,15 @@
|
|
|
621
630
|
]
|
|
622
631
|
}
|
|
623
632
|
},
|
|
633
|
+
{
|
|
634
|
+
"name": "partialMatchMode",
|
|
635
|
+
"description": "Controls which item is automatically set to be selected, for\nexample on Enter, when the typed filter only partially matches\nits label. The item that will be selected is highlighted in the\ndropdown while typing:\n\n- `none` (default): an item is automatically set to be selected only when the filter matches its label exactly.\n- `first-match`: the first item in the filtered results is automatically set to be selected.\n- `only-match`: the item is automatically set to be selected when filtering narrows the results to a single item.\n\nIn general, an exact match is always set to be selected and takes\nprecedence over partial matches, regardless of the mode.\n\nA partial match is only applied while the dropdown is open. For\nexample, when auto-open is disabled with `autoOpenDisabled`, typing\ndoes not highlight a match or set it to be selected until the\ndropdown is opened.\n\nThis feature cannot be used together with custom values, because a\npartial match is also a valid custom value. A partial match is not\napplied when custom values are allowed with `allowCustomValue`.",
|
|
636
|
+
"value": {
|
|
637
|
+
"type": [
|
|
638
|
+
"string"
|
|
639
|
+
]
|
|
640
|
+
}
|
|
641
|
+
},
|
|
624
642
|
{
|
|
625
643
|
"name": "placeholder",
|
|
626
644
|
"description": "A hint to the user of what can be entered in the control.\nThe placeholder will be only displayed in the case when\nthere is no item selected.",
|
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": "25.3.0-
|
|
4
|
+
"version": "25.3.0-beta2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"elements": [
|
|
17
17
|
{
|
|
18
18
|
"name": "vaadin-multi-select-combo-box",
|
|
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
|
|
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 CSS property |\n:-------------------------------------------------------|\n| `--vaadin-chip-background` |\n| `--vaadin-chip-border-color` |\n| `--vaadin-chip-border-radius` |\n| `--vaadin-chip-border-width` |\n| `--vaadin-chip-font-size` |\n| `--vaadin-chip-font-weight` |\n| `--vaadin-chip-gap` |\n| `--vaadin-chip-height` |\n| `--vaadin-chip-padding` |\n| `--vaadin-chip-remove-button-text-color` |\n| `--vaadin-chip-text-color` |\n| `--vaadin-field-default-width` |\n| `--vaadin-input-field-background` |\n| `--vaadin-input-field-border-color` |\n| `--vaadin-input-field-border-radius` |\n| `--vaadin-input-field-border-width` |\n| `--vaadin-input-field-bottom-end-radius` |\n| `--vaadin-input-field-bottom-start-radius` |\n| `--vaadin-input-field-button-text-color` |\n| `--vaadin-input-field-container-gap` |\n| `--vaadin-input-field-disabled-background` |\n| `--vaadin-input-field-disabled-text-color` |\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-gap` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-padding` |\n| `--vaadin-input-field-placeholder-color` |\n| `--vaadin-input-field-required-indicator` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-top-end-radius` |\n| `--vaadin-input-field-top-start-radius` |\n| `--vaadin-input-field-value-color` |\n| `--vaadin-input-field-value-font-size` |\n| `--vaadin-input-field-value-font-weight` |\n| `--vaadin-input-field-value-line-height` |\n| `--vaadin-item-overlay-padding` |\n| `--vaadin-multi-select-combo-box-chip-min-width` |\n| `--vaadin-multi-select-combo-box-chips-gap` |\n| `--vaadin-multi-select-combo-box-input-min-width` |\n| `--vaadin-multi-select-combo-box-overlay-max-height` |\n| `--vaadin-multi-select-combo-box-overlay-width` |\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
22
|
{
|
|
@@ -250,6 +250,13 @@
|
|
|
250
250
|
"kind": "expression"
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"name": ".partialMatchMode",
|
|
255
|
+
"description": "Controls which item is automatically set to be selected, for\nexample on Enter, when the typed filter only partially matches\nits label. The item that will be selected is highlighted in the\ndropdown while typing:\n\n- `none` (default): an item is automatically set to be selected only when the filter matches its label exactly.\n- `first-match`: the first item in the filtered results is automatically set to be selected.\n- `only-match`: the item is automatically set to be selected when filtering narrows the results to a single item.\n\nIn general, an exact match is always set to be selected and takes\nprecedence over partial matches, regardless of the mode.\n\nA partial match is only applied while the dropdown is open. For\nexample, when auto-open is disabled with `autoOpenDisabled`, typing\ndoes not highlight a match or set it to be selected until the\ndropdown is opened.\n\nThis feature cannot be used together with custom values, because a\npartial match is also a valid custom value. A partial match is not\napplied when custom values are allowed with `allowCustomValue`.",
|
|
256
|
+
"value": {
|
|
257
|
+
"kind": "expression"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
253
260
|
{
|
|
254
261
|
"name": ".placeholder",
|
|
255
262
|
"description": "A hint to the user of what can be entered in the control.\nThe placeholder will be only displayed in the case when\nthere is no item selected.",
|