@vaadin/login 25.1.0-alpha6 → 25.1.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/custom-elements.json +1174 -0
- package/package.json +16 -14
- package/src/vaadin-login-form.js +1 -1
- package/src/vaadin-login-overlay.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
|
@@ -0,0 +1,1174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "vaadin-login-overlay.js",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "js",
|
|
12
|
+
"name": "*",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "*",
|
|
15
|
+
"module": "src/vaadin-login-overlay.js"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"kind": "javascript-module",
|
|
22
|
+
"path": "vaadin-login-form.js",
|
|
23
|
+
"declarations": [],
|
|
24
|
+
"exports": [
|
|
25
|
+
{
|
|
26
|
+
"kind": "js",
|
|
27
|
+
"name": "*",
|
|
28
|
+
"declaration": {
|
|
29
|
+
"name": "*",
|
|
30
|
+
"module": "src/vaadin-login-form.js"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"kind": "javascript-module",
|
|
37
|
+
"path": "src/vaadin-login-form-mixin.js",
|
|
38
|
+
"declarations": [
|
|
39
|
+
{
|
|
40
|
+
"kind": "mixin",
|
|
41
|
+
"description": "",
|
|
42
|
+
"name": "LoginFormMixin",
|
|
43
|
+
"members": [
|
|
44
|
+
{
|
|
45
|
+
"kind": "field",
|
|
46
|
+
"name": "action",
|
|
47
|
+
"privacy": "public",
|
|
48
|
+
"type": {
|
|
49
|
+
"text": "string | null"
|
|
50
|
+
},
|
|
51
|
+
"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.",
|
|
52
|
+
"attribute": "action",
|
|
53
|
+
"inheritedFrom": {
|
|
54
|
+
"name": "LoginMixin",
|
|
55
|
+
"module": "src/vaadin-login-mixin.js"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"kind": "field",
|
|
60
|
+
"name": "disabled",
|
|
61
|
+
"privacy": "public",
|
|
62
|
+
"type": {
|
|
63
|
+
"text": "boolean"
|
|
64
|
+
},
|
|
65
|
+
"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.",
|
|
66
|
+
"attribute": "disabled",
|
|
67
|
+
"inheritedFrom": {
|
|
68
|
+
"name": "LoginMixin",
|
|
69
|
+
"module": "src/vaadin-login-mixin.js"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"kind": "field",
|
|
74
|
+
"name": "error",
|
|
75
|
+
"privacy": "public",
|
|
76
|
+
"type": {
|
|
77
|
+
"text": "boolean"
|
|
78
|
+
},
|
|
79
|
+
"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.",
|
|
80
|
+
"attribute": "error",
|
|
81
|
+
"inheritedFrom": {
|
|
82
|
+
"name": "LoginMixin",
|
|
83
|
+
"module": "src/vaadin-login-mixin.js"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"kind": "field",
|
|
88
|
+
"name": "headingLevel",
|
|
89
|
+
"privacy": "public",
|
|
90
|
+
"type": {
|
|
91
|
+
"text": "number"
|
|
92
|
+
},
|
|
93
|
+
"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.",
|
|
94
|
+
"attribute": "heading-level",
|
|
95
|
+
"inheritedFrom": {
|
|
96
|
+
"name": "LoginMixin",
|
|
97
|
+
"module": "src/vaadin-login-mixin.js"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "field",
|
|
102
|
+
"name": "noAutofocus",
|
|
103
|
+
"privacy": "public",
|
|
104
|
+
"type": {
|
|
105
|
+
"text": "boolean"
|
|
106
|
+
},
|
|
107
|
+
"description": "If set, the user name field automatically receives focus when the component is attached to the document.",
|
|
108
|
+
"attribute": "no-autofocus",
|
|
109
|
+
"inheritedFrom": {
|
|
110
|
+
"name": "LoginMixin",
|
|
111
|
+
"module": "src/vaadin-login-mixin.js"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"kind": "field",
|
|
116
|
+
"name": "noForgotPassword",
|
|
117
|
+
"privacy": "public",
|
|
118
|
+
"type": {
|
|
119
|
+
"text": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"description": "Whether to hide the forgot password button. The button is visible by default.",
|
|
122
|
+
"attribute": "no-forgot-password",
|
|
123
|
+
"inheritedFrom": {
|
|
124
|
+
"name": "LoginMixin",
|
|
125
|
+
"module": "src/vaadin-login-mixin.js"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"kind": "method",
|
|
130
|
+
"name": "submit",
|
|
131
|
+
"description": "Submits the form."
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"events": [
|
|
135
|
+
{
|
|
136
|
+
"name": "forgot-password",
|
|
137
|
+
"type": {
|
|
138
|
+
"text": "CustomEvent"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "login",
|
|
143
|
+
"type": {
|
|
144
|
+
"text": "CustomEvent"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"mixins": [
|
|
149
|
+
{
|
|
150
|
+
"name": "LoginMixin",
|
|
151
|
+
"module": "src/vaadin-login-mixin.js"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"parameters": [
|
|
155
|
+
{
|
|
156
|
+
"name": "superClass"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"attributes": [
|
|
160
|
+
{
|
|
161
|
+
"name": "action",
|
|
162
|
+
"type": {
|
|
163
|
+
"text": "string | null"
|
|
164
|
+
},
|
|
165
|
+
"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.",
|
|
166
|
+
"fieldName": "action",
|
|
167
|
+
"inheritedFrom": {
|
|
168
|
+
"name": "LoginMixin",
|
|
169
|
+
"module": "src/vaadin-login-mixin.js"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "disabled",
|
|
174
|
+
"type": {
|
|
175
|
+
"text": "boolean"
|
|
176
|
+
},
|
|
177
|
+
"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.",
|
|
178
|
+
"fieldName": "disabled",
|
|
179
|
+
"inheritedFrom": {
|
|
180
|
+
"name": "LoginMixin",
|
|
181
|
+
"module": "src/vaadin-login-mixin.js"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "error",
|
|
186
|
+
"type": {
|
|
187
|
+
"text": "boolean"
|
|
188
|
+
},
|
|
189
|
+
"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.",
|
|
190
|
+
"fieldName": "error",
|
|
191
|
+
"inheritedFrom": {
|
|
192
|
+
"name": "LoginMixin",
|
|
193
|
+
"module": "src/vaadin-login-mixin.js"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "heading-level",
|
|
198
|
+
"type": {
|
|
199
|
+
"text": "number"
|
|
200
|
+
},
|
|
201
|
+
"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.",
|
|
202
|
+
"fieldName": "headingLevel",
|
|
203
|
+
"inheritedFrom": {
|
|
204
|
+
"name": "LoginMixin",
|
|
205
|
+
"module": "src/vaadin-login-mixin.js"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "no-autofocus",
|
|
210
|
+
"type": {
|
|
211
|
+
"text": "boolean"
|
|
212
|
+
},
|
|
213
|
+
"description": "If set, the user name field automatically receives focus when the component is attached to the document.",
|
|
214
|
+
"fieldName": "noAutofocus",
|
|
215
|
+
"inheritedFrom": {
|
|
216
|
+
"name": "LoginMixin",
|
|
217
|
+
"module": "src/vaadin-login-mixin.js"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "no-forgot-password",
|
|
222
|
+
"type": {
|
|
223
|
+
"text": "boolean"
|
|
224
|
+
},
|
|
225
|
+
"description": "Whether to hide the forgot password button. The button is visible by default.",
|
|
226
|
+
"fieldName": "noForgotPassword",
|
|
227
|
+
"inheritedFrom": {
|
|
228
|
+
"name": "LoginMixin",
|
|
229
|
+
"module": "src/vaadin-login-mixin.js"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"kind": "variable",
|
|
236
|
+
"name": "detail",
|
|
237
|
+
"type": {
|
|
238
|
+
"text": "object"
|
|
239
|
+
},
|
|
240
|
+
"default": "{ username: userName.value, password: password.value, }"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"exports": [
|
|
244
|
+
{
|
|
245
|
+
"kind": "js",
|
|
246
|
+
"name": "LoginFormMixin",
|
|
247
|
+
"declaration": {
|
|
248
|
+
"name": "LoginFormMixin",
|
|
249
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"kind": "javascript-module",
|
|
256
|
+
"path": "src/vaadin-login-form-wrapper.js",
|
|
257
|
+
"declarations": [
|
|
258
|
+
{
|
|
259
|
+
"kind": "class",
|
|
260
|
+
"description": "An element used internally by `<vaadin-login-form>`. Not intended to be used separately.",
|
|
261
|
+
"name": "LoginFormWrapper",
|
|
262
|
+
"members": [
|
|
263
|
+
{
|
|
264
|
+
"kind": "field",
|
|
265
|
+
"name": "error",
|
|
266
|
+
"privacy": "public",
|
|
267
|
+
"type": {
|
|
268
|
+
"text": "boolean"
|
|
269
|
+
},
|
|
270
|
+
"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.",
|
|
271
|
+
"attribute": "error"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"kind": "field",
|
|
275
|
+
"name": "i18n",
|
|
276
|
+
"privacy": "public",
|
|
277
|
+
"type": {
|
|
278
|
+
"text": "object"
|
|
279
|
+
},
|
|
280
|
+
"description": "The object used to localize this component.",
|
|
281
|
+
"attribute": "i18n"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"attributes": [
|
|
285
|
+
{
|
|
286
|
+
"name": "error",
|
|
287
|
+
"type": {
|
|
288
|
+
"text": "boolean"
|
|
289
|
+
},
|
|
290
|
+
"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.",
|
|
291
|
+
"fieldName": "error"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"mixins": [
|
|
295
|
+
{
|
|
296
|
+
"name": "ThemableMixin",
|
|
297
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "PolylitMixin",
|
|
301
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "LumoInjectionMixin",
|
|
305
|
+
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"superclass": {
|
|
309
|
+
"name": "LitElement",
|
|
310
|
+
"package": "lit"
|
|
311
|
+
},
|
|
312
|
+
"customElement": true,
|
|
313
|
+
"events": []
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"exports": [
|
|
317
|
+
{
|
|
318
|
+
"kind": "js",
|
|
319
|
+
"name": "LoginFormWrapper",
|
|
320
|
+
"declaration": {
|
|
321
|
+
"name": "LoginFormWrapper",
|
|
322
|
+
"module": "src/vaadin-login-form-wrapper.js"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"kind": "javascript-module",
|
|
329
|
+
"path": "src/vaadin-login-form.js",
|
|
330
|
+
"declarations": [
|
|
331
|
+
{
|
|
332
|
+
"kind": "class",
|
|
333
|
+
"description": "`<vaadin-login-form>` is a Web Component providing an easy way to require users\nto log in into an application. Note that component has no shadowRoot.\n\n```html\n<vaadin-login-form></vaadin-login-form>\n```\n\nComponent has to be accessible from the `document` layer in order to allow password managers to work properly with form values.\nUsing `<vaadin-login-overlay>` allows to always attach the component to the document body.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------|---------------------------------------------------------|\n`form` | Container for the entire component's content\n`form-title` | Title of the login form\n`error-message`| Container for error message, contains error-message-title and error-message-description parts. Hidden by default.\n`error-message-title` | Container for error message title\n`error-message-description` | Container for error message description\n`footer` | Container additional information text from `i18n` object\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:------------------------------------------|\n| `--vaadin-login-form-background` |\n| `--vaadin-login-form-border-radius` |\n| `--vaadin-login-form-error-color` |\n| `--vaadin-login-form-error-font-size` |\n| `--vaadin-login-form-error-font-weight` |\n| `--vaadin-login-form-error-gap` |\n| `--vaadin-login-form-error-line-height` |\n| `--vaadin-login-form-gap` |\n| `--vaadin-login-form-padding` |\n| `--vaadin-login-form-title-color` |\n| `--vaadin-login-form-title-font-size` |\n| `--vaadin-login-form-title-font-weight` |\n| `--vaadin-login-form-title-line-height` |\n| `--vaadin-login-form-width` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
334
|
+
"name": "LoginForm",
|
|
335
|
+
"members": [
|
|
336
|
+
{
|
|
337
|
+
"kind": "field",
|
|
338
|
+
"name": "action",
|
|
339
|
+
"privacy": "public",
|
|
340
|
+
"type": {
|
|
341
|
+
"text": "string | null"
|
|
342
|
+
},
|
|
343
|
+
"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.",
|
|
344
|
+
"attribute": "action",
|
|
345
|
+
"inheritedFrom": {
|
|
346
|
+
"name": "LoginMixin",
|
|
347
|
+
"module": "src/vaadin-login-mixin.js"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"kind": "field",
|
|
352
|
+
"name": "disabled",
|
|
353
|
+
"privacy": "public",
|
|
354
|
+
"type": {
|
|
355
|
+
"text": "boolean"
|
|
356
|
+
},
|
|
357
|
+
"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.",
|
|
358
|
+
"attribute": "disabled",
|
|
359
|
+
"inheritedFrom": {
|
|
360
|
+
"name": "LoginMixin",
|
|
361
|
+
"module": "src/vaadin-login-mixin.js"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"kind": "field",
|
|
366
|
+
"name": "error",
|
|
367
|
+
"privacy": "public",
|
|
368
|
+
"type": {
|
|
369
|
+
"text": "boolean"
|
|
370
|
+
},
|
|
371
|
+
"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.",
|
|
372
|
+
"attribute": "error",
|
|
373
|
+
"inheritedFrom": {
|
|
374
|
+
"name": "LoginMixin",
|
|
375
|
+
"module": "src/vaadin-login-mixin.js"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"kind": "field",
|
|
380
|
+
"name": "headingLevel",
|
|
381
|
+
"privacy": "public",
|
|
382
|
+
"type": {
|
|
383
|
+
"text": "number"
|
|
384
|
+
},
|
|
385
|
+
"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.",
|
|
386
|
+
"attribute": "heading-level",
|
|
387
|
+
"inheritedFrom": {
|
|
388
|
+
"name": "LoginMixin",
|
|
389
|
+
"module": "src/vaadin-login-mixin.js"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"kind": "field",
|
|
394
|
+
"name": "noAutofocus",
|
|
395
|
+
"privacy": "public",
|
|
396
|
+
"type": {
|
|
397
|
+
"text": "boolean"
|
|
398
|
+
},
|
|
399
|
+
"description": "If set, the user name field automatically receives focus when the component is attached to the document.",
|
|
400
|
+
"attribute": "no-autofocus",
|
|
401
|
+
"inheritedFrom": {
|
|
402
|
+
"name": "LoginMixin",
|
|
403
|
+
"module": "src/vaadin-login-mixin.js"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"kind": "field",
|
|
408
|
+
"name": "noForgotPassword",
|
|
409
|
+
"privacy": "public",
|
|
410
|
+
"type": {
|
|
411
|
+
"text": "boolean"
|
|
412
|
+
},
|
|
413
|
+
"description": "Whether to hide the forgot password button. The button is visible by default.",
|
|
414
|
+
"attribute": "no-forgot-password",
|
|
415
|
+
"inheritedFrom": {
|
|
416
|
+
"name": "LoginMixin",
|
|
417
|
+
"module": "src/vaadin-login-mixin.js"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"kind": "method",
|
|
422
|
+
"name": "submit",
|
|
423
|
+
"description": "Submits the form.",
|
|
424
|
+
"inheritedFrom": {
|
|
425
|
+
"name": "LoginFormMixin",
|
|
426
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"events": [
|
|
431
|
+
{
|
|
432
|
+
"type": {
|
|
433
|
+
"text": "CustomEvent"
|
|
434
|
+
},
|
|
435
|
+
"description": "Fired when the `disabled` property changes.",
|
|
436
|
+
"name": "disabled-changed"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"type": {
|
|
440
|
+
"text": "CustomEvent"
|
|
441
|
+
},
|
|
442
|
+
"description": "Fired when the `error` property changes.",
|
|
443
|
+
"name": "error-changed"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "forgot-password",
|
|
447
|
+
"type": {
|
|
448
|
+
"text": "CustomEvent"
|
|
449
|
+
},
|
|
450
|
+
"description": "Fired when user clicks on the \"Forgot password\" button.",
|
|
451
|
+
"inheritedFrom": {
|
|
452
|
+
"name": "LoginFormMixin",
|
|
453
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "login",
|
|
458
|
+
"type": {
|
|
459
|
+
"text": "CustomEvent"
|
|
460
|
+
},
|
|
461
|
+
"description": "Fired when a user submits the login.",
|
|
462
|
+
"inheritedFrom": {
|
|
463
|
+
"name": "LoginFormMixin",
|
|
464
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"mixins": [
|
|
469
|
+
{
|
|
470
|
+
"name": "LoginFormMixin",
|
|
471
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "ElementMixin",
|
|
475
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "ThemableMixin",
|
|
479
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "PolylitMixin",
|
|
483
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"superclass": {
|
|
487
|
+
"name": "LitElement",
|
|
488
|
+
"package": "lit"
|
|
489
|
+
},
|
|
490
|
+
"tagName": "vaadin-login-form",
|
|
491
|
+
"customElement": true,
|
|
492
|
+
"attributes": [
|
|
493
|
+
{
|
|
494
|
+
"name": "action",
|
|
495
|
+
"type": {
|
|
496
|
+
"text": "string | null"
|
|
497
|
+
},
|
|
498
|
+
"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.",
|
|
499
|
+
"fieldName": "action",
|
|
500
|
+
"inheritedFrom": {
|
|
501
|
+
"name": "LoginMixin",
|
|
502
|
+
"module": "src/vaadin-login-mixin.js"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "disabled",
|
|
507
|
+
"type": {
|
|
508
|
+
"text": "boolean"
|
|
509
|
+
},
|
|
510
|
+
"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.",
|
|
511
|
+
"fieldName": "disabled",
|
|
512
|
+
"inheritedFrom": {
|
|
513
|
+
"name": "LoginMixin",
|
|
514
|
+
"module": "src/vaadin-login-mixin.js"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "error",
|
|
519
|
+
"type": {
|
|
520
|
+
"text": "boolean"
|
|
521
|
+
},
|
|
522
|
+
"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.",
|
|
523
|
+
"fieldName": "error",
|
|
524
|
+
"inheritedFrom": {
|
|
525
|
+
"name": "LoginMixin",
|
|
526
|
+
"module": "src/vaadin-login-mixin.js"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"name": "heading-level",
|
|
531
|
+
"type": {
|
|
532
|
+
"text": "number"
|
|
533
|
+
},
|
|
534
|
+
"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.",
|
|
535
|
+
"fieldName": "headingLevel",
|
|
536
|
+
"inheritedFrom": {
|
|
537
|
+
"name": "LoginMixin",
|
|
538
|
+
"module": "src/vaadin-login-mixin.js"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "no-autofocus",
|
|
543
|
+
"type": {
|
|
544
|
+
"text": "boolean"
|
|
545
|
+
},
|
|
546
|
+
"description": "If set, the user name field automatically receives focus when the component is attached to the document.",
|
|
547
|
+
"fieldName": "noAutofocus",
|
|
548
|
+
"inheritedFrom": {
|
|
549
|
+
"name": "LoginMixin",
|
|
550
|
+
"module": "src/vaadin-login-mixin.js"
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "no-forgot-password",
|
|
555
|
+
"type": {
|
|
556
|
+
"text": "boolean"
|
|
557
|
+
},
|
|
558
|
+
"description": "Whether to hide the forgot password button. The button is visible by default.",
|
|
559
|
+
"fieldName": "noForgotPassword",
|
|
560
|
+
"inheritedFrom": {
|
|
561
|
+
"name": "LoginMixin",
|
|
562
|
+
"module": "src/vaadin-login-mixin.js"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"exports": [
|
|
569
|
+
{
|
|
570
|
+
"kind": "js",
|
|
571
|
+
"name": "LoginForm",
|
|
572
|
+
"declaration": {
|
|
573
|
+
"name": "LoginForm",
|
|
574
|
+
"module": "src/vaadin-login-form.js"
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"kind": "javascript-module",
|
|
581
|
+
"path": "src/vaadin-login-mixin.js",
|
|
582
|
+
"declarations": [
|
|
583
|
+
{
|
|
584
|
+
"kind": "mixin",
|
|
585
|
+
"description": "",
|
|
586
|
+
"name": "LoginMixin",
|
|
587
|
+
"members": [
|
|
588
|
+
{
|
|
589
|
+
"kind": "field",
|
|
590
|
+
"name": "action",
|
|
591
|
+
"privacy": "public",
|
|
592
|
+
"type": {
|
|
593
|
+
"text": "string | null"
|
|
594
|
+
},
|
|
595
|
+
"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.",
|
|
596
|
+
"attribute": "action"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"kind": "field",
|
|
600
|
+
"name": "disabled",
|
|
601
|
+
"privacy": "public",
|
|
602
|
+
"type": {
|
|
603
|
+
"text": "boolean"
|
|
604
|
+
},
|
|
605
|
+
"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.",
|
|
606
|
+
"attribute": "disabled"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"kind": "field",
|
|
610
|
+
"name": "error",
|
|
611
|
+
"privacy": "public",
|
|
612
|
+
"type": {
|
|
613
|
+
"text": "boolean"
|
|
614
|
+
},
|
|
615
|
+
"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.",
|
|
616
|
+
"attribute": "error"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"kind": "field",
|
|
620
|
+
"name": "headingLevel",
|
|
621
|
+
"privacy": "public",
|
|
622
|
+
"type": {
|
|
623
|
+
"text": "number"
|
|
624
|
+
},
|
|
625
|
+
"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
|
+
"attribute": "heading-level"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"kind": "field",
|
|
630
|
+
"name": "noAutofocus",
|
|
631
|
+
"privacy": "public",
|
|
632
|
+
"type": {
|
|
633
|
+
"text": "boolean"
|
|
634
|
+
},
|
|
635
|
+
"description": "If set, the user name field automatically receives focus when the component is attached to the document.",
|
|
636
|
+
"attribute": "no-autofocus"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"kind": "field",
|
|
640
|
+
"name": "noForgotPassword",
|
|
641
|
+
"privacy": "public",
|
|
642
|
+
"type": {
|
|
643
|
+
"text": "boolean"
|
|
644
|
+
},
|
|
645
|
+
"description": "Whether to hide the forgot password button. The button is visible by default.",
|
|
646
|
+
"attribute": "no-forgot-password"
|
|
647
|
+
}
|
|
648
|
+
],
|
|
649
|
+
"attributes": [
|
|
650
|
+
{
|
|
651
|
+
"name": "action",
|
|
652
|
+
"type": {
|
|
653
|
+
"text": "string | null"
|
|
654
|
+
},
|
|
655
|
+
"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.",
|
|
656
|
+
"fieldName": "action"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "disabled",
|
|
660
|
+
"type": {
|
|
661
|
+
"text": "boolean"
|
|
662
|
+
},
|
|
663
|
+
"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.",
|
|
664
|
+
"fieldName": "disabled"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"name": "error",
|
|
668
|
+
"type": {
|
|
669
|
+
"text": "boolean"
|
|
670
|
+
},
|
|
671
|
+
"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.",
|
|
672
|
+
"fieldName": "error"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"name": "heading-level",
|
|
676
|
+
"type": {
|
|
677
|
+
"text": "number"
|
|
678
|
+
},
|
|
679
|
+
"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
|
+
"fieldName": "headingLevel"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "no-autofocus",
|
|
684
|
+
"type": {
|
|
685
|
+
"text": "boolean"
|
|
686
|
+
},
|
|
687
|
+
"description": "If set, the user name field automatically receives focus when the component is attached to the document.",
|
|
688
|
+
"fieldName": "noAutofocus"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "no-forgot-password",
|
|
692
|
+
"type": {
|
|
693
|
+
"text": "boolean"
|
|
694
|
+
},
|
|
695
|
+
"description": "Whether to hide the forgot password button. The button is visible by default.",
|
|
696
|
+
"fieldName": "noForgotPassword"
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
"mixins": [
|
|
700
|
+
{
|
|
701
|
+
"name": "I18nMixin",
|
|
702
|
+
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
703
|
+
}
|
|
704
|
+
],
|
|
705
|
+
"parameters": [
|
|
706
|
+
{
|
|
707
|
+
"name": "superClass"
|
|
708
|
+
}
|
|
709
|
+
]
|
|
710
|
+
}
|
|
711
|
+
],
|
|
712
|
+
"exports": [
|
|
713
|
+
{
|
|
714
|
+
"kind": "js",
|
|
715
|
+
"name": "LoginMixin",
|
|
716
|
+
"declaration": {
|
|
717
|
+
"name": "LoginMixin",
|
|
718
|
+
"module": "src/vaadin-login-mixin.js"
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
]
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"kind": "javascript-module",
|
|
725
|
+
"path": "src/vaadin-login-overlay-mixin.js",
|
|
726
|
+
"declarations": [
|
|
727
|
+
{
|
|
728
|
+
"kind": "mixin",
|
|
729
|
+
"description": "",
|
|
730
|
+
"name": "LoginOverlayMixin",
|
|
731
|
+
"members": [
|
|
732
|
+
{
|
|
733
|
+
"kind": "field",
|
|
734
|
+
"name": "description",
|
|
735
|
+
"privacy": "public",
|
|
736
|
+
"type": {
|
|
737
|
+
"text": "string"
|
|
738
|
+
},
|
|
739
|
+
"description": "Defines the application description",
|
|
740
|
+
"attribute": "description"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"kind": "field",
|
|
744
|
+
"name": "opened",
|
|
745
|
+
"privacy": "public",
|
|
746
|
+
"type": {
|
|
747
|
+
"text": "boolean"
|
|
748
|
+
},
|
|
749
|
+
"description": "True if the overlay is currently displayed.",
|
|
750
|
+
"attribute": "opened"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"kind": "field",
|
|
754
|
+
"name": "title",
|
|
755
|
+
"privacy": "public",
|
|
756
|
+
"type": {
|
|
757
|
+
"text": "string"
|
|
758
|
+
},
|
|
759
|
+
"description": "Defines the application title",
|
|
760
|
+
"attribute": "title"
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"events": [
|
|
764
|
+
{
|
|
765
|
+
"name": "closed",
|
|
766
|
+
"type": {
|
|
767
|
+
"text": "CustomEvent"
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
"attributes": [
|
|
772
|
+
{
|
|
773
|
+
"name": "description",
|
|
774
|
+
"type": {
|
|
775
|
+
"text": "string"
|
|
776
|
+
},
|
|
777
|
+
"description": "Defines the application description",
|
|
778
|
+
"fieldName": "description"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"name": "opened",
|
|
782
|
+
"type": {
|
|
783
|
+
"text": "boolean"
|
|
784
|
+
},
|
|
785
|
+
"description": "True if the overlay is currently displayed.",
|
|
786
|
+
"fieldName": "opened"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"name": "title",
|
|
790
|
+
"type": {
|
|
791
|
+
"text": "string"
|
|
792
|
+
},
|
|
793
|
+
"description": "Defines the application title",
|
|
794
|
+
"fieldName": "title"
|
|
795
|
+
}
|
|
796
|
+
],
|
|
797
|
+
"parameters": [
|
|
798
|
+
{
|
|
799
|
+
"name": "superClass"
|
|
800
|
+
}
|
|
801
|
+
]
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"exports": [
|
|
805
|
+
{
|
|
806
|
+
"kind": "js",
|
|
807
|
+
"name": "LoginOverlayMixin",
|
|
808
|
+
"declaration": {
|
|
809
|
+
"name": "LoginOverlayMixin",
|
|
810
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"kind": "javascript-module",
|
|
817
|
+
"path": "src/vaadin-login-overlay-wrapper.js",
|
|
818
|
+
"declarations": [],
|
|
819
|
+
"exports": []
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"kind": "javascript-module",
|
|
823
|
+
"path": "src/vaadin-login-overlay.js",
|
|
824
|
+
"declarations": [
|
|
825
|
+
{
|
|
826
|
+
"kind": "class",
|
|
827
|
+
"description": "`<vaadin-login-overlay>` is a web component which renders a login form in an overlay and\nprovides an additional `brand` part for application title and description.\n\n```html\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------------------|--------------------------------\n`backdrop` | Backdrop of the overlay\n`overlay` | The overlay container element\n`content` | The overlay content element\n`card` | Container for the brand and form wrapper\n`brand` | Container for application title and description\n`description` | The application description\n`form-wrapper` | The login form wrapper element\n`form` | The login form element\n`form-title` | Title of the login form\n`error-message` | Container for error message\n`error-message-title` | Container for error message title\n`error-message-description` | Container for error message description\n`footer` | Container for the footer element\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------------|\n| `--vaadin-login-overlay-background` |\n| `--vaadin-login-overlay-border-color` |\n| `--vaadin-login-overlay-border-radius` |\n| `--vaadin-login-overlay-border-width` |\n| `--vaadin-login-overlay-brand-background` |\n| `--vaadin-login-overlay-brand-padding` |\n| `--vaadin-login-overlay-description-color` |\n| `--vaadin-login-overlay-description-font-size` |\n| `--vaadin-login-overlay-description-font-weight` |\n| `--vaadin-login-overlay-description-line-height` |\n| `--vaadin-login-overlay-title-color` |\n| `--vaadin-login-overlay-title-font-size` |\n| `--vaadin-login-overlay-title-font-weight` |\n| `--vaadin-login-overlay-title-line-height` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
828
|
+
"name": "LoginOverlay",
|
|
829
|
+
"members": [
|
|
830
|
+
{
|
|
831
|
+
"kind": "field",
|
|
832
|
+
"name": "action",
|
|
833
|
+
"privacy": "public",
|
|
834
|
+
"type": {
|
|
835
|
+
"text": "string | null"
|
|
836
|
+
},
|
|
837
|
+
"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.",
|
|
838
|
+
"attribute": "action",
|
|
839
|
+
"inheritedFrom": {
|
|
840
|
+
"name": "LoginMixin",
|
|
841
|
+
"module": "src/vaadin-login-mixin.js"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"kind": "field",
|
|
846
|
+
"name": "description",
|
|
847
|
+
"privacy": "public",
|
|
848
|
+
"type": {
|
|
849
|
+
"text": "string"
|
|
850
|
+
},
|
|
851
|
+
"description": "Defines the application description",
|
|
852
|
+
"attribute": "description",
|
|
853
|
+
"inheritedFrom": {
|
|
854
|
+
"name": "LoginOverlayMixin",
|
|
855
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"kind": "field",
|
|
860
|
+
"name": "disabled",
|
|
861
|
+
"privacy": "public",
|
|
862
|
+
"type": {
|
|
863
|
+
"text": "boolean"
|
|
864
|
+
},
|
|
865
|
+
"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.",
|
|
866
|
+
"attribute": "disabled",
|
|
867
|
+
"inheritedFrom": {
|
|
868
|
+
"name": "LoginMixin",
|
|
869
|
+
"module": "src/vaadin-login-mixin.js"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"kind": "field",
|
|
874
|
+
"name": "error",
|
|
875
|
+
"privacy": "public",
|
|
876
|
+
"type": {
|
|
877
|
+
"text": "boolean"
|
|
878
|
+
},
|
|
879
|
+
"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.",
|
|
880
|
+
"attribute": "error",
|
|
881
|
+
"inheritedFrom": {
|
|
882
|
+
"name": "LoginMixin",
|
|
883
|
+
"module": "src/vaadin-login-mixin.js"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"kind": "field",
|
|
888
|
+
"name": "headingLevel",
|
|
889
|
+
"privacy": "public",
|
|
890
|
+
"type": {
|
|
891
|
+
"text": "number"
|
|
892
|
+
},
|
|
893
|
+
"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.",
|
|
894
|
+
"attribute": "heading-level",
|
|
895
|
+
"inheritedFrom": {
|
|
896
|
+
"name": "LoginMixin",
|
|
897
|
+
"module": "src/vaadin-login-mixin.js"
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"kind": "field",
|
|
902
|
+
"name": "noAutofocus",
|
|
903
|
+
"privacy": "public",
|
|
904
|
+
"type": {
|
|
905
|
+
"text": "boolean"
|
|
906
|
+
},
|
|
907
|
+
"description": "If set, the user name field automatically receives focus when the component is attached to the document.",
|
|
908
|
+
"attribute": "no-autofocus",
|
|
909
|
+
"inheritedFrom": {
|
|
910
|
+
"name": "LoginMixin",
|
|
911
|
+
"module": "src/vaadin-login-mixin.js"
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"kind": "field",
|
|
916
|
+
"name": "noForgotPassword",
|
|
917
|
+
"privacy": "public",
|
|
918
|
+
"type": {
|
|
919
|
+
"text": "boolean"
|
|
920
|
+
},
|
|
921
|
+
"description": "Whether to hide the forgot password button. The button is visible by default.",
|
|
922
|
+
"attribute": "no-forgot-password",
|
|
923
|
+
"inheritedFrom": {
|
|
924
|
+
"name": "LoginMixin",
|
|
925
|
+
"module": "src/vaadin-login-mixin.js"
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"kind": "field",
|
|
930
|
+
"name": "opened",
|
|
931
|
+
"privacy": "public",
|
|
932
|
+
"type": {
|
|
933
|
+
"text": "boolean"
|
|
934
|
+
},
|
|
935
|
+
"description": "True if the overlay is currently displayed.",
|
|
936
|
+
"attribute": "opened",
|
|
937
|
+
"inheritedFrom": {
|
|
938
|
+
"name": "LoginOverlayMixin",
|
|
939
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"kind": "method",
|
|
944
|
+
"name": "submit",
|
|
945
|
+
"description": "Submits the form.",
|
|
946
|
+
"inheritedFrom": {
|
|
947
|
+
"name": "LoginFormMixin",
|
|
948
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"kind": "field",
|
|
953
|
+
"name": "title",
|
|
954
|
+
"privacy": "public",
|
|
955
|
+
"type": {
|
|
956
|
+
"text": "string"
|
|
957
|
+
},
|
|
958
|
+
"description": "Defines the application title",
|
|
959
|
+
"attribute": "title",
|
|
960
|
+
"inheritedFrom": {
|
|
961
|
+
"name": "LoginOverlayMixin",
|
|
962
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"events": [
|
|
967
|
+
{
|
|
968
|
+
"name": "closed",
|
|
969
|
+
"type": {
|
|
970
|
+
"text": "CustomEvent"
|
|
971
|
+
},
|
|
972
|
+
"description": "Fired when the overlay is closed.",
|
|
973
|
+
"inheritedFrom": {
|
|
974
|
+
"name": "LoginOverlayMixin",
|
|
975
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"type": {
|
|
980
|
+
"text": "CustomEvent"
|
|
981
|
+
},
|
|
982
|
+
"description": "Fired when the `description` property changes.",
|
|
983
|
+
"name": "description-changed"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"type": {
|
|
987
|
+
"text": "CustomEvent"
|
|
988
|
+
},
|
|
989
|
+
"description": "Fired when the `disabled` property changes.",
|
|
990
|
+
"name": "disabled-changed"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"type": {
|
|
994
|
+
"text": "CustomEvent"
|
|
995
|
+
},
|
|
996
|
+
"description": "Fired when the `error` property changes.",
|
|
997
|
+
"name": "error-changed"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"name": "forgot-password",
|
|
1001
|
+
"type": {
|
|
1002
|
+
"text": "CustomEvent"
|
|
1003
|
+
},
|
|
1004
|
+
"description": "Fired when user clicks on the \"Forgot password\" button.",
|
|
1005
|
+
"inheritedFrom": {
|
|
1006
|
+
"name": "LoginFormMixin",
|
|
1007
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"name": "login",
|
|
1012
|
+
"type": {
|
|
1013
|
+
"text": "CustomEvent"
|
|
1014
|
+
},
|
|
1015
|
+
"description": "Fired when a user submits the login.",
|
|
1016
|
+
"inheritedFrom": {
|
|
1017
|
+
"name": "LoginFormMixin",
|
|
1018
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
"mixins": [
|
|
1023
|
+
{
|
|
1024
|
+
"name": "LoginFormMixin",
|
|
1025
|
+
"module": "src/vaadin-login-form-mixin.js"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "LoginOverlayMixin",
|
|
1029
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "ElementMixin",
|
|
1033
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "ThemableMixin",
|
|
1037
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"name": "PolylitMixin",
|
|
1041
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
1042
|
+
}
|
|
1043
|
+
],
|
|
1044
|
+
"superclass": {
|
|
1045
|
+
"name": "LitElement",
|
|
1046
|
+
"package": "lit"
|
|
1047
|
+
},
|
|
1048
|
+
"tagName": "vaadin-login-overlay",
|
|
1049
|
+
"customElement": true,
|
|
1050
|
+
"attributes": [
|
|
1051
|
+
{
|
|
1052
|
+
"name": "action",
|
|
1053
|
+
"type": {
|
|
1054
|
+
"text": "string | null"
|
|
1055
|
+
},
|
|
1056
|
+
"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.",
|
|
1057
|
+
"fieldName": "action",
|
|
1058
|
+
"inheritedFrom": {
|
|
1059
|
+
"name": "LoginMixin",
|
|
1060
|
+
"module": "src/vaadin-login-mixin.js"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "description",
|
|
1065
|
+
"type": {
|
|
1066
|
+
"text": "string"
|
|
1067
|
+
},
|
|
1068
|
+
"description": "Defines the application description",
|
|
1069
|
+
"fieldName": "description",
|
|
1070
|
+
"inheritedFrom": {
|
|
1071
|
+
"name": "LoginOverlayMixin",
|
|
1072
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"name": "disabled",
|
|
1077
|
+
"type": {
|
|
1078
|
+
"text": "boolean"
|
|
1079
|
+
},
|
|
1080
|
+
"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.",
|
|
1081
|
+
"fieldName": "disabled",
|
|
1082
|
+
"inheritedFrom": {
|
|
1083
|
+
"name": "LoginMixin",
|
|
1084
|
+
"module": "src/vaadin-login-mixin.js"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "error",
|
|
1089
|
+
"type": {
|
|
1090
|
+
"text": "boolean"
|
|
1091
|
+
},
|
|
1092
|
+
"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.",
|
|
1093
|
+
"fieldName": "error",
|
|
1094
|
+
"inheritedFrom": {
|
|
1095
|
+
"name": "LoginMixin",
|
|
1096
|
+
"module": "src/vaadin-login-mixin.js"
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"name": "heading-level",
|
|
1101
|
+
"type": {
|
|
1102
|
+
"text": "number"
|
|
1103
|
+
},
|
|
1104
|
+
"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.",
|
|
1105
|
+
"fieldName": "headingLevel",
|
|
1106
|
+
"inheritedFrom": {
|
|
1107
|
+
"name": "LoginMixin",
|
|
1108
|
+
"module": "src/vaadin-login-mixin.js"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"name": "no-autofocus",
|
|
1113
|
+
"type": {
|
|
1114
|
+
"text": "boolean"
|
|
1115
|
+
},
|
|
1116
|
+
"description": "If set, the user name field automatically receives focus when the component is attached to the document.",
|
|
1117
|
+
"fieldName": "noAutofocus",
|
|
1118
|
+
"inheritedFrom": {
|
|
1119
|
+
"name": "LoginMixin",
|
|
1120
|
+
"module": "src/vaadin-login-mixin.js"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "no-forgot-password",
|
|
1125
|
+
"type": {
|
|
1126
|
+
"text": "boolean"
|
|
1127
|
+
},
|
|
1128
|
+
"description": "Whether to hide the forgot password button. The button is visible by default.",
|
|
1129
|
+
"fieldName": "noForgotPassword",
|
|
1130
|
+
"inheritedFrom": {
|
|
1131
|
+
"name": "LoginMixin",
|
|
1132
|
+
"module": "src/vaadin-login-mixin.js"
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "opened",
|
|
1137
|
+
"type": {
|
|
1138
|
+
"text": "boolean"
|
|
1139
|
+
},
|
|
1140
|
+
"description": "True if the overlay is currently displayed.",
|
|
1141
|
+
"fieldName": "opened",
|
|
1142
|
+
"inheritedFrom": {
|
|
1143
|
+
"name": "LoginOverlayMixin",
|
|
1144
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "title",
|
|
1149
|
+
"type": {
|
|
1150
|
+
"text": "string"
|
|
1151
|
+
},
|
|
1152
|
+
"description": "Defines the application title",
|
|
1153
|
+
"fieldName": "title",
|
|
1154
|
+
"inheritedFrom": {
|
|
1155
|
+
"name": "LoginOverlayMixin",
|
|
1156
|
+
"module": "src/vaadin-login-overlay-mixin.js"
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
]
|
|
1160
|
+
}
|
|
1161
|
+
],
|
|
1162
|
+
"exports": [
|
|
1163
|
+
{
|
|
1164
|
+
"kind": "js",
|
|
1165
|
+
"name": "LoginOverlay",
|
|
1166
|
+
"declaration": {
|
|
1167
|
+
"name": "LoginOverlay",
|
|
1168
|
+
"module": "src/vaadin-login-overlay.js"
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
]
|
|
1172
|
+
}
|
|
1173
|
+
]
|
|
1174
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/login",
|
|
3
|
-
"version": "25.1.0-
|
|
3
|
+
"version": "25.1.0-alpha8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"src",
|
|
24
24
|
"vaadin-*.d.ts",
|
|
25
25
|
"vaadin-*.js",
|
|
26
|
+
"custom-elements.json",
|
|
26
27
|
"web-types.json",
|
|
27
28
|
"web-types.lit.json"
|
|
28
29
|
],
|
|
@@ -34,27 +35,28 @@
|
|
|
34
35
|
],
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/button": "25.1.0-
|
|
38
|
-
"@vaadin/component-base": "25.1.0-
|
|
39
|
-
"@vaadin/overlay": "25.1.0-
|
|
40
|
-
"@vaadin/password-field": "25.1.0-
|
|
41
|
-
"@vaadin/text-field": "25.1.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
38
|
+
"@vaadin/button": "25.1.0-alpha8",
|
|
39
|
+
"@vaadin/component-base": "25.1.0-alpha8",
|
|
40
|
+
"@vaadin/overlay": "25.1.0-alpha8",
|
|
41
|
+
"@vaadin/password-field": "25.1.0-alpha8",
|
|
42
|
+
"@vaadin/text-field": "25.1.0-alpha8",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-alpha8",
|
|
43
44
|
"lit": "^3.0.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@vaadin/a11y-base": "25.1.0-
|
|
47
|
-
"@vaadin/aura": "25.1.0-
|
|
48
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
49
|
-
"@vaadin/checkbox": "25.1.0-
|
|
50
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
47
|
+
"@vaadin/a11y-base": "25.1.0-alpha8",
|
|
48
|
+
"@vaadin/aura": "25.1.0-alpha8",
|
|
49
|
+
"@vaadin/chai-plugins": "25.1.0-alpha8",
|
|
50
|
+
"@vaadin/checkbox": "25.1.0-alpha8",
|
|
51
|
+
"@vaadin/test-runner-commands": "25.1.0-alpha8",
|
|
51
52
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
52
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
53
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-alpha8",
|
|
53
54
|
"sinon": "^21.0.0"
|
|
54
55
|
},
|
|
56
|
+
"customElements": "custom-elements.json",
|
|
55
57
|
"web-types": [
|
|
56
58
|
"web-types.json",
|
|
57
59
|
"web-types.lit.json"
|
|
58
60
|
],
|
|
59
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "810590c9c7682a9326c9352df795b5ea4891a71f"
|
|
60
62
|
}
|
package/src/vaadin-login-form.js
CHANGED
|
@@ -65,7 +65,7 @@ import { LoginFormMixin } from './vaadin-login-form-mixin.js';
|
|
|
65
65
|
* @fires {CustomEvent} forgot-password - Fired when user clicks on the "Forgot password" button.
|
|
66
66
|
* @fires {CustomEvent} login - Fired when a user submits the login.
|
|
67
67
|
*
|
|
68
|
-
* @customElement
|
|
68
|
+
* @customElement vaadin-login-form
|
|
69
69
|
* @extends HTMLElement
|
|
70
70
|
* @mixes ElementMixin
|
|
71
71
|
* @mixes ThemableMixin
|
|
@@ -73,7 +73,7 @@ import { LoginOverlayMixin } from './vaadin-login-overlay-mixin.js';
|
|
|
73
73
|
* @fires {CustomEvent} login - Fired when a user submits the login.
|
|
74
74
|
* @fires {CustomEvent} closed - Fired when the overlay is closed.
|
|
75
75
|
*
|
|
76
|
-
* @customElement
|
|
76
|
+
* @customElement vaadin-login-overlay
|
|
77
77
|
* @extends HTMLElement
|
|
78
78
|
* @mixes ElementMixin
|
|
79
79
|
* @mixes ThemableMixin
|
package/web-types.json
CHANGED