@vaadin/password-field 25.1.0-alpha7 → 25.1.0-alpha9
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 +12 -12
- package/web-types.json +147 -147
- package/web-types.lit.json +56 -56
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/password-field",
|
|
3
|
-
"version": "25.1.0-
|
|
3
|
+
"version": "25.1.0-alpha9",
|
|
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.1.0-
|
|
39
|
-
"@vaadin/button": "25.1.0-
|
|
40
|
-
"@vaadin/component-base": "25.1.0-
|
|
41
|
-
"@vaadin/field-base": "25.1.0-
|
|
42
|
-
"@vaadin/text-field": "25.1.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.1.0-alpha9",
|
|
39
|
+
"@vaadin/button": "25.1.0-alpha9",
|
|
40
|
+
"@vaadin/component-base": "25.1.0-alpha9",
|
|
41
|
+
"@vaadin/field-base": "25.1.0-alpha9",
|
|
42
|
+
"@vaadin/text-field": "25.1.0-alpha9",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-alpha9",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/aura": "25.1.0-
|
|
48
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
47
|
+
"@vaadin/aura": "25.1.0-alpha9",
|
|
48
|
+
"@vaadin/chai-plugins": "25.1.0-alpha9",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.1.0-alpha9",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-alpha9",
|
|
52
52
|
"sinon": "^21.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": "ef432311376ba3dac4233cb23d393a49a425e0a4"
|
|
60
60
|
}
|
package/web-types.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.1.0-
|
|
4
|
+
"version": "25.1.0-alpha9",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -11,30 +11,30 @@
|
|
|
11
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.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
|
-
"name": "
|
|
15
|
-
"description": "
|
|
14
|
+
"name": "accessible-name",
|
|
15
|
+
"description": "String used to label the component to screen reader users.",
|
|
16
16
|
"value": {
|
|
17
17
|
"type": [
|
|
18
|
-
"
|
|
18
|
+
"string",
|
|
19
19
|
"null",
|
|
20
20
|
"undefined"
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"name": "
|
|
26
|
-
"description": "
|
|
25
|
+
"name": "accessible-name-ref",
|
|
26
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
27
27
|
"value": {
|
|
28
28
|
"type": [
|
|
29
|
-
"
|
|
29
|
+
"string",
|
|
30
30
|
"null",
|
|
31
31
|
"undefined"
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
"name": "
|
|
37
|
-
"description": "
|
|
36
|
+
"name": "allowed-char-pattern",
|
|
37
|
+
"description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
|
|
38
38
|
"value": {
|
|
39
39
|
"type": [
|
|
40
40
|
"string",
|
|
@@ -44,85 +44,85 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"name": "
|
|
48
|
-
"description": "
|
|
47
|
+
"name": "autocapitalize",
|
|
48
|
+
"description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
|
|
49
49
|
"value": {
|
|
50
50
|
"type": [
|
|
51
|
-
"
|
|
51
|
+
"string",
|
|
52
52
|
"null",
|
|
53
53
|
"undefined"
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"name": "
|
|
59
|
-
"description": "
|
|
58
|
+
"name": "autocomplete",
|
|
59
|
+
"description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
|
|
60
60
|
"value": {
|
|
61
61
|
"type": [
|
|
62
|
-
"
|
|
62
|
+
"string",
|
|
63
63
|
"null",
|
|
64
64
|
"undefined"
|
|
65
65
|
]
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"description": "
|
|
69
|
+
"name": "autocorrect",
|
|
70
|
+
"description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
|
|
71
71
|
"value": {
|
|
72
72
|
"type": [
|
|
73
|
-
"
|
|
73
|
+
"string",
|
|
74
74
|
"null",
|
|
75
75
|
"undefined"
|
|
76
76
|
]
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
"name": "
|
|
81
|
-
"description": "
|
|
80
|
+
"name": "autofocus",
|
|
81
|
+
"description": "Specify that this control should have input focus when the page loads.",
|
|
82
82
|
"value": {
|
|
83
83
|
"type": [
|
|
84
|
-
"
|
|
84
|
+
"boolean",
|
|
85
85
|
"null",
|
|
86
86
|
"undefined"
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"name": "
|
|
92
|
-
"description": "
|
|
91
|
+
"name": "autoselect",
|
|
92
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
93
93
|
"value": {
|
|
94
94
|
"type": [
|
|
95
|
-
"
|
|
95
|
+
"boolean",
|
|
96
96
|
"null",
|
|
97
97
|
"undefined"
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"name": "
|
|
103
|
-
"description": "
|
|
102
|
+
"name": "clear-button-visible",
|
|
103
|
+
"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.",
|
|
104
104
|
"value": {
|
|
105
105
|
"type": [
|
|
106
|
-
"
|
|
106
|
+
"boolean",
|
|
107
107
|
"null",
|
|
108
108
|
"undefined"
|
|
109
109
|
]
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
"name": "
|
|
114
|
-
"description": "
|
|
113
|
+
"name": "disabled",
|
|
114
|
+
"description": "If true, the user cannot interact with this element.",
|
|
115
115
|
"value": {
|
|
116
116
|
"type": [
|
|
117
|
-
"
|
|
117
|
+
"boolean",
|
|
118
118
|
"null",
|
|
119
119
|
"undefined"
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"name": "
|
|
125
|
-
"description": "
|
|
124
|
+
"name": "error-message",
|
|
125
|
+
"description": "Error to show when the field is invalid.",
|
|
126
126
|
"value": {
|
|
127
127
|
"type": [
|
|
128
128
|
"string",
|
|
@@ -132,74 +132,74 @@
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"name": "
|
|
136
|
-
"description": "
|
|
135
|
+
"name": "helper-text",
|
|
136
|
+
"description": "String used for the helper text.",
|
|
137
137
|
"value": {
|
|
138
138
|
"type": [
|
|
139
|
-
"
|
|
139
|
+
"string",
|
|
140
140
|
"null",
|
|
141
141
|
"undefined"
|
|
142
142
|
]
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
"name": "
|
|
147
|
-
"description": "
|
|
146
|
+
"name": "invalid",
|
|
147
|
+
"description": "Set to true when the field is invalid.",
|
|
148
148
|
"value": {
|
|
149
149
|
"type": [
|
|
150
|
-
"
|
|
150
|
+
"boolean",
|
|
151
151
|
"null",
|
|
152
152
|
"undefined"
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
"name": "
|
|
158
|
-
"description": "
|
|
157
|
+
"name": "label",
|
|
158
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
159
159
|
"value": {
|
|
160
160
|
"type": [
|
|
161
|
-
"
|
|
161
|
+
"string",
|
|
162
162
|
"null",
|
|
163
163
|
"undefined"
|
|
164
164
|
]
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
|
-
"name": "
|
|
169
|
-
"description": "
|
|
168
|
+
"name": "manual-validation",
|
|
169
|
+
"description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
|
|
170
170
|
"value": {
|
|
171
171
|
"type": [
|
|
172
|
-
"
|
|
172
|
+
"boolean",
|
|
173
173
|
"null",
|
|
174
174
|
"undefined"
|
|
175
175
|
]
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
"name": "
|
|
180
|
-
"description": "
|
|
179
|
+
"name": "maxlength",
|
|
180
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
181
181
|
"value": {
|
|
182
182
|
"type": [
|
|
183
|
-
"
|
|
183
|
+
"number",
|
|
184
184
|
"null",
|
|
185
185
|
"undefined"
|
|
186
186
|
]
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
"name": "
|
|
191
|
-
"description": "
|
|
190
|
+
"name": "minlength",
|
|
191
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
192
192
|
"value": {
|
|
193
193
|
"type": [
|
|
194
|
-
"
|
|
194
|
+
"number",
|
|
195
195
|
"null",
|
|
196
196
|
"undefined"
|
|
197
197
|
]
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
"name": "
|
|
202
|
-
"description": "The
|
|
201
|
+
"name": "name",
|
|
202
|
+
"description": "The name of this field.",
|
|
203
203
|
"value": {
|
|
204
204
|
"type": [
|
|
205
205
|
"string",
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
"name": "
|
|
213
|
-
"description": "
|
|
212
|
+
"name": "pattern",
|
|
213
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
214
214
|
"value": {
|
|
215
215
|
"type": [
|
|
216
216
|
"string",
|
|
@@ -220,8 +220,8 @@
|
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
|
-
"name": "
|
|
224
|
-
"description": "
|
|
223
|
+
"name": "placeholder",
|
|
224
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
225
225
|
"value": {
|
|
226
226
|
"type": [
|
|
227
227
|
"string",
|
|
@@ -231,41 +231,41 @@
|
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
"name": "
|
|
235
|
-
"description": "
|
|
234
|
+
"name": "readonly",
|
|
235
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
236
236
|
"value": {
|
|
237
237
|
"type": [
|
|
238
|
-
"
|
|
238
|
+
"boolean",
|
|
239
239
|
"null",
|
|
240
240
|
"undefined"
|
|
241
241
|
]
|
|
242
242
|
}
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
|
-
"name": "
|
|
246
|
-
"description": "
|
|
245
|
+
"name": "required",
|
|
246
|
+
"description": "Specifies that the user must fill in a value.",
|
|
247
247
|
"value": {
|
|
248
248
|
"type": [
|
|
249
|
-
"
|
|
249
|
+
"boolean",
|
|
250
250
|
"null",
|
|
251
251
|
"undefined"
|
|
252
252
|
]
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
|
-
"name": "
|
|
257
|
-
"description": "
|
|
256
|
+
"name": "reveal-button-hidden",
|
|
257
|
+
"description": "Set to true to hide the eye icon which toggles the password visibility.",
|
|
258
258
|
"value": {
|
|
259
259
|
"type": [
|
|
260
|
-
"
|
|
260
|
+
"boolean",
|
|
261
261
|
"null",
|
|
262
262
|
"undefined"
|
|
263
263
|
]
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
|
-
"name": "
|
|
268
|
-
"description": "
|
|
267
|
+
"name": "theme",
|
|
268
|
+
"description": "The theme variants to apply to the component.",
|
|
269
269
|
"value": {
|
|
270
270
|
"type": [
|
|
271
271
|
"string",
|
|
@@ -275,19 +275,19 @@
|
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
"name": "
|
|
279
|
-
"description": "
|
|
278
|
+
"name": "title",
|
|
279
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
280
280
|
"value": {
|
|
281
281
|
"type": [
|
|
282
|
-
"
|
|
282
|
+
"string",
|
|
283
283
|
"null",
|
|
284
284
|
"undefined"
|
|
285
285
|
]
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
|
-
"name": "
|
|
290
|
-
"description": "The
|
|
289
|
+
"name": "value",
|
|
290
|
+
"description": "The value of the field.",
|
|
291
291
|
"value": {
|
|
292
292
|
"type": [
|
|
293
293
|
"string",
|
|
@@ -300,30 +300,30 @@
|
|
|
300
300
|
"js": {
|
|
301
301
|
"properties": [
|
|
302
302
|
{
|
|
303
|
-
"name": "
|
|
304
|
-
"description": "
|
|
303
|
+
"name": "accessibleName",
|
|
304
|
+
"description": "String used to label the component to screen reader users.",
|
|
305
305
|
"value": {
|
|
306
306
|
"type": [
|
|
307
|
-
"
|
|
307
|
+
"string",
|
|
308
308
|
"null",
|
|
309
309
|
"undefined"
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
|
-
"name": "
|
|
315
|
-
"description": "
|
|
314
|
+
"name": "accessibleNameRef",
|
|
315
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
316
316
|
"value": {
|
|
317
317
|
"type": [
|
|
318
|
-
"
|
|
318
|
+
"string",
|
|
319
319
|
"null",
|
|
320
320
|
"undefined"
|
|
321
321
|
]
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
|
-
"name": "
|
|
326
|
-
"description": "
|
|
325
|
+
"name": "allowedCharPattern",
|
|
326
|
+
"description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
|
|
327
327
|
"value": {
|
|
328
328
|
"type": [
|
|
329
329
|
"string",
|
|
@@ -333,85 +333,85 @@
|
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
|
-
"name": "
|
|
337
|
-
"description": "
|
|
336
|
+
"name": "autocapitalize",
|
|
337
|
+
"description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
|
|
338
338
|
"value": {
|
|
339
339
|
"type": [
|
|
340
|
-
"
|
|
340
|
+
"string",
|
|
341
341
|
"null",
|
|
342
342
|
"undefined"
|
|
343
343
|
]
|
|
344
344
|
}
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
-
"name": "
|
|
348
|
-
"description": "
|
|
347
|
+
"name": "autocomplete",
|
|
348
|
+
"description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
|
|
349
349
|
"value": {
|
|
350
350
|
"type": [
|
|
351
|
-
"
|
|
351
|
+
"string",
|
|
352
352
|
"null",
|
|
353
353
|
"undefined"
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
"name": "
|
|
359
|
-
"description": "
|
|
358
|
+
"name": "autocorrect",
|
|
359
|
+
"description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
|
|
360
360
|
"value": {
|
|
361
361
|
"type": [
|
|
362
|
-
"
|
|
362
|
+
"string",
|
|
363
363
|
"null",
|
|
364
364
|
"undefined"
|
|
365
365
|
]
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
|
-
"name": "
|
|
370
|
-
"description": "
|
|
369
|
+
"name": "autofocus",
|
|
370
|
+
"description": "Specify that this control should have input focus when the page loads.",
|
|
371
371
|
"value": {
|
|
372
372
|
"type": [
|
|
373
|
-
"
|
|
373
|
+
"boolean",
|
|
374
374
|
"null",
|
|
375
375
|
"undefined"
|
|
376
376
|
]
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
|
-
"name": "
|
|
381
|
-
"description": "
|
|
380
|
+
"name": "autoselect",
|
|
381
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
382
382
|
"value": {
|
|
383
383
|
"type": [
|
|
384
|
-
"
|
|
384
|
+
"boolean",
|
|
385
385
|
"null",
|
|
386
386
|
"undefined"
|
|
387
387
|
]
|
|
388
388
|
}
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
|
-
"name": "
|
|
392
|
-
"description": "
|
|
391
|
+
"name": "clearButtonVisible",
|
|
392
|
+
"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.",
|
|
393
393
|
"value": {
|
|
394
394
|
"type": [
|
|
395
|
-
"
|
|
395
|
+
"boolean",
|
|
396
396
|
"null",
|
|
397
397
|
"undefined"
|
|
398
398
|
]
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
|
-
"name": "
|
|
403
|
-
"description": "
|
|
402
|
+
"name": "disabled",
|
|
403
|
+
"description": "If true, the user cannot interact with this element.",
|
|
404
404
|
"value": {
|
|
405
405
|
"type": [
|
|
406
|
-
"
|
|
406
|
+
"boolean",
|
|
407
407
|
"null",
|
|
408
408
|
"undefined"
|
|
409
409
|
]
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
|
-
"name": "
|
|
414
|
-
"description": "
|
|
413
|
+
"name": "errorMessage",
|
|
414
|
+
"description": "Error to show when the field is invalid.",
|
|
415
415
|
"value": {
|
|
416
416
|
"type": [
|
|
417
417
|
"string",
|
|
@@ -421,30 +421,30 @@
|
|
|
421
421
|
}
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
|
-
"name": "
|
|
425
|
-
"description": "
|
|
424
|
+
"name": "helperText",
|
|
425
|
+
"description": "String used for the helper text.",
|
|
426
426
|
"value": {
|
|
427
427
|
"type": [
|
|
428
|
-
"
|
|
428
|
+
"string",
|
|
429
429
|
"null",
|
|
430
430
|
"undefined"
|
|
431
431
|
]
|
|
432
432
|
}
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
|
-
"name": "
|
|
436
|
-
"description": "
|
|
435
|
+
"name": "i18n",
|
|
436
|
+
"description": "An object with translated strings used for localization.\nIt has the following structure and default values:\n\n```js\n{\n // Translation of the reveal icon button accessible label\n reveal: 'Show password'\n}\n```",
|
|
437
437
|
"value": {
|
|
438
438
|
"type": [
|
|
439
|
-
"
|
|
439
|
+
"Object",
|
|
440
440
|
"null",
|
|
441
441
|
"undefined"
|
|
442
442
|
]
|
|
443
443
|
}
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
|
-
"name": "
|
|
447
|
-
"description": "
|
|
446
|
+
"name": "invalid",
|
|
447
|
+
"description": "Set to true when the field is invalid.",
|
|
448
448
|
"value": {
|
|
449
449
|
"type": [
|
|
450
450
|
"boolean",
|
|
@@ -454,8 +454,8 @@
|
|
|
454
454
|
}
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
|
-
"name": "
|
|
458
|
-
"description": "The
|
|
457
|
+
"name": "label",
|
|
458
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
459
459
|
"value": {
|
|
460
460
|
"type": [
|
|
461
461
|
"string",
|
|
@@ -465,41 +465,41 @@
|
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
|
-
"name": "
|
|
469
|
-
"description": "
|
|
468
|
+
"name": "manualValidation",
|
|
469
|
+
"description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
|
|
470
470
|
"value": {
|
|
471
471
|
"type": [
|
|
472
|
-
"
|
|
472
|
+
"boolean",
|
|
473
473
|
"null",
|
|
474
474
|
"undefined"
|
|
475
475
|
]
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
478
|
{
|
|
479
|
-
"name": "
|
|
480
|
-
"description": "
|
|
479
|
+
"name": "maxlength",
|
|
480
|
+
"description": "Maximum number of characters (in Unicode code points) that the user can enter.",
|
|
481
481
|
"value": {
|
|
482
482
|
"type": [
|
|
483
|
-
"
|
|
483
|
+
"number",
|
|
484
484
|
"null",
|
|
485
485
|
"undefined"
|
|
486
486
|
]
|
|
487
487
|
}
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
|
-
"name": "
|
|
491
|
-
"description": "
|
|
490
|
+
"name": "minlength",
|
|
491
|
+
"description": "Minimum number of characters (in Unicode code points) that the user can enter.",
|
|
492
492
|
"value": {
|
|
493
493
|
"type": [
|
|
494
|
-
"
|
|
494
|
+
"number",
|
|
495
495
|
"null",
|
|
496
496
|
"undefined"
|
|
497
497
|
]
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
{
|
|
501
|
-
"name": "
|
|
502
|
-
"description": "
|
|
501
|
+
"name": "name",
|
|
502
|
+
"description": "The name of this field.",
|
|
503
503
|
"value": {
|
|
504
504
|
"type": [
|
|
505
505
|
"string",
|
|
@@ -509,8 +509,8 @@
|
|
|
509
509
|
}
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
|
-
"name": "
|
|
513
|
-
"description": "
|
|
512
|
+
"name": "pattern",
|
|
513
|
+
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
514
514
|
"value": {
|
|
515
515
|
"type": [
|
|
516
516
|
"string",
|
|
@@ -520,8 +520,8 @@
|
|
|
520
520
|
}
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
|
-
"name": "
|
|
524
|
-
"description": "
|
|
523
|
+
"name": "placeholder",
|
|
524
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
525
525
|
"value": {
|
|
526
526
|
"type": [
|
|
527
527
|
"string",
|
|
@@ -531,55 +531,55 @@
|
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
|
-
"name": "
|
|
535
|
-
"description": "
|
|
534
|
+
"name": "readonly",
|
|
535
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
536
536
|
"value": {
|
|
537
537
|
"type": [
|
|
538
|
-
"
|
|
538
|
+
"boolean",
|
|
539
539
|
"null",
|
|
540
540
|
"undefined"
|
|
541
541
|
]
|
|
542
542
|
}
|
|
543
543
|
},
|
|
544
544
|
{
|
|
545
|
-
"name": "
|
|
546
|
-
"description": "
|
|
545
|
+
"name": "required",
|
|
546
|
+
"description": "Specifies that the user must fill in a value.",
|
|
547
547
|
"value": {
|
|
548
548
|
"type": [
|
|
549
|
-
"
|
|
549
|
+
"boolean",
|
|
550
550
|
"null",
|
|
551
551
|
"undefined"
|
|
552
552
|
]
|
|
553
553
|
}
|
|
554
554
|
},
|
|
555
555
|
{
|
|
556
|
-
"name": "
|
|
557
|
-
"description": "
|
|
556
|
+
"name": "revealButtonHidden",
|
|
557
|
+
"description": "Set to true to hide the eye icon which toggles the password visibility.",
|
|
558
558
|
"value": {
|
|
559
559
|
"type": [
|
|
560
|
-
"
|
|
560
|
+
"boolean",
|
|
561
561
|
"null",
|
|
562
562
|
"undefined"
|
|
563
563
|
]
|
|
564
564
|
}
|
|
565
565
|
},
|
|
566
566
|
{
|
|
567
|
-
"name": "
|
|
568
|
-
"description": "
|
|
567
|
+
"name": "title",
|
|
568
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
569
569
|
"value": {
|
|
570
570
|
"type": [
|
|
571
|
-
"
|
|
571
|
+
"string",
|
|
572
572
|
"null",
|
|
573
573
|
"undefined"
|
|
574
574
|
]
|
|
575
575
|
}
|
|
576
576
|
},
|
|
577
577
|
{
|
|
578
|
-
"name": "
|
|
579
|
-
"description": "
|
|
578
|
+
"name": "value",
|
|
579
|
+
"description": "The value of the field.",
|
|
580
580
|
"value": {
|
|
581
581
|
"type": [
|
|
582
|
-
"
|
|
582
|
+
"string",
|
|
583
583
|
"null",
|
|
584
584
|
"undefined"
|
|
585
585
|
]
|
|
@@ -587,10 +587,6 @@
|
|
|
587
587
|
}
|
|
588
588
|
],
|
|
589
589
|
"events": [
|
|
590
|
-
{
|
|
591
|
-
"name": "validated",
|
|
592
|
-
"description": "Fired whenever the field is validated."
|
|
593
|
-
},
|
|
594
590
|
{
|
|
595
591
|
"name": "change",
|
|
596
592
|
"description": "Fired when the user commits a value change."
|
|
@@ -603,6 +599,10 @@
|
|
|
603
599
|
"name": "invalid-changed",
|
|
604
600
|
"description": "Fired when the `invalid` property changes."
|
|
605
601
|
},
|
|
602
|
+
{
|
|
603
|
+
"name": "validated",
|
|
604
|
+
"description": "Fired whenever the field is validated."
|
|
605
|
+
},
|
|
606
606
|
{
|
|
607
607
|
"name": "value-changed",
|
|
608
608
|
"description": "Fired when the `value` property changes."
|
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.1.0-
|
|
4
|
+
"version": "25.1.0-alpha9",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -19,13 +19,6 @@
|
|
|
19
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.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
|
-
{
|
|
23
|
-
"name": "?disabled",
|
|
24
|
-
"description": "If true, the user cannot interact with this element.",
|
|
25
|
-
"value": {
|
|
26
|
-
"kind": "expression"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
22
|
{
|
|
30
23
|
"name": "?autofocus",
|
|
31
24
|
"description": "Specify that this control should have input focus when the page loads.",
|
|
@@ -34,22 +27,8 @@
|
|
|
34
27
|
}
|
|
35
28
|
},
|
|
36
29
|
{
|
|
37
|
-
"name": "?
|
|
38
|
-
"description": "
|
|
39
|
-
"value": {
|
|
40
|
-
"kind": "expression"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "?manualValidation",
|
|
45
|
-
"description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
|
|
46
|
-
"value": {
|
|
47
|
-
"kind": "expression"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "?required",
|
|
52
|
-
"description": "Specifies that the user must fill in a value.",
|
|
30
|
+
"name": "?autoselect",
|
|
31
|
+
"description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
|
|
53
32
|
"value": {
|
|
54
33
|
"kind": "expression"
|
|
55
34
|
}
|
|
@@ -62,43 +41,43 @@
|
|
|
62
41
|
}
|
|
63
42
|
},
|
|
64
43
|
{
|
|
65
|
-
"name": "?
|
|
66
|
-
"description": "If true, the
|
|
44
|
+
"name": "?disabled",
|
|
45
|
+
"description": "If true, the user cannot interact with this element.",
|
|
67
46
|
"value": {
|
|
68
47
|
"kind": "expression"
|
|
69
48
|
}
|
|
70
49
|
},
|
|
71
50
|
{
|
|
72
|
-
"name": "?
|
|
73
|
-
"description": "
|
|
51
|
+
"name": "?invalid",
|
|
52
|
+
"description": "Set to true when the field is invalid.",
|
|
74
53
|
"value": {
|
|
75
54
|
"kind": "expression"
|
|
76
55
|
}
|
|
77
56
|
},
|
|
78
57
|
{
|
|
79
|
-
"name": "?
|
|
80
|
-
"description": "Set to true to
|
|
58
|
+
"name": "?manualValidation",
|
|
59
|
+
"description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
|
|
81
60
|
"value": {
|
|
82
61
|
"kind": "expression"
|
|
83
62
|
}
|
|
84
63
|
},
|
|
85
64
|
{
|
|
86
|
-
"name": "
|
|
87
|
-
"description": "
|
|
65
|
+
"name": "?readonly",
|
|
66
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
88
67
|
"value": {
|
|
89
68
|
"kind": "expression"
|
|
90
69
|
}
|
|
91
70
|
},
|
|
92
71
|
{
|
|
93
|
-
"name": "
|
|
94
|
-
"description": "
|
|
72
|
+
"name": "?required",
|
|
73
|
+
"description": "Specifies that the user must fill in a value.",
|
|
95
74
|
"value": {
|
|
96
75
|
"kind": "expression"
|
|
97
76
|
}
|
|
98
77
|
},
|
|
99
78
|
{
|
|
100
|
-
"name": "
|
|
101
|
-
"description": "
|
|
79
|
+
"name": "?revealButtonHidden",
|
|
80
|
+
"description": "Set to true to hide the eye icon which toggles the password visibility.",
|
|
102
81
|
"value": {
|
|
103
82
|
"kind": "expression"
|
|
104
83
|
}
|
|
@@ -118,57 +97,57 @@
|
|
|
118
97
|
}
|
|
119
98
|
},
|
|
120
99
|
{
|
|
121
|
-
"name": ".
|
|
122
|
-
"description": "
|
|
100
|
+
"name": ".allowedCharPattern",
|
|
101
|
+
"description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
|
|
123
102
|
"value": {
|
|
124
103
|
"kind": "expression"
|
|
125
104
|
}
|
|
126
105
|
},
|
|
127
106
|
{
|
|
128
|
-
"name": ".
|
|
129
|
-
"description": "
|
|
107
|
+
"name": ".autocapitalize",
|
|
108
|
+
"description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
|
|
130
109
|
"value": {
|
|
131
110
|
"kind": "expression"
|
|
132
111
|
}
|
|
133
112
|
},
|
|
134
113
|
{
|
|
135
|
-
"name": ".
|
|
136
|
-
"description": "
|
|
114
|
+
"name": ".autocomplete",
|
|
115
|
+
"description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
|
|
137
116
|
"value": {
|
|
138
117
|
"kind": "expression"
|
|
139
118
|
}
|
|
140
119
|
},
|
|
141
120
|
{
|
|
142
|
-
"name": ".
|
|
143
|
-
"description": "
|
|
121
|
+
"name": ".autocorrect",
|
|
122
|
+
"description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
|
|
144
123
|
"value": {
|
|
145
124
|
"kind": "expression"
|
|
146
125
|
}
|
|
147
126
|
},
|
|
148
127
|
{
|
|
149
|
-
"name": ".
|
|
150
|
-
"description": "
|
|
128
|
+
"name": ".errorMessage",
|
|
129
|
+
"description": "Error to show when the field is invalid.",
|
|
151
130
|
"value": {
|
|
152
131
|
"kind": "expression"
|
|
153
132
|
}
|
|
154
133
|
},
|
|
155
134
|
{
|
|
156
|
-
"name": ".
|
|
157
|
-
"description": "
|
|
135
|
+
"name": ".helperText",
|
|
136
|
+
"description": "String used for the helper text.",
|
|
158
137
|
"value": {
|
|
159
138
|
"kind": "expression"
|
|
160
139
|
}
|
|
161
140
|
},
|
|
162
141
|
{
|
|
163
|
-
"name": ".
|
|
164
|
-
"description": "
|
|
142
|
+
"name": ".i18n",
|
|
143
|
+
"description": "An object with translated strings used for localization.\nIt has the following structure and default values:\n\n```js\n{\n // Translation of the reveal icon button accessible label\n reveal: 'Show password'\n}\n```",
|
|
165
144
|
"value": {
|
|
166
145
|
"kind": "expression"
|
|
167
146
|
}
|
|
168
147
|
},
|
|
169
148
|
{
|
|
170
|
-
"name": ".
|
|
171
|
-
"description": "
|
|
149
|
+
"name": ".label",
|
|
150
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
172
151
|
"value": {
|
|
173
152
|
"kind": "expression"
|
|
174
153
|
}
|
|
@@ -187,6 +166,13 @@
|
|
|
187
166
|
"kind": "expression"
|
|
188
167
|
}
|
|
189
168
|
},
|
|
169
|
+
{
|
|
170
|
+
"name": ".name",
|
|
171
|
+
"description": "The name of this field.",
|
|
172
|
+
"value": {
|
|
173
|
+
"kind": "expression"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
190
176
|
{
|
|
191
177
|
"name": ".pattern",
|
|
192
178
|
"description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
|
|
@@ -195,15 +181,22 @@
|
|
|
195
181
|
}
|
|
196
182
|
},
|
|
197
183
|
{
|
|
198
|
-
"name": ".
|
|
199
|
-
"description": "
|
|
184
|
+
"name": ".placeholder",
|
|
185
|
+
"description": "A hint to the user of what can be entered in the field.",
|
|
200
186
|
"value": {
|
|
201
187
|
"kind": "expression"
|
|
202
188
|
}
|
|
203
189
|
},
|
|
204
190
|
{
|
|
205
|
-
"name": "
|
|
206
|
-
"description": "
|
|
191
|
+
"name": ".title",
|
|
192
|
+
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
193
|
+
"value": {
|
|
194
|
+
"kind": "expression"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": ".value",
|
|
199
|
+
"description": "The value of the field.",
|
|
207
200
|
"value": {
|
|
208
201
|
"kind": "expression"
|
|
209
202
|
}
|
|
@@ -229,6 +222,13 @@
|
|
|
229
222
|
"kind": "expression"
|
|
230
223
|
}
|
|
231
224
|
},
|
|
225
|
+
{
|
|
226
|
+
"name": "@validated",
|
|
227
|
+
"description": "Fired whenever the field is validated.",
|
|
228
|
+
"value": {
|
|
229
|
+
"kind": "expression"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
232
|
{
|
|
233
233
|
"name": "@value-changed",
|
|
234
234
|
"description": "Fired when the `value` property changes.",
|