@vaadin/list-box 24.8.5 → 24.9.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/package.json +10 -10
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/vaadin-lit-list-box.js +0 -77
- package/theme/lumo/vaadin-lit-list-box.d.ts +0 -2
- package/theme/lumo/vaadin-lit-list-box.js +0 -2
- package/theme/material/vaadin-lit-list-box.d.ts +0 -2
- package/theme/material/vaadin-lit-list-box.js +0 -2
- package/vaadin-lit-list-box.d.ts +0 -1
- package/vaadin-lit-list-box.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/list-box",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.9.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/a11y-base": "
|
|
41
|
-
"@vaadin/component-base": "
|
|
42
|
-
"@vaadin/item": "
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
44
|
-
"@vaadin/vaadin-material-styles": "
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
40
|
+
"@vaadin/a11y-base": "24.9.0-alpha1",
|
|
41
|
+
"@vaadin/component-base": "24.9.0-alpha1",
|
|
42
|
+
"@vaadin/item": "24.9.0-alpha1",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.9.0-alpha1",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.9.0-alpha1",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.9.0-alpha1",
|
|
46
46
|
"lit": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@vaadin/chai-plugins": "
|
|
50
|
-
"@vaadin/test-runner-commands": "
|
|
49
|
+
"@vaadin/chai-plugins": "24.9.0-alpha1",
|
|
50
|
+
"@vaadin/test-runner-commands": "24.9.0-alpha1",
|
|
51
51
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
52
52
|
"sinon": "^18.0.0"
|
|
53
53
|
},
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "cc13d59f0e3cd1a3b0c19c1a900a5308446fe7ac"
|
|
59
59
|
}
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import { html, LitElement } from 'lit';
|
|
7
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
8
|
-
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
9
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
|
-
import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
|
|
11
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { listBoxStyles } from './vaadin-list-box-core-styles.js';
|
|
13
|
-
import { MultiSelectListMixin } from './vaadin-multi-select-list-mixin.js';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* LitElement based version of `<vaadin-list-box>` web component.
|
|
17
|
-
*
|
|
18
|
-
* ## Disclaimer
|
|
19
|
-
*
|
|
20
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
21
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
22
|
-
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
23
|
-
*/
|
|
24
|
-
class ListBox extends ElementMixin(MultiSelectListMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
25
|
-
static get is() {
|
|
26
|
-
return 'vaadin-list-box';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static get styles() {
|
|
30
|
-
return listBoxStyles;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
static get properties() {
|
|
34
|
-
return {
|
|
35
|
-
// We don't need to define this property since super default is vertical,
|
|
36
|
-
// but we don't want it to be modified, or be shown in the API docs.
|
|
37
|
-
/** @private */
|
|
38
|
-
orientation: {
|
|
39
|
-
readOnly: true,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** @protected */
|
|
45
|
-
render() {
|
|
46
|
-
return html`
|
|
47
|
-
<div part="items">
|
|
48
|
-
<slot></slot>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<slot name="tooltip"></slot>
|
|
52
|
-
`;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @return {!HTMLElement}
|
|
57
|
-
* @protected
|
|
58
|
-
* @override
|
|
59
|
-
*/
|
|
60
|
-
get _scrollerElement() {
|
|
61
|
-
return this.shadowRoot.querySelector('[part="items"]');
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** @protected */
|
|
65
|
-
ready() {
|
|
66
|
-
super.ready();
|
|
67
|
-
|
|
68
|
-
this.setAttribute('role', 'listbox');
|
|
69
|
-
|
|
70
|
-
this._tooltipController = new TooltipController(this);
|
|
71
|
-
this.addController(this._tooltipController);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
defineCustomElement(ListBox);
|
|
76
|
-
|
|
77
|
-
export { ListBox };
|
package/vaadin-lit-list-box.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-list-box.js';
|
package/vaadin-lit-list-box.js
DELETED