@vaadin/multi-select-combo-box 24.0.0-alpha2 → 24.0.0-alpha4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/multi-select-combo-box",
3
- "version": "24.0.0-alpha2",
3
+ "version": "24.0.0-alpha4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,14 +37,14 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/combo-box": "24.0.0-alpha2",
41
- "@vaadin/component-base": "24.0.0-alpha2",
42
- "@vaadin/field-base": "24.0.0-alpha2",
43
- "@vaadin/input-container": "24.0.0-alpha2",
44
- "@vaadin/lit-renderer": "24.0.0-alpha2",
45
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha2",
46
- "@vaadin/vaadin-material-styles": "24.0.0-alpha2",
47
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha2"
40
+ "@vaadin/combo-box": "24.0.0-alpha4",
41
+ "@vaadin/component-base": "24.0.0-alpha4",
42
+ "@vaadin/field-base": "24.0.0-alpha4",
43
+ "@vaadin/input-container": "24.0.0-alpha4",
44
+ "@vaadin/lit-renderer": "24.0.0-alpha4",
45
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha4",
46
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha4",
47
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha4"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
@@ -56,5 +56,5 @@
56
56
  "web-types.json",
57
57
  "web-types.lit.json"
58
58
  ],
59
- "gitHead": "0c16c01a6807e629a84f5a982793afecc1a7ced0"
59
+ "gitHead": "66be46e82c4d0a673859fbc9bdb1581dd89f360c"
60
60
  }
@@ -509,15 +509,12 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
509
509
 
510
510
  this._inputField = this.shadowRoot.querySelector('[part="input-field"]');
511
511
 
512
- this._overflowController = new SlotController(
513
- this,
514
- 'overflow',
515
- () => document.createElement('vaadin-multi-select-combo-box-chip'),
516
- (_, chip) => {
512
+ this._overflowController = new SlotController(this, 'overflow', 'vaadin-multi-select-combo-box-chip', {
513
+ initializer: (chip) => {
517
514
  chip.addEventListener('mousedown', (e) => this._preventBlur(e));
518
515
  this._overflow = chip;
519
516
  },
520
- );
517
+ });
521
518
  this.addController(this._overflowController);
522
519
 
523
520
  this.__updateChips();
@@ -982,7 +979,7 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
982
979
  }
983
980
  let newIdx;
984
981
 
985
- if (this.getAttribute('dir') !== 'rtl') {
982
+ if (!this.__isRTL) {
986
983
  if (idx === -1) {
987
984
  // Focus last chip
988
985
  newIdx = chips.length - 1;
@@ -1015,7 +1012,7 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
1015
1012
  }
1016
1013
  let newIdx;
1017
1014
 
1018
- if (this.getAttribute('dir') === 'rtl') {
1015
+ if (this.__isRTL) {
1019
1016
  if (idx === -1) {
1020
1017
  // Focus last chip
1021
1018
  newIdx = chips.length - 1;
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.0-alpha2",
4
+ "version": "24.0.0-alpha4",
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.0.0-alpha2",
4
+ "version": "24.0.0-alpha4",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {