@vaadin/email-field 24.2.0-alpha6 → 24.2.0-alpha8

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": "24.2.0-alpha6",
3
+ "version": "24.2.0-alpha8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,11 +37,11 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/component-base": "24.2.0-alpha6",
41
- "@vaadin/text-field": "24.2.0-alpha6",
42
- "@vaadin/vaadin-lumo-styles": "24.2.0-alpha6",
43
- "@vaadin/vaadin-material-styles": "24.2.0-alpha6",
44
- "@vaadin/vaadin-themable-mixin": "24.2.0-alpha6",
40
+ "@vaadin/component-base": "24.2.0-alpha8",
41
+ "@vaadin/text-field": "24.2.0-alpha8",
42
+ "@vaadin/vaadin-lumo-styles": "24.2.0-alpha8",
43
+ "@vaadin/vaadin-material-styles": "24.2.0-alpha8",
44
+ "@vaadin/vaadin-themable-mixin": "24.2.0-alpha8",
45
45
  "lit": "^2.0.0"
46
46
  },
47
47
  "devDependencies": {
@@ -53,5 +53,5 @@
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "3ef6e6cd66919b3ef7637e42916e4c54656beb51"
56
+ "gitHead": "2c024e8fd462d178430418f76a61f498fb549998"
57
57
  }
@@ -17,6 +17,11 @@ export type EmailFieldChangeEvent = Event & {
17
17
  */
18
18
  export type EmailFieldInvalidChangedEvent = CustomEvent<{ value: boolean }>;
19
19
 
20
+ /**
21
+ * Fired when the `dirty` property changes.
22
+ */
23
+ export type EmailFieldDirtyChangedEvent = CustomEvent<{ value: boolean }>;
24
+
20
25
  /**
21
26
  * Fired when the `value` property changes.
22
27
  */
@@ -30,6 +35,8 @@ export type EmailFieldValidatedEvent = CustomEvent<{ valid: boolean }>;
30
35
  export interface EmailFieldCustomEventMap {
31
36
  'invalid-changed': EmailFieldInvalidChangedEvent;
32
37
 
38
+ 'dirty-changed': EmailFieldDirtyChangedEvent;
39
+
33
40
  'value-changed': EmailFieldValueChangedEvent;
34
41
 
35
42
  validated: EmailFieldValidatedEvent;
@@ -56,6 +63,7 @@ export interface EmailFieldEventMap extends HTMLElementEventMap, EmailFieldCusto
56
63
  * @fires {Event} input - Fired when the value is changed by the user: on every typing keystroke, and the value is cleared using the clear button.
57
64
  * @fires {Event} change - Fired when the user commits a value change.
58
65
  * @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
66
+ * @fires {CustomEvent} dirty-changed - Fired when the `dirty` property changes.
59
67
  * @fires {CustomEvent} value-changed - Fired when the `value` property changes.
60
68
  * @fires {CustomEvent} validated - Fired whenever the field is validated.
61
69
  */
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/email-field",
4
- "version": "24.2.0-alpha6",
4
+ "version": "24.2.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-email-field",
11
- "description": "`<vaadin-email-field>` is a Web Component for email field control in forms.\n\n```html\n<vaadin-email-field label=\"Email\"></vaadin-email-field>\n```\n\n### Styling\n\n`<vaadin-email-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.2.0-alpha6/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
11
+ "description": "`<vaadin-email-field>` is a Web Component for email field control in forms.\n\n```html\n<vaadin-email-field label=\"Email\"></vaadin-email-field>\n```\n\n### Styling\n\n`<vaadin-email-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.2.0-alpha8/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -120,6 +120,17 @@
120
120
  ]
121
121
  }
122
122
  },
123
+ {
124
+ "name": "dirty",
125
+ "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
126
+ "value": {
127
+ "type": [
128
+ "boolean",
129
+ "null",
130
+ "undefined"
131
+ ]
132
+ }
133
+ },
123
134
  {
124
135
  "name": "clear-button-visible",
125
136
  "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
@@ -387,6 +398,17 @@
387
398
  ]
388
399
  }
389
400
  },
401
+ {
402
+ "name": "dirty",
403
+ "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
404
+ "value": {
405
+ "type": [
406
+ "boolean",
407
+ "null",
408
+ "undefined"
409
+ ]
410
+ }
411
+ },
390
412
  {
391
413
  "name": "clearButtonVisible",
392
414
  "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
@@ -551,6 +573,10 @@
551
573
  {
552
574
  "name": "value-changed",
553
575
  "description": "Fired when the `value` property changes."
576
+ },
577
+ {
578
+ "name": "dirty-changed",
579
+ "description": "Fired when the `dirty` property changes."
554
580
  }
555
581
  ]
556
582
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/email-field",
4
- "version": "24.2.0-alpha6",
4
+ "version": "24.2.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-email-field",
19
- "description": "`<vaadin-email-field>` is a Web Component for email field control in forms.\n\n```html\n<vaadin-email-field label=\"Email\"></vaadin-email-field>\n```\n\n### Styling\n\n`<vaadin-email-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.2.0-alpha6/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
19
+ "description": "`<vaadin-email-field>` is a Web Component for email field control in forms.\n\n```html\n<vaadin-email-field label=\"Email\"></vaadin-email-field>\n```\n\n### Styling\n\n`<vaadin-email-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.2.0-alpha8/#/elements/vaadin-text-field) for the styling documentation.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
@@ -47,6 +47,13 @@
47
47
  "kind": "expression"
48
48
  }
49
49
  },
50
+ {
51
+ "name": "?dirty",
52
+ "description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
53
+ "value": {
54
+ "kind": "expression"
55
+ }
56
+ },
50
57
  {
51
58
  "name": "?clearButtonVisible",
52
59
  "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
@@ -214,6 +221,13 @@
214
221
  "value": {
215
222
  "kind": "expression"
216
223
  }
224
+ },
225
+ {
226
+ "name": "@dirty-changed",
227
+ "description": "Fired when the `dirty` property changes.",
228
+ "value": {
229
+ "kind": "expression"
230
+ }
217
231
  }
218
232
  ]
219
233
  }