@vaadin/vertical-layout 24.7.0-alpha7 → 24.7.0-alpha9

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/vertical-layout",
3
- "version": "24.7.0-alpha7",
3
+ "version": "24.7.0-alpha9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,19 +36,20 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.7.0-alpha7",
40
- "@vaadin/vaadin-lumo-styles": "24.7.0-alpha7",
41
- "@vaadin/vaadin-material-styles": "24.7.0-alpha7",
42
- "@vaadin/vaadin-themable-mixin": "24.7.0-alpha7",
39
+ "@vaadin/component-base": "24.7.0-alpha9",
40
+ "@vaadin/vaadin-lumo-styles": "24.7.0-alpha9",
41
+ "@vaadin/vaadin-material-styles": "24.7.0-alpha9",
42
+ "@vaadin/vaadin-themable-mixin": "24.7.0-alpha9",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/chai-plugins": "24.7.0-alpha7",
46
+ "@vaadin/chai-plugins": "24.7.0-alpha9",
47
+ "@vaadin/test-runner-commands": "24.7.0-alpha9",
47
48
  "@vaadin/testing-helpers": "^1.1.0"
48
49
  },
49
50
  "web-types": [
50
51
  "web-types.json",
51
52
  "web-types.lit.json"
52
53
  ],
53
- "gitHead": "5f48d7024caa02773aff3aa53091326a42d1eeb1"
54
+ "gitHead": "b0a16c6ed7fc50a22a42dcab0649d74f4c300485"
54
55
  }
@@ -5,4 +5,4 @@
5
5
  */
6
6
  import type { CSSResult } from 'lit';
7
7
 
8
- export const verticalLayoutStyles: CSSResult;
8
+ export const verticalLayoutStyles: CSSResult[];
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
7
7
 
8
- export const verticalLayoutStyles = css`
8
+ export const baseStyles = css`
9
9
  :host {
10
10
  display: flex;
11
11
  flex-direction: column;
@@ -30,3 +30,21 @@ export const verticalLayoutStyles = css`
30
30
  gap: 1em;
31
31
  }
32
32
  `;
33
+
34
+ // Layout improvements are part of a feature for Flow users where children that have been configured to use full size
35
+ // using `HasSize.setSizeFull()` and others, get additional styles so that they effectively take the remaining space in
36
+ // the layout, rather than explicitly use 100% width/height. The respective data attributes are set by Flow's `HasSize`
37
+ // class.
38
+ const enableLayoutImprovements = window.Vaadin.featureFlags.layoutComponentImprovements;
39
+ const layoutImprovementStyles = css`
40
+ ::slotted([data-height-full]) {
41
+ flex: 1;
42
+ }
43
+
44
+ ::slotted(vaadin-horizontal-layout[data-height-full]),
45
+ ::slotted(vaadin-vertical-layout[data-height-full]) {
46
+ min-height: 0;
47
+ }
48
+ `;
49
+
50
+ export const verticalLayoutStyles = enableLayoutImprovements ? [baseStyles, layoutImprovementStyles] : [baseStyles];
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/vertical-layout",
4
- "version": "24.7.0-alpha7",
4
+ "version": "24.7.0-alpha9",
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/vertical-layout",
4
- "version": "24.7.0-alpha7",
4
+ "version": "24.7.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {