@vaadin/dialog
Advanced tools
Comparing version 23.0.0-alpha1 to 23.0.0-alpha2
{ | ||
"name": "@vaadin/dialog", | ||
"version": "23.0.0-alpha1", | ||
"version": "23.0.0-alpha2", | ||
"publishConfig": { | ||
@@ -38,16 +38,16 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "23.0.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha1", | ||
"@vaadin/vaadin-material-styles": "23.0.0-alpha1", | ||
"@vaadin/vaadin-overlay": "23.0.0-alpha1", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha1" | ||
"@vaadin/component-base": "23.0.0-alpha2", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha2", | ||
"@vaadin/vaadin-material-styles": "23.0.0-alpha2", | ||
"@vaadin/vaadin-overlay": "23.0.0-alpha2", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha2" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/polymer-legacy-adapter": "23.0.0-alpha1", | ||
"@vaadin/polymer-legacy-adapter": "23.0.0-alpha2", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"@vaadin/text-area": "23.0.0-alpha1", | ||
"@vaadin/text-area": "23.0.0-alpha2", | ||
"sinon": "^9.2.1" | ||
}, | ||
"gitHead": "fbcb07328fdf88260e3b461088d207426b21c710" | ||
"gitHead": "070f586dead02ca41b66717820c647f48bf1665f" | ||
} |
@@ -74,8 +74,10 @@ /** | ||
const isDraggable = e.composedPath().some((node, index) => { | ||
if (node.classList) { | ||
const isDraggableNode = node.classList.contains(this.__dragHandleClassName || 'draggable'); | ||
const isDraggableLeafOnly = node.classList.contains('draggable-leaf-only'); | ||
const isLeafNode = index === 0; | ||
return (isDraggableLeafOnly && isLeafNode) || (isDraggableNode && (!isDraggableLeafOnly || isLeafNode)); | ||
if (!node.classList) { | ||
return false; | ||
} | ||
const isDraggableNode = node.classList.contains(this.__dragHandleClassName || 'draggable'); | ||
const isDraggableLeafOnly = node.classList.contains('draggable-leaf-only'); | ||
const isLeafNode = index === 0; | ||
return (isDraggableLeafOnly && isLeafNode) || (isDraggableNode && (!isDraggableLeafOnly || isLeafNode)); | ||
}); | ||
@@ -82,0 +84,0 @@ |
@@ -214,2 +214,4 @@ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
} | ||
default: | ||
break; | ||
} | ||
@@ -216,0 +218,0 @@ }); |
@@ -7,2 +7,3 @@ /** | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { OverlayElement } from '@vaadin/vaadin-overlay/src/vaadin-overlay.js'; | ||
import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js'; | ||
@@ -12,2 +13,7 @@ import { DialogDraggableMixin } from './vaadin-dialog-draggable-mixin.js'; | ||
/** | ||
* An element used internally by `<vaadin-dialog>`. Not intended to be used separately. | ||
*/ | ||
export class DialogOverlay extends OverlayElement {} | ||
export type DialogRenderer = (root: HTMLElement, dialog?: Dialog) => void; | ||
@@ -164,2 +170,3 @@ | ||
'vaadin-dialog': Dialog; | ||
'vaadin-dialog-overlay': DialogOverlay; | ||
} | ||
@@ -166,0 +173,0 @@ } |
@@ -43,3 +43,3 @@ /** | ||
*/ | ||
class DialogOverlay extends mixinBehaviors(IronResizableBehavior, OverlayElement) { | ||
export class DialogOverlay extends mixinBehaviors(IronResizableBehavior, OverlayElement) { | ||
static get is() { | ||
@@ -77,3 +77,3 @@ return 'vaadin-dialog-overlay'; | ||
const overlay = this.$.overlay; | ||
const parsedBounds = Object.assign({}, bounds); | ||
const parsedBounds = { ...bounds }; | ||
@@ -80,0 +80,0 @@ if (overlay.style.position !== 'absolute') { |
46640
953
+ Added@vaadin/component-base@23.0.0-alpha2(transitive)
+ Added@vaadin/icon@23.0.0-alpha2(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.0.0-alpha2(transitive)
+ Added@vaadin/vaadin-material-styles@23.0.0-alpha2(transitive)
+ Added@vaadin/vaadin-overlay@23.0.0-alpha2(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.0.0-alpha2(transitive)
- Removed@vaadin/component-base@23.0.0-alpha1(transitive)
- Removed@vaadin/icon@23.0.0-alpha1(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.0.0-alpha1(transitive)
- Removed@vaadin/vaadin-material-styles@23.0.0-alpha1(transitive)
- Removed@vaadin/vaadin-overlay@23.0.0-alpha1(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.0.0-alpha1(transitive)