@vaadin/tooltip
Advanced tools
Comparing version 24.5.0-alpha9 to 24.5.0-beta1
{ | ||
"name": "@vaadin/tooltip", | ||
"version": "24.5.0-alpha9", | ||
"version": "24.5.0-beta1", | ||
"publishConfig": { | ||
@@ -39,13 +39,13 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.5.0-alpha9", | ||
"@vaadin/component-base": "24.5.0-alpha9", | ||
"@vaadin/overlay": "24.5.0-alpha9", | ||
"@vaadin/popover": "24.5.0-alpha9", | ||
"@vaadin/vaadin-lumo-styles": "24.5.0-alpha9", | ||
"@vaadin/vaadin-material-styles": "24.5.0-alpha9", | ||
"@vaadin/vaadin-themable-mixin": "24.5.0-alpha9", | ||
"@vaadin/a11y-base": "24.5.0-beta1", | ||
"@vaadin/component-base": "24.5.0-beta1", | ||
"@vaadin/overlay": "24.5.0-beta1", | ||
"@vaadin/popover": "24.5.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "24.5.0-beta1", | ||
"@vaadin/vaadin-material-styles": "24.5.0-beta1", | ||
"@vaadin/vaadin-themable-mixin": "24.5.0-beta1", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "24.5.0-alpha9", | ||
"@vaadin/chai-plugins": "24.5.0-beta1", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
@@ -58,3 +58,3 @@ "sinon": "^18.0.0" | ||
], | ||
"gitHead": "804744762f3bec0a2247c4bbcbbb204dbcd78bc0" | ||
"gitHead": "da4b57724d7089e3766d59d01068159322adb2b8" | ||
} |
@@ -5,2 +5,4 @@ # @vaadin/tooltip | ||
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/tooltip) | ||
[![npm version](https://badgen.net/npm/v/@vaadin/tooltip)](https://www.npmjs.com/package/@vaadin/tooltip) | ||
@@ -7,0 +9,0 @@ |
@@ -54,3 +54,3 @@ /** | ||
const tooltip = this.host; | ||
return tooltip.focusDelay != null && tooltip.focusDelay > 0 ? tooltip.focusDelay : defaultFocusDelay; | ||
return tooltip.focusDelay != null && tooltip.focusDelay >= 0 ? tooltip.focusDelay : defaultFocusDelay; | ||
} | ||
@@ -61,3 +61,3 @@ | ||
const tooltip = this.host; | ||
return tooltip.hoverDelay != null && tooltip.hoverDelay > 0 ? tooltip.hoverDelay : defaultHoverDelay; | ||
return tooltip.hoverDelay != null && tooltip.hoverDelay >= 0 ? tooltip.hoverDelay : defaultHoverDelay; | ||
} | ||
@@ -68,3 +68,3 @@ | ||
const tooltip = this.host; | ||
return tooltip.hideDelay != null && tooltip.hideDelay > 0 ? tooltip.hideDelay : defaultHideDelay; | ||
return tooltip.hideDelay != null && tooltip.hideDelay >= 0 ? tooltip.hideDelay : defaultHideDelay; | ||
} | ||
@@ -574,2 +574,6 @@ | ||
__onMouseDown() { | ||
if (this.manual) { | ||
return; | ||
} | ||
this._stateController.close(true); | ||
@@ -576,0 +580,0 @@ } |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/tooltip", | ||
"version": "24.5.0-alpha9", | ||
"version": "24.5.0-beta1", | ||
"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.5.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.", | ||
"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.5.0-beta1/#/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.5.0-alpha9", | ||
"version": "24.5.0-beta1", | ||
"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.5.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.", | ||
"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.5.0-beta1/#/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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73326
1585
63
+ Added@vaadin/a11y-base@24.5.0-beta1(transitive)
+ Added@vaadin/component-base@24.5.0-beta1(transitive)
+ Added@vaadin/icon@24.5.0-beta1(transitive)
+ Added@vaadin/lit-renderer@24.5.0-beta1(transitive)
+ Added@vaadin/overlay@24.5.0-beta1(transitive)
+ Added@vaadin/popover@24.5.0-beta1(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.5.0-beta1(transitive)
+ Added@vaadin/vaadin-material-styles@24.5.0-beta1(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.5.0-beta1(transitive)
- Removed@vaadin/a11y-base@24.5.0-alpha9(transitive)
- Removed@vaadin/component-base@24.5.0-alpha9(transitive)
- Removed@vaadin/icon@24.5.0-alpha9(transitive)
- Removed@vaadin/lit-renderer@24.5.0-alpha9(transitive)
- Removed@vaadin/overlay@24.5.0-alpha9(transitive)
- Removed@vaadin/popover@24.5.0-alpha9(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.5.0-alpha9(transitive)
- Removed@vaadin/vaadin-material-styles@24.5.0-alpha9(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.5.0-alpha9(transitive)
Updated@vaadin/overlay@24.5.0-beta1
Updated@vaadin/popover@24.5.0-beta1