@vaadin/vaadin-themable-mixin 22.0.12 → 22.0.15
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/vaadin-themable-mixin",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
40
40
|
"sinon": "^9.2.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "bba021b56ba45da93d2bb980242956ad929ecfe2"
|
|
43
43
|
}
|
|
@@ -11,7 +11,7 @@ import { ThemePropertyMixinClass } from './vaadin-theme-property-mixin.js';
|
|
|
11
11
|
* A mixin for `nav` elements, facilitating navigation and selection of childNodes.
|
|
12
12
|
*/
|
|
13
13
|
export declare function ThemableMixin<T extends Constructor<HTMLElement>>(
|
|
14
|
-
base: T
|
|
14
|
+
base: T,
|
|
15
15
|
): T & Constructor<ThemableMixinClass> & Constructor<ThemePropertyMixinClass>;
|
|
16
16
|
|
|
17
17
|
export declare class ThemableMixinClass {
|
package/vaadin-themable-mixin.js
CHANGED
|
@@ -53,7 +53,7 @@ export function registerStyles(themeFor, styles, options = {}) {
|
|
|
53
53
|
themeFor,
|
|
54
54
|
styles,
|
|
55
55
|
include: options.include,
|
|
56
|
-
moduleId: options.moduleId
|
|
56
|
+
moduleId: options.moduleId,
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -168,7 +168,7 @@ function getThemes(tagName) {
|
|
|
168
168
|
// Prepend styles from included themes
|
|
169
169
|
styles: [...getIncludedStyles(theme), ...theme.styles],
|
|
170
170
|
// Map moduleId to includePriority
|
|
171
|
-
includePriority: getIncludePriority(theme.moduleId)
|
|
171
|
+
includePriority: getIncludePriority(theme.moduleId),
|
|
172
172
|
}))
|
|
173
173
|
// Sort by includePriority
|
|
174
174
|
.sort((themeA, themeB) => themeB.includePriority - themeA.includePriority);
|