@vaadin/dialog 22.0.13 → 22.0.16
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 +9 -9
- package/src/vaadin-dialog-draggable-mixin.d.ts +1 -1
- package/src/vaadin-dialog-draggable-mixin.js +4 -4
- package/src/vaadin-dialog-resizable-mixin.d.ts +1 -1
- package/src/vaadin-dialog-resizable-mixin.js +4 -4
- package/src/vaadin-dialog.d.ts +2 -2
- package/src/vaadin-dialog.js +8 -8
- package/theme/lumo/vaadin-dialog.js +1 -0
- package/theme/material/vaadin-dialog-styles.js +1 -1
- package/theme/material/vaadin-dialog.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/dialog",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
36
36
|
"@polymer/iron-resizable-behavior": "^3.0.0",
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/component-base": "^22.0.
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "^22.0.
|
|
40
|
-
"@vaadin/vaadin-material-styles": "^22.0.
|
|
41
|
-
"@vaadin/vaadin-overlay": "^22.0.
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "^22.0.
|
|
38
|
+
"@vaadin/component-base": "^22.0.16",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.16",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "^22.0.16",
|
|
41
|
+
"@vaadin/vaadin-overlay": "^22.0.16",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.16"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
|
-
"@vaadin/polymer-legacy-adapter": "^22.0.
|
|
46
|
+
"@vaadin/polymer-legacy-adapter": "^22.0.16",
|
|
47
47
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
48
|
-
"@vaadin/text-area": "^22.0.
|
|
48
|
+
"@vaadin/text-area": "^22.0.16",
|
|
49
49
|
"sinon": "^9.2.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "dac6f243594ea700bb796d3b41d7b17736d90be8"
|
|
52
52
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
7
|
|
|
8
8
|
export declare function DialogDraggableMixin<T extends Constructor<HTMLElement>>(
|
|
9
|
-
base: T
|
|
9
|
+
base: T,
|
|
10
10
|
): T & Constructor<DialogDraggableMixinClass>;
|
|
11
11
|
|
|
12
12
|
export declare class DialogDraggableMixinClass {
|
|
@@ -28,19 +28,19 @@ export const DialogDraggableMixin = (superClass) =>
|
|
|
28
28
|
draggable: {
|
|
29
29
|
type: Boolean,
|
|
30
30
|
value: false,
|
|
31
|
-
reflectToAttribute: true
|
|
31
|
+
reflectToAttribute: true,
|
|
32
32
|
},
|
|
33
33
|
|
|
34
34
|
/** @private */
|
|
35
35
|
_touchDevice: {
|
|
36
36
|
type: Boolean,
|
|
37
|
-
value: isTouch
|
|
37
|
+
value: isTouch,
|
|
38
38
|
},
|
|
39
39
|
|
|
40
40
|
/* TODO: Expose as a public property (check naming) */
|
|
41
41
|
__dragHandleClassName: {
|
|
42
|
-
type: String
|
|
43
|
-
}
|
|
42
|
+
type: String,
|
|
43
|
+
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
7
|
|
|
8
8
|
export declare function DialogResizableMixin<T extends Constructor<HTMLElement>>(
|
|
9
|
-
base: T
|
|
9
|
+
base: T,
|
|
10
10
|
): T & Constructor<DialogResizableMixinClass>;
|
|
11
11
|
|
|
12
12
|
export declare class DialogResizableMixinClass {
|
|
@@ -99,7 +99,7 @@ registerStyles(
|
|
|
99
99
|
cursor: nwse-resize;
|
|
100
100
|
}
|
|
101
101
|
`,
|
|
102
|
-
{ moduleId: 'vaadin-dialog-resizable-overlay-styles' }
|
|
102
|
+
{ moduleId: 'vaadin-dialog-resizable-overlay-styles' },
|
|
103
103
|
);
|
|
104
104
|
|
|
105
105
|
/**
|
|
@@ -116,8 +116,8 @@ export const DialogResizableMixin = (superClass) =>
|
|
|
116
116
|
resizable: {
|
|
117
117
|
type: Boolean,
|
|
118
118
|
value: false,
|
|
119
|
-
reflectToAttribute: true
|
|
120
|
-
}
|
|
119
|
+
reflectToAttribute: true,
|
|
120
|
+
},
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -246,7 +246,7 @@ export const DialogResizableMixin = (superClass) =>
|
|
|
246
246
|
const content = this.$.overlay.$.content;
|
|
247
247
|
content.setAttribute(
|
|
248
248
|
'style',
|
|
249
|
-
'position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-sizing: content-box; height: auto;'
|
|
249
|
+
'position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-sizing: content-box; height: auto;',
|
|
250
250
|
);
|
|
251
251
|
const { width: contentWidth, height: contentHeight } = getComputedStyle(content);
|
|
252
252
|
content.removeAttribute('style');
|
package/src/vaadin-dialog.d.ts
CHANGED
|
@@ -146,13 +146,13 @@ declare class Dialog extends ThemePropertyMixin(ElementMixin(DialogDraggableMixi
|
|
|
146
146
|
addEventListener<K extends keyof DialogEventMap>(
|
|
147
147
|
type: K,
|
|
148
148
|
listener: (this: Dialog, ev: DialogEventMap[K]) => void,
|
|
149
|
-
options?: boolean | AddEventListenerOptions
|
|
149
|
+
options?: boolean | AddEventListenerOptions,
|
|
150
150
|
): void;
|
|
151
151
|
|
|
152
152
|
removeEventListener<K extends keyof DialogEventMap>(
|
|
153
153
|
type: K,
|
|
154
154
|
listener: (this: Dialog, ev: DialogEventMap[K]) => void,
|
|
155
|
-
options?: boolean | EventListenerOptions
|
|
155
|
+
options?: boolean | EventListenerOptions,
|
|
156
156
|
): void;
|
|
157
157
|
}
|
|
158
158
|
|
package/src/vaadin-dialog.js
CHANGED
|
@@ -29,7 +29,7 @@ registerStyles(
|
|
|
29
29
|
max-width: none;
|
|
30
30
|
}
|
|
31
31
|
`,
|
|
32
|
-
{ moduleId: 'vaadin-dialog-overlay-styles' }
|
|
32
|
+
{ moduleId: 'vaadin-dialog-overlay-styles' },
|
|
33
33
|
);
|
|
34
34
|
|
|
35
35
|
let memoizedTemplate;
|
|
@@ -63,7 +63,7 @@ class DialogOverlay extends mixinBehaviors(IronResizableBehavior, OverlayElement
|
|
|
63
63
|
return {
|
|
64
64
|
modeless: Boolean,
|
|
65
65
|
|
|
66
|
-
withBackdrop: Boolean
|
|
66
|
+
withBackdrop: Boolean,
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -208,7 +208,7 @@ class Dialog extends ThemePropertyMixin(ElementMixin(DialogDraggableMixin(Dialog
|
|
|
208
208
|
opened: {
|
|
209
209
|
type: Boolean,
|
|
210
210
|
value: false,
|
|
211
|
-
notify: true
|
|
211
|
+
notify: true,
|
|
212
212
|
},
|
|
213
213
|
|
|
214
214
|
/**
|
|
@@ -218,7 +218,7 @@ class Dialog extends ThemePropertyMixin(ElementMixin(DialogDraggableMixin(Dialog
|
|
|
218
218
|
*/
|
|
219
219
|
noCloseOnOutsideClick: {
|
|
220
220
|
type: Boolean,
|
|
221
|
-
value: false
|
|
221
|
+
value: false,
|
|
222
222
|
},
|
|
223
223
|
|
|
224
224
|
/**
|
|
@@ -228,7 +228,7 @@ class Dialog extends ThemePropertyMixin(ElementMixin(DialogDraggableMixin(Dialog
|
|
|
228
228
|
*/
|
|
229
229
|
noCloseOnEsc: {
|
|
230
230
|
type: Boolean,
|
|
231
|
-
value: false
|
|
231
|
+
value: false,
|
|
232
232
|
},
|
|
233
233
|
|
|
234
234
|
/**
|
|
@@ -238,7 +238,7 @@ class Dialog extends ThemePropertyMixin(ElementMixin(DialogDraggableMixin(Dialog
|
|
|
238
238
|
*/
|
|
239
239
|
ariaLabel: {
|
|
240
240
|
type: String,
|
|
241
|
-
value: ''
|
|
241
|
+
value: '',
|
|
242
242
|
},
|
|
243
243
|
|
|
244
244
|
/**
|
|
@@ -257,8 +257,8 @@ class Dialog extends ThemePropertyMixin(ElementMixin(DialogDraggableMixin(Dialog
|
|
|
257
257
|
*/
|
|
258
258
|
modeless: {
|
|
259
259
|
type: Boolean,
|
|
260
|
-
value: false
|
|
261
|
-
}
|
|
260
|
+
value: false,
|
|
261
|
+
},
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
|