@aws-amplify/ui-angular 2.0.1-next.2 → 2.0.1-next.3
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/aws-amplify-ui-angular.d.ts +15 -15
- package/aws-amplify-ui-angular.metadata.json +1 -1
- package/bundles/aws-amplify-ui-angular.umd.js +162 -92
- package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
- package/bundles/aws-amplify-ui-angular.umd.min.js +1 -1
- package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -1
- package/esm2015/aws-amplify-ui-angular.js +16 -16
- package/esm2015/index.js +2 -2
- package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +2 -2
- package/esm2015/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.js +8 -6
- package/esm2015/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.js +12 -7
- package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +9 -4
- package/esm2015/lib/components/amplify-force-new-password/amplify-force-new-password.component.js +12 -4
- package/esm2015/lib/components/amplify-reset-password/amplify-reset-password.component.js +7 -3
- package/esm2015/lib/components/amplify-setup-totp/amplify-setup-totp.component.js +14 -5
- package/esm2015/lib/components/amplify-sign-in/amplify-sign-in.component.js +9 -3
- package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +8 -3
- package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +11 -4
- package/esm2015/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.js +9 -3
- package/esm2015/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.js +2 -2
- package/esm2015/lib/components/index.js +14 -6
- package/esm2015/lib/primitives/amplify-input/amplify-input.component.js +30 -9
- package/esm2015/lib/primitives/amplify-select/amplify-select.component.js +17 -0
- package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +6 -4
- package/esm2015/lib/ui-angular.module.js +4 -6
- package/fesm2015/aws-amplify-ui-angular.js +131 -70
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/index.d.ts +1 -1
- package/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.d.ts +4 -2
- package/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.d.ts +5 -0
- package/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.d.ts +4 -1
- package/lib/components/amplify-force-new-password/amplify-force-new-password.component.d.ts +2 -0
- package/lib/components/amplify-reset-password/amplify-reset-password.component.d.ts +2 -0
- package/lib/components/amplify-setup-totp/amplify-setup-totp.component.d.ts +3 -0
- package/lib/components/amplify-sign-in/amplify-sign-in.component.d.ts +4 -0
- package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +3 -0
- package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +4 -1
- package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +4 -0
- package/lib/components/index.d.ts +13 -5
- package/lib/primitives/amplify-input/amplify-input.component.d.ts +11 -3
- package/lib/primitives/amplify-select/amplify-select.component.d.ts +7 -0
- package/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.d.ts +1 -0
- package/package.json +2 -2
- package/esm2015/lib/components/amplify-sign-out/amplify-sign-out.component.js +0 -28
- package/lib/components/amplify-sign-out/amplify-sign-out.component.d.ts +0 -6
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterContentInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AuthMachineState } from '@aws-amplify/ui';
|
|
2
3
|
import { StateMachineService } from '../../services/state-machine.service';
|
|
3
4
|
import { AuthPropService } from '../../services/authenticator-context.service';
|
|
4
|
-
import { AuthMachineState } from '@aws-amplify/ui';
|
|
5
5
|
export declare class AmplifyConfirmSignInComponent implements OnInit, OnDestroy, AfterContentInit {
|
|
6
6
|
private stateMachine;
|
|
7
7
|
private contextService;
|
|
@@ -9,8 +9,10 @@ export declare class AmplifyConfirmSignInComponent implements OnInit, OnDestroy,
|
|
|
9
9
|
customComponents: Record<string, TemplateRef<any>>;
|
|
10
10
|
remoteError: string;
|
|
11
11
|
isPending: boolean;
|
|
12
|
-
headerText: string;
|
|
13
12
|
private authSubscription;
|
|
13
|
+
headerText: string;
|
|
14
|
+
confirmText: string;
|
|
15
|
+
backToSignInText: string;
|
|
14
16
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
17
|
ngOnInit(): void;
|
|
16
18
|
ngAfterContentInit(): void;
|
|
@@ -6,11 +6,16 @@ export declare class AmplifyConfirmSignUpComponent {
|
|
|
6
6
|
private stateMachine;
|
|
7
7
|
private contextService;
|
|
8
8
|
dataAttr: string;
|
|
9
|
+
headerText: string;
|
|
9
10
|
customComponents: Record<string, TemplateRef<any>>;
|
|
10
11
|
private authSubscription;
|
|
11
12
|
username: string;
|
|
12
13
|
remoteError: string;
|
|
13
14
|
isPending: boolean;
|
|
15
|
+
signInText: string;
|
|
16
|
+
resendCodeText: string;
|
|
17
|
+
lostCodeText: string;
|
|
18
|
+
confirmText: string;
|
|
14
19
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
20
|
ngOnInit(): void;
|
|
16
21
|
setUsername(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { StateMachineService } from '../../services/state-machine.service';
|
|
3
2
|
import { FederatedIdentityProviders } from '@aws-amplify/ui';
|
|
3
|
+
import { StateMachineService } from '../../services/state-machine.service';
|
|
4
4
|
export declare class AmplifyFederatedSignInComponent implements OnInit {
|
|
5
5
|
private stateMachine;
|
|
6
6
|
FederatedProviders: typeof FederatedIdentityProviders;
|
|
@@ -8,6 +8,9 @@ export declare class AmplifyFederatedSignInComponent implements OnInit {
|
|
|
8
8
|
includeGoogle: boolean;
|
|
9
9
|
includeAmazon: boolean;
|
|
10
10
|
shouldShowFederatedSignIn: boolean;
|
|
11
|
+
signInFacebookText: string;
|
|
12
|
+
signInGoogleText: string;
|
|
13
|
+
signInAmazonText: string;
|
|
11
14
|
constructor(stateMachine: StateMachineService);
|
|
12
15
|
ngOnInit(): void;
|
|
13
16
|
}
|
|
@@ -11,6 +11,8 @@ export declare class AmplifyForceNewPasswordComponent implements OnInit, AfterCo
|
|
|
11
11
|
remoteError: string;
|
|
12
12
|
isPending: boolean;
|
|
13
13
|
private authSubscription;
|
|
14
|
+
changePasswordText: string;
|
|
15
|
+
backToSignInText: string;
|
|
14
16
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
17
|
ngOnInit(): void;
|
|
16
18
|
ngAfterContentInit(): void;
|
|
@@ -11,6 +11,8 @@ export declare class AmplifyResetPasswordComponent implements OnInit, AfterConte
|
|
|
11
11
|
remoteError: string;
|
|
12
12
|
isPending: boolean;
|
|
13
13
|
private authSubscription;
|
|
14
|
+
sendCodeText: string;
|
|
15
|
+
backToSignInText: string;
|
|
14
16
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
17
|
ngOnInit(): void;
|
|
16
18
|
ngAfterContentInit(): void;
|
|
@@ -11,6 +11,8 @@ export declare class AmplifySetupTotpComponent implements OnInit, AfterContentIn
|
|
|
11
11
|
headerText: string;
|
|
12
12
|
qrCodeSource: string;
|
|
13
13
|
private authSubscription;
|
|
14
|
+
backToSignInText: string;
|
|
15
|
+
confirmText: string;
|
|
14
16
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
17
|
ngOnInit(): void;
|
|
16
18
|
ngAfterContentInit(): void;
|
|
@@ -25,4 +27,5 @@ export declare class AmplifySetupTotpComponent implements OnInit, AfterContentIn
|
|
|
25
27
|
generateQRCode(): Promise<void>;
|
|
26
28
|
onInput(event: Event): void;
|
|
27
29
|
onSubmit(event: Event): void;
|
|
30
|
+
toSignIn(): void;
|
|
28
31
|
}
|
|
@@ -10,6 +10,10 @@ export declare class AmplifySignInComponent implements AfterContentInit, OnInit,
|
|
|
10
10
|
customComponents: Record<string, TemplateRef<any>>;
|
|
11
11
|
remoteError: string;
|
|
12
12
|
isPending: boolean;
|
|
13
|
+
forgotPasswordText: string;
|
|
14
|
+
signInButtonText: string;
|
|
15
|
+
noAccountText: string;
|
|
16
|
+
createAccountText: string;
|
|
13
17
|
private authSubscription;
|
|
14
18
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
19
|
ngOnInit(): void;
|
|
@@ -14,6 +14,9 @@ export declare class AmplifySignUpComponent implements AfterContentInit, OnInit,
|
|
|
14
14
|
secondaryAliases: string[];
|
|
15
15
|
validationError: ValidationError;
|
|
16
16
|
private authSubscription;
|
|
17
|
+
createAccountText: string;
|
|
18
|
+
haveAccountText: string;
|
|
19
|
+
signInText: string;
|
|
17
20
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
18
21
|
get context(): {
|
|
19
22
|
change: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterContentInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AuthMachineState } from '@aws-amplify/ui';
|
|
2
3
|
import { StateMachineService } from '../../services/state-machine.service';
|
|
3
4
|
import { AuthPropService } from '../../services/authenticator-context.service';
|
|
4
|
-
import { AuthMachineState } from '@aws-amplify/ui';
|
|
5
5
|
export declare class AmplifyVerifyUserComponent implements AfterContentInit, OnInit, OnDestroy {
|
|
6
6
|
private stateMachine;
|
|
7
7
|
private contextService;
|
|
@@ -12,6 +12,8 @@ export declare class AmplifyVerifyUserComponent implements AfterContentInit, OnI
|
|
|
12
12
|
remoteError: string;
|
|
13
13
|
isPending: boolean;
|
|
14
14
|
private authSubscription;
|
|
15
|
+
skipText: string;
|
|
16
|
+
verifyText: string;
|
|
15
17
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
ngAfterContentInit(): void;
|
|
@@ -24,5 +26,6 @@ export declare class AmplifyVerifyUserComponent implements AfterContentInit, OnI
|
|
|
24
26
|
submit: (data?: Record<string | number | symbol, any>) => void;
|
|
25
27
|
};
|
|
26
28
|
skipVerify(): void;
|
|
29
|
+
translate(phrase: string): string;
|
|
27
30
|
onSubmit(event: Event): Promise<void>;
|
|
28
31
|
}
|
|
@@ -11,6 +11,10 @@ export declare class ConfirmResetPasswordComponent implements OnInit, AfterConte
|
|
|
11
11
|
remoteError: string;
|
|
12
12
|
isPending: boolean;
|
|
13
13
|
private authSubscription;
|
|
14
|
+
sendCodeText: string;
|
|
15
|
+
backToSignInText: string;
|
|
16
|
+
lostCodeText: string;
|
|
17
|
+
resendCodeText: string;
|
|
14
18
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
19
|
ngOnInit(): void;
|
|
16
20
|
ngAfterContentInit(): void;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export { AmplifyAuthenticatorComponent } from './amplify-authenticator/amplify-authenticator.component';
|
|
2
|
+
export { AmplifyConfirmSignInComponent } from './amplify-confirm-sign-in/amplify-confirm-sign-in.component';
|
|
3
|
+
export { AmplifyConfirmSignUpComponent } from './amplify-confirm-sign-up/amplify-confirm-sign-up.component';
|
|
4
|
+
export { AmplifyFederatedSignInButtonComponent } from './amplify-federated-sign-in-button/amplify-federated-sign-in-button.component';
|
|
5
|
+
export { AmplifyFederatedSignInComponent } from './amplify-federated-sign-in/amplify-federated-sign-in.component';
|
|
6
|
+
export { AmplifyForceNewPasswordComponent } from './amplify-force-new-password/amplify-force-new-password.component';
|
|
7
|
+
export { AmplifyResetPasswordComponent } from './amplify-reset-password/amplify-reset-password.component';
|
|
8
|
+
export { AmplifySetupTotpComponent } from './amplify-setup-totp/amplify-setup-totp.component';
|
|
9
|
+
export { AmplifySignInComponent } from './amplify-sign-in/amplify-sign-in.component';
|
|
10
|
+
export { AmplifySignUpComponent } from './amplify-sign-up/amplify-sign-up.component';
|
|
11
|
+
export { AmplifyVerifyUserComponent } from './amplify-verify-user/amplify-verify-user.component';
|
|
12
|
+
export { ConfirmResetPasswordComponent } from './confirm-reset-password/amplify-confirm-reset-password.component';
|
|
13
|
+
export { ConfirmVerifyUserComponent } from './confirm-verify-user/amplify-confirm-verify-user.component';
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { AuthInputAttributes } from '@aws-amplify/ui';
|
|
2
3
|
import { StateMachineService } from '../../services/state-machine.service';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
5
|
+
* Input interface opinionated for authenticator usage.
|
|
6
|
+
*
|
|
7
|
+
* TODO: Separate this component out to two parts -- 1) amplify-auth-input that
|
|
8
|
+
* contains authenticator opinionated logic and 2) amplify-text-field primitive
|
|
9
|
+
* that does not make any auth-related inference.
|
|
6
10
|
*/
|
|
7
|
-
export declare class AmplifyInputComponent {
|
|
11
|
+
export declare class AmplifyInputComponent implements OnInit {
|
|
8
12
|
private stateMachine;
|
|
9
13
|
name: string;
|
|
10
14
|
type: string;
|
|
@@ -14,9 +18,13 @@ export declare class AmplifyInputComponent {
|
|
|
14
18
|
initialValue: string;
|
|
15
19
|
disabled: boolean;
|
|
16
20
|
autocomplete: string;
|
|
21
|
+
defaultCountryCode: string;
|
|
22
|
+
countryDialCodes: string[];
|
|
17
23
|
constructor(stateMachine: StateMachineService);
|
|
24
|
+
ngOnInit(): void;
|
|
18
25
|
get attributeMap(): AuthInputAttributes;
|
|
19
26
|
get error(): string;
|
|
27
|
+
isTelInput(): boolean;
|
|
20
28
|
inferLabel(): string;
|
|
21
29
|
inferPlaceholder(): string;
|
|
22
30
|
inferType(): string;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-angular",
|
|
3
|
-
"version": "2.0.1-next.
|
|
3
|
+
"version": "2.0.1-next.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^11.2.4",
|
|
6
6
|
"@angular/core": "^11.2.4",
|
|
7
7
|
"aws-amplify": "3.x.x || 4.x.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@aws-amplify/ui": "3.0.1-next.
|
|
10
|
+
"@aws-amplify/ui": "3.0.1-next.3",
|
|
11
11
|
"@aws-amplify/ui-components": "^1.7.0",
|
|
12
12
|
"@stencil/core": "^2.7.0",
|
|
13
13
|
"tslib": "^2.0.0",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
import { StateMachineService } from '../../services/state-machine.service';
|
|
4
|
-
export class AmplifySignOutComponent {
|
|
5
|
-
constructor(stateMachine) {
|
|
6
|
-
this.stateMachine = stateMachine;
|
|
7
|
-
}
|
|
8
|
-
signOut() {
|
|
9
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10
|
-
try {
|
|
11
|
-
this.stateMachine.authService.send('SIGN_OUT');
|
|
12
|
-
}
|
|
13
|
-
catch (err) {
|
|
14
|
-
console.error(err);
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
AmplifySignOutComponent.decorators = [
|
|
20
|
-
{ type: Component, args: [{
|
|
21
|
-
selector: 'amplify-sign-out',
|
|
22
|
-
template: "<div [ngStyle]=\"{ height: '24rem' }\">\n <button (click)=\"signOut()\">Sign Out</button>\n</div>\n"
|
|
23
|
-
},] }
|
|
24
|
-
];
|
|
25
|
-
AmplifySignOutComponent.ctorParameters = () => [
|
|
26
|
-
{ type: StateMachineService }
|
|
27
|
-
];
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGlmeS1zaWduLW91dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoi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