@vaadin/details 24.8.0-alpha2 → 24.8.0-alpha20
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 +12 -10
- package/src/vaadin-details-summary-core-styles.d.ts +8 -0
- package/src/vaadin-details-summary-core-styles.js +24 -0
- package/src/vaadin-details-summary.js +4 -18
- package/src/vaadin-lit-details-summary.js +3 -18
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/vaadin-lit-details-summary.d.ts +0 -6
- package/src/vaadin-lit-details.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/details",
|
|
3
|
-
"version": "24.8.0-
|
|
3
|
+
"version": "24.8.0-alpha20",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
+
"!src/vaadin-details-summary-base-styles.d.ts",
|
|
25
|
+
"!src/vaadin-details-summary-base-styles.js",
|
|
24
26
|
"theme",
|
|
25
27
|
"vaadin-*.d.ts",
|
|
26
28
|
"vaadin-*.js",
|
|
@@ -37,17 +39,17 @@
|
|
|
37
39
|
"dependencies": {
|
|
38
40
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
41
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/a11y-base": "24.8.0-
|
|
41
|
-
"@vaadin/button": "24.8.0-
|
|
42
|
-
"@vaadin/component-base": "24.8.0-
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "24.8.0-
|
|
44
|
-
"@vaadin/vaadin-material-styles": "24.8.0-
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "24.8.0-
|
|
42
|
+
"@vaadin/a11y-base": "24.8.0-alpha20",
|
|
43
|
+
"@vaadin/button": "24.8.0-alpha20",
|
|
44
|
+
"@vaadin/component-base": "24.8.0-alpha20",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "24.8.0-alpha20",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "24.8.0-alpha20",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "24.8.0-alpha20",
|
|
46
48
|
"lit": "^3.0.0"
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
49
|
-
"@vaadin/chai-plugins": "24.8.0-
|
|
50
|
-
"@vaadin/test-runner-commands": "24.8.0-
|
|
51
|
+
"@vaadin/chai-plugins": "24.8.0-alpha20",
|
|
52
|
+
"@vaadin/test-runner-commands": "24.8.0-alpha20",
|
|
51
53
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
52
54
|
"sinon": "^18.0.0"
|
|
53
55
|
},
|
|
@@ -55,5 +57,5 @@
|
|
|
55
57
|
"web-types.json",
|
|
56
58
|
"web-types.lit.json"
|
|
57
59
|
],
|
|
58
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "f091548b1f079f0c9de4be2a8ded77fb18671a2e"
|
|
59
61
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2025 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import type { CSSResult } from 'lit';
|
|
7
|
+
|
|
8
|
+
export const detailsSummary: (partName?: string) => CSSResult;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2025 - 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 detailsSummary = () => css`
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
outline: none;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
-webkit-user-select: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([hidden]) {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([disabled]) {
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -7,7 +7,10 @@ import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
|
7
7
|
import { ButtonMixin } from '@vaadin/button/src/vaadin-button-mixin.js';
|
|
8
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
9
9
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
10
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
10
|
+
import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
|
+
import { detailsSummary } from './vaadin-details-summary-core-styles.js';
|
|
12
|
+
|
|
13
|
+
registerStyles('vaadin-details-summary', detailsSummary(), { moduleId: 'vaadin-details-summary-styles' });
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* The details summary element.
|
|
@@ -46,23 +49,6 @@ class DetailsSummary extends ButtonMixin(DirMixin(ThemableMixin(PolymerElement))
|
|
|
46
49
|
|
|
47
50
|
static get template() {
|
|
48
51
|
return html`
|
|
49
|
-
<style>
|
|
50
|
-
:host {
|
|
51
|
-
display: block;
|
|
52
|
-
outline: none;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
-webkit-user-select: none;
|
|
55
|
-
user-select: none;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([hidden]) {
|
|
59
|
-
display: none !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
:host([disabled]) {
|
|
63
|
-
pointer-events: none;
|
|
64
|
-
}
|
|
65
|
-
</style>
|
|
66
52
|
<span part="toggle" aria-hidden="true"></span>
|
|
67
53
|
<div part="content"><slot></slot></div>
|
|
68
54
|
`;
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
* Copyright (c) 2019 - 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 {
|
|
6
|
+
import { html, LitElement } from 'lit';
|
|
7
7
|
import { ButtonMixin } from '@vaadin/button/src/vaadin-button-mixin.js';
|
|
8
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
9
9
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
10
10
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
+
import { detailsSummary } from './vaadin-details-summary-core-styles.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* LitElement based version of `<vaadin-details-summary>` web component.
|
|
@@ -25,23 +26,7 @@ class DetailsSummary extends ButtonMixin(DirMixin(ThemableMixin(PolylitMixin(Lit
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
static get styles() {
|
|
28
|
-
return
|
|
29
|
-
:host {
|
|
30
|
-
display: block;
|
|
31
|
-
outline: none;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
-webkit-user-select: none;
|
|
34
|
-
user-select: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host([hidden]) {
|
|
38
|
-
display: none !important;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([disabled]) {
|
|
42
|
-
pointer-events: none;
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
29
|
+
return detailsSummary();
|
|
45
30
|
}
|
|
46
31
|
|
|
47
32
|
static get properties() {
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED