@vaadin/password-field 22.0.1 → 22.0.5
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 +5 -5
- package/src/vaadin-password-field.d.ts +3 -2
- package/src/vaadin-password-field.js +3 -3
- package/theme/lumo/vaadin-password-field-styles.js +1 -1
- package/theme/lumo/vaadin-password-field.js +1 -1
- package/theme/material/vaadin-password-field-styles.js +1 -1
- package/theme/material/vaadin-password-field.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/password-field",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@polymer/polymer": "^3.0.0",
|
|
35
|
-
"@vaadin/text-field": "^22.0.
|
|
36
|
-
"@vaadin/vaadin-lumo-styles": "^22.0.
|
|
37
|
-
"@vaadin/vaadin-material-styles": "^22.0.
|
|
35
|
+
"@vaadin/text-field": "^22.0.5",
|
|
36
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.5",
|
|
37
|
+
"@vaadin/vaadin-material-styles": "^22.0.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@esm-bundle/chai": "^4.3.4",
|
|
41
41
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
42
42
|
"sinon": "^9.2.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "3e1990867670f3de2dec6fa1200d945623b2710c"
|
|
45
45
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2021 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
+
import { SlotMixin } from '@vaadin/component-base/src/slot-mixin.js';
|
|
6
7
|
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
7
8
|
import { TextField } from '@vaadin/text-field/src/vaadin-text-field.js';
|
|
8
9
|
|
|
@@ -55,7 +56,7 @@ export interface PasswordFieldEventMap extends HTMLElementEventMap, PasswordFiel
|
|
|
55
56
|
* @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
|
|
56
57
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
57
58
|
*/
|
|
58
|
-
declare class PasswordField extends SlotStylesMixin(TextField) {
|
|
59
|
+
declare class PasswordField extends SlotStylesMixin(SlotMixin(TextField)) {
|
|
59
60
|
/**
|
|
60
61
|
* Set to true to hide the eye icon which toggles the password visibility.
|
|
61
62
|
* @attr {boolean} reveal-button-hidden
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2021 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
|
|
7
|
+
import { SlotMixin } from '@vaadin/component-base/src/slot-mixin.js';
|
|
7
8
|
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
8
9
|
import { TextField } from '@vaadin/text-field/src/vaadin-text-field.js';
|
|
9
10
|
|
|
@@ -49,7 +50,7 @@ let memoizedTemplate;
|
|
|
49
50
|
* @extends TextField
|
|
50
51
|
* @mixes SlotStylesMixin
|
|
51
52
|
*/
|
|
52
|
-
export class PasswordField extends SlotStylesMixin(TextField) {
|
|
53
|
+
export class PasswordField extends SlotStylesMixin(SlotMixin(TextField)) {
|
|
53
54
|
static get is() {
|
|
54
55
|
return 'vaadin-password-field';
|
|
55
56
|
}
|
|
@@ -170,7 +171,6 @@ export class PasswordField extends SlotStylesMixin(TextField) {
|
|
|
170
171
|
|
|
171
172
|
if (this._revealNode) {
|
|
172
173
|
this.__updateAriaLabel(this.i18n);
|
|
173
|
-
this._revealNode.setAttribute('aria-label', 'Show password');
|
|
174
174
|
this._revealNode.addEventListener('click', this.__boundRevealButtonClick);
|
|
175
175
|
this._revealNode.addEventListener('touchend', this.__boundRevealButtonTouchend);
|
|
176
176
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2021 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2021 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/text-field/theme/material/vaadin-text-field.js';
|