New:Socket for Asana Is Now Available.Learn more
Get Started

@vaadin/component-base

Package Overview
Dependencies
Maintainers
12
Versions
643
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/component-base - npm Package Compare versions

Comparing version
25.3.0-alpha10
to
25.3.0-alpha11
+2
-1
custom-elements.json

@@ -53,3 +53,4 @@ {

}
]
],
"deprecated": "This mixin is deprecated and will be removed in Vaadin 26,\nafter which components will no longer set the `dir` attribute on themselves.\nUse the `:dir(rtl)` CSS selector to style components in right-to-left mode,\nand `element.matches(':dir(rtl)')` to detect it in JavaScript."
}

@@ -56,0 +57,0 @@ ],

{
"name": "@vaadin/component-base",
"version": "25.3.0-alpha10",
"version": "25.3.0-alpha11",
"publishConfig": {

@@ -41,4 +41,5 @@ "access": "public"

"devDependencies": {
"@vaadin/chai-plugins": "25.3.0-alpha10",
"@vaadin/test-runner-commands": "25.3.0-alpha10",
"@polymer/polymer": "^3.0.0",
"@vaadin/chai-plugins": "25.3.0-alpha11",
"@vaadin/test-runner-commands": "25.3.0-alpha11",
"@vaadin/testing-helpers": "^2.0.0",

@@ -48,3 +49,3 @@ "sinon": "^22.0.0"

"customElements": "custom-elements.json",
"gitHead": "f2833abdf9b613fa0d0ed216830e3f4de87b7dac"
"gitHead": "7e0c61a37e68d8971def9cdf28ad0548a0f530a9"
}

@@ -16,3 +16,3 @@ /**

export function defineCustomElement(CustomElement, version = '25.3.0-alpha10') {
export function defineCustomElement(CustomElement, version = '25.3.0-alpha11') {
Object.defineProperty(CustomElement, 'version', {

@@ -19,0 +19,0 @@ get() {

@@ -10,7 +10,21 @@ /**

* A mixin to handle `dir` attribute based on the one set on the `<html>` element.
*
* @deprecated This mixin is deprecated and will be removed in Vaadin 26,
* after which components will no longer set the `dir` attribute on themselves.
* Use the `:dir(rtl)` CSS selector to style components in right-to-left mode,
* and `element.matches(':dir(rtl)')` to detect it in JavaScript.
*/
export declare function DirMixin<T extends Constructor<HTMLElement>>(base: T): Constructor<DirMixinClass> & T;
/**
* @deprecated This mixin is deprecated and will be removed in Vaadin 26,
* after which components will no longer set the `dir` attribute on themselves.
* Use the `:dir(rtl)` CSS selector to style components in right-to-left mode,
* and `element.matches(':dir(rtl)')` to detect it in JavaScript.
*/
export declare class DirMixinClass {
/**
* @deprecated Use `this.matches(':dir(rtl)')` instead.
*/
protected readonly __isRTL: boolean;
}

@@ -36,2 +36,7 @@ /**

* A mixin to handle `dir` attribute based on the one set on the `<html>` element.
*
* @deprecated This mixin is deprecated and will be removed in Vaadin 26,
* after which components will no longer set the `dir` attribute on themselves.
* Use the `:dir(rtl)` CSS selector to style components in right-to-left mode,
* and `element.matches(':dir(rtl)')` to detect it in JavaScript.
*/

@@ -64,2 +69,3 @@ export const DirMixin = (superClass) =>

* @protected
* @deprecated Use `this.matches(':dir(rtl)')` instead.
*/

@@ -111,2 +117,6 @@ get __isRTL() {

// The two overrides below are only invoked by Polymer's property reflection.
// Vaadin components no longer extend `PolymerElement`, but some add-ons still
// apply this mixin to `PolymerElement`, so the overrides are kept for them.
/** @protected */

@@ -113,0 +123,0 @@ _valueToNodeAttribute(node, value, attribute) {