@vaadin/vaadin-themable-mixin
Advanced tools
Comparing version 23.1.0-alpha3 to 23.1.0-alpha4
{ | ||
"name": "@vaadin/vaadin-themable-mixin", | ||
"version": "23.1.0-alpha3", | ||
"version": "23.1.0-alpha4", | ||
"publishConfig": { | ||
@@ -43,3 +43,3 @@ "access": "public" | ||
}, | ||
"gitHead": "8c9e64e8dfa158dd52a9bf6da351ff038c88ca85" | ||
"gitHead": "aacdb7fe09811894751f0378ff7fb66071892c71" | ||
} |
@@ -14,3 +14,3 @@ /** | ||
export declare function ThemableMixin<T extends Constructor<HTMLElement>>( | ||
base: T | ||
base: T, | ||
): T & Constructor<ThemableMixinClass> & Constructor<ThemePropertyMixinClass>; | ||
@@ -17,0 +17,0 @@ |
@@ -55,3 +55,3 @@ /** | ||
include: options.include, | ||
moduleId: options.moduleId | ||
moduleId: options.moduleId, | ||
}); | ||
@@ -81,3 +81,3 @@ } | ||
return (themeFor || '').split(' ').some((themeForToken) => { | ||
return new RegExp('^' + themeForToken.split('*').join('.*') + '$').test(tagName); | ||
return new RegExp(`^${themeForToken.split('*').join('.*')}$`).test(tagName); | ||
}); | ||
@@ -156,3 +156,3 @@ } | ||
function getThemes(tagName) { | ||
const defaultModuleName = tagName + '-default-theme'; | ||
const defaultModuleName = `${tagName}-default-theme`; | ||
@@ -167,3 +167,3 @@ const themes = getAllThemes() | ||
// Map moduleId to includePriority | ||
includePriority: getIncludePriority(theme.moduleId) | ||
includePriority: getIncludePriority(theme.moduleId), | ||
})) | ||
@@ -211,2 +211,7 @@ // Sort by includePriority | ||
// Make sure not to run the logic intended for PolymerElement when LitElement is used. | ||
if (this.elementStyles) { | ||
return; | ||
} | ||
const template = this.prototype._template; | ||
@@ -213,0 +218,0 @@ if (!template || classHasThemes(this)) { |
@@ -9,3 +9,3 @@ /** | ||
export declare function ThemePropertyMixin<T extends Constructor<HTMLElement>>( | ||
base: T | ||
base: T, | ||
): T & Constructor<ThemePropertyMixinClass>; | ||
@@ -12,0 +12,0 @@ |
@@ -35,3 +35,3 @@ /** | ||
reflectToAttribute: true, | ||
observer: '__deprecatedThemePropertyChanged' | ||
observer: '__deprecatedThemePropertyChanged', | ||
}, | ||
@@ -58,4 +58,4 @@ | ||
type: String, | ||
readOnly: true | ||
} | ||
readOnly: true, | ||
}, | ||
}; | ||
@@ -62,0 +62,0 @@ } |
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
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
25948
384