@aws-amplify/ui-angular 2.4.6 → 2.4.9
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-legacy.umd.js +11 -2
- package/bundles/aws-amplify-ui-angular-legacy.umd.js.map +1 -1
- package/bundles/aws-amplify-ui-angular-legacy.umd.min.js +1 -15
- package/bundles/aws-amplify-ui-angular-legacy.umd.min.js.map +1 -1
- package/bundles/aws-amplify-ui-angular.umd.js +25 -3
- 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/authenticator/authenticator.component.js +16 -3
- package/fesm2015/aws-amplify-ui-angular.js +15 -2
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +1 -0
- package/package.json +2 -2
|
@@ -415,6 +415,19 @@
|
|
|
415
415
|
var route = this.authenticator.route;
|
|
416
416
|
return route === 'signIn' || route === 'signUp';
|
|
417
417
|
};
|
|
418
|
+
AuthenticatorComponent.prototype.hasRouteComponent = function () {
|
|
419
|
+
var route = this.authenticator.route;
|
|
420
|
+
switch (route) {
|
|
421
|
+
case 'authenticated':
|
|
422
|
+
case 'idle':
|
|
423
|
+
case 'setup':
|
|
424
|
+
case 'signOut':
|
|
425
|
+
case 'autoSignIn':
|
|
426
|
+
return false;
|
|
427
|
+
default:
|
|
428
|
+
return true;
|
|
429
|
+
}
|
|
430
|
+
};
|
|
418
431
|
AuthenticatorComponent.prototype.mapCustomComponents = function (componentQuery) {
|
|
419
432
|
if (!componentQuery)
|
|
420
433
|
return {};
|
|
@@ -429,7 +442,7 @@
|
|
|
429
442
|
AuthenticatorComponent.decorators = [
|
|
430
443
|
{ type: i0.Component, args: [{
|
|
431
444
|
selector: 'amplify-authenticator',
|
|
432
|
-
template: "<div\n data-amplify-authenticator\n [attr.data-variation]=\"variation\"\n *ngIf=\"
|
|
445
|
+
template: "<div\n data-amplify-authenticator\n [attr.data-variation]=\"variation\"\n *ngIf=\"hasRouteComponent()\"\n>\n <div data-amplify-container>\n <amplify-slot name=\"header\" [context]=\"context\"></amplify-slot>\n <div\n data-amplify-router\n [attr.data-amplify-router-content]=\"hasTabs() ? undefined : ''\"\n >\n <amplify-tabs\n (tabChange)=\"onTabChange()\"\n *ngIf=\"(route === 'signIn' || route === 'signUp') && !hideSignUp\"\n >\n <amplify-tab-item\n [title]=\"signInTitle\"\n [active]=\"route === 'signIn'\"\n data-amplify-router-content\n >\n <!-- signIn component -->\n <amplify-slot\n name=\"sign-in\"\n [context]=\"context\"\n *ngIf=\"route === 'signIn'\"\n >\n <amplify-sign-in></amplify-sign-in>\n </amplify-slot>\n </amplify-tab-item>\n <amplify-tab-item\n [title]=\"signUpTitle\"\n [active]=\"route === 'signUp'\"\n data-amplify-router-content\n >\n <!-- signUp component -->\n <amplify-slot\n name=\"sign-up\"\n [context]=\"context\"\n *ngIf=\"route === 'signUp'\"\n >\n <amplify-sign-up></amplify-sign-up>\n </amplify-slot>\n </amplify-tab-item>\n </amplify-tabs>\n\n <amplify-slot\n name=\"sign-in\"\n [context]=\"context\"\n *ngIf=\"route === 'signIn' && hideSignUp\"\n >\n <amplify-sign-in></amplify-sign-in>\n </amplify-slot>\n\n <!-- confirmSignUp content -->\n <amplify-slot\n name=\"confirm-sign-up\"\n [context]=\"context\"\n *ngIf=\"route === 'confirmSignUp'\"\n >\n <amplify-confirm-sign-up></amplify-confirm-sign-up>\n </amplify-slot>\n\n <!-- confirmSignIn content -->\n <amplify-slot\n name=\"confirm-sign-in\"\n [context]=\"context\"\n *ngIf=\"route === 'confirmSignIn'\"\n >\n <amplify-confirm-sign-in></amplify-confirm-sign-in>\n </amplify-slot>\n\n <!-- setupTotp content -->\n <amplify-slot\n name=\"setup-totp\"\n [context]=\"context\"\n *ngIf=\"route === 'setupTOTP'\"\n >\n <amplify-setup-totp></amplify-setup-totp>\n </amplify-slot>\n\n <!-- forceNewPassword content -->\n <amplify-slot\n name=\"force-new-password\"\n [context]=\"context\"\n *ngIf=\"route === 'forceNewPassword'\"\n >\n <amplify-force-new-password></amplify-force-new-password>\n </amplify-slot>\n\n <!-- resetPassword content -->\n <amplify-slot\n name=\"reset-password\"\n [context]=\"context\"\n *ngIf=\"route === 'resetPassword'\"\n >\n <amplify-reset-password></amplify-reset-password>\n </amplify-slot>\n\n <!-- confirmResetPassword content -->\n <amplify-slot\n name=\"confirm-reset-password\"\n [context]=\"context\"\n *ngIf=\"route === 'confirmResetPassword'\"\n >\n <amplify-confirm-reset-password></amplify-confirm-reset-password>\n </amplify-slot>\n\n <!-- verifyUser content -->\n <amplify-slot\n name=\"verify-user\"\n [context]=\"context\"\n *ngIf=\"route === 'verifyUser'\"\n >\n <amplify-verify-user></amplify-verify-user>\n </amplify-slot>\n\n <!-- confirmVerifyUser content -->\n <amplify-slot\n name=\"confirm-verify-user\"\n [context]=\"context\"\n *ngIf=\"route === 'confirmVerifyUser'\"\n >\n <amplify-confirm-verify-user></amplify-confirm-verify-user>\n </amplify-slot>\n </div>\n\n <amplify-slot name=\"footer\" [context]=\"context\"></amplify-slot>\n </div>\n</div>\n\n<!-- signedIn content is rendered outside authenticator so it's not styled by authenticator -->\n<amplify-slot\n name=\"authenticated\"\n [context]=\"context\"\n *ngIf=\"route === 'authenticated'\"\n>\n <ng-content></ng-content>\n</amplify-slot>\n",
|
|
433
446
|
providers: [CustomComponentsService],
|
|
434
447
|
encapsulation: i0.ViewEncapsulation.None
|
|
435
448
|
},] }
|
|
@@ -874,7 +887,7 @@
|
|
|
874
887
|
headerText: [{ type: i0.Input }]
|
|
875
888
|
};
|
|
876
889
|
|
|
877
|
-
|
|
890
|
+
/******************************************************************************
|
|
878
891
|
Copyright (c) Microsoft Corporation.
|
|
879
892
|
|
|
880
893
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1036,7 +1049,11 @@
|
|
|
1036
1049
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
1037
1050
|
if (k2 === undefined)
|
|
1038
1051
|
k2 = k;
|
|
1039
|
-
Object.
|
|
1052
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1053
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1054
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
1055
|
+
}
|
|
1056
|
+
Object.defineProperty(o, k2, desc);
|
|
1040
1057
|
}) : (function (o, m, k, k2) {
|
|
1041
1058
|
if (k2 === undefined)
|
|
1042
1059
|
k2 = k;
|
|
@@ -1191,6 +1208,11 @@
|
|
|
1191
1208
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1192
1209
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
1193
1210
|
}
|
|
1211
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
1212
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
1213
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
1214
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
1215
|
+
}
|
|
1194
1216
|
|
|
1195
1217
|
var logger = new awsAmplify.Logger('SetupTotp');
|
|
1196
1218
|
var SetupTotpComponent = /** @class */ (function () {
|