@vaadin/tooltip 25.2.0-alpha11 → 25.2.0-alpha13
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 +12 -12
- package/src/vaadin-tooltip-mixin.js +8 -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.2.0-
|
|
3
|
+
"version": "25.2.0-alpha13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.2.0-
|
|
39
|
-
"@vaadin/component-base": "25.2.0-
|
|
40
|
-
"@vaadin/markdown": "25.2.0-
|
|
41
|
-
"@vaadin/overlay": "25.2.0-
|
|
42
|
-
"@vaadin/popover": "25.2.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "25.2.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.2.0-alpha13",
|
|
39
|
+
"@vaadin/component-base": "25.2.0-alpha13",
|
|
40
|
+
"@vaadin/markdown": "25.2.0-alpha13",
|
|
41
|
+
"@vaadin/overlay": "25.2.0-alpha13",
|
|
42
|
+
"@vaadin/popover": "25.2.0-alpha13",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.2.0-alpha13",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/aura": "25.2.0-
|
|
48
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "25.2.0-
|
|
47
|
+
"@vaadin/aura": "25.2.0-alpha13",
|
|
48
|
+
"@vaadin/chai-plugins": "25.2.0-alpha13",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha13",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "25.2.0-
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "25.2.0-alpha13",
|
|
52
52
|
"sinon": "^21.0.2"
|
|
53
53
|
},
|
|
54
54
|
"customElements": "custom-elements.json",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"web-types.json",
|
|
57
57
|
"web-types.lit.json"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "a1052aee053529ffcef1a1e9be2c855ed3e98cb2"
|
|
60
60
|
}
|
|
@@ -237,6 +237,7 @@ export const TooltipMixin = (superClass) =>
|
|
|
237
237
|
*/
|
|
238
238
|
context: {
|
|
239
239
|
type: Object,
|
|
240
|
+
sync: true,
|
|
240
241
|
value: () => {
|
|
241
242
|
return {};
|
|
242
243
|
},
|
|
@@ -702,6 +703,8 @@ export const TooltipMixin = (superClass) =>
|
|
|
702
703
|
async __updateContent() {
|
|
703
704
|
const content = typeof this.generator === 'function' ? this.generator(this.context) : this.text;
|
|
704
705
|
|
|
706
|
+
const oldTextContent = this.__contentNode.textContent;
|
|
707
|
+
|
|
705
708
|
if (this.markdown && content) {
|
|
706
709
|
const helpers = await this.constructor.__importMarkdownHelpers();
|
|
707
710
|
helpers.renderMarkdownToElement(this.__contentNode, content);
|
|
@@ -710,7 +713,11 @@ export const TooltipMixin = (superClass) =>
|
|
|
710
713
|
}
|
|
711
714
|
|
|
712
715
|
this.$.overlay.toggleAttribute('hidden', this.__contentNode.textContent.trim() === '');
|
|
713
|
-
|
|
716
|
+
|
|
717
|
+
const newTextContent = this.__contentNode.textContent;
|
|
718
|
+
if (newTextContent !== oldTextContent) {
|
|
719
|
+
this.dispatchEvent(new CustomEvent('content-changed', { detail: { content: newTextContent } }));
|
|
720
|
+
}
|
|
714
721
|
}
|
|
715
722
|
|
|
716
723
|
/** @private */
|
package/web-types.json
CHANGED