@aws-amplify/ui-angular 2.0.1-next.2 → 2.0.1-next.6
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 +21 -15
- package/aws-amplify-ui-angular.metadata.json +1 -1
- package/bundles/aws-amplify-ui-angular.umd.js +1233 -932
- 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 +22 -16
- package/esm2015/index.js +3 -3
- package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +33 -14
- 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 +11 -25
- package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +9 -4
- package/esm2015/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.js +2 -2
- 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 +8 -6
- package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +16 -6
- package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +16 -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 +7 -4
- package/esm2015/lib/components/index.js +14 -6
- package/esm2015/lib/directives/amplify-slot.directive.js +21 -0
- package/esm2015/lib/primitives/amplify-button/amplify-button.component.js +38 -0
- package/esm2015/lib/primitives/amplify-error/amplify-error.component.js +2 -2
- package/esm2015/lib/primitives/amplify-form-field/amplify-form-field.component.js +91 -0
- package/esm2015/lib/primitives/amplify-password-field/amplify-password-field.component.js +39 -0
- package/esm2015/lib/primitives/amplify-select/amplify-select.component.js +17 -0
- package/esm2015/lib/primitives/amplify-text-field/amplify-text-field.component.js +29 -0
- package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +6 -4
- package/esm2015/lib/primitives/index.js +2 -2
- package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +33 -0
- package/esm2015/lib/primitives/tab-item/tab-item.component.js +20 -0
- package/esm2015/lib/primitives/tabs/tabs.component.js +45 -0
- package/esm2015/lib/services/state-machine.service.js +12 -7
- package/esm2015/lib/ui-angular.module.js +30 -20
- package/fesm2015/aws-amplify-ui-angular.js +722 -441
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/index.d.ts +2 -2
- package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +11 -7
- 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 +4 -2
- 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 +3 -1
- package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +1 -1
- package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +5 -1
- package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +4 -0
- package/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +2 -0
- package/lib/components/index.d.ts +13 -5
- package/lib/directives/{amplify-override.directive.d.ts → amplify-slot.directive.d.ts} +2 -2
- package/lib/primitives/amplify-button/amplify-button.component.d.ts +15 -0
- package/lib/primitives/amplify-form-field/amplify-form-field.component.d.ts +34 -0
- package/lib/primitives/amplify-password-field/amplify-password-field.component.d.ts +14 -0
- package/lib/primitives/amplify-select/amplify-select.component.d.ts +7 -0
- package/lib/primitives/amplify-text-field/amplify-text-field.component.d.ts +11 -0
- package/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.d.ts +1 -0
- package/lib/primitives/index.d.ts +1 -1
- package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +14 -0
- package/lib/primitives/tab-item/tab-item.component.d.ts +7 -0
- package/lib/primitives/tabs/tabs.component.d.ts +9 -0
- package/lib/services/state-machine.service.d.ts +2 -2
- package/package.json +4 -3
- package/styles/component.css +169 -0
- package/theme.css +2 -99
- package/esm2015/lib/components/amplify-sign-out/amplify-sign-out.component.js +0 -28
- package/esm2015/lib/directives/amplify-override.directive.js +0 -21
- package/esm2015/lib/primitives/amplify-input/amplify-input.component.js +0 -61
- package/lib/components/amplify-sign-out/amplify-sign-out.component.d.ts +0 -6
- package/lib/primitives/amplify-input/amplify-input.component.d.ts +0 -23
package/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './lib/ui-angular.module';
|
|
2
|
-
export * from './lib/common
|
|
2
|
+
export * from './lib/common';
|
|
3
3
|
export * from './lib/components';
|
|
4
4
|
export * from './lib/primitives';
|
|
5
5
|
export * from './lib/services/authenticator-context.service';
|
|
6
6
|
export * from './lib/services/state-machine.service';
|
|
7
|
-
export * from './lib/directives/amplify-
|
|
7
|
+
export * from './lib/directives/amplify-slot.directive';
|
|
8
8
|
export { AmplifyS3Album, AmplifyS3ImagePicker, AmplifyS3Text, AmplifyS3TextPicker, AmplifyS3Image, AmplifyPicker, AmplifyPhotoPicker, AmplifyChatbot, AmplifyToast, AmplifyInput, AmplifyButton, } from './lib/proxies';
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { StateMachineService } from '../../services/state-machine.service';
|
|
4
|
-
import { AuthPropService } from '../../services/authenticator-context.service';
|
|
1
|
+
import { AfterContentInit, OnInit } from '@angular/core';
|
|
2
|
+
import { AuthenticatorMachineOptions } from '@aws-amplify/ui';
|
|
5
3
|
import { CustomComponents } from '../../common';
|
|
6
|
-
|
|
4
|
+
import { AuthPropService } from '../../services/authenticator-context.service';
|
|
5
|
+
import { StateMachineService } from '../../services/state-machine.service';
|
|
6
|
+
export declare class AmplifyAuthenticatorComponent implements OnInit, AfterContentInit {
|
|
7
7
|
private stateMachine;
|
|
8
8
|
private contextService;
|
|
9
9
|
/**
|
|
10
10
|
* TODO: Add back custom events
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
initialState: AuthenticatorMachineOptions['initialState'];
|
|
13
|
+
loginMechanisms: AuthenticatorMachineOptions['loginMechanisms'];
|
|
14
14
|
private customComponentQuery;
|
|
15
15
|
customComponents: CustomComponents;
|
|
16
|
+
signInTitle: string;
|
|
17
|
+
signUpTitle: string;
|
|
16
18
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
19
|
+
ngOnInit(): void;
|
|
17
20
|
/**
|
|
18
21
|
* Lifecycle Methods
|
|
19
22
|
*/
|
|
@@ -27,5 +30,6 @@ export declare class AmplifyAuthenticatorComponent implements AfterContentInit {
|
|
|
27
30
|
};
|
|
28
31
|
get actorState(): import("@aws-amplify/ui").AuthActorState;
|
|
29
32
|
get authenticatorState(): import("@aws-amplify/ui").AuthMachineState;
|
|
33
|
+
onTabChange(): void;
|
|
30
34
|
private mapCustomComponents;
|
|
31
35
|
}
|
|
@@ -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,14 +6,17 @@ 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
|
+
resendCodeText: string;
|
|
16
|
+
lostCodeText: string;
|
|
17
|
+
confirmText: string;
|
|
14
18
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
19
|
ngOnInit(): void;
|
|
16
|
-
setUsername(): void;
|
|
17
20
|
ngAfterContentInit(): void;
|
|
18
21
|
ngOnDestroy(): void;
|
|
19
22
|
onStateUpdate(state: AuthMachineState): void;
|
|
@@ -25,7 +28,6 @@ export declare class AmplifyConfirmSignUpComponent {
|
|
|
25
28
|
submit: (data?: Record<string | number | symbol, any>) => void;
|
|
26
29
|
username: string;
|
|
27
30
|
};
|
|
28
|
-
toSignIn(): void;
|
|
29
31
|
resend(): void;
|
|
30
32
|
onInput($event: any): void;
|
|
31
33
|
onSubmit(event: Event): 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,9 @@ 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;
|
|
13
16
|
private authSubscription;
|
|
14
17
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
18
|
ngOnInit(): void;
|
|
@@ -23,7 +26,6 @@ export declare class AmplifySignInComponent implements AfterContentInit, OnInit,
|
|
|
23
26
|
signUp: (data?: Record<string | number | symbol, any>) => void;
|
|
24
27
|
submit: (data?: Record<string | number | symbol, any>) => void;
|
|
25
28
|
};
|
|
26
|
-
toSignUp(): void;
|
|
27
29
|
toResetPassword(): void;
|
|
28
30
|
onInput(event: Event): void;
|
|
29
31
|
onSubmit(event: Event): Promise<void>;
|
|
@@ -14,6 +14,7 @@ export declare class AmplifySignUpComponent implements AfterContentInit, OnInit,
|
|
|
14
14
|
secondaryAliases: string[];
|
|
15
15
|
validationError: ValidationError;
|
|
16
16
|
private authSubscription;
|
|
17
|
+
createAccountText: string;
|
|
17
18
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
18
19
|
get context(): {
|
|
19
20
|
change: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -28,5 +29,4 @@ export declare class AmplifySignUpComponent implements AfterContentInit, OnInit,
|
|
|
28
29
|
private onStateUpdate;
|
|
29
30
|
onSubmit($event: any): Promise<void>;
|
|
30
31
|
onInput(event: Event): void;
|
|
31
|
-
toSignIn(): void;
|
|
32
32
|
}
|
|
@@ -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;
|
|
@@ -11,7 +11,10 @@ export declare class AmplifyVerifyUserComponent implements AfterContentInit, OnI
|
|
|
11
11
|
unverifiedAttributes: {};
|
|
12
12
|
remoteError: string;
|
|
13
13
|
isPending: boolean;
|
|
14
|
+
labelId: string;
|
|
14
15
|
private authSubscription;
|
|
16
|
+
skipText: string;
|
|
17
|
+
verifyText: string;
|
|
15
18
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
16
19
|
ngOnInit(): void;
|
|
17
20
|
ngAfterContentInit(): void;
|
|
@@ -24,5 +27,6 @@ export declare class AmplifyVerifyUserComponent implements AfterContentInit, OnI
|
|
|
24
27
|
submit: (data?: Record<string | number | symbol, any>) => void;
|
|
25
28
|
};
|
|
26
29
|
skipVerify(): void;
|
|
30
|
+
getLabelForAttr(authAttr: string): string;
|
|
27
31
|
onSubmit(event: Event): Promise<void>;
|
|
28
32
|
}
|
|
@@ -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;
|
|
@@ -11,6 +11,8 @@ export declare class ConfirmVerifyUserComponent implements OnInit, AfterContentI
|
|
|
11
11
|
remoteError: string;
|
|
12
12
|
isPending: boolean;
|
|
13
13
|
private authSubscription;
|
|
14
|
+
skipText: string;
|
|
15
|
+
submitText: string;
|
|
14
16
|
constructor(stateMachine: StateMachineService, contextService: AuthPropService);
|
|
15
17
|
ngOnInit(): void;
|
|
16
18
|
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,7 +1,7 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class AmplifySlotDirective {
|
|
3
3
|
template: TemplateRef<any>;
|
|
4
4
|
constructor(template: TemplateRef<any>);
|
|
5
5
|
name: string;
|
|
6
|
-
set
|
|
6
|
+
set amplifySlot(component: string);
|
|
7
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
export declare class AmplifyButtonComponent implements OnInit {
|
|
3
|
+
type: 'submit' | 'button';
|
|
4
|
+
fullWidth: boolean | string;
|
|
5
|
+
size: 'small' | 'medium' | 'large';
|
|
6
|
+
variation: 'primary' | 'default' | 'link';
|
|
7
|
+
fontWeight: 'normal' | 'bold' | 'lighter';
|
|
8
|
+
typeAttr: string;
|
|
9
|
+
fullWidthAttr: boolean | string;
|
|
10
|
+
sizeAttr: string;
|
|
11
|
+
variationAttr: string;
|
|
12
|
+
defaultClass: boolean;
|
|
13
|
+
fontWeightAttr: string;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthInputAttributes } from '@aws-amplify/ui';
|
|
3
|
+
import { StateMachineService } from '../../services/state-machine.service';
|
|
4
|
+
/**
|
|
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.
|
|
10
|
+
*/
|
|
11
|
+
export declare class AmplifyFormFieldComponent implements OnInit {
|
|
12
|
+
private stateMachine;
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
label: string;
|
|
18
|
+
initialValue: string;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
autocomplete: string;
|
|
21
|
+
defaultCountryCode: string;
|
|
22
|
+
countryDialCodes: string[];
|
|
23
|
+
textFieldId: string;
|
|
24
|
+
selectFieldId: string;
|
|
25
|
+
constructor(stateMachine: StateMachineService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
get attributeMap(): AuthInputAttributes;
|
|
28
|
+
get error(): string;
|
|
29
|
+
inferLabel(): string;
|
|
30
|
+
inferPlaceholder(): string;
|
|
31
|
+
inferType(): string;
|
|
32
|
+
isPasswordField(): boolean;
|
|
33
|
+
isPhoneField(): boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class AmplifyPasswordFieldComponent {
|
|
2
|
+
autocomplete: string;
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
id: string;
|
|
5
|
+
initialValue: string;
|
|
6
|
+
label: string;
|
|
7
|
+
name: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
required: boolean;
|
|
10
|
+
type: 'text' | 'password';
|
|
11
|
+
showPassword: boolean;
|
|
12
|
+
showPasswordButtonlabel: string;
|
|
13
|
+
togglePasswordText(): void;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './amplify-
|
|
1
|
+
export * from './amplify-form-field/amplify-form-field.component';
|
|
2
2
|
export * from './amplify-error/amplify-error.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class PhoneNumberFieldComponent {
|
|
2
|
+
autocomplete: string;
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
defaultCountryCode: string;
|
|
5
|
+
selectFieldId: string;
|
|
6
|
+
textFieldId: string;
|
|
7
|
+
initialValue: string;
|
|
8
|
+
label: string;
|
|
9
|
+
name: string;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
type: string;
|
|
13
|
+
countryDialCodes: string[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AfterContentInit, QueryList, EventEmitter } from '@angular/core';
|
|
2
|
+
import { TabItemComponent } from '../tab-item/tab-item.component';
|
|
3
|
+
export declare class TabsComponent implements AfterContentInit {
|
|
4
|
+
tabs: QueryList<TabItemComponent>;
|
|
5
|
+
tabChange: EventEmitter<any>;
|
|
6
|
+
ngAfterContentInit(): void;
|
|
7
|
+
selectTab(tab: TabItemComponent): void;
|
|
8
|
+
handleTabClick(tab: TabItemComponent): void;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthContext, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui';
|
|
1
|
+
import { AuthContext, AuthenticatorMachineOptions, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui';
|
|
2
2
|
import { Event } from 'xstate';
|
|
3
3
|
/**
|
|
4
4
|
* AmplifyContextService contains access to the xstate machine
|
|
@@ -9,7 +9,7 @@ export declare class StateMachineService {
|
|
|
9
9
|
private _authService;
|
|
10
10
|
private _user;
|
|
11
11
|
private _services;
|
|
12
|
-
|
|
12
|
+
startMachine({ initialState, loginMechanisms, }: AuthenticatorMachineOptions): void;
|
|
13
13
|
get services(): {
|
|
14
14
|
readonly change: (data?: Record<string | number | symbol, any>) => void;
|
|
15
15
|
readonly federatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-angular",
|
|
3
|
-
"version": "2.0.1-next.
|
|
3
|
+
"version": "2.0.1-next.6",
|
|
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.2",
|
|
11
10
|
"@aws-amplify/ui-components": "^1.7.0",
|
|
11
|
+
"@aws-amplify/ui": "3.0.1-next.6",
|
|
12
12
|
"@stencil/core": "^2.7.0",
|
|
13
|
-
"
|
|
13
|
+
"nanoid": "^3.1.25",
|
|
14
14
|
"qrcode": "^1.4.4",
|
|
15
|
+
"tslib": "^2.0.0",
|
|
15
16
|
"xstate": "^4.20.1"
|
|
16
17
|
},
|
|
17
18
|
"publishConfig": {
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
[data-amplify-authenticator] {
|
|
2
|
+
font-size: 1rem;
|
|
3
|
+
line-height: 1.5rem;
|
|
4
|
+
--tw-text-opacity: 1;
|
|
5
|
+
color: rgba(55, 65, 81, var(--tw-text-opacity));
|
|
6
|
+
--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
7
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
8
|
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
9
|
+
font-family: 'Work Sans', Arial, Helvetica, sans-serif;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-amplify-wrapper] [data-amplify-heading] {
|
|
13
|
+
margin-bottom: 0px;
|
|
14
|
+
font-size: 1.25rem;
|
|
15
|
+
line-height: 1.75rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-amplify-authenticator] [data-amplify-form] {
|
|
19
|
+
display: grid;
|
|
20
|
+
--tw-bg-opacity: 1;
|
|
21
|
+
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
22
|
+
padding: 2rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-amplify-wrapper] [data-amplify-label] > :not([hidden]) ~ :not([hidden]) {
|
|
26
|
+
--tw-space-y-reverse: 0;
|
|
27
|
+
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
28
|
+
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-amplify-confirmationcode] {
|
|
32
|
+
display: grid;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-amplify-wrapper] [data-amplify-password] [data-amplify-box] {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-amplify-wrapper]
|
|
41
|
+
[data-amplify-password]
|
|
42
|
+
[data-amplify-box]
|
|
43
|
+
> :not([hidden])
|
|
44
|
+
~ :not([hidden]) {
|
|
45
|
+
--tw-space-x-reverse: 0;
|
|
46
|
+
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
47
|
+
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-amplify-wrapper]
|
|
51
|
+
[data-amplify-password]
|
|
52
|
+
[data-amplify-box]
|
|
53
|
+
[data-amplify-text] {
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
line-height: 1.25rem;
|
|
56
|
+
--tw-text-opacity: 1;
|
|
57
|
+
color: rgba(107, 114, 128, var(--tw-text-opacity));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-amplify-wrapper]
|
|
61
|
+
[data-amplify-password]
|
|
62
|
+
[data-amplify-box]
|
|
63
|
+
[data-amplify-button] {
|
|
64
|
+
font-size: 0.875rem;
|
|
65
|
+
line-height: 1.25rem;
|
|
66
|
+
--tw-text-opacity: 1;
|
|
67
|
+
color: rgba(59, 130, 246, var(--tw-text-opacity));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-amplify-wrapper] [data-amplify-footer] [data-amplify-text] {
|
|
71
|
+
font-size: 0.875rem;
|
|
72
|
+
line-height: 1.25rem;
|
|
73
|
+
--tw-text-opacity: 1;
|
|
74
|
+
color: rgba(107, 114, 128, var(--tw-text-opacity));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-amplify-wrapper]
|
|
78
|
+
[data-amplify-footer]
|
|
79
|
+
[data-amplify-button]:first-of-type {
|
|
80
|
+
font-size: 0.875rem;
|
|
81
|
+
line-height: 1.25rem;
|
|
82
|
+
--tw-text-opacity: 1;
|
|
83
|
+
color: rgba(59, 130, 246, var(--tw-text-opacity));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-amplify-wrapper]
|
|
87
|
+
[data-amplify-footer]
|
|
88
|
+
[data-amplify-button]:last-of-type {
|
|
89
|
+
border-radius: 0.25rem;
|
|
90
|
+
--tw-bg-opacity: 1;
|
|
91
|
+
background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
|
|
92
|
+
padding-left: 2rem;
|
|
93
|
+
padding-right: 2rem;
|
|
94
|
+
padding-top: 0.5rem;
|
|
95
|
+
padding-bottom: 0.5rem;
|
|
96
|
+
font-size: 1rem;
|
|
97
|
+
line-height: 1.5rem;
|
|
98
|
+
--tw-text-opacity: 1;
|
|
99
|
+
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
[data-amplify-authenticator] :disabled {
|
|
103
|
+
opacity: 0.5;
|
|
104
|
+
cursor: initial;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-ui-error] {
|
|
108
|
+
color: orangered;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[data-amplify-wrapper] [data-amplify-federated] {
|
|
112
|
+
display: flex;
|
|
113
|
+
width: 100%;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
gap: 1rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[data-amplify-wrapper] [data-amplify-federated] [data-amplify-button] {
|
|
119
|
+
border-radius: 0.5rem;
|
|
120
|
+
background-color: transparent;
|
|
121
|
+
padding: 0.5rem;
|
|
122
|
+
font-size: 0.875rem;
|
|
123
|
+
line-height: 1.25rem;
|
|
124
|
+
--tw-text-opacity: 1;
|
|
125
|
+
color: rgba(59, 130, 246, var(--tw-text-opacity));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-amplify-button] {
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[data-amplify-strike] {
|
|
133
|
+
width: 100%;
|
|
134
|
+
text-align: center;
|
|
135
|
+
border-bottom: 1px solid #c4c4c4;
|
|
136
|
+
line-height: 0.1em;
|
|
137
|
+
margin: 32px 0;
|
|
138
|
+
color: #828282;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-amplify-strike] [data-amplify-spacer] {
|
|
142
|
+
background: white;
|
|
143
|
+
padding: 0 25px;
|
|
144
|
+
font-size: 14px;
|
|
145
|
+
font-weight: 500;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-amplify-wrapper] [data-amplify-verify-label] {
|
|
149
|
+
display: flex;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[data-amplify-wrapper] [data-amplify-verify-input] {
|
|
153
|
+
width: initial;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.federated-sign-in-button {
|
|
157
|
+
border-color: black;
|
|
158
|
+
border-radius: 0;
|
|
159
|
+
color: black;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.federated-sign-in-button-row {
|
|
163
|
+
position: relative;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.federated-sign-in-icon {
|
|
167
|
+
position: absolute;
|
|
168
|
+
left: 0;
|
|
169
|
+
}
|