@vaadin/password-field 25.2.0-alpha10 → 25.2.0-alpha12
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 +1 -1
- package/package.json +12 -12
- package/src/vaadin-password-field-button.js +0 -3
- package/src/vaadin-password-field-mixin.js +0 -7
- package/src/vaadin-password-field.d.ts +39 -0
- package/src/vaadin-password-field.js +39 -1
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"declarations": [
|
|
188
188
|
{
|
|
189
189
|
"kind": "class",
|
|
190
|
-
"description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and reveal buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`reveal-button` | The eye icon which toggles the password visibility\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`password-visible` | Set when the password is visible\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
190
|
+
"description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and reveal buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`reveal-button` | The eye icon which toggles the password visibility\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`password-visible` | Set when the password is visible\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------------|\n| `--vaadin-field-default-width` |\n| `--vaadin-input-field-background` |\n| `--vaadin-input-field-border-color` |\n| `--vaadin-input-field-border-radius` |\n| `--vaadin-input-field-border-width` |\n| `--vaadin-input-field-bottom-end-radius` |\n| `--vaadin-input-field-bottom-start-radius` |\n| `--vaadin-input-field-button-text-color` |\n| `--vaadin-input-field-container-gap` |\n| `--vaadin-input-field-disabled-background` |\n| `--vaadin-input-field-disabled-text-color` |\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-gap` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-padding` |\n| `--vaadin-input-field-placeholder-color` |\n| `--vaadin-input-field-required-indicator` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-top-end-radius` |\n| `--vaadin-input-field-top-start-radius` |\n| `--vaadin-input-field-value-color` |\n| `--vaadin-input-field-value-font-size` |\n| `--vaadin-input-field-value-font-weight` |\n| `--vaadin-input-field-value-line-height` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
191
191
|
"name": "PasswordField",
|
|
192
192
|
"members": [
|
|
193
193
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/password-field",
|
|
3
|
-
"version": "25.2.0-
|
|
3
|
+
"version": "25.2.0-alpha12",
|
|
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/a11y-base": "25.2.0-
|
|
39
|
-
"@vaadin/button": "25.2.0-
|
|
40
|
-
"@vaadin/component-base": "25.2.0-
|
|
41
|
-
"@vaadin/field-base": "25.2.0-
|
|
42
|
-
"@vaadin/text-field": "25.2.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "25.2.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.2.0-alpha12",
|
|
39
|
+
"@vaadin/button": "25.2.0-alpha12",
|
|
40
|
+
"@vaadin/component-base": "25.2.0-alpha12",
|
|
41
|
+
"@vaadin/field-base": "25.2.0-alpha12",
|
|
42
|
+
"@vaadin/text-field": "25.2.0-alpha12",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.2.0-alpha12",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/aura": "25.2.0-
|
|
48
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "25.2.0-
|
|
47
|
+
"@vaadin/aura": "25.2.0-alpha12",
|
|
48
|
+
"@vaadin/chai-plugins": "25.2.0-alpha12",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha12",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "25.2.0-
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "25.2.0-alpha12",
|
|
52
52
|
"sinon": "^21.0.2"
|
|
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": "ae1e4373aec3653d63a45b6be18eee36f4b245a1"
|
|
60
60
|
}
|
|
@@ -17,9 +17,6 @@ import { passwordFieldButton } from './styles/vaadin-password-field-button-base-
|
|
|
17
17
|
*
|
|
18
18
|
* @customElement vaadin-password-field-button
|
|
19
19
|
* @extends HTMLElement
|
|
20
|
-
* @mixes ButtonMixin
|
|
21
|
-
* @mixes DirMixin
|
|
22
|
-
* @mixes ThemableMixin
|
|
23
20
|
* @private
|
|
24
21
|
*/
|
|
25
22
|
class PasswordFieldButton extends ButtonMixin(DirMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
@@ -9,13 +9,6 @@ import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
|
9
9
|
import { SlotStylesMixin } from '@vaadin/component-base/src/slot-styles-mixin.js';
|
|
10
10
|
import { InputMixin } from '@vaadin/field-base/src/input-mixin.js';
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* @polymerMixin
|
|
14
|
-
* @mixes DisabledMixin
|
|
15
|
-
* @mixes FocusMixin
|
|
16
|
-
* @mixes InputMixin
|
|
17
|
-
* @mixes SlotStylesMixin
|
|
18
|
-
*/
|
|
19
12
|
export const PasswordFieldMixin = (superClass) =>
|
|
20
13
|
class PasswordFieldMixinClass extends SlotStylesMixin(DisabledMixin(FocusMixin(InputMixin(superClass)))) {
|
|
21
14
|
static get properties() {
|
|
@@ -81,6 +81,45 @@ export interface PasswordFieldEventMap extends HTMLElementEventMap, PasswordFiel
|
|
|
81
81
|
*
|
|
82
82
|
* Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
|
|
83
83
|
*
|
|
84
|
+
* The following custom CSS properties are available for styling:
|
|
85
|
+
*
|
|
86
|
+
* Custom CSS property |
|
|
87
|
+
* :--------------------------------------------------|
|
|
88
|
+
* | `--vaadin-field-default-width` |
|
|
89
|
+
* | `--vaadin-input-field-background` |
|
|
90
|
+
* | `--vaadin-input-field-border-color` |
|
|
91
|
+
* | `--vaadin-input-field-border-radius` |
|
|
92
|
+
* | `--vaadin-input-field-border-width` |
|
|
93
|
+
* | `--vaadin-input-field-bottom-end-radius` |
|
|
94
|
+
* | `--vaadin-input-field-bottom-start-radius` |
|
|
95
|
+
* | `--vaadin-input-field-button-text-color` |
|
|
96
|
+
* | `--vaadin-input-field-container-gap` |
|
|
97
|
+
* | `--vaadin-input-field-disabled-background` |
|
|
98
|
+
* | `--vaadin-input-field-disabled-text-color` |
|
|
99
|
+
* | `--vaadin-input-field-error-color` |
|
|
100
|
+
* | `--vaadin-input-field-error-font-size` |
|
|
101
|
+
* | `--vaadin-input-field-error-font-weight` |
|
|
102
|
+
* | `--vaadin-input-field-error-line-height` |
|
|
103
|
+
* | `--vaadin-input-field-gap` |
|
|
104
|
+
* | `--vaadin-input-field-helper-color` |
|
|
105
|
+
* | `--vaadin-input-field-helper-font-size` |
|
|
106
|
+
* | `--vaadin-input-field-helper-font-weight` |
|
|
107
|
+
* | `--vaadin-input-field-helper-line-height` |
|
|
108
|
+
* | `--vaadin-input-field-label-color` |
|
|
109
|
+
* | `--vaadin-input-field-label-font-size` |
|
|
110
|
+
* | `--vaadin-input-field-label-font-weight` |
|
|
111
|
+
* | `--vaadin-input-field-label-line-height` |
|
|
112
|
+
* | `--vaadin-input-field-padding` |
|
|
113
|
+
* | `--vaadin-input-field-placeholder-color` |
|
|
114
|
+
* | `--vaadin-input-field-required-indicator` |
|
|
115
|
+
* | `--vaadin-input-field-required-indicator-color` |
|
|
116
|
+
* | `--vaadin-input-field-top-end-radius` |
|
|
117
|
+
* | `--vaadin-input-field-top-start-radius` |
|
|
118
|
+
* | `--vaadin-input-field-value-color` |
|
|
119
|
+
* | `--vaadin-input-field-value-font-size` |
|
|
120
|
+
* | `--vaadin-input-field-value-font-weight` |
|
|
121
|
+
* | `--vaadin-input-field-value-line-height` |
|
|
122
|
+
*
|
|
84
123
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
85
124
|
*
|
|
86
125
|
* @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.
|
|
@@ -51,6 +51,45 @@ import { PasswordFieldMixin } from './vaadin-password-field-mixin.js';
|
|
|
51
51
|
*
|
|
52
52
|
* Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
|
|
53
53
|
*
|
|
54
|
+
* The following custom CSS properties are available for styling:
|
|
55
|
+
*
|
|
56
|
+
* Custom CSS property |
|
|
57
|
+
* :--------------------------------------------------|
|
|
58
|
+
* | `--vaadin-field-default-width` |
|
|
59
|
+
* | `--vaadin-input-field-background` |
|
|
60
|
+
* | `--vaadin-input-field-border-color` |
|
|
61
|
+
* | `--vaadin-input-field-border-radius` |
|
|
62
|
+
* | `--vaadin-input-field-border-width` |
|
|
63
|
+
* | `--vaadin-input-field-bottom-end-radius` |
|
|
64
|
+
* | `--vaadin-input-field-bottom-start-radius` |
|
|
65
|
+
* | `--vaadin-input-field-button-text-color` |
|
|
66
|
+
* | `--vaadin-input-field-container-gap` |
|
|
67
|
+
* | `--vaadin-input-field-disabled-background` |
|
|
68
|
+
* | `--vaadin-input-field-disabled-text-color` |
|
|
69
|
+
* | `--vaadin-input-field-error-color` |
|
|
70
|
+
* | `--vaadin-input-field-error-font-size` |
|
|
71
|
+
* | `--vaadin-input-field-error-font-weight` |
|
|
72
|
+
* | `--vaadin-input-field-error-line-height` |
|
|
73
|
+
* | `--vaadin-input-field-gap` |
|
|
74
|
+
* | `--vaadin-input-field-helper-color` |
|
|
75
|
+
* | `--vaadin-input-field-helper-font-size` |
|
|
76
|
+
* | `--vaadin-input-field-helper-font-weight` |
|
|
77
|
+
* | `--vaadin-input-field-helper-line-height` |
|
|
78
|
+
* | `--vaadin-input-field-label-color` |
|
|
79
|
+
* | `--vaadin-input-field-label-font-size` |
|
|
80
|
+
* | `--vaadin-input-field-label-font-weight` |
|
|
81
|
+
* | `--vaadin-input-field-label-line-height` |
|
|
82
|
+
* | `--vaadin-input-field-padding` |
|
|
83
|
+
* | `--vaadin-input-field-placeholder-color` |
|
|
84
|
+
* | `--vaadin-input-field-required-indicator` |
|
|
85
|
+
* | `--vaadin-input-field-required-indicator-color` |
|
|
86
|
+
* | `--vaadin-input-field-top-end-radius` |
|
|
87
|
+
* | `--vaadin-input-field-top-start-radius` |
|
|
88
|
+
* | `--vaadin-input-field-value-color` |
|
|
89
|
+
* | `--vaadin-input-field-value-font-size` |
|
|
90
|
+
* | `--vaadin-input-field-value-font-weight` |
|
|
91
|
+
* | `--vaadin-input-field-value-line-height` |
|
|
92
|
+
*
|
|
54
93
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
55
94
|
*
|
|
56
95
|
* @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.
|
|
@@ -61,7 +100,6 @@ import { PasswordFieldMixin } from './vaadin-password-field-mixin.js';
|
|
|
61
100
|
*
|
|
62
101
|
* @customElement vaadin-password-field
|
|
63
102
|
* @extends TextField
|
|
64
|
-
* @mixes PasswordFieldMixin
|
|
65
103
|
*/
|
|
66
104
|
export class PasswordField extends PasswordFieldMixin(TextField) {
|
|
67
105
|
static get is() {
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/password-field",
|
|
4
|
-
"version": "25.2.0-
|
|
4
|
+
"version": "25.2.0-alpha12",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-password-field",
|
|
11
|
-
"description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and reveal buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`reveal-button` | The eye icon which toggles the password visibility\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`password-visible` | Set when the password is visible\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
11
|
+
"description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and reveal buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`reveal-button` | The eye icon which toggles the password visibility\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`password-visible` | Set when the password is visible\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------------|\n| `--vaadin-field-default-width` |\n| `--vaadin-input-field-background` |\n| `--vaadin-input-field-border-color` |\n| `--vaadin-input-field-border-radius` |\n| `--vaadin-input-field-border-width` |\n| `--vaadin-input-field-bottom-end-radius` |\n| `--vaadin-input-field-bottom-start-radius` |\n| `--vaadin-input-field-button-text-color` |\n| `--vaadin-input-field-container-gap` |\n| `--vaadin-input-field-disabled-background` |\n| `--vaadin-input-field-disabled-text-color` |\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-gap` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-padding` |\n| `--vaadin-input-field-placeholder-color` |\n| `--vaadin-input-field-required-indicator` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-top-end-radius` |\n| `--vaadin-input-field-top-start-radius` |\n| `--vaadin-input-field-value-color` |\n| `--vaadin-input-field-value-font-size` |\n| `--vaadin-input-field-value-font-weight` |\n| `--vaadin-input-field-value-line-height` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "accessible-name",
|
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/password-field",
|
|
4
|
-
"version": "25.2.0-
|
|
4
|
+
"version": "25.2.0-alpha12",
|
|
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-password-field",
|
|
19
|
-
"description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and reveal buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`reveal-button` | The eye icon which toggles the password visibility\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`password-visible` | Set when the password is visible\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
19
|
+
"description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on both clear and reveal buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`reveal-button` | The eye icon which toggles the password visibility\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`password-visible` | Set when the password is visible\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------------|\n| `--vaadin-field-default-width` |\n| `--vaadin-input-field-background` |\n| `--vaadin-input-field-border-color` |\n| `--vaadin-input-field-border-radius` |\n| `--vaadin-input-field-border-width` |\n| `--vaadin-input-field-bottom-end-radius` |\n| `--vaadin-input-field-bottom-start-radius` |\n| `--vaadin-input-field-button-text-color` |\n| `--vaadin-input-field-container-gap` |\n| `--vaadin-input-field-disabled-background` |\n| `--vaadin-input-field-disabled-text-color` |\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-gap` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-padding` |\n| `--vaadin-input-field-placeholder-color` |\n| `--vaadin-input-field-required-indicator` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-top-end-radius` |\n| `--vaadin-input-field-top-start-radius` |\n| `--vaadin-input-field-value-color` |\n| `--vaadin-input-field-value-font-size` |\n| `--vaadin-input-field-value-font-weight` |\n| `--vaadin-input-field-value-line-height` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|