@vaadin/tooltip 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/tooltip",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
38
|
-
"@vaadin/component-base": "25.0.0-
|
|
39
|
-
"@vaadin/overlay": "25.0.0-
|
|
40
|
-
"@vaadin/popover": "25.0.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
37
|
+
"@vaadin/a11y-base": "25.0.0-alpha14",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-alpha14",
|
|
39
|
+
"@vaadin/overlay": "25.0.0-alpha14",
|
|
40
|
+
"@vaadin/popover": "25.0.0-alpha14",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha14",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
46
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
45
|
+
"@vaadin/chai-plugins": "25.0.0-alpha14",
|
|
46
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha14",
|
|
47
47
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
48
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
48
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha14",
|
|
49
49
|
"sinon": "^18.0.0"
|
|
50
50
|
},
|
|
51
51
|
"web-types": [
|
|
52
52
|
"web-types.json",
|
|
53
53
|
"web-types.lit.json"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "8ebeeeca4b5b6564eff954d6582d0d6760464e51"
|
|
56
56
|
}
|
|
@@ -23,7 +23,8 @@ export const tooltipOverlayStyles = css`
|
|
|
23
23
|
line-height: var(--vaadin-tooltip-line-height, inherit);
|
|
24
24
|
border: 0;
|
|
25
25
|
box-shadow:
|
|
26
|
-
0 0 0 var(--vaadin-tooltip-border-width, 1px)
|
|
26
|
+
0 0 0 var(--vaadin-tooltip-border-width, 1px)
|
|
27
|
+
var(--vaadin-tooltip-border-color, var(--vaadin-border-color-subtle)),
|
|
27
28
|
var(--vaadin-tooltip-box-shadow, 0 3px 8px -1px rgba(0, 0, 0, 0.2));
|
|
28
29
|
}
|
|
29
30
|
|
|
@@ -53,7 +54,7 @@ export const tooltipOverlayStyles = css`
|
|
|
53
54
|
|
|
54
55
|
@media (forced-colors: active) {
|
|
55
56
|
[part='overlay'] {
|
|
56
|
-
border: 1px dashed;
|
|
57
|
+
border: 1px dashed !important;
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
`;
|
|
@@ -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 type { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
|
-
import type { OverlayClassMixinClass } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
8
7
|
import type { PopoverPositionMixinClass } from '@vaadin/popover/src/vaadin-popover-position-mixin.js';
|
|
9
8
|
import type { PopoverTargetMixinClass } from '@vaadin/popover/src/vaadin-popover-target-mixin.js';
|
|
10
9
|
|
|
@@ -15,11 +14,7 @@ export type { PopoverPosition as TooltipPosition } from '@vaadin/popover/src/vaa
|
|
|
15
14
|
*/
|
|
16
15
|
export declare function TooltipMixin<T extends Constructor<HTMLElement>>(
|
|
17
16
|
base: T,
|
|
18
|
-
): Constructor<
|
|
19
|
-
Constructor<PopoverPositionMixinClass> &
|
|
20
|
-
Constructor<PopoverTargetMixinClass> &
|
|
21
|
-
Constructor<TooltipMixinClass> &
|
|
22
|
-
T;
|
|
17
|
+
): Constructor<PopoverPositionMixinClass> & Constructor<PopoverTargetMixinClass> & Constructor<TooltipMixinClass> & T;
|
|
23
18
|
|
|
24
19
|
export declare class TooltipMixinClass {
|
|
25
20
|
/**
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
|
|
7
7
|
import { addValueToAttribute, removeValueFromAttribute } from '@vaadin/component-base/src/dom-utils.js';
|
|
8
|
-
import { OverlayClassMixin } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
9
8
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
10
9
|
import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
|
|
11
10
|
import { PopoverPositionMixin } from '@vaadin/popover/src/vaadin-popover-position-mixin.js';
|
|
@@ -224,12 +223,11 @@ class TooltipStateController {
|
|
|
224
223
|
* A mixin providing common tooltip functionality.
|
|
225
224
|
*
|
|
226
225
|
* @polymerMixin
|
|
227
|
-
* @mixes OverlayClassMixin
|
|
228
226
|
* @mixes PopoverPositionMixin
|
|
229
227
|
* @mixes PopoverTargetMixin
|
|
230
228
|
*/
|
|
231
229
|
export const TooltipMixin = (superClass) =>
|
|
232
|
-
class TooltipMixinClass extends PopoverPositionMixin(PopoverTargetMixin(
|
|
230
|
+
class TooltipMixinClass extends PopoverPositionMixin(PopoverTargetMixin(superClass)) {
|
|
233
231
|
static get properties() {
|
|
234
232
|
return {
|
|
235
233
|
/**
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/tooltip",
|
|
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-tooltip",
|
|
11
11
|
"description": "`<vaadin-tooltip>` is a Web Component for creating tooltips.\n\n```html\n<button id=\"confirm\">Confirm</button>\n<vaadin-tooltip text=\"Click to save changes\" for=\"confirm\"></vaadin-tooltip>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------- | ---------------\n`overlay` | The overlay element\n`content` | The overlay content element\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-tooltip>` element:\n\nCustom CSS property | Description\n---------------------------------|-------------\n`--vaadin-tooltip-offset-top` | Used as an offset when the tooltip is aligned vertically below the target\n`--vaadin-tooltip-offset-bottom` | Used as an offset when the tooltip is aligned vertically above the target\n`--vaadin-tooltip-offset-start` | Used as an offset when the tooltip is aligned horizontally after the target\n`--vaadin-tooltip-offset-end` | Used as an offset when the tooltip 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`.",
|
|
@@ -123,17 +112,6 @@
|
|
|
123
112
|
],
|
|
124
113
|
"js": {
|
|
125
114
|
"properties": [
|
|
126
|
-
{
|
|
127
|
-
"name": "overlayClass",
|
|
128
|
-
"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.",
|
|
129
|
-
"value": {
|
|
130
|
-
"type": [
|
|
131
|
-
"string",
|
|
132
|
-
"null",
|
|
133
|
-
"undefined"
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
115
|
{
|
|
138
116
|
"name": "position",
|
|
139
117
|
"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/tooltip",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha14",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -33,13 +33,6 @@
|
|
|
33
33
|
"kind": "expression"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
{
|
|
37
|
-
"name": ".overlayClass",
|
|
38
|
-
"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.",
|
|
39
|
-
"value": {
|
|
40
|
-
"kind": "expression"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
36
|
{
|
|
44
37
|
"name": ".position",
|
|
45
38
|
"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`.",
|