@vaadin/polymer-legacy-adapter 23.1.0-alpha3 → 23.1.0-beta2
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/polymer-legacy-adapter",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@polymer/polymer": "^3.0.0",
|
|
35
|
-
"@vaadin/vaadin-themable-mixin": "23.1.0-
|
|
35
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-beta2",
|
|
36
36
|
"lit": "^2.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@esm-bundle/chai": "^4.3.4",
|
|
40
|
-
"@vaadin/checkbox": "23.1.0-
|
|
41
|
-
"@vaadin/grid": "23.1.0-
|
|
42
|
-
"@vaadin/grid-pro": "23.1.0-
|
|
40
|
+
"@vaadin/checkbox": "23.1.0-beta2",
|
|
41
|
+
"@vaadin/grid": "23.1.0-beta2",
|
|
42
|
+
"@vaadin/grid-pro": "23.1.0-beta2",
|
|
43
43
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
44
44
|
"sinon": "^13.0.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d"
|
|
47
47
|
}
|
package/src/style-modules.js
CHANGED
|
@@ -44,7 +44,7 @@ function registerStyles(themeFor, styles = [], options = {}) {
|
|
|
44
44
|
// (with <style include="module-id">)
|
|
45
45
|
const includeStylesToTemplate = !!(styles.length && options.moduleId);
|
|
46
46
|
|
|
47
|
-
//
|
|
47
|
+
// Options.include may be undefined, string or an array of strings. Convert it to an array
|
|
48
48
|
const moduleIncludes = [].concat(options.include || []);
|
|
49
49
|
if (moduleIncludes.length === 0) {
|
|
50
50
|
// No includes are used so the styles array is considered complete and can be cached as is
|
|
@@ -102,7 +102,7 @@ function getAllThemes() {
|
|
|
102
102
|
return {
|
|
103
103
|
themeFor,
|
|
104
104
|
moduleId,
|
|
105
|
-
styles: module.__allStyles
|
|
105
|
+
styles: module.__allStyles,
|
|
106
106
|
};
|
|
107
107
|
});
|
|
108
108
|
}
|
|
@@ -110,7 +110,7 @@ function getAllThemes() {
|
|
|
110
110
|
window.Vaadin = window.Vaadin || {};
|
|
111
111
|
window.Vaadin.styleModules = {
|
|
112
112
|
getAllThemes,
|
|
113
|
-
registerStyles
|
|
113
|
+
registerStyles,
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
// Convert any existing themes from the themable-mixin's themeRegistry to the style modules format
|
|
@@ -118,7 +118,7 @@ if (themeRegistry && themeRegistry.length > 0) {
|
|
|
118
118
|
themeRegistry.forEach((theme) => {
|
|
119
119
|
registerStyles(theme.themeFor, theme.styles, {
|
|
120
120
|
moduleId: theme.moduleId,
|
|
121
|
-
include: theme.include
|
|
121
|
+
include: theme.include,
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
// Clear the themeRegistry
|
package/src/template-renderer.js
CHANGED
|
@@ -42,7 +42,7 @@ function showTemplateWarning(component) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
console.warn(
|
|
45
|
-
`WARNING: <template> inside <${component.localName}> is deprecated. Use a renderer function instead (see https://vaad.in/template-renderer)
|
|
45
|
+
`WARNING: <template> inside <${component.localName}> is deprecated. Use a renderer function instead (see https://vaad.in/template-renderer)`,
|
|
46
46
|
);
|
|
47
47
|
|
|
48
48
|
component.__suppressTemplateWarning = true;
|