@vaadin/login 25.1.0-alpha9 → 25.1.0-beta2

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.
@@ -101,19 +101,9 @@
101
101
  "kind": "field",
102
102
  "name": "i18n",
103
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
- ],
104
+ "type": {
105
+ "text": "Object"
106
+ },
117
107
  "inheritedFrom": {
118
108
  "name": "I18nMixin",
119
109
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -280,79 +270,6 @@
280
270
  }
281
271
  ]
282
272
  },
283
- {
284
- "kind": "javascript-module",
285
- "path": "src/vaadin-login-form-wrapper.js",
286
- "declarations": [
287
- {
288
- "kind": "class",
289
- "description": "An element used internally by `<vaadin-login-form>`. Not intended to be used separately.",
290
- "name": "LoginFormWrapper",
291
- "members": [
292
- {
293
- "kind": "field",
294
- "name": "error",
295
- "privacy": "public",
296
- "type": {
297
- "text": "boolean"
298
- },
299
- "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.",
300
- "attribute": "error"
301
- },
302
- {
303
- "kind": "field",
304
- "name": "i18n",
305
- "privacy": "public",
306
- "type": {
307
- "text": "object"
308
- },
309
- "description": "The object used to localize this component.",
310
- "attribute": "i18n"
311
- }
312
- ],
313
- "attributes": [
314
- {
315
- "name": "error",
316
- "type": {
317
- "text": "boolean"
318
- },
319
- "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.",
320
- "fieldName": "error"
321
- }
322
- ],
323
- "mixins": [
324
- {
325
- "name": "ThemableMixin",
326
- "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
327
- },
328
- {
329
- "name": "PolylitMixin",
330
- "package": "@vaadin/component-base/src/polylit-mixin.js"
331
- },
332
- {
333
- "name": "LumoInjectionMixin",
334
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
335
- }
336
- ],
337
- "superclass": {
338
- "name": "LitElement",
339
- "package": "lit"
340
- },
341
- "customElement": true,
342
- "events": []
343
- }
344
- ],
345
- "exports": [
346
- {
347
- "kind": "js",
348
- "name": "LoginFormWrapper",
349
- "declaration": {
350
- "name": "LoginFormWrapper",
351
- "module": "src/vaadin-login-form-wrapper.js"
352
- }
353
- }
354
- ]
355
- },
356
273
  {
357
274
  "kind": "javascript-module",
358
275
  "path": "src/vaadin-login-form.js",
@@ -422,19 +339,9 @@
422
339
  "kind": "field",
423
340
  "name": "i18n",
424
341
  "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
- ],
342
+ "type": {
343
+ "text": "Object"
344
+ },
438
345
  "inheritedFrom": {
439
346
  "name": "I18nMixin",
440
347
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -687,19 +594,9 @@
687
594
  "kind": "field",
688
595
  "name": "i18n",
689
596
  "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
- ],
597
+ "type": {
598
+ "text": "Object"
599
+ },
703
600
  "inheritedFrom": {
704
601
  "name": "I18nMixin",
705
602
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -899,12 +796,6 @@
899
796
  }
900
797
  ]
901
798
  },
902
- {
903
- "kind": "javascript-module",
904
- "path": "src/vaadin-login-overlay-wrapper.js",
905
- "declarations": [],
906
- "exports": []
907
- },
908
799
  {
909
800
  "kind": "javascript-module",
910
801
  "path": "src/vaadin-login-overlay.js",
@@ -988,19 +879,9 @@
988
879
  "kind": "field",
989
880
  "name": "i18n",
990
881
  "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
- ],
882
+ "type": {
883
+ "text": "Object"
884
+ },
1004
885
  "inheritedFrom": {
1005
886
  "name": "I18nMixin",
1006
887
  "package": "@vaadin/component-base/src/i18n-mixin.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/login",
3
- "version": "25.1.0-alpha9",
3
+ "version": "25.1.0-beta2",
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-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",
38
+ "@vaadin/button": "25.1.0-beta2",
39
+ "@vaadin/component-base": "25.1.0-beta2",
40
+ "@vaadin/overlay": "25.1.0-beta2",
41
+ "@vaadin/password-field": "25.1.0-beta2",
42
+ "@vaadin/text-field": "25.1.0-beta2",
43
+ "@vaadin/vaadin-themable-mixin": "25.1.0-beta2",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
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",
47
+ "@vaadin/a11y-base": "25.1.0-beta2",
48
+ "@vaadin/aura": "25.1.0-beta2",
49
+ "@vaadin/chai-plugins": "25.1.0-beta2",
50
+ "@vaadin/checkbox": "25.1.0-beta2",
51
+ "@vaadin/test-runner-commands": "25.1.0-beta2",
52
52
  "@vaadin/testing-helpers": "^2.0.0",
53
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha9",
53
+ "@vaadin/vaadin-lumo-styles": "25.1.0-beta2",
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": "ef432311376ba3dac4233cb23d393a49a425e0a4"
61
+ "gitHead": "ffbedbae08a5160d13bcd1c6fcaa328df5103a05"
62
62
  }
@@ -31,7 +31,6 @@ class LoginFormWrapper extends ThemableMixin(PolylitMixin(LumoInjectionMixin(Lit
31
31
  /**
32
32
  * If set, the error message is shown. The message is hidden by default.
33
33
  * When set, it changes the disabled state of the submit button.
34
- * @type {boolean}
35
34
  */
36
35
  error: {
37
36
  type: Boolean,
@@ -56,7 +56,6 @@ export const LoginMixin = (superClass) =>
56
56
  * If set, disable the "Log in" button and prevent user from submitting login form.
57
57
  * It is re-enabled automatically, when error is set to true, allowing form resubmission
58
58
  * after user makes changes.
59
- * @type {boolean}
60
59
  */
61
60
  disabled: {
62
61
  type: Boolean,
@@ -67,7 +66,6 @@ export const LoginMixin = (superClass) =>
67
66
  /**
68
67
  * If set, the error message is shown. The message is hidden by default.
69
68
  * When set, it changes the disabled state of the submit button.
70
- * @type {boolean}
71
69
  */
72
70
  error: {
73
71
  type: Boolean,
@@ -78,7 +76,6 @@ export const LoginMixin = (superClass) =>
78
76
 
79
77
  /**
80
78
  * Whether to hide the forgot password button. The button is visible by default.
81
- * @type {boolean}
82
79
  * @attr {boolean} no-forgot-password
83
80
  */
84
81
  noForgotPassword: {
@@ -88,7 +85,6 @@ export const LoginMixin = (superClass) =>
88
85
 
89
86
  /**
90
87
  * If set, the user name field automatically receives focus when the component is attached to the document.
91
- * @type {boolean}
92
88
  * @attr {boolean} no-autofocus
93
89
  */
94
90
  noAutofocus: {
@@ -151,7 +147,7 @@ export const LoginMixin = (superClass) =>
151
147
  * additionalInformation: 'In case you need to provide some additional info for the user.'
152
148
  * }
153
149
  * ```
154
- * @return {!LoginI18n}
150
+ * @type {!LoginI18n}
155
151
  */
156
152
  get i18n() {
157
153
  return super.i18n;
@@ -14,7 +14,6 @@ export const LoginOverlayMixin = (superClass) =>
14
14
  return {
15
15
  /**
16
16
  * Defines the application description
17
- * @type {string}
18
17
  */
19
18
  description: {
20
19
  type: String,
@@ -24,7 +23,6 @@ export const LoginOverlayMixin = (superClass) =>
24
23
 
25
24
  /**
26
25
  * True if the overlay is currently displayed.
27
- * @type {boolean}
28
26
  */
29
27
  opened: {
30
28
  type: Boolean,
@@ -35,7 +33,6 @@ export const LoginOverlayMixin = (superClass) =>
35
33
 
36
34
  /**
37
35
  * Defines the application title
38
- * @type {string}
39
36
  */
40
37
  title: {
41
38
  type: String,
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-alpha9",
4
+ "version": "25.1.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -25,7 +25,9 @@
25
25
  "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.",
26
26
  "value": {
27
27
  "type": [
28
- "boolean"
28
+ "boolean",
29
+ "null",
30
+ "undefined"
29
31
  ]
30
32
  }
31
33
  },
@@ -34,7 +36,9 @@
34
36
  "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.",
35
37
  "value": {
36
38
  "type": [
37
- "boolean"
39
+ "boolean",
40
+ "null",
41
+ "undefined"
38
42
  ]
39
43
  }
40
44
  },
@@ -54,7 +58,9 @@
54
58
  "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
55
59
  "value": {
56
60
  "type": [
57
- "boolean"
61
+ "boolean",
62
+ "null",
63
+ "undefined"
58
64
  ]
59
65
  }
60
66
  },
@@ -63,7 +69,9 @@
63
69
  "description": "Whether to hide the forgot password button. The button is visible by default.",
64
70
  "value": {
65
71
  "type": [
66
- "boolean"
72
+ "boolean",
73
+ "null",
74
+ "undefined"
67
75
  ]
68
76
  }
69
77
  },
@@ -96,7 +104,9 @@
96
104
  "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.",
97
105
  "value": {
98
106
  "type": [
99
- "boolean"
107
+ "boolean",
108
+ "null",
109
+ "undefined"
100
110
  ]
101
111
  }
102
112
  },
@@ -105,7 +115,9 @@
105
115
  "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.",
106
116
  "value": {
107
117
  "type": [
108
- "boolean"
118
+ "boolean",
119
+ "null",
120
+ "undefined"
109
121
  ]
110
122
  }
111
123
  },
@@ -125,7 +137,7 @@
125
137
  "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
138
  "value": {
127
139
  "type": [
128
- "LoginI18n"
140
+ "?"
129
141
  ]
130
142
  }
131
143
  },
@@ -134,7 +146,9 @@
134
146
  "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
135
147
  "value": {
136
148
  "type": [
137
- "boolean"
149
+ "boolean",
150
+ "null",
151
+ "undefined"
138
152
  ]
139
153
  }
140
154
  },
@@ -143,7 +157,9 @@
143
157
  "description": "Whether to hide the forgot password button. The button is visible by default.",
144
158
  "value": {
145
159
  "type": [
146
- "boolean"
160
+ "boolean",
161
+ "null",
162
+ "undefined"
147
163
  ]
148
164
  }
149
165
  }
@@ -187,7 +203,9 @@
187
203
  "description": "Defines the application description",
188
204
  "value": {
189
205
  "type": [
190
- "string"
206
+ "string",
207
+ "null",
208
+ "undefined"
191
209
  ]
192
210
  }
193
211
  },
@@ -196,7 +214,9 @@
196
214
  "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.",
197
215
  "value": {
198
216
  "type": [
199
- "boolean"
217
+ "boolean",
218
+ "null",
219
+ "undefined"
200
220
  ]
201
221
  }
202
222
  },
@@ -205,7 +225,9 @@
205
225
  "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.",
206
226
  "value": {
207
227
  "type": [
208
- "boolean"
228
+ "boolean",
229
+ "null",
230
+ "undefined"
209
231
  ]
210
232
  }
211
233
  },
@@ -225,7 +247,9 @@
225
247
  "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
226
248
  "value": {
227
249
  "type": [
228
- "boolean"
250
+ "boolean",
251
+ "null",
252
+ "undefined"
229
253
  ]
230
254
  }
231
255
  },
@@ -234,7 +258,9 @@
234
258
  "description": "Whether to hide the forgot password button. The button is visible by default.",
235
259
  "value": {
236
260
  "type": [
237
- "boolean"
261
+ "boolean",
262
+ "null",
263
+ "undefined"
238
264
  ]
239
265
  }
240
266
  },
@@ -243,7 +269,9 @@
243
269
  "description": "True if the overlay is currently displayed.",
244
270
  "value": {
245
271
  "type": [
246
- "boolean"
272
+ "boolean",
273
+ "null",
274
+ "undefined"
247
275
  ]
248
276
  }
249
277
  },
@@ -263,7 +291,9 @@
263
291
  "description": "Defines the application title",
264
292
  "value": {
265
293
  "type": [
266
- "string"
294
+ "string",
295
+ "null",
296
+ "undefined"
267
297
  ]
268
298
  }
269
299
  }
@@ -285,7 +315,9 @@
285
315
  "description": "Defines the application description",
286
316
  "value": {
287
317
  "type": [
288
- "string"
318
+ "string",
319
+ "null",
320
+ "undefined"
289
321
  ]
290
322
  }
291
323
  },
@@ -294,7 +326,9 @@
294
326
  "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.",
295
327
  "value": {
296
328
  "type": [
297
- "boolean"
329
+ "boolean",
330
+ "null",
331
+ "undefined"
298
332
  ]
299
333
  }
300
334
  },
@@ -303,7 +337,9 @@
303
337
  "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.",
304
338
  "value": {
305
339
  "type": [
306
- "boolean"
340
+ "boolean",
341
+ "null",
342
+ "undefined"
307
343
  ]
308
344
  }
309
345
  },
@@ -323,7 +359,7 @@
323
359
  "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```",
324
360
  "value": {
325
361
  "type": [
326
- "LoginI18n"
362
+ "?"
327
363
  ]
328
364
  }
329
365
  },
@@ -332,7 +368,9 @@
332
368
  "description": "If set, the user name field automatically receives focus when the component is attached to the document.",
333
369
  "value": {
334
370
  "type": [
335
- "boolean"
371
+ "boolean",
372
+ "null",
373
+ "undefined"
336
374
  ]
337
375
  }
338
376
  },
@@ -341,7 +379,9 @@
341
379
  "description": "Whether to hide the forgot password button. The button is visible by default.",
342
380
  "value": {
343
381
  "type": [
344
- "boolean"
382
+ "boolean",
383
+ "null",
384
+ "undefined"
345
385
  ]
346
386
  }
347
387
  },
@@ -350,7 +390,9 @@
350
390
  "description": "True if the overlay is currently displayed.",
351
391
  "value": {
352
392
  "type": [
353
- "boolean"
393
+ "boolean",
394
+ "null",
395
+ "undefined"
354
396
  ]
355
397
  }
356
398
  },
@@ -359,7 +401,9 @@
359
401
  "description": "Defines the application title",
360
402
  "value": {
361
403
  "type": [
362
- "string"
404
+ "string",
405
+ "null",
406
+ "undefined"
363
407
  ]
364
408
  }
365
409
  }
@@ -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-alpha9",
4
+ "version": "25.1.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {