@vaadin/tooltip 25.2.0-alpha1 → 25.2.0-alpha10

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.2.0-alpha1",
3
+ "version": "25.2.0-alpha10",
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-alpha1",
39
- "@vaadin/component-base": "25.2.0-alpha1",
40
- "@vaadin/markdown": "25.2.0-alpha1",
41
- "@vaadin/overlay": "25.2.0-alpha1",
42
- "@vaadin/popover": "25.2.0-alpha1",
43
- "@vaadin/vaadin-themable-mixin": "25.2.0-alpha1",
38
+ "@vaadin/a11y-base": "25.2.0-alpha10",
39
+ "@vaadin/component-base": "25.2.0-alpha10",
40
+ "@vaadin/markdown": "25.2.0-alpha10",
41
+ "@vaadin/overlay": "25.2.0-alpha10",
42
+ "@vaadin/popover": "25.2.0-alpha10",
43
+ "@vaadin/vaadin-themable-mixin": "25.2.0-alpha10",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/aura": "25.2.0-alpha1",
48
- "@vaadin/chai-plugins": "25.2.0-alpha1",
49
- "@vaadin/test-runner-commands": "25.2.0-alpha1",
47
+ "@vaadin/aura": "25.2.0-alpha10",
48
+ "@vaadin/chai-plugins": "25.2.0-alpha10",
49
+ "@vaadin/test-runner-commands": "25.2.0-alpha10",
50
50
  "@vaadin/testing-helpers": "^2.0.0",
51
- "@vaadin/vaadin-lumo-styles": "25.2.0-alpha1",
51
+ "@vaadin/vaadin-lumo-styles": "25.2.0-alpha10",
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": "866f813f89655a351cbd25328eba1fcb317e267d"
59
+ "gitHead": "1303b6a3eeecb44a9d26f2b53cb56d9e906febdf"
60
60
  }
@@ -719,7 +719,7 @@ export const TooltipMixin = (superClass) =>
719
719
 
720
720
  /** @private */
721
721
  __computeAriaTarget(ariaTarget, target) {
722
- const isElementNode = (el) => el && el.nodeType === Node.ELEMENT_NODE;
722
+ const isElementNode = (el) => el?.nodeType === Node.ELEMENT_NODE;
723
723
  const isAriaTargetSet = Array.isArray(ariaTarget) ? ariaTarget.some(isElementNode) : ariaTarget;
724
724
  return ariaTarget === null || isAriaTargetSet ? ariaTarget : target;
725
725
  }
@@ -746,10 +746,4 @@ export const TooltipMixin = (superClass) =>
746
746
  }
747
747
  return this.__markdownHelpers;
748
748
  }
749
-
750
- /**
751
- * Fired when the tooltip text content is changed.
752
- *
753
- * @event content-changed
754
- */
755
749
  };
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.2.0-alpha1",
4
+ "version": "25.2.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,9 +15,7 @@
15
15
  "description": "The delay in milliseconds before the tooltip\nis opened on keyboard focus, when not in manual mode.",
16
16
  "value": {
17
17
  "type": [
18
- "number",
19
- "null",
20
- "undefined"
18
+ "number"
21
19
  ]
22
20
  }
23
21
  },
@@ -26,9 +24,7 @@
26
24
  "description": "The id of the element to be used as `target` value.\nThe element should be in the DOM by the time when\nthe attribute is set, otherwise a warning is shown.",
27
25
  "value": {
28
26
  "type": [
29
- "string",
30
- "null",
31
- "undefined"
27
+ "string"
32
28
  ]
33
29
  }
34
30
  },
@@ -37,9 +33,7 @@
37
33
  "description": "The delay in milliseconds before the tooltip\nis closed on losing hover, when not in manual mode.\nOn blur, the tooltip is closed immediately.",
38
34
  "value": {
39
35
  "type": [
40
- "number",
41
- "null",
42
- "undefined"
36
+ "number"
43
37
  ]
44
38
  }
45
39
  },
@@ -48,9 +42,7 @@
48
42
  "description": "The delay in milliseconds before the tooltip\nis opened on hover, when not in manual mode.",
49
43
  "value": {
50
44
  "type": [
51
- "number",
52
- "null",
53
- "undefined"
45
+ "number"
54
46
  ]
55
47
  }
56
48
  },
@@ -59,9 +51,7 @@
59
51
  "description": "When true, the tooltip is controlled programmatically\ninstead of reacting to focus and mouse events.",
60
52
  "value": {
61
53
  "type": [
62
- "boolean",
63
- "null",
64
- "undefined"
54
+ "boolean"
65
55
  ]
66
56
  }
67
57
  },
@@ -70,9 +60,7 @@
70
60
  "description": "When enabled, the tooltip text is rendered as Markdown.\n\n**Note:** Using Markdown is discouraged if accessibility of the tooltip\ncontent is essential, as semantics of the rendered HTML content\n(headers, lists, ...) will not be conveyed to assistive technologies.",
71
61
  "value": {
72
62
  "type": [
73
- "boolean",
74
- "null",
75
- "undefined"
63
+ "boolean"
76
64
  ]
77
65
  }
78
66
  },
@@ -81,9 +69,7 @@
81
69
  "description": "When true, the tooltip is opened.\nIn manual mode, this can be set programmatically.\nIn automatic mode, this is set automatically by internal logic.",
82
70
  "value": {
83
71
  "type": [
84
- "boolean",
85
- "null",
86
- "undefined"
72
+ "boolean"
87
73
  ]
88
74
  }
89
75
  },
@@ -92,9 +78,7 @@
92
78
  "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`.",
93
79
  "value": {
94
80
  "type": [
95
- "string",
96
- "null",
97
- "undefined"
81
+ "string"
98
82
  ]
99
83
  }
100
84
  },
@@ -103,9 +87,7 @@
103
87
  "description": "String used as a tooltip content.",
104
88
  "value": {
105
89
  "type": [
106
- "string",
107
- "null",
108
- "undefined"
90
+ "string"
109
91
  ]
110
92
  }
111
93
  },
@@ -128,9 +110,7 @@
128
110
  "description": "Element used to link with the `aria-describedby`\nattribute. Supports array of multiple elements.\nWhen not set, defaults to `target`.",
129
111
  "value": {
130
112
  "type": [
131
- "Object",
132
- "null",
133
- "undefined"
113
+ "object"
134
114
  ]
135
115
  }
136
116
  },
@@ -139,9 +119,7 @@
139
119
  "description": "Object with properties passed to `generator` and\n`shouldShow` functions for generating tooltip text\nor detecting whether to show the tooltip or not.",
140
120
  "value": {
141
121
  "type": [
142
- "Object",
143
- "null",
144
- "undefined"
122
+ "object"
145
123
  ]
146
124
  }
147
125
  },
@@ -150,9 +128,7 @@
150
128
  "description": "The delay in milliseconds before the tooltip\nis opened on keyboard focus, when not in manual mode.",
151
129
  "value": {
152
130
  "type": [
153
- "number",
154
- "null",
155
- "undefined"
131
+ "number"
156
132
  ]
157
133
  }
158
134
  },
@@ -161,9 +137,7 @@
161
137
  "description": "The id of the element to be used as `target` value.\nThe element should be in the DOM by the time when\nthe attribute is set, otherwise a warning is shown.",
162
138
  "value": {
163
139
  "type": [
164
- "string",
165
- "null",
166
- "undefined"
140
+ "string"
167
141
  ]
168
142
  }
169
143
  },
@@ -172,9 +146,7 @@
172
146
  "description": "Function used to generate the tooltip content.\nWhen provided, it overrides the `text` property.\nUse the `context` property to provide argument\nthat can be passed to the generator function.",
173
147
  "value": {
174
148
  "type": [
175
- "Object",
176
- "null",
177
- "undefined"
149
+ "object"
178
150
  ]
179
151
  }
180
152
  },
@@ -183,9 +155,7 @@
183
155
  "description": "The delay in milliseconds before the tooltip\nis closed on losing hover, when not in manual mode.\nOn blur, the tooltip is closed immediately.",
184
156
  "value": {
185
157
  "type": [
186
- "number",
187
- "null",
188
- "undefined"
158
+ "number"
189
159
  ]
190
160
  }
191
161
  },
@@ -194,9 +164,7 @@
194
164
  "description": "The delay in milliseconds before the tooltip\nis opened on hover, when not in manual mode.",
195
165
  "value": {
196
166
  "type": [
197
- "number",
198
- "null",
199
- "undefined"
167
+ "number"
200
168
  ]
201
169
  }
202
170
  },
@@ -205,9 +173,7 @@
205
173
  "description": "When true, the tooltip is controlled programmatically\ninstead of reacting to focus and mouse events.",
206
174
  "value": {
207
175
  "type": [
208
- "boolean",
209
- "null",
210
- "undefined"
176
+ "boolean"
211
177
  ]
212
178
  }
213
179
  },
@@ -216,9 +182,7 @@
216
182
  "description": "When enabled, the tooltip text is rendered as Markdown.\n\n**Note:** Using Markdown is discouraged if accessibility of the tooltip\ncontent is essential, as semantics of the rendered HTML content\n(headers, lists, ...) will not be conveyed to assistive technologies.",
217
183
  "value": {
218
184
  "type": [
219
- "boolean",
220
- "null",
221
- "undefined"
185
+ "boolean"
222
186
  ]
223
187
  }
224
188
  },
@@ -227,9 +191,7 @@
227
191
  "description": "When true, the tooltip is opened.\nIn manual mode, this can be set programmatically.\nIn automatic mode, this is set automatically by internal logic.",
228
192
  "value": {
229
193
  "type": [
230
- "boolean",
231
- "null",
232
- "undefined"
194
+ "boolean"
233
195
  ]
234
196
  }
235
197
  },
@@ -238,9 +200,7 @@
238
200
  "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`.",
239
201
  "value": {
240
202
  "type": [
241
- "string",
242
- "null",
243
- "undefined"
203
+ "string"
244
204
  ]
245
205
  }
246
206
  },
@@ -249,9 +209,7 @@
249
209
  "description": "Function used to detect whether to show the tooltip based on a condition,\ncalled every time the tooltip is about to be shown on hover and focus.\nThe function takes two parameters: `target` and `context`, which contain\nvalues of the corresponding tooltip properties at the time of calling.\nThe tooltip is only shown when the function invocation returns `true`.",
250
210
  "value": {
251
211
  "type": [
252
- "Object",
253
- "null",
254
- "undefined"
212
+ "object"
255
213
  ]
256
214
  }
257
215
  },
@@ -260,9 +218,7 @@
260
218
  "description": "Reference to the DOM element used both to trigger the overlay\nby user interaction and to visually position it on the screen.\n\nDefaults to an element referenced with `for` attribute, in\nwhich case it must be located in the same shadow scope.",
261
219
  "value": {
262
220
  "type": [
263
- "Object",
264
- "null",
265
- "undefined"
221
+ "object"
266
222
  ]
267
223
  }
268
224
  },
@@ -271,9 +227,7 @@
271
227
  "description": "String used as a tooltip content.",
272
228
  "value": {
273
229
  "type": [
274
- "string",
275
- "null",
276
- "undefined"
230
+ "string"
277
231
  ]
278
232
  }
279
233
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tooltip",
4
- "version": "25.2.0-alpha1",
4
+ "version": "25.2.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -20,71 +20,71 @@
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
23
- "name": "?manual",
24
- "description": "When true, the tooltip is controlled programmatically\ninstead of reacting to focus and mouse events.",
23
+ "name": ".ariaTarget",
24
+ "description": "Element used to link with the `aria-describedby`\nattribute. Supports array of multiple elements.\nWhen not set, defaults to `target`.",
25
25
  "value": {
26
26
  "kind": "expression"
27
27
  }
28
28
  },
29
29
  {
30
- "name": "?markdown",
31
- "description": "When enabled, the tooltip text is rendered as Markdown.\n\n**Note:** Using Markdown is discouraged if accessibility of the tooltip\ncontent is essential, as semantics of the rendered HTML content\n(headers, lists, ...) will not be conveyed to assistive technologies.",
30
+ "name": ".context",
31
+ "description": "Object with properties passed to `generator` and\n`shouldShow` functions for generating tooltip text\nor detecting whether to show the tooltip or not.",
32
32
  "value": {
33
33
  "kind": "expression"
34
34
  }
35
35
  },
36
36
  {
37
- "name": "?opened",
38
- "description": "When true, the tooltip is opened.\nIn manual mode, this can be set programmatically.\nIn automatic mode, this is set automatically by internal logic.",
37
+ "name": ".focusDelay",
38
+ "description": "The delay in milliseconds before the tooltip\nis opened on keyboard focus, when not in manual mode.",
39
39
  "value": {
40
40
  "kind": "expression"
41
41
  }
42
42
  },
43
43
  {
44
- "name": ".ariaTarget",
45
- "description": "Element used to link with the `aria-describedby`\nattribute. Supports array of multiple elements.\nWhen not set, defaults to `target`.",
44
+ "name": ".for",
45
+ "description": "The id of the element to be used as `target` value.\nThe element should be in the DOM by the time when\nthe attribute is set, otherwise a warning is shown.",
46
46
  "value": {
47
47
  "kind": "expression"
48
48
  }
49
49
  },
50
50
  {
51
- "name": ".context",
52
- "description": "Object with properties passed to `generator` and\n`shouldShow` functions for generating tooltip text\nor detecting whether to show the tooltip or not.",
51
+ "name": ".generator",
52
+ "description": "Function used to generate the tooltip content.\nWhen provided, it overrides the `text` property.\nUse the `context` property to provide argument\nthat can be passed to the generator function.",
53
53
  "value": {
54
54
  "kind": "expression"
55
55
  }
56
56
  },
57
57
  {
58
- "name": ".focusDelay",
59
- "description": "The delay in milliseconds before the tooltip\nis opened on keyboard focus, when not in manual mode.",
58
+ "name": ".hideDelay",
59
+ "description": "The delay in milliseconds before the tooltip\nis closed on losing hover, when not in manual mode.\nOn blur, the tooltip is closed immediately.",
60
60
  "value": {
61
61
  "kind": "expression"
62
62
  }
63
63
  },
64
64
  {
65
- "name": ".for",
66
- "description": "The id of the element to be used as `target` value.\nThe element should be in the DOM by the time when\nthe attribute is set, otherwise a warning is shown.",
65
+ "name": ".hoverDelay",
66
+ "description": "The delay in milliseconds before the tooltip\nis opened on hover, when not in manual mode.",
67
67
  "value": {
68
68
  "kind": "expression"
69
69
  }
70
70
  },
71
71
  {
72
- "name": ".generator",
73
- "description": "Function used to generate the tooltip content.\nWhen provided, it overrides the `text` property.\nUse the `context` property to provide argument\nthat can be passed to the generator function.",
72
+ "name": "?manual",
73
+ "description": "When true, the tooltip is controlled programmatically\ninstead of reacting to focus and mouse events.",
74
74
  "value": {
75
75
  "kind": "expression"
76
76
  }
77
77
  },
78
78
  {
79
- "name": ".hideDelay",
80
- "description": "The delay in milliseconds before the tooltip\nis closed on losing hover, when not in manual mode.\nOn blur, the tooltip is closed immediately.",
79
+ "name": "?markdown",
80
+ "description": "When enabled, the tooltip text is rendered as Markdown.\n\n**Note:** Using Markdown is discouraged if accessibility of the tooltip\ncontent is essential, as semantics of the rendered HTML content\n(headers, lists, ...) will not be conveyed to assistive technologies.",
81
81
  "value": {
82
82
  "kind": "expression"
83
83
  }
84
84
  },
85
85
  {
86
- "name": ".hoverDelay",
87
- "description": "The delay in milliseconds before the tooltip\nis opened on hover, when not in manual mode.",
86
+ "name": "?opened",
87
+ "description": "When true, the tooltip is opened.\nIn manual mode, this can be set programmatically.\nIn automatic mode, this is set automatically by internal logic.",
88
88
  "value": {
89
89
  "kind": "expression"
90
90
  }