@vaadin/accordion 24.8.5 → 24.9.0-alpha2

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/accordion",
3
- "version": "24.8.5",
3
+ "version": "24.9.0-alpha2",
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": "~24.8.5",
41
- "@vaadin/component-base": "~24.8.5",
42
- "@vaadin/details": "~24.8.5",
43
- "@vaadin/vaadin-lumo-styles": "~24.8.5",
44
- "@vaadin/vaadin-material-styles": "~24.8.5",
45
- "@vaadin/vaadin-themable-mixin": "~24.8.5",
40
+ "@vaadin/a11y-base": "24.9.0-alpha2",
41
+ "@vaadin/component-base": "24.9.0-alpha2",
42
+ "@vaadin/details": "24.9.0-alpha2",
43
+ "@vaadin/vaadin-lumo-styles": "24.9.0-alpha2",
44
+ "@vaadin/vaadin-material-styles": "24.9.0-alpha2",
45
+ "@vaadin/vaadin-themable-mixin": "24.9.0-alpha2",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "~24.8.5",
50
- "@vaadin/test-runner-commands": "~24.8.5",
49
+ "@vaadin/chai-plugins": "24.9.0-alpha2",
50
+ "@vaadin/test-runner-commands": "24.9.0-alpha2",
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": "a519b0d2b1d09d1ddaa4ff6829819f8a2be30ad8"
58
+ "gitHead": "dd99dece1b54942ab0e421892b089e506822c5f5"
59
59
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/accordion",
4
- "version": "24.8.5",
4
+ "version": "24.9.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -185,7 +185,7 @@
185
185
  },
186
186
  {
187
187
  "name": "vaadin-accordion",
188
- "description": "`<vaadin-accordion>` is a Web Component implementing accordion widget:\na vertically stacked set of expandable panels. The component should be\nused as a wrapper for two or more `<vaadin-accordion-panel>` components.\n\nPanel headings function as controls that enable users to open (expand)\nor hide (collapse) their associated sections of content. The user can\ntoggle panels by mouse click, Enter and Space keys.\n\nOnly one panel can be opened at a time, opening a new one forces\nprevious panel to close and hide its content.\n\n```\n<vaadin-accordion>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 1</vaadin-accordion-heading>\n <div>This panel is opened, so the text is visible by default.</div>\n </vaadin-accordion-panel>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 2</vaadin-accordion-heading>\n <div>After opening this panel, the first one becomes closed.</div>\n </vaadin-accordion-panel>\n</vaadin-accordion>\n```\n\n### Styling\n\nSee the [`<vaadin-accordion-panel>`](https://cdn.vaadin.com/vaadin-web-components/24.8.5/#/elements/vaadin-accordion-panel)\ndocumentation for the available state attributes and stylable shadow parts.\n\n**Note:** You can apply the theme to `<vaadin-accordion>` component itself,\nespecially by using the following CSS selector:\n\n```\n:host ::slotted(vaadin-accordion-panel) {\n margin-bottom: 5px;\n}\n```\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
188
+ "description": "`<vaadin-accordion>` is a Web Component implementing accordion widget:\na vertically stacked set of expandable panels. The component should be\nused as a wrapper for two or more `<vaadin-accordion-panel>` components.\n\nPanel headings function as controls that enable users to open (expand)\nor hide (collapse) their associated sections of content. The user can\ntoggle panels by mouse click, Enter and Space keys.\n\nOnly one panel can be opened at a time, opening a new one forces\nprevious panel to close and hide its content.\n\n```\n<vaadin-accordion>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 1</vaadin-accordion-heading>\n <div>This panel is opened, so the text is visible by default.</div>\n </vaadin-accordion-panel>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 2</vaadin-accordion-heading>\n <div>After opening this panel, the first one becomes closed.</div>\n </vaadin-accordion-panel>\n</vaadin-accordion>\n```\n\n### Styling\n\nSee the [`<vaadin-accordion-panel>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-accordion-panel)\ndocumentation for the available state attributes and stylable shadow parts.\n\n**Note:** You can apply the theme to `<vaadin-accordion>` component itself,\nespecially by using the following CSS selector:\n\n```\n:host ::slotted(vaadin-accordion-panel) {\n margin-bottom: 5px;\n}\n```\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
189
189
  "attributes": [
190
190
  {
191
191
  "name": "opened",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/accordion",
4
- "version": "24.8.5",
4
+ "version": "24.9.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -79,7 +79,7 @@
79
79
  },
80
80
  {
81
81
  "name": "vaadin-accordion",
82
- "description": "`<vaadin-accordion>` is a Web Component implementing accordion widget:\na vertically stacked set of expandable panels. The component should be\nused as a wrapper for two or more `<vaadin-accordion-panel>` components.\n\nPanel headings function as controls that enable users to open (expand)\nor hide (collapse) their associated sections of content. The user can\ntoggle panels by mouse click, Enter and Space keys.\n\nOnly one panel can be opened at a time, opening a new one forces\nprevious panel to close and hide its content.\n\n```\n<vaadin-accordion>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 1</vaadin-accordion-heading>\n <div>This panel is opened, so the text is visible by default.</div>\n </vaadin-accordion-panel>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 2</vaadin-accordion-heading>\n <div>After opening this panel, the first one becomes closed.</div>\n </vaadin-accordion-panel>\n</vaadin-accordion>\n```\n\n### Styling\n\nSee the [`<vaadin-accordion-panel>`](https://cdn.vaadin.com/vaadin-web-components/24.8.5/#/elements/vaadin-accordion-panel)\ndocumentation for the available state attributes and stylable shadow parts.\n\n**Note:** You can apply the theme to `<vaadin-accordion>` component itself,\nespecially by using the following CSS selector:\n\n```\n:host ::slotted(vaadin-accordion-panel) {\n margin-bottom: 5px;\n}\n```\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
82
+ "description": "`<vaadin-accordion>` is a Web Component implementing accordion widget:\na vertically stacked set of expandable panels. The component should be\nused as a wrapper for two or more `<vaadin-accordion-panel>` components.\n\nPanel headings function as controls that enable users to open (expand)\nor hide (collapse) their associated sections of content. The user can\ntoggle panels by mouse click, Enter and Space keys.\n\nOnly one panel can be opened at a time, opening a new one forces\nprevious panel to close and hide its content.\n\n```\n<vaadin-accordion>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 1</vaadin-accordion-heading>\n <div>This panel is opened, so the text is visible by default.</div>\n </vaadin-accordion-panel>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 2</vaadin-accordion-heading>\n <div>After opening this panel, the first one becomes closed.</div>\n </vaadin-accordion-panel>\n</vaadin-accordion>\n```\n\n### Styling\n\nSee the [`<vaadin-accordion-panel>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-accordion-panel)\ndocumentation for the available state attributes and stylable shadow parts.\n\n**Note:** You can apply the theme to `<vaadin-accordion>` component itself,\nespecially by using the following CSS selector:\n\n```\n:host ::slotted(vaadin-accordion-panel) {\n margin-bottom: 5px;\n}\n```\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
83
83
  "extension": true,
84
84
  "attributes": [
85
85
  {
@@ -1,73 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2019 - 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 { ActiveMixin } from '@vaadin/a11y-base/src/active-mixin.js';
8
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
9
- import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
10
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
11
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
12
- import { accordionHeading } from './vaadin-accordion-heading-core-styles.js';
13
-
14
- /**
15
- * LitElement based version of `<vaadin-accordion-heading>` web component.
16
- *
17
- * ## Disclaimer
18
- *
19
- * This component is an experiment and not yet a part of Vaadin platform.
20
- * There is no ETA regarding specific Vaadin version where it'll land.
21
- * Feel free to try this code in your apps as per Apache 2.0 license.
22
- */
23
- class AccordionHeading extends ActiveMixin(DirMixin(ThemableMixin(PolylitMixin(LitElement)))) {
24
- static get is() {
25
- return 'vaadin-accordion-heading';
26
- }
27
-
28
- static get shadowRootOptions() {
29
- return { ...LitElement.shadowRootOptions, delegatesFocus: true };
30
- }
31
-
32
- static get styles() {
33
- return accordionHeading;
34
- }
35
-
36
- static get properties() {
37
- return {
38
- /**
39
- * When true, the element is opened.
40
- */
41
- opened: {
42
- type: Boolean,
43
- reflectToAttribute: true,
44
- value: false,
45
- },
46
- };
47
- }
48
-
49
- /** @protected */
50
- render() {
51
- return html`
52
- <button id="button" part="content" ?disabled="${this.disabled}" aria-expanded="${this.opened ? 'true' : 'false'}">
53
- <span part="toggle" aria-hidden="true"></span>
54
- <slot></slot>
55
- </button>
56
- `;
57
- }
58
-
59
- /** @protected */
60
- ready() {
61
- super.ready();
62
-
63
- // By default, if the user hasn't provided a custom role,
64
- // the role attribute is set to "heading".
65
- if (!this.hasAttribute('role')) {
66
- this.setAttribute('role', 'heading');
67
- }
68
- }
69
- }
70
-
71
- defineCustomElement(AccordionHeading);
72
-
73
- export { AccordionHeading };
@@ -1,48 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import './vaadin-lit-accordion-heading.js';
7
- import { html, LitElement } from 'lit';
8
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
9
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
- import { accordionPanel } from './vaadin-accordion-panel-core-styles.js';
12
- import { AccordionPanelMixin } from './vaadin-accordion-panel-mixin.js';
13
-
14
- /**
15
- * LitElement based version of `<vaadin-accordion-panel>` web component.
16
- *
17
- * ## Disclaimer
18
- *
19
- * This component is an experiment and not yet a part of Vaadin platform.
20
- * There is no ETA regarding specific Vaadin version where it'll land.
21
- * Feel free to try this code in your apps as per Apache 2.0 license.
22
- */
23
- class AccordionPanel extends AccordionPanelMixin(ThemableMixin(PolylitMixin(LitElement))) {
24
- static get is() {
25
- return 'vaadin-accordion-panel';
26
- }
27
-
28
- static get styles() {
29
- return accordionPanel;
30
- }
31
-
32
- /** @protected */
33
- render() {
34
- return html`
35
- <slot name="summary"></slot>
36
-
37
- <div part="content">
38
- <slot></slot>
39
- </div>
40
-
41
- <slot name="tooltip"></slot>
42
- `;
43
- }
44
- }
45
-
46
- defineCustomElement(AccordionPanel);
47
-
48
- export { AccordionPanel };
@@ -1,48 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import './vaadin-lit-accordion-panel.js';
7
- import { css, html, LitElement } from 'lit';
8
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
9
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
10
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
11
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
12
- import { AccordionMixin } from './vaadin-accordion-mixin.js';
13
-
14
- /**
15
- * LitElement based version of `<vaadin-accordion>` web component.
16
- *
17
- * ## Disclaimer
18
- *
19
- * This component is an experiment and not yet a part of Vaadin platform.
20
- * There is no ETA regarding specific Vaadin version where it'll land.
21
- * Feel free to try this code in your apps as per Apache 2.0 license.
22
- */
23
- class Accordion extends AccordionMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
24
- static get is() {
25
- return 'vaadin-accordion';
26
- }
27
-
28
- static get styles() {
29
- return css`
30
- :host {
31
- display: block;
32
- }
33
-
34
- :host([hidden]) {
35
- display: none !important;
36
- }
37
- `;
38
- }
39
-
40
- /** @protected */
41
- render() {
42
- return html`<slot></slot>`;
43
- }
44
- }
45
-
46
- defineCustomElement(Accordion);
47
-
48
- export { Accordion };
@@ -1,2 +0,0 @@
1
- import './vaadin-accordion-heading-styles.js';
2
- import '../../src/vaadin-lit-accordion-heading.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-accordion-heading-styles.js';
2
- import '../../src/vaadin-lit-accordion-heading.js';
@@ -1,3 +0,0 @@
1
- import './vaadin-lit-accordion-heading.js';
2
- import './vaadin-accordion-panel-styles.js';
3
- import '../../src/vaadin-lit-accordion-panel.js';
@@ -1,3 +0,0 @@
1
- import './vaadin-lit-accordion-heading.js';
2
- import './vaadin-accordion-panel-styles.js';
3
- import '../../src/vaadin-lit-accordion-panel.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-lit-accordion-panel.js';
2
- import '../../src/vaadin-lit-accordion.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-lit-accordion-panel.js';
2
- import '../../src/vaadin-lit-accordion.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-accordion-heading-styles.js';
2
- import '../../src/vaadin-lit-accordion-heading.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-accordion-heading-styles.js';
2
- import '../../src/vaadin-lit-accordion-heading.js';
@@ -1,3 +0,0 @@
1
- import './vaadin-lit-accordion-heading.js';
2
- import './vaadin-accordion-panel-styles.js';
3
- import '../../src/vaadin-lit-accordion-panel.js';
@@ -1,3 +0,0 @@
1
- import './vaadin-lit-accordion-heading.js';
2
- import './vaadin-accordion-panel-styles.js';
3
- import '../../src/vaadin-lit-accordion-panel.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-lit-accordion-panel.js';
2
- import '../../src/vaadin-lit-accordion.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-lit-accordion-panel.js';
2
- import '../../src/vaadin-lit-accordion.js';
@@ -1 +0,0 @@
1
- export * from './src/vaadin-accordion-heading.js';
@@ -1,2 +0,0 @@
1
- import './theme/lumo/vaadin-lit-accordion-heading.js';
2
- export * from './src/vaadin-lit-accordion-heading.js';
@@ -1 +0,0 @@
1
- export * from './src/vaadin-accordion-panel.js';
@@ -1,2 +0,0 @@
1
- import './theme/lumo/vaadin-lit-accordion-panel.js';
2
- export * from './src/vaadin-lit-accordion-panel.js';
@@ -1 +0,0 @@
1
- export * from './src/vaadin-accordion.js';
@@ -1,2 +0,0 @@
1
- import './theme/lumo/vaadin-lit-accordion.js';
2
- export * from './src/vaadin-lit-accordion.js';