@vaadin/login 24.6.0-alpha6 → 24.6.0-alpha8

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/login",
3
- "version": "24.6.0-alpha6",
3
+ "version": "24.6.0-alpha8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,19 +37,19 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/button": "24.6.0-alpha6",
41
- "@vaadin/component-base": "24.6.0-alpha6",
42
- "@vaadin/overlay": "24.6.0-alpha6",
43
- "@vaadin/password-field": "24.6.0-alpha6",
44
- "@vaadin/text-field": "24.6.0-alpha6",
45
- "@vaadin/vaadin-lumo-styles": "24.6.0-alpha6",
46
- "@vaadin/vaadin-material-styles": "24.6.0-alpha6",
47
- "@vaadin/vaadin-themable-mixin": "24.6.0-alpha6",
40
+ "@vaadin/button": "24.6.0-alpha8",
41
+ "@vaadin/component-base": "24.6.0-alpha8",
42
+ "@vaadin/overlay": "24.6.0-alpha8",
43
+ "@vaadin/password-field": "24.6.0-alpha8",
44
+ "@vaadin/text-field": "24.6.0-alpha8",
45
+ "@vaadin/vaadin-lumo-styles": "24.6.0-alpha8",
46
+ "@vaadin/vaadin-material-styles": "24.6.0-alpha8",
47
+ "@vaadin/vaadin-themable-mixin": "24.6.0-alpha8",
48
48
  "lit": "^3.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@vaadin/chai-plugins": "24.6.0-alpha6",
52
- "@vaadin/checkbox": "24.6.0-alpha6",
51
+ "@vaadin/chai-plugins": "24.6.0-alpha8",
52
+ "@vaadin/checkbox": "24.6.0-alpha8",
53
53
  "@vaadin/testing-helpers": "^1.0.0",
54
54
  "sinon": "^18.0.0"
55
55
  },
@@ -57,5 +57,5 @@
57
57
  "web-types.json",
58
58
  "web-types.lit.json"
59
59
  ],
60
- "gitHead": "53f2f0c6cb9324a832ee7c0a052db927e151e167"
60
+ "gitHead": "a11e1510c4caa08775b202714f5fc1198c22132a"
61
61
  }
@@ -64,6 +64,7 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
64
64
  autocorrect="off"
65
65
  spellcheck="false"
66
66
  autocomplete="username"
67
+ manual-validation
67
68
  >
68
69
  <input type="text" slot="input" @keyup="${this._handleInputKeyup}" />
69
70
  </vaadin-text-field>
@@ -77,6 +78,7 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
77
78
  @keydown="${this._handleInputKeydown}"
78
79
  spellcheck="false"
79
80
  autocomplete="current-password"
81
+ manual-validation
80
82
  >
81
83
  <input type="password" slot="input" @keyup="${this._handleInputKeyup}" />
82
84
  </vaadin-password-field>
@@ -50,7 +50,12 @@ export const LoginFormMixin = (superClass) =>
50
50
  const userName = this.$.vaadinLoginUsername;
51
51
  const password = this.$.vaadinLoginPassword;
52
52
 
53
- if (this.disabled || !(userName.validate() && password.validate())) {
53
+ // eslint-disable-next-line no-restricted-syntax
54
+ userName.validate();
55
+ // eslint-disable-next-line no-restricted-syntax
56
+ password.validate();
57
+
58
+ if (this.disabled || userName.invalid || password.invalid) {
54
59
  return;
55
60
  }
56
61
 
@@ -114,6 +119,7 @@ export const LoginFormMixin = (superClass) =>
114
119
  const { currentTarget: inputActive } = e;
115
120
  const nextInput =
116
121
  inputActive.id === 'vaadinLoginUsername' ? this.$.vaadinLoginPassword : this.$.vaadinLoginUsername;
122
+ // eslint-disable-next-line no-restricted-syntax
117
123
  if (inputActive.validate()) {
118
124
  if (nextInput.checkValidity()) {
119
125
  this.submit();
@@ -75,6 +75,7 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolymerElement
75
75
  autocorrect="off"
76
76
  spellcheck="false"
77
77
  autocomplete="username"
78
+ manual-validation
78
79
  >
79
80
  <input type="text" slot="input" on-keyup="_handleInputKeyup" />
80
81
  </vaadin-text-field>
@@ -88,6 +89,7 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolymerElement
88
89
  on-keydown="_handleInputKeydown"
89
90
  spellcheck="false"
90
91
  autocomplete="current-password"
92
+ manual-validation
91
93
  >
92
94
  <input type="password" slot="input" on-keyup="_handleInputKeyup" />
93
95
  </vaadin-password-field>
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/login",
4
- "version": "24.6.0-alpha6",
4
+ "version": "24.6.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -148,7 +148,7 @@
148
148
  },
149
149
  {
150
150
  "name": "vaadin-login-overlay",
151
- "description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha6/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
151
+ "description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha8/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
152
152
  "attributes": [
153
153
  {
154
154
  "name": "action",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/login",
4
- "version": "24.6.0-alpha6",
4
+ "version": "24.6.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -93,7 +93,7 @@
93
93
  },
94
94
  {
95
95
  "name": "vaadin-login-overlay",
96
- "description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha6/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
96
+ "description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha8/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
97
97
  "extension": true,
98
98
  "attributes": [
99
99
  {