@vaadin/list-box 25.0.0-alpha9 → 25.0.0-beta2
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 -13
- package/src/styles/vaadin-list-box-base-styles.js +3 -5
- package/src/vaadin-list-box.d.ts +6 -0
- package/src/vaadin-list-box.js +7 -1
- package/vaadin-list-box.js +1 -1
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
- package/src/styles/vaadin-list-box-core-styles.d.ts +0 -8
- package/src/styles/vaadin-list-box-core-styles.js +0 -22
- package/theme/lumo/vaadin-list-box-styles.d.ts +0 -5
- package/theme/lumo/vaadin-list-box-styles.js +0 -24
- package/theme/lumo/vaadin-list-box.d.ts +0 -2
- package/theme/lumo/vaadin-list-box.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/list-box",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"!src/styles/*-base-styles.d.ts",
|
|
25
|
-
"!src/styles/*-base-styles.js",
|
|
26
|
-
"theme",
|
|
27
24
|
"vaadin-*.d.ts",
|
|
28
25
|
"vaadin-*.js",
|
|
29
26
|
"web-types.json",
|
|
@@ -37,22 +34,22 @@
|
|
|
37
34
|
],
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
41
|
-
"@vaadin/component-base": "25.0.0-
|
|
42
|
-
"@vaadin/item": "25.0.0-
|
|
43
|
-
"@vaadin/vaadin-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
|
|
37
|
+
"@vaadin/a11y-base": "25.0.0-beta2",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-beta2",
|
|
39
|
+
"@vaadin/item": "25.0.0-beta2",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-beta2",
|
|
45
41
|
"lit": "^3.0.0"
|
|
46
42
|
},
|
|
47
43
|
"devDependencies": {
|
|
48
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
44
|
+
"@vaadin/chai-plugins": "25.0.0-beta2",
|
|
45
|
+
"@vaadin/test-runner-commands": "25.0.0-beta2",
|
|
50
46
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"
|
|
47
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-beta2",
|
|
48
|
+
"sinon": "^21.0.0"
|
|
52
49
|
},
|
|
53
50
|
"web-types": [
|
|
54
51
|
"web-types.json",
|
|
55
52
|
"web-types.lit.json"
|
|
56
53
|
],
|
|
57
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "e078f8371ae266f05c7ca1ec25686cc489c83f24"
|
|
58
55
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '@vaadin/component-base/src/style-props.js';
|
|
6
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
7
7
|
import { css } from 'lit';
|
|
8
8
|
|
|
9
9
|
export const listBoxStyles = css`
|
|
@@ -23,11 +23,9 @@ export const listBoxStyles = css`
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
[part='items'] ::slotted(hr) {
|
|
26
|
-
border-color: var(--vaadin-divider-color, var(--vaadin-border-color));
|
|
26
|
+
border-color: var(--vaadin-divider-color, var(--vaadin-border-color-secondary));
|
|
27
27
|
border-width: 0 0 1px;
|
|
28
28
|
margin: 4px 8px;
|
|
29
|
-
margin-inline-start: calc(
|
|
30
|
-
var(--vaadin-icon-size, 1lh) + var(--vaadin-item-gap, var(--vaadin-gap-container-inline)) + 8px
|
|
31
|
-
);
|
|
29
|
+
margin-inline-start: calc(var(--vaadin-icon-size, 1lh) + var(--vaadin-item-gap, var(--vaadin-gap-s)) + 8px);
|
|
32
30
|
}
|
|
33
31
|
`;
|
package/src/vaadin-list-box.d.ts
CHANGED
|
@@ -52,6 +52,12 @@ export interface ListBoxEventMap extends HTMLElementEventMap, ListBoxCustomEvent
|
|
|
52
52
|
* ------------------|------------------------
|
|
53
53
|
* `items` | The items container
|
|
54
54
|
*
|
|
55
|
+
* The following state attributes are available for styling:
|
|
56
|
+
*
|
|
57
|
+
* Attribute | Description
|
|
58
|
+
* ---------------|---------------------------------
|
|
59
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
60
|
+
*
|
|
55
61
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
56
62
|
*
|
|
57
63
|
* @fires {CustomEvent} items-changed - Fired when the `items` property changes.
|
package/src/vaadin-list-box.js
CHANGED
|
@@ -10,7 +10,7 @@ import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
|
10
10
|
import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
|
|
11
11
|
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
12
12
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
13
|
-
import { listBoxStyles } from './styles/vaadin-list-box-
|
|
13
|
+
import { listBoxStyles } from './styles/vaadin-list-box-base-styles.js';
|
|
14
14
|
import { MultiSelectListMixin } from './vaadin-multi-select-list-mixin.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -33,6 +33,12 @@ import { MultiSelectListMixin } from './vaadin-multi-select-list-mixin.js';
|
|
|
33
33
|
* ------------------|------------------------
|
|
34
34
|
* `items` | The items container
|
|
35
35
|
*
|
|
36
|
+
* The following state attributes are available for styling:
|
|
37
|
+
*
|
|
38
|
+
* Attribute | Description
|
|
39
|
+
* ---------------|---------------------------------
|
|
40
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
41
|
+
*
|
|
36
42
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
37
43
|
*
|
|
38
44
|
* @fires {CustomEvent} items-changed - Fired when the `items` property changes.
|
package/vaadin-list-box.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-list-box.js';
|
|
2
2
|
export * from './src/vaadin-list-box.js';
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/list-box",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-beta2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-list-box",
|
|
11
|
-
"description": "`<vaadin-list-box>` is a Web Component for creating menus.\n\n```html\n<vaadin-list-box selected=\"2\">\n <vaadin-item>Item 1</vaadin-item>\n <vaadin-item>Item 2</vaadin-item>\n <vaadin-item>Item 3</vaadin-item>\n <vaadin-item>Item 4</vaadin-item>\n</vaadin-list-box>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------------|------------------------\n`items` | The items container\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
11
|
+
"description": "`<vaadin-list-box>` is a Web Component for creating menus.\n\n```html\n<vaadin-list-box selected=\"2\">\n <vaadin-item>Item 1</vaadin-item>\n <vaadin-item>Item 2</vaadin-item>\n <vaadin-item>Item 3</vaadin-item>\n <vaadin-item>Item 4</vaadin-item>\n</vaadin-list-box>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------------|------------------------\n`items` | The items container\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|---------------------------------\n`has-tooltip` | Set when the element has a slotted tooltip\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "disabled",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/list-box",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-beta2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"elements": [
|
|
17
17
|
{
|
|
18
18
|
"name": "vaadin-list-box",
|
|
19
|
-
"description": "`<vaadin-list-box>` is a Web Component for creating menus.\n\n```html\n<vaadin-list-box selected=\"2\">\n <vaadin-item>Item 1</vaadin-item>\n <vaadin-item>Item 2</vaadin-item>\n <vaadin-item>Item 3</vaadin-item>\n <vaadin-item>Item 4</vaadin-item>\n</vaadin-list-box>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------------|------------------------\n`items` | The items container\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
19
|
+
"description": "`<vaadin-list-box>` is a Web Component for creating menus.\n\n```html\n<vaadin-list-box selected=\"2\">\n <vaadin-item>Item 1</vaadin-item>\n <vaadin-item>Item 2</vaadin-item>\n <vaadin-item>Item 3</vaadin-item>\n <vaadin-item>Item 4</vaadin-item>\n</vaadin-list-box>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------------|------------------------\n`items` | The items container\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|---------------------------------\n`has-tooltip` | Set when the element has a slotted tooltip\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|
|
@@ -1,22 +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 { css } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const listBoxStyles = css`
|
|
9
|
-
:host {
|
|
10
|
-
display: flex;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host([hidden]) {
|
|
14
|
-
display: none !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
[part='items'] {
|
|
18
|
-
height: 100%;
|
|
19
|
-
width: 100%;
|
|
20
|
-
overflow-y: auto;
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
2
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
3
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
4
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
5
|
-
|
|
6
|
-
const listBox = css`
|
|
7
|
-
:host {
|
|
8
|
-
-webkit-tap-highlight-color: transparent;
|
|
9
|
-
--_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* Dividers */
|
|
13
|
-
[part='items'] ::slotted(hr) {
|
|
14
|
-
height: 1px;
|
|
15
|
-
border: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
margin: var(--lumo-space-s) var(--lumo-border-radius-m);
|
|
18
|
-
background-color: var(--lumo-contrast-10pct);
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
registerStyles('vaadin-list-box', listBox, { moduleId: 'lumo-list-box' });
|
|
23
|
-
|
|
24
|
-
export { listBox };
|