@vaadin/email-field 23.1.2 → 23.2.0-alpha3
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/email-field",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.2.0-alpha3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/component-base": "
|
|
37
|
-
"@vaadin/text-field": "
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
39
|
-
"@vaadin/vaadin-material-styles": "
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
36
|
+
"@vaadin/component-base": "23.2.0-alpha3",
|
|
37
|
+
"@vaadin/text-field": "23.2.0-alpha3",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha3",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "23.2.0-alpha3",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@esm-bundle/chai": "^4.3.4",
|
|
44
44
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
45
45
|
"sinon": "^13.0.2"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "06e5875be93ca50da2846dafc65a8531010c0576"
|
|
48
48
|
}
|
|
@@ -22,10 +22,17 @@ export type EmailFieldInvalidChangedEvent = CustomEvent<{ value: boolean }>;
|
|
|
22
22
|
*/
|
|
23
23
|
export type EmailFieldValueChangedEvent = CustomEvent<{ value: string }>;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Fired whenever the field is validated.
|
|
27
|
+
*/
|
|
28
|
+
export type EmailFieldValidatedEvent = CustomEvent<{ valid: boolean }>;
|
|
29
|
+
|
|
25
30
|
export interface EmailFieldCustomEventMap {
|
|
26
31
|
'invalid-changed': EmailFieldInvalidChangedEvent;
|
|
27
32
|
|
|
28
33
|
'value-changed': EmailFieldValueChangedEvent;
|
|
34
|
+
|
|
35
|
+
validated: EmailFieldValidatedEvent;
|
|
29
36
|
}
|
|
30
37
|
|
|
31
38
|
export interface EmailFieldEventMap extends HTMLElementEventMap, EmailFieldCustomEventMap {
|
|
@@ -50,6 +57,7 @@ export interface EmailFieldEventMap extends HTMLElementEventMap, EmailFieldCusto
|
|
|
50
57
|
* @fires {Event} change - Fired when the user commits a value change.
|
|
51
58
|
* @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
|
|
52
59
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
60
|
+
* @fires {CustomEvent} validated - Fired whenever the field is validated.
|
|
53
61
|
*/
|
|
54
62
|
declare class EmailField extends TextField {
|
|
55
63
|
addEventListener<K extends keyof EmailFieldEventMap>(
|
|
@@ -40,6 +40,7 @@ registerStyles(
|
|
|
40
40
|
* @fires {Event} change - Fired when the user commits a value change.
|
|
41
41
|
* @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
|
|
42
42
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
43
|
+
* @fires {CustomEvent} validated - Fired whenever the field is validated.
|
|
43
44
|
*
|
|
44
45
|
* @extends TextField
|
|
45
46
|
*/
|
|
@@ -54,8 +55,8 @@ export class EmailField extends TextField {
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
/** @protected */
|
|
57
|
-
|
|
58
|
-
super.
|
|
58
|
+
ready() {
|
|
59
|
+
super.ready();
|
|
59
60
|
|
|
60
61
|
if (this.inputElement) {
|
|
61
62
|
this.inputElement.autocapitalize = 'off';
|