@aws-amplify/ui-angular 2.0.1-next.6 → 2.0.4

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 (139) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +28 -0
  3. package/aws-amplify-ui-angular.d.ts +26 -24
  4. package/aws-amplify-ui-angular.metadata.json +1 -1
  5. package/bundles/aws-amplify-ui-angular-legacy.umd.js +2229 -0
  6. package/bundles/aws-amplify-ui-angular-legacy.umd.js.map +1 -0
  7. package/bundles/aws-amplify-ui-angular-legacy.umd.min.js +16 -0
  8. package/bundles/aws-amplify-ui-angular-legacy.umd.min.js.map +1 -0
  9. package/bundles/aws-amplify-ui-angular.umd.js +931 -2858
  10. package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
  11. package/bundles/aws-amplify-ui-angular.umd.min.js +1 -1
  12. package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -1
  13. package/esm2015/aws-amplify-ui-angular.js +27 -25
  14. package/esm2015/index.js +22 -8
  15. package/esm2015/legacy/aws-amplify-ui-angular-legacy.js +6 -0
  16. package/esm2015/legacy/index.js +3 -0
  17. package/esm2015/legacy/legacy-ui-angular.module.js +53 -0
  18. package/esm2015/legacy/proxies.js +1839 -0
  19. package/esm2015/lib/common/types/auth-types.js +1 -1
  20. package/esm2015/lib/components/authenticator/authenticator.module.js +78 -0
  21. package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +91 -0
  22. package/esm2015/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.js +40 -0
  23. package/esm2015/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.js +57 -0
  24. package/esm2015/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.js +55 -0
  25. package/esm2015/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.js +39 -0
  26. package/esm2015/lib/components/authenticator/components/federated-sign-in/federated-sign-in.component.js +47 -0
  27. package/esm2015/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.js +27 -0
  28. package/esm2015/lib/components/authenticator/components/force-new-password/force-new-password.component.js +39 -0
  29. package/esm2015/lib/components/authenticator/components/form-field/form-field.component.js +97 -0
  30. package/esm2015/lib/components/authenticator/components/index.js +17 -0
  31. package/esm2015/lib/components/authenticator/components/reset-password/reset-password.component.js +45 -0
  32. package/esm2015/lib/components/authenticator/components/setup-totp/setup-totp.component.js +65 -0
  33. package/esm2015/lib/components/authenticator/components/sign-in/sign-in.component.js +38 -0
  34. package/esm2015/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.js +34 -0
  35. package/esm2015/lib/components/authenticator/components/sign-up/sign-up.component.js +37 -0
  36. package/esm2015/lib/components/authenticator/components/user-name-alias/user-name-alias.component.js +35 -0
  37. package/esm2015/lib/components/authenticator/components/verify-user/verify-user.component.js +54 -0
  38. package/esm2015/lib/primitives/button/button.component.js +38 -0
  39. package/esm2015/lib/primitives/checkbox/checkbox.component.js +31 -0
  40. package/esm2015/lib/primitives/error/error.component.js +16 -0
  41. package/esm2015/lib/primitives/index.js +10 -3
  42. package/esm2015/lib/primitives/password-field/password-field.component.js +45 -0
  43. package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +11 -4
  44. package/esm2015/lib/primitives/{amplify-select/amplify-select.component.js → select/select.component.js} +4 -4
  45. package/esm2015/lib/primitives/tab-item/tab-item.component.js +5 -3
  46. package/esm2015/lib/primitives/tabs/tabs.component.js +2 -2
  47. package/esm2015/lib/primitives/text-field/text-field.component.js +35 -0
  48. package/esm2015/lib/services/authenticator.service.js +141 -0
  49. package/esm2015/lib/services/custom-components.service.js +23 -0
  50. package/esm2015/lib/utilities/amplify-slot/amplify-slot.component.js +32 -0
  51. package/esm2015/lib/utilities/amplify-slot/amplify-slot.directive.js +21 -0
  52. package/fesm2015/aws-amplify-ui-angular-legacy.js +1846 -0
  53. package/fesm2015/aws-amplify-ui-angular-legacy.js.map +1 -0
  54. package/fesm2015/aws-amplify-ui-angular.js +695 -2617
  55. package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
  56. package/index.d.ts +21 -7
  57. package/legacy/aws-amplify-ui-angular-legacy.d.ts +5 -0
  58. package/legacy/aws-amplify-ui-angular-legacy.metadata.json +1 -0
  59. package/legacy/index.d.ts +2 -0
  60. package/legacy/legacy-ui-angular.module.d.ts +2 -0
  61. package/legacy/package.json +11 -0
  62. package/{lib → legacy}/proxies.d.ts +0 -0
  63. package/lib/common/types/auth-types.d.ts +2 -5
  64. package/lib/components/authenticator/authenticator.module.d.ts +2 -0
  65. package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +73 -0
  66. package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +55 -0
  67. package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +57 -0
  68. package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +56 -0
  69. package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +54 -0
  70. package/lib/components/{amplify-federated-sign-in/amplify-federated-sign-in.component.d.ts → authenticator/components/federated-sign-in/federated-sign-in.component.d.ts} +9 -6
  71. package/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.d.ts +9 -0
  72. package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +54 -0
  73. package/lib/{primitives/amplify-form-field/amplify-form-field.component.d.ts → components/authenticator/components/form-field/form-field.component.d.ts} +7 -4
  74. package/lib/components/authenticator/components/index.d.ts +16 -0
  75. package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +57 -0
  76. package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +58 -0
  77. package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +53 -0
  78. package/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.d.ts +12 -0
  79. package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +52 -0
  80. package/lib/{primitives/amplify-user-name-alias/amplify-user-name-alias.component.d.ts → components/authenticator/components/user-name-alias/user-name-alias.component.d.ts} +4 -4
  81. package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +59 -0
  82. package/lib/primitives/{amplify-button/amplify-button.component.d.ts → button/button.component.d.ts} +1 -1
  83. package/lib/primitives/checkbox/checkbox.component.d.ts +12 -0
  84. package/lib/primitives/error/error.component.d.ts +4 -0
  85. package/lib/primitives/index.d.ts +9 -2
  86. package/lib/primitives/{amplify-password-field/amplify-password-field.component.d.ts → password-field/password-field.component.d.ts} +5 -2
  87. package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +2 -0
  88. package/lib/primitives/{amplify-select/amplify-select.component.d.ts → select/select.component.d.ts} +1 -1
  89. package/lib/primitives/tab-item/tab-item.component.d.ts +1 -0
  90. package/lib/primitives/{amplify-text-field/amplify-text-field.component.d.ts → text-field/text-field.component.d.ts} +4 -2
  91. package/lib/services/authenticator.service.d.ts +101 -0
  92. package/lib/services/custom-components.service.d.ts +9 -0
  93. package/lib/utilities/amplify-slot/amplify-slot.component.d.ts +12 -0
  94. package/lib/{directives → utilities/amplify-slot}/amplify-slot.directive.d.ts +0 -0
  95. package/package.json +3 -4
  96. package/theme.css +0 -1
  97. package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +0 -85
  98. package/esm2015/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.js +0 -91
  99. package/esm2015/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.js +0 -83
  100. package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +0 -37
  101. package/esm2015/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.js +0 -27
  102. package/esm2015/lib/components/amplify-force-new-password/amplify-force-new-password.component.js +0 -83
  103. package/esm2015/lib/components/amplify-reset-password/amplify-reset-password.component.js +0 -68
  104. package/esm2015/lib/components/amplify-setup-totp/amplify-setup-totp.component.js +0 -100
  105. package/esm2015/lib/components/amplify-sign-in/amplify-sign-in.component.js +0 -78
  106. package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +0 -97
  107. package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +0 -78
  108. package/esm2015/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.js +0 -76
  109. package/esm2015/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.js +0 -66
  110. package/esm2015/lib/components/index.js +0 -14
  111. package/esm2015/lib/directives/amplify-slot.directive.js +0 -21
  112. package/esm2015/lib/primitives/amplify-button/amplify-button.component.js +0 -38
  113. package/esm2015/lib/primitives/amplify-error/amplify-error.component.js +0 -10
  114. package/esm2015/lib/primitives/amplify-form-field/amplify-form-field.component.js +0 -91
  115. package/esm2015/lib/primitives/amplify-password-field/amplify-password-field.component.js +0 -39
  116. package/esm2015/lib/primitives/amplify-text-field/amplify-text-field.component.js +0 -29
  117. package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +0 -35
  118. package/esm2015/lib/proxies.js +0 -1839
  119. package/esm2015/lib/services/authenticator-context.service.js +0 -28
  120. package/esm2015/lib/services/state-machine.service.js +0 -51
  121. package/esm2015/lib/ui-angular.module.js +0 -103
  122. package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +0 -35
  123. package/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.d.ts +0 -31
  124. package/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.d.ts +0 -34
  125. package/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.d.ts +0 -9
  126. package/lib/components/amplify-force-new-password/amplify-force-new-password.component.d.ts +0 -31
  127. package/lib/components/amplify-reset-password/amplify-reset-password.component.d.ts +0 -30
  128. package/lib/components/amplify-setup-totp/amplify-setup-totp.component.d.ts +0 -31
  129. package/lib/components/amplify-sign-in/amplify-sign-in.component.d.ts +0 -32
  130. package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +0 -32
  131. package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +0 -32
  132. package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +0 -34
  133. package/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +0 -28
  134. package/lib/components/index.d.ts +0 -13
  135. package/lib/primitives/amplify-error/amplify-error.component.d.ts +0 -2
  136. package/lib/services/authenticator-context.service.d.ts +0 -10
  137. package/lib/services/state-machine.service.d.ts +0 -29
  138. package/lib/ui-angular.module.d.ts +0 -2
  139. package/styles/component.css +0 -169
@@ -0,0 +1,57 @@
1
+ /// <reference types="amazon-cognito-identity-js" />
2
+ import { OnInit } from '@angular/core';
3
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
4
+ export declare class ResetPasswordComponent implements OnInit {
5
+ authenticator: AuthenticatorService;
6
+ dataAttr: string;
7
+ headerText: string;
8
+ sendCodeText: string;
9
+ backToSignInText: string;
10
+ labelText: 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
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
20
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
21
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
22
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
23
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
24
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
25
+ error: string;
26
+ hasValidationErrors: boolean;
27
+ isPending: boolean;
28
+ route: string;
29
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
30
+ validationErrors: {
31
+ [x: string]: string;
32
+ };
33
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
34
+ };
35
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
36
+ signOut: (data?: Record<string | number | symbol, any>) => void;
37
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
38
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
39
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
40
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
41
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
42
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
43
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
44
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
45
+ error: string;
46
+ hasValidationErrors: boolean;
47
+ isPending: boolean;
48
+ route: string;
49
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
50
+ validationErrors: {
51
+ [x: string]: string;
52
+ };
53
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
54
+ };
55
+ onInput(event: Event): void;
56
+ onSubmit(event: Event): void;
57
+ }
@@ -0,0 +1,58 @@
1
+ /// <reference types="amazon-cognito-identity-js" />
2
+ import { OnInit } from '@angular/core';
3
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
4
+ export declare class SetupTotpComponent implements OnInit {
5
+ authenticator: AuthenticatorService;
6
+ dataAttr: string;
7
+ headerText: string;
8
+ qrCodeSource: string;
9
+ backToSignInText: string;
10
+ confirmText: 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
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
20
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
21
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
22
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
23
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
24
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
25
+ error: string;
26
+ hasValidationErrors: boolean;
27
+ isPending: boolean;
28
+ route: string;
29
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
30
+ validationErrors: {
31
+ [x: string]: string;
32
+ };
33
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
34
+ };
35
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
36
+ signOut: (data?: Record<string | number | symbol, any>) => void;
37
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
38
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
39
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
40
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
41
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
42
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
43
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
44
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
45
+ error: string;
46
+ hasValidationErrors: boolean;
47
+ isPending: boolean;
48
+ route: string;
49
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
50
+ validationErrors: {
51
+ [x: string]: string;
52
+ };
53
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
54
+ };
55
+ generateQRCode(): Promise<void>;
56
+ onInput(event: Event): void;
57
+ onSubmit(event: Event): void;
58
+ }
@@ -0,0 +1,53 @@
1
+ /// <reference types="amazon-cognito-identity-js" />
2
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
3
+ export declare class SignInComponent {
4
+ authenticator: AuthenticatorService;
5
+ dataAttr: string;
6
+ forgotPasswordText: string;
7
+ signInButtonText: 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
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
16
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
17
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
18
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
19
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
20
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
21
+ error: string;
22
+ hasValidationErrors: boolean;
23
+ isPending: boolean;
24
+ route: string;
25
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
26
+ validationErrors: {
27
+ [x: string]: string;
28
+ };
29
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
30
+ };
31
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
32
+ signOut: (data?: Record<string | number | symbol, any>) => void;
33
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
34
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
35
+ updateBlur: (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
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
50
+ };
51
+ onInput(event: Event): void;
52
+ onSubmit(event: Event): void;
53
+ }
@@ -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,52 @@
1
+ /// <reference types="amazon-cognito-identity-js" />
2
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
3
+ export declare class SignUpComponent {
4
+ authenticator: AuthenticatorService;
5
+ dataAttr: string;
6
+ createAccountText: 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
+ updateBlur: (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
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
29
+ };
30
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
31
+ signOut: (data?: Record<string | number | symbol, any>) => void;
32
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
33
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
34
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
35
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
36
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
37
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
38
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
39
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
40
+ error: string;
41
+ hasValidationErrors: boolean;
42
+ isPending: boolean;
43
+ route: string;
44
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
45
+ validationErrors: {
46
+ [x: string]: string;
47
+ };
48
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
49
+ };
50
+ onInput(event: Event): void;
51
+ onSubmit(event: Event): void;
52
+ }
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { StateMachineService } from '../../services/state-machine.service';
3
- export declare class AmplifyUserNameAliasComponent implements OnInit {
4
- private stateMachine;
2
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
3
+ export declare class UserNameAliasComponent implements OnInit {
4
+ private authenticator;
5
5
  name: string;
6
6
  disabled: boolean;
7
7
  initialValue: string;
@@ -10,6 +10,6 @@ export declare class AmplifyUserNameAliasComponent implements OnInit {
10
10
  type: string;
11
11
  error: string;
12
12
  placeholder: string;
13
- constructor(stateMachine: StateMachineService);
13
+ constructor(authenticator: AuthenticatorService);
14
14
  ngOnInit(): void;
15
15
  }
@@ -0,0 +1,59 @@
1
+ /// <reference types="amazon-cognito-identity-js" />
2
+ import { OnInit } from '@angular/core';
3
+ import { AuthenticatorService } from '../../../../services/authenticator.service';
4
+ export declare class VerifyUserComponent implements OnInit {
5
+ authenticator: AuthenticatorService;
6
+ dataAttr: string;
7
+ headerText: string;
8
+ unverifiedAttributes: {};
9
+ labelId: string;
10
+ skipText: string;
11
+ verifyText: string;
12
+ constructor(authenticator: AuthenticatorService);
13
+ ngOnInit(): void;
14
+ get context(): {
15
+ $implicit: {
16
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
17
+ signOut: (data?: Record<string | number | symbol, any>) => void;
18
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
19
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
20
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
21
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
22
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
23
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
24
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
25
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
26
+ error: string;
27
+ hasValidationErrors: boolean;
28
+ isPending: boolean;
29
+ route: string;
30
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
31
+ validationErrors: {
32
+ [x: string]: string;
33
+ };
34
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
35
+ };
36
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
37
+ signOut: (data?: Record<string | number | symbol, any>) => void;
38
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
39
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
40
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
41
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
42
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
43
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
44
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
45
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
46
+ error: string;
47
+ hasValidationErrors: boolean;
48
+ isPending: boolean;
49
+ route: string;
50
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
51
+ validationErrors: {
52
+ [x: string]: string;
53
+ };
54
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
55
+ };
56
+ getLabelForAttr(authAttr: string): string;
57
+ onInput(event: Event): void;
58
+ onSubmit(event: Event): void;
59
+ }
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- export declare class AmplifyButtonComponent implements OnInit {
2
+ export declare class ButtonComponent implements OnInit {
3
3
  type: 'submit' | 'button';
4
4
  fullWidth: boolean | string;
5
5
  size: 'small' | 'medium' | 'large';
@@ -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
+ }
@@ -1,2 +1,9 @@
1
- export * from './amplify-form-field/amplify-form-field.component';
2
- export * from './amplify-error/amplify-error.component';
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';
@@ -1,12 +1,15 @@
1
- export declare class AmplifyPasswordFieldComponent {
1
+ import { EventEmitter } from '@angular/core';
2
+ export declare class PasswordFieldComponent {
2
3
  autocomplete: string;
3
4
  disabled: boolean;
4
- id: string;
5
+ fieldId: string;
5
6
  initialValue: string;
6
7
  label: string;
7
8
  name: string;
8
9
  placeholder: string;
9
10
  required: boolean;
11
+ labelHidden: boolean;
12
+ setBlur: EventEmitter<Event>;
10
13
  type: 'text' | 'password';
11
14
  showPassword: boolean;
12
15
  showPasswordButtonlabel: string;
@@ -10,5 +10,7 @@ export declare class PhoneNumberFieldComponent {
10
10
  placeholder: string;
11
11
  required: boolean;
12
12
  type: string;
13
+ labelHidden: boolean;
14
+ display: string;
13
15
  countryDialCodes: string[];
14
16
  }
@@ -1,4 +1,4 @@
1
- export declare class AmplifySelectComponent {
1
+ export declare class SelectComponent {
2
2
  items: string[];
3
3
  name: string;
4
4
  label: string;
@@ -4,4 +4,5 @@ export declare class TabItemComponent {
4
4
  id: string;
5
5
  labelledById: string;
6
6
  tabIndex: number;
7
+ display: string;
7
8
  }
@@ -1,11 +1,13 @@
1
- export declare class AmplifyTextFieldComponent {
1
+ export declare class TextFieldComponent {
2
2
  autocomplete: string;
3
3
  disabled: boolean;
4
- id: string;
4
+ fieldId: string;
5
5
  initialValue: string;
6
6
  label: string;
7
7
  name: string;
8
8
  placeholder: string;
9
9
  required: boolean;
10
10
  type: string;
11
+ labelHidden: boolean;
12
+ display: string;
11
13
  }
@@ -0,0 +1,101 @@
1
+ /// <reference types="amazon-cognito-identity-js" />
2
+ import { OnDestroy } from '@angular/core';
3
+ import { AuthContext, AuthenticatorMachineOptions, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui';
4
+ import { Event, Subscription } from 'xstate';
5
+ import { AuthSubscriptionCallback } from '../common';
6
+ /**
7
+ * AuthenticatorService provides access to the authenticator state and context.
8
+ */
9
+ export declare class AuthenticatorService implements OnDestroy {
10
+ private _authState;
11
+ private _authService;
12
+ private _sendEventAliases;
13
+ private _subscription;
14
+ private _facade;
15
+ startMachine({ initialState, loginMechanisms, services, signUpAttributes, socialProviders, }: AuthenticatorMachineOptions): void;
16
+ ngOnDestroy(): void;
17
+ /**
18
+ * Context facades
19
+ */
20
+ get error(): string;
21
+ get hasValidationErrors(): boolean;
22
+ get isPending(): boolean;
23
+ get route(): string;
24
+ get user(): import("@aws-amplify/ui").CognitoUserAmplify;
25
+ get validationErrors(): {
26
+ [x: string]: string;
27
+ };
28
+ get codeDeliveryDetails(): import("amazon-cognito-identity-js").CodeDeliveryDetails;
29
+ /**
30
+ * Service facades
31
+ */
32
+ get updateForm(): (data?: Record<string | number | symbol, any>) => void;
33
+ get updateBlur(): (data?: Record<string | number | symbol, any>) => void;
34
+ get resendCode(): (data?: Record<string | number | symbol, any>) => void;
35
+ get signOut(): (data?: Record<string | number | symbol, any>) => void;
36
+ get submitForm(): (data?: Record<string | number | symbol, any>) => void;
37
+ /**
38
+ * Transition facades
39
+ */
40
+ get toFederatedSignIn(): (data?: Record<string | number | symbol, any>) => void;
41
+ get toResetPassword(): (data?: Record<string | number | symbol, any>) => void;
42
+ get toSignIn(): (data?: Record<string | number | symbol, any>) => void;
43
+ get toSignUp(): (data?: Record<string | number | symbol, any>) => void;
44
+ get skipVerification(): (data?: Record<string | number | symbol, any>) => void;
45
+ /**
46
+ * Internal utility functions
47
+ */
48
+ /** @deprecated For internal use only */
49
+ get authState(): AuthMachineState;
50
+ /** @deprecated For internal use only */
51
+ get authService(): AuthInterpreter;
52
+ /** @deprecated For internal use only */
53
+ get context(): AuthContext;
54
+ /** @deprecated For internal use only */
55
+ get slotContext(): {
56
+ $implicit: {
57
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
58
+ signOut: (data?: Record<string | number | symbol, any>) => void;
59
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
60
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
61
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
62
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
63
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
64
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
65
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
66
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
67
+ error: string;
68
+ hasValidationErrors: boolean;
69
+ isPending: boolean;
70
+ route: string;
71
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
72
+ validationErrors: {
73
+ [x: string]: string;
74
+ };
75
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
76
+ };
77
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
78
+ signOut: (data?: Record<string | number | symbol, any>) => void;
79
+ submitForm: (data?: Record<string | number | symbol, any>) => void;
80
+ updateForm: (data?: Record<string | number | symbol, any>) => void;
81
+ updateBlur: (data?: Record<string | number | symbol, any>) => void;
82
+ toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
83
+ toResetPassword: (data?: Record<string | number | symbol, any>) => void;
84
+ toSignIn: (data?: Record<string | number | symbol, any>) => void;
85
+ toSignUp: (data?: Record<string | number | symbol, any>) => void;
86
+ skipVerification: (data?: Record<string | number | symbol, any>) => void;
87
+ error: string;
88
+ hasValidationErrors: boolean;
89
+ isPending: boolean;
90
+ route: string;
91
+ user: import("@aws-amplify/ui").CognitoUserAmplify;
92
+ validationErrors: {
93
+ [x: string]: string;
94
+ };
95
+ codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
96
+ };
97
+ /** @deprecated For internal use only */
98
+ subscribe(callback: AuthSubscriptionCallback): Subscription;
99
+ /** @deprecated For internal use only */
100
+ send(event: Event<AuthEvent>): void;
101
+ }
@@ -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
+ }
@@ -0,0 +1,12 @@
1
+ import { AfterContentInit, TemplateRef } from '@angular/core';
2
+ import { CustomComponentsService } from '../../services/custom-components.service';
3
+ export declare class AmplifySlotComponent implements AfterContentInit {
4
+ private propService;
5
+ name: string;
6
+ context: Record<PropertyKey, any>;
7
+ display: string;
8
+ overridingComponent: TemplateRef<any>;
9
+ isOverriden: boolean;
10
+ constructor(propService: CustomComponentsService);
11
+ ngAfterContentInit(): void;
12
+ }
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-angular",
3
- "version": "2.0.1-next.6",
3
+ "version": "2.0.4",
4
+ "license": "Apache-2.0",
4
5
  "peerDependencies": {
5
- "@angular/common": "^11.2.4",
6
- "@angular/core": "^11.2.4",
7
6
  "aws-amplify": "3.x.x || 4.x.x"
8
7
  },
9
8
  "dependencies": {
10
9
  "@aws-amplify/ui-components": "^1.7.0",
11
- "@aws-amplify/ui": "3.0.1-next.6",
10
+ "@aws-amplify/ui": "3.0.4",
12
11
  "@stencil/core": "^2.7.0",
13
12
  "nanoid": "^3.1.25",
14
13
  "qrcode": "^1.4.4",
package/theme.css CHANGED
@@ -1,2 +1 @@
1
1
  @import '@aws-amplify/ui/dist/styles.css';
2
- @import './styles/component.css';