@vaadin/board 24.0.0-alpha8 → 24.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/board",
3
- "version": "24.0.0-alpha8",
3
+ "version": "24.0.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -39,11 +39,11 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "@polymer/polymer": "^3.0.0",
42
- "@vaadin/component-base": "24.0.0-alpha8"
42
+ "@vaadin/component-base": "24.0.0-beta1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@esm-bundle/chai": "^4.3.4",
46
- "@vaadin/testing-helpers": "^0.3.2",
46
+ "@vaadin/testing-helpers": "^0.4.0",
47
47
  "sinon": "^13.0.2"
48
48
  },
49
49
  "cvdlName": "vaadin-board",
@@ -51,5 +51,5 @@
51
51
  "web-types.json",
52
52
  "web-types.lit.json"
53
53
  ],
54
- "gitHead": "476752249bb12295c500980d98a3256ad3b22b73"
54
+ "gitHead": "c5b48921a62482746df8e46994b37e1490fec27e"
55
55
  }
@@ -8,8 +8,6 @@
8
8
  * See https://vaadin.com/commercial-license-and-service-terms for the full
9
9
  * license.
10
10
  */
11
- import { DomIf } from '@polymer/polymer/lib/elements/dom-if.js';
12
- import { DomRepeat } from '@polymer/polymer/lib/elements/dom-repeat.js';
13
11
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
14
12
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
15
13
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
@@ -241,10 +239,7 @@ class BoardRow extends ResizeMixin(ElementMixin(PolymerElement)) {
241
239
  breakpoints.mediumSize !== this._oldBreakpoints.mediumSize
242
240
  ) {
243
241
  const nodes = this.$.insertionPoint.assignedNodes({ flatten: true });
244
- const isElementNode = (node) => {
245
- return !(node.nodeType === node.TEXT_NODE || node instanceof DomRepeat || node instanceof DomIf);
246
- };
247
- const filteredNodes = nodes.filter(isElementNode);
242
+ const filteredNodes = nodes.filter((node) => node.nodeType === Node.ELEMENT_NODE);
248
243
  this._addStyleNames(width, breakpoints);
249
244
  const boardCols = this._parseBoardCols(filteredNodes);
250
245
  const colsInRow = boardCols.reduce((a, b) => a + b, 0);
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": "24.0.0-alpha8",
4
+ "version": "24.0.0-beta1",
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": "24.0.0-alpha8",
4
+ "version": "24.0.0-beta1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {