@vaadin/popover 25.0.0-alpha13 → 25.0.0-alpha15

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/popover",
3
- "version": "25.0.0-alpha13",
3
+ "version": "25.0.0-alpha15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,23 +36,23 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@vaadin/a11y-base": "25.0.0-alpha13",
40
- "@vaadin/component-base": "25.0.0-alpha13",
41
- "@vaadin/lit-renderer": "25.0.0-alpha13",
42
- "@vaadin/overlay": "25.0.0-alpha13",
43
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha13",
39
+ "@vaadin/a11y-base": "25.0.0-alpha15",
40
+ "@vaadin/component-base": "25.0.0-alpha15",
41
+ "@vaadin/lit-renderer": "25.0.0-alpha15",
42
+ "@vaadin/overlay": "25.0.0-alpha15",
43
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha15",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/chai-plugins": "25.0.0-alpha13",
48
- "@vaadin/test-runner-commands": "25.0.0-alpha13",
47
+ "@vaadin/chai-plugins": "25.0.0-alpha15",
48
+ "@vaadin/test-runner-commands": "25.0.0-alpha15",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha13",
50
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha15",
51
51
  "sinon": "^18.0.0"
52
52
  },
53
53
  "web-types": [
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "182de596226343392135468f021bbce9e6402011"
57
+ "gitHead": "1ad98437e7600769bf66f870929feefbeef16edf"
58
58
  }
@@ -51,6 +51,7 @@ export class PopoverRendererDirective extends LitRendererDirective<Popover, Popo
51
51
  * @param renderer the renderer callback that returns a Lit template.
52
52
  * @param dependencies a single dependency or an array of dependencies
53
53
  * which trigger a re-render when changed.
54
+ * @deprecated Add content elements as children of the popover using default slot
54
55
  */
55
56
  export declare function popoverRenderer(
56
57
  renderer: PopoverLitRenderer,
@@ -56,5 +56,6 @@ export class PopoverRendererDirective extends LitRendererDirective {
56
56
  * @param renderer the renderer callback that returns a Lit template.
57
57
  * @param dependencies a single dependency or an array of dependencies
58
58
  * which trigger a re-render when changed.
59
+ * @deprecated Add content elements as children of the popover using default slot
59
60
  */
60
61
  export const popoverRenderer = directive(PopoverRendererDirective);
@@ -75,6 +75,31 @@ class PopoverOverlay extends PopoverOverlayMixin(
75
75
  get _modalRoot() {
76
76
  return this.owner;
77
77
  }
78
+
79
+ /**
80
+ * Override method from `OverlayMixin` to always add outside
81
+ * click listener so that it can be used by modeless popover.
82
+ * @return {boolean}
83
+ * @protected
84
+ * @override
85
+ */
86
+ _shouldAddGlobalListeners() {
87
+ return true;
88
+ }
89
+
90
+ /**
91
+ * Override method from `OverlayMixin` to prevent closing when clicking on target.
92
+ * Clicking the target will already close the popover when using the click trigger.
93
+ *
94
+ * @override
95
+ * @protected
96
+ */
97
+ _shouldCloseOnOutsideClick(event) {
98
+ if (event.composedPath().includes(this.positionTarget)) {
99
+ return false;
100
+ }
101
+ return super._shouldCloseOnOutsideClick(event);
102
+ }
78
103
  }
79
104
 
80
105
  defineCustomElement(PopoverOverlay);
@@ -109,13 +109,13 @@ declare class Popover extends PopoverPositionMixin(PopoverTargetMixin(ThemePrope
109
109
  autofocus: boolean;
110
110
 
111
111
  /**
112
- * Set the height of the overlay.
112
+ * Set the height of the popover.
113
113
  * If a unitless number is provided, pixels are assumed.
114
114
  */
115
115
  height: string | null;
116
116
 
117
117
  /**
118
- * Set the width of the overlay.
118
+ * Set the width of the popover.
119
119
  * If a unitless number is provided, pixels are assumed.
120
120
  */
121
121
  width: string | null;
@@ -152,12 +152,12 @@ declare class Popover extends PopoverPositionMixin(PopoverTargetMixin(ThemePrope
152
152
  hoverDelay: number;
153
153
 
154
154
  /**
155
- * True if the popover overlay is opened, false otherwise.
155
+ * True if the popover is visible and available for interaction.
156
156
  */
157
157
  opened: boolean;
158
158
 
159
159
  /**
160
- * The `role` attribute value to be set on the overlay.
160
+ * The `role` attribute value to be set on the popover.
161
161
  *
162
162
  * @attr {string} overlay-role
163
163
  * @deprecated Use standard `role` attribute on the popover instead
@@ -165,48 +165,47 @@ declare class Popover extends PopoverPositionMixin(PopoverTargetMixin(ThemePrope
165
165
  overlayRole: string;
166
166
 
167
167
  /**
168
- * Custom function for rendering the content of the overlay.
168
+ * Custom function for rendering the content of the popover.
169
169
  * Receives two arguments:
170
170
  *
171
171
  * - `root` The root container DOM element. Append your content to it.
172
- * - `popover` The reference to the `vaadin-popover` element (overlay host).
172
+ * - `popover` The reference to the `vaadin-popover` element.
173
+ *
174
+ * @deprecated Add content elements as children of the popover using default slot
173
175
  */
174
176
  renderer: PopoverRenderer | null | undefined;
175
177
 
176
178
  /**
177
179
  * When true, the popover prevents interacting with background elements
178
180
  * by setting `pointer-events` style on the document body to `none`.
179
- * This also enables trapping focus inside the overlay.
181
+ * This also enables trapping focus inside the popover.
180
182
  */
181
183
  modal: boolean;
182
184
 
183
185
  /**
184
- * Set to true to disable closing popover overlay on outside click.
186
+ * Set to true to disable closing popover on outside click.
185
187
  *
186
188
  * @attr {boolean} no-close-on-outside-click
187
189
  */
188
190
  noCloseOnOutsideClick: boolean;
189
191
 
190
192
  /**
191
- * Set to true to disable closing popover overlay on Escape press.
192
- * When the popover is modal, pressing Escape anywhere in the
193
- * document closes the overlay. Otherwise, only Escape press
194
- * from the popover itself or its target closes the overlay.
193
+ * Set to true to disable closing popover on Escape press.
195
194
  *
196
195
  * @attr {boolean} no-close-on-esc
197
196
  */
198
197
  noCloseOnEsc: boolean;
199
198
 
200
199
  /**
201
- * Popover trigger mode, used to configure how the overlay is opened or closed.
200
+ * Popover trigger mode, used to configure how the popover is opened or closed.
202
201
  * Could be set to multiple by providing an array, e.g. `trigger = ['hover', 'focus']`.
203
202
  *
204
203
  * Supported values:
205
204
  * - `click` (default) - opens and closes on target click.
206
205
  * - `hover` - opens on target mouseenter, closes on target mouseleave. Moving mouse
207
- * to the popover overlay content keeps the overlay opened.
206
+ * to the popover content keeps the popover opened.
208
207
  * - `focus` - opens on target focus, closes on target blur. Moving focus to the
209
- * popover overlay content keeps the overlay opened.
208
+ * popover content keeps the popover opened.
210
209
  *
211
210
  * In addition to the behavior specified by `trigger`, the popover can be closed by:
212
211
  * - pressing Escape key (unless `noCloseOnEsc` property is true)
@@ -219,7 +218,7 @@ declare class Popover extends PopoverPositionMixin(PopoverTargetMixin(ThemePrope
219
218
  trigger: PopoverTrigger[] | null | undefined;
220
219
 
221
220
  /**
222
- * When true, the overlay has a backdrop (modality curtain) on top of the
221
+ * When true, the popover has a backdrop (modality curtain) on top of the
223
222
  * underlying page content, covering the whole viewport.
224
223
  *
225
224
  * @attr {boolean} with-backdrop
@@ -231,6 +230,8 @@ declare class Popover extends PopoverPositionMixin(PopoverTargetMixin(ThemePrope
231
230
  * While performing the update, it invokes the renderer passed in the `renderer` property.
232
231
  *
233
232
  * It is not guaranteed that the update happens immediately (synchronously) after it is requested.
233
+ *
234
+ * @deprecated Add content elements as children of the popover using default slot
234
235
  */
235
236
  requestContentUpdate(): void;
236
237
 
@@ -252,7 +252,7 @@ class Popover extends PopoverPositionMixin(
252
252
  },
253
253
 
254
254
  /**
255
- * Set the height of the overlay.
255
+ * Set the height of the popover.
256
256
  * If a unitless number is provided, pixels are assumed.
257
257
  */
258
258
  height: {
@@ -260,7 +260,7 @@ class Popover extends PopoverPositionMixin(
260
260
  },
261
261
 
262
262
  /**
263
- * Set the width of the overlay.
263
+ * Set the width of the popover.
264
264
  * If a unitless number is provided, pixels are assumed.
265
265
  */
266
266
  width: {
@@ -305,7 +305,7 @@ class Popover extends PopoverPositionMixin(
305
305
  },
306
306
 
307
307
  /**
308
- * True if the popover overlay is opened, false otherwise.
308
+ * True if the popover is visible and available for interaction.
309
309
  */
310
310
  opened: {
311
311
  type: Boolean,
@@ -325,7 +325,7 @@ class Popover extends PopoverPositionMixin(
325
325
  },
326
326
 
327
327
  /**
328
- * The `role` attribute value to be set on the overlay.
328
+ * The `role` attribute value to be set on the popover.
329
329
  *
330
330
  * @attr {string} overlay-role
331
331
  * @deprecated Use standard `role` attribute on the popover instead
@@ -335,11 +335,13 @@ class Popover extends PopoverPositionMixin(
335
335
  },
336
336
 
337
337
  /**
338
- * Custom function for rendering the content of the overlay.
338
+ * Custom function for rendering the content of the popover.
339
339
  * Receives two arguments:
340
340
  *
341
341
  * - `root` The root container DOM element. Append your content to it.
342
- * - `popover` The reference to the `vaadin-popover` element (overlay host).
342
+ * - `popover` The reference to the `vaadin-popover` element.
343
+ *
344
+ * @deprecated Use the content in the `vaadin-popover` via default slot
343
345
  */
344
346
  renderer: {
345
347
  type: Object,
@@ -348,7 +350,7 @@ class Popover extends PopoverPositionMixin(
348
350
  /**
349
351
  * When true, the popover prevents interacting with background elements
350
352
  * by setting `pointer-events` style on the document body to `none`.
351
- * This also enables trapping focus inside the overlay.
353
+ * This also enables trapping focus inside the popover.
352
354
  */
353
355
  modal: {
354
356
  type: Boolean,
@@ -356,7 +358,7 @@ class Popover extends PopoverPositionMixin(
356
358
  },
357
359
 
358
360
  /**
359
- * Set to true to disable closing popover overlay on outside click.
361
+ * Set to true to disable closing popover on outside click.
360
362
  *
361
363
  * @attr {boolean} no-close-on-outside-click
362
364
  */
@@ -366,10 +368,7 @@ class Popover extends PopoverPositionMixin(
366
368
  },
367
369
 
368
370
  /**
369
- * Set to true to disable closing popover overlay on Escape press.
370
- * When the popover is modal, pressing Escape anywhere in the
371
- * document closes the overlay. Otherwise, only Escape press
372
- * from the popover itself or its target closes the overlay.
371
+ * Set to true to disable closing popover on Escape press.
373
372
  *
374
373
  * @attr {boolean} no-close-on-esc
375
374
  */
@@ -379,15 +378,15 @@ class Popover extends PopoverPositionMixin(
379
378
  },
380
379
 
381
380
  /**
382
- * Popover trigger mode, used to configure how the overlay is opened or closed.
381
+ * Popover trigger mode, used to configure how the popover is opened or closed.
383
382
  * Could be set to multiple by providing an array, e.g. `trigger = ['hover', 'focus']`.
384
383
  *
385
384
  * Supported values:
386
385
  * - `click` (default) - opens and closes on target click.
387
386
  * - `hover` - opens on target mouseenter, closes on target mouseleave. Moving mouse
388
- * to the popover overlay content keeps the overlay opened.
387
+ * to the popover content keeps the popover opened.
389
388
  * - `focus` - opens on target focus, closes on target blur. Moving focus to the
390
- * popover overlay content keeps the overlay opened.
389
+ * popover content keeps the popover opened.
391
390
  *
392
391
  * In addition to the behavior specified by `trigger`, the popover can be closed by:
393
392
  * - pressing Escape key (unless `noCloseOnEsc` property is true)
@@ -403,7 +402,7 @@ class Popover extends PopoverPositionMixin(
403
402
  },
404
403
 
405
404
  /**
406
- * When true, the overlay has a backdrop (modality curtain) on top of the
405
+ * When true, the popover has a backdrop (modality curtain) on top of the
407
406
  * underlying page content, covering the whole viewport.
408
407
  *
409
408
  * @attr {boolean} with-backdrop
@@ -461,7 +460,6 @@ class Popover extends PopoverPositionMixin(
461
460
 
462
461
  this.__generatedId = `vaadin-popover-${generateUniqueId()}`;
463
462
 
464
- this.__onGlobalClick = this.__onGlobalClick.bind(this);
465
463
  this.__onGlobalKeyDown = this.__onGlobalKeyDown.bind(this);
466
464
  this.__onTargetClick = this.__onTargetClick.bind(this);
467
465
  this.__onTargetFocusIn = this.__onTargetFocusIn.bind(this);
@@ -516,6 +514,8 @@ class Popover extends PopoverPositionMixin(
516
514
  * While performing the update, it invokes the renderer passed in the `renderer` property.
517
515
  *
518
516
  * It is not guaranteed that the update happens immediately (synchronously) after it is requested.
517
+ *
518
+ * @deprecated Add content elements as children of the popover using default slot
519
519
  */
520
520
  requestContentUpdate() {
521
521
  if (!this.renderer || !this._overlayElement) {
@@ -574,16 +574,12 @@ class Popover extends PopoverPositionMixin(
574
574
  if (!this.id) {
575
575
  this.id = this.__generatedId;
576
576
  }
577
-
578
- document.documentElement.addEventListener('click', this.__onGlobalClick, true);
579
577
  }
580
578
 
581
579
  /** @protected */
582
580
  disconnectedCallback() {
583
581
  super.disconnectedCallback();
584
582
 
585
- document.documentElement.removeEventListener('click', this.__onGlobalClick, true);
586
-
587
583
  // Automatically close popover when it is removed from DOM
588
584
  // Avoid closing if the popover is just moved in the DOM
589
585
  queueMicrotask(() => {
@@ -655,23 +651,6 @@ class Popover extends PopoverPositionMixin(
655
651
  }
656
652
  }
657
653
 
658
- /**
659
- * Overlay's global outside click listener doesn't work when
660
- * the overlay is modeless, so we use a separate listener.
661
- * @private
662
- */
663
- __onGlobalClick(event) {
664
- if (
665
- this.opened &&
666
- !this.modal &&
667
- !event.composedPath().some((el) => el === this._overlayElement || el === this.target) &&
668
- !this.noCloseOnOutsideClick &&
669
- isLastOverlay(this._overlayElement)
670
- ) {
671
- this._openedStateController.close(true);
672
- }
673
- }
674
-
675
654
  /** @private */
676
655
  __onTargetClick() {
677
656
  if (this.__hasTrigger('click')) {
@@ -692,17 +671,11 @@ class Popover extends PopoverPositionMixin(
692
671
  * @private
693
672
  */
694
673
  __onGlobalKeyDown(event) {
695
- // Modal popover uses overlay logic for Esc key and focus trap.
674
+ // Modal popover uses overlay logic focus trap.
696
675
  if (this.modal) {
697
676
  return;
698
677
  }
699
678
 
700
- if (event.key === 'Escape' && !this.noCloseOnEsc && this.opened && isLastOverlay(this._overlayElement)) {
701
- // Prevent closing parent overlay (e.g. dialog)
702
- event.stopPropagation();
703
- this._openedStateController.close(true);
704
- }
705
-
706
679
  // Include popover content in the Tab order after the target.
707
680
  if (event.key === 'Tab') {
708
681
  if (event.shiftKey) {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/popover",
4
- "version": "25.0.0-alpha13",
4
+ "version": "25.0.0-alpha15",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -67,7 +67,7 @@
67
67
  },
68
68
  {
69
69
  "name": "height",
70
- "description": "Set the height of the overlay.\nIf a unitless number is provided, pixels are assumed.",
70
+ "description": "Set the height of the popover.\nIf a unitless number is provided, pixels are assumed.",
71
71
  "value": {
72
72
  "type": [
73
73
  "string",
@@ -78,7 +78,7 @@
78
78
  },
79
79
  {
80
80
  "name": "width",
81
- "description": "Set the width of the overlay.\nIf a unitless number is provided, pixels are assumed.",
81
+ "description": "Set the width of the popover.\nIf a unitless number is provided, pixels are assumed.",
82
82
  "value": {
83
83
  "type": [
84
84
  "string",
@@ -122,7 +122,7 @@
122
122
  },
123
123
  {
124
124
  "name": "opened",
125
- "description": "True if the popover overlay is opened, false otherwise.",
125
+ "description": "True if the popover is visible and available for interaction.",
126
126
  "value": {
127
127
  "type": [
128
128
  "boolean",
@@ -144,7 +144,7 @@
144
144
  },
145
145
  {
146
146
  "name": "overlay-role",
147
- "description": "The `role` attribute value to be set on the overlay.",
147
+ "description": "The `role` attribute value to be set on the popover.",
148
148
  "value": {
149
149
  "type": [
150
150
  "string",
@@ -155,7 +155,7 @@
155
155
  },
156
156
  {
157
157
  "name": "modal",
158
- "description": "When true, the popover prevents interacting with background elements\nby setting `pointer-events` style on the document body to `none`.\nThis also enables trapping focus inside the overlay.",
158
+ "description": "When true, the popover prevents interacting with background elements\nby setting `pointer-events` style on the document body to `none`.\nThis also enables trapping focus inside the popover.",
159
159
  "value": {
160
160
  "type": [
161
161
  "boolean",
@@ -166,7 +166,7 @@
166
166
  },
167
167
  {
168
168
  "name": "no-close-on-outside-click",
169
- "description": "Set to true to disable closing popover overlay on outside click.",
169
+ "description": "Set to true to disable closing popover on outside click.",
170
170
  "value": {
171
171
  "type": [
172
172
  "boolean",
@@ -177,7 +177,7 @@
177
177
  },
178
178
  {
179
179
  "name": "no-close-on-esc",
180
- "description": "Set to true to disable closing popover overlay on Escape press.\nWhen the popover is modal, pressing Escape anywhere in the\ndocument closes the overlay. Otherwise, only Escape press\nfrom the popover itself or its target closes the overlay.",
180
+ "description": "Set to true to disable closing popover on Escape press.",
181
181
  "value": {
182
182
  "type": [
183
183
  "boolean",
@@ -188,7 +188,7 @@
188
188
  },
189
189
  {
190
190
  "name": "with-backdrop",
191
- "description": "When true, the overlay has a backdrop (modality curtain) on top of the\nunderlying page content, covering the whole viewport.",
191
+ "description": "When true, the popover has a backdrop (modality curtain) on top of the\nunderlying page content, covering the whole viewport.",
192
192
  "value": {
193
193
  "type": [
194
194
  "boolean",
@@ -279,7 +279,7 @@
279
279
  },
280
280
  {
281
281
  "name": "height",
282
- "description": "Set the height of the overlay.\nIf a unitless number is provided, pixels are assumed.",
282
+ "description": "Set the height of the popover.\nIf a unitless number is provided, pixels are assumed.",
283
283
  "value": {
284
284
  "type": [
285
285
  "string",
@@ -290,7 +290,7 @@
290
290
  },
291
291
  {
292
292
  "name": "width",
293
- "description": "Set the width of the overlay.\nIf a unitless number is provided, pixels are assumed.",
293
+ "description": "Set the width of the popover.\nIf a unitless number is provided, pixels are assumed.",
294
294
  "value": {
295
295
  "type": [
296
296
  "string",
@@ -334,7 +334,7 @@
334
334
  },
335
335
  {
336
336
  "name": "opened",
337
- "description": "True if the popover overlay is opened, false otherwise.",
337
+ "description": "True if the popover is visible and available for interaction.",
338
338
  "value": {
339
339
  "type": [
340
340
  "boolean",
@@ -356,7 +356,7 @@
356
356
  },
357
357
  {
358
358
  "name": "overlayRole",
359
- "description": "The `role` attribute value to be set on the overlay.",
359
+ "description": "The `role` attribute value to be set on the popover.",
360
360
  "value": {
361
361
  "type": [
362
362
  "string",
@@ -367,7 +367,7 @@
367
367
  },
368
368
  {
369
369
  "name": "renderer",
370
- "description": "Custom function for rendering the content of the overlay.\nReceives two arguments:\n\n- `root` The root container DOM element. Append your content to it.\n- `popover` The reference to the `vaadin-popover` element (overlay host).",
370
+ "description": "Custom function for rendering the content of the popover.\nReceives two arguments:\n\n- `root` The root container DOM element. Append your content to it.\n- `popover` The reference to the `vaadin-popover` element.",
371
371
  "value": {
372
372
  "type": [
373
373
  "Object",
@@ -378,7 +378,7 @@
378
378
  },
379
379
  {
380
380
  "name": "modal",
381
- "description": "When true, the popover prevents interacting with background elements\nby setting `pointer-events` style on the document body to `none`.\nThis also enables trapping focus inside the overlay.",
381
+ "description": "When true, the popover prevents interacting with background elements\nby setting `pointer-events` style on the document body to `none`.\nThis also enables trapping focus inside the popover.",
382
382
  "value": {
383
383
  "type": [
384
384
  "boolean",
@@ -389,7 +389,7 @@
389
389
  },
390
390
  {
391
391
  "name": "noCloseOnOutsideClick",
392
- "description": "Set to true to disable closing popover overlay on outside click.",
392
+ "description": "Set to true to disable closing popover on outside click.",
393
393
  "value": {
394
394
  "type": [
395
395
  "boolean",
@@ -400,7 +400,7 @@
400
400
  },
401
401
  {
402
402
  "name": "noCloseOnEsc",
403
- "description": "Set to true to disable closing popover overlay on Escape press.\nWhen the popover is modal, pressing Escape anywhere in the\ndocument closes the overlay. Otherwise, only Escape press\nfrom the popover itself or its target closes the overlay.",
403
+ "description": "Set to true to disable closing popover on Escape press.",
404
404
  "value": {
405
405
  "type": [
406
406
  "boolean",
@@ -411,7 +411,7 @@
411
411
  },
412
412
  {
413
413
  "name": "trigger",
414
- "description": "Popover trigger mode, used to configure how the overlay is opened or closed.\nCould be set to multiple by providing an array, e.g. `trigger = ['hover', 'focus']`.\n\nSupported values:\n- `click` (default) - opens and closes on target click.\n- `hover` - opens on target mouseenter, closes on target mouseleave. Moving mouse\nto the popover overlay content keeps the overlay opened.\n- `focus` - opens on target focus, closes on target blur. Moving focus to the\npopover overlay content keeps the overlay opened.\n\nIn addition to the behavior specified by `trigger`, the popover can be closed by:\n- pressing Escape key (unless `noCloseOnEsc` property is true)\n- outside click (unless `noCloseOnOutsideClick` property is true)\n\nWhen setting `trigger` property to `null`, `undefined` or empty array, the popover\ncan be only opened programmatically by changing `opened` property. Note, closing\non Escape press or outside click is still allowed unless explicitly disabled.",
414
+ "description": "Popover trigger mode, used to configure how the popover is opened or closed.\nCould be set to multiple by providing an array, e.g. `trigger = ['hover', 'focus']`.\n\nSupported values:\n- `click` (default) - opens and closes on target click.\n- `hover` - opens on target mouseenter, closes on target mouseleave. Moving mouse\nto the popover content keeps the popover opened.\n- `focus` - opens on target focus, closes on target blur. Moving focus to the\npopover content keeps the popover opened.\n\nIn addition to the behavior specified by `trigger`, the popover can be closed by:\n- pressing Escape key (unless `noCloseOnEsc` property is true)\n- outside click (unless `noCloseOnOutsideClick` property is true)\n\nWhen setting `trigger` property to `null`, `undefined` or empty array, the popover\ncan be only opened programmatically by changing `opened` property. Note, closing\non Escape press or outside click is still allowed unless explicitly disabled.",
415
415
  "value": {
416
416
  "type": [
417
417
  "Array",
@@ -422,7 +422,7 @@
422
422
  },
423
423
  {
424
424
  "name": "withBackdrop",
425
- "description": "When true, the overlay has a backdrop (modality curtain) on top of the\nunderlying page content, covering the whole viewport.",
425
+ "description": "When true, the popover has a backdrop (modality curtain) on top of the\nunderlying page content, covering the whole viewport.",
426
426
  "value": {
427
427
  "type": [
428
428
  "boolean",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/popover",
4
- "version": "25.0.0-alpha13",
4
+ "version": "25.0.0-alpha15",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -28,35 +28,35 @@
28
28
  },
29
29
  {
30
30
  "name": "?opened",
31
- "description": "True if the popover overlay is opened, false otherwise.",
31
+ "description": "True if the popover is visible and available for interaction.",
32
32
  "value": {
33
33
  "kind": "expression"
34
34
  }
35
35
  },
36
36
  {
37
37
  "name": "?modal",
38
- "description": "When true, the popover prevents interacting with background elements\nby setting `pointer-events` style on the document body to `none`.\nThis also enables trapping focus inside the overlay.",
38
+ "description": "When true, the popover prevents interacting with background elements\nby setting `pointer-events` style on the document body to `none`.\nThis also enables trapping focus inside the popover.",
39
39
  "value": {
40
40
  "kind": "expression"
41
41
  }
42
42
  },
43
43
  {
44
44
  "name": "?noCloseOnOutsideClick",
45
- "description": "Set to true to disable closing popover overlay on outside click.",
45
+ "description": "Set to true to disable closing popover on outside click.",
46
46
  "value": {
47
47
  "kind": "expression"
48
48
  }
49
49
  },
50
50
  {
51
51
  "name": "?noCloseOnEsc",
52
- "description": "Set to true to disable closing popover overlay on Escape press.\nWhen the popover is modal, pressing Escape anywhere in the\ndocument closes the overlay. Otherwise, only Escape press\nfrom the popover itself or its target closes the overlay.",
52
+ "description": "Set to true to disable closing popover on Escape press.",
53
53
  "value": {
54
54
  "kind": "expression"
55
55
  }
56
56
  },
57
57
  {
58
58
  "name": "?withBackdrop",
59
- "description": "When true, the overlay has a backdrop (modality curtain) on top of the\nunderlying page content, covering the whole viewport.",
59
+ "description": "When true, the popover has a backdrop (modality curtain) on top of the\nunderlying page content, covering the whole viewport.",
60
60
  "value": {
61
61
  "kind": "expression"
62
62
  }
@@ -98,14 +98,14 @@
98
98
  },
99
99
  {
100
100
  "name": ".height",
101
- "description": "Set the height of the overlay.\nIf a unitless number is provided, pixels are assumed.",
101
+ "description": "Set the height of the popover.\nIf a unitless number is provided, pixels are assumed.",
102
102
  "value": {
103
103
  "kind": "expression"
104
104
  }
105
105
  },
106
106
  {
107
107
  "name": ".width",
108
- "description": "Set the width of the overlay.\nIf a unitless number is provided, pixels are assumed.",
108
+ "description": "Set the width of the popover.\nIf a unitless number is provided, pixels are assumed.",
109
109
  "value": {
110
110
  "kind": "expression"
111
111
  }
@@ -140,21 +140,21 @@
140
140
  },
141
141
  {
142
142
  "name": ".overlayRole",
143
- "description": "The `role` attribute value to be set on the overlay.",
143
+ "description": "The `role` attribute value to be set on the popover.",
144
144
  "value": {
145
145
  "kind": "expression"
146
146
  }
147
147
  },
148
148
  {
149
149
  "name": ".renderer",
150
- "description": "Custom function for rendering the content of the overlay.\nReceives two arguments:\n\n- `root` The root container DOM element. Append your content to it.\n- `popover` The reference to the `vaadin-popover` element (overlay host).",
150
+ "description": "Custom function for rendering the content of the popover.\nReceives two arguments:\n\n- `root` The root container DOM element. Append your content to it.\n- `popover` The reference to the `vaadin-popover` element.",
151
151
  "value": {
152
152
  "kind": "expression"
153
153
  }
154
154
  },
155
155
  {
156
156
  "name": ".trigger",
157
- "description": "Popover trigger mode, used to configure how the overlay is opened or closed.\nCould be set to multiple by providing an array, e.g. `trigger = ['hover', 'focus']`.\n\nSupported values:\n- `click` (default) - opens and closes on target click.\n- `hover` - opens on target mouseenter, closes on target mouseleave. Moving mouse\nto the popover overlay content keeps the overlay opened.\n- `focus` - opens on target focus, closes on target blur. Moving focus to the\npopover overlay content keeps the overlay opened.\n\nIn addition to the behavior specified by `trigger`, the popover can be closed by:\n- pressing Escape key (unless `noCloseOnEsc` property is true)\n- outside click (unless `noCloseOnOutsideClick` property is true)\n\nWhen setting `trigger` property to `null`, `undefined` or empty array, the popover\ncan be only opened programmatically by changing `opened` property. Note, closing\non Escape press or outside click is still allowed unless explicitly disabled.",
157
+ "description": "Popover trigger mode, used to configure how the popover is opened or closed.\nCould be set to multiple by providing an array, e.g. `trigger = ['hover', 'focus']`.\n\nSupported values:\n- `click` (default) - opens and closes on target click.\n- `hover` - opens on target mouseenter, closes on target mouseleave. Moving mouse\nto the popover content keeps the popover opened.\n- `focus` - opens on target focus, closes on target blur. Moving focus to the\npopover content keeps the popover opened.\n\nIn addition to the behavior specified by `trigger`, the popover can be closed by:\n- pressing Escape key (unless `noCloseOnEsc` property is true)\n- outside click (unless `noCloseOnOutsideClick` property is true)\n\nWhen setting `trigger` property to `null`, `undefined` or empty array, the popover\ncan be only opened programmatically by changing `opened` property. Note, closing\non Escape press or outside click is still allowed unless explicitly disabled.",
158
158
  "value": {
159
159
  "kind": "expression"
160
160
  }