@vaadin/tooltip
Advanced tools
Comparing version 24.6.0-alpha8 to 24.6.0-alpha9
{ | ||
"name": "@vaadin/tooltip", | ||
"version": "24.6.0-alpha8", | ||
"version": "24.6.0-alpha9", | ||
"publishConfig": { | ||
@@ -39,13 +39,13 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.6.0-alpha8", | ||
"@vaadin/component-base": "24.6.0-alpha8", | ||
"@vaadin/overlay": "24.6.0-alpha8", | ||
"@vaadin/popover": "24.6.0-alpha8", | ||
"@vaadin/vaadin-lumo-styles": "24.6.0-alpha8", | ||
"@vaadin/vaadin-material-styles": "24.6.0-alpha8", | ||
"@vaadin/vaadin-themable-mixin": "24.6.0-alpha8", | ||
"@vaadin/a11y-base": "24.6.0-alpha9", | ||
"@vaadin/component-base": "24.6.0-alpha9", | ||
"@vaadin/overlay": "24.6.0-alpha9", | ||
"@vaadin/popover": "24.6.0-alpha9", | ||
"@vaadin/vaadin-lumo-styles": "24.6.0-alpha9", | ||
"@vaadin/vaadin-material-styles": "24.6.0-alpha9", | ||
"@vaadin/vaadin-themable-mixin": "24.6.0-alpha9", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "24.6.0-alpha8", | ||
"@vaadin/chai-plugins": "24.6.0-alpha9", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
@@ -58,3 +58,3 @@ "sinon": "^18.0.0" | ||
], | ||
"gitHead": "a11e1510c4caa08775b202714f5fc1198c22132a" | ||
"gitHead": "e303d77ba20c3089c9998be9a318733d9ec5b53c" | ||
} |
@@ -35,2 +35,4 @@ /** | ||
clearTimeout(cooldownTimeout); | ||
warmUpTimeout = null; | ||
cooldownTimeout = null; | ||
closing.clear(); | ||
@@ -149,8 +151,8 @@ } | ||
if (!this._isOpened()) { | ||
// First tooltip is opened, warm up. | ||
if (!warmedUp) { | ||
if (warmedUp) { | ||
// Warmed up, show the tooltip. | ||
this.__showTooltip(); | ||
} else if (warmUpTimeout == null) { | ||
// Ensure there is no duplicate warm up. | ||
this.__scheduleWarmUp(isFocus); | ||
} else { | ||
// Warmed up, show another tooltip. | ||
this.__showTooltip(); | ||
} | ||
@@ -166,2 +168,7 @@ } | ||
} | ||
// Remove the tooltip from the closing queue. | ||
if (this.isClosing) { | ||
closing.delete(this.host); | ||
} | ||
} | ||
@@ -187,3 +194,5 @@ | ||
__scheduleClose() { | ||
if (this._isOpened()) { | ||
// Do not schedule closing if it was already scheduled | ||
// to avoid overriding reference to the close timeout. | ||
if (this._isOpened() && !this.isClosing) { | ||
closing.add(this.host); | ||
@@ -190,0 +199,0 @@ |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/tooltip", | ||
"version": "24.6.0-alpha8", | ||
"version": "24.6.0-alpha9", | ||
"description-markup": "markdown", | ||
@@ -11,3 +11,3 @@ "contributions": { | ||
"name": "vaadin-tooltip", | ||
"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\n`<vaadin-tooltip>` uses `<vaadin-tooltip-overlay>` internal\nthemable component as the actual visible overlay.\n\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha8/#/elements/vaadin-overlay) documentation\nfor `<vaadin-tooltip-overlay>` parts.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|----------------------------------------\n`position` | Reflects the `position` property value.\n\nNote: the `theme` attribute value set on `<vaadin-tooltip>` is\npropagated to the internal `<vaadin-tooltip-overlay>` component.\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.", | ||
"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\n`<vaadin-tooltip>` uses `<vaadin-tooltip-overlay>` internal\nthemable component as the actual visible overlay.\n\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha9/#/elements/vaadin-overlay) documentation\nfor `<vaadin-tooltip-overlay>` parts.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|----------------------------------------\n`position` | Reflects the `position` property value.\n\nNote: the `theme` attribute value set on `<vaadin-tooltip>` is\npropagated to the internal `<vaadin-tooltip-overlay>` component.\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.", | ||
"attributes": [ | ||
@@ -14,0 +14,0 @@ { |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/tooltip", | ||
"version": "24.6.0-alpha8", | ||
"version": "24.6.0-alpha9", | ||
"description-markup": "markdown", | ||
@@ -19,3 +19,3 @@ "framework": "lit", | ||
"name": "vaadin-tooltip", | ||
"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\n`<vaadin-tooltip>` uses `<vaadin-tooltip-overlay>` internal\nthemable component as the actual visible overlay.\n\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha8/#/elements/vaadin-overlay) documentation\nfor `<vaadin-tooltip-overlay>` parts.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|----------------------------------------\n`position` | Reflects the `position` property value.\n\nNote: the `theme` attribute value set on `<vaadin-tooltip>` is\npropagated to the internal `<vaadin-tooltip-overlay>` component.\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.", | ||
"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\n`<vaadin-tooltip>` uses `<vaadin-tooltip-overlay>` internal\nthemable component as the actual visible overlay.\n\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha9/#/elements/vaadin-overlay) documentation\nfor `<vaadin-tooltip-overlay>` parts.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|----------------------------------------\n`position` | Reflects the `position` property value.\n\nNote: the `theme` attribute value set on `<vaadin-tooltip>` is\npropagated to the internal `<vaadin-tooltip-overlay>` component.\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.", | ||
"extension": true, | ||
@@ -22,0 +22,0 @@ "attributes": [ |
73685
1593
+ Added@vaadin/a11y-base@24.6.0-alpha9(transitive)
+ Added@vaadin/component-base@24.6.0-alpha9(transitive)
+ Added@vaadin/icon@24.6.0-alpha9(transitive)
+ Added@vaadin/lit-renderer@24.6.0-alpha9(transitive)
+ Added@vaadin/overlay@24.6.0-alpha9(transitive)
+ Added@vaadin/popover@24.6.0-alpha9(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.6.0-alpha9(transitive)
+ Added@vaadin/vaadin-material-styles@24.6.0-alpha9(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.6.0-alpha9(transitive)
- Removed@vaadin/a11y-base@24.6.0-alpha8(transitive)
- Removed@vaadin/component-base@24.6.0-alpha8(transitive)
- Removed@vaadin/icon@24.6.0-alpha8(transitive)
- Removed@vaadin/lit-renderer@24.6.0-alpha8(transitive)
- Removed@vaadin/overlay@24.6.0-alpha8(transitive)
- Removed@vaadin/popover@24.6.0-alpha8(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.6.0-alpha8(transitive)
- Removed@vaadin/vaadin-material-styles@24.6.0-alpha8(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.6.0-alpha8(transitive)