@aws-amplify/ui-angular 2.0.1-next.3 → 2.0.1

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 (137) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +28 -0
  3. package/aws-amplify-ui-angular.d.ts +26 -18
  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 +1552 -3299
  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 -19
  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 +79 -0
  21. package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +87 -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 +39 -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 +93 -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 +43 -0
  43. package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +40 -0
  44. package/esm2015/lib/primitives/select/select.component.js +17 -0
  45. package/esm2015/lib/primitives/tab-item/tab-item.component.js +20 -0
  46. package/esm2015/lib/primitives/tabs/tabs.component.js +45 -0
  47. package/esm2015/lib/primitives/text-field/text-field.component.js +35 -0
  48. package/esm2015/lib/services/authenticator.service.js +133 -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 +847 -2583
  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 +67 -0
  66. package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +50 -0
  67. package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +52 -0
  68. package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +49 -0
  69. package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +49 -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 +49 -0
  73. package/lib/{primitives/amplify-input/amplify-input.component.d.ts → components/authenticator/components/form-field/form-field.component.d.ts} +10 -5
  74. package/lib/components/authenticator/components/index.d.ts +16 -0
  75. package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +52 -0
  76. package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +53 -0
  77. package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +48 -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 +47 -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 +54 -0
  82. package/lib/primitives/button/button.component.d.ts +15 -0
  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/password-field/password-field.component.d.ts +15 -0
  87. package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +16 -0
  88. package/lib/primitives/{amplify-select/amplify-select.component.d.ts → select/select.component.d.ts} +2 -2
  89. package/lib/primitives/tab-item/tab-item.component.d.ts +7 -0
  90. package/lib/primitives/tabs/tabs.component.d.ts +9 -0
  91. package/lib/primitives/text-field/text-field.component.d.ts +13 -0
  92. package/lib/services/authenticator.service.d.ts +94 -0
  93. package/lib/services/custom-components.service.d.ts +9 -0
  94. package/lib/utilities/amplify-slot/amplify-slot.component.d.ts +12 -0
  95. package/lib/{directives/amplify-override.directive.d.ts → utilities/amplify-slot/amplify-slot.directive.d.ts} +2 -2
  96. package/package.json +5 -5
  97. package/theme.css +1 -99
  98. package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +0 -66
  99. package/esm2015/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.js +0 -91
  100. package/esm2015/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.js +0 -102
  101. package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +0 -37
  102. package/esm2015/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.js +0 -27
  103. package/esm2015/lib/components/amplify-force-new-password/amplify-force-new-password.component.js +0 -83
  104. package/esm2015/lib/components/amplify-reset-password/amplify-reset-password.component.js +0 -68
  105. package/esm2015/lib/components/amplify-setup-totp/amplify-setup-totp.component.js +0 -100
  106. package/esm2015/lib/components/amplify-sign-in/amplify-sign-in.component.js +0 -82
  107. package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +0 -92
  108. package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +0 -73
  109. package/esm2015/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.js +0 -76
  110. package/esm2015/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.js +0 -63
  111. package/esm2015/lib/components/index.js +0 -14
  112. package/esm2015/lib/directives/amplify-override.directive.js +0 -21
  113. package/esm2015/lib/primitives/amplify-error/amplify-error.component.js +0 -10
  114. package/esm2015/lib/primitives/amplify-input/amplify-input.component.js +0 -82
  115. package/esm2015/lib/primitives/amplify-select/amplify-select.component.js +0 -17
  116. package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +0 -35
  117. package/esm2015/lib/proxies.js +0 -1839
  118. package/esm2015/lib/services/authenticator-context.service.js +0 -28
  119. package/esm2015/lib/services/state-machine.service.js +0 -46
  120. package/esm2015/lib/ui-angular.module.js +0 -91
  121. package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +0 -31
  122. package/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.d.ts +0 -31
  123. package/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.d.ts +0 -37
  124. package/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.d.ts +0 -9
  125. package/lib/components/amplify-force-new-password/amplify-force-new-password.component.d.ts +0 -31
  126. package/lib/components/amplify-reset-password/amplify-reset-password.component.d.ts +0 -30
  127. package/lib/components/amplify-setup-totp/amplify-setup-totp.component.d.ts +0 -31
  128. package/lib/components/amplify-sign-in/amplify-sign-in.component.d.ts +0 -34
  129. package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +0 -35
  130. package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +0 -31
  131. package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +0 -34
  132. package/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +0 -26
  133. package/lib/components/index.d.ts +0 -13
  134. package/lib/primitives/amplify-error/amplify-error.component.d.ts +0 -2
  135. package/lib/services/authenticator-context.service.d.ts +0 -10
  136. package/lib/services/state-machine.service.d.ts +0 -29
  137. package/lib/ui-angular.module.d.ts +0 -2
@@ -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
+ }
@@ -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,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
+ }
@@ -1,2 +1,9 @@
1
- export * from './amplify-input/amplify-input.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';
@@ -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
+ }
@@ -1,7 +1,7 @@
1
- export declare class AmplifySelectComponent {
1
+ export declare class SelectComponent {
2
2
  items: string[];
3
3
  name: string;
4
4
  label: string;
5
5
  id: string;
6
- initialValue: string;
6
+ defaultValue: string;
7
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
+ }
@@ -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
+ }
@@ -1,7 +1,7 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- export declare class AmplifyOverrideDirective {
2
+ export declare class AmplifySlotDirective {
3
3
  template: TemplateRef<any>;
4
4
  constructor(template: TemplateRef<any>);
5
5
  name: string;
6
- set amplifyOverride(component: string);
6
+ set amplifySlot(component: string);
7
7
  }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-angular",
3
- "version": "2.0.1-next.3",
3
+ "version": "2.0.1",
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
- "@aws-amplify/ui": "3.0.1-next.3",
11
9
  "@aws-amplify/ui-components": "^1.7.0",
10
+ "@aws-amplify/ui": "3.0.1",
12
11
  "@stencil/core": "^2.7.0",
13
- "tslib": "^2.0.0",
12
+ "nanoid": "^3.1.25",
14
13
  "qrcode": "^1.4.4",
14
+ "tslib": "^2.0.0",
15
15
  "xstate": "^4.20.1"
16
16
  },
17
17
  "publishConfig": {
package/theme.css CHANGED
@@ -1,99 +1 @@
1
- [data-amplify-authenticator] {
2
- font-size: 14px;
3
- font-family: 'Amazon Ember';
4
- display: inline-block;
5
- }
6
-
7
- [data-amplify-header] {
8
- margin-top: 0px;
9
- }
10
-
11
- [data-amplify-fieldset] {
12
- border-style: none;
13
- margin: 0;
14
- padding: 0;
15
- }
16
-
17
- [data-amplify-container] {
18
- width: 22rem;
19
- padding: 3rem;
20
- border-style: solid;
21
- border-width: 1px;
22
- border-color: rgba(0, 0, 0, 0.1);
23
- background-color: white;
24
- }
25
-
26
- [data-amplify-form-input] {
27
- border-style: solid;
28
- display: block;
29
- padding: 0.875rem;
30
- width: 90%;
31
- margin-bottom: 1rem;
32
- border-color: rgba(0, 0, 0, 0.1);
33
- border-width: 1px;
34
- border-radius: 2px;
35
- }
36
-
37
- [data-amplify-form-input]:focus {
38
- outline: none;
39
- border: 1px solid cornflowerblue;
40
- }
41
-
42
- [data-amplify-label] {
43
- display: block;
44
- margin-bottom: 0.625rem;
45
- }
46
-
47
- [data-amplify-footer] {
48
- margin-top: 2rem;
49
- display: flex;
50
- flex-direction: row;
51
- align-items: center;
52
- justify-content: space-between;
53
- }
54
-
55
- [data-amplify-button] {
56
- background-color: black;
57
- padding: 0.875rem 1.5rem 0.875rem 1.5rem;
58
- border-style: none;
59
- color: white;
60
- border-radius: 2px;
61
- border-width: 1px;
62
- margin: 0.25rem;
63
- }
64
-
65
- [data-amplify-federated] [data-amplify-button] {
66
- background-color: white;
67
- color: black;
68
- border-style: solid;
69
- border-radius: 2px;
70
- border-color: rgba(0, 0, 0, 0.1);
71
- width: 100%;
72
- }
73
-
74
- [data-amplify-button]:disabled {
75
- background-color: grey;
76
- }
77
-
78
- [data-amplify-link] {
79
- color: cornflowerblue;
80
- cursor: pointer;
81
- }
82
-
83
- [data-amplify-link]:hover {
84
- text-decoration: underline;
85
- }
86
-
87
- [data-amplify-error] {
88
- color: orangered;
89
- }
90
-
91
- [data-amplify-error]:last-child {
92
- margin-bottom: 1rem;
93
- }
94
-
95
- [data-amplify-federated] {
96
- display: flex;
97
- flex-direction: column;
98
- margin-bottom: 1rem;
99
- }
1
+ @import '@aws-amplify/ui/dist/styles.css';
@@ -1,66 +0,0 @@
1
- import { Component, ContentChildren, HostBinding, Input, ViewEncapsulation, } from '@angular/core';
2
- import { AmplifyOverrideDirective } from '../../directives/amplify-override.directive';
3
- import { StateMachineService } from '../../services/state-machine.service';
4
- import { AuthPropService } from '../../services/authenticator-context.service';
5
- import { getActorState } from '@aws-amplify/ui';
6
- export class AmplifyAuthenticatorComponent {
7
- constructor(stateMachine, contextService) {
8
- this.stateMachine = stateMachine;
9
- this.contextService = contextService;
10
- /**
11
- * TODO: Add back custom events
12
- */
13
- this.initialAuthState = 'signIn';
14
- this.dataAttr = '';
15
- this.customComponentQuery = null;
16
- this.customComponents = {};
17
- }
18
- /**
19
- * Lifecycle Methods
20
- */
21
- ngAfterContentInit() {
22
- this.contextService.customComponents = this.mapCustomComponents(this.customComponentQuery);
23
- this.customComponents = this.contextService.customComponents;
24
- }
25
- /**
26
- * Class Functions
27
- */
28
- get context() {
29
- const { signOut } = this.stateMachine.services;
30
- const user = this.stateMachine.user;
31
- return { signOut, user };
32
- }
33
- get actorState() {
34
- return getActorState(this.stateMachine.authState);
35
- }
36
- get authenticatorState() {
37
- return this.stateMachine.authState;
38
- }
39
- mapCustomComponents(componentQuery) {
40
- if (!componentQuery)
41
- return {};
42
- const customComponents = {};
43
- componentQuery.forEach((component) => {
44
- customComponents[component.name] = component.template;
45
- });
46
- return customComponents;
47
- }
48
- }
49
- AmplifyAuthenticatorComponent.decorators = [
50
- { type: Component, args: [{
51
- selector: 'amplify-authenticator',
52
- template: "<!-- \n Define default contents here.\n-->\n<ng-template #signIn>\n <amplify-sign-in></amplify-sign-in>\n</ng-template>\n<ng-template #signUp>\n <amplify-sign-up></amplify-sign-up>\n</ng-template>\n<ng-template #confirmSignUp>\n <amplify-confirm-sign-up></amplify-confirm-sign-up>\n</ng-template>\n<ng-template #confirmSignIn>\n <amplify-confirm-sign-in></amplify-confirm-sign-in>\n</ng-template>\n<ng-template #authenticated> <ng-content></ng-content> </ng-template>\n<ng-template #setupTOTP>\n <amplify-setup-totp></amplify-setup-totp>\n</ng-template>\n<ng-template #forceNewPassword>\n <amplify-force-new-password></amplify-force-new-password>\n</ng-template>\n<ng-template #resetPassword>\n <amplify-reset-password></amplify-reset-password>\n</ng-template>\n<ng-template #confirmResetPassword>\n <amplify-confirm-reset-password></amplify-confirm-reset-password>\n</ng-template>\n<ng-template #verifyUser>\n <amplify-verify-user></amplify-verify-user>\n</ng-template>\n<ng-template #confirmVerifyUser>\n <amplify-confirm-verify-user></amplify-confirm-verify-user>\n</ng-template>\n\n<!-- \n Next, we render respective auth subcomponent respective to the current authState.\n If customer is overriding that component, we render customer's template instead.\n-->\n\n<!-- signIn component -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.signIn || signIn\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('signIn')\"\n>\n</ng-container>\n\n<!-- signUp component -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.signUp || signUp\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('signUp')\"\n>\n</ng-container>\n\n<!-- confirmSignUp content -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.confirmSignUp || confirmSignUp\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('confirmSignUp')\"\n>\n</ng-container>\n\n<!-- confirmSignIn content -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.confirmSignIn || confirmSignIn\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('confirmSignIn')\"\n>\n</ng-container>\n\n<!-- setupTotp content -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.setupTOTP || setupTOTP\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('setupTOTP')\"\n>\n</ng-container>\n\n<!-- forceNewPassword content -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.forceNewPassword || forceNewPassword\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('forceNewPassword')\"\n>\n</ng-container>\n\n<!-- resetPassword content -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.resetPassword || resetPassword\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('resetPassword')\"\n>\n</ng-container>\n\n<!-- confirmResetPassword content -->\n<ng-container\n [ngTemplateOutlet]=\"\n customComponents.confirmResetPassword || confirmResetPassword\n \"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('confirmResetPassword')\"\n>\n</ng-container>\n\n<!-- verifyUser content -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.verifyUser || verifyUser\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('verifyUser')\"\n>\n</ng-container>\n\n<!-- confirmVerifyUser content -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.confirmVerifyUser || confirmVerifyUser\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"actorState?.matches('confirmVerifyUser')\"\n>\n</ng-container>\n\n<!-- signedIn content -->\n<ng-container\n [ngTemplateOutlet]=\"customComponents.authenticated || authenticated\"\n [ngTemplateOutletContext]=\"context\"\n *ngIf=\"authenticatorState.matches('authenticated')\"\n>\n</ng-container>\n",
53
- providers: [AuthPropService],
54
- encapsulation: ViewEncapsulation.None
55
- },] }
56
- ];
57
- AmplifyAuthenticatorComponent.ctorParameters = () => [
58
- { type: StateMachineService },
59
- { type: AuthPropService }
60
- ];
61
- AmplifyAuthenticatorComponent.propDecorators = {
62
- initialAuthState: [{ type: Input }],
63
- dataAttr: [{ type: HostBinding, args: ['attr.data-amplify-authenticator',] }],
64
- customComponentQuery: [{ type: ContentChildren, args: [AmplifyOverrideDirective,] }]
65
- };
66
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGlmeS1hdXRoZW50aWNhdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VpLWFuZ3VsYXIvc3JjL2xpYi9jb21wb25lbnRzL2FtcGxpZnktYXV0aGVudGljYXRvci9hbXBsaWZ5LWF1dGhlbnRpY2F0b3IuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCxTQUFTLEVBQ1QsZUFBZSxFQUNmLFdBQVcsRUFDWCxLQUFLLEVBR0wsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLDZDQUE2QyxDQUFDO0FBQ3ZGLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSw4Q0FBOEMsQ0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