@vaadin/tooltip
Advanced tools
Comparing version 24.6.0-rc1 to 24.7.0-alpha1
{ | ||
"name": "@vaadin/tooltip", | ||
"version": "24.6.0-rc1", | ||
"version": "24.7.0-alpha1", | ||
"publishConfig": { | ||
@@ -39,13 +39,13 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.6.0-rc1", | ||
"@vaadin/component-base": "24.6.0-rc1", | ||
"@vaadin/overlay": "24.6.0-rc1", | ||
"@vaadin/popover": "24.6.0-rc1", | ||
"@vaadin/vaadin-lumo-styles": "24.6.0-rc1", | ||
"@vaadin/vaadin-material-styles": "24.6.0-rc1", | ||
"@vaadin/vaadin-themable-mixin": "24.6.0-rc1", | ||
"@vaadin/a11y-base": "24.7.0-alpha1", | ||
"@vaadin/component-base": "24.7.0-alpha1", | ||
"@vaadin/overlay": "24.7.0-alpha1", | ||
"@vaadin/popover": "24.7.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha1", | ||
"@vaadin/vaadin-material-styles": "24.7.0-alpha1", | ||
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha1", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "24.6.0-rc1", | ||
"@vaadin/chai-plugins": "24.7.0-alpha1", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
@@ -58,3 +58,3 @@ "sinon": "^18.0.0" | ||
], | ||
"gitHead": "d62ba309e3286777ad3ea7e015d50a2c4976bb42" | ||
"gitHead": "04be941c9a7b659871c97f31b9cc3ffd7528087b" | ||
} |
@@ -48,2 +48,3 @@ /** | ||
<vaadin-tooltip-overlay | ||
id="overlay" | ||
.renderer="${this._renderer}" | ||
@@ -67,9 +68,2 @@ .owner="${this}" | ||
} | ||
/** @protected */ | ||
ready() { | ||
super.ready(); | ||
this._overlayElement = this.shadowRoot.querySelector('vaadin-tooltip-overlay'); | ||
} | ||
} | ||
@@ -76,0 +70,0 @@ |
@@ -468,2 +468,4 @@ /** | ||
this._overlayElement = this.$.overlay; | ||
this._srLabelController = new SlotController(this, 'sr-label', 'div', { | ||
@@ -470,0 +472,0 @@ initializer: (element) => { |
@@ -51,13 +51,2 @@ /** | ||
/** @protected */ | ||
ready() { | ||
super.ready(); | ||
// When setting `manual` and `opened` attributes, the overlay is already moved to body | ||
// by the time when `ready()` callback of the `vaadin-tooltip` is executed by Polymer, | ||
// so querySelector() would return null. So we use this workaround to set properties. | ||
this.owner = this.__dataHost; | ||
this.owner._overlayElement = this; | ||
} | ||
requestContentUpdate() { | ||
@@ -64,0 +53,0 @@ super.requestContentUpdate(); |
@@ -72,2 +72,4 @@ /** | ||
<vaadin-tooltip-overlay | ||
id="overlay" | ||
owner="[[__overlayOwner]]" | ||
renderer="[[_renderer]]" | ||
@@ -90,2 +92,13 @@ theme$="[[_theme]]" | ||
} | ||
static get properties() { | ||
return { | ||
/** @private */ | ||
__overlayOwner: { | ||
value() { | ||
return this; | ||
}, | ||
}, | ||
}; | ||
} | ||
} | ||
@@ -92,0 +105,0 @@ |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/tooltip", | ||
"version": "24.6.0-rc1", | ||
"version": "24.7.0-alpha1", | ||
"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-rc1/#/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.7.0-alpha1/#/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-rc1", | ||
"version": "24.7.0-alpha1", | ||
"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-rc1/#/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.7.0-alpha1/#/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": [ |
73444
+ Added@vaadin/a11y-base@24.7.0-alpha1(transitive)
+ Added@vaadin/component-base@24.7.0-alpha1(transitive)
+ Added@vaadin/icon@24.7.0-alpha1(transitive)
+ Added@vaadin/lit-renderer@24.7.0-alpha1(transitive)
+ Added@vaadin/overlay@24.7.0-alpha1(transitive)
+ Added@vaadin/popover@24.7.0-alpha1(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.7.0-alpha1(transitive)
+ Added@vaadin/vaadin-material-styles@24.7.0-alpha1(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.7.0-alpha1(transitive)
- Removed@vaadin/a11y-base@24.6.0-rc1(transitive)
- Removed@vaadin/component-base@24.6.0-rc1(transitive)
- Removed@vaadin/icon@24.6.0-rc1(transitive)
- Removed@vaadin/lit-renderer@24.6.0-rc1(transitive)
- Removed@vaadin/overlay@24.6.0-rc1(transitive)
- Removed@vaadin/popover@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-material-styles@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.6.0-rc1(transitive)