@vaadin/board 24.8.4 → 25.0.0-alpha10
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 +9 -11
- package/src/vaadin-board-row.js +27 -24
- package/src/vaadin-board.js +20 -17
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/vaadin-lit-board-row.js +0 -60
- package/src/vaadin-lit-board.js +0 -66
- package/theme/lumo/vaadin-lit-board-row.d.ts +0 -1
- package/theme/lumo/vaadin-lit-board-row.js +0 -1
- package/theme/lumo/vaadin-lit-board.d.ts +0 -2
- package/theme/lumo/vaadin-lit-board.js +0 -2
- package/theme/material/vaadin-board-row.d.ts +0 -1
- package/theme/material/vaadin-board-row.js +0 -1
- package/theme/material/vaadin-board.d.ts +0 -2
- package/theme/material/vaadin-board.js +0 -2
- package/theme/material/vaadin-lit-board-row.d.ts +0 -1
- package/theme/material/vaadin-lit-board-row.js +0 -1
- package/theme/material/vaadin-lit-board.d.ts +0 -2
- package/theme/material/vaadin-lit-board.js +0 -2
- package/vaadin-lit-board-row.d.ts +0 -1
- package/vaadin-lit-board-row.js +0 -2
- package/vaadin-lit-board.d.ts +0 -1
- package/vaadin-lit-board.js +0 -2
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/board",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "Web component to create flexible responsive layouts and build nice looking dashboard.",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -34,20 +34,18 @@
|
|
|
34
34
|
"responsive",
|
|
35
35
|
"layout",
|
|
36
36
|
"web-components",
|
|
37
|
-
"web-component"
|
|
38
|
-
"polymer"
|
|
37
|
+
"web-component"
|
|
39
38
|
],
|
|
40
39
|
"dependencies": {
|
|
41
40
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
42
|
-
"@
|
|
43
|
-
"@vaadin/
|
|
44
|
-
"@vaadin/component-base": "~24.8.4",
|
|
41
|
+
"@vaadin/a11y-base": "25.0.0-alpha10",
|
|
42
|
+
"@vaadin/component-base": "25.0.0-alpha10",
|
|
45
43
|
"lit": "^3.0.0"
|
|
46
44
|
},
|
|
47
45
|
"devDependencies": {
|
|
48
|
-
"@vaadin/chai-plugins": "
|
|
49
|
-
"@vaadin/test-runner-commands": "
|
|
50
|
-
"@vaadin/testing-helpers": "^
|
|
46
|
+
"@vaadin/chai-plugins": "25.0.0-alpha10",
|
|
47
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha10",
|
|
48
|
+
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
49
|
"sinon": "^18.0.0"
|
|
52
50
|
},
|
|
53
51
|
"cvdlName": "vaadin-board",
|
|
@@ -55,5 +53,5 @@
|
|
|
55
53
|
"web-types.json",
|
|
56
54
|
"web-types.lit.json"
|
|
57
55
|
],
|
|
58
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "6cc6c94079e805fa5b2f0af4dbf3b2a7485e57d0"
|
|
59
57
|
}
|
package/src/vaadin-board-row.js
CHANGED
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
|
-
import { html,
|
|
11
|
+
import { css, html, LitElement } from 'lit';
|
|
12
12
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
13
13
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
14
|
+
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
14
15
|
import { BoardRowMixin } from './vaadin-board-row-mixin.js';
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -52,34 +53,36 @@ import { BoardRowMixin } from './vaadin-board-row-mixin.js';
|
|
|
52
53
|
* @mixes ElementMixin
|
|
53
54
|
* @mixes BoardRowMixin
|
|
54
55
|
*/
|
|
55
|
-
class BoardRow extends BoardRowMixin(ElementMixin(
|
|
56
|
-
static get
|
|
57
|
-
return
|
|
58
|
-
|
|
59
|
-
:host {
|
|
60
|
-
display: flex;
|
|
61
|
-
flex-flow: row wrap;
|
|
62
|
-
align-items: stretch;
|
|
63
|
-
--small-size: var(--vaadin-board-width-small, 600px);
|
|
64
|
-
--medium-size: var(--vaadin-board-width-medium, 960px);
|
|
65
|
-
}
|
|
56
|
+
class BoardRow extends BoardRowMixin(ElementMixin(PolylitMixin(LitElement))) {
|
|
57
|
+
static get is() {
|
|
58
|
+
return 'vaadin-board-row';
|
|
59
|
+
}
|
|
66
60
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
static get styles() {
|
|
62
|
+
return css`
|
|
63
|
+
:host {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-flow: row wrap;
|
|
66
|
+
align-items: stretch;
|
|
67
|
+
--small-size: var(--vaadin-board-width-small, 600px);
|
|
68
|
+
--medium-size: var(--vaadin-board-width-medium, 960px);
|
|
69
|
+
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
:host([hidden]) {
|
|
72
|
+
display: none !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host ::slotted(*) {
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
flex-grow: 1;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
}
|
|
78
80
|
`;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
/** @protected */
|
|
84
|
+
render() {
|
|
85
|
+
return html`<slot id="insertionPoint"></slot>`;
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
|
package/src/vaadin-board.js
CHANGED
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
11
|
import './vaadin-board-row.js';
|
|
12
|
-
import { html,
|
|
12
|
+
import { css, html, LitElement } from 'lit';
|
|
13
13
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
14
14
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
15
|
+
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
15
16
|
import { BoardRow } from './vaadin-board-row.js';
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -37,22 +38,7 @@ import { BoardRow } from './vaadin-board-row.js';
|
|
|
37
38
|
* @extends HTMLElement
|
|
38
39
|
* @mixes ElementMixin
|
|
39
40
|
*/
|
|
40
|
-
class Board extends ElementMixin(
|
|
41
|
-
static get template() {
|
|
42
|
-
return html`
|
|
43
|
-
<style>
|
|
44
|
-
:host {
|
|
45
|
-
display: block;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host([hidden]) {
|
|
49
|
-
display: none !important;
|
|
50
|
-
}
|
|
51
|
-
</style>
|
|
52
|
-
<slot></slot>
|
|
53
|
-
`;
|
|
54
|
-
}
|
|
55
|
-
|
|
41
|
+
class Board extends ElementMixin(PolylitMixin(LitElement)) {
|
|
56
42
|
static get is() {
|
|
57
43
|
return 'vaadin-board';
|
|
58
44
|
}
|
|
@@ -61,6 +47,23 @@ class Board extends ElementMixin(PolymerElement) {
|
|
|
61
47
|
return 'vaadin-board';
|
|
62
48
|
}
|
|
63
49
|
|
|
50
|
+
static get styles() {
|
|
51
|
+
return css`
|
|
52
|
+
:host {
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([hidden]) {
|
|
57
|
+
display: none !important;
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @protected */
|
|
63
|
+
render() {
|
|
64
|
+
return html`<slot></slot>`;
|
|
65
|
+
}
|
|
66
|
+
|
|
64
67
|
/**
|
|
65
68
|
* Redraws the board and all rows inside it, if necessary.
|
|
66
69
|
*
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 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.
|
|
10
|
-
*/
|
|
11
|
-
import { css, html, LitElement } from 'lit';
|
|
12
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
13
|
-
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
14
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
15
|
-
import { BoardRowMixin } from './vaadin-board-row-mixin.js';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* LitElement based version of `<vaadin-board-row>` web component.
|
|
19
|
-
*
|
|
20
|
-
* ## Disclaimer
|
|
21
|
-
*
|
|
22
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
23
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
24
|
-
*/
|
|
25
|
-
class BoardRow extends BoardRowMixin(ElementMixin(PolylitMixin(LitElement))) {
|
|
26
|
-
static get is() {
|
|
27
|
-
return 'vaadin-board-row';
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static get styles() {
|
|
31
|
-
return css`
|
|
32
|
-
:host {
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-flow: row wrap;
|
|
35
|
-
align-items: stretch;
|
|
36
|
-
--small-size: var(--vaadin-board-width-small, 600px);
|
|
37
|
-
--medium-size: var(--vaadin-board-width-medium, 960px);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([hidden]) {
|
|
41
|
-
display: none !important;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:host ::slotted(*) {
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
flex-grow: 1;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** @protected */
|
|
53
|
-
render() {
|
|
54
|
-
return html`<slot id="insertionPoint"></slot>`;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
defineCustomElement(BoardRow);
|
|
59
|
-
|
|
60
|
-
export { BoardRow };
|
package/src/vaadin-lit-board.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 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.
|
|
10
|
-
*/
|
|
11
|
-
import './vaadin-lit-board-row.js';
|
|
12
|
-
import { css, html, LitElement } from 'lit';
|
|
13
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
14
|
-
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
15
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
16
|
-
import { BoardRow } from './vaadin-lit-board-row.js';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* LitElement based version of `<vaadin-board>` web component.
|
|
20
|
-
*
|
|
21
|
-
* ## Disclaimer
|
|
22
|
-
*
|
|
23
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
24
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
25
|
-
*/
|
|
26
|
-
class Board extends ElementMixin(PolylitMixin(LitElement)) {
|
|
27
|
-
static get is() {
|
|
28
|
-
return 'vaadin-board';
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
static get cvdlName() {
|
|
32
|
-
return 'vaadin-board';
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
static get styles() {
|
|
36
|
-
return css`
|
|
37
|
-
:host {
|
|
38
|
-
display: block;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([hidden]) {
|
|
42
|
-
display: none !important;
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** @protected */
|
|
48
|
-
render() {
|
|
49
|
-
return html`<slot></slot>`;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Redraws the board and all rows inside it, if necessary.
|
|
54
|
-
*
|
|
55
|
-
* In most cases, board will redraw itself if your reconfigure it. If you dynamically change
|
|
56
|
-
* breakpoints `--vaadin-board-width-small` or `--vaadin-board-width-medium`,
|
|
57
|
-
* then you need to call this method.
|
|
58
|
-
*/
|
|
59
|
-
redraw() {
|
|
60
|
-
[...this.querySelectorAll('*')].filter((node) => node instanceof BoardRow).forEach((row) => row.redraw());
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
defineCustomElement(Board);
|
|
65
|
-
|
|
66
|
-
export { Board };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../src/vaadin-lit-board-row.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../src/vaadin-lit-board-row.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../src/vaadin-board-row.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../src/vaadin-board-row.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../src/vaadin-lit-board-row.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../src/vaadin-lit-board-row.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-board-row.js';
|
package/vaadin-lit-board-row.js
DELETED
package/vaadin-lit-board.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-board.js';
|
package/vaadin-lit-board.js
DELETED