@vaadin/vaadin-overlay 22.0.0-beta1 → 22.0.1

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/vaadin-overlay",
3
- "version": "22.0.0-beta1",
3
+ "version": "22.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,20 +34,20 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/component-base": "22.0.0-beta1",
38
- "@vaadin/vaadin-lumo-styles": "22.0.0-beta1",
39
- "@vaadin/vaadin-material-styles": "22.0.0-beta1",
40
- "@vaadin/vaadin-themable-mixin": "22.0.0-beta1"
37
+ "@vaadin/component-base": "^22.0.1",
38
+ "@vaadin/vaadin-lumo-styles": "^22.0.1",
39
+ "@vaadin/vaadin-material-styles": "^22.0.1",
40
+ "@vaadin/vaadin-themable-mixin": "^22.0.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
44
  "@polymer/iron-overlay-behavior": "^3.0.0",
45
- "@vaadin/button": "22.0.0-beta1",
46
- "@vaadin/radio-group": "22.0.0-beta1",
47
- "@vaadin/testing-helpers": "^0.3.0",
48
- "@vaadin/text-field": "22.0.0-beta1",
45
+ "@vaadin/button": "^22.0.1",
46
+ "@vaadin/radio-group": "^22.0.1",
47
+ "@vaadin/testing-helpers": "^0.3.2",
48
+ "@vaadin/text-field": "^22.0.1",
49
49
  "lit": "^2.0.0",
50
50
  "sinon": "^9.2.1"
51
51
  },
52
- "gitHead": "4cf8a9d0504994200c610e44b3676114fef49c1e"
52
+ "gitHead": "2b0a2bff0369d6020f7cc33ad35506aa2d1f6f68"
53
53
  }
@@ -111,11 +111,6 @@ export type OverlayEventMap = HTMLElementEventMap & OverlayElementEventMap;
111
111
  * @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.
112
112
  */
113
113
  declare class OverlayElement extends ThemableMixin(DirMixin(HTMLElement)) {
114
- /**
115
- * returns true if this is the last one in the opened overlays stack
116
- */
117
- readonly _last: boolean;
118
-
119
114
  /**
120
115
  * When true, the overlay is visible and attached to body.
121
116
  */
@@ -184,38 +179,8 @@ declare class OverlayElement extends ThemableMixin(DirMixin(HTMLElement)) {
184
179
  */
185
180
  restoreFocusOnClose: boolean;
186
181
 
187
- _setTemplateFromNodes(nodes: Element[]): void;
188
-
189
182
  close(sourceEvent?: Event | null): void;
190
183
 
191
- _ensureTemplatized(): void;
192
-
193
- _shouldAnimate(): boolean;
194
-
195
- _enqueueAnimation(type: string, callback: Function | null): void;
196
-
197
- _flushAnimation(type: string): void;
198
-
199
- _animatedOpening(): void;
200
-
201
- _attachOverlay(): void;
202
-
203
- _animatedClosing(): void;
204
-
205
- _detachOverlay(): void;
206
-
207
- _addGlobalListeners(): void;
208
-
209
- _enterModalState(): void;
210
-
211
- _removeGlobalListeners(): void;
212
-
213
- _exitModalState(): void;
214
-
215
- _removeOldContent(): void;
216
-
217
- _stampOverlayTemplate(template: HTMLTemplateElement, instanceProps: object | null): void;
218
-
219
184
  /**
220
185
  * Requests an update for the content of the overlay.
221
186
  * While performing the update, it invokes the renderer passed in the `renderer` property.
@@ -224,18 +189,6 @@ declare class OverlayElement extends ThemableMixin(DirMixin(HTMLElement)) {
224
189
  */
225
190
  requestContentUpdate(): void;
226
191
 
227
- _isFocused(element: Element | null): boolean;
228
-
229
- _focusedIndex(elements: Array<Element | null> | null): number;
230
-
231
- _cycleTab(increment: number, index: number | undefined): void;
232
-
233
- _getFocusableElements(): HTMLElement[];
234
-
235
- _getActiveElement(): Element;
236
-
237
- _deepContains(node: Node): boolean;
238
-
239
192
  /**
240
193
  * Brings the overlay as visually the frontmost one
241
194
  */
@@ -3,10 +3,11 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
7
- import { templatize } from '@polymer/polymer/lib/utils/templatize.js';
8
- import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
9
6
  import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
7
+ import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
8
+ import { templatize } from '@polymer/polymer/lib/utils/templatize.js';
9
+ import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
10
+ import { isIOS } from '@vaadin/component-base/src/browser-utils.js';
10
11
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
11
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
12
13
  import { FocusablesHelper } from './vaadin-focusables-helper.js';
@@ -359,7 +360,7 @@ class OverlayElement extends ThemableMixin(DirMixin(PolymerElement)) {
359
360
  this._boundIronOverlayCanceledListener = this._ironOverlayCanceled.bind(this);
360
361
 
361
362
  /* c8 ignore next 3 */
362
- if (/iPad|iPhone|iPod/.test(navigator.userAgent)) {
363
+ if (isIOS) {
363
364
  this._boundIosResizeListener = () => this._detectIosNavbar();
364
365
  }
365
366
  }
@@ -1,4 +1,4 @@
1
- import { registerStyles } from '@vaadin/vaadin-themable-mixin/register-styles.js';
2
1
  import { overlay } from '@vaadin/vaadin-lumo-styles/mixins/overlay.js';
2
+ import { registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
3
3
 
4
4
  registerStyles('vaadin-overlay', overlay, { moduleId: 'lumo-vaadin-overlay' });
@@ -1,4 +1,4 @@
1
- import { registerStyles } from '@vaadin/vaadin-themable-mixin/register-styles.js';
2
1
  import { overlay } from '@vaadin/vaadin-material-styles/mixins/overlay.js';
2
+ import { registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
3
3
 
4
4
  registerStyles('vaadin-overlay', overlay, { moduleId: 'material-vaadin-overlay' });