@vaadin/multi-select-combo-box 24.5.0-alpha1 → 24.5.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
@@ -54,7 +54,7 @@ import '@vaadin/multi-select-combo-box/src/vaadin-multi-select-combo-box.js';
54
54
 
55
55
  ## Contributing
56
56
 
57
- Read the [contributing guide](https://vaadin.com/docs/latest/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
57
+ Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
58
58
 
59
59
  ## License
60
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/multi-select-combo-box",
3
- "version": "24.5.0-alpha1",
3
+ "version": "24.5.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,27 +38,27 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "24.5.0-alpha1",
42
- "@vaadin/combo-box": "24.5.0-alpha1",
43
- "@vaadin/component-base": "24.5.0-alpha1",
44
- "@vaadin/field-base": "24.5.0-alpha1",
45
- "@vaadin/input-container": "24.5.0-alpha1",
46
- "@vaadin/item": "24.5.0-alpha1",
47
- "@vaadin/lit-renderer": "24.5.0-alpha1",
48
- "@vaadin/overlay": "24.5.0-alpha1",
49
- "@vaadin/vaadin-lumo-styles": "24.5.0-alpha1",
50
- "@vaadin/vaadin-material-styles": "24.5.0-alpha1",
51
- "@vaadin/vaadin-themable-mixin": "24.5.0-alpha1"
41
+ "@vaadin/a11y-base": "24.5.0-alpha10",
42
+ "@vaadin/combo-box": "24.5.0-alpha10",
43
+ "@vaadin/component-base": "24.5.0-alpha10",
44
+ "@vaadin/field-base": "24.5.0-alpha10",
45
+ "@vaadin/input-container": "24.5.0-alpha10",
46
+ "@vaadin/item": "24.5.0-alpha10",
47
+ "@vaadin/lit-renderer": "24.5.0-alpha10",
48
+ "@vaadin/overlay": "24.5.0-alpha10",
49
+ "@vaadin/vaadin-lumo-styles": "24.5.0-alpha10",
50
+ "@vaadin/vaadin-material-styles": "24.5.0-alpha10",
51
+ "@vaadin/vaadin-themable-mixin": "24.5.0-alpha10"
52
52
  },
53
53
  "devDependencies": {
54
- "@esm-bundle/chai": "^4.3.4",
55
- "@vaadin/testing-helpers": "^0.6.0",
54
+ "@vaadin/chai-plugins": "24.5.0-alpha10",
55
+ "@vaadin/testing-helpers": "^1.0.0",
56
56
  "lit": "^3.0.0",
57
- "sinon": "^13.0.2"
57
+ "sinon": "^18.0.0"
58
58
  },
59
59
  "web-types": [
60
60
  "web-types.json",
61
61
  "web-types.lit.json"
62
62
  ],
63
- "gitHead": "57806caac5468532a3b4e3dbdda730cd0fca193a"
63
+ "gitHead": "6f9c37308031af872a98017bfab4de89aeacda51"
64
64
  }
@@ -399,6 +399,10 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
399
399
  }
400
400
 
401
401
  if (this.opened) {
402
+ // Store filter value for checking if user input is matching
403
+ // an item which is already selected, to not un-select it.
404
+ this.lastFilter = this.filter;
405
+
402
406
  this.dispatchEvent(
403
407
  new CustomEvent('combo-box-item-selected', {
404
408
  detail: {
@@ -460,7 +460,6 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
460
460
  */
461
461
  placeholder: {
462
462
  type: String,
463
- value: '',
464
463
  observer: '_placeholderChanged',
465
464
  },
466
465
 
@@ -810,9 +809,12 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
810
809
  // Use placeholder for announcing items
811
810
  if (this._hasValue) {
812
811
  const tmpPlaceholder = this._mergeItemLabels(selectedItems);
812
+ if (this.__tmpA11yPlaceholder === undefined) {
813
+ this.__savedPlaceholder = this.placeholder;
814
+ }
813
815
  this.__tmpA11yPlaceholder = tmpPlaceholder;
814
816
  this.placeholder = tmpPlaceholder;
815
- } else {
817
+ } else if (this.__tmpA11yPlaceholder !== undefined) {
816
818
  delete this.__tmpA11yPlaceholder;
817
819
  this.placeholder = this.__savedPlaceholder;
818
820
  }
@@ -23,6 +23,10 @@ const chip = css`
23
23
  -moz-osx-font-smoothing: grayscale;
24
24
  }
25
25
 
26
+ :host([disabled]) {
27
+ background-color: var(--lumo-contrast-10pct);
28
+ }
29
+
26
30
  :host([focused]) [part='remove-button'] {
27
31
  color: inherit;
28
32
  }
@@ -72,8 +72,8 @@ const multiSelectComboBox = css`
72
72
  }
73
73
 
74
74
  /* Override input-container styles */
75
- ::slotted([slot='chip']),
76
- ::slotted([slot='overflow']) {
75
+ [part='input-field'] ::slotted([slot='chip']),
76
+ [part='input-field'] ::slotted([slot='overflow']) {
77
77
  min-height: auto;
78
78
  padding: 0.3125em calc(0.5em + var(--lumo-border-radius-s) / 4);
79
79
  color: var(--lumo-body-text-color);
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.5.0-alpha1",
4
+ "version": "24.5.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -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.5.0-alpha1",
4
+ "version": "24.5.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {