@vaadin/dialog
Advanced tools
Comparing version 22.0.0-alpha7 to 22.0.0-alpha8
{ | ||
"name": "@vaadin/dialog", | ||
"version": "22.0.0-alpha7", | ||
"version": "22.0.0-alpha8", | ||
"publishConfig": { | ||
@@ -37,16 +37,16 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "22.0.0-alpha7", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha7", | ||
"@vaadin/vaadin-material-styles": "22.0.0-alpha7", | ||
"@vaadin/vaadin-overlay": "22.0.0-alpha7", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha7" | ||
"@vaadin/component-base": "22.0.0-alpha8", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha8", | ||
"@vaadin/vaadin-material-styles": "22.0.0-alpha8", | ||
"@vaadin/vaadin-overlay": "22.0.0-alpha8", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha8" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha7", | ||
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha8", | ||
"@vaadin/testing-helpers": "^0.3.0", | ||
"@vaadin/text-area": "22.0.0-alpha7", | ||
"@vaadin/text-area": "22.0.0-alpha8", | ||
"sinon": "^9.2.1" | ||
}, | ||
"gitHead": "8e89419c6b44a1d225d5859e180d7b35e47ddb52" | ||
"gitHead": "c24468526298ee26ad7f7280b59f6c8789e1f75f" | ||
} |
@@ -0,1 +1,7 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
declare function DialogDraggableMixin<T extends new (...args: any[]) => {}>( | ||
@@ -2,0 +8,0 @@ base: T |
@@ -1,2 +0,6 @@ | ||
import { DialogResizableDirection, DialogResizeDimensions } from './interfaces'; | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
@@ -16,12 +20,4 @@ declare function DialogResizableMixin<T extends new (...args: any[]) => {}>( | ||
resizable: boolean; | ||
_startResize(e: MouseEvent | TouchEvent, direction: DialogResizableDirection): void; | ||
_resize(e: MouseEvent | TouchEvent, resizer: DialogResizableDirection): void; | ||
_stopResize(direction: DialogResizableDirection): void; | ||
_getResizeDimensions(): DialogResizeDimensions; | ||
} | ||
export { DialogResizableMixin, DialogResizableMixinConstructor }; |
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
/** | ||
* Checks if the argument is a touch event and if so, returns a first touch. | ||
@@ -3,0 +9,0 @@ * Otherwise, if the mouse event was passed, returns it as is. |
@@ -0,12 +1,57 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js'; | ||
import { DialogDraggableMixin } from './vaadin-dialog-draggable-mixin.js'; | ||
import { DialogResizableMixin } from './vaadin-dialog-resizable-mixin.js'; | ||
import { DialogEventMap, DialogRenderer } from './interfaces'; | ||
export type DialogRenderer = (root: HTMLElement, dialog?: Dialog) => void; | ||
export type DialogResizableDirection = 'n' | 'e' | 's' | 'w' | 'nw' | 'ne' | 'se' | 'sw'; | ||
export type DialogResizeDimensions = { | ||
width: string; | ||
height: string; | ||
contentWidth: string; | ||
contentHeight: string; | ||
}; | ||
export type DialogOverlayBounds = { | ||
top: number; | ||
left: number; | ||
width: number; | ||
height: number; | ||
}; | ||
export type DialogOverlayBoundsParam = | ||
| DialogOverlayBounds | ||
| { | ||
top?: string | number; | ||
left?: string | number; | ||
width?: string | number; | ||
height?: string | number; | ||
}; | ||
/** | ||
* Fired when the `opened` property changes. | ||
*/ | ||
export type DialogOpenedChangedEvent = CustomEvent<{ value: boolean }>; | ||
/** | ||
* Fired when the dialog resize is finished. | ||
*/ | ||
export type DialogResizeEvent = CustomEvent<DialogResizeDimensions>; | ||
export interface DialogCustomEventMap { | ||
'opened-changed': DialogOpenedChangedEvent; | ||
resize: DialogResizeEvent; | ||
} | ||
export type DialogEventMap = HTMLElementEventMap & DialogCustomEventMap; | ||
/** | ||
* `<vaadin-dialog>` is a Web Component for creating customized modal dialogs. | ||
@@ -101,9 +146,2 @@ * | ||
/** | ||
* Manually invoke existing renderer. | ||
* | ||
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead. | ||
*/ | ||
render(): void; | ||
addEventListener<K extends keyof DialogEventMap>( | ||
@@ -110,0 +148,0 @@ type: K, |
@@ -289,13 +289,2 @@ /** | ||
/** | ||
* Manually invoke existing renderer. | ||
* | ||
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead. | ||
*/ | ||
render() { | ||
console.warn('WARNING: Since Vaadin 21, render() is deprecated. Please use requestContentUpdate() instead.'); | ||
this.requestContentUpdate(); | ||
} | ||
/** @private */ | ||
@@ -302,0 +291,0 @@ _rendererChanged(renderer) { |
export * from './src/vaadin-dialog.js'; | ||
export * from './src/interfaces'; |
46328
17
952
+ Added@vaadin/component-base@22.0.0-alpha8(transitive)
+ Added@vaadin/icon@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-lumo-styles@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-material-styles@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-overlay@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-themable-mixin@22.0.0-alpha8(transitive)
- Removed@vaadin/component-base@22.0.0-alpha7(transitive)
- Removed@vaadin/icon@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-lumo-styles@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-material-styles@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-overlay@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-themable-mixin@22.0.0-alpha7(transitive)