@vaadin/login
Advanced tools
Comparing version
{ | ||
"name": "@vaadin/login", | ||
"version": "22.0.0-alpha7", | ||
"version": "22.0.0-alpha8", | ||
"publishConfig": { | ||
@@ -36,10 +36,10 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/button": "22.0.0-alpha7", | ||
"@vaadin/component-base": "22.0.0-alpha7", | ||
"@vaadin/password-field": "22.0.0-alpha7", | ||
"@vaadin/text-field": "22.0.0-alpha7", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha7", | ||
"@vaadin/vaadin-material-styles": "22.0.0-alpha7", | ||
"@vaadin/vaadin-overlay": "22.0.0-alpha7", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha7" | ||
"@vaadin/button": "22.0.0-alpha8", | ||
"@vaadin/component-base": "22.0.0-alpha8", | ||
"@vaadin/password-field": "22.0.0-alpha8", | ||
"@vaadin/text-field": "22.0.0-alpha8", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha8", | ||
"@vaadin/vaadin-material-styles": "22.0.0-alpha8", | ||
"@vaadin/vaadin-overlay": "22.0.0-alpha8", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha8" | ||
}, | ||
@@ -51,3 +51,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "8e89419c6b44a1d225d5859e180d7b35e47ddb52" | ||
"gitHead": "c24468526298ee26ad7f7280b59f6c8789e1f75f" | ||
} |
@@ -0,9 +1,24 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
import { LoginMixin } from './vaadin-login-mixin.js'; | ||
export { LoginI18n } from './vaadin-login-mixin.js'; | ||
import { LoginEventMap } from './interfaces'; | ||
/** | ||
* Fired when a user submits the login. | ||
*/ | ||
export type LoginFormLoginEvent = CustomEvent<{ username: string; password: string }>; | ||
export interface LoginFormCustomEventMap { | ||
'forgot-password': Event; | ||
login: LoginFormLoginEvent; | ||
} | ||
export interface LoginFormEventMap extends HTMLElementEventMap, LoginFormCustomEventMap {} | ||
/** | ||
@@ -45,11 +60,11 @@ * `<vaadin-login-form>` is a Web Component providing an easy way to require users | ||
addEventListener<K extends keyof LoginEventMap>( | ||
addEventListener<K extends keyof LoginFormEventMap>( | ||
type: K, | ||
listener: (this: LoginForm, ev: LoginEventMap[K]) => void, | ||
listener: (this: LoginForm, ev: LoginFormEventMap[K]) => void, | ||
options?: boolean | AddEventListenerOptions | ||
): void; | ||
removeEventListener<K extends keyof LoginEventMap>( | ||
removeEventListener<K extends keyof LoginFormEventMap>( | ||
type: K, | ||
listener: (this: LoginForm, ev: LoginEventMap[K]) => void, | ||
listener: (this: LoginForm, ev: LoginFormEventMap[K]) => void, | ||
options?: boolean | EventListenerOptions | ||
@@ -56,0 +71,0 @@ ): void; |
@@ -1,3 +0,26 @@ | ||
import { LoginI18n } from './interfaces'; | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
export interface LoginI18n { | ||
form: { | ||
title: string; | ||
username: string; | ||
password: string; | ||
submit: string; | ||
forgotPassword: string; | ||
}; | ||
errorMessage: { | ||
title: string; | ||
message: string; | ||
}; | ||
header?: { | ||
title?: string; | ||
description?: string; | ||
}; | ||
additionalInformation?: string; | ||
} | ||
declare function LoginMixin<T extends new (...args: any[]) => {}>(base: T): T & LoginMixinConstructor; | ||
@@ -4,0 +27,0 @@ |
@@ -0,9 +1,24 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
import { LoginMixin } from './vaadin-login-mixin.js'; | ||
export { LoginI18n } from './vaadin-login-mixin.js'; | ||
import { LoginEventMap } from './interfaces'; | ||
/** | ||
* Fired when a user submits the login. | ||
*/ | ||
export type LoginOverlayLoginEvent = CustomEvent<{ username: string; password: string }>; | ||
export interface LoginOverlayCustomEventMap { | ||
'forgot-password': Event; | ||
login: LoginOverlayLoginEvent; | ||
} | ||
export interface LoginOverlayEventMap extends HTMLElementEventMap, LoginOverlayCustomEventMap {} | ||
/** | ||
@@ -55,11 +70,11 @@ * `<vaadin-login-overlay>` is a wrapper of the `<vaadin-login-form>` which opens a login form in an overlay and | ||
addEventListener<K extends keyof LoginEventMap>( | ||
addEventListener<K extends keyof LoginOverlayEventMap>( | ||
type: K, | ||
listener: (this: LoginOverlay, ev: LoginEventMap[K]) => void, | ||
listener: (this: LoginOverlay, ev: LoginOverlayEventMap[K]) => void, | ||
options?: boolean | AddEventListenerOptions | ||
): void; | ||
removeEventListener<K extends keyof LoginEventMap>( | ||
removeEventListener<K extends keyof LoginOverlayEventMap>( | ||
type: K, | ||
listener: (this: LoginOverlay, ev: LoginEventMap[K]) => void, | ||
listener: (this: LoginOverlay, ev: LoginOverlayEventMap[K]) => void, | ||
options?: boolean | EventListenerOptions | ||
@@ -66,0 +81,0 @@ ): void; |
export * from './src/vaadin-login-overlay.js'; | ||
export * from './src/interfaces'; |
66147
1.27%1598
1.4%27
-3.57%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated