@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.
- package/LICENSE +201 -0
- package/README.md +28 -0
- package/aws-amplify-ui-angular.d.ts +26 -18
- package/aws-amplify-ui-angular.metadata.json +1 -1
- package/bundles/aws-amplify-ui-angular-legacy.umd.js +2229 -0
- package/bundles/aws-amplify-ui-angular-legacy.umd.js.map +1 -0
- package/bundles/aws-amplify-ui-angular-legacy.umd.min.js +16 -0
- package/bundles/aws-amplify-ui-angular-legacy.umd.min.js.map +1 -0
- package/bundles/aws-amplify-ui-angular.umd.js +1552 -3299
- package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
- package/bundles/aws-amplify-ui-angular.umd.min.js +1 -1
- package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -1
- package/esm2015/aws-amplify-ui-angular.js +27 -19
- package/esm2015/index.js +22 -8
- package/esm2015/legacy/aws-amplify-ui-angular-legacy.js +6 -0
- package/esm2015/legacy/index.js +3 -0
- package/esm2015/legacy/legacy-ui-angular.module.js +53 -0
- package/esm2015/legacy/proxies.js +1839 -0
- package/esm2015/lib/common/types/auth-types.js +1 -1
- package/esm2015/lib/components/authenticator/authenticator.module.js +79 -0
- package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +87 -0
- package/esm2015/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.js +40 -0
- package/esm2015/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.js +57 -0
- package/esm2015/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.js +39 -0
- package/esm2015/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.js +39 -0
- package/esm2015/lib/components/authenticator/components/federated-sign-in/federated-sign-in.component.js +47 -0
- package/esm2015/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.js +27 -0
- package/esm2015/lib/components/authenticator/components/force-new-password/force-new-password.component.js +39 -0
- package/esm2015/lib/components/authenticator/components/form-field/form-field.component.js +93 -0
- package/esm2015/lib/components/authenticator/components/index.js +17 -0
- package/esm2015/lib/components/authenticator/components/reset-password/reset-password.component.js +45 -0
- package/esm2015/lib/components/authenticator/components/setup-totp/setup-totp.component.js +65 -0
- package/esm2015/lib/components/authenticator/components/sign-in/sign-in.component.js +38 -0
- package/esm2015/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.js +34 -0
- package/esm2015/lib/components/authenticator/components/sign-up/sign-up.component.js +37 -0
- package/esm2015/lib/components/authenticator/components/user-name-alias/user-name-alias.component.js +35 -0
- package/esm2015/lib/components/authenticator/components/verify-user/verify-user.component.js +54 -0
- package/esm2015/lib/primitives/button/button.component.js +38 -0
- package/esm2015/lib/primitives/checkbox/checkbox.component.js +31 -0
- package/esm2015/lib/primitives/error/error.component.js +16 -0
- package/esm2015/lib/primitives/index.js +10 -3
- package/esm2015/lib/primitives/password-field/password-field.component.js +43 -0
- package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +40 -0
- package/esm2015/lib/primitives/select/select.component.js +17 -0
- package/esm2015/lib/primitives/tab-item/tab-item.component.js +20 -0
- package/esm2015/lib/primitives/tabs/tabs.component.js +45 -0
- package/esm2015/lib/primitives/text-field/text-field.component.js +35 -0
- package/esm2015/lib/services/authenticator.service.js +133 -0
- package/esm2015/lib/services/custom-components.service.js +23 -0
- package/esm2015/lib/utilities/amplify-slot/amplify-slot.component.js +32 -0
- package/esm2015/lib/utilities/amplify-slot/amplify-slot.directive.js +21 -0
- package/fesm2015/aws-amplify-ui-angular-legacy.js +1846 -0
- package/fesm2015/aws-amplify-ui-angular-legacy.js.map +1 -0
- package/fesm2015/aws-amplify-ui-angular.js +847 -2583
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/index.d.ts +21 -7
- package/legacy/aws-amplify-ui-angular-legacy.d.ts +5 -0
- package/legacy/aws-amplify-ui-angular-legacy.metadata.json +1 -0
- package/legacy/index.d.ts +2 -0
- package/legacy/legacy-ui-angular.module.d.ts +2 -0
- package/legacy/package.json +11 -0
- package/{lib → legacy}/proxies.d.ts +0 -0
- package/lib/common/types/auth-types.d.ts +2 -5
- package/lib/components/authenticator/authenticator.module.d.ts +2 -0
- package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +67 -0
- package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +50 -0
- package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +52 -0
- package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +49 -0
- package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +49 -0
- 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
- package/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.d.ts +9 -0
- package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +49 -0
- package/lib/{primitives/amplify-input/amplify-input.component.d.ts → components/authenticator/components/form-field/form-field.component.d.ts} +10 -5
- package/lib/components/authenticator/components/index.d.ts +16 -0
- package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +52 -0
- package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +53 -0
- package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +48 -0
- package/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.d.ts +12 -0
- package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +47 -0
- 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
- package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +54 -0
- package/lib/primitives/button/button.component.d.ts +15 -0
- package/lib/primitives/checkbox/checkbox.component.d.ts +12 -0
- package/lib/primitives/error/error.component.d.ts +4 -0
- package/lib/primitives/index.d.ts +9 -2
- package/lib/primitives/password-field/password-field.component.d.ts +15 -0
- package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +16 -0
- package/lib/primitives/{amplify-select/amplify-select.component.d.ts → select/select.component.d.ts} +2 -2
- package/lib/primitives/tab-item/tab-item.component.d.ts +7 -0
- package/lib/primitives/tabs/tabs.component.d.ts +9 -0
- package/lib/primitives/text-field/text-field.component.d.ts +13 -0
- package/lib/services/authenticator.service.d.ts +94 -0
- package/lib/services/custom-components.service.d.ts +9 -0
- package/lib/utilities/amplify-slot/amplify-slot.component.d.ts +12 -0
- package/lib/{directives/amplify-override.directive.d.ts → utilities/amplify-slot/amplify-slot.directive.d.ts} +2 -2
- package/package.json +5 -5
- package/theme.css +1 -99
- package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +0 -66
- package/esm2015/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.js +0 -91
- package/esm2015/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.js +0 -102
- package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +0 -37
- package/esm2015/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.js +0 -27
- package/esm2015/lib/components/amplify-force-new-password/amplify-force-new-password.component.js +0 -83
- package/esm2015/lib/components/amplify-reset-password/amplify-reset-password.component.js +0 -68
- package/esm2015/lib/components/amplify-setup-totp/amplify-setup-totp.component.js +0 -100
- package/esm2015/lib/components/amplify-sign-in/amplify-sign-in.component.js +0 -82
- package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +0 -92
- package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +0 -73
- package/esm2015/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.js +0 -76
- package/esm2015/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.js +0 -63
- package/esm2015/lib/components/index.js +0 -14
- package/esm2015/lib/directives/amplify-override.directive.js +0 -21
- package/esm2015/lib/primitives/amplify-error/amplify-error.component.js +0 -10
- package/esm2015/lib/primitives/amplify-input/amplify-input.component.js +0 -82
- package/esm2015/lib/primitives/amplify-select/amplify-select.component.js +0 -17
- package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +0 -35
- package/esm2015/lib/proxies.js +0 -1839
- package/esm2015/lib/services/authenticator-context.service.js +0 -28
- package/esm2015/lib/services/state-machine.service.js +0 -46
- package/esm2015/lib/ui-angular.module.js +0 -91
- package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +0 -31
- package/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.d.ts +0 -31
- package/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.d.ts +0 -37
- package/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.d.ts +0 -9
- package/lib/components/amplify-force-new-password/amplify-force-new-password.component.d.ts +0 -31
- package/lib/components/amplify-reset-password/amplify-reset-password.component.d.ts +0 -30
- package/lib/components/amplify-setup-totp/amplify-setup-totp.component.d.ts +0 -31
- package/lib/components/amplify-sign-in/amplify-sign-in.component.d.ts +0 -34
- package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +0 -35
- package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +0 -31
- package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +0 -34
- package/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +0 -26
- package/lib/components/index.d.ts +0 -13
- package/lib/primitives/amplify-error/amplify-error.component.d.ts +0 -2
- package/lib/services/authenticator-context.service.d.ts +0 -10
- package/lib/services/state-machine.service.d.ts +0 -29
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGlmeS11c2VyLW5hbWUtYWxpYXMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWktYW5ndWxhci9zcmMvbGliL3ByaW1pdGl2ZXMvYW1wbGlmeS11c2VyLW5hbWUtYWxpYXMvYW1wbGlmeS11c2VyLW5hbWUtYWxpYXMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBTTFELE1BQU0sT0FBTyw2QkFBNkI7SUFVeEMsWUFBb0IsWUFBaUM7UUFBakMsaUJBQVksR0FBWixZQUFZLENBQXFCO1FBVDVDLFNBQUksR0FBVyxVQUFVLENBQUM7UUFDMUIsYUFBUSxHQUFZLEtBQUssQ0FBQztRQUMxQixpQkFBWSxHQUFXLEVBQUUsQ0FBQztRQUMxQixhQUFRLEdBQVksSUFBSSxDQUFDO0lBTXNCLENBQUM7SUFFekQsUUFBUTtRQUNOLE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDO1FBQzFDLE1BQU0sRUFBRSxLQUFLLE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