@vaadin/dialog 23.1.2 → 23.1.5

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/dialog",
3
- "version": "23.1.2",
3
+ "version": "23.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,19 +37,19 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/component-base": "^23.1.2",
41
- "@vaadin/lit-renderer": "^23.1.2",
42
- "@vaadin/vaadin-lumo-styles": "^23.1.2",
43
- "@vaadin/vaadin-material-styles": "^23.1.2",
44
- "@vaadin/vaadin-overlay": "^23.1.2",
45
- "@vaadin/vaadin-themable-mixin": "^23.1.2"
40
+ "@vaadin/component-base": "^23.1.5",
41
+ "@vaadin/lit-renderer": "^23.1.5",
42
+ "@vaadin/vaadin-lumo-styles": "^23.1.5",
43
+ "@vaadin/vaadin-material-styles": "^23.1.5",
44
+ "@vaadin/vaadin-overlay": "^23.1.5",
45
+ "@vaadin/vaadin-themable-mixin": "^23.1.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@esm-bundle/chai": "^4.3.4",
49
- "@vaadin/polymer-legacy-adapter": "^23.1.2",
49
+ "@vaadin/polymer-legacy-adapter": "^23.1.5",
50
50
  "@vaadin/testing-helpers": "^0.3.2",
51
- "@vaadin/text-area": "^23.1.2",
51
+ "@vaadin/text-area": "^23.1.5",
52
52
  "sinon": "^13.0.2"
53
53
  },
54
- "gitHead": "6fb205c6e9a761feadfb779dd5d7af96d3102e56"
54
+ "gitHead": "326938919a54353231af25d341ba6076c249afee"
55
55
  }
@@ -15,7 +15,7 @@ declare abstract class AbstractDialogRendererDirective extends LitRendererDirect
15
15
  /**
16
16
  * A property to that the renderer callback will be assigned.
17
17
  */
18
- abstract rendererProperty: 'renderer' | 'headerRenderer' | 'footerRenderer';
18
+ abstract rendererProperty: 'footerRenderer' | 'headerRenderer' | 'renderer';
19
19
 
20
20
  /**
21
21
  * Adds the renderer callback to the dialog.
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
7
7
 
8
8
  export declare function DialogDraggableMixin<T extends Constructor<HTMLElement>>(
9
9
  base: T,
10
- ): T & Constructor<DialogDraggableMixinClass>;
10
+ ): Constructor<DialogDraggableMixinClass> & T;
11
11
 
12
12
  export declare class DialogDraggableMixinClass {
13
13
  /**
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
7
7
 
8
8
  export declare function DialogResizableMixin<T extends Constructor<HTMLElement>>(
9
9
  base: T,
10
- ): T & Constructor<DialogResizableMixinClass>;
10
+ ): Constructor<DialogResizableMixinClass> & T;
11
11
 
12
12
  export declare class DialogResizableMixinClass {
13
13
  /**
@@ -16,7 +16,7 @@ export class DialogOverlay extends OverlayElement {}
16
16
 
17
17
  export type DialogRenderer = (root: HTMLElement, dialog?: Dialog) => void;
18
18
 
19
- export type DialogResizableDirection = 'n' | 'e' | 's' | 'w' | 'nw' | 'ne' | 'se' | 'sw';
19
+ export type DialogResizableDirection = 'e' | 'n' | 'ne' | 'nw' | 's' | 'se' | 'sw' | 'w';
20
20
 
21
21
  export type DialogResizeDimensions = {
22
22
  width: string;
@@ -35,10 +35,10 @@ export type DialogOverlayBounds = {
35
35
  export type DialogOverlayBoundsParam =
36
36
  | DialogOverlayBounds
37
37
  | {
38
- top?: string | number;
39
- left?: string | number;
40
- width?: string | number;
41
- height?: string | number;
38
+ top?: number | string;
39
+ left?: number | string;
40
+ width?: number | string;
41
+ height?: number | string;
42
42
  };
43
43
 
44
44
  /**
@@ -57,7 +57,7 @@ export interface DialogCustomEventMap {
57
57
  resize: DialogResizeEvent;
58
58
  }
59
59
 
60
- export type DialogEventMap = HTMLElementEventMap & DialogCustomEventMap;
60
+ export type DialogEventMap = DialogCustomEventMap & HTMLElementEventMap;
61
61
 
62
62
  /**
63
63
  * `<vaadin-dialog>` is a Web Component for creating customized modal dialogs.
@@ -208,13 +208,13 @@ declare class Dialog extends ThemePropertyMixin(ElementMixin(DialogDraggableMixi
208
208
  addEventListener<K extends keyof DialogEventMap>(
209
209
  type: K,
210
210
  listener: (this: Dialog, ev: DialogEventMap[K]) => void,
211
- options?: boolean | AddEventListenerOptions,
211
+ options?: AddEventListenerOptions | boolean,
212
212
  ): void;
213
213
 
214
214
  removeEventListener<K extends keyof DialogEventMap>(
215
215
  type: K,
216
216
  listener: (this: Dialog, ev: DialogEventMap[K]) => void,
217
- options?: boolean | EventListenerOptions,
217
+ options?: EventListenerOptions | boolean,
218
218
  ): void;
219
219
  }
220
220