@vaadin/polymer-legacy-adapter 24.0.0-alpha7 → 24.0.0-alpha9
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/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/polymer-legacy-adapter",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-alpha9",
|
|
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": "24.0.0-
|
|
35
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-alpha9",
|
|
36
36
|
"lit": "^2.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@esm-bundle/chai": "^4.3.4",
|
|
40
|
-
"@vaadin/checkbox": "24.0.0-
|
|
41
|
-
"@vaadin/grid": "24.0.0-
|
|
42
|
-
"@vaadin/grid-pro": "24.0.0-
|
|
40
|
+
"@vaadin/checkbox": "24.0.0-alpha9",
|
|
41
|
+
"@vaadin/grid": "24.0.0-alpha9",
|
|
42
|
+
"@vaadin/grid-pro": "24.0.0-alpha9",
|
|
43
43
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
44
44
|
"sinon": "^13.0.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "cc3f747164041566b300bde4b105d2475649e93f"
|
|
47
47
|
}
|
package/src/style-modules.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { DomModule } from '@polymer/polymer/lib/elements/dom-module.js';
|
|
@@ -97,7 +97,9 @@ function getAllThemes() {
|
|
|
97
97
|
/** @type {DomModuleWithCachedStyles} */
|
|
98
98
|
const module = modules[moduleId];
|
|
99
99
|
const themeFor = module.getAttribute('theme-for');
|
|
100
|
-
module.__allStyles
|
|
100
|
+
if (!module.__allStyles) {
|
|
101
|
+
module.__allStyles = getModuleStyles(module).concat(module.__partialStyles || []);
|
|
102
|
+
}
|
|
101
103
|
|
|
102
104
|
return {
|
|
103
105
|
themeFor,
|
|
@@ -107,7 +109,10 @@ function getAllThemes() {
|
|
|
107
109
|
});
|
|
108
110
|
}
|
|
109
111
|
|
|
110
|
-
window.Vaadin
|
|
112
|
+
if (!window.Vaadin) {
|
|
113
|
+
window.Vaadin = {};
|
|
114
|
+
}
|
|
115
|
+
|
|
111
116
|
window.Vaadin.styleModules = {
|
|
112
117
|
getAllThemes,
|
|
113
118
|
registerStyles,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { Templatizer } from './template-renderer-templatizer.js';
|
|
@@ -36,7 +36,7 @@ export class GridTemplatizer extends Templatizer {
|
|
|
36
36
|
|
|
37
37
|
const index = this.__grid.items.indexOf(instance.item);
|
|
38
38
|
|
|
39
|
-
path = path.replace(/^item
|
|
39
|
+
path = path.replace(/^item\./u, '');
|
|
40
40
|
path = `items.${index}.${path}`;
|
|
41
41
|
|
|
42
42
|
this.__grid.notifyPath(path, value);
|
package/src/template-renderer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
|
|
@@ -123,7 +123,10 @@ function observeTemplates(component) {
|
|
|
123
123
|
/**
|
|
124
124
|
* Public API
|
|
125
125
|
*/
|
|
126
|
-
window.Vaadin
|
|
126
|
+
if (!window.Vaadin) {
|
|
127
|
+
window.Vaadin = {};
|
|
128
|
+
}
|
|
129
|
+
|
|
127
130
|
window.Vaadin.templateRendererCallback = (component) => {
|
|
128
131
|
processTemplates(component);
|
|
129
132
|
observeTemplates(component);
|
package/style-modules.js
CHANGED
package/template-renderer.js
CHANGED