@aws-amplify/ui-angular 2.1.1 → 2.2.0
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.metadata.json +1 -1
- package/bundles/aws-amplify-ui-angular.umd.js +204 -61
- 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/index.js +5 -1
- package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +4 -2
- package/esm2015/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.js +16 -4
- package/esm2015/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.js +14 -4
- package/esm2015/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.js +23 -7
- package/esm2015/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.js +16 -4
- package/esm2015/lib/components/authenticator/components/force-new-password/force-new-password.component.js +16 -4
- package/esm2015/lib/components/authenticator/components/form-field/form-field.component.js +8 -5
- package/esm2015/lib/components/authenticator/components/reset-password/reset-password.component.js +14 -4
- package/esm2015/lib/components/authenticator/components/setup-totp/setup-totp.component.js +18 -6
- package/esm2015/lib/components/authenticator/components/sign-in/sign-in.component.js +23 -5
- package/esm2015/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.js +21 -3
- package/esm2015/lib/components/authenticator/components/sign-up/sign-up.component.js +3 -3
- package/esm2015/lib/components/authenticator/components/user-name-alias/user-name-alias.component.js +13 -6
- package/esm2015/lib/components/authenticator/components/verify-user/verify-user.component.js +3 -3
- package/esm2015/lib/primitives/password-field/password-field.component.js +2 -2
- package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +7 -3
- package/esm2015/lib/primitives/select/select.component.js +2 -2
- package/esm2015/lib/primitives/text-field/text-field.component.js +2 -2
- package/esm2015/lib/services/authenticator.service.js +3 -2
- package/fesm2015/aws-amplify-ui-angular.js +179 -41
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/index.d.ts +4 -0
- package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +1 -0
- package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +7 -1
- package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +4 -0
- package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +11 -1
- package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +7 -1
- package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +7 -1
- package/lib/components/authenticator/components/form-field/form-field.component.d.ts +3 -1
- package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +4 -0
- package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +4 -0
- package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +10 -1
- package/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.d.ts +7 -1
- package/lib/components/authenticator/components/user-name-alias/user-name-alias.component.d.ts +7 -1
- package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +5 -2
- package/lib/services/authenticator.service.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
/// <reference types="amazon-cognito-identity-js" />
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
2
3
|
import { AuthenticatorService } from '../../../../services/authenticator.service';
|
|
3
|
-
|
|
4
|
+
import { formFieldTypes, formField } from '@aws-amplify/ui';
|
|
5
|
+
export declare class SignInComponent implements OnInit {
|
|
4
6
|
authenticator: AuthenticatorService;
|
|
5
7
|
dataAttr: string;
|
|
6
8
|
forgotPasswordText: string;
|
|
7
9
|
signInButtonText: string;
|
|
10
|
+
userOverrides: formFieldTypes;
|
|
11
|
+
passwordOR: formFieldTypes;
|
|
12
|
+
formOverrides: formField;
|
|
8
13
|
constructor(authenticator: AuthenticatorService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
setFormFields(): void;
|
|
16
|
+
labelHidden(name: string, defaultV?: boolean): boolean;
|
|
17
|
+
required(name: string, defaultV?: boolean): boolean;
|
|
9
18
|
get context(): {
|
|
10
19
|
$implicit: {
|
|
11
20
|
resendCode: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { AuthenticatorService } from '../../../../../services/authenticator.service';
|
|
3
|
-
import { LoginMechanism, SignUpAttribute } from '@aws-amplify/ui';
|
|
3
|
+
import { formField, formFieldTypes, LoginMechanism, SignUpAttribute, CommonFields } from '@aws-amplify/ui';
|
|
4
4
|
export declare class SignUpFormFieldsComponent implements OnInit {
|
|
5
5
|
private authenticator;
|
|
6
6
|
primaryAlias: string;
|
|
7
7
|
secondaryAliases: string[];
|
|
8
8
|
fieldNames: Array<LoginMechanism | SignUpAttribute>;
|
|
9
|
+
fieldNamesCombined: Array<SignUpAttribute | CommonFields>;
|
|
9
10
|
loginMechanism: LoginMechanism;
|
|
11
|
+
order: (string | number)[];
|
|
12
|
+
userOverrides: formFieldTypes;
|
|
13
|
+
formOverrides: formField;
|
|
10
14
|
constructor(authenticator: AuthenticatorService);
|
|
11
15
|
ngOnInit(): void;
|
|
16
|
+
setFormFields(): void;
|
|
17
|
+
grabField(name: string, field: string, defaultV: any): any;
|
|
12
18
|
}
|
package/lib/components/authenticator/components/user-name-alias/user-name-alias.component.d.ts
CHANGED
|
@@ -6,10 +6,16 @@ export declare class UserNameAliasComponent implements OnInit {
|
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
initialValue: string;
|
|
8
8
|
required: boolean;
|
|
9
|
+
labelHidden: boolean;
|
|
9
10
|
label: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
dialCode: string;
|
|
13
|
+
dialCodeList: Array<string>;
|
|
14
|
+
labelValue: string;
|
|
10
15
|
type: string;
|
|
11
16
|
error: string;
|
|
12
|
-
|
|
17
|
+
placeholderValue: string;
|
|
18
|
+
requiredValue: boolean;
|
|
13
19
|
constructor(authenticator: AuthenticatorService);
|
|
14
20
|
ngOnInit(): void;
|
|
15
21
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
export declare class PhoneNumberFieldComponent implements OnInit {
|
|
2
3
|
autocomplete: string;
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
defaultCountryCode: string;
|
|
@@ -11,6 +12,8 @@ export declare class PhoneNumberFieldComponent {
|
|
|
11
12
|
required: boolean;
|
|
12
13
|
type: string;
|
|
13
14
|
labelHidden: boolean;
|
|
15
|
+
dialCodeList: Array<string>;
|
|
14
16
|
display: string;
|
|
15
|
-
|
|
17
|
+
countryDialCodesValues: Array<string>;
|
|
18
|
+
ngOnInit(): void;
|
|
16
19
|
}
|
|
@@ -13,7 +13,7 @@ export declare class AuthenticatorService implements OnDestroy {
|
|
|
13
13
|
private _machineSubscription;
|
|
14
14
|
private _hubSubscription;
|
|
15
15
|
private _facade;
|
|
16
|
-
startMachine({ initialState, loginMechanisms, services, signUpAttributes, socialProviders, }: AuthenticatorMachineOptions): void;
|
|
16
|
+
startMachine({ initialState, loginMechanisms, services, signUpAttributes, socialProviders, formFields, }: AuthenticatorMachineOptions): void;
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
18
|
/**
|
|
19
19
|
* Context facades
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-angular",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"aws-amplify": "3.x.x || 4.x.x"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@aws-amplify/ui-components": "^1.7.0",
|
|
10
|
-
"@aws-amplify/ui": "3.0
|
|
10
|
+
"@aws-amplify/ui": "3.1.0",
|
|
11
11
|
"@stencil/core": "2.8.0",
|
|
12
12
|
"nanoid": "3.1.31",
|
|
13
13
|
"qrcode": "1.5.0",
|