@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
@@ -1,17 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- export class AmplifySelectComponent {
3
- }
4
- AmplifySelectComponent.decorators = [
5
- { type: Component, args: [{
6
- selector: 'amplify-form-select',
7
- template: "<select [id]=\"id\" [name]=\"name\" [attr.aria-label]=\"label\">\n <option\n *ngFor=\"let item of items\"\n [value]=\"item\"\n [selected]=\"item === initialValue\"\n >\n {{ item }}\n </option>\n</select>\n"
8
- },] }
9
- ];
10
- AmplifySelectComponent.propDecorators = {
11
- items: [{ type: Input }],
12
- name: [{ type: Input }],
13
- label: [{ type: Input }],
14
- id: [{ type: Input }],
15
- initialValue: [{ type: Input }]
16
- };
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGlmeS1zZWxlY3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWktYW5ndWxhci9zcmMvbGliL3ByaW1pdGl2ZXMvYW1wbGlmeS1zZWxlY3QvYW1wbGlmeS1zZWxlY3QuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBTWpELE1BQU0sT0FBTyxzQkFBc0I7OztZQUpsQyxTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLHFCQUFxQjtnQkFDL0Isd09BQThDO2FBQy9DOzs7b0JBRUUsS0FBSzttQkFDTCxLQUFLO29CQUNMLEtBQUs7aUJBQ0wsS0FBSzsyQkFDTCxLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdhbXBsaWZ5LWZvcm0tc2VsZWN0JyxcbiAgdGVtcGxhdGVVcmw6ICcuL2FtcGxpZnktc2VsZWN0LmNvbXBvbmVudC5odG1sJyxcbn0pXG5leHBvcnQgY2xhc3MgQW1wbGlmeVNlbGVjdENvbXBvbmVudCB7XG4gIEBJbnB1dCgpIGl0ZW1zOiBzdHJpbmdbXTtcbiAgQElucHV0KCkgbmFtZTogc3RyaW5nO1xuICBASW5wdXQoKSBsYWJlbDogc3RyaW5nO1xuICBASW5wdXQoKSBpZDogc3RyaW5nO1xuICBASW5wdXQoKSBpbml0aWFsVmFsdWU6IHN0cmluZztcbn1cbiJdfQ==
@@ -1,35 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { StateMachineService } from '../../services/state-machine.service';
3
- import { getAliasInfoFromContext } from '@aws-amplify/ui';
4
- export class AmplifyUserNameAliasComponent {
5
- constructor(stateMachine) {
6
- this.stateMachine = stateMachine;
7
- this.name = 'username';
8
- this.disabled = false;
9
- this.initialValue = '';
10
- this.required = true;
11
- }
12
- ngOnInit() {
13
- const context = this.stateMachine.context;
14
- const { label, type } = getAliasInfoFromContext(context);
15
- this.label = label;
16
- this.type = type;
17
- this.placeholder = label;
18
- }
19
- }
20
- AmplifyUserNameAliasComponent.decorators = [
21
- { type: Component, args: [{
22
- selector: 'amplify-user-name-alias',
23
- template: "<amplify-form-input\n data-amplify-usernamealias\n [name]=\"name\"\n [label]=\"label\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [initialValue]=\"initialValue\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n autocomplete=\"username\"\n>\n</amplify-form-input>\n"
24
- },] }
25
- ];
26
- AmplifyUserNameAliasComponent.ctorParameters = () => [
27
- { type: StateMachineService }
28
- ];
29
- AmplifyUserNameAliasComponent.propDecorators = {
30
- name: [{ type: Input }],
31
- disabled: [{ type: Input }],
32
- initialValue: [{ type: Input }],
33
- required: [{ type: Input }]
34
- };
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGlmeS11c2VyLW5hbWUtYWxpYXMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWktYW5ndWxhci9zcmMvbGliL3ByaW1pdGl2ZXMvYW1wbGlmeS11c2VyLW5hbWUtYWxpYXMvYW1wbGlmeS11c2VyLW5hbWUtYWxpYXMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBTTFELE1BQU0sT0FBTyw2QkFBNkI7SUFVeEMsWUFBb0IsWUFBaUM7UUFBakMsaUJBQVksR0FBWixZQUFZLENBQXFCO1FBVDVDLFNBQUksR0FBVyxVQUFVLENBQUM7UUFDMUIsYUFBUSxHQUFZLEtBQUssQ0FBQztRQUMxQixpQkFBWSxHQUFXLEVBQUUsQ0FBQztRQUMxQixhQUFRLEdBQVksSUFBSSxDQUFDO0lBTXNCLENBQUM7SUFFekQsUUFBUTtRQUNOLE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDO1FBQzFDLE1BQU0sRUFBRSxLQUFLLEVBQUUsSUFBSSxFQUFFLEdBQUcsdUJBQXVCLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFekQsSUFBSSxDQUFDLEtBQUssR0F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