@vaadin/details 25.2.7 → 25.3.0-alpha10

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.
@@ -274,6 +274,13 @@
274
274
  },
275
275
  "description": "When true, the element is opened.",
276
276
  "fieldName": "opened"
277
+ },
278
+ {
279
+ "type": {
280
+ "text": "string"
281
+ },
282
+ "description": "The theme variants to apply to the component.",
283
+ "name": "theme"
277
284
  }
278
285
  ],
279
286
  "mixins": [
@@ -393,34 +400,6 @@
393
400
  "name": "opened-changed"
394
401
  }
395
402
  ],
396
- "mixins": [
397
- {
398
- "name": "DetailsBaseMixin",
399
- "module": "src/vaadin-details-base-mixin.js"
400
- },
401
- {
402
- "name": "ElementMixin",
403
- "package": "@vaadin/component-base/src/element-mixin.js"
404
- },
405
- {
406
- "name": "ThemableMixin",
407
- "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
408
- },
409
- {
410
- "name": "PolylitMixin",
411
- "package": "@vaadin/component-base/src/polylit-mixin.js"
412
- },
413
- {
414
- "name": "LumoInjectionMixin",
415
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
416
- }
417
- ],
418
- "superclass": {
419
- "name": "LitElement",
420
- "package": "lit"
421
- },
422
- "tagName": "vaadin-details",
423
- "customElement": true,
424
403
  "attributes": [
425
404
  {
426
405
  "name": "autofocus",
@@ -469,8 +448,43 @@
469
448
  "name": "DetailsBaseMixin",
470
449
  "module": "src/vaadin-details-base-mixin.js"
471
450
  }
451
+ },
452
+ {
453
+ "type": {
454
+ "text": "string"
455
+ },
456
+ "description": "The theme variants to apply to the component.",
457
+ "name": "theme"
472
458
  }
473
- ]
459
+ ],
460
+ "mixins": [
461
+ {
462
+ "name": "DetailsBaseMixin",
463
+ "module": "src/vaadin-details-base-mixin.js"
464
+ },
465
+ {
466
+ "name": "ElementMixin",
467
+ "package": "@vaadin/component-base/src/element-mixin.js"
468
+ },
469
+ {
470
+ "name": "ThemableMixin",
471
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
472
+ },
473
+ {
474
+ "name": "PolylitMixin",
475
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
476
+ },
477
+ {
478
+ "name": "LumoInjectionMixin",
479
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
480
+ }
481
+ ],
482
+ "superclass": {
483
+ "name": "LitElement",
484
+ "package": "lit"
485
+ },
486
+ "tagName": "vaadin-details",
487
+ "customElement": true
474
488
  }
475
489
  ],
476
490
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/details",
3
- "version": "25.2.7",
3
+ "version": "25.3.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,18 +35,18 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "~25.2.7",
39
- "@vaadin/button": "~25.2.7",
40
- "@vaadin/component-base": "~25.2.7",
41
- "@vaadin/vaadin-themable-mixin": "~25.2.7",
38
+ "@vaadin/a11y-base": "25.3.0-alpha10",
39
+ "@vaadin/button": "25.3.0-alpha10",
40
+ "@vaadin/component-base": "25.3.0-alpha10",
41
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha10",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "~25.2.7",
46
- "@vaadin/chai-plugins": "~25.2.7",
47
- "@vaadin/test-runner-commands": "~25.2.7",
45
+ "@vaadin/aura": "25.3.0-alpha10",
46
+ "@vaadin/chai-plugins": "25.3.0-alpha10",
47
+ "@vaadin/test-runner-commands": "25.3.0-alpha10",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "~25.2.7",
49
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha10",
50
50
  "sinon": "^22.0.0"
51
51
  },
52
52
  "customElements": "custom-elements.json",
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "14be1af674f3968cce68c6eb4742340694c4a949"
57
+ "gitHead": "f2833abdf9b613fa0d0ed216830e3f4de87b7dac"
58
58
  }
@@ -24,7 +24,7 @@ export class SummaryController extends SlotChildObserveController {
24
24
  super.initSingle();
25
25
 
26
26
  if (this.node && this.node === this.defaultNode) {
27
- this.__notifyChange(this.node);
27
+ this._notifyChange(this.node);
28
28
  }
29
29
  }
30
30
 
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { DelegateFocusMixin } from '@vaadin/a11y-base/src/delegate-focus-mixin.js';
7
7
  import { DelegateStateMixin } from '@vaadin/component-base/src/delegate-state-mixin.js';
8
+ import { setOrRemoveAttribute } from '@vaadin/component-base/src/dom-utils.js';
8
9
  import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
9
10
  import { CollapsibleMixin } from './collapsible-mixin.js';
10
11
  import { SummaryController } from './summary-controller.js';
@@ -97,11 +98,7 @@ export const DetailsBaseMixin = (superClass) =>
97
98
  if (summary && contentElements) {
98
99
  const node = contentElements[0];
99
100
 
100
- if (node?.id) {
101
- summary.setAttribute('aria-controls', node.id);
102
- } else {
103
- summary.removeAttribute('aria-controls');
104
- }
101
+ setOrRemoveAttribute(summary, 'aria-controls', node?.id);
105
102
  }
106
103
  }
107
104
 
@@ -51,6 +51,7 @@ import { detailsSummary } from './styles/vaadin-details-summary-base-styles.js';
51
51
  *
52
52
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
53
53
  *
54
+ * @attr {string} theme - The theme variants to apply to the component.
54
55
  * @customElement vaadin-details-summary
55
56
  * @extends HTMLElement
56
57
  */
@@ -47,6 +47,7 @@ import { DetailsBaseMixin } from './vaadin-details-base-mixin.js';
47
47
  *
48
48
  * @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.
49
49
  *
50
+ * @attr {string} theme - The theme variants to apply to the component.
50
51
  * @customElement vaadin-details
51
52
  * @extends HTMLElement
52
53
  */
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/details",
4
- "version": "25.2.7",
4
+ "version": "25.3.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -33,9 +33,7 @@
33
33
  "description": "The theme variants to apply to the component.",
34
34
  "value": {
35
35
  "type": [
36
- "string",
37
- "null",
38
- "undefined"
36
+ "string"
39
37
  ]
40
38
  }
41
39
  }
@@ -109,9 +107,7 @@
109
107
  "description": "The theme variants to apply to the component.",
110
108
  "value": {
111
109
  "type": [
112
- "string",
113
- "null",
114
- "undefined"
110
+ "string"
115
111
  ]
116
112
  }
117
113
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/details",
4
- "version": "25.2.7",
4
+ "version": "25.3.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {