@vaadin/login 24.7.0-rc1 → 24.8.0-alpha1

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.7.0-rc1",
3
+ "version": "24.8.0-alpha1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,20 +37,20 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/button": "24.7.0-rc1",
41
- "@vaadin/component-base": "24.7.0-rc1",
42
- "@vaadin/overlay": "24.7.0-rc1",
43
- "@vaadin/password-field": "24.7.0-rc1",
44
- "@vaadin/text-field": "24.7.0-rc1",
45
- "@vaadin/vaadin-lumo-styles": "24.7.0-rc1",
46
- "@vaadin/vaadin-material-styles": "24.7.0-rc1",
47
- "@vaadin/vaadin-themable-mixin": "24.7.0-rc1",
40
+ "@vaadin/button": "24.8.0-alpha1",
41
+ "@vaadin/component-base": "24.8.0-alpha1",
42
+ "@vaadin/overlay": "24.8.0-alpha1",
43
+ "@vaadin/password-field": "24.8.0-alpha1",
44
+ "@vaadin/text-field": "24.8.0-alpha1",
45
+ "@vaadin/vaadin-lumo-styles": "24.8.0-alpha1",
46
+ "@vaadin/vaadin-material-styles": "24.8.0-alpha1",
47
+ "@vaadin/vaadin-themable-mixin": "24.8.0-alpha1",
48
48
  "lit": "^3.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@vaadin/chai-plugins": "24.7.0-rc1",
52
- "@vaadin/checkbox": "24.7.0-rc1",
53
- "@vaadin/test-runner-commands": "24.7.0-rc1",
51
+ "@vaadin/chai-plugins": "24.8.0-alpha1",
52
+ "@vaadin/checkbox": "24.8.0-alpha1",
53
+ "@vaadin/test-runner-commands": "24.8.0-alpha1",
54
54
  "@vaadin/testing-helpers": "^1.1.0",
55
55
  "sinon": "^18.0.0"
56
56
  },
@@ -58,5 +58,5 @@
58
58
  "web-types.json",
59
59
  "web-types.lit.json"
60
60
  ],
61
- "gitHead": "28f6d361ebf39070c0961cee75ee6c14089109b2"
61
+ "gitHead": "dfec8767c5d1c343ae689c93429c3364f4182f76"
62
62
  }
@@ -49,15 +49,15 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
49
49
  id="vaadinLoginFormWrapper"
50
50
  theme="${ifDefined(this._theme)}"
51
51
  .error="${this.error}"
52
- .i18n="${this.i18n}"
52
+ .i18n="${this.__effectiveI18n}"
53
53
  .headingLevel="${this.headingLevel}"
54
54
  >
55
55
  <form method="POST" action="${ifDefined(this.action)}" @formdata="${this._onFormData}" slot="form">
56
56
  <input id="csrf" type="hidden" />
57
57
  <vaadin-text-field
58
58
  name="username"
59
- .label="${this.i18n.form.username}"
60
- .errorMessage="${this.i18n.errorMessage.username}"
59
+ .label="${this.__effectiveI18n.form.username}"
60
+ .errorMessage="${this.__effectiveI18n.errorMessage.username}"
61
61
  id="vaadinLoginUsername"
62
62
  required
63
63
  @keydown="${this._handleInputKeydown}"
@@ -72,8 +72,8 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
72
72
 
73
73
  <vaadin-password-field
74
74
  name="password"
75
- .label="${this.i18n.form.password}"
76
- .errorMessage="${this.i18n.errorMessage.password}"
75
+ .label="${this.__effectiveI18n.form.password}"
76
+ .errorMessage="${this.__effectiveI18n.errorMessage.password}"
77
77
  id="vaadinLoginPassword"
78
78
  required
79
79
  @keydown="${this._handleInputKeydown}"
@@ -91,7 +91,7 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
91
91
  @click="${this.submit}"
92
92
  .disabled="${this.disabled}"
93
93
  >
94
- ${this.i18n.form.submit}
94
+ ${this.__effectiveI18n.form.submit}
95
95
  </vaadin-button>
96
96
 
97
97
  <vaadin-button
@@ -100,7 +100,7 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
100
100
  @click="${this._onForgotPasswordClick}"
101
101
  ?hidden="${this.noForgotPassword}"
102
102
  >
103
- ${this.i18n.form.forgotPassword}
103
+ ${this.__effectiveI18n.form.forgotPassword}
104
104
  </vaadin-button>
105
105
  </vaadin-login-form-wrapper>
106
106
  `;
@@ -53,7 +53,7 @@ class LoginOverlay extends LoginOverlayMixin(ElementMixin(ThemableMixin(PolylitM
53
53
  .noAutofocus="${this.noAutofocus}"
54
54
  .noForgotPassword="${this.noForgotPassword}"
55
55
  .headingLevel="${this.__computeHeadingLevel(this.headingLevel)}"
56
- .i18n="${this.i18n}"
56
+ .i18n="${this.__effectiveI18n}"
57
57
  @login="${this._retargetEvent}"
58
58
  @forgot-password="${this._retargetEvent}"
59
59
  @disabled-changed="${this._onDisabledChanged}"
@@ -65,15 +65,15 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolymerElement
65
65
  id="vaadinLoginFormWrapper"
66
66
  theme$="[[_theme]]"
67
67
  error="[[error]]"
68
- i18n="[[i18n]]"
68
+ i18n="[[__effectiveI18n]]"
69
69
  heading-level="[[headingLevel]]"
70
70
  >
71
71
  <form method="POST" action$="[[action]]" on-formdata="_onFormData" slot="form">
72
72
  <input id="csrf" type="hidden" />
73
73
  <vaadin-text-field
74
74
  name="username"
75
- label="[[i18n.form.username]]"
76
- error-message="[[i18n.errorMessage.username]]"
75
+ label="[[__effectiveI18n.form.username]]"
76
+ error-message="[[__effectiveI18n.errorMessage.username]]"
77
77
  id="vaadinLoginUsername"
78
78
  required
79
79
  on-keydown="_handleInputKeydown"
@@ -88,8 +88,8 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolymerElement
88
88
 
89
89
  <vaadin-password-field
90
90
  name="password"
91
- label="[[i18n.form.password]]"
92
- error-message="[[i18n.errorMessage.password]]"
91
+ label="[[__effectiveI18n.form.password]]"
92
+ error-message="[[__effectiveI18n.errorMessage.password]]"
93
93
  id="vaadinLoginPassword"
94
94
  required
95
95
  on-keydown="_handleInputKeydown"
@@ -102,7 +102,7 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolymerElement
102
102
  </form>
103
103
 
104
104
  <vaadin-button slot="submit" theme="primary contained submit" on-click="submit" disabled$="[[disabled]]">
105
- [[i18n.form.submit]]
105
+ [[__effectiveI18n.form.submit]]
106
106
  </vaadin-button>
107
107
 
108
108
  <vaadin-button
@@ -111,7 +111,7 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolymerElement
111
111
  on-click="_onForgotPasswordClick"
112
112
  hidden$="[[noForgotPassword]]"
113
113
  >
114
- [[i18n.form.forgotPassword]]
114
+ [[__effectiveI18n.form.forgotPassword]]
115
115
  </vaadin-button>
116
116
  </vaadin-login-form-wrapper>
117
117
  `;
@@ -4,8 +4,9 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
7
+ import type { PartialI18n } from '@vaadin/component-base/src/i18n-mixin.js';
7
8
 
8
- export interface LoginI18n {
9
+ export type LoginI18n = PartialI18n<{
9
10
  form: {
10
11
  title: string;
11
12
  username: string;
@@ -24,7 +25,7 @@ export interface LoginI18n {
24
25
  description?: string;
25
26
  };
26
27
  additionalInformation?: string;
27
- }
28
+ }>;
28
29
 
29
30
  export declare function LoginMixin<T extends Constructor<HTMLElement>>(base: T): Constructor<LoginMixinClass> & T;
30
31
 
@@ -61,9 +62,9 @@ export declare class LoginMixinClass {
61
62
  noAutofocus: boolean;
62
63
 
63
64
  /**
64
- * The object used to localize this component.
65
- * For changing the default localization, change the entire
66
- * _i18n_ object or just the property you want to modify.
65
+ * The object used to localize this component. To change the default
66
+ * localization, replace this with an object that provides all properties, or
67
+ * just the individual properties you want to change.
67
68
  *
68
69
  * The object has the following JSON structure (by default it doesn't include `additionalInformation`
69
70
  * and `header` sections, `header` can be added to override `title` and `description` properties
@@ -3,12 +3,30 @@
3
3
  * Copyright (c) 2018 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
+ import { I18nMixin } from '@vaadin/component-base/src/i18n-mixin.js';
7
+
8
+ const DEFAULT_I18N = {
9
+ form: {
10
+ title: 'Log in',
11
+ username: 'Username',
12
+ password: 'Password',
13
+ submit: 'Log in',
14
+ forgotPassword: 'Forgot password',
15
+ },
16
+ errorMessage: {
17
+ title: 'Incorrect username or password',
18
+ message: 'Check that you have entered the correct username and password and try again.',
19
+ username: 'Username is required',
20
+ password: 'Password is required',
21
+ },
22
+ };
6
23
 
7
24
  /**
25
+ * @mixes LoginMixin
8
26
  * @polymerMixin
9
27
  */
10
28
  export const LoginMixin = (superClass) =>
11
- class LoginMixin extends superClass {
29
+ class LoginMixin extends I18nMixin(DEFAULT_I18N, superClass) {
12
30
  /**
13
31
  * Fired when user clicks on the "Forgot password" button.
14
32
  *
@@ -78,62 +96,6 @@ export const LoginMixin = (superClass) =>
78
96
  value: false,
79
97
  },
80
98
 
81
- /**
82
- * The object used to localize this component.
83
- * For changing the default localization, change the entire
84
- * _i18n_ object or just the property you want to modify.
85
- *
86
- * The object has the following JSON structure (by default it doesn't include `additionalInformation`
87
- * and `header` sections, `header` can be added to override `title` and `description` properties
88
- * in `vaadin-login-overlay`):
89
- *
90
- * ```
91
- * {
92
- * header: {
93
- * title: 'App name',
94
- * description: 'Inspiring application description'
95
- * },
96
- * form: {
97
- * title: 'Log in',
98
- * username: 'Username',
99
- * password: 'Password',
100
- * submit: 'Log in',
101
- * forgotPassword: 'Forgot password'
102
- * },
103
- * errorMessage: {
104
- * title: 'Incorrect username or password',
105
- * message: 'Check that you have entered the correct username and password and try again.',
106
- * username: 'Username is required',
107
- * password: 'Password is required'
108
- * },
109
- * additionalInformation: 'In case you need to provide some additional info for the user.'
110
- * }
111
- * ```
112
- *
113
- * @type {!LoginI18n}
114
- * @default {English/US}
115
- */
116
- i18n: {
117
- type: Object,
118
- value() {
119
- return {
120
- form: {
121
- title: 'Log in',
122
- username: 'Username',
123
- password: 'Password',
124
- submit: 'Log in',
125
- forgotPassword: 'Forgot password',
126
- },
127
- errorMessage: {
128
- title: 'Incorrect username or password',
129
- message: 'Check that you have entered the correct username and password and try again.',
130
- username: 'Username is required',
131
- password: 'Password is required',
132
- },
133
- };
134
- },
135
- },
136
-
137
99
  /**
138
100
  * Sets the root heading level (`aria-level`) for the heading hierarchy. Default value: 1.
139
101
  * Child headings automatically increment from this base level i.e. standalone login form
@@ -157,4 +119,45 @@ export const LoginMixin = (superClass) =>
157
119
  },
158
120
  };
159
121
  }
122
+
123
+ /**
124
+ * The object used to localize this component. To change the default
125
+ * localization, replace this with an object that provides all properties, or
126
+ * just the individual properties you want to change.
127
+ *
128
+ * The object has the following JSON structure (by default it doesn't include `additionalInformation`
129
+ * and `header` sections, `header` can be added to override `title` and `description` properties
130
+ * in `vaadin-login-overlay`):
131
+ *
132
+ * ```
133
+ * {
134
+ * header: {
135
+ * title: 'App name',
136
+ * description: 'Inspiring application description'
137
+ * },
138
+ * form: {
139
+ * title: 'Log in',
140
+ * username: 'Username',
141
+ * password: 'Password',
142
+ * submit: 'Log in',
143
+ * forgotPassword: 'Forgot password'
144
+ * },
145
+ * errorMessage: {
146
+ * title: 'Incorrect username or password',
147
+ * message: 'Check that you have entered the correct username and password and try again.',
148
+ * username: 'Username is required',
149
+ * password: 'Password is required'
150
+ * },
151
+ * additionalInformation: 'In case you need to provide some additional info for the user.'
152
+ * }
153
+ * ```
154
+ * @return {!LoginI18n}
155
+ */
156
+ get i18n() {
157
+ return super.i18n;
158
+ }
159
+
160
+ set i18n(value) {
161
+ super.i18n = value;
162
+ }
160
163
  };
@@ -47,7 +47,7 @@ export const LoginOverlayMixin = (superClass) =>
47
47
  }
48
48
 
49
49
  static get observers() {
50
- return ['__i18nChanged(i18n)'];
50
+ return ['__i18nChanged(__effectiveI18n)'];
51
51
  }
52
52
 
53
53
  /** @protected */
@@ -77,8 +77,8 @@ export const LoginOverlayMixin = (superClass) =>
77
77
  }
78
78
 
79
79
  /** @private */
80
- __i18nChanged(i18n) {
81
- const header = i18n && i18n.header;
80
+ __i18nChanged(effectiveI18n) {
81
+ const header = effectiveI18n && effectiveI18n.header;
82
82
  if (!header) {
83
83
  return;
84
84
  }
@@ -75,7 +75,7 @@ class LoginOverlay extends LoginOverlayMixin(ElementMixin(ThemableMixin(PolymerE
75
75
  heading-level="[[__computeHeadingLevel(headingLevel)]]"
76
76
  no-autofocus="[[noAutofocus]]"
77
77
  no-forgot-password="[[noForgotPassword]]"
78
- i18n="{{i18n}}"
78
+ i18n="{{__effectiveI18n}}"
79
79
  on-login="_retargetEvent"
80
80
  on-forgot-password="_retargetEvent"
81
81
  ></vaadin-login-form>
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.7.0-rc1",
4
+ "version": "24.8.0-alpha1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -81,6 +81,15 @@
81
81
  ],
82
82
  "js": {
83
83
  "properties": [
84
+ {
85
+ "name": "i18n",
86
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure (by default it doesn't include `additionalInformation`\nand `header` sections, `header` can be added to override `title` and `description` properties\nin `vaadin-login-overlay`):\n\n```\n{\n header: {\n title: 'App name',\n description: 'Inspiring application description'\n },\n form: {\n title: 'Log in',\n username: 'Username',\n password: 'Password',\n submit: 'Log in',\n forgotPassword: 'Forgot password'\n },\n errorMessage: {\n title: 'Incorrect username or password',\n message: 'Check that you have entered the correct username and password and try again.',\n username: 'Username is required',\n password: 'Password is required'\n },\n additionalInformation: 'In case you need to provide some additional info for the user.'\n}\n```",
87
+ "value": {
88
+ "type": [
89
+ "LoginI18n"
90
+ ]
91
+ }
92
+ },
84
93
  {
85
94
  "name": "action",
86
95
  "description": "If set, a synchronous POST call will be fired to the path defined.\nThe `login` event is also dispatched, so `event.preventDefault()` can be called to prevent the POST call.",
@@ -127,15 +136,6 @@
127
136
  ]
128
137
  }
129
138
  },
130
- {
131
- "name": "i18n",
132
- "description": "The object used to localize this component.\nFor changing the default localization, change the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure (by default it doesn't include `additionalInformation`\nand `header` sections, `header` can be added to override `title` and `description` properties\nin `vaadin-login-overlay`):\n\n```\n{\n header: {\n title: 'App name',\n description: 'Inspiring application description'\n },\n form: {\n title: 'Log in',\n username: 'Username',\n password: 'Password',\n submit: 'Log in',\n forgotPassword: 'Forgot password'\n },\n errorMessage: {\n title: 'Incorrect username or password',\n message: 'Check that you have entered the correct username and password and try again.',\n username: 'Username is required',\n password: 'Password is required'\n },\n additionalInformation: 'In case you need to provide some additional info for the user.'\n}\n```",
133
- "value": {
134
- "type": [
135
- "LoginI18n"
136
- ]
137
- }
138
- },
139
139
  {
140
140
  "name": "headingLevel",
141
141
  "description": "Sets the root heading level (`aria-level`) for the heading hierarchy. Default value: 1.\nChild headings automatically increment from this base level i.e. standalone login form\nrenders its title as `<h1>`, whereas the form in the overlay uses `<h2>`, as the `<h1>`\nelement is used by the overlay's own title.",
@@ -170,7 +170,7 @@
170
170
  },
171
171
  {
172
172
  "name": "vaadin-login-overlay",
173
- "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.7.0-rc1/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
173
+ "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.8.0-alpha1/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
174
174
  "attributes": [
175
175
  {
176
176
  "name": "action",
@@ -281,6 +281,15 @@
281
281
  ],
282
282
  "js": {
283
283
  "properties": [
284
+ {
285
+ "name": "i18n",
286
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure (by default it doesn't include `additionalInformation`\nand `header` sections, `header` can be added to override `title` and `description` properties\nin `vaadin-login-overlay`):\n\n```\n{\n header: {\n title: 'App name',\n description: 'Inspiring application description'\n },\n form: {\n title: 'Log in',\n username: 'Username',\n password: 'Password',\n submit: 'Log in',\n forgotPassword: 'Forgot password'\n },\n errorMessage: {\n title: 'Incorrect username or password',\n message: 'Check that you have entered the correct username and password and try again.',\n username: 'Username is required',\n password: 'Password is required'\n },\n additionalInformation: 'In case you need to provide some additional info for the user.'\n}\n```",
287
+ "value": {
288
+ "type": [
289
+ "LoginI18n"
290
+ ]
291
+ }
292
+ },
284
293
  {
285
294
  "name": "action",
286
295
  "description": "If set, a synchronous POST call will be fired to the path defined.\nThe `login` event is also dispatched, so `event.preventDefault()` can be called to prevent the POST call.",
@@ -327,15 +336,6 @@
327
336
  ]
328
337
  }
329
338
  },
330
- {
331
- "name": "i18n",
332
- "description": "The object used to localize this component.\nFor changing the default localization, change the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure (by default it doesn't include `additionalInformation`\nand `header` sections, `header` can be added to override `title` and `description` properties\nin `vaadin-login-overlay`):\n\n```\n{\n header: {\n title: 'App name',\n description: 'Inspiring application description'\n },\n form: {\n title: 'Log in',\n username: 'Username',\n password: 'Password',\n submit: 'Log in',\n forgotPassword: 'Forgot password'\n },\n errorMessage: {\n title: 'Incorrect username or password',\n message: 'Check that you have entered the correct username and password and try again.',\n username: 'Username is required',\n password: 'Password is required'\n },\n additionalInformation: 'In case you need to provide some additional info for the user.'\n}\n```",
333
- "value": {
334
- "type": [
335
- "LoginI18n"
336
- ]
337
- }
338
- },
339
339
  {
340
340
  "name": "headingLevel",
341
341
  "description": "Sets the root heading level (`aria-level`) for the heading hierarchy. Default value: 1.\nChild headings automatically increment from this base level i.e. standalone login form\nrenders its title as `<h1>`, whereas the form in the overlay uses `<h2>`, as the `<h1>`\nelement is used by the overlay's own title.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/login",
4
- "version": "24.7.0-rc1",
4
+ "version": "24.8.0-alpha1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -48,15 +48,15 @@
48
48
  }
49
49
  },
50
50
  {
51
- "name": ".action",
52
- "description": "If set, a synchronous POST call will be fired to the path defined.\nThe `login` event is also dispatched, so `event.preventDefault()` can be called to prevent the POST call.",
51
+ "name": ".i18n",
52
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure (by default it doesn't include `additionalInformation`\nand `header` sections, `header` can be added to override `title` and `description` properties\nin `vaadin-login-overlay`):\n\n```\n{\n header: {\n title: 'App name',\n description: 'Inspiring application description'\n },\n form: {\n title: 'Log in',\n username: 'Username',\n password: 'Password',\n submit: 'Log in',\n forgotPassword: 'Forgot password'\n },\n errorMessage: {\n title: 'Incorrect username or password',\n message: 'Check that you have entered the correct username and password and try again.',\n username: 'Username is required',\n password: 'Password is required'\n },\n additionalInformation: 'In case you need to provide some additional info for the user.'\n}\n```",
53
53
  "value": {
54
54
  "kind": "expression"
55
55
  }
56
56
  },
57
57
  {
58
- "name": ".i18n",
59
- "description": "The object used to localize this component.\nFor changing the default localization, change the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure (by default it doesn't include `additionalInformation`\nand `header` sections, `header` can be added to override `title` and `description` properties\nin `vaadin-login-overlay`):\n\n```\n{\n header: {\n title: 'App name',\n description: 'Inspiring application description'\n },\n form: {\n title: 'Log in',\n username: 'Username',\n password: 'Password',\n submit: 'Log in',\n forgotPassword: 'Forgot password'\n },\n errorMessage: {\n title: 'Incorrect username or password',\n message: 'Check that you have entered the correct username and password and try again.',\n username: 'Username is required',\n password: 'Password is required'\n },\n additionalInformation: 'In case you need to provide some additional info for the user.'\n}\n```",
58
+ "name": ".action",
59
+ "description": "If set, a synchronous POST call will be fired to the path defined.\nThe `login` event is also dispatched, so `event.preventDefault()` can be called to prevent the POST call.",
60
60
  "value": {
61
61
  "kind": "expression"
62
62
  }
@@ -100,7 +100,7 @@
100
100
  },
101
101
  {
102
102
  "name": "vaadin-login-overlay",
103
- "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.7.0-rc1/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
103
+ "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.8.0-alpha1/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
104
104
  "extension": true,
105
105
  "attributes": [
106
106
  {
@@ -139,15 +139,15 @@
139
139
  }
140
140
  },
141
141
  {
142
- "name": ".action",
143
- "description": "If set, a synchronous POST call will be fired to the path defined.\nThe `login` event is also dispatched, so `event.preventDefault()` can be called to prevent the POST call.",
142
+ "name": ".i18n",
143
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure (by default it doesn't include `additionalInformation`\nand `header` sections, `header` can be added to override `title` and `description` properties\nin `vaadin-login-overlay`):\n\n```\n{\n header: {\n title: 'App name',\n description: 'Inspiring application description'\n },\n form: {\n title: 'Log in',\n username: 'Username',\n password: 'Password',\n submit: 'Log in',\n forgotPassword: 'Forgot password'\n },\n errorMessage: {\n title: 'Incorrect username or password',\n message: 'Check that you have entered the correct username and password and try again.',\n username: 'Username is required',\n password: 'Password is required'\n },\n additionalInformation: 'In case you need to provide some additional info for the user.'\n}\n```",
144
144
  "value": {
145
145
  "kind": "expression"
146
146
  }
147
147
  },
148
148
  {
149
- "name": ".i18n",
150
- "description": "The object used to localize this component.\nFor changing the default localization, change the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure (by default it doesn't include `additionalInformation`\nand `header` sections, `header` can be added to override `title` and `description` properties\nin `vaadin-login-overlay`):\n\n```\n{\n header: {\n title: 'App name',\n description: 'Inspiring application description'\n },\n form: {\n title: 'Log in',\n username: 'Username',\n password: 'Password',\n submit: 'Log in',\n forgotPassword: 'Forgot password'\n },\n errorMessage: {\n title: 'Incorrect username or password',\n message: 'Check that you have entered the correct username and password and try again.',\n username: 'Username is required',\n password: 'Password is required'\n },\n additionalInformation: 'In case you need to provide some additional info for the user.'\n}\n```",
149
+ "name": ".action",
150
+ "description": "If set, a synchronous POST call will be fired to the path defined.\nThe `login` event is also dispatched, so `event.preventDefault()` can be called to prevent the POST call.",
151
151
  "value": {
152
152
  "kind": "expression"
153
153
  }