@vaadin/password-field 22.0.17 → 22.0.19
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": "22.0.
|
|
3
|
+
"version": "22.0.19",
|
|
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.19",
|
|
36
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.19",
|
|
37
|
+
"@vaadin/vaadin-material-styles": "^22.0.19"
|
|
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": "6995c629cf6314ccbfebfcbc819bcfc47e1745ce"
|
|
45
45
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { SlotMixin } from '@vaadin/component-base/src/slot-mixin.js';
|
|
7
|
-
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
8
7
|
import { TextField } from '@vaadin/text-field/src/vaadin-text-field.js';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -56,7 +55,7 @@ export interface PasswordFieldEventMap extends HTMLElementEventMap, PasswordFiel
|
|
|
56
55
|
* @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
|
|
57
56
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
58
57
|
*/
|
|
59
|
-
declare class PasswordField extends
|
|
58
|
+
declare class PasswordField extends SlotMixin(TextField) {
|
|
60
59
|
/**
|
|
61
60
|
* Set to true to hide the eye icon which toggles the password visibility.
|
|
62
61
|
* @attr {boolean} reveal-button-hidden
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
|
|
7
7
|
import { SlotMixin } from '@vaadin/component-base/src/slot-mixin.js';
|
|
8
|
-
import { SlotStylesMixin } from '@vaadin/field-base/src/slot-styles-mixin.js';
|
|
9
8
|
import { TextField } from '@vaadin/text-field/src/vaadin-text-field.js';
|
|
10
9
|
|
|
11
10
|
const ownTemplate = html`
|
|
@@ -48,9 +47,8 @@ let memoizedTemplate;
|
|
|
48
47
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
49
48
|
*
|
|
50
49
|
* @extends TextField
|
|
51
|
-
* @mixes SlotStylesMixin
|
|
52
50
|
*/
|
|
53
|
-
export class PasswordField extends
|
|
51
|
+
export class PasswordField extends SlotMixin(TextField) {
|
|
54
52
|
static get is() {
|
|
55
53
|
return 'vaadin-password-field';
|
|
56
54
|
}
|
|
@@ -138,6 +136,7 @@ export class PasswordField extends SlotStylesMixin(SlotMixin(TextField)) {
|
|
|
138
136
|
get slotStyles() {
|
|
139
137
|
const tag = this.localName;
|
|
140
138
|
return [
|
|
139
|
+
...super.slotStyles,
|
|
141
140
|
`
|
|
142
141
|
${tag} [slot="input"]::-ms-reveal {
|
|
143
142
|
display: none;
|