@vaadin/vaadin-themable-mixin
Advanced tools
Comparing version 23.0.4 to 23.1.0-alpha1
{ | ||
"name": "@vaadin/vaadin-themable-mixin", | ||
"version": "23.0.4", | ||
"version": "23.1.0-alpha1", | ||
"publishConfig": { | ||
@@ -43,3 +43,3 @@ "access": "public" | ||
}, | ||
"gitHead": "d8db2046661c42fb5aac09ed683b500bf4613b26" | ||
"gitHead": "5d0cdee069f866037c507265fafb4d0476795333" | ||
} |
@@ -27,4 +27,27 @@ /** | ||
* page for more information. | ||
* | ||
* @deprecated The `theme` property is not supposed for public use and will be dropped in Vaadin 24. | ||
* Please, use the `theme` attribute instead. | ||
* @protected | ||
*/ | ||
readonly theme: string | null | undefined; | ||
theme: string | null | undefined; | ||
/** | ||
* Helper property with theme attribute value facilitating propagation | ||
* in shadow DOM. | ||
* | ||
* Enables the component implementation to propagate the `theme` | ||
* attribute value to the sub-components in Shadow DOM by binding | ||
* the sub-component’s "theme" attribute to the `theme` property of | ||
* the host. | ||
* | ||
* **NOTE:** Extending the mixin only provides the property for binding, | ||
* and does not make the propagation alone. | ||
* | ||
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/ds/customization/styling-components/#sub-components). | ||
* page for more information. | ||
* | ||
* @protected | ||
*/ | ||
readonly _theme: string | null | undefined; | ||
} |
@@ -28,2 +28,4 @@ /** | ||
* | ||
* @deprecated The `theme` property is not supposed for public use and will be dropped in Vaadin 24. | ||
* Please, use the `theme` attribute instead. | ||
* @protected | ||
@@ -33,2 +35,25 @@ */ | ||
type: String, | ||
reflectToAttribute: true, | ||
observer: '__deprecatedThemePropertyChanged' | ||
}, | ||
/** | ||
* Helper property with theme attribute value facilitating propagation | ||
* in shadow DOM. | ||
* | ||
* Enables the component implementation to propagate the `theme` | ||
* attribute value to the sub-components in Shadow DOM by binding | ||
* the sub-component’s "theme" attribute to the `theme` property of | ||
* the host. | ||
* | ||
* **NOTE:** Extending the mixin only provides the property for binding, | ||
* and does not make the propagation alone. | ||
* | ||
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/ds/customization/styling-components/#sub-components). | ||
* page for more information. | ||
* | ||
* @protected | ||
*/ | ||
_theme: { | ||
type: String, | ||
readOnly: true | ||
@@ -39,10 +64,6 @@ } | ||
/** @protected */ | ||
attributeChangedCallback(name, oldValue, newValue) { | ||
super.attributeChangedCallback(name, oldValue, newValue); | ||
if (name === 'theme') { | ||
this._setTheme(newValue); | ||
} | ||
/** @private */ | ||
__deprecatedThemePropertyChanged(theme) { | ||
this._set_theme(theme); | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25628
373
1