@vaadin/board 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/README.md CHANGED
@@ -31,7 +31,7 @@ A powerful and easy to use layout web component for building responsive views.
31
31
  </vaadin-board>
32
32
  ```
33
33
 
34
- [<img src="https://raw.githubusercontent.com/vaadin/web-components/main/packages/board/screenshot.png" alt="Screenshot of vaadin-board">](https://vaadin.com/docs/latest/components/board)
34
+ [<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/board/screenshot.png" alt="Screenshot of vaadin-board">](https://vaadin.com/docs/latest/components/board)
35
35
 
36
36
  ## Installation
37
37
 
@@ -53,7 +53,7 @@ Read the [contributing guide](https://vaadin.com/docs/latest/contributing/overvi
53
53
 
54
54
  ## License
55
55
 
56
- This program is available under Vaadin Commercial License and Service Terms. For license terms, see LICENSE.
56
+ Commercial Vaadin Developer License 4.0 (CVDLv4). For license terms, see LICENSE.txt.
57
57
 
58
58
  Vaadin collects usage statistics at development time to improve this product.
59
59
  For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@vaadin/board",
3
- "version": "23.2.16",
3
+ "version": "23.2.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "Polymer element to create flexible responsive layouts and build nice looking dashboard.",
8
8
  "license": "SEE LICENSE IN LICENSE",
9
+ "cvdlName": "vaadin-board",
9
10
  "repository": {
10
11
  "type": "git",
11
12
  "url": "https://github.com/vaadin/web-components.git",
@@ -39,17 +40,16 @@
39
40
  ],
40
41
  "dependencies": {
41
42
  "@polymer/polymer": "^3.0.0",
42
- "@vaadin/component-base": "~23.2.16"
43
+ "@vaadin/component-base": "~23.2.18"
43
44
  },
44
45
  "devDependencies": {
45
46
  "@esm-bundle/chai": "^4.3.4",
46
- "@vaadin/testing-helpers": "^0.4.0",
47
+ "@vaadin/testing-helpers": "^0.3.2",
47
48
  "sinon": "^13.0.2"
48
49
  },
49
- "cvdlName": "vaadin-board",
50
50
  "web-types": [
51
51
  "web-types.json",
52
52
  "web-types.lit.json"
53
53
  ],
54
- "gitHead": "57010013e59a3ecdc70ceef4377dbc3b1ac03fb3"
54
+ "gitHead": "0633266344f3b8eaae21f5c1365b682f163dd0cb"
55
55
  }
@@ -1,12 +1,7 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
3
+ * Copyright (c) 2017 - 2022 Vaadin Ltd.
4
+ * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
10
5
  */
11
6
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
12
7
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
@@ -1,13 +1,10 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
3
+ * Copyright (c) 2017 - 2022 Vaadin Ltd.
4
+ * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
10
5
  */
6
+ import { DomIf } from '@polymer/polymer/lib/elements/dom-if.js';
7
+ import { DomRepeat } from '@polymer/polymer/lib/elements/dom-repeat.js';
11
8
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
12
9
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
13
10
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
@@ -239,7 +236,10 @@ class BoardRow extends ResizeMixin(ElementMixin(PolymerElement)) {
239
236
  breakpoints.mediumSize !== this._oldBreakpoints.mediumSize
240
237
  ) {
241
238
  const nodes = this.$.insertionPoint.assignedNodes({ flatten: true });
242
- const filteredNodes = nodes.filter((node) => node.nodeType === Node.ELEMENT_NODE);
239
+ const isElementNode = (node) => {
240
+ return !(node.nodeType === node.TEXT_NODE || node instanceof DomRepeat || node instanceof DomIf);
241
+ };
242
+ const filteredNodes = nodes.filter(isElementNode);
243
243
  this._addStyleNames(width, breakpoints);
244
244
  const boardCols = this._parseBoardCols(filteredNodes);
245
245
  const colsInRow = boardCols.reduce((a, b) => a + b, 0);
@@ -1,12 +1,7 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
3
+ * Copyright (c) 2017 - 2022 Vaadin Ltd.
4
+ * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
10
5
  */
11
6
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
12
7
 
@@ -1,12 +1,7 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
3
+ * Copyright (c) 2017 - 2022 Vaadin Ltd.
4
+ * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
10
5
  */
11
6
  import './vaadin-board-row.js';
12
7
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/board",
4
- "version": "23.2.16",
4
+ "version": "23.2.18",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/board",
4
- "version": "23.2.16",
4
+ "version": "23.2.18",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {