@vaadin/polymer-legacy-adapter 23.2.16 → 23.2.18
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": "23.2.
|
|
3
|
+
"version": "23.2.18",
|
|
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.2.
|
|
35
|
+
"@vaadin/vaadin-themable-mixin": "~23.2.18",
|
|
36
36
|
"lit": "^2.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@esm-bundle/chai": "^4.3.4",
|
|
40
|
-
"@vaadin/checkbox": "~23.2.
|
|
41
|
-
"@vaadin/grid": "~23.2.
|
|
42
|
-
"@vaadin/grid-pro": "~23.2.
|
|
43
|
-
"@vaadin/testing-helpers": "^0.
|
|
40
|
+
"@vaadin/checkbox": "~23.2.18",
|
|
41
|
+
"@vaadin/grid": "~23.2.18",
|
|
42
|
+
"@vaadin/grid-pro": "~23.2.18",
|
|
43
|
+
"@vaadin/testing-helpers": "^0.3.2",
|
|
44
44
|
"sinon": "^13.0.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "0633266344f3b8eaae21f5c1365b682f163dd0cb"
|
|
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 - 2022 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,9 +97,7 @@ function getAllThemes() {
|
|
|
97
97
|
/** @type {DomModuleWithCachedStyles} */
|
|
98
98
|
const module = modules[moduleId];
|
|
99
99
|
const themeFor = module.getAttribute('theme-for');
|
|
100
|
-
|
|
101
|
-
module.__allStyles = getModuleStyles(module).concat(module.__partialStyles || []);
|
|
102
|
-
}
|
|
100
|
+
module.__allStyles = module.__allStyles || getModuleStyles(module).concat(module.__partialStyles || []);
|
|
103
101
|
|
|
104
102
|
return {
|
|
105
103
|
themeFor,
|
|
@@ -109,10 +107,7 @@ function getAllThemes() {
|
|
|
109
107
|
});
|
|
110
108
|
}
|
|
111
109
|
|
|
112
|
-
|
|
113
|
-
window.Vaadin = {};
|
|
114
|
-
}
|
|
115
|
-
|
|
110
|
+
window.Vaadin = window.Vaadin || {};
|
|
116
111
|
window.Vaadin.styleModules = {
|
|
117
112
|
getAllThemes,
|
|
118
113
|
registerStyles,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2022 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';
|
|
@@ -13,19 +13,6 @@ export class GridTemplatizer extends Templatizer {
|
|
|
13
13
|
return 'vaadin-template-renderer-grid-templatizer';
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* Returns a reference to the grid which the templatizer is connected to.
|
|
18
|
-
*
|
|
19
|
-
* @private
|
|
20
|
-
*/
|
|
21
|
-
get __grid() {
|
|
22
|
-
if (this.__component.__gridElement) {
|
|
23
|
-
return this.__component;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return this.__component._grid;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
16
|
/**
|
|
30
17
|
* Updates the grid items once an item's nested property is changed.
|
|
31
18
|
*
|
|
@@ -49,7 +36,7 @@ export class GridTemplatizer extends Templatizer {
|
|
|
49
36
|
|
|
50
37
|
const index = this.__grid.items.indexOf(instance.item);
|
|
51
38
|
|
|
52
|
-
path = path.replace(/^item
|
|
39
|
+
path = path.replace(/^item\./, '');
|
|
53
40
|
path = `items.${index}.${path}`;
|
|
54
41
|
|
|
55
42
|
this.__grid.notifyPath(path, value);
|
|
@@ -111,6 +98,19 @@ export class GridTemplatizer extends Templatizer {
|
|
|
111
98
|
this.__grid.closeItemDetails(instance.item);
|
|
112
99
|
}
|
|
113
100
|
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Returns a reference to the grid which the templatizer is connected to.
|
|
104
|
+
*
|
|
105
|
+
* @private
|
|
106
|
+
*/
|
|
107
|
+
get __grid() {
|
|
108
|
+
if (this.__component.__gridElement) {
|
|
109
|
+
return this.__component;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return this.__component._grid;
|
|
113
|
+
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
customElements.define(GridTemplatizer.is, GridTemplatizer);
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2022 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 { PolymerElement } from '@polymer/polymer';
|
|
7
7
|
import { templatize } from '@polymer/polymer/lib/utils/templatize.js';
|
|
8
8
|
|
|
9
9
|
export class Templatizer extends PolymerElement {
|
|
10
|
-
static get is() {
|
|
11
|
-
return 'vaadin-template-renderer-templatizer';
|
|
12
|
-
}
|
|
13
|
-
|
|
14
10
|
static create(component, template) {
|
|
15
11
|
const templatizer = new this();
|
|
16
12
|
templatizer.__template = template;
|
|
@@ -18,6 +14,10 @@ export class Templatizer extends PolymerElement {
|
|
|
18
14
|
return templatizer;
|
|
19
15
|
}
|
|
20
16
|
|
|
17
|
+
static get is() {
|
|
18
|
+
return 'vaadin-template-renderer-templatizer';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
23
|
|
package/src/template-renderer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 -
|
|
3
|
+
* Copyright (c) 2021 - 2022 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,10 +123,7 @@ function observeTemplates(component) {
|
|
|
123
123
|
/**
|
|
124
124
|
* Public API
|
|
125
125
|
*/
|
|
126
|
-
|
|
127
|
-
window.Vaadin = {};
|
|
128
|
-
}
|
|
129
|
-
|
|
126
|
+
window.Vaadin = window.Vaadin || {};
|
|
130
127
|
window.Vaadin.templateRendererCallback = (component) => {
|
|
131
128
|
processTemplates(component);
|
|
132
129
|
observeTemplates(component);
|
package/style-modules.js
CHANGED
package/template-renderer.js
CHANGED