@vaadin/confirm-dialog 25.0.0-alpha12 → 25.0.0-alpha14
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 +11 -11
- package/src/styles/vaadin-confirm-dialog-overlay-base-styles.js +0 -5
- package/src/vaadin-confirm-dialog-mixin.d.ts +1 -2
- package/src/vaadin-confirm-dialog-mixin.js +1 -3
- package/src/vaadin-confirm-dialog-overlay.js +14 -16
- package/web-types.json +1 -23
- package/web-types.lit.json +1 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/confirm-dialog",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/button": "25.0.0-
|
|
38
|
-
"@vaadin/component-base": "25.0.0-
|
|
39
|
-
"@vaadin/dialog": "25.0.0-
|
|
40
|
-
"@vaadin/overlay": "25.0.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
37
|
+
"@vaadin/button": "25.0.0-alpha14",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-alpha14",
|
|
39
|
+
"@vaadin/dialog": "25.0.0-alpha14",
|
|
40
|
+
"@vaadin/overlay": "25.0.0-alpha14",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha14",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
46
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
45
|
+
"@vaadin/a11y-base": "25.0.0-alpha14",
|
|
46
|
+
"@vaadin/chai-plugins": "25.0.0-alpha14",
|
|
47
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha14",
|
|
48
48
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha14",
|
|
50
50
|
"sinon": "^18.0.0"
|
|
51
51
|
},
|
|
52
52
|
"web-types": [
|
|
53
53
|
"web-types.json",
|
|
54
54
|
"web-types.lit.json"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "8ebeeeca4b5b6564eff954d6582d0d6760464e51"
|
|
57
57
|
}
|
|
@@ -34,11 +34,6 @@ const confirmDialogOverlay = css`
|
|
|
34
34
|
[part='content'] {
|
|
35
35
|
flex: 1;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
/* TODO remove this wrapper element */
|
|
39
|
-
#resizerContainer {
|
|
40
|
-
display: contents;
|
|
41
|
-
}
|
|
42
37
|
`;
|
|
43
38
|
|
|
44
39
|
export const confirmDialogOverlayStyles = [overlayStyles, dialogOverlayBase, confirmDialogOverlay];
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
|
-
import type { OverlayClassMixinClass } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
8
7
|
import type { DialogSizeMixinClass } from '@vaadin/dialog/src/vaadin-dialog-size-mixin.js';
|
|
9
8
|
|
|
10
9
|
/*
|
|
@@ -33,7 +32,7 @@ export type ConfirmDialogEventMap = ConfirmDialogCustomEventMap & HTMLElementEve
|
|
|
33
32
|
|
|
34
33
|
export declare function ConfirmDialogMixin<T extends Constructor<HTMLElement>>(
|
|
35
34
|
base: T,
|
|
36
|
-
): Constructor<ConfirmDialogMixinClass> & Constructor<DialogSizeMixinClass> &
|
|
35
|
+
): Constructor<ConfirmDialogMixinClass> & Constructor<DialogSizeMixinClass> & T;
|
|
37
36
|
|
|
38
37
|
export declare class ConfirmDialogMixinClass {
|
|
39
38
|
/**
|
|
@@ -4,17 +4,15 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { setAriaIDReference } from '@vaadin/a11y-base/src/aria-id-reference.js';
|
|
7
|
-
import { OverlayClassMixin } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
8
7
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
9
8
|
import { DialogSizeMixin } from '@vaadin/dialog/src/vaadin-dialog-size-mixin.js';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @polymerMixin
|
|
13
12
|
* @mixes DialogSizeMixin
|
|
14
|
-
* @mixes OverlayClassMixin
|
|
15
13
|
*/
|
|
16
14
|
export const ConfirmDialogMixin = (superClass) =>
|
|
17
|
-
class ConfirmDialogMixinClass extends
|
|
15
|
+
class ConfirmDialogMixinClass extends DialogSizeMixin(superClass) {
|
|
18
16
|
static get properties() {
|
|
19
17
|
return {
|
|
20
18
|
/**
|
|
@@ -50,23 +50,21 @@ class ConfirmDialogOverlay extends OverlayMixin(DirMixin(ThemableMixin(PolylitMi
|
|
|
50
50
|
return html`
|
|
51
51
|
<div part="backdrop" id="backdrop" ?hidden="${!this.withBackdrop}"></div>
|
|
52
52
|
<div part="overlay" id="overlay" tabindex="0">
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
<div part="
|
|
56
|
-
|
|
53
|
+
<header part="header"><slot name="header"></slot></header>
|
|
54
|
+
<div part="content" id="content">
|
|
55
|
+
<div part="message"><slot></slot></div>
|
|
56
|
+
</div>
|
|
57
|
+
<footer part="footer" role="toolbar">
|
|
58
|
+
<div part="cancel-button" ?hidden="${!this.cancelButtonVisible}">
|
|
59
|
+
<slot name="cancel-button"></slot>
|
|
57
60
|
</div>
|
|
58
|
-
<
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<div part="confirm-button">
|
|
66
|
-
<slot name="confirm-button"></slot>
|
|
67
|
-
</div>
|
|
68
|
-
</footer>
|
|
69
|
-
</section>
|
|
61
|
+
<div part="reject-button" ?hidden="${!this.rejectButtonVisible}">
|
|
62
|
+
<slot name="reject-button"></slot>
|
|
63
|
+
</div>
|
|
64
|
+
<div part="confirm-button">
|
|
65
|
+
<slot name="confirm-button"></slot>
|
|
66
|
+
</div>
|
|
67
|
+
</footer>
|
|
70
68
|
</div>
|
|
71
69
|
`;
|
|
72
70
|
}
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/confirm-dialog",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha14",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -32,17 +32,6 @@
|
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
{
|
|
36
|
-
"name": "overlay-class",
|
|
37
|
-
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
|
|
38
|
-
"value": {
|
|
39
|
-
"type": [
|
|
40
|
-
"string",
|
|
41
|
-
"null",
|
|
42
|
-
"undefined"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
35
|
{
|
|
47
36
|
"name": "accessible-description-ref",
|
|
48
37
|
"description": "Sets the `aria-describedby` attribute of the overlay element.\n\nBy default, the text contents of all elements inside the message area\nare combined into the `aria-description` attribute. However, there are\ncases where this can confuse screen reader users (e.g. the dialog\nmay present a password confirmation form). For these cases,\nit's better to associate only the elements that will help describe\nthe confirmation dialog through this API.",
|
|
@@ -200,17 +189,6 @@
|
|
|
200
189
|
]
|
|
201
190
|
}
|
|
202
191
|
},
|
|
203
|
-
{
|
|
204
|
-
"name": "overlayClass",
|
|
205
|
-
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
|
|
206
|
-
"value": {
|
|
207
|
-
"type": [
|
|
208
|
-
"string",
|
|
209
|
-
"null",
|
|
210
|
-
"undefined"
|
|
211
|
-
]
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
192
|
{
|
|
215
193
|
"name": "accessibleDescriptionRef",
|
|
216
194
|
"description": "Sets the `aria-describedby` attribute of the overlay element.\n\nBy default, the text contents of all elements inside the message area\nare combined into the `aria-description` attribute. However, there are\ncases where this can confuse screen reader users (e.g. the dialog\nmay present a password confirmation form). For these cases,\nit's better to associate only the elements that will help describe\nthe confirmation dialog through this API.",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/confirm-dialog",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha14",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -61,13 +61,6 @@
|
|
|
61
61
|
"kind": "expression"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
{
|
|
65
|
-
"name": ".overlayClass",
|
|
66
|
-
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
|
|
67
|
-
"value": {
|
|
68
|
-
"kind": "expression"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
64
|
{
|
|
72
65
|
"name": ".accessibleDescriptionRef",
|
|
73
66
|
"description": "Sets the `aria-describedby` attribute of the overlay element.\n\nBy default, the text contents of all elements inside the message area\nare combined into the `aria-description` attribute. However, there are\ncases where this can confuse screen reader users (e.g. the dialog\nmay present a password confirmation form). For these cases,\nit's better to associate only the elements that will help describe\nthe confirmation dialog through this API.",
|