@vaadin/popover 25.3.0-alpha6 → 25.3.0-alpha8
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/custom-elements.json +7 -0
- package/package.json +11 -11
- package/src/vaadin-popover-overlay.js +3 -2
- package/src/vaadin-popover.js +11 -1
- package/web-types.json +2 -4
- package/web-types.lit.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -1127,6 +1127,13 @@
|
|
|
1127
1127
|
"description": "The `role` attribute value to be set on the popover.\nWhen not specified, defaults to 'dialog'.",
|
|
1128
1128
|
"fieldName": "role"
|
|
1129
1129
|
},
|
|
1130
|
+
{
|
|
1131
|
+
"type": {
|
|
1132
|
+
"text": "string"
|
|
1133
|
+
},
|
|
1134
|
+
"description": "The theme variants to apply to the component.",
|
|
1135
|
+
"name": "theme"
|
|
1136
|
+
},
|
|
1130
1137
|
{
|
|
1131
1138
|
"name": "trigger",
|
|
1132
1139
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/popover",
|
|
3
|
-
"version": "25.3.0-
|
|
3
|
+
"version": "25.3.0-alpha8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/a11y-base": "25.3.0-
|
|
41
|
-
"@vaadin/component-base": "25.3.0-
|
|
42
|
-
"@vaadin/lit-renderer": "25.3.0-
|
|
43
|
-
"@vaadin/overlay": "25.3.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0-
|
|
40
|
+
"@vaadin/a11y-base": "25.3.0-alpha8",
|
|
41
|
+
"@vaadin/component-base": "25.3.0-alpha8",
|
|
42
|
+
"@vaadin/lit-renderer": "25.3.0-alpha8",
|
|
43
|
+
"@vaadin/overlay": "25.3.0-alpha8",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha8",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/aura": "25.3.0-
|
|
49
|
-
"@vaadin/chai-plugins": "25.3.0-
|
|
50
|
-
"@vaadin/test-runner-commands": "25.3.0-
|
|
48
|
+
"@vaadin/aura": "25.3.0-alpha8",
|
|
49
|
+
"@vaadin/chai-plugins": "25.3.0-alpha8",
|
|
50
|
+
"@vaadin/test-runner-commands": "25.3.0-alpha8",
|
|
51
51
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
52
|
-
"@vaadin/vaadin-lumo-styles": "25.3.0-
|
|
52
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha8",
|
|
53
53
|
"sinon": "^22.0.0"
|
|
54
54
|
},
|
|
55
55
|
"customElements": "custom-elements.json",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"web-types.json",
|
|
58
58
|
"web-types.lit.json"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "ccbb4aaffb63c745c6da0426b532d4d05e47af29"
|
|
61
61
|
}
|
|
@@ -16,6 +16,7 @@ import { PopoverOverlayMixin } from './vaadin-popover-overlay-mixin.js';
|
|
|
16
16
|
/**
|
|
17
17
|
* An element used internally by `<vaadin-popover>`. Not intended to be used separately.
|
|
18
18
|
*
|
|
19
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
19
20
|
* @customElement vaadin-popover-overlay
|
|
20
21
|
* @extends HTMLElement
|
|
21
22
|
* @private
|
|
@@ -78,11 +79,11 @@ class PopoverOverlay extends PopoverOverlayMixin(
|
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
|
-
* Override method from OverlayFocusMixin to use owner as focus
|
|
82
|
+
* Override method from OverlayFocusMixin to use owner as focus root
|
|
82
83
|
* @protected
|
|
83
84
|
* @override
|
|
84
85
|
*/
|
|
85
|
-
get
|
|
86
|
+
get _focusRoot() {
|
|
86
87
|
return this.owner;
|
|
87
88
|
}
|
|
88
89
|
|
package/src/vaadin-popover.js
CHANGED
|
@@ -12,8 +12,9 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
|
12
12
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
13
13
|
import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
getOverlaysOnTop,
|
|
16
16
|
isLastOverlay as isLastOverlayBase,
|
|
17
|
+
isNestedOverlay,
|
|
17
18
|
} from '@vaadin/overlay/src/vaadin-overlay-stack-mixin.js';
|
|
18
19
|
import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
|
|
19
20
|
import { PopoverFocusController } from './vaadin-popover-focus-controller.js';
|
|
@@ -158,6 +159,14 @@ const isLastOverlay = (overlay) => {
|
|
|
158
159
|
return isLastOverlayBase(overlay, filter);
|
|
159
160
|
};
|
|
160
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Returns true if all the overlays shown on top of the given overlay are nested inside it.
|
|
164
|
+
* @param {HTMLElement} overlay
|
|
165
|
+
* @return {boolean}
|
|
166
|
+
* @protected
|
|
167
|
+
*/
|
|
168
|
+
const hasOnlyNestedOverlays = (overlay) => getOverlaysOnTop(overlay).every((el) => isNestedOverlay(overlay, el));
|
|
169
|
+
|
|
161
170
|
/**
|
|
162
171
|
* `<vaadin-popover>` is a Web Component for creating overlays
|
|
163
172
|
* that are positioned next to specified DOM element (target).
|
|
@@ -207,6 +216,7 @@ const isLastOverlay = (overlay) => {
|
|
|
207
216
|
* @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.
|
|
208
217
|
* @fires {CustomEvent} closed - Fired when the popover is closed.
|
|
209
218
|
*
|
|
219
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
210
220
|
* @customElement vaadin-popover
|
|
211
221
|
* @extends HTMLElement
|
|
212
222
|
*/
|
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.3.0-
|
|
4
|
+
"version": "25.3.0-alpha8",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -159,9 +159,7 @@
|
|
|
159
159
|
"description": "The theme variants to apply to the component.",
|
|
160
160
|
"value": {
|
|
161
161
|
"type": [
|
|
162
|
-
"string"
|
|
163
|
-
"null",
|
|
164
|
-
"undefined"
|
|
162
|
+
"string"
|
|
165
163
|
]
|
|
166
164
|
}
|
|
167
165
|
},
|