@vaadin/login 25.1.0-alpha7 → 25.1.0-alpha9

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.
@@ -97,6 +97,28 @@
97
97
  "module": "src/vaadin-login-mixin.js"
98
98
  }
99
99
  },
100
+ {
101
+ "kind": "field",
102
+ "name": "i18n",
103
+ "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```js\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```",
104
+ "return": {
105
+ "type": {
106
+ "text": "!LoginI18n"
107
+ }
108
+ },
109
+ "parameters": [
110
+ {
111
+ "name": "value",
112
+ "type": {
113
+ "text": "Object"
114
+ }
115
+ }
116
+ ],
117
+ "inheritedFrom": {
118
+ "name": "I18nMixin",
119
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
120
+ }
121
+ },
100
122
  {
101
123
  "kind": "field",
102
124
  "name": "noAutofocus",
@@ -205,6 +227,13 @@
205
227
  "module": "src/vaadin-login-mixin.js"
206
228
  }
207
229
  },
230
+ {
231
+ "name": "i18n",
232
+ "inheritedFrom": {
233
+ "name": "I18nMixin",
234
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
235
+ }
236
+ },
208
237
  {
209
238
  "name": "no-autofocus",
210
239
  "type": {
@@ -389,6 +418,28 @@
389
418
  "module": "src/vaadin-login-mixin.js"
390
419
  }
391
420
  },
421
+ {
422
+ "kind": "field",
423
+ "name": "i18n",
424
+ "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```js\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```",
425
+ "return": {
426
+ "type": {
427
+ "text": "!LoginI18n"
428
+ }
429
+ },
430
+ "parameters": [
431
+ {
432
+ "name": "value",
433
+ "type": {
434
+ "text": "Object"
435
+ }
436
+ }
437
+ ],
438
+ "inheritedFrom": {
439
+ "name": "I18nMixin",
440
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
441
+ }
442
+ },
392
443
  {
393
444
  "kind": "field",
394
445
  "name": "noAutofocus",
@@ -538,6 +589,13 @@
538
589
  "module": "src/vaadin-login-mixin.js"
539
590
  }
540
591
  },
592
+ {
593
+ "name": "i18n",
594
+ "inheritedFrom": {
595
+ "name": "I18nMixin",
596
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
597
+ }
598
+ },
541
599
  {
542
600
  "name": "no-autofocus",
543
601
  "type": {
@@ -625,6 +683,28 @@
625
683
  "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.",
626
684
  "attribute": "heading-level"
627
685
  },
686
+ {
687
+ "kind": "field",
688
+ "name": "i18n",
689
+ "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```js\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```",
690
+ "return": {
691
+ "type": {
692
+ "text": "!LoginI18n"
693
+ }
694
+ },
695
+ "parameters": [
696
+ {
697
+ "name": "value",
698
+ "type": {
699
+ "text": "Object"
700
+ }
701
+ }
702
+ ],
703
+ "inheritedFrom": {
704
+ "name": "I18nMixin",
705
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
706
+ }
707
+ },
628
708
  {
629
709
  "kind": "field",
630
710
  "name": "noAutofocus",
@@ -679,6 +759,13 @@
679
759
  "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.",
680
760
  "fieldName": "headingLevel"
681
761
  },
762
+ {
763
+ "name": "i18n",
764
+ "inheritedFrom": {
765
+ "name": "I18nMixin",
766
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
767
+ }
768
+ },
682
769
  {
683
770
  "name": "no-autofocus",
684
771
  "type": {
@@ -897,6 +984,28 @@
897
984
  "module": "src/vaadin-login-mixin.js"
898
985
  }
899
986
  },
987
+ {
988
+ "kind": "field",
989
+ "name": "i18n",
990
+ "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```js\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```",
991
+ "return": {
992
+ "type": {
993
+ "text": "!LoginI18n"
994
+ }
995
+ },
996
+ "parameters": [
997
+ {
998
+ "name": "value",
999
+ "type": {
1000
+ "text": "Object"
1001
+ }
1002
+ }
1003
+ ],
1004
+ "inheritedFrom": {
1005
+ "name": "I18nMixin",
1006
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
1007
+ }
1008
+ },
900
1009
  {
901
1010
  "kind": "field",
902
1011
  "name": "noAutofocus",
@@ -1108,6 +1217,13 @@
1108
1217
  "module": "src/vaadin-login-mixin.js"
1109
1218
  }
1110
1219
  },
1220
+ {
1221
+ "name": "i18n",
1222
+ "inheritedFrom": {
1223
+ "name": "I18nMixin",
1224
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
1225
+ }
1226
+ },
1111
1227
  {
1112
1228
  "name": "no-autofocus",
1113
1229
  "type": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/login",
3
- "version": "25.1.0-alpha7",
3
+ "version": "25.1.0-alpha9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,22 +35,22 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/button": "25.1.0-alpha7",
39
- "@vaadin/component-base": "25.1.0-alpha7",
40
- "@vaadin/overlay": "25.1.0-alpha7",
41
- "@vaadin/password-field": "25.1.0-alpha7",
42
- "@vaadin/text-field": "25.1.0-alpha7",
43
- "@vaadin/vaadin-themable-mixin": "25.1.0-alpha7",
38
+ "@vaadin/button": "25.1.0-alpha9",
39
+ "@vaadin/component-base": "25.1.0-alpha9",
40
+ "@vaadin/overlay": "25.1.0-alpha9",
41
+ "@vaadin/password-field": "25.1.0-alpha9",
42
+ "@vaadin/text-field": "25.1.0-alpha9",
43
+ "@vaadin/vaadin-themable-mixin": "25.1.0-alpha9",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/a11y-base": "25.1.0-alpha7",
48
- "@vaadin/aura": "25.1.0-alpha7",
49
- "@vaadin/chai-plugins": "25.1.0-alpha7",
50
- "@vaadin/checkbox": "25.1.0-alpha7",
51
- "@vaadin/test-runner-commands": "25.1.0-alpha7",
47
+ "@vaadin/a11y-base": "25.1.0-alpha9",
48
+ "@vaadin/aura": "25.1.0-alpha9",
49
+ "@vaadin/chai-plugins": "25.1.0-alpha9",
50
+ "@vaadin/checkbox": "25.1.0-alpha9",
51
+ "@vaadin/test-runner-commands": "25.1.0-alpha9",
52
52
  "@vaadin/testing-helpers": "^2.0.0",
53
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha7",
53
+ "@vaadin/vaadin-lumo-styles": "25.1.0-alpha9",
54
54
  "sinon": "^21.0.0"
55
55
  },
56
56
  "customElements": "custom-elements.json",
@@ -58,5 +58,5 @@
58
58
  "web-types.json",
59
59
  "web-types.lit.json"
60
60
  ],
61
- "gitHead": "98c586125f769c8fefd307536965293668fda81d"
61
+ "gitHead": "ef432311376ba3dac4233cb23d393a49a425e0a4"
62
62
  }
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": "25.1.0-alpha7",
4
+ "version": "25.1.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -39,11 +39,13 @@
39
39
  }
40
40
  },
41
41
  {
42
- "name": "no-forgot-password",
43
- "description": "Whether to hide the forgot password button. The button is visible by default.",
42
+ "name": "heading-level",
43
+ "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.",
44
44
  "value": {
45
45
  "type": [
46
- "boolean"
46
+ "number",
47
+ "null",
48
+ "undefined"
47
49
  ]
48
50
  }
49
51
  },
@@ -57,13 +59,11 @@
57
59
  }
58
60
  },
59
61
  {
60
- "name": "heading-level",
61
- "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.",
62
+ "name": "no-forgot-password",
63
+ "description": "Whether to hide the forgot password button. The button is visible by default.",
62
64
  "value": {
63
65
  "type": [
64
- "number",
65
- "null",
66
- "undefined"
66
+ "boolean"
67
67
  ]
68
68
  }
69
69
  },
@@ -81,15 +81,6 @@
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```js\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
- },
93
84
  {
94
85
  "name": "action",
95
86
  "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.",
@@ -119,11 +110,22 @@
119
110
  }
120
111
  },
121
112
  {
122
- "name": "noForgotPassword",
123
- "description": "Whether to hide the forgot password button. The button is visible by default.",
113
+ "name": "headingLevel",
114
+ "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.",
124
115
  "value": {
125
116
  "type": [
126
- "boolean"
117
+ "number",
118
+ "null",
119
+ "undefined"
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "name": "i18n",
125
+ "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```js\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```",
126
+ "value": {
127
+ "type": [
128
+ "LoginI18n"
127
129
  ]
128
130
  }
129
131
  },
@@ -137,26 +139,16 @@
137
139
  }
138
140
  },
139
141
  {
140
- "name": "headingLevel",
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.",
142
+ "name": "noForgotPassword",
143
+ "description": "Whether to hide the forgot password button. The button is visible by default.",
142
144
  "value": {
143
145
  "type": [
144
- "number",
145
- "null",
146
- "undefined"
146
+ "boolean"
147
147
  ]
148
148
  }
149
149
  }
150
150
  ],
151
151
  "events": [
152
- {
153
- "name": "forgot-password",
154
- "description": "Fired when user clicks on the \"Forgot password\" button."
155
- },
156
- {
157
- "name": "login",
158
- "description": "Fired when an user submits the login.\nThe event contains `username` and `password` values in the `detail` property."
159
- },
160
152
  {
161
153
  "name": "disabled-changed",
162
154
  "description": "Fired when the `disabled` property changes."
@@ -164,6 +156,14 @@
164
156
  {
165
157
  "name": "error-changed",
166
158
  "description": "Fired when the `error` property changes."
159
+ },
160
+ {
161
+ "name": "forgot-password",
162
+ "description": "Fired when user clicks on the \"Forgot password\" button."
163
+ },
164
+ {
165
+ "name": "login",
166
+ "description": "Fired when an user submits the login.\nThe event contains `username` and `password` values in the `detail` property."
167
167
  }
168
168
  ]
169
169
  }
@@ -183,26 +183,17 @@
183
183
  }
184
184
  },
185
185
  {
186
- "name": "disabled",
187
- "description": "If set, disable the \"Log in\" button and prevent user from submitting login form.\nIt is re-enabled automatically, when error is set to true, allowing form resubmission\nafter user makes changes.",
188
- "value": {
189
- "type": [
190
- "boolean"
191
- ]
192
- }
193
- },
194
- {
195
- "name": "error",
196
- "description": "If set, the error message is shown. The message is hidden by default.\nWhen set, it changes the disabled state of the submit button.",
186
+ "name": "description",
187
+ "description": "Defines the application description",
197
188
  "value": {
198
189
  "type": [
199
- "boolean"
190
+ "string"
200
191
  ]
201
192
  }
202
193
  },
203
194
  {
204
- "name": "no-forgot-password",
205
- "description": "Whether to hide the forgot password button. The button is visible by default.",
195
+ "name": "disabled",
196
+ "description": "If set, disable the \"Log in\" button and prevent user from submitting login form.\nIt is re-enabled automatically, when error is set to true, allowing form resubmission\nafter user makes changes.",
206
197
  "value": {
207
198
  "type": [
208
199
  "boolean"
@@ -210,8 +201,8 @@
210
201
  }
211
202
  },
212
203
  {
213
- "name": "no-autofocus",
214
- "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
204
+ "name": "error",
205
+ "description": "If set, the error message is shown. The message is hidden by default.\nWhen set, it changes the disabled state of the submit button.",
215
206
  "value": {
216
207
  "type": [
217
208
  "boolean"
@@ -230,17 +221,17 @@
230
221
  }
231
222
  },
232
223
  {
233
- "name": "description",
234
- "description": "Defines the application description",
224
+ "name": "no-autofocus",
225
+ "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
235
226
  "value": {
236
227
  "type": [
237
- "string"
228
+ "boolean"
238
229
  ]
239
230
  }
240
231
  },
241
232
  {
242
- "name": "opened",
243
- "description": "True if the overlay is currently displayed.",
233
+ "name": "no-forgot-password",
234
+ "description": "Whether to hide the forgot password button. The button is visible by default.",
244
235
  "value": {
245
236
  "type": [
246
237
  "boolean"
@@ -248,11 +239,11 @@
248
239
  }
249
240
  },
250
241
  {
251
- "name": "title",
252
- "description": "Defines the application title",
242
+ "name": "opened",
243
+ "description": "True if the overlay is currently displayed.",
253
244
  "value": {
254
245
  "type": [
255
- "string"
246
+ "boolean"
256
247
  ]
257
248
  }
258
249
  },
@@ -266,26 +257,35 @@
266
257
  "undefined"
267
258
  ]
268
259
  }
260
+ },
261
+ {
262
+ "name": "title",
263
+ "description": "Defines the application title",
264
+ "value": {
265
+ "type": [
266
+ "string"
267
+ ]
268
+ }
269
269
  }
270
270
  ],
271
271
  "js": {
272
272
  "properties": [
273
273
  {
274
- "name": "i18n",
275
- "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```js\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```",
274
+ "name": "action",
275
+ "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.",
276
276
  "value": {
277
277
  "type": [
278
- "LoginI18n"
278
+ "string",
279
+ "null"
279
280
  ]
280
281
  }
281
282
  },
282
283
  {
283
- "name": "action",
284
- "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.",
284
+ "name": "description",
285
+ "description": "Defines the application description",
285
286
  "value": {
286
287
  "type": [
287
- "string",
288
- "null"
288
+ "string"
289
289
  ]
290
290
  }
291
291
  },
@@ -308,40 +308,40 @@
308
308
  }
309
309
  },
310
310
  {
311
- "name": "noForgotPassword",
312
- "description": "Whether to hide the forgot password button. The button is visible by default.",
311
+ "name": "headingLevel",
312
+ "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.",
313
313
  "value": {
314
314
  "type": [
315
- "boolean"
315
+ "number",
316
+ "null",
317
+ "undefined"
316
318
  ]
317
319
  }
318
320
  },
319
321
  {
320
- "name": "noAutofocus",
321
- "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
322
+ "name": "i18n",
323
+ "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```js\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```",
322
324
  "value": {
323
325
  "type": [
324
- "boolean"
326
+ "LoginI18n"
325
327
  ]
326
328
  }
327
329
  },
328
330
  {
329
- "name": "headingLevel",
330
- "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.",
331
+ "name": "noAutofocus",
332
+ "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
331
333
  "value": {
332
334
  "type": [
333
- "number",
334
- "null",
335
- "undefined"
335
+ "boolean"
336
336
  ]
337
337
  }
338
338
  },
339
339
  {
340
- "name": "description",
341
- "description": "Defines the application description",
340
+ "name": "noForgotPassword",
341
+ "description": "Whether to hide the forgot password button. The button is visible by default.",
342
342
  "value": {
343
343
  "type": [
344
- "string"
344
+ "boolean"
345
345
  ]
346
346
  }
347
347
  },
@@ -365,18 +365,14 @@
365
365
  }
366
366
  ],
367
367
  "events": [
368
- {
369
- "name": "forgot-password",
370
- "description": "Fired when user clicks on the \"Forgot password\" button."
371
- },
372
- {
373
- "name": "login",
374
- "description": "Fired when an user submits the login.\nThe event contains `username` and `password` values in the `detail` property."
375
- },
376
368
  {
377
369
  "name": "closed",
378
370
  "description": "Fired when the overlay is closed."
379
371
  },
372
+ {
373
+ "name": "description-changed",
374
+ "description": "Fired when the `description` property changes."
375
+ },
380
376
  {
381
377
  "name": "disabled-changed",
382
378
  "description": "Fired when the `disabled` property changes."
@@ -386,8 +382,12 @@
386
382
  "description": "Fired when the `error` property changes."
387
383
  },
388
384
  {
389
- "name": "description-changed",
390
- "description": "Fired when the `description` property changes."
385
+ "name": "forgot-password",
386
+ "description": "Fired when user clicks on the \"Forgot password\" button."
387
+ },
388
+ {
389
+ "name": "login",
390
+ "description": "Fired when an user submits the login.\nThe event contains `username` and `password` values in the `detail` property."
391
391
  }
392
392
  ]
393
393
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/login",
4
- "version": "25.1.0-alpha7",
4
+ "version": "25.1.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -33,13 +33,6 @@
33
33
  "kind": "expression"
34
34
  }
35
35
  },
36
- {
37
- "name": "?noForgotPassword",
38
- "description": "Whether to hide the forgot password button. The button is visible by default.",
39
- "value": {
40
- "kind": "expression"
41
- }
42
- },
43
36
  {
44
37
  "name": "?noAutofocus",
45
38
  "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
@@ -48,8 +41,8 @@
48
41
  }
49
42
  },
50
43
  {
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```js\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```",
44
+ "name": "?noForgotPassword",
45
+ "description": "Whether to hide the forgot password button. The button is visible by default.",
53
46
  "value": {
54
47
  "kind": "expression"
55
48
  }
@@ -69,29 +62,36 @@
69
62
  }
70
63
  },
71
64
  {
72
- "name": "@forgot-password",
73
- "description": "Fired when user clicks on the \"Forgot password\" button.",
65
+ "name": ".i18n",
66
+ "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```js\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```",
74
67
  "value": {
75
68
  "kind": "expression"
76
69
  }
77
70
  },
78
71
  {
79
- "name": "@login",
80
- "description": "Fired when an user submits the login.\nThe event contains `username` and `password` values in the `detail` property.",
72
+ "name": "@disabled-changed",
73
+ "description": "Fired when the `disabled` property changes.",
81
74
  "value": {
82
75
  "kind": "expression"
83
76
  }
84
77
  },
85
78
  {
86
- "name": "@disabled-changed",
87
- "description": "Fired when the `disabled` property changes.",
79
+ "name": "@error-changed",
80
+ "description": "Fired when the `error` property changes.",
88
81
  "value": {
89
82
  "kind": "expression"
90
83
  }
91
84
  },
92
85
  {
93
- "name": "@error-changed",
94
- "description": "Fired when the `error` property changes.",
86
+ "name": "@forgot-password",
87
+ "description": "Fired when user clicks on the \"Forgot password\" button.",
88
+ "value": {
89
+ "kind": "expression"
90
+ }
91
+ },
92
+ {
93
+ "name": "@login",
94
+ "description": "Fired when an user submits the login.\nThe event contains `username` and `password` values in the `detail` property.",
95
95
  "value": {
96
96
  "kind": "expression"
97
97
  }
@@ -118,15 +118,15 @@
118
118
  }
119
119
  },
120
120
  {
121
- "name": "?noForgotPassword",
122
- "description": "Whether to hide the forgot password button. The button is visible by default.",
121
+ "name": "?noAutofocus",
122
+ "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
123
123
  "value": {
124
124
  "kind": "expression"
125
125
  }
126
126
  },
127
127
  {
128
- "name": "?noAutofocus",
129
- "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
128
+ "name": "?noForgotPassword",
129
+ "description": "Whether to hide the forgot password button. The button is visible by default.",
130
130
  "value": {
131
131
  "kind": "expression"
132
132
  }
@@ -139,15 +139,15 @@
139
139
  }
140
140
  },
141
141
  {
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```js\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```",
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.",
144
144
  "value": {
145
145
  "kind": "expression"
146
146
  }
147
147
  },
148
148
  {
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.",
149
+ "name": ".description",
150
+ "description": "Defines the application description",
151
151
  "value": {
152
152
  "kind": "expression"
153
153
  }
@@ -160,8 +160,8 @@
160
160
  }
161
161
  },
162
162
  {
163
- "name": ".description",
164
- "description": "Defines the application description",
163
+ "name": ".i18n",
164
+ "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```js\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```",
165
165
  "value": {
166
166
  "kind": "expression"
167
167
  }
@@ -174,43 +174,43 @@
174
174
  }
175
175
  },
176
176
  {
177
- "name": "@forgot-password",
178
- "description": "Fired when user clicks on the \"Forgot password\" button.",
177
+ "name": "@closed",
178
+ "description": "Fired when the overlay is closed.",
179
179
  "value": {
180
180
  "kind": "expression"
181
181
  }
182
182
  },
183
183
  {
184
- "name": "@login",
185
- "description": "Fired when an user submits the login.\nThe event contains `username` and `password` values in the `detail` property.",
184
+ "name": "@description-changed",
185
+ "description": "Fired when the `description` property changes.",
186
186
  "value": {
187
187
  "kind": "expression"
188
188
  }
189
189
  },
190
190
  {
191
- "name": "@closed",
192
- "description": "Fired when the overlay is closed.",
191
+ "name": "@disabled-changed",
192
+ "description": "Fired when the `disabled` property changes.",
193
193
  "value": {
194
194
  "kind": "expression"
195
195
  }
196
196
  },
197
197
  {
198
- "name": "@disabled-changed",
199
- "description": "Fired when the `disabled` property changes.",
198
+ "name": "@error-changed",
199
+ "description": "Fired when the `error` property changes.",
200
200
  "value": {
201
201
  "kind": "expression"
202
202
  }
203
203
  },
204
204
  {
205
- "name": "@error-changed",
206
- "description": "Fired when the `error` property changes.",
205
+ "name": "@forgot-password",
206
+ "description": "Fired when user clicks on the \"Forgot password\" button.",
207
207
  "value": {
208
208
  "kind": "expression"
209
209
  }
210
210
  },
211
211
  {
212
- "name": "@description-changed",
213
- "description": "Fired when the `description` property changes.",
212
+ "name": "@login",
213
+ "description": "Fired when an user submits the login.\nThe event contains `username` and `password` values in the `detail` property.",
214
214
  "value": {
215
215
  "kind": "expression"
216
216
  }