@aws-amplify/ui-angular 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aws-amplify-ui-angular.metadata.json +1 -1
- package/bundles/aws-amplify-ui-angular.umd.js +11 -1
- 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/lib/components/authenticator/components/form-field/form-field.component.js +1 -1
- package/esm2015/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.js +9 -3
- package/fesm2015/aws-amplify-ui-angular.js +7 -1
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +2 -2
- package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +2 -2
- package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +2 -2
- package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +2 -2
- package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +2 -2
- package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +2 -2
- package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +2 -2
- package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +2 -2
- package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +2 -2
- package/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.d.ts +3 -1
- package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +2 -2
- package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +2 -2
- package/lib/services/authenticator.service.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1493,6 +1493,7 @@
|
|
|
1493
1493
|
this.authenticator = authenticator;
|
|
1494
1494
|
this.primaryAlias = '';
|
|
1495
1495
|
this.secondaryAliases = [];
|
|
1496
|
+
this.translate = ui.translate;
|
|
1496
1497
|
}
|
|
1497
1498
|
SignUpFormFieldsComponent.prototype.ngOnInit = function () {
|
|
1498
1499
|
var context = this.authenticator.context;
|
|
@@ -1515,6 +1516,15 @@
|
|
|
1515
1516
|
this.fieldNamesCombined = __spread(common, this.fieldNames);
|
|
1516
1517
|
this.setFormFields();
|
|
1517
1518
|
};
|
|
1519
|
+
Object.defineProperty(SignUpFormFieldsComponent.prototype, "errors", {
|
|
1520
|
+
get: function () {
|
|
1521
|
+
var formContext = ui.getActorContext(this.authenticator.authState);
|
|
1522
|
+
var validationError = formContext.validationError;
|
|
1523
|
+
return validationError['password'];
|
|
1524
|
+
},
|
|
1525
|
+
enumerable: false,
|
|
1526
|
+
configurable: true
|
|
1527
|
+
});
|
|
1518
1528
|
SignUpFormFieldsComponent.prototype.setFormFields = function () {
|
|
1519
1529
|
var _a, _b, _c;
|
|
1520
1530
|
var _state = this.authenticator.authState;
|
|
@@ -1531,7 +1541,7 @@
|
|
|
1531
1541
|
SignUpFormFieldsComponent.decorators = [
|
|
1532
1542
|
{ type: i0.Component, args: [{
|
|
1533
1543
|
selector: 'amplify-sign-up-form-fields',
|
|
1534
|
-
template: "<div class=\"amplify-flex\" style=\"flex-direction: column\" data-amplify-fieldset>\n <ng-container *ngFor=\"let field of order\">\n <ng-container [ngSwitch]=\"field\">\n <amplify-user-name-alias\n *ngSwitchCase=\"loginMechanism\"\n [name]=\"loginMechanism\"\n [labelHidden]=\"grabField(loginMechanism, 'labelHidden', true)\"\n [placeholder]=\"userOverrides?.placeholder\"\n [required]=\"grabField(loginMechanism, 'required', true)\"\n [label]=\"userOverrides?.label\"\n [dialCode]=\"userOverrides?.dialCode\"\n [dialCodeList]=\"userOverrides?.dialCodeList\"\n ></amplify-user-name-alias>\n <
|
|
1544
|
+
template: "<div class=\"amplify-flex\" style=\"flex-direction: column\" data-amplify-fieldset>\n <ng-container *ngFor=\"let field of order\">\n <ng-container [ngSwitch]=\"field\">\n <amplify-user-name-alias\n *ngSwitchCase=\"loginMechanism\"\n [name]=\"loginMechanism\"\n [labelHidden]=\"grabField(loginMechanism, 'labelHidden', true)\"\n [placeholder]=\"userOverrides?.placeholder\"\n [required]=\"grabField(loginMechanism, 'required', true)\"\n [label]=\"userOverrides?.label\"\n [dialCode]=\"userOverrides?.dialCode\"\n [dialCodeList]=\"userOverrides?.dialCodeList\"\n ></amplify-user-name-alias>\n <ng-container *ngSwitchCase=\"'password'\">\n <amplify-form-field\n [labelHidden]=\"grabField('password', 'labelHidden', true)\"\n [placeholder]=\"grabField('password', 'placeholder', null)\"\n [required]=\"grabField('password', 'required', true)\"\n [label]=\"grabField('password', 'label', null)\"\n name=\"password\"\n autocomplete=\"new-password\"\n ></amplify-form-field>\n <div data-amplify-sign-up-errors *ngIf=\"errors\">\n <!-- TODO: add amplify-alert reusable component -->\n <div\n class=\"amplify-text\"\n data-variation=\"error\"\n *ngFor=\"let error of errors\"\n >\n {{ translate(error) }}\n </div>\n </div>\n </ng-container>\n <amplify-form-field\n *ngSwitchCase=\"'confirm_password'\"\n [labelHidden]=\"grabField('confirm_password', 'labelHidden', true)\"\n [placeholder]=\"\n grabField('confirm_password', 'placeholder', 'Confirm Password')\n \"\n [required]=\"grabField('confirm_password', 'required', true)\"\n [label]=\"grabField('confirm_password', 'label', 'Confirm Password')\"\n name=\"confirm_password\"\n type=\"password\"\n autocomplete=\"new-password\"\n ></amplify-form-field>\n\n <amplify-form-field\n *ngSwitchDefault\n [name]=\"field\"\n [labelHidden]=\"grabField(field, 'labelHidden', false)\"\n [placeholder]=\"grabField(field, 'placeholder', null)\"\n [required]=\"grabField(field, 'required', true)\"\n [label]=\"grabField(field, 'label', null)\"\n [defaultCountryCode]=\"grabField(field, 'dialCode', null)\"\n [dialCodeList]=\"grabField(field, 'dialCodeList', null)\"\n ></amplify-form-field>\n </ng-container>\n </ng-container>\n</div>\n"
|
|
1535
1545
|
},] }
|
|
1536
1546
|
];
|
|
1537
1547
|
SignUpFormFieldsComponent.ctorParameters = function () { return [
|