@vaadin/tooltip 25.0.0 → 25.1.0-alpha1
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 +11 -11
- package/src/styles/vaadin-tooltip-overlay-base-styles.d.ts +1 -1
- package/src/styles/vaadin-tooltip-overlay-base-styles.js +1 -1
- package/src/vaadin-tooltip-mixin.d.ts +1 -1
- package/src/vaadin-tooltip-mixin.js +11 -1
- package/src/vaadin-tooltip-overlay.js +1 -1
- package/src/vaadin-tooltip.d.ts +1 -1
- package/src/vaadin-tooltip.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/tooltip",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.1.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/a11y-base": "
|
|
38
|
-
"@vaadin/component-base": "
|
|
39
|
-
"@vaadin/markdown": "
|
|
40
|
-
"@vaadin/overlay": "
|
|
41
|
-
"@vaadin/popover": "
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
37
|
+
"@vaadin/a11y-base": "25.1.0-alpha1",
|
|
38
|
+
"@vaadin/component-base": "25.1.0-alpha1",
|
|
39
|
+
"@vaadin/markdown": "25.1.0-alpha1",
|
|
40
|
+
"@vaadin/overlay": "25.1.0-alpha1",
|
|
41
|
+
"@vaadin/popover": "25.1.0-alpha1",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-alpha1",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/chai-plugins": "
|
|
47
|
-
"@vaadin/test-runner-commands": "
|
|
46
|
+
"@vaadin/chai-plugins": "25.1.0-alpha1",
|
|
47
|
+
"@vaadin/test-runner-commands": "25.1.0-alpha1",
|
|
48
48
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-alpha1",
|
|
50
50
|
"sinon": "^21.0.0"
|
|
51
51
|
},
|
|
52
52
|
"web-types": [
|
|
53
53
|
"web-types.json",
|
|
54
54
|
"web-types.lit.json"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "c789cdd350bcd74b280268a83f5475ad7f2f65e1"
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2022 -
|
|
3
|
+
* Copyright (c) 2022 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/component-base/src/styles/style-props.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2022 -
|
|
3
|
+
* Copyright (c) 2022 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2022 -
|
|
3
|
+
* Copyright (c) 2022 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
|
|
@@ -527,6 +527,11 @@ export const TooltipMixin = (superClass) =>
|
|
|
527
527
|
return;
|
|
528
528
|
}
|
|
529
529
|
|
|
530
|
+
// Do not open if there is no content.
|
|
531
|
+
if (this._overlayElement.hasAttribute('hidden')) {
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
|
|
530
535
|
this.__focusInside = true;
|
|
531
536
|
|
|
532
537
|
if (!this.__isTargetHidden && (!this.__hoverInside || !this.opened)) {
|
|
@@ -583,6 +588,11 @@ export const TooltipMixin = (superClass) =>
|
|
|
583
588
|
return;
|
|
584
589
|
}
|
|
585
590
|
|
|
591
|
+
// Do not open if there is no content.
|
|
592
|
+
if (this._overlayElement.hasAttribute('hidden')) {
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
|
|
586
596
|
if (this.__hoverInside) {
|
|
587
597
|
// Already hovering inside the element, do nothing.
|
|
588
598
|
return;
|
package/src/vaadin-tooltip.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2022 -
|
|
3
|
+
* Copyright (c) 2022 - 2026 Vaadin Ltd.
|
|
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';
|
package/src/vaadin-tooltip.js
CHANGED
package/web-types.json
CHANGED