@vaadin/password-field 24.0.0-beta1 → 24.0.0-beta2

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/password-field",
3
- "version": "24.0.0-beta1",
3
+ "version": "24.0.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,12 +35,12 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@polymer/polymer": "^3.0.0",
38
- "@vaadin/button": "24.0.0-beta1",
39
- "@vaadin/component-base": "24.0.0-beta1",
40
- "@vaadin/text-field": "24.0.0-beta1",
41
- "@vaadin/vaadin-lumo-styles": "24.0.0-beta1",
42
- "@vaadin/vaadin-material-styles": "24.0.0-beta1",
43
- "@vaadin/vaadin-themable-mixin": "24.0.0-beta1"
38
+ "@vaadin/button": "24.0.0-beta2",
39
+ "@vaadin/component-base": "24.0.0-beta2",
40
+ "@vaadin/text-field": "24.0.0-beta2",
41
+ "@vaadin/vaadin-lumo-styles": "24.0.0-beta2",
42
+ "@vaadin/vaadin-material-styles": "24.0.0-beta2",
43
+ "@vaadin/vaadin-themable-mixin": "24.0.0-beta2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
@@ -51,5 +51,5 @@
51
51
  "web-types.json",
52
52
  "web-types.lit.json"
53
53
  ],
54
- "gitHead": "c5b48921a62482746df8e46994b37e1490fec27e"
54
+ "gitHead": "00086f1f6d487f042f189c9b9ecd7ba736960888"
55
55
  }
package/web-types.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/password-field",
4
- "version": "24.0.0-alpha12",
4
+ "version": "24.0.0-beta2",
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\n`<vaadin-password-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.0.0-alpha12/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n----------------|----------------------------------------------------\n`reveal-button` | The eye icon which toggles the password visibility\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n-------------------|---------------------------------\n`password-visible` | Set when the password is visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/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\n`<vaadin-password-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.0.0-beta2/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n----------------|----------------------------------------------------\n`reveal-button` | The eye icon which toggles the password visibility\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n-------------------|---------------------------------\n`password-visible` | Set when the password is visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
- "name": "value",
15
- "description": "The value of the field.",
14
+ "name": "disabled",
15
+ "description": "If true, the user cannot interact with this element.",
16
16
  "value": {
17
17
  "type": [
18
- "string",
18
+ "boolean",
19
19
  "null",
20
20
  "undefined"
21
21
  ]
22
22
  }
23
23
  },
24
24
  {
25
- "name": "invalid",
26
- "description": "Set to true when the field is invalid.",
25
+ "name": "autofocus",
26
+ "description": "Specify that this control should have input focus when the page loads.",
27
27
  "value": {
28
28
  "type": [
29
29
  "boolean",
@@ -33,30 +33,30 @@
33
33
  }
34
34
  },
35
35
  {
36
- "name": "required",
37
- "description": "Specifies that the user must fill in a value.",
36
+ "name": "label",
37
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
38
38
  "value": {
39
39
  "type": [
40
- "boolean",
40
+ "string",
41
41
  "null",
42
42
  "undefined"
43
43
  ]
44
44
  }
45
45
  },
46
46
  {
47
- "name": "pattern",
48
- "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
47
+ "name": "invalid",
48
+ "description": "Set to true when the field is invalid.",
49
49
  "value": {
50
50
  "type": [
51
- "string",
51
+ "boolean",
52
52
  "null",
53
53
  "undefined"
54
54
  ]
55
55
  }
56
56
  },
57
57
  {
58
- "name": "disabled",
59
- "description": "If true, the user cannot interact with this element.",
58
+ "name": "required",
59
+ "description": "Specifies that the user must fill in a value.",
60
60
  "value": {
61
61
  "type": [
62
62
  "boolean",
@@ -66,19 +66,19 @@
66
66
  }
67
67
  },
68
68
  {
69
- "name": "autofocus",
70
- "description": "Specify that this control should have input focus when the page loads.",
69
+ "name": "error-message",
70
+ "description": "Error to show when the field is invalid.",
71
71
  "value": {
72
72
  "type": [
73
- "boolean",
73
+ "string",
74
74
  "null",
75
75
  "undefined"
76
76
  ]
77
77
  }
78
78
  },
79
79
  {
80
- "name": "label",
81
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
80
+ "name": "helper-text",
81
+ "description": "String used for the helper text.",
82
82
  "value": {
83
83
  "type": [
84
84
  "string",
@@ -88,8 +88,8 @@
88
88
  }
89
89
  },
90
90
  {
91
- "name": "error-message",
92
- "description": "Error to show when the field is invalid.",
91
+ "name": "value",
92
+ "description": "The value of the field.",
93
93
  "value": {
94
94
  "type": [
95
95
  "string",
@@ -99,11 +99,11 @@
99
99
  }
100
100
  },
101
101
  {
102
- "name": "helper-text",
103
- "description": "String used for the helper text.",
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
- "string",
106
+ "boolean",
107
107
  "null",
108
108
  "undefined"
109
109
  ]
@@ -131,17 +131,6 @@
131
131
  ]
132
132
  }
133
133
  },
134
- {
135
- "name": "clear-button-visible",
136
- "description": "Set to true to display the clear icon which clears the input.",
137
- "value": {
138
- "type": [
139
- "boolean",
140
- "null",
141
- "undefined"
142
- ]
143
- }
144
- },
145
134
  {
146
135
  "name": "name",
147
136
  "description": "The name of this field.",
@@ -241,6 +230,17 @@
241
230
  ]
242
231
  }
243
232
  },
233
+ {
234
+ "name": "pattern",
235
+ "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
236
+ "value": {
237
+ "type": [
238
+ "string",
239
+ "null",
240
+ "undefined"
241
+ ]
242
+ }
243
+ },
244
244
  {
245
245
  "name": "reveal-button-hidden",
246
246
  "description": "Set to true to hide the eye icon which toggles the password visibility.",
@@ -267,19 +267,19 @@
267
267
  "js": {
268
268
  "properties": [
269
269
  {
270
- "name": "value",
271
- "description": "The value of the field.",
270
+ "name": "disabled",
271
+ "description": "If true, the user cannot interact with this element.",
272
272
  "value": {
273
273
  "type": [
274
- "string",
274
+ "boolean",
275
275
  "null",
276
276
  "undefined"
277
277
  ]
278
278
  }
279
279
  },
280
280
  {
281
- "name": "invalid",
282
- "description": "Set to true when the field is invalid.",
281
+ "name": "autofocus",
282
+ "description": "Specify that this control should have input focus when the page loads.",
283
283
  "value": {
284
284
  "type": [
285
285
  "boolean",
@@ -289,30 +289,30 @@
289
289
  }
290
290
  },
291
291
  {
292
- "name": "required",
293
- "description": "Specifies that the user must fill in a value.",
292
+ "name": "label",
293
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
294
294
  "value": {
295
295
  "type": [
296
- "boolean",
296
+ "string",
297
297
  "null",
298
298
  "undefined"
299
299
  ]
300
300
  }
301
301
  },
302
302
  {
303
- "name": "pattern",
304
- "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
303
+ "name": "invalid",
304
+ "description": "Set to true when the field is invalid.",
305
305
  "value": {
306
306
  "type": [
307
- "string",
307
+ "boolean",
308
308
  "null",
309
309
  "undefined"
310
310
  ]
311
311
  }
312
312
  },
313
313
  {
314
- "name": "disabled",
315
- "description": "If true, the user cannot interact with this element.",
314
+ "name": "required",
315
+ "description": "Specifies that the user must fill in a value.",
316
316
  "value": {
317
317
  "type": [
318
318
  "boolean",
@@ -322,19 +322,19 @@
322
322
  }
323
323
  },
324
324
  {
325
- "name": "autofocus",
326
- "description": "Specify that this control should have input focus when the page loads.",
325
+ "name": "errorMessage",
326
+ "description": "Error to show when the field is invalid.",
327
327
  "value": {
328
328
  "type": [
329
- "boolean",
329
+ "string",
330
330
  "null",
331
331
  "undefined"
332
332
  ]
333
333
  }
334
334
  },
335
335
  {
336
- "name": "label",
337
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
336
+ "name": "helperText",
337
+ "description": "String used for the helper text.",
338
338
  "value": {
339
339
  "type": [
340
340
  "string",
@@ -344,8 +344,8 @@
344
344
  }
345
345
  },
346
346
  {
347
- "name": "errorMessage",
348
- "description": "Error to show when the field is invalid.",
347
+ "name": "value",
348
+ "description": "The value of the field.",
349
349
  "value": {
350
350
  "type": [
351
351
  "string",
@@ -355,11 +355,11 @@
355
355
  }
356
356
  },
357
357
  {
358
- "name": "helperText",
359
- "description": "String used for the helper text.",
358
+ "name": "clearButtonVisible",
359
+ "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.",
360
360
  "value": {
361
361
  "type": [
362
- "string",
362
+ "boolean",
363
363
  "null",
364
364
  "undefined"
365
365
  ]
@@ -387,17 +387,6 @@
387
387
  ]
388
388
  }
389
389
  },
390
- {
391
- "name": "clearButtonVisible",
392
- "description": "Set to true to display the clear icon which clears the input.",
393
- "value": {
394
- "type": [
395
- "boolean",
396
- "null",
397
- "undefined"
398
- ]
399
- }
400
- },
401
390
  {
402
391
  "name": "name",
403
392
  "description": "The name of this field.",
@@ -497,6 +486,17 @@
497
486
  ]
498
487
  }
499
488
  },
489
+ {
490
+ "name": "pattern",
491
+ "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
492
+ "value": {
493
+ "type": [
494
+ "string",
495
+ "null",
496
+ "undefined"
497
+ ]
498
+ }
499
+ },
500
500
  {
501
501
  "name": "revealButtonHidden",
502
502
  "description": "Set to true to hide the eye icon which toggles the password visibility.",
@@ -533,13 +533,13 @@
533
533
  "name": "input",
534
534
  "description": "Fired when the value is changed by the user: on every typing keystroke,\nand the value is cleared using the clear button."
535
535
  },
536
- {
537
- "name": "value-changed",
538
- "description": "Fired when the `value` property changes."
539
- },
540
536
  {
541
537
  "name": "invalid-changed",
542
538
  "description": "Fired when the `invalid` property changes."
539
+ },
540
+ {
541
+ "name": "value-changed",
542
+ "description": "Fired when the `value` property changes."
543
543
  }
544
544
  ]
545
545
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/password-field",
4
- "version": "24.0.0-alpha12",
4
+ "version": "24.0.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,23 +16,9 @@
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\n`<vaadin-password-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.0.0-alpha12/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n----------------|----------------------------------------------------\n`reveal-button` | The eye icon which toggles the password visibility\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n-------------------|---------------------------------\n`password-visible` | Set when the password is visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/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\n`<vaadin-password-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.0.0-beta2/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n----------------|----------------------------------------------------\n`reveal-button` | The eye icon which toggles the password visibility\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n-------------------|---------------------------------\n`password-visible` | Set when the password is visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
- {
23
- "name": "?invalid",
24
- "description": "Set to true when the field is invalid.",
25
- "value": {
26
- "kind": "expression"
27
- }
28
- },
29
- {
30
- "name": "?required",
31
- "description": "Specifies that the user must fill in a value.",
32
- "value": {
33
- "kind": "expression"
34
- }
35
- },
36
22
  {
37
23
  "name": "?disabled",
38
24
  "description": "If true, the user cannot interact with this element.",
@@ -48,43 +34,43 @@
48
34
  }
49
35
  },
50
36
  {
51
- "name": "?autoselect",
52
- "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
37
+ "name": "?invalid",
38
+ "description": "Set to true when the field is invalid.",
53
39
  "value": {
54
40
  "kind": "expression"
55
41
  }
56
42
  },
57
43
  {
58
- "name": "?clearButtonVisible",
59
- "description": "Set to true to display the clear icon which clears the input.",
44
+ "name": "?required",
45
+ "description": "Specifies that the user must fill in a value.",
60
46
  "value": {
61
47
  "kind": "expression"
62
48
  }
63
49
  },
64
50
  {
65
- "name": "?readonly",
66
- "description": "When present, it specifies that the field is read-only.",
51
+ "name": "?clearButtonVisible",
52
+ "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.",
67
53
  "value": {
68
54
  "kind": "expression"
69
55
  }
70
56
  },
71
57
  {
72
- "name": "?revealButtonHidden",
73
- "description": "Set to true to hide the eye icon which toggles the password visibility.",
58
+ "name": "?autoselect",
59
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
74
60
  "value": {
75
61
  "kind": "expression"
76
62
  }
77
63
  },
78
64
  {
79
- "name": ".value",
80
- "description": "The value of the field.",
65
+ "name": "?readonly",
66
+ "description": "When present, it specifies that the field is read-only.",
81
67
  "value": {
82
68
  "kind": "expression"
83
69
  }
84
70
  },
85
71
  {
86
- "name": ".pattern",
87
- "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
72
+ "name": "?revealButtonHidden",
73
+ "description": "Set to true to hide the eye icon which toggles the password visibility.",
88
74
  "value": {
89
75
  "kind": "expression"
90
76
  }
@@ -110,6 +96,13 @@
110
96
  "kind": "expression"
111
97
  }
112
98
  },
99
+ {
100
+ "name": ".value",
101
+ "description": "The value of the field.",
102
+ "value": {
103
+ "kind": "expression"
104
+ }
105
+ },
113
106
  {
114
107
  "name": ".allowedCharPattern",
115
108
  "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-]\"`",
@@ -173,6 +166,13 @@
173
166
  "kind": "expression"
174
167
  }
175
168
  },
169
+ {
170
+ "name": ".pattern",
171
+ "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
172
+ "value": {
173
+ "kind": "expression"
174
+ }
175
+ },
176
176
  {
177
177
  "name": ".i18n",
178
178
  "description": "An object with translated strings used for localization.\nIt has the following structure and default values:\n\n```\n{\n // Translation of the reveal icon button accessible label\n reveal: 'Show password'\n}\n```",
@@ -202,15 +202,15 @@
202
202
  }
203
203
  },
204
204
  {
205
- "name": "@value-changed",
206
- "description": "Fired when the `value` property changes.",
205
+ "name": "@invalid-changed",
206
+ "description": "Fired when the `invalid` property changes.",
207
207
  "value": {
208
208
  "kind": "expression"
209
209
  }
210
210
  },
211
211
  {
212
- "name": "@invalid-changed",
213
- "description": "Fired when the `invalid` property changes.",
212
+ "name": "@value-changed",
213
+ "description": "Fired when the `value` property changes.",
214
214
  "value": {
215
215
  "kind": "expression"
216
216
  }