@aws-amplify/ui-angular 1.0.34-unstable.1 → 2.0.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.
Files changed (110) hide show
  1. package/README.md +28 -1
  2. package/aws-amplify-ui-angular.d.ts +30 -0
  3. package/aws-amplify-ui-angular.metadata.json +1 -0
  4. package/bundles/aws-amplify-ui-angular-legacy.umd.js +2229 -0
  5. package/bundles/aws-amplify-ui-angular-legacy.umd.js.map +1 -0
  6. package/bundles/aws-amplify-ui-angular-legacy.umd.min.js +16 -0
  7. package/bundles/aws-amplify-ui-angular-legacy.umd.min.js.map +1 -0
  8. package/bundles/aws-amplify-ui-angular.umd.js +1840 -0
  9. package/bundles/aws-amplify-ui-angular.umd.js.map +1 -0
  10. package/bundles/aws-amplify-ui-angular.umd.min.js +2 -0
  11. package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -0
  12. package/esm2015/aws-amplify-ui-angular.js +31 -0
  13. package/esm2015/index.js +26 -0
  14. package/esm2015/legacy/aws-amplify-ui-angular-legacy.js +6 -0
  15. package/esm2015/legacy/index.js +3 -0
  16. package/esm2015/legacy/legacy-ui-angular.module.js +53 -0
  17. package/esm2015/legacy/proxies.js +1839 -0
  18. package/esm2015/lib/common/helpers.js +3 -0
  19. package/esm2015/lib/common/index.js +3 -0
  20. package/esm2015/lib/common/types/auth-types.js +2 -0
  21. package/esm2015/lib/common/types/component-types.js +2 -0
  22. package/esm2015/lib/common/types/index.js +3 -0
  23. package/esm2015/lib/components/authenticator/authenticator.module.js +79 -0
  24. package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +87 -0
  25. package/esm2015/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.js +40 -0
  26. package/esm2015/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.js +57 -0
  27. package/esm2015/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.js +39 -0
  28. package/esm2015/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.js +39 -0
  29. package/esm2015/lib/components/authenticator/components/federated-sign-in/federated-sign-in.component.js +47 -0
  30. package/esm2015/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.js +27 -0
  31. package/esm2015/lib/components/authenticator/components/force-new-password/force-new-password.component.js +39 -0
  32. package/esm2015/lib/components/authenticator/components/form-field/form-field.component.js +93 -0
  33. package/esm2015/lib/components/authenticator/components/index.js +17 -0
  34. package/esm2015/lib/components/authenticator/components/reset-password/reset-password.component.js +45 -0
  35. package/esm2015/lib/components/authenticator/components/setup-totp/setup-totp.component.js +65 -0
  36. package/esm2015/lib/components/authenticator/components/sign-in/sign-in.component.js +38 -0
  37. package/esm2015/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.js +34 -0
  38. package/esm2015/lib/components/authenticator/components/sign-up/sign-up.component.js +37 -0
  39. package/esm2015/lib/components/authenticator/components/user-name-alias/user-name-alias.component.js +35 -0
  40. package/esm2015/lib/components/authenticator/components/verify-user/verify-user.component.js +54 -0
  41. package/esm2015/lib/primitives/button/button.component.js +38 -0
  42. package/esm2015/lib/primitives/checkbox/checkbox.component.js +31 -0
  43. package/esm2015/lib/primitives/error/error.component.js +16 -0
  44. package/esm2015/lib/primitives/index.js +10 -0
  45. package/esm2015/lib/primitives/password-field/password-field.component.js +43 -0
  46. package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +40 -0
  47. package/esm2015/lib/primitives/select/select.component.js +17 -0
  48. package/esm2015/lib/primitives/tab-item/tab-item.component.js +20 -0
  49. package/esm2015/lib/primitives/tabs/tabs.component.js +45 -0
  50. package/esm2015/lib/primitives/text-field/text-field.component.js +35 -0
  51. package/esm2015/lib/services/authenticator.service.js +133 -0
  52. package/esm2015/lib/services/custom-components.service.js +23 -0
  53. package/esm2015/lib/utilities/amplify-slot/amplify-slot.component.js +32 -0
  54. package/esm2015/lib/utilities/amplify-slot/amplify-slot.directive.js +21 -0
  55. package/fesm2015/aws-amplify-ui-angular-legacy.js +1846 -0
  56. package/fesm2015/aws-amplify-ui-angular-legacy.js.map +1 -0
  57. package/fesm2015/aws-amplify-ui-angular.js +1253 -0
  58. package/fesm2015/aws-amplify-ui-angular.js.map +1 -0
  59. package/index.d.ts +22 -0
  60. package/{dist/core.d.ts → legacy/aws-amplify-ui-angular-legacy.d.ts} +1 -0
  61. package/legacy/aws-amplify-ui-angular-legacy.metadata.json +1 -0
  62. package/legacy/index.d.ts +2 -0
  63. package/legacy/legacy-ui-angular.module.d.ts +2 -0
  64. package/legacy/package.json +11 -0
  65. package/{dist/directives → legacy}/proxies.d.ts +0 -0
  66. package/lib/common/helpers.d.ts +2 -0
  67. package/lib/common/index.d.ts +2 -0
  68. package/lib/common/types/auth-types.d.ts +3 -0
  69. package/lib/common/types/component-types.d.ts +23 -0
  70. package/lib/common/types/index.d.ts +2 -0
  71. package/lib/components/authenticator/authenticator.module.d.ts +2 -0
  72. package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +67 -0
  73. package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +50 -0
  74. package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +52 -0
  75. package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +49 -0
  76. package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +49 -0
  77. package/lib/components/authenticator/components/federated-sign-in/federated-sign-in.component.d.ts +19 -0
  78. package/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.d.ts +9 -0
  79. package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +49 -0
  80. package/lib/components/authenticator/components/form-field/form-field.component.d.ts +36 -0
  81. package/lib/components/authenticator/components/index.d.ts +16 -0
  82. package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +52 -0
  83. package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +53 -0
  84. package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +48 -0
  85. package/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.d.ts +12 -0
  86. package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +47 -0
  87. package/lib/components/authenticator/components/user-name-alias/user-name-alias.component.d.ts +15 -0
  88. package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +54 -0
  89. package/lib/primitives/button/button.component.d.ts +15 -0
  90. package/lib/primitives/checkbox/checkbox.component.d.ts +12 -0
  91. package/lib/primitives/error/error.component.d.ts +4 -0
  92. package/lib/primitives/index.d.ts +9 -0
  93. package/lib/primitives/password-field/password-field.component.d.ts +15 -0
  94. package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +16 -0
  95. package/lib/primitives/select/select.component.d.ts +7 -0
  96. package/lib/primitives/tab-item/tab-item.component.d.ts +7 -0
  97. package/lib/primitives/tabs/tabs.component.d.ts +9 -0
  98. package/lib/primitives/text-field/text-field.component.d.ts +13 -0
  99. package/lib/services/authenticator.service.d.ts +94 -0
  100. package/lib/services/custom-components.service.d.ts +9 -0
  101. package/lib/utilities/amplify-slot/amplify-slot.component.d.ts +12 -0
  102. package/lib/utilities/amplify-slot/amplify-slot.directive.d.ts +7 -0
  103. package/package.json +29 -49
  104. package/theme.css +1 -0
  105. package/CHANGELOG.md +0 -320
  106. package/dist/amplify-module.d.ts +0 -2
  107. package/dist/core.metadata.json +0 -1
  108. package/dist/fesm2015.js +0 -1532
  109. package/dist/fesm5.js +0 -1319
  110. package/dist/index.d.ts +0 -2
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FederatedIdentityProviders } from '@aws-amplify/ui';
3
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
4
+ export declare class FederatedSignInComponent implements OnInit {
5
+ private authenticator;
6
+ FederatedProviders: typeof FederatedIdentityProviders;
7
+ includeAmazon: boolean;
8
+ includeApple: boolean;
9
+ includeFacebook: boolean;
10
+ includeGoogle: boolean;
11
+ shouldShowFederatedSignIn: boolean;
12
+ signInAmazonText: string;
13
+ signInAppleText: string;
14
+ signInFacebookText: string;
15
+ signInGoogleText: string;
16
+ constructor(authenticator: AuthenticatorService);
17
+ ngOnInit(): void;
18
+ private setFederatedTexts;
19
+ }
@@ -0,0 +1,9 @@
1
+ import { FederatedIdentityProviders } from '@aws-amplify/ui';
2
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
3
+ export declare class FederatedSignInButtonComponent {
4
+ private authenticator;
5
+ provider: FederatedIdentityProviders;
6
+ text: string;
7
+ constructor(authenticator: AuthenticatorService);
8
+ onClick: () => void;
9
+ }
@@ -0,0 +1,49 @@
1
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
2
+ export declare class ForceNewPasswordComponent {
3
+ authenticator: AuthenticatorService;
4
+ dataAttr: string;
5
+ headerText: string;
6
+ changePasswordText: string;
7
+ backToSignInText: string;
8
+ constructor(authenticator: AuthenticatorService);
9
+ get context(): {
10
+ $implicit: {
11
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
12
+ signOut: (data?: Record<string | number | symbol, any>) => void;
13
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
14
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
15
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
16
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
17
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
18
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
19
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
20
+ error: string;
21
+ hasValidationErrors: boolean;
22
+ isPending: boolean;
23
+ route: string;
24
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
25
+ validationErrors: {
26
+ [x: string]: string;
27
+ };
28
+ };
29
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
30
+ signOut: (data?: Record<string | number | symbol, any>) => void;
31
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
32
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
33
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
34
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
35
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
36
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
37
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
38
+ error: string;
39
+ hasValidationErrors: boolean;
40
+ isPending: boolean;
41
+ route: string;
42
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
43
+ validationErrors: {
44
+ [x: string]: string;
45
+ };
46
+ };
47
+ onInput(event: Event): void;
48
+ onSubmit(event: Event): void;
49
+ }
@@ -0,0 +1,36 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AuthInputAttributes } from '@aws-amplify/ui';
3
+ import { AuthenticatorService } from '../../../../services/authenticator.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 FormFieldComponent implements OnInit {
12
+ private authenticator;
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
+ labelHidden: boolean;
22
+ defaultCountryCode: string;
23
+ countryDialCodes: string[];
24
+ textFieldId: string;
25
+ selectFieldId: string;
26
+ constructor(authenticator: AuthenticatorService);
27
+ ngOnInit(): void;
28
+ get attributeMap(): AuthInputAttributes;
29
+ get error(): string;
30
+ inferLabel(): string;
31
+ inferPlaceholder(): string;
32
+ inferType(): string;
33
+ inferAutocomplete(): string;
34
+ isPasswordField(): boolean;
35
+ isPhoneField(): boolean;
36
+ }
@@ -0,0 +1,16 @@
1
+ export { AuthenticatorComponent } from './authenticator/authenticator.component';
2
+ export { ConfirmResetPasswordComponent } from './confirm-reset-password/amplify-confirm-reset-password.component';
3
+ export { ConfirmSignInComponent } from './confirm-sign-in/confirm-sign-in.component';
4
+ export { ConfirmSignUpComponent } from './confirm-sign-up/confirm-sign-up.component';
5
+ export { ConfirmVerifyUserComponent } from './confirm-verify-user/amplify-confirm-verify-user.component';
6
+ export { FederatedSignInButtonComponent } from './federated-sign-in-button/federated-sign-in-button.component';
7
+ export { FederatedSignInComponent } from './federated-sign-in/federated-sign-in.component';
8
+ export { ForceNewPasswordComponent } from './force-new-password/force-new-password.component';
9
+ export { FormFieldComponent } from './form-field/form-field.component';
10
+ export { ResetPasswordComponent } from './reset-password/reset-password.component';
11
+ export { SetupTotpComponent } from './setup-totp/setup-totp.component';
12
+ export { SignInComponent } from './sign-in/sign-in.component';
13
+ export { SignUpComponent } from './sign-up/sign-up.component';
14
+ export { SignUpFormFieldsComponent } from './sign-up/sign-up-form-fields/sign-up-form-fields.component';
15
+ export { UserNameAliasComponent } from './user-name-alias/user-name-alias.component';
16
+ export { VerifyUserComponent } from './verify-user/verify-user.component';
@@ -0,0 +1,52 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
3
+ export declare class ResetPasswordComponent implements OnInit {
4
+ authenticator: AuthenticatorService;
5
+ dataAttr: string;
6
+ headerText: string;
7
+ sendCodeText: string;
8
+ backToSignInText: string;
9
+ labelText: string;
10
+ constructor(authenticator: AuthenticatorService);
11
+ ngOnInit(): void;
12
+ get context(): {
13
+ $implicit: {
14
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
15
+ signOut: (data?: Record<string | number | symbol, any>) => void;
16
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
17
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
18
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
19
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
20
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
21
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
22
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
23
+ error: string;
24
+ hasValidationErrors: boolean;
25
+ isPending: boolean;
26
+ route: string;
27
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
28
+ validationErrors: {
29
+ [x: string]: string;
30
+ };
31
+ };
32
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
33
+ signOut: (data?: Record<string | number | symbol, any>) => void;
34
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
35
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
36
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
37
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
38
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
39
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
40
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
41
+ error: string;
42
+ hasValidationErrors: boolean;
43
+ isPending: boolean;
44
+ route: string;
45
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
46
+ validationErrors: {
47
+ [x: string]: string;
48
+ };
49
+ };
50
+ onInput(event: Event): void;
51
+ onSubmit(event: Event): void;
52
+ }
@@ -0,0 +1,53 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
3
+ export declare class SetupTotpComponent implements OnInit {
4
+ authenticator: AuthenticatorService;
5
+ dataAttr: string;
6
+ headerText: string;
7
+ qrCodeSource: string;
8
+ backToSignInText: string;
9
+ confirmText: string;
10
+ constructor(authenticator: AuthenticatorService);
11
+ ngOnInit(): void;
12
+ get context(): {
13
+ $implicit: {
14
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
15
+ signOut: (data?: Record<string | number | symbol, any>) => void;
16
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
17
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
18
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
19
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
20
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
21
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
22
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
23
+ error: string;
24
+ hasValidationErrors: boolean;
25
+ isPending: boolean;
26
+ route: string;
27
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
28
+ validationErrors: {
29
+ [x: string]: string;
30
+ };
31
+ };
32
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
33
+ signOut: (data?: Record<string | number | symbol, any>) => void;
34
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
35
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
36
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
37
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
38
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
39
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
40
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
41
+ error: string;
42
+ hasValidationErrors: boolean;
43
+ isPending: boolean;
44
+ route: string;
45
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
46
+ validationErrors: {
47
+ [x: string]: string;
48
+ };
49
+ };
50
+ generateQRCode(): Promise<void>;
51
+ onInput(event: Event): void;
52
+ onSubmit(event: Event): void;
53
+ }
@@ -0,0 +1,48 @@
1
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
2
+ export declare class SignInComponent {
3
+ authenticator: AuthenticatorService;
4
+ dataAttr: string;
5
+ forgotPasswordText: string;
6
+ signInButtonText: string;
7
+ constructor(authenticator: AuthenticatorService);
8
+ get context(): {
9
+ $implicit: {
10
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
11
+ signOut: (data?: Record<string | number | symbol, any>) => void;
12
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
13
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
14
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
15
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
16
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
17
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
18
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
19
+ error: string;
20
+ hasValidationErrors: boolean;
21
+ isPending: boolean;
22
+ route: string;
23
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
24
+ validationErrors: {
25
+ [x: string]: string;
26
+ };
27
+ };
28
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
29
+ signOut: (data?: Record<string | number | symbol, any>) => void;
30
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
31
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
32
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
33
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
34
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
35
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
36
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
37
+ error: string;
38
+ hasValidationErrors: boolean;
39
+ isPending: boolean;
40
+ route: string;
41
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
42
+ validationErrors: {
43
+ [x: string]: string;
44
+ };
45
+ };
46
+ onInput(event: Event): void;
47
+ onSubmit(event: Event): void;
48
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AuthenticatorService } from '../../../../../services/authenticator.service';
3
+ import { LoginMechanism, SignUpAttribute } from '@aws-amplify/ui';
4
+ export declare class SignUpFormFieldsComponent implements OnInit {
5
+ private authenticator;
6
+ primaryAlias: string;
7
+ secondaryAliases: string[];
8
+ fieldNames: Array<LoginMechanism | SignUpAttribute>;
9
+ loginMechanism: LoginMechanism;
10
+ constructor(authenticator: AuthenticatorService);
11
+ ngOnInit(): void;
12
+ }
@@ -0,0 +1,47 @@
1
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
2
+ export declare class SignUpComponent {
3
+ authenticator: AuthenticatorService;
4
+ dataAttr: string;
5
+ createAccountText: string;
6
+ constructor(authenticator: AuthenticatorService);
7
+ get context(): {
8
+ $implicit: {
9
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
10
+ signOut: (data?: Record<string | number | symbol, any>) => void;
11
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
12
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
13
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
14
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
15
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
16
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
17
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
18
+ error: string;
19
+ hasValidationErrors: boolean;
20
+ isPending: boolean;
21
+ route: string;
22
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
23
+ validationErrors: {
24
+ [x: string]: string;
25
+ };
26
+ };
27
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
28
+ signOut: (data?: Record<string | number | symbol, any>) => void;
29
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
30
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
31
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
32
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
33
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
34
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
35
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
36
+ error: string;
37
+ hasValidationErrors: boolean;
38
+ isPending: boolean;
39
+ route: string;
40
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
41
+ validationErrors: {
42
+ [x: string]: string;
43
+ };
44
+ };
45
+ onInput(event: Event): void;
46
+ onSubmit(event: Event): void;
47
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
3
+ export declare class UserNameAliasComponent implements OnInit {
4
+ private authenticator;
5
+ name: string;
6
+ disabled: boolean;
7
+ initialValue: string;
8
+ required: boolean;
9
+ label: string;
10
+ type: string;
11
+ error: string;
12
+ placeholder: string;
13
+ constructor(authenticator: AuthenticatorService);
14
+ ngOnInit(): void;
15
+ }
@@ -0,0 +1,54 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
3
+ export declare class VerifyUserComponent implements OnInit {
4
+ authenticator: AuthenticatorService;
5
+ dataAttr: string;
6
+ headerText: string;
7
+ unverifiedAttributes: {};
8
+ labelId: string;
9
+ skipText: string;
10
+ verifyText: string;
11
+ constructor(authenticator: AuthenticatorService);
12
+ ngOnInit(): void;
13
+ get context(): {
14
+ $implicit: {
15
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
16
+ signOut: (data?: Record<string | number | symbol, any>) => void;
17
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
18
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
19
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
20
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
21
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
22
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
23
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
24
+ error: string;
25
+ hasValidationErrors: boolean;
26
+ isPending: boolean;
27
+ route: string;
28
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
29
+ validationErrors: {
30
+ [x: string]: string;
31
+ };
32
+ };
33
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
34
+ signOut: (data?: Record<string | number | symbol, any>) => void;
35
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
36
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
37
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
38
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
39
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
40
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
41
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
42
+ error: string;
43
+ hasValidationErrors: boolean;
44
+ isPending: boolean;
45
+ route: string;
46
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
47
+ validationErrors: {
48
+ [x: string]: string;
49
+ };
50
+ };
51
+ getLabelForAttr(authAttr: string): string;
52
+ onInput(event: Event): void;
53
+ onSubmit(event: Event): void;
54
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class ButtonComponent 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,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class CheckboxComponent implements OnInit {
3
+ defaultChecked: boolean;
4
+ errorMessage: string;
5
+ hasError: boolean;
6
+ label: string;
7
+ name: string;
8
+ value: string;
9
+ isChecked: boolean;
10
+ ngOnInit(): void;
11
+ handleClick(): void;
12
+ }
@@ -0,0 +1,4 @@
1
+ export declare class ErrorComponent {
2
+ isVisible: boolean;
3
+ close(): void;
4
+ }
@@ -0,0 +1,9 @@
1
+ export { ErrorComponent } from './error/error.component';
2
+ export { ButtonComponent } from './button/button.component';
3
+ export { PasswordFieldComponent } from './password-field/password-field.component';
4
+ export { SelectComponent } from './select/select.component';
5
+ export { TextFieldComponent } from './text-field/text-field.component';
6
+ export { PhoneNumberFieldComponent } from './phone-number-field/phone-number-field.component';
7
+ export { TabItemComponent } from './tab-item/tab-item.component';
8
+ export { TabsComponent } from './tabs/tabs.component';
9
+ export { CheckboxComponent } from './checkbox/checkbox.component';
@@ -0,0 +1,15 @@
1
+ export declare class PasswordFieldComponent {
2
+ autocomplete: string;
3
+ disabled: boolean;
4
+ fieldId: string;
5
+ initialValue: string;
6
+ label: string;
7
+ name: string;
8
+ placeholder: string;
9
+ required: boolean;
10
+ labelHidden: boolean;
11
+ type: 'text' | 'password';
12
+ showPassword: boolean;
13
+ showPasswordButtonlabel: string;
14
+ togglePasswordText(): void;
15
+ }
@@ -0,0 +1,16 @@
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
+ labelHidden: boolean;
14
+ display: string;
15
+ countryDialCodes: string[];
16
+ }
@@ -0,0 +1,7 @@
1
+ export declare class SelectComponent {
2
+ items: string[];
3
+ name: string;
4
+ label: string;
5
+ id: string;
6
+ defaultValue: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare class TabItemComponent {
2
+ title: string;
3
+ active: boolean;
4
+ id: string;
5
+ labelledById: string;
6
+ tabIndex: number;
7
+ }
@@ -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
+ }
@@ -0,0 +1,13 @@
1
+ export declare class TextFieldComponent {
2
+ autocomplete: string;
3
+ disabled: boolean;
4
+ fieldId: string;
5
+ initialValue: string;
6
+ label: string;
7
+ name: string;
8
+ placeholder: string;
9
+ required: boolean;
10
+ type: string;
11
+ labelHidden: boolean;
12
+ display: string;
13
+ }
@@ -0,0 +1,94 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { AuthContext, AuthenticatorMachineOptions, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui';
3
+ import { Event, Subscription } from 'xstate';
4
+ import { AuthSubscriptionCallback } from '../common';
5
+ /**
6
+ * AuthenticatorService provides access to the authenticator state and context.
7
+ */
8
+ export declare class AuthenticatorService implements OnDestroy {
9
+ private _authState;
10
+ private _authService;
11
+ private _sendEventAliases;
12
+ private _subscription;
13
+ private _facade;
14
+ startMachine({ initialState, loginMechanisms, services, signUpAttributes, socialProviders, }: AuthenticatorMachineOptions): void;
15
+ ngOnDestroy(): void;
16
+ /**
17
+ * Context facades
18
+ */
19
+ get error(): string;
20
+ get hasValidationErrors(): boolean;
21
+ get isPending(): boolean;
22
+ get route(): string;
23
+ get user(): import("@aws-amplify/ui").CognitoUserAmplify;
24
+ get validationErrors(): {
25
+ [x: string]: string;
26
+ };
27
+ /**
28
+ * Service facades
29
+ */
30
+ get updateForm(): (data?: Record<string | number | symbol, any>) => void;
31
+ get resendCode(): (data?: Record<string | number | symbol, any>) => void;
32
+ get signOut(): (data?: Record<string | number | symbol, any>) => void;
33
+ get submitForm(): (data?: Record<string | number | symbol, any>) => void;
34
+ /**
35
+ * Transition facades
36
+ */
37
+ get toFederatedSignIn(): (data?: Record<string | number | symbol, any>) => void;
38
+ get toResetPassword(): (data?: Record<string | number | symbol, any>) => void;
39
+ get toSignIn(): (data?: Record<string | number | symbol, any>) => void;
40
+ get toSignUp(): (data?: Record<string | number | symbol, any>) => void;
41
+ get skipVerification(): (data?: Record<string | number | symbol, any>) => void;
42
+ /**
43
+ * Internal utility functions
44
+ */
45
+ /** @deprecated For internal use only */
46
+ get authState(): AuthMachineState;
47
+ /** @deprecated For internal use only */
48
+ get authService(): AuthInterpreter;
49
+ /** @deprecated For internal use only */
50
+ get context(): AuthContext;
51
+ /** @deprecated For internal use only */
52
+ get slotContext(): {
53
+ $implicit: {
54
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
55
+ signOut: (data?: Record<string | number | symbol, any>) => void;
56
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
57
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
58
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
59
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
60
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
61
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
62
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
63
+ error: string;
64
+ hasValidationErrors: boolean;
65
+ isPending: boolean;
66
+ route: string;
67
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
68
+ validationErrors: {
69
+ [x: string]: string;
70
+ };
71
+ };
72
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
73
+ signOut: (data?: Record<string | number | symbol, any>) => void;
74
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
75
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
76
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
77
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
78
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
79
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
80
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
81
+ error: string;
82
+ hasValidationErrors: boolean;
83
+ isPending: boolean;
84
+ route: string;
85
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
86
+ validationErrors: {
87
+ [x: string]: string;
88
+ };
89
+ };
90
+ /** @deprecated For internal use only */
91
+ subscribe(callback: AuthSubscriptionCallback): Subscription;
92
+ /** @deprecated For internal use only */
93
+ send(event: Event<AuthEvent>): void;
94
+ }
@@ -0,0 +1,9 @@
1
+ import { CustomComponents } from '../common';
2
+ /**
3
+ * Stores and provides custom components that users provide with `amplify-slot`.
4
+ */
5
+ export declare class CustomComponentsService {
6
+ private _customComponents;
7
+ get customComponents(): CustomComponents;
8
+ set customComponents(customComponents: CustomComponents);
9
+ }