@vaadin/master-detail-layout 25.1.0 → 25.2.0-alpha2

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/web-types.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/master-detail-layout",
4
- "version": "25.1.0",
4
+ "version": "25.2.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-master-detail-layout",
11
- "description": "`<vaadin-master-detail-layout>` is a web component for building UIs with a master\n(or primary) area and a detail (or secondary) area that is displayed next to, or\noverlaid on top of, the master area, depending on configuration and viewport size.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------|----------------------\n`backdrop` | Backdrop covering the master area in the drawer mode\n`master` | The master area\n`detail` | The detail area\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------| -----------\n`containment` | Set to `layout` or `viewport` depending on the containment.\n`orientation` | Set to `horizontal` or `vertical` depending on the orientation.\n`has-detail` | Set when the detail content is provided.\n`drawer` | Set when the layout is using the drawer mode.\n`stack` | Set when the layout is using the stack mode.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------------------------|\n| `--vaadin-master-detail-layout-border-color` |\n| `--vaadin-master-detail-layout-border-width` |\n| `--vaadin-master-detail-layout-detail-background` |\n| `--vaadin-master-detail-layout-detail-shadow` |\n| `--vaadin-overlay-backdrop-background` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
11
+ "description": "`<vaadin-master-detail-layout>` is a web component for building UIs with a master\n(or primary) area and a detail (or secondary) area that is displayed next to, or\noverlaid on top of, the master area, depending on configuration and viewport size.\n\n### Slots\n\nThe component has two main content areas: the master area (default slot)\nand the detail area (`detail` slot). When the detail doesn't fit next to\nthe master, it is shown as an overlay on top of the master area:\n\n```html\n<vaadin-master-detail-layout>\n <div>Master content</div>\n <div slot=\"detail\">Detail content</div>\n</vaadin-master-detail-layout>\n```\n\nThe component also supports a `detail-placeholder` slot for content shown\nin the detail area when no detail is selected. Unlike the `detail` slot,\nthe placeholder is simply hidden when it doesn't fit next to the master area,\nrather than shown as an overlay:\n\n```html\n<vaadin-master-detail-layout>\n <div>Master content</div>\n <div slot=\"detail-placeholder\">Select an item</div>\n</vaadin-master-detail-layout>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------------|----------------------\n`backdrop` | Backdrop covering the master area in the overlay mode\n`master` | The master area\n`detail` | The detail area\n`detail-placeholder` | The detail placeholder area\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------------|----------------------\n`expand` | Set to `master`, `detail`, or `both`.\n`orientation` | Set to `horizontal` or `vertical` depending on the orientation.\n`has-detail` | Set when the detail content is provided and visible.\n`has-detail-placeholder` | Set when the detail placeholder content is provided.\n`overlay` | Set when columns don't fit and the detail is shown as an overlay.\n`overlay-containment` | Set to `layout` or `viewport`.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------------------------|\n| `--vaadin-master-detail-layout-border-color` |\n| `--vaadin-master-detail-layout-border-width` |\n| `--vaadin-master-detail-layout-detail-background` |\n| `--vaadin-master-detail-layout-detail-shadow` |\n| `--vaadin-overlay-backdrop-background` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
- "name": "containment",
15
- "description": "Defines the containment of the detail area when the layout is in\noverlay mode. When set to `layout`, the overlay is confined to the\nlayout. When set to `viewport`, the overlay is confined to the\nbrowser's viewport. Defaults to `layout`.",
14
+ "name": "detail-size",
15
+ "description": "Size (in CSS length units) to be set on the detail area in\nthe CSS grid layout. If there is not enough space to show\nmaster and detail areas next to each other, the detail area\nis shown as an overlay. Defaults to 15em.",
16
16
  "value": {
17
17
  "type": [
18
18
  "string",
@@ -22,8 +22,8 @@
22
22
  }
23
23
  },
24
24
  {
25
- "name": "detail-min-size",
26
- "description": "Minimum size (in CSS length units) to be set on the detail area.\nWhen specified, it prevents the detail area from shrinking below\nthis size. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
25
+ "name": "expand",
26
+ "description": "Controls which column(s) expand to fill available space.\nPossible values: `'master'`, `'detail'`, `'both'`.\nDefaults to `'master'`.",
27
27
  "value": {
28
28
  "type": [
29
29
  "string",
@@ -33,8 +33,8 @@
33
33
  }
34
34
  },
35
35
  {
36
- "name": "detail-size",
37
- "description": "Fixed size (in CSS length units) to be set on the detail area.\nWhen specified, it prevents the detail area from growing or\nshrinking. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
36
+ "name": "master-size",
37
+ "description": "Size (in CSS length units) to be set on the master area in\nthe CSS grid layout. If there is not enough space to show\nmaster and detail areas next to each other, the detail area\nis shown as an overlay. Defaults to 30em.",
38
38
  "value": {
39
39
  "type": [
40
40
  "string",
@@ -44,8 +44,8 @@
44
44
  }
45
45
  },
46
46
  {
47
- "name": "force-overlay",
48
- "description": "When specified, forces the details to be shown as an overlay\n(either as drawer or stack), even if there is enough space for\nmaster and detail to be shown next to each other using the default\n(split) mode.\n\nIn order to enforce the stack mode, use this property together with\n`stackOverlay` property and set both to `true`.",
47
+ "name": "no-animation",
48
+ "description": "When true, the layout does not use animated transitions for the detail area.",
49
49
  "value": {
50
50
  "type": [
51
51
  "boolean",
@@ -55,8 +55,8 @@
55
55
  }
56
56
  },
57
57
  {
58
- "name": "master-min-size",
59
- "description": "Minimum size (in CSS length units) to be set on the master area.\nWhen specified, it prevents the master area from shrinking below\nthis size. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
58
+ "name": "orientation",
59
+ "description": "Define how master and detail areas are shown next to each other,\nand the way how size and min-size properties are applied to them.\nPossible values are: `horizontal` or `vertical`.\nDefaults to horizontal.",
60
60
  "value": {
61
61
  "type": [
62
62
  "string",
@@ -66,8 +66,8 @@
66
66
  }
67
67
  },
68
68
  {
69
- "name": "master-size",
70
- "description": "Fixed size (in CSS length units) to be set on the master area.\nWhen specified, it prevents the master area from growing or\nshrinking. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
69
+ "name": "overlay-containment",
70
+ "description": "Defines the containment of the detail area when the layout is in\noverlay mode. When set to `layout`, the overlay is confined to the\nlayout. When set to `viewport`, the overlay is confined to the\nbrowser's viewport. Defaults to `layout`.",
71
71
  "value": {
72
72
  "type": [
73
73
  "string",
@@ -77,19 +77,8 @@
77
77
  }
78
78
  },
79
79
  {
80
- "name": "no-animation",
81
- "description": "When true, the layout does not use animated transitions for the detail area.",
82
- "value": {
83
- "type": [
84
- "boolean",
85
- "null",
86
- "undefined"
87
- ]
88
- }
89
- },
90
- {
91
- "name": "orientation",
92
- "description": "Define how master and detail areas are shown next to each other,\nand the way how size and min-size properties are applied to them.\nPossible values are: `horizontal` or `vertical`.\nDefaults to horizontal.",
80
+ "name": "overlay-size",
81
+ "description": "Size (in CSS length units) for the detail area when shown as an\noverlay. When not set, falls back to `detailSize`. Set to `100%`\nto make the detail cover the full layout.",
93
82
  "value": {
94
83
  "type": [
95
84
  "string",
@@ -98,17 +87,6 @@
98
87
  ]
99
88
  }
100
89
  },
101
- {
102
- "name": "stack-overlay",
103
- "description": "When true, the layout in the overlay mode is rendered as a stack,\nmaking detail area fully cover the master area. Otherwise, it is\nrendered as a drawer and has a visual backdrop.\n\nIn order to enforce the stack mode, use this property together with\n`forceOverlay` property and set both to `true`.",
104
- "value": {
105
- "type": [
106
- "boolean",
107
- "null",
108
- "undefined"
109
- ]
110
- }
111
- },
112
90
  {
113
91
  "name": "theme",
114
92
  "description": "The theme variants to apply to the component.",
@@ -124,8 +102,8 @@
124
102
  "js": {
125
103
  "properties": [
126
104
  {
127
- "name": "containment",
128
- "description": "Defines the containment of the detail area when the layout is in\noverlay mode. When set to `layout`, the overlay is confined to the\nlayout. When set to `viewport`, the overlay is confined to the\nbrowser's viewport. Defaults to `layout`.",
105
+ "name": "detailSize",
106
+ "description": "Size (in CSS length units) to be set on the detail area in\nthe CSS grid layout. If there is not enough space to show\nmaster and detail areas next to each other, the detail area\nis shown as an overlay. Defaults to 15em.",
129
107
  "value": {
130
108
  "type": [
131
109
  "string",
@@ -135,8 +113,8 @@
135
113
  }
136
114
  },
137
115
  {
138
- "name": "detailMinSize",
139
- "description": "Minimum size (in CSS length units) to be set on the detail area.\nWhen specified, it prevents the detail area from shrinking below\nthis size. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
116
+ "name": "expand",
117
+ "description": "Controls which column(s) expand to fill available space.\nPossible values: `'master'`, `'detail'`, `'both'`.\nDefaults to `'master'`.",
140
118
  "value": {
141
119
  "type": [
142
120
  "string",
@@ -146,8 +124,8 @@
146
124
  }
147
125
  },
148
126
  {
149
- "name": "detailSize",
150
- "description": "Fixed size (in CSS length units) to be set on the detail area.\nWhen specified, it prevents the detail area from growing or\nshrinking. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
127
+ "name": "masterSize",
128
+ "description": "Size (in CSS length units) to be set on the master area in\nthe CSS grid layout. If there is not enough space to show\nmaster and detail areas next to each other, the detail area\nis shown as an overlay. Defaults to 30em.",
151
129
  "value": {
152
130
  "type": [
153
131
  "string",
@@ -157,8 +135,8 @@
157
135
  }
158
136
  },
159
137
  {
160
- "name": "forceOverlay",
161
- "description": "When specified, forces the details to be shown as an overlay\n(either as drawer or stack), even if there is enough space for\nmaster and detail to be shown next to each other using the default\n(split) mode.\n\nIn order to enforce the stack mode, use this property together with\n`stackOverlay` property and set both to `true`.",
138
+ "name": "noAnimation",
139
+ "description": "When true, the layout does not use animated transitions for the detail area.",
162
140
  "value": {
163
141
  "type": [
164
142
  "boolean",
@@ -168,8 +146,8 @@
168
146
  }
169
147
  },
170
148
  {
171
- "name": "masterMinSize",
172
- "description": "Minimum size (in CSS length units) to be set on the master area.\nWhen specified, it prevents the master area from shrinking below\nthis size. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
149
+ "name": "orientation",
150
+ "description": "Define how master and detail areas are shown next to each other,\nand the way how size and min-size properties are applied to them.\nPossible values are: `horizontal` or `vertical`.\nDefaults to horizontal.",
173
151
  "value": {
174
152
  "type": [
175
153
  "string",
@@ -179,8 +157,8 @@
179
157
  }
180
158
  },
181
159
  {
182
- "name": "masterSize",
183
- "description": "Fixed size (in CSS length units) to be set on the master area.\nWhen specified, it prevents the master area from growing or\nshrinking. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
160
+ "name": "overlayContainment",
161
+ "description": "Defines the containment of the detail area when the layout is in\noverlay mode. When set to `layout`, the overlay is confined to the\nlayout. When set to `viewport`, the overlay is confined to the\nbrowser's viewport. Defaults to `layout`.",
184
162
  "value": {
185
163
  "type": [
186
164
  "string",
@@ -190,19 +168,8 @@
190
168
  }
191
169
  },
192
170
  {
193
- "name": "noAnimation",
194
- "description": "When true, the layout does not use animated transitions for the detail area.",
195
- "value": {
196
- "type": [
197
- "boolean",
198
- "null",
199
- "undefined"
200
- ]
201
- }
202
- },
203
- {
204
- "name": "orientation",
205
- "description": "Define how master and detail areas are shown next to each other,\nand the way how size and min-size properties are applied to them.\nPossible values are: `horizontal` or `vertical`.\nDefaults to horizontal.",
171
+ "name": "overlaySize",
172
+ "description": "Size (in CSS length units) for the detail area when shown as an\noverlay. When not set, falls back to `detailSize`. Set to `100%`\nto make the detail cover the full layout.",
206
173
  "value": {
207
174
  "type": [
208
175
  "string",
@@ -210,23 +177,12 @@
210
177
  "undefined"
211
178
  ]
212
179
  }
213
- },
214
- {
215
- "name": "stackOverlay",
216
- "description": "When true, the layout in the overlay mode is rendered as a stack,\nmaking detail area fully cover the master area. Otherwise, it is\nrendered as a drawer and has a visual backdrop.\n\nIn order to enforce the stack mode, use this property together with\n`forceOverlay` property and set both to `true`.",
217
- "value": {
218
- "type": [
219
- "boolean",
220
- "null",
221
- "undefined"
222
- ]
223
- }
224
180
  }
225
181
  ],
226
182
  "events": [
227
183
  {
228
184
  "name": "backdrop-click",
229
- "description": "backdrop-click\nFired when the user clicks the backdrop in the drawer mode."
185
+ "description": "backdrop-click\nFired when the user clicks the backdrop in the overlay mode."
230
186
  },
231
187
  {
232
188
  "name": "detail-escape-press",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/master-detail-layout",
4
- "version": "25.1.0",
4
+ "version": "25.2.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,16 +16,9 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-master-detail-layout",
19
- "description": "`<vaadin-master-detail-layout>` is a web component for building UIs with a master\n(or primary) area and a detail (or secondary) area that is displayed next to, or\noverlaid on top of, the master area, depending on configuration and viewport size.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------|----------------------\n`backdrop` | Backdrop covering the master area in the drawer mode\n`master` | The master area\n`detail` | The detail area\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------| -----------\n`containment` | Set to `layout` or `viewport` depending on the containment.\n`orientation` | Set to `horizontal` or `vertical` depending on the orientation.\n`has-detail` | Set when the detail content is provided.\n`drawer` | Set when the layout is using the drawer mode.\n`stack` | Set when the layout is using the stack mode.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------------------------|\n| `--vaadin-master-detail-layout-border-color` |\n| `--vaadin-master-detail-layout-border-width` |\n| `--vaadin-master-detail-layout-detail-background` |\n| `--vaadin-master-detail-layout-detail-shadow` |\n| `--vaadin-overlay-backdrop-background` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
19
+ "description": "`<vaadin-master-detail-layout>` is a web component for building UIs with a master\n(or primary) area and a detail (or secondary) area that is displayed next to, or\noverlaid on top of, the master area, depending on configuration and viewport size.\n\n### Slots\n\nThe component has two main content areas: the master area (default slot)\nand the detail area (`detail` slot). When the detail doesn't fit next to\nthe master, it is shown as an overlay on top of the master area:\n\n```html\n<vaadin-master-detail-layout>\n <div>Master content</div>\n <div slot=\"detail\">Detail content</div>\n</vaadin-master-detail-layout>\n```\n\nThe component also supports a `detail-placeholder` slot for content shown\nin the detail area when no detail is selected. Unlike the `detail` slot,\nthe placeholder is simply hidden when it doesn't fit next to the master area,\nrather than shown as an overlay:\n\n```html\n<vaadin-master-detail-layout>\n <div>Master content</div>\n <div slot=\"detail-placeholder\">Select an item</div>\n</vaadin-master-detail-layout>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------------|----------------------\n`backdrop` | Backdrop covering the master area in the overlay mode\n`master` | The master area\n`detail` | The detail area\n`detail-placeholder` | The detail placeholder area\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------------|----------------------\n`expand` | Set to `master`, `detail`, or `both`.\n`orientation` | Set to `horizontal` or `vertical` depending on the orientation.\n`has-detail` | Set when the detail content is provided and visible.\n`has-detail-placeholder` | Set when the detail placeholder content is provided.\n`overlay` | Set when columns don't fit and the detail is shown as an overlay.\n`overlay-containment` | Set to `layout` or `viewport`.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------------------------|\n| `--vaadin-master-detail-layout-border-color` |\n| `--vaadin-master-detail-layout-border-width` |\n| `--vaadin-master-detail-layout-detail-background` |\n| `--vaadin-master-detail-layout-detail-shadow` |\n| `--vaadin-overlay-backdrop-background` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
- {
23
- "name": "?forceOverlay",
24
- "description": "When specified, forces the details to be shown as an overlay\n(either as drawer or stack), even if there is enough space for\nmaster and detail to be shown next to each other using the default\n(split) mode.\n\nIn order to enforce the stack mode, use this property together with\n`stackOverlay` property and set both to `true`.",
25
- "value": {
26
- "kind": "expression"
27
- }
28
- },
29
22
  {
30
23
  "name": "?noAnimation",
31
24
  "description": "When true, the layout does not use animated transitions for the detail area.",
@@ -34,57 +27,50 @@
34
27
  }
35
28
  },
36
29
  {
37
- "name": "?stackOverlay",
38
- "description": "When true, the layout in the overlay mode is rendered as a stack,\nmaking detail area fully cover the master area. Otherwise, it is\nrendered as a drawer and has a visual backdrop.\n\nIn order to enforce the stack mode, use this property together with\n`forceOverlay` property and set both to `true`.",
39
- "value": {
40
- "kind": "expression"
41
- }
42
- },
43
- {
44
- "name": ".containment",
45
- "description": "Defines the containment of the detail area when the layout is in\noverlay mode. When set to `layout`, the overlay is confined to the\nlayout. When set to `viewport`, the overlay is confined to the\nbrowser's viewport. Defaults to `layout`.",
30
+ "name": ".detailSize",
31
+ "description": "Size (in CSS length units) to be set on the detail area in\nthe CSS grid layout. If there is not enough space to show\nmaster and detail areas next to each other, the detail area\nis shown as an overlay. Defaults to 15em.",
46
32
  "value": {
47
33
  "kind": "expression"
48
34
  }
49
35
  },
50
36
  {
51
- "name": ".detailMinSize",
52
- "description": "Minimum size (in CSS length units) to be set on the detail area.\nWhen specified, it prevents the detail area from shrinking below\nthis size. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
37
+ "name": ".expand",
38
+ "description": "Controls which column(s) expand to fill available space.\nPossible values: `'master'`, `'detail'`, `'both'`.\nDefaults to `'master'`.",
53
39
  "value": {
54
40
  "kind": "expression"
55
41
  }
56
42
  },
57
43
  {
58
- "name": ".detailSize",
59
- "description": "Fixed size (in CSS length units) to be set on the detail area.\nWhen specified, it prevents the detail area from growing or\nshrinking. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
44
+ "name": ".masterSize",
45
+ "description": "Size (in CSS length units) to be set on the master area in\nthe CSS grid layout. If there is not enough space to show\nmaster and detail areas next to each other, the detail area\nis shown as an overlay. Defaults to 30em.",
60
46
  "value": {
61
47
  "kind": "expression"
62
48
  }
63
49
  },
64
50
  {
65
- "name": ".masterMinSize",
66
- "description": "Minimum size (in CSS length units) to be set on the master area.\nWhen specified, it prevents the master area from shrinking below\nthis size. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
51
+ "name": ".orientation",
52
+ "description": "Define how master and detail areas are shown next to each other,\nand the way how size and min-size properties are applied to them.\nPossible values are: `horizontal` or `vertical`.\nDefaults to horizontal.",
67
53
  "value": {
68
54
  "kind": "expression"
69
55
  }
70
56
  },
71
57
  {
72
- "name": ".masterSize",
73
- "description": "Fixed size (in CSS length units) to be set on the master area.\nWhen specified, it prevents the master area from growing or\nshrinking. If there is not enough space to show master and detail\nareas next to each other, the details are shown as an overlay:\neither as drawer or stack, depending on the `stackOverlay` property.",
58
+ "name": ".overlayContainment",
59
+ "description": "Defines the containment of the detail area when the layout is in\noverlay mode. When set to `layout`, the overlay is confined to the\nlayout. When set to `viewport`, the overlay is confined to the\nbrowser's viewport. Defaults to `layout`.",
74
60
  "value": {
75
61
  "kind": "expression"
76
62
  }
77
63
  },
78
64
  {
79
- "name": ".orientation",
80
- "description": "Define how master and detail areas are shown next to each other,\nand the way how size and min-size properties are applied to them.\nPossible values are: `horizontal` or `vertical`.\nDefaults to horizontal.",
65
+ "name": ".overlaySize",
66
+ "description": "Size (in CSS length units) for the detail area when shown as an\noverlay. When not set, falls back to `detailSize`. Set to `100%`\nto make the detail cover the full layout.",
81
67
  "value": {
82
68
  "kind": "expression"
83
69
  }
84
70
  },
85
71
  {
86
72
  "name": "@backdrop-click",
87
- "description": "backdrop-click\nFired when the user clicks the backdrop in the drawer mode.",
73
+ "description": "backdrop-click\nFired when the user clicks the backdrop in the overlay mode.",
88
74
  "value": {
89
75
  "kind": "expression"
90
76
  }
@@ -1,147 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2025 - 2026 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css } from 'lit';
7
-
8
- export const masterDetailLayoutTransitionStyles = css`
9
- @media (prefers-reduced-motion: no-preference) {
10
- html {
11
- --_vaadin-mdl-dir-multiplier: 1;
12
- --_vaadin-mdl-stack-master-offset: 20%;
13
- --_vaadin-mdl-stack-master-clip-path: inset(0 0 0 var(--_vaadin-mdl-stack-master-offset));
14
- --_vaadin-mdl-easing: cubic-bezier(0.78, 0, 0.22, 1);
15
- }
16
-
17
- html[dir='rtl'] {
18
- --_vaadin-mdl-dir-multiplier: -1;
19
- --_vaadin-mdl-stack-master-clip-path: inset(0 var(--_vaadin-mdl-stack-master-offset) 0 0);
20
- }
21
-
22
- ::view-transition-group(vaadin-mdl-backdrop),
23
- ::view-transition-group(vaadin-mdl-master),
24
- ::view-transition-group(vaadin-mdl-detail) {
25
- animation-duration: 0.4s;
26
- }
27
-
28
- ::view-transition-group(vaadin-mdl-master),
29
- ::view-transition-group(vaadin-mdl-detail) {
30
- animation-timing-function: var(--_vaadin-mdl-easing);
31
- }
32
-
33
- ::view-transition-image-pair(vaadin-mdl-master),
34
- ::view-transition-image-pair(vaadin-mdl-detail),
35
- ::view-transition-new(vaadin-mdl-master),
36
- ::view-transition-new(vaadin-mdl-detail),
37
- ::view-transition-old(vaadin-mdl-master),
38
- ::view-transition-old(vaadin-mdl-detail) {
39
- animation-timing-function: inherit;
40
- }
41
-
42
- /* Needed to promote the backdrop on top the master during the transition */
43
- vaadin-master-detail-layout[transition]::part(backdrop) {
44
- view-transition-name: vaadin-mdl-backdrop;
45
- }
46
-
47
- vaadin-master-detail-layout[transition]:not([transition='replace']):not([drawer], [stack])::part(detail),
48
- vaadin-master-detail-layout[transition]:is([drawer], [stack])::part(_detail-internal) {
49
- view-transition-name: vaadin-mdl-detail;
50
- }
51
-
52
- ::view-transition-group(vaadin-mdl-detail) {
53
- clip-path: inset(0);
54
- }
55
-
56
- ::view-transition-new(vaadin-mdl-detail),
57
- ::view-transition-old(vaadin-mdl-detail) {
58
- animation-name: vaadin-mdl-detail-slide-in;
59
- }
60
-
61
- ::view-transition-old(vaadin-mdl-detail) {
62
- animation-direction: reverse;
63
- }
64
-
65
- @keyframes vaadin-mdl-detail-slide-in {
66
- 0% {
67
- translate: calc((100% + 30px) * var(--_vaadin-mdl-dir-multiplier));
68
- }
69
- }
70
-
71
- vaadin-master-detail-layout[orientation='horizontal'][stack][has-detail]::part(master) {
72
- translate: calc(var(--_vaadin-mdl-stack-master-offset) * var(--_vaadin-mdl-dir-multiplier) * -1);
73
- opacity: 0;
74
- }
75
-
76
- vaadin-master-detail-layout[transition]::part(master) {
77
- view-transition-name: vaadin-mdl-master;
78
- }
79
-
80
- vaadin-master-detail-layout[orientation='horizontal'][stack][transition='add']::part(master) {
81
- view-transition-class: stack-add;
82
- }
83
-
84
- vaadin-master-detail-layout[orientation='horizontal'][stack][transition='remove']::part(master) {
85
- view-transition-class: stack-remove;
86
- }
87
-
88
- ::view-transition-new(vaadin-mdl-master),
89
- ::view-transition-old(vaadin-mdl-master) {
90
- object-fit: none;
91
- object-position: 0% 0;
92
- width: 100%;
93
- height: 100%;
94
- }
95
-
96
- :dir(rtl)::view-transition-new(vaadin-mdl-master),
97
- :dir(rtl)::view-transition-old(vaadin-mdl-master) {
98
- object-position: 100% 0;
99
- }
100
-
101
- ::view-transition-new(vaadin-mdl-master.stack-remove),
102
- ::view-transition-old(vaadin-mdl-master.stack-remove) {
103
- animation-name: vaadin-mdl-master-stack-remove;
104
- clip-path: var(--_vaadin-mdl-stack-master-clip-path);
105
- }
106
-
107
- @keyframes vaadin-mdl-master-stack-remove {
108
- 100% {
109
- clip-path: inset(0);
110
- }
111
- }
112
-
113
- ::view-transition-new(vaadin-mdl-master.stack-add),
114
- ::view-transition-old(vaadin-mdl-master.stack-add) {
115
- animation-name: vaadin-mdl-master-stack-add;
116
- clip-path: inset(0);
117
- }
118
-
119
- @keyframes vaadin-mdl-master-stack-add {
120
- 100% {
121
- clip-path: var(--_vaadin-mdl-stack-master-clip-path);
122
- }
123
- }
124
-
125
- /* prettier-ignore */
126
- vaadin-master-detail-layout[orientation='vertical']:not([drawer], [stack])[transition]:not([transition='replace'])::part(detail),
127
- vaadin-master-detail-layout[orientation='vertical']:is([drawer], [stack])[transition]::part(_detail-internal) {
128
- view-transition-name: vaadin-mdl-detail;
129
- view-transition-class: vertical;
130
- }
131
-
132
- ::view-transition-new(vaadin-mdl-detail.vertical),
133
- ::view-transition-old(vaadin-mdl-detail.vertical) {
134
- animation-name: vaadin-mdl-vertical-detail-slide-in;
135
- }
136
-
137
- ::view-transition-old(vaadin-mdl-detail.vertical) {
138
- animation-direction: reverse;
139
- }
140
-
141
- @keyframes vaadin-mdl-vertical-detail-slide-in {
142
- 0% {
143
- transform: translateY(calc(100% + 30px));
144
- }
145
- }
146
- }
147
- `;