@vaadin/password-field 23.1.7 → 23.1.8
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": "23.1.
|
|
3
|
+
"version": "23.1.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/button": "~23.1.
|
|
37
|
-
"@vaadin/text-field": "~23.1.
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "~23.1.
|
|
39
|
-
"@vaadin/vaadin-material-styles": "~23.1.
|
|
36
|
+
"@vaadin/button": "~23.1.8",
|
|
37
|
+
"@vaadin/text-field": "~23.1.8",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "~23.1.8",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "~23.1.8"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@esm-bundle/chai": "^4.3.4",
|
|
43
43
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
44
44
|
"sinon": "^13.0.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "297e4e51743751bed97f5400e661529a7d550870"
|
|
47
47
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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 { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
7
6
|
import { TextField } from '@vaadin/text-field/src/vaadin-text-field.js';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -64,7 +63,7 @@ export interface PasswordFieldEventMap extends HTMLElementEventMap, PasswordFiel
|
|
|
64
63
|
* @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
|
|
65
64
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
66
65
|
*/
|
|
67
|
-
declare class PasswordField extends
|
|
66
|
+
declare class PasswordField extends TextField {
|
|
68
67
|
/**
|
|
69
68
|
* Set to true to hide the eye icon which toggles the password visibility.
|
|
70
69
|
* @attr {boolean} reveal-button-hidden
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import './vaadin-password-field-button.js';
|
|
7
7
|
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
|
|
8
8
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
9
|
-
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
10
9
|
import { TextField } from '@vaadin/text-field/src/vaadin-text-field.js';
|
|
11
10
|
|
|
12
11
|
const ownTemplate = html`
|
|
@@ -49,9 +48,8 @@ let memoizedTemplate;
|
|
|
49
48
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
50
49
|
*
|
|
51
50
|
* @extends TextField
|
|
52
|
-
* @mixes SlotStylesMixin
|
|
53
51
|
*/
|
|
54
|
-
export class PasswordField extends
|
|
52
|
+
export class PasswordField extends TextField {
|
|
55
53
|
static get is() {
|
|
56
54
|
return 'vaadin-password-field';
|
|
57
55
|
}
|
|
@@ -126,6 +124,7 @@ export class PasswordField extends SlotStylesMixin(TextField) {
|
|
|
126
124
|
get slotStyles() {
|
|
127
125
|
const tag = this.localName;
|
|
128
126
|
return [
|
|
127
|
+
...super.slotStyles,
|
|
129
128
|
`
|
|
130
129
|
${tag} [slot="input"]::-ms-reveal {
|
|
131
130
|
display: none;
|