@vaadin/polymer-legacy-adapter 24.0.0-alpha6 → 24.0.0-alpha8

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
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
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 './style-modules.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/polymer-legacy-adapter",
3
- "version": "24.0.0-alpha6",
3
+ "version": "24.0.0-alpha8",
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-alpha6",
35
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha8",
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-alpha6",
41
- "@vaadin/grid": "24.0.0-alpha6",
42
- "@vaadin/grid-pro": "24.0.0-alpha6",
40
+ "@vaadin/checkbox": "24.0.0-alpha8",
41
+ "@vaadin/grid": "24.0.0-alpha8",
42
+ "@vaadin/grid-pro": "24.0.0-alpha8",
43
43
  "@vaadin/testing-helpers": "^0.3.2",
44
44
  "sinon": "^13.0.2"
45
45
  },
46
- "gitHead": "0004ac92b6e5f415b5fa949e0582d1d11e527b1f"
46
+ "gitHead": "476752249bb12295c500980d98a3256ad3b22b73"
47
47
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
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 = module.__allStyles || getModuleStyles(module).concat(module.__partialStyles || []);
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 = 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 - 2022 Vaadin Ltd.
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);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
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 { PolymerElement } from '@polymer/polymer';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
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 = 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
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
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 './src/style-modules.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
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
  export * from './src/template-renderer.js';