@vaadin/popover 25.0.0-alpha12 → 25.0.0-alpha14
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/popover",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
40
|
-
"@vaadin/component-base": "25.0.0-
|
|
41
|
-
"@vaadin/lit-renderer": "25.0.0-
|
|
42
|
-
"@vaadin/overlay": "25.0.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
39
|
+
"@vaadin/a11y-base": "25.0.0-alpha14",
|
|
40
|
+
"@vaadin/component-base": "25.0.0-alpha14",
|
|
41
|
+
"@vaadin/lit-renderer": "25.0.0-alpha14",
|
|
42
|
+
"@vaadin/overlay": "25.0.0-alpha14",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha14",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
47
|
+
"@vaadin/chai-plugins": "25.0.0-alpha14",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha14",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha14",
|
|
51
51
|
"sinon": "^18.0.0"
|
|
52
52
|
},
|
|
53
53
|
"web-types": [
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "8ebeeeca4b5b6564eff954d6582d0d6760464e51"
|
|
58
58
|
}
|
|
@@ -36,7 +36,7 @@ const popoverOverlay = css`
|
|
|
36
36
|
overflow: visible;
|
|
37
37
|
max-height: 100%;
|
|
38
38
|
border: var(--_border-width) solid
|
|
39
|
-
var(--vaadin-popover-border-color, var(--vaadin-overlay-border-color, var(--vaadin-border-color)));
|
|
39
|
+
var(--vaadin-popover-border-color, var(--vaadin-overlay-border-color, var(--vaadin-border-color-subtle)));
|
|
40
40
|
background: var(--vaadin-popover-background, var(--vaadin-overlay-background, var(--vaadin-background-color)));
|
|
41
41
|
box-shadow: var(--vaadin-popover-box-shadow, var(--vaadin-overlay-box-shadow, 0 8px 24px -4px rgba(0, 0, 0, 0.3)));
|
|
42
42
|
}
|
|
@@ -46,7 +46,7 @@ const popoverOverlay = css`
|
|
|
46
46
|
overscroll-behavior: contain;
|
|
47
47
|
box-sizing: border-box;
|
|
48
48
|
max-height: 100%;
|
|
49
|
-
padding: var(--vaadin-popover-padding, var(--vaadin-padding));
|
|
49
|
+
padding: var(--vaadin-popover-padding, var(--vaadin-padding-s));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
:host([theme~='no-padding']) [part='content'] {
|
package/src/vaadin-popover.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
7
|
-
import { OverlayClassMixin } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
8
7
|
import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
|
|
9
8
|
import { PopoverPositionMixin } from './vaadin-popover-position-mixin.js';
|
|
10
9
|
import { PopoverTargetMixin } from './vaadin-popover-target-mixin.js';
|
|
@@ -68,9 +67,7 @@ export type PopoverEventMap = HTMLElementEventMap & PopoverCustomEventMap;
|
|
|
68
67
|
* @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.
|
|
69
68
|
* @fires {CustomEvent} closed - Fired when the popover is closed.
|
|
70
69
|
*/
|
|
71
|
-
declare class Popover extends PopoverPositionMixin(
|
|
72
|
-
PopoverTargetMixin(OverlayClassMixin(ThemePropertyMixin(ElementMixin(HTMLElement)))),
|
|
73
|
-
) {
|
|
70
|
+
declare class Popover extends PopoverPositionMixin(PopoverTargetMixin(ThemePropertyMixin(ElementMixin(HTMLElement)))) {
|
|
74
71
|
/**
|
|
75
72
|
* Sets the default focus delay to be used by all popover instances,
|
|
76
73
|
* except for those that have focus delay configured using property.
|
package/src/vaadin-popover.js
CHANGED
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
} from '@vaadin/a11y-base/src/focus-utils.js';
|
|
15
15
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
16
16
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
17
|
-
import { OverlayClassMixin } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
18
17
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
19
18
|
import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
|
|
20
19
|
import { isLastOverlay as isLastOverlayBase } from '@vaadin/overlay/src/vaadin-overlay-stack-mixin.js';
|
|
@@ -203,13 +202,12 @@ const isLastOverlay = (overlay) => {
|
|
|
203
202
|
* @customElement
|
|
204
203
|
* @extends HTMLElement
|
|
205
204
|
* @mixes ElementMixin
|
|
206
|
-
* @mixes OverlayClassMixin
|
|
207
205
|
* @mixes PopoverPositionMixin
|
|
208
206
|
* @mixes PopoverTargetMixin
|
|
209
207
|
* @mixes ThemePropertyMixin
|
|
210
208
|
*/
|
|
211
209
|
class Popover extends PopoverPositionMixin(
|
|
212
|
-
PopoverTargetMixin(
|
|
210
|
+
PopoverTargetMixin(ThemePropertyMixin(ElementMixin(PolylitMixin(LitElement)))),
|
|
213
211
|
) {
|
|
214
212
|
static get is() {
|
|
215
213
|
return 'vaadin-popover';
|
|
@@ -313,6 +311,7 @@ class Popover extends PopoverPositionMixin(
|
|
|
313
311
|
type: Boolean,
|
|
314
312
|
value: false,
|
|
315
313
|
notify: true,
|
|
314
|
+
reflectToAttribute: true,
|
|
316
315
|
observer: '__openedChanged',
|
|
317
316
|
},
|
|
318
317
|
|
|
@@ -989,7 +988,7 @@ class Popover extends PopoverPositionMixin(
|
|
|
989
988
|
}
|
|
990
989
|
|
|
991
990
|
// Restore pointer-events set when opening on hover.
|
|
992
|
-
if (this.modal && this.target.style.pointerEvents) {
|
|
991
|
+
if (this.modal && this.target && this.target.style.pointerEvents) {
|
|
993
992
|
this.target.style.pointerEvents = '';
|
|
994
993
|
}
|
|
995
994
|
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/popover",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha14",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
"name": "vaadin-popover",
|
|
11
11
|
"description": "`<vaadin-popover>` is a Web Component for creating overlays\nthat are positioned next to specified DOM element (target).\n\nUnlike `<vaadin-tooltip>`, the popover supports rich content\nthat can be provided by using `renderer` function.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------|-------------------------------------------\n`backdrop` | Backdrop of the overlay\n`overlay` | The overlay container\n`content` | The overlay content\n`arrow` | Optional arrow pointing to the target when using `theme=\"arrow\"`\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|----------------------------------------\n`position` | Reflects the `position` property value.\n\n### Custom CSS Properties\n\nThe following custom CSS properties are available on the `<vaadin-popover>` element:\n\nCustom CSS property | Description\n---------------------------------|-------------\n`--vaadin-popover-offset-top` | Used as an offset when the popover is aligned vertically below the target\n`--vaadin-popover-offset-bottom` | Used as an offset when the popover is aligned vertically above the target\n`--vaadin-popover-offset-start` | Used as an offset when the popover is aligned horizontally after the target\n`--vaadin-popover-offset-end` | Used as an offset when the popover is aligned horizontally before the target\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
|
-
{
|
|
14
|
-
"name": "overlay-class",
|
|
15
|
-
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
|
|
16
|
-
"value": {
|
|
17
|
-
"type": [
|
|
18
|
-
"string",
|
|
19
|
-
"null",
|
|
20
|
-
"undefined"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
13
|
{
|
|
25
14
|
"name": "position",
|
|
26
15
|
"description": "Position of the overlay with respect to the target.\nSupported values: `top-start`, `top`, `top-end`,\n`bottom-start`, `bottom`, `bottom-end`, `start-top`,\n`start`, `start-bottom`, `end-top`, `end`, `end-bottom`.",
|
|
@@ -222,17 +211,6 @@
|
|
|
222
211
|
],
|
|
223
212
|
"js": {
|
|
224
213
|
"properties": [
|
|
225
|
-
{
|
|
226
|
-
"name": "overlayClass",
|
|
227
|
-
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
|
|
228
|
-
"value": {
|
|
229
|
-
"type": [
|
|
230
|
-
"string",
|
|
231
|
-
"null",
|
|
232
|
-
"undefined"
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
214
|
{
|
|
237
215
|
"name": "position",
|
|
238
216
|
"description": "Position of the overlay with respect to the target.\nSupported values: `top-start`, `top`, `top-end`,\n`bottom-start`, `bottom`, `bottom-end`, `start-top`,\n`start`, `start-bottom`, `end-top`, `end`, `end-bottom`.",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/popover",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha14",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -61,13 +61,6 @@
|
|
|
61
61
|
"kind": "expression"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
{
|
|
65
|
-
"name": ".overlayClass",
|
|
66
|
-
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
|
|
67
|
-
"value": {
|
|
68
|
-
"kind": "expression"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
64
|
{
|
|
72
65
|
"name": ".position",
|
|
73
66
|
"description": "Position of the overlay with respect to the target.\nSupported values: `top-start`, `top`, `top-end`,\n`bottom-start`, `bottom`, `bottom-end`, `start-top`,\n`start`, `start-bottom`, `end-top`, `end`, `end-bottom`.",
|