@vaadin/combo-box 22.0.21 → 22.1.0-alpha1

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
@@ -69,7 +69,7 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
69
69
 
70
70
  ## License
71
71
 
72
- Apache License 2.0
72
+ This program is available under Vaadin Commercial License and Service Terms. For license terms, see LICENSE.
73
73
 
74
74
  Vaadin collects usage statistics at development time to improve this product.
75
75
  For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vaadin/combo-box",
3
- "version": "22.0.21",
3
+ "version": "22.1.0-alpha1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "Web Component for displaying a list of items with filtering",
8
- "license": "Apache-2.0",
8
+ "license": "https://raw.githubusercontent.com/vaadin/web-components/22.1/LICENSE",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/vaadin/web-components.git",
@@ -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": "^22.0.21",
37
- "@vaadin/field-base": "^22.0.21",
38
- "@vaadin/input-container": "^22.0.21",
39
- "@vaadin/item": "^22.0.21",
40
- "@vaadin/vaadin-lumo-styles": "^22.0.21",
41
- "@vaadin/vaadin-material-styles": "^22.0.21",
42
- "@vaadin/vaadin-overlay": "^22.0.21",
43
- "@vaadin/vaadin-themable-mixin": "^22.0.21"
36
+ "@vaadin/component-base": "22.1.0-alpha1",
37
+ "@vaadin/field-base": "22.1.0-alpha1",
38
+ "@vaadin/input-container": "22.1.0-alpha1",
39
+ "@vaadin/item": "22.1.0-alpha1",
40
+ "@vaadin/vaadin-lumo-styles": "22.1.0-alpha1",
41
+ "@vaadin/vaadin-material-styles": "22.1.0-alpha1",
42
+ "@vaadin/vaadin-overlay": "22.1.0-alpha1",
43
+ "@vaadin/vaadin-themable-mixin": "22.1.0-alpha1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
47
- "@vaadin/dialog": "^22.0.21",
48
- "@vaadin/polymer-legacy-adapter": "^22.0.21",
47
+ "@vaadin/dialog": "22.1.0-alpha1",
48
+ "@vaadin/polymer-legacy-adapter": "22.1.0-alpha1",
49
49
  "@vaadin/testing-helpers": "^0.3.2",
50
- "@vaadin/text-field": "^22.0.21",
50
+ "@vaadin/text-field": "22.1.0-alpha1",
51
51
  "lit": "^2.0.0",
52
52
  "sinon": "^9.2.0"
53
53
  },
54
- "gitHead": "f0a522c6e48a10c4850abc7be8bb2fbe3fdcc8f3"
54
+ "gitHead": "e387194c2c3608b7567b43b788b504c3a12194d9"
55
55
  }
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { Constructor } from '@open-wc/dedupe-mixin';
7
12
 
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { ComboBoxPlaceholder } from './vaadin-combo-box-placeholder.js';
7
12
 
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import './vaadin-combo-box-item.js';
7
12
  import './vaadin-combo-box-overlay.js';
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
7
12
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { DisabledMixinClass } from '@vaadin/component-base/src/disabled-mixin.js';
7
12
  import { KeyboardMixinClass } from '@vaadin/component-base/src/keyboard-mixin.js';
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import './vaadin-combo-box-dropdown.js';
7
12
  import { dashToCamelCase } from '@polymer/polymer/lib/utils/case-map.js';
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { Constructor } from '@open-wc/dedupe-mixin';
7
12
  import { DisabledMixinClass } from '@vaadin/component-base/src/disabled-mixin.js';
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { isTouch } from '@vaadin/component-base/src/browser-utils.js';
7
12
  import { DisabledMixin } from '@vaadin/component-base/src/disabled-mixin.js';
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { OverlayElement } from '@vaadin/vaadin-overlay/src/vaadin-overlay.js';
7
12
  import { PositionMixin } from '@vaadin/vaadin-overlay/src/vaadin-overlay-position-mixin.js';
@@ -62,6 +67,7 @@ export class ComboBoxOverlay extends PositionMixin(OverlayElement) {
62
67
  loader.setAttribute('part', 'loader');
63
68
  const content = this.shadowRoot.querySelector('[part~="content"]');
64
69
  content.parentNode.insertBefore(loader, content);
70
+ this.requiredVerticalSpace = 200;
65
71
  }
66
72
 
67
73
  _outsideClickListener(event) {
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
 
7
12
  /*
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
7
12
  import { Virtualizer } from '@vaadin/component-base/src/virtualizer.js';
@@ -237,8 +242,6 @@ export class ComboBoxScroller extends PolymerElement {
237
242
  if (this.__virtualizer && items) {
238
243
  this.__virtualizer.size = items.length;
239
244
  this.__virtualizer.flush();
240
- // Ensure the total count of items is properly announced.
241
- this.setAttribute('aria-setsize', items.length);
242
245
  this.requestContentUpdate();
243
246
  }
244
247
  }
@@ -304,6 +307,7 @@ export class ComboBoxScroller extends PolymerElement {
304
307
  el.setAttribute('role', this.__getAriaRole(index));
305
308
  el.setAttribute('aria-selected', this.__getAriaSelected(focusedIndex, index));
306
309
  el.setAttribute('aria-posinset', index + 1);
310
+ el.setAttribute('aria-setsize', this.items.length);
307
311
 
308
312
  if (this.theme) {
309
313
  el.setAttribute('theme', this.theme);
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import { ControllerMixinClass } from '@vaadin/component-base/src/controller-mixin.js';
7
12
  import { DisabledMixinClass } from '@vaadin/component-base/src/disabled-mixin.js';
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
+ *
5
+ * This program is available under Vaadin Commercial License and Service Terms.
6
+ *
7
+ *
8
+ * See https://vaadin.com/commercial-license-and-service-terms for the full
9
+ * license.
5
10
  */
6
11
  import '@vaadin/input-container/src/vaadin-input-container.js';
7
12
  import './vaadin-combo-box-dropdown.js';