@vaadin/login 23.3.3 → 24.0.0-alpha10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/src/vaadin-login-form-wrapper.js +23 -16
- package/src/vaadin-login-form.d.ts +1 -1
- package/src/vaadin-login-form.js +27 -20
- package/src/vaadin-login-mixin.d.ts +1 -3
- package/src/vaadin-login-mixin.js +1 -16
- package/src/vaadin-login-overlay-wrapper.js +47 -52
- package/src/vaadin-login-overlay.d.ts +1 -1
- package/src/vaadin-login-overlay.js +16 -1
- package/theme/lumo/vaadin-login-form-styles.js +1 -1
- package/theme/lumo/vaadin-login-form-wrapper-styles.js +1 -1
- package/theme/lumo/vaadin-login-form.js +2 -1
- package/theme/material/vaadin-login-form-styles.js +2 -2
- package/theme/material/vaadin-login-form-wrapper-styles.js +1 -1
- package/theme/material/vaadin-login-form.js +2 -1
- package/theme/material/vaadin-login-overlay-styles.js +1 -1
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
- package/theme/lumo/vaadin-login-form-wrapper.js +0 -3
- package/theme/material/vaadin-login-form-wrapper.js +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/login",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/button": "
|
|
41
|
-
"@vaadin/component-base": "
|
|
42
|
-
"@vaadin/overlay": "
|
|
43
|
-
"@vaadin/password-field": "
|
|
44
|
-
"@vaadin/text-field": "
|
|
45
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
46
|
-
"@vaadin/vaadin-material-styles": "
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
40
|
+
"@vaadin/button": "24.0.0-alpha10",
|
|
41
|
+
"@vaadin/component-base": "24.0.0-alpha10",
|
|
42
|
+
"@vaadin/overlay": "24.0.0-alpha10",
|
|
43
|
+
"@vaadin/password-field": "24.0.0-alpha10",
|
|
44
|
+
"@vaadin/text-field": "24.0.0-alpha10",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-alpha10",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "24.0.0-alpha10",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-alpha10"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "2e04534d8b47bcd216f89b5f849bafef1a73b174"
|
|
59
59
|
}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '@vaadin/button/src/vaadin-button.js';
|
|
7
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
8
|
-
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
9
7
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
10
|
-
import { LoginMixin } from './vaadin-login-mixin.js';
|
|
11
8
|
|
|
12
9
|
/**
|
|
13
10
|
* An element used internally by `<vaadin-login-form>`. Not intended to be used separately.
|
|
14
11
|
*
|
|
15
12
|
* @extends HTMLElement
|
|
16
|
-
* @mixes ElementMixin
|
|
17
13
|
* @mixes ThemableMixin
|
|
18
|
-
* @mixes LoginMixin
|
|
19
14
|
* @private
|
|
20
15
|
*/
|
|
21
|
-
class LoginFormWrapper extends
|
|
16
|
+
class LoginFormWrapper extends ThemableMixin(PolymerElement) {
|
|
22
17
|
static get template() {
|
|
23
18
|
return html`
|
|
24
19
|
<style>
|
|
@@ -55,13 +50,7 @@ class LoginFormWrapper extends LoginMixin(ElementMixin(ThemableMixin(PolymerElem
|
|
|
55
50
|
|
|
56
51
|
<slot name="form"></slot>
|
|
57
52
|
|
|
58
|
-
<
|
|
59
|
-
id="forgotPasswordButton"
|
|
60
|
-
theme="tertiary small forgot-password"
|
|
61
|
-
on-click="_forgotPassword"
|
|
62
|
-
hidden$="[[noForgotPassword]]"
|
|
63
|
-
>[[i18n.form.forgotPassword]]</vaadin-button
|
|
64
|
-
>
|
|
53
|
+
<slot name="forgot-password"></slot>
|
|
65
54
|
|
|
66
55
|
<div part="footer">
|
|
67
56
|
<p>[[i18n.additionalInformation]]</p>
|
|
@@ -74,8 +63,26 @@ class LoginFormWrapper extends LoginMixin(ElementMixin(ThemableMixin(PolymerElem
|
|
|
74
63
|
return 'vaadin-login-form-wrapper';
|
|
75
64
|
}
|
|
76
65
|
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
static get properties() {
|
|
67
|
+
return {
|
|
68
|
+
/**
|
|
69
|
+
* If set, the error message is shown. The message is hidden by default.
|
|
70
|
+
* When set, it changes the disabled state of the submit button.
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
*/
|
|
73
|
+
error: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
value: false,
|
|
76
|
+
reflectToAttribute: true,
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The object used to localize this component.
|
|
81
|
+
*/
|
|
82
|
+
i18n: {
|
|
83
|
+
type: Object,
|
|
84
|
+
},
|
|
85
|
+
};
|
|
79
86
|
}
|
|
80
87
|
}
|
|
81
88
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
package/src/vaadin-login-form.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
+
import '@vaadin/button/src/vaadin-button.js';
|
|
6
7
|
import '@vaadin/text-field/src/vaadin-text-field.js';
|
|
7
8
|
import '@vaadin/password-field/src/vaadin-password-field.js';
|
|
8
9
|
import './vaadin-login-form-wrapper.js';
|
|
@@ -54,20 +55,12 @@ class LoginForm extends LoginMixin(ElementMixin(ThemableMixin(PolymerElement)))
|
|
|
54
55
|
static get template() {
|
|
55
56
|
return html`
|
|
56
57
|
<style>
|
|
57
|
-
|
|
58
|
+
vaadin-login-form-wrapper > form > * {
|
|
58
59
|
width: 100%;
|
|
59
60
|
}
|
|
60
61
|
</style>
|
|
61
|
-
<vaadin-login-form-wrapper
|
|
62
|
-
|
|
63
|
-
part="vaadin-login-native-form-wrapper"
|
|
64
|
-
error="[[error]]"
|
|
65
|
-
no-forgot-password="[[noForgotPassword]]"
|
|
66
|
-
i18n="[[i18n]]"
|
|
67
|
-
on-login="_retargetEvent"
|
|
68
|
-
on-forgot-password="_retargetEvent"
|
|
69
|
-
>
|
|
70
|
-
<form part="vaadin-login-native-form" method="POST" action$="[[action]]" slot="form">
|
|
62
|
+
<vaadin-login-form-wrapper theme$="[[_theme]]" error="[[error]]" i18n="[[i18n]]">
|
|
63
|
+
<form method="POST" action$="[[action]]" slot="form">
|
|
71
64
|
<input id="csrf" type="hidden" />
|
|
72
65
|
<vaadin-text-field
|
|
73
66
|
name="username"
|
|
@@ -95,10 +88,19 @@ class LoginForm extends LoginMixin(ElementMixin(ThemableMixin(PolymerElement)))
|
|
|
95
88
|
<input type="password" slot="input" on-keyup="_handleInputKeyup" />
|
|
96
89
|
</vaadin-password-field>
|
|
97
90
|
|
|
98
|
-
<vaadin-button
|
|
99
|
-
|
|
100
|
-
>
|
|
91
|
+
<vaadin-button theme="primary contained submit" on-click="submit" disabled$="[[disabled]]">
|
|
92
|
+
[[i18n.form.submit]]
|
|
93
|
+
</vaadin-button>
|
|
101
94
|
</form>
|
|
95
|
+
|
|
96
|
+
<vaadin-button
|
|
97
|
+
slot="forgot-password"
|
|
98
|
+
theme="tertiary small"
|
|
99
|
+
on-click="_onForgotPasswordClick"
|
|
100
|
+
hidden$="[[noForgotPassword]]"
|
|
101
|
+
>
|
|
102
|
+
[[i18n.form.forgotPassword]]
|
|
103
|
+
</vaadin-button>
|
|
102
104
|
</vaadin-login-form-wrapper>
|
|
103
105
|
`;
|
|
104
106
|
}
|
|
@@ -107,6 +109,10 @@ class LoginForm extends LoginMixin(ElementMixin(ThemableMixin(PolymerElement)))
|
|
|
107
109
|
return 'vaadin-login-form';
|
|
108
110
|
}
|
|
109
111
|
|
|
112
|
+
static get observers() {
|
|
113
|
+
return ['_errorChanged(error)'];
|
|
114
|
+
}
|
|
115
|
+
|
|
110
116
|
/** @protected */
|
|
111
117
|
connectedCallback() {
|
|
112
118
|
super.connectedCallback();
|
|
@@ -125,10 +131,6 @@ class LoginForm extends LoginMixin(ElementMixin(ThemableMixin(PolymerElement)))
|
|
|
125
131
|
this.appendChild(dom);
|
|
126
132
|
}
|
|
127
133
|
|
|
128
|
-
static get observers() {
|
|
129
|
-
return ['_errorChanged(error)'];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
134
|
/** @private */
|
|
133
135
|
_errorChanged() {
|
|
134
136
|
if (this.error && !this._preventAutoEnable) {
|
|
@@ -164,7 +166,7 @@ class LoginForm extends LoginMixin(ElementMixin(ThemableMixin(PolymerElement)))
|
|
|
164
166
|
this.$.csrf.name = csrfMetaName.content;
|
|
165
167
|
this.$.csrf.value = csrfMetaValue.content;
|
|
166
168
|
}
|
|
167
|
-
this.querySelector('
|
|
169
|
+
this.querySelector('form').submit();
|
|
168
170
|
}
|
|
169
171
|
}
|
|
170
172
|
|
|
@@ -191,6 +193,11 @@ class LoginForm extends LoginMixin(ElementMixin(ThemableMixin(PolymerElement)))
|
|
|
191
193
|
input.select();
|
|
192
194
|
}
|
|
193
195
|
}
|
|
196
|
+
|
|
197
|
+
/** @private */
|
|
198
|
+
_onForgotPasswordClick() {
|
|
199
|
+
this.dispatchEvent(new CustomEvent('forgot-password'));
|
|
200
|
+
}
|
|
194
201
|
}
|
|
195
202
|
|
|
196
203
|
customElements.define(LoginForm.is, LoginForm);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -89,6 +89,4 @@ export declare class LoginMixinClass {
|
|
|
89
89
|
* ```
|
|
90
90
|
*/
|
|
91
91
|
i18n: LoginI18n;
|
|
92
|
-
|
|
93
|
-
protected _retargetEvent(e: Event): void;
|
|
94
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -140,19 +140,4 @@ export const LoginMixin = (superClass) =>
|
|
|
140
140
|
},
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @param {!Event} e
|
|
146
|
-
* @protected
|
|
147
|
-
*/
|
|
148
|
-
_retargetEvent(e) {
|
|
149
|
-
e.stopPropagation();
|
|
150
|
-
const { detail, composed, cancelable, bubbles } = e;
|
|
151
|
-
|
|
152
|
-
const firedEvent = this.dispatchEvent(new CustomEvent(e.type, { bubbles, cancelable, composed, detail }));
|
|
153
|
-
// Check if `eventTarget.preventDefault()` was called to prevent default in the original event
|
|
154
|
-
if (!firedEvent) {
|
|
155
|
-
e.preventDefault();
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
143
|
};
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
|
|
7
7
|
import { Overlay } from '@vaadin/overlay/src/vaadin-overlay.js';
|
|
8
|
+
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
outline: none;
|
|
16
|
-
}
|
|
10
|
+
registerStyles(
|
|
11
|
+
'vaadin-login-overlay-wrapper',
|
|
12
|
+
css`
|
|
13
|
+
[part='overlay'] {
|
|
14
|
+
outline: none;
|
|
15
|
+
}
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
[part='card'] {
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
}
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
[part='brand'] {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
}
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<slot name="title">
|
|
44
|
-
<h1 part="title">[[title]]</h1>
|
|
45
|
-
</slot>
|
|
46
|
-
<p part="description">[[description]]</p>
|
|
47
|
-
</div>
|
|
48
|
-
<div part="form">
|
|
49
|
-
<slot></slot>
|
|
50
|
-
</div>
|
|
51
|
-
</section>
|
|
52
|
-
</template>
|
|
53
|
-
</dom-module>`;
|
|
35
|
+
[part='brand'] h1 {
|
|
36
|
+
color: inherit;
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
`,
|
|
40
|
+
{ moduleId: 'vaadin-login-overlay-wrapper-styles' },
|
|
41
|
+
);
|
|
54
42
|
|
|
55
|
-
|
|
43
|
+
const template = html`
|
|
44
|
+
<section part="card">
|
|
45
|
+
<div part="brand">
|
|
46
|
+
<slot name="title">
|
|
47
|
+
<h1 part="title">[[title]]</h1>
|
|
48
|
+
</slot>
|
|
49
|
+
<p part="description">[[description]]</p>
|
|
50
|
+
</div>
|
|
51
|
+
<div part="form">
|
|
52
|
+
<slot></slot>
|
|
53
|
+
</div>
|
|
54
|
+
</section>
|
|
55
|
+
`;
|
|
56
56
|
|
|
57
57
|
let memoizedTemplate;
|
|
58
58
|
|
|
@@ -90,15 +90,10 @@ class LoginOverlayWrapper extends Overlay {
|
|
|
90
90
|
// Clone the superclass template
|
|
91
91
|
memoizedTemplate = super.template.cloneNode(true);
|
|
92
92
|
|
|
93
|
-
//
|
|
94
|
-
const
|
|
95
|
-
const card = thisTemplate.content.querySelector('[part=card]');
|
|
96
|
-
const styles = thisTemplate.content.querySelector('style');
|
|
97
|
-
|
|
98
|
-
// Append elements to cloned template
|
|
93
|
+
// Replace overlay slot with card
|
|
94
|
+
const card = template.content.querySelector('[part=card]');
|
|
99
95
|
const content = memoizedTemplate.content.querySelector('#content');
|
|
100
96
|
content.replaceChild(card, content.children[0]);
|
|
101
|
-
content.appendChild(styles);
|
|
102
97
|
}
|
|
103
98
|
|
|
104
99
|
return memoizedTemplate;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './vaadin-login-form.js';
|
|
@@ -164,6 +164,21 @@ class LoginOverlay extends LoginMixin(ElementMixin(ThemableMixin(PolymerElement)
|
|
|
164
164
|
e.preventDefault();
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
/**
|
|
168
|
+
* @param {!Event} e
|
|
169
|
+
* @private
|
|
170
|
+
*/
|
|
171
|
+
_retargetEvent(e) {
|
|
172
|
+
e.stopPropagation();
|
|
173
|
+
const { detail, composed, cancelable, bubbles } = e;
|
|
174
|
+
|
|
175
|
+
const firedEvent = this.dispatchEvent(new CustomEvent(e.type, { bubbles, cancelable, composed, detail }));
|
|
176
|
+
// Check if `eventTarget.preventDefault()` was called to prevent default in the original event
|
|
177
|
+
if (!firedEvent) {
|
|
178
|
+
e.preventDefault();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
167
182
|
/** @private */
|
|
168
183
|
_onOpenedChange() {
|
|
169
184
|
if (!this.opened) {
|
|
@@ -4,7 +4,7 @@ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themab
|
|
|
4
4
|
registerStyles(
|
|
5
5
|
'vaadin-login-form',
|
|
6
6
|
css`
|
|
7
|
-
vaadin-button[
|
|
7
|
+
form > vaadin-button[theme~='submit'] {
|
|
8
8
|
margin-top: var(--lumo-space-l);
|
|
9
9
|
margin-bottom: var(--lumo-space-s);
|
|
10
10
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import '@vaadin/button/theme/lumo/vaadin-button.js';
|
|
1
2
|
import '@vaadin/text-field/theme/lumo/vaadin-text-field.js';
|
|
2
3
|
import '@vaadin/password-field/theme/lumo/vaadin-password-field.js';
|
|
3
|
-
import './vaadin-login-form-wrapper.js';
|
|
4
|
+
import './vaadin-login-form-wrapper-styles.js';
|
|
4
5
|
import './vaadin-login-form-styles.js';
|
|
5
6
|
import '../../src/vaadin-login-form.js';
|
|
@@ -3,7 +3,7 @@ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themab
|
|
|
3
3
|
registerStyles(
|
|
4
4
|
'vaadin-login-form',
|
|
5
5
|
css`
|
|
6
|
-
vaadin-button[
|
|
6
|
+
form > vaadin-button[theme~='submit'] {
|
|
7
7
|
margin-top: 3em;
|
|
8
8
|
margin-bottom: 2em;
|
|
9
9
|
flex-grow: 0;
|
|
@@ -11,7 +11,7 @@ registerStyles(
|
|
|
11
11
|
|
|
12
12
|
/* Small screen */
|
|
13
13
|
@media only screen and (max-width: 1023px) {
|
|
14
|
-
vaadin-button[
|
|
14
|
+
form > vaadin-button[theme~='submit'] {
|
|
15
15
|
margin-top: 2.5em;
|
|
16
16
|
margin-bottom: 1em;
|
|
17
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import '@vaadin/button/theme/material/vaadin-button.js';
|
|
1
2
|
import '@vaadin/text-field/theme/material/vaadin-text-field.js';
|
|
2
3
|
import '@vaadin/password-field/theme/material/vaadin-password-field.js';
|
|
3
|
-
import './vaadin-login-form-wrapper.js';
|
|
4
|
+
import './vaadin-login-form-wrapper-styles.js';
|
|
4
5
|
import './vaadin-login-form-styles.js';
|
|
5
6
|
import '../../src/vaadin-login-form.js';
|
|
@@ -302,7 +302,7 @@ const loginOverlayWrapper = css`
|
|
|
302
302
|
`;
|
|
303
303
|
|
|
304
304
|
registerStyles('vaadin-login-overlay-wrapper', [overlay, typography, loginOverlayWrapper], {
|
|
305
|
-
moduleId: '
|
|
305
|
+
moduleId: 'material-login-overlay-wrapper',
|
|
306
306
|
});
|
|
307
307
|
|
|
308
308
|
const loginFormWrapper = css`
|
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": "
|
|
4
|
+
"version": "24.0.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "vaadin-login-overlay",
|
|
151
|
-
"description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/
|
|
151
|
+
"description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
|
|
152
152
|
"attributes": [
|
|
153
153
|
{
|
|
154
154
|
"name": "action",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/login",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "24.0.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"name": "vaadin-login-overlay",
|
|
96
|
-
"description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/
|
|
96
|
+
"description": "`<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and\nhaving an additional `brand` part for application title and description. Using `<vaadin-login-overlay>` allows\npassword managers to work with login form.\n\n```\n<vaadin-login-overlay opened></vaadin-login-overlay>\n```\n\n### Styling\n\nThe component doesn't have a shadowRoot, so the `<form>` and input fields can be styled from a global scope.\nUse `<vaadin-login-overlay-wrapper>` and `<vaadin-login-form-wrapper>` to apply styles.\n\nThe following shadow DOM parts of the `<vaadin-login-overlay-wrapper>` are available for styling:\n\nPart name | Description\n----------------|---------------------------------------------------------|\n`card` | Container for the entire component's content\n`brand` | Container for application title and description\n`form` | Container for the `<vaadin-login-form>` component\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.\n\nSee [`<vaadin-login-form>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-login-form)\ndocumentation for `<vaadin-login-form-wrapper>` stylable parts.",
|
|
97
97
|
"extension": true,
|
|
98
98
|
"attributes": [
|
|
99
99
|
{
|