@vaadin/board 24.0.0-alpha9 → 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 +4 -4
- package/src/vaadin-board-row.js +1 -6
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/board",
|
|
3
|
-
"version": "24.0.0-
|
|
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-
|
|
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.
|
|
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": "
|
|
54
|
+
"gitHead": "c5b48921a62482746df8e46994b37e1490fec27e"
|
|
55
55
|
}
|
package/src/vaadin-board-row.js
CHANGED
|
@@ -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
|
|
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