@vaadin/details 24.6.0-beta1 → 24.6.0

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/details",
3
- "version": "24.6.0-beta1",
3
+ "version": "24.6.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,16 +37,16 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/a11y-base": "24.6.0-beta1",
41
- "@vaadin/button": "24.6.0-beta1",
42
- "@vaadin/component-base": "24.6.0-beta1",
43
- "@vaadin/vaadin-lumo-styles": "24.6.0-beta1",
44
- "@vaadin/vaadin-material-styles": "24.6.0-beta1",
45
- "@vaadin/vaadin-themable-mixin": "24.6.0-beta1",
40
+ "@vaadin/a11y-base": "~24.6.0",
41
+ "@vaadin/button": "~24.6.0",
42
+ "@vaadin/component-base": "~24.6.0",
43
+ "@vaadin/vaadin-lumo-styles": "~24.6.0",
44
+ "@vaadin/vaadin-material-styles": "~24.6.0",
45
+ "@vaadin/vaadin-themable-mixin": "~24.6.0",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "24.6.0-beta1",
49
+ "@vaadin/chai-plugins": "~24.6.0",
50
50
  "@vaadin/testing-helpers": "^1.0.0",
51
51
  "sinon": "^18.0.0"
52
52
  },
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "ab28efb0dcf2cd1ef72100e2e8f32232fa49aacc"
57
+ "gitHead": "c0b38aa981494d04fac64da35aa3890ad72551ea"
58
58
  }
@@ -34,12 +34,8 @@ export const DetailsBaseMixin = (superClass) =>
34
34
  return ['__updateAriaControls(focusElement, _contentElements)', '__updateAriaExpanded(focusElement, opened)'];
35
35
  }
36
36
 
37
- static get delegateAttrs() {
38
- return ['theme'];
39
- }
40
-
41
37
  static get delegateProps() {
42
- return ['disabled', 'opened'];
38
+ return ['disabled', 'opened', '_theme'];
43
39
  }
44
40
 
45
41
  constructor() {
@@ -67,6 +63,25 @@ export const DetailsBaseMixin = (superClass) =>
67
63
  this.addController(this._tooltipController);
68
64
  }
69
65
 
66
+ /**
67
+ * Override method from `DelegateStateMixin` to set delegate `theme`
68
+ * using attribute instead of property (needed for the Lit version).
69
+ * @protected
70
+ * @override
71
+ */
72
+ _delegateProperty(name, value) {
73
+ if (!this.stateTarget) {
74
+ return;
75
+ }
76
+
77
+ if (name === '_theme') {
78
+ this._delegateAttribute('theme', value);
79
+ return;
80
+ }
81
+
82
+ super._delegateProperty(name, value);
83
+ }
84
+
70
85
  /**
71
86
  * Override method inherited from `DisabledMixin`
72
87
  * to not set `aria-disabled` on the host element.
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": "24.6.0-beta1",
4
+ "version": "24.6.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/details",
4
- "version": "24.6.0-beta1",
4
+ "version": "24.6.0",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {