@vaadin/combo-box 23.0.0-alpha2 → 23.0.0-alpha3
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 +13 -13
- package/src/vaadin-combo-box-data-provider-mixin.d.ts +1 -1
- package/src/vaadin-combo-box-data-provider-mixin.js +1 -1
- package/src/vaadin-combo-box-dropdown.js +1 -1
- package/src/vaadin-combo-box-item.js +1 -1
- package/src/vaadin-combo-box-light.d.ts +1 -1
- package/src/vaadin-combo-box-light.js +1 -1
- package/src/vaadin-combo-box-mixin.d.ts +1 -1
- package/src/vaadin-combo-box-mixin.js +7 -2
- package/src/vaadin-combo-box-overlay.js +1 -1
- package/src/vaadin-combo-box-placeholder.js +1 -1
- package/src/vaadin-combo-box-scroller.js +2 -2
- package/src/vaadin-combo-box.d.ts +1 -1
- package/src/vaadin-combo-box.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/combo-box",
|
|
3
|
-
"version": "23.0.0-
|
|
3
|
+
"version": "23.0.0-alpha3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/component-base": "23.0.0-
|
|
37
|
-
"@vaadin/field-base": "23.0.0-
|
|
38
|
-
"@vaadin/input-container": "23.0.0-
|
|
39
|
-
"@vaadin/item": "23.0.0-
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "23.0.0-
|
|
41
|
-
"@vaadin/vaadin-material-styles": "23.0.0-
|
|
42
|
-
"@vaadin/vaadin-overlay": "23.0.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "23.0.0-
|
|
36
|
+
"@vaadin/component-base": "23.0.0-alpha3",
|
|
37
|
+
"@vaadin/field-base": "23.0.0-alpha3",
|
|
38
|
+
"@vaadin/input-container": "23.0.0-alpha3",
|
|
39
|
+
"@vaadin/item": "23.0.0-alpha3",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha3",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "23.0.0-alpha3",
|
|
42
|
+
"@vaadin/vaadin-overlay": "23.0.0-alpha3",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
|
-
"@vaadin/dialog": "23.0.0-
|
|
48
|
-
"@vaadin/polymer-legacy-adapter": "23.0.0-
|
|
47
|
+
"@vaadin/dialog": "23.0.0-alpha3",
|
|
48
|
+
"@vaadin/polymer-legacy-adapter": "23.0.0-alpha3",
|
|
49
49
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
50
|
-
"@vaadin/text-field": "23.0.0-
|
|
50
|
+
"@vaadin/text-field": "23.0.0-alpha3",
|
|
51
51
|
"lit": "^2.0.0",
|
|
52
52
|
"sinon": "^9.2.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "490037919a9e054cc002c1b3be0c94a1603e1a44"
|
|
55
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2015 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { ComboBoxPlaceholder } from './vaadin-combo-box-placeholder.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2015 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2015 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { DisabledMixinClass } from '@vaadin/component-base/src/disabled-mixin.js';
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2015 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { isTouch } from '@vaadin/component-base/src/browser-utils.js';
|
|
7
|
+
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
7
8
|
import { DisabledMixin } from '@vaadin/component-base/src/disabled-mixin.js';
|
|
8
9
|
import { KeyboardMixin } from '@vaadin/component-base/src/keyboard-mixin.js';
|
|
9
10
|
import { processTemplates } from '@vaadin/component-base/src/templates.js';
|
|
10
11
|
import { InputMixin } from '@vaadin/field-base/src/input-mixin.js';
|
|
12
|
+
import { VirtualKeyboardController } from '@vaadin/field-base/src/virtual-keyboard-controller.js';
|
|
11
13
|
import { ComboBoxPlaceholder } from './vaadin-combo-box-placeholder.js';
|
|
12
14
|
|
|
13
15
|
/**
|
|
14
16
|
* @polymerMixin
|
|
17
|
+
* @param {function(new:HTMLElement)} subclass
|
|
15
18
|
*/
|
|
16
19
|
export const ComboBoxMixin = (subclass) =>
|
|
17
|
-
class VaadinComboBoxMixinElement extends KeyboardMixin(InputMixin(DisabledMixin(subclass))) {
|
|
20
|
+
class VaadinComboBoxMixinElement extends ControllerMixin(KeyboardMixin(InputMixin(DisabledMixin(subclass)))) {
|
|
18
21
|
static get properties() {
|
|
19
22
|
return {
|
|
20
23
|
/**
|
|
@@ -295,6 +298,8 @@ export const ComboBoxMixin = (subclass) =>
|
|
|
295
298
|
this.addEventListener('touchstart', bringToFrontListener);
|
|
296
299
|
|
|
297
300
|
processTemplates(this);
|
|
301
|
+
|
|
302
|
+
this.addController(new VirtualKeyboardController(this));
|
|
298
303
|
}
|
|
299
304
|
|
|
300
305
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2015 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { OverlayElement } from '@vaadin/vaadin-overlay/src/vaadin-overlay.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2015 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
@@ -287,7 +287,7 @@ export class ComboBoxScroller extends PolymerElement {
|
|
|
287
287
|
el.id = `${this.__hostTagName}-item-${index}`;
|
|
288
288
|
el.setAttribute('role', this.__getAriaRole(index));
|
|
289
289
|
el.setAttribute('aria-selected', this.__getAriaSelected(focusedIndex, index));
|
|
290
|
-
el.setAttribute('aria-posinset', index);
|
|
290
|
+
el.setAttribute('aria-posinset', index + 1);
|
|
291
291
|
|
|
292
292
|
if (this.theme) {
|
|
293
293
|
el.setAttribute('theme', this.theme);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2015 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { ControllerMixinClass } from '@vaadin/component-base/src/controller-mixin.js';
|
package/src/vaadin-combo-box.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2015 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/input-container/src/vaadin-input-container.js';
|
|
@@ -244,7 +244,7 @@ class ComboBox extends ComboBoxDataProviderMixin(
|
|
|
244
244
|
this.ariaTarget = input;
|
|
245
245
|
})
|
|
246
246
|
);
|
|
247
|
-
this.addController(new LabelledInputController(this.inputElement, this.
|
|
247
|
+
this.addController(new LabelledInputController(this.inputElement, this._labelController));
|
|
248
248
|
this._positionTarget = this.shadowRoot.querySelector('[part="input-field"]');
|
|
249
249
|
this._toggleElement = this.$.toggleButton;
|
|
250
250
|
}
|