@vaadin/confirm-dialog 25.2.7 → 25.3.0-alpha10
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/custom-elements.json
CHANGED
|
@@ -638,30 +638,6 @@
|
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
],
|
|
641
|
-
"mixins": [
|
|
642
|
-
{
|
|
643
|
-
"name": "ConfirmDialogMixin",
|
|
644
|
-
"module": "src/vaadin-confirm-dialog-mixin.js"
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
"name": "ElementMixin",
|
|
648
|
-
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
"name": "ThemePropertyMixin",
|
|
652
|
-
"package": "@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
"name": "PolylitMixin",
|
|
656
|
-
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
657
|
-
}
|
|
658
|
-
],
|
|
659
|
-
"superclass": {
|
|
660
|
-
"name": "LitElement",
|
|
661
|
-
"package": "lit"
|
|
662
|
-
},
|
|
663
|
-
"tagName": "vaadin-confirm-dialog",
|
|
664
|
-
"customElement": true,
|
|
665
641
|
"attributes": [
|
|
666
642
|
{
|
|
667
643
|
"name": "accessible-description-ref",
|
|
@@ -831,6 +807,13 @@
|
|
|
831
807
|
"module": "src/vaadin-confirm-dialog-mixin.js"
|
|
832
808
|
}
|
|
833
809
|
},
|
|
810
|
+
{
|
|
811
|
+
"type": {
|
|
812
|
+
"text": "string"
|
|
813
|
+
},
|
|
814
|
+
"description": "The theme variants to apply to the component.",
|
|
815
|
+
"name": "theme"
|
|
816
|
+
},
|
|
834
817
|
{
|
|
835
818
|
"name": "width",
|
|
836
819
|
"type": {
|
|
@@ -843,7 +826,31 @@
|
|
|
843
826
|
"package": "@vaadin/dialog/src/vaadin-dialog-size-mixin.js"
|
|
844
827
|
}
|
|
845
828
|
}
|
|
846
|
-
]
|
|
829
|
+
],
|
|
830
|
+
"mixins": [
|
|
831
|
+
{
|
|
832
|
+
"name": "ConfirmDialogMixin",
|
|
833
|
+
"module": "src/vaadin-confirm-dialog-mixin.js"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"name": "ElementMixin",
|
|
837
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "ThemePropertyMixin",
|
|
841
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"name": "PolylitMixin",
|
|
845
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
846
|
+
}
|
|
847
|
+
],
|
|
848
|
+
"superclass": {
|
|
849
|
+
"name": "LitElement",
|
|
850
|
+
"package": "lit"
|
|
851
|
+
},
|
|
852
|
+
"tagName": "vaadin-confirm-dialog",
|
|
853
|
+
"customElement": true
|
|
847
854
|
}
|
|
848
855
|
],
|
|
849
856
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/confirm-dialog",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.3.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/button": "
|
|
39
|
-
"@vaadin/component-base": "
|
|
40
|
-
"@vaadin/dialog": "
|
|
41
|
-
"@vaadin/overlay": "
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
38
|
+
"@vaadin/button": "25.3.0-alpha10",
|
|
39
|
+
"@vaadin/component-base": "25.3.0-alpha10",
|
|
40
|
+
"@vaadin/dialog": "25.3.0-alpha10",
|
|
41
|
+
"@vaadin/overlay": "25.3.0-alpha10",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha10",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/a11y-base": "
|
|
47
|
-
"@vaadin/aura": "
|
|
48
|
-
"@vaadin/chai-plugins": "
|
|
49
|
-
"@vaadin/test-runner-commands": "
|
|
46
|
+
"@vaadin/a11y-base": "25.3.0-alpha10",
|
|
47
|
+
"@vaadin/aura": "25.3.0-alpha10",
|
|
48
|
+
"@vaadin/chai-plugins": "25.3.0-alpha10",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.3.0-alpha10",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha10",
|
|
52
52
|
"sinon": "^22.0.0"
|
|
53
53
|
},
|
|
54
54
|
"customElements": "custom-elements.json",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"web-types.json",
|
|
57
57
|
"web-types.lit.json"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "f2833abdf9b613fa0d0ed216830e3f4de87b7dac"
|
|
60
60
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Copyright (c) 2018 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import { setAriaIDReference } from '@vaadin/a11y-base/src/aria-id-reference.js';
|
|
7
6
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
8
7
|
import { DialogSizeMixin } from '@vaadin/dialog/src/vaadin-dialog-size-mixin.js';
|
|
9
8
|
|
|
@@ -305,18 +304,12 @@ export const ConfirmDialogMixin = (superClass) =>
|
|
|
305
304
|
|
|
306
305
|
if (accessibleDescriptionRef) {
|
|
307
306
|
this.removeAttribute('aria-description');
|
|
308
|
-
|
|
309
|
-
newId: accessibleDescriptionRef,
|
|
310
|
-
oldId: this.__oldAccessibleDescriptionRef,
|
|
311
|
-
fromUser: true,
|
|
312
|
-
});
|
|
307
|
+
this.setAttribute('aria-describedby', accessibleDescriptionRef);
|
|
313
308
|
} else {
|
|
314
309
|
this.removeAttribute('aria-describedby');
|
|
315
310
|
const ariaDescription = messageNodes.map((node) => node.textContent.trim()).join(' ');
|
|
316
311
|
this.setAttribute('aria-description', ariaDescription);
|
|
317
312
|
}
|
|
318
|
-
|
|
319
|
-
this.__oldAccessibleDescriptionRef = accessibleDescriptionRef;
|
|
320
313
|
}
|
|
321
314
|
|
|
322
315
|
/** @private */
|
|
@@ -15,6 +15,7 @@ import { confirmDialogOverlayStyles } from './styles/vaadin-confirm-dialog-overl
|
|
|
15
15
|
/**
|
|
16
16
|
* An element used internally by `<vaadin-confirm-dialog>`. Not intended to be used separately.
|
|
17
17
|
*
|
|
18
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
18
19
|
* @customElement vaadin-confirm-dialog-overlay
|
|
19
20
|
* @extends HTMLElement
|
|
20
21
|
* @private
|
|
@@ -88,11 +89,11 @@ class ConfirmDialogOverlay extends OverlayMixin(DirMixin(ThemableMixin(PolylitMi
|
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
/**
|
|
91
|
-
* Override method from OverlayFocusMixin to use owner as focus
|
|
92
|
+
* Override method from OverlayFocusMixin to use owner as focus root
|
|
92
93
|
* @protected
|
|
93
94
|
* @override
|
|
94
95
|
*/
|
|
95
|
-
get
|
|
96
|
+
get _focusRoot() {
|
|
96
97
|
return this.owner;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
@@ -78,6 +78,7 @@ import { ConfirmDialogMixin } from './vaadin-confirm-dialog-mixin.js';
|
|
|
78
78
|
* @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.
|
|
79
79
|
* @fires {CustomEvent} closed - Fired when the confirm dialog is closed.
|
|
80
80
|
*
|
|
81
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
81
82
|
* @customElement vaadin-confirm-dialog
|
|
82
83
|
* @extends HTMLElement
|
|
83
84
|
*/
|
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.
|
|
4
|
+
"version": "25.3.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -141,9 +141,7 @@
|
|
|
141
141
|
"description": "The theme variants to apply to the component.",
|
|
142
142
|
"value": {
|
|
143
143
|
"type": [
|
|
144
|
-
"string"
|
|
145
|
-
"null",
|
|
146
|
-
"undefined"
|
|
144
|
+
"string"
|
|
147
145
|
]
|
|
148
146
|
}
|
|
149
147
|
},
|