@vaadin/polymer-legacy-adapter 23.0.0-alpha2 → 23.0.0-beta1

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 Vaadin Ltd.
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 './style-modules.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/polymer-legacy-adapter",
3
- "version": "23.0.0-alpha2",
3
+ "version": "23.0.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "main": "index.js",
20
20
  "module": "index.js",
21
+ "type": "module",
21
22
  "files": [
22
23
  "*.d.ts",
23
24
  "*.js",
@@ -31,16 +32,16 @@
31
32
  ],
32
33
  "dependencies": {
33
34
  "@polymer/polymer": "^3.0.0",
34
- "@vaadin/vaadin-themable-mixin": "23.0.0-alpha2",
35
+ "@vaadin/vaadin-themable-mixin": "23.0.0-beta1",
35
36
  "lit": "^2.0.0"
36
37
  },
37
38
  "devDependencies": {
38
39
  "@esm-bundle/chai": "^4.3.4",
39
- "@vaadin/checkbox": "23.0.0-alpha2",
40
- "@vaadin/grid": "23.0.0-alpha2",
41
- "@vaadin/grid-pro": "23.0.0-alpha2",
40
+ "@vaadin/checkbox": "23.0.0-beta1",
41
+ "@vaadin/grid": "23.0.0-beta1",
42
+ "@vaadin/grid-pro": "23.0.0-beta1",
42
43
  "@vaadin/testing-helpers": "^0.3.2",
43
44
  "sinon": "^9.2.4"
44
45
  },
45
- "gitHead": "070f586dead02ca41b66717820c647f48bf1665f"
46
+ "gitHead": "467244b76021176c109df675799b07029b293e58"
46
47
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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';
@@ -29,7 +29,8 @@ let moduleIdIndex = 0;
29
29
  * @return {void}
30
30
  */
31
31
  function registerStyles(themeFor, styles = [], options = {}) {
32
- const themeId = options.moduleId || `custom-style-module-${moduleIdIndex++}`;
32
+ const themeId = options.moduleId || `custom-style-module-${moduleIdIndex}`;
33
+ moduleIdIndex += 1;
33
34
 
34
35
  /** @type {DomModuleWithCachedStyles} */
35
36
  const module = document.createElement('dom-module');
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2022 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  import { Templatizer } from './template-renderer-templatizer.js';
2
7
 
3
8
  export class GridTemplatizer extends Templatizer {
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2022 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  import { PolymerElement } from '@polymer/polymer';
2
7
  import { templatize } from '@polymer/polymer/lib/utils/templatize.js';
3
8
 
@@ -51,7 +56,7 @@ export class Templatizer extends PolymerElement {
51
56
  // The Polymer uses `===` to check whether a property is changed and should be re-rendered.
52
57
  // This means, object properties won't be re-rendered when mutated inside.
53
58
  // This workaround forces the `item` property to re-render even
54
- // the new item is stricly equal to the old item.
59
+ // the new item is strictly equal to the old item.
55
60
  if (instance.item === properties.item) {
56
61
  instance._setPendingProperty('item');
57
62
  }
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2022 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
2
7
  import { GridTemplatizer } from './template-renderer-grid-templatizer.js';
3
8
  import { Templatizer } from './template-renderer-templatizer.js';
package/style-modules.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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 './src/style-modules.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
  export * from './src/template-renderer.js';