@bitblit/ngx-acute-warden 5.1.118 → 5.1.122-alpha
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/lib/components/acute-create-user/acute-create-user.component.js +41 -48
- package/lib/components/acute-create-user/acute-create-user.component.js.map +1 -1
- package/lib/components/acute-login/acute-login.component.d.ts +14 -5
- package/lib/components/acute-login/acute-login.component.js +148 -84
- package/lib/components/acute-login/acute-login.component.js.map +1 -1
- package/lib/components/acute-magic-lander/acute-magic-lander.component.js +7 -8
- package/lib/components/acute-magic-lander/acute-magic-lander.component.js.map +1 -1
- package/lib/components/acute-user-profile/acute-user-profile.component.d.ts +2 -0
- package/lib/components/acute-user-profile/acute-user-profile.component.js +74 -45
- package/lib/components/acute-user-profile/acute-user-profile.component.js.map +1 -1
- package/lib/constants.d.ts +4 -0
- package/lib/constants.js +5 -0
- package/lib/constants.js.map +1 -0
- package/lib/guards/logged-in-guard.d.ts +6 -4
- package/lib/guards/logged-in-guard.js +23 -8
- package/lib/guards/logged-in-guard.js.map +1 -1
- package/lib/guards/not-logged-in-guard.d.ts +6 -4
- package/lib/guards/not-logged-in-guard.js +24 -10
- package/lib/guards/not-logged-in-guard.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/services/warden-adapter.service.js +1 -1
- package/lib/services/warden-adapter.service.js.map +1 -1
- package/package.json +35 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Input } from
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
2
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
3
3
|
import { Logger } from '@bitblit/ratchet-common/logger/logger';
|
|
4
4
|
import { WardenClient } from '@bitblit/ratchet-warden-common/client/warden-client';
|
|
@@ -18,10 +18,12 @@ import { InputTextModule } from 'primeng/inputtext';
|
|
|
18
18
|
import { RequireRatchet } from '@bitblit/ratchet-common/lang/require-ratchet';
|
|
19
19
|
import { InputOtpModule } from 'primeng/inputotp';
|
|
20
20
|
import { AccordionModule } from 'primeng/accordion';
|
|
21
|
-
import { TabViewModule } from 'primeng/tabview';
|
|
22
21
|
import { SplitButtonModule } from 'primeng/splitbutton';
|
|
23
22
|
import { InputGroupModule } from 'primeng/inputgroup';
|
|
24
23
|
import { ToolbarModule } from 'primeng/toolbar';
|
|
24
|
+
import { Base64Ratchet } from "@bitblit/ratchet-common/lang/base64-ratchet";
|
|
25
|
+
import { No } from "@bitblit/ratchet-common/lang/no";
|
|
26
|
+
import { timer } from "rxjs";
|
|
25
27
|
import * as i0 from "@angular/core";
|
|
26
28
|
import * as i1 from "@angular/router";
|
|
27
29
|
import * as i2 from "@bitblit/ratchet-warden-common/client/warden-user-service";
|
|
@@ -29,13 +31,12 @@ import * as i3 from "@bitblit/ratchet-warden-common/client/warden-client";
|
|
|
29
31
|
import * as i4 from "primeng/dynamicdialog";
|
|
30
32
|
import * as i5 from "primeng/button";
|
|
31
33
|
import * as i6 from "@angular/forms";
|
|
32
|
-
import * as i7 from "
|
|
33
|
-
import * as i8 from "primeng/
|
|
34
|
-
import * as i9 from "primeng/
|
|
35
|
-
import * as i10 from "primeng/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
34
|
+
import * as i7 from "primeng/tooltip";
|
|
35
|
+
import * as i8 from "primeng/fieldset";
|
|
36
|
+
import * as i9 from "primeng/inputtext";
|
|
37
|
+
import * as i10 from "primeng/inputotp";
|
|
38
|
+
function AcuteLoginComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
39
40
|
i0.ɵɵtext(1);
|
|
40
41
|
i0.ɵɵelementEnd();
|
|
41
42
|
} if (rf & 2) {
|
|
@@ -43,8 +44,8 @@ function AcuteLoginComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
43
44
|
i0.ɵɵadvance();
|
|
44
45
|
i0.ɵɵtextInterpolate(ctx_r0.applicationName);
|
|
45
46
|
} }
|
|
46
|
-
function
|
|
47
|
-
i0.ɵɵelementStart(0, "div",
|
|
47
|
+
function AcuteLoginComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
48
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
48
49
|
i0.ɵɵtext(1);
|
|
49
50
|
i0.ɵɵelementEnd();
|
|
50
51
|
} if (rf & 2) {
|
|
@@ -52,91 +53,93 @@ function AcuteLoginComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
52
53
|
i0.ɵɵadvance();
|
|
53
54
|
i0.ɵɵtextInterpolate(ctx_r0.helperText);
|
|
54
55
|
} }
|
|
55
|
-
function
|
|
56
|
-
i0.ɵɵelementStart(0, "span",
|
|
56
|
+
function AcuteLoginComponent_Conditional_4_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
+
i0.ɵɵelementStart(0, "span", 8);
|
|
57
58
|
i0.ɵɵtext(1, "Valid email or phone number required");
|
|
58
59
|
i0.ɵɵelementEnd();
|
|
59
60
|
} }
|
|
60
|
-
function
|
|
61
|
-
i0.ɵɵelementStart(0, "div",
|
|
61
|
+
function AcuteLoginComponent_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "div");
|
|
62
63
|
i0.ɵɵtext(2, "-----");
|
|
63
64
|
i0.ɵɵelementEnd();
|
|
64
|
-
i0.ɵɵelementStart(3, "div",
|
|
65
|
+
i0.ɵɵelementStart(3, "div", 10);
|
|
65
66
|
i0.ɵɵtext(4, "Or select a previously used method");
|
|
66
67
|
i0.ɵɵelementEnd();
|
|
67
68
|
i0.ɵɵelementStart(5, "div");
|
|
68
69
|
i0.ɵɵtext(6, "-----");
|
|
69
70
|
i0.ɵɵelementEnd()();
|
|
70
71
|
} }
|
|
71
|
-
function
|
|
72
|
+
function AcuteLoginComponent_Conditional_4_For_8_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
72
73
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
73
|
-
i0.ɵɵelementStart(0, "p-button",
|
|
74
|
-
i0.ɵɵlistener("click", function
|
|
74
|
+
i0.ɵɵelementStart(0, "p-button", 18);
|
|
75
|
+
i0.ɵɵlistener("click", function AcuteLoginComponent_Conditional_4_For_8_Conditional_5_Template_p_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const lg_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.processWebAuthnLogin(lg_r5.user.userId)); });
|
|
75
76
|
i0.ɵɵelementEnd();
|
|
76
77
|
} }
|
|
77
|
-
function
|
|
78
|
+
function AcuteLoginComponent_Conditional_4_For_8_For_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
78
79
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
79
|
-
i0.ɵɵelementStart(0, "p-button",
|
|
80
|
-
i0.ɵɵlistener("click", function
|
|
80
|
+
i0.ɵɵelementStart(0, "p-button", 21);
|
|
81
|
+
i0.ɵɵlistener("click", function AcuteLoginComponent_Conditional_4_For_8_For_7_Conditional_1_Template_p_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const e_r7 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.sendCodeToContact(e_r7)); });
|
|
81
82
|
i0.ɵɵelementEnd();
|
|
82
83
|
} if (rf & 2) {
|
|
83
84
|
const e_r7 = i0.ɵɵnextContext().$implicit;
|
|
84
|
-
i0.ɵɵ
|
|
85
|
+
i0.ɵɵproperty("pTooltip", i0.ɵɵinterpolate(e_r7.value));
|
|
85
86
|
} }
|
|
86
|
-
function
|
|
87
|
+
function AcuteLoginComponent_Conditional_4_For_8_For_7_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
87
88
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
88
|
-
i0.ɵɵelementStart(0, "p-button",
|
|
89
|
-
i0.ɵɵlistener("click", function
|
|
89
|
+
i0.ɵɵelementStart(0, "p-button", 22);
|
|
90
|
+
i0.ɵɵlistener("click", function AcuteLoginComponent_Conditional_4_For_8_For_7_Conditional_2_Template_p_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const e_r7 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.sendCodeToContact(e_r7)); });
|
|
90
91
|
i0.ɵɵelementEnd();
|
|
91
92
|
} if (rf & 2) {
|
|
92
93
|
const e_r7 = i0.ɵɵnextContext().$implicit;
|
|
93
|
-
i0.ɵɵ
|
|
94
|
+
i0.ɵɵproperty("pTooltip", i0.ɵɵinterpolate(e_r7.value));
|
|
94
95
|
} }
|
|
95
|
-
function
|
|
96
|
-
i0.ɵɵelementStart(0, "div",
|
|
97
|
-
i0.ɵɵ
|
|
96
|
+
function AcuteLoginComponent_Conditional_4_For_8_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
97
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
98
|
+
i0.ɵɵconditionalCreate(1, AcuteLoginComponent_Conditional_4_For_8_For_7_Conditional_1_Template, 1, 2, "p-button", 19);
|
|
99
|
+
i0.ɵɵconditionalCreate(2, AcuteLoginComponent_Conditional_4_For_8_For_7_Conditional_2_Template, 1, 2, "p-button", 20);
|
|
98
100
|
i0.ɵɵelementEnd();
|
|
99
101
|
} if (rf & 2) {
|
|
100
102
|
const e_r7 = ctx.$implicit;
|
|
101
103
|
i0.ɵɵadvance();
|
|
102
|
-
i0.ɵɵ
|
|
104
|
+
i0.ɵɵconditional(e_r7.type === "EmailAddress" ? 1 : -1);
|
|
103
105
|
i0.ɵɵadvance();
|
|
104
|
-
i0.ɵɵ
|
|
106
|
+
i0.ɵɵconditional(e_r7.type === "TextCapablePhoneNumber" ? 2 : -1);
|
|
105
107
|
} }
|
|
106
|
-
function
|
|
108
|
+
function AcuteLoginComponent_Conditional_4_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
107
109
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
108
|
-
i0.ɵɵelementStart(0, "div")(1, "div",
|
|
110
|
+
i0.ɵɵelementStart(0, "div")(1, "div", 11)(2, "h3", 12);
|
|
109
111
|
i0.ɵɵtext(3);
|
|
110
112
|
i0.ɵɵelementEnd();
|
|
111
|
-
i0.ɵɵelementStart(4, "div",
|
|
112
|
-
i0.ɵɵ
|
|
113
|
+
i0.ɵɵelementStart(4, "div", 13);
|
|
114
|
+
i0.ɵɵconditionalCreate(5, AcuteLoginComponent_Conditional_4_For_8_Conditional_5_Template, 1, 0, "p-button", 14);
|
|
115
|
+
i0.ɵɵrepeaterCreate(6, AcuteLoginComponent_Conditional_4_For_8_For_7_Template, 3, 2, "div", 15, i0.ɵɵrepeaterTrackByIndex);
|
|
113
116
|
i0.ɵɵelementEnd();
|
|
114
|
-
i0.ɵɵelementStart(
|
|
115
|
-
i0.ɵɵlistener("click", function
|
|
117
|
+
i0.ɵɵelementStart(8, "div", 16)(9, "p-button", 17);
|
|
118
|
+
i0.ɵɵlistener("click", function AcuteLoginComponent_Conditional_4_For_8_Template_p_button_click_9_listener() { const lg_r5 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.removeSingleLogin(lg_r5.user.userId)); });
|
|
116
119
|
i0.ɵɵelementEnd()()()();
|
|
117
120
|
} if (rf & 2) {
|
|
118
121
|
const lg_r5 = ctx.$implicit;
|
|
119
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
120
122
|
i0.ɵɵadvance(3);
|
|
121
123
|
i0.ɵɵtextInterpolate(lg_r5.user.userLabel);
|
|
122
124
|
i0.ɵɵadvance(2);
|
|
123
|
-
i0.ɵɵ
|
|
125
|
+
i0.ɵɵconditional((lg_r5 == null ? null : lg_r5.user == null ? null : lg_r5.user.webAuthnAuthenticatorSummaries == null ? null : lg_r5.user.webAuthnAuthenticatorSummaries.length) ? 5 : -1);
|
|
124
126
|
i0.ɵɵadvance();
|
|
125
|
-
i0.ɵɵ
|
|
126
|
-
i0.ɵɵadvance(
|
|
127
|
-
i0.ɵɵ
|
|
127
|
+
i0.ɵɵrepeater(lg_r5.user.contactMethods);
|
|
128
|
+
i0.ɵɵadvance(3);
|
|
129
|
+
i0.ɵɵproperty("pTooltip", i0.ɵɵinterpolate1("Forget ", lg_r5.user.userLabel));
|
|
128
130
|
} }
|
|
129
|
-
function
|
|
131
|
+
function AcuteLoginComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
130
132
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
131
|
-
i0.ɵɵelementStart(0, "div")(1, "div",
|
|
132
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
133
|
+
i0.ɵɵelementStart(0, "div")(1, "div", 4)(2, "div", 5)(3, "input", 6);
|
|
134
|
+
i0.ɵɵtwoWayListener("ngModelChange", function AcuteLoginComponent_Conditional_4_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.newContactValue, $event) || (ctx_r0.newContactValue = $event); return i0.ɵɵresetView($event); });
|
|
133
135
|
i0.ɵɵelementEnd();
|
|
134
|
-
i0.ɵɵelementStart(4, "p-button",
|
|
135
|
-
i0.ɵɵlistener("click", function
|
|
136
|
+
i0.ɵɵelementStart(4, "p-button", 7);
|
|
137
|
+
i0.ɵɵlistener("click", function AcuteLoginComponent_Conditional_4_Template_p_button_click_4_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.sendCodeToNewContact(ctx_r0.newContactValue)); });
|
|
136
138
|
i0.ɵɵelementEnd()();
|
|
137
|
-
i0.ɵɵ
|
|
139
|
+
i0.ɵɵconditionalCreate(5, AcuteLoginComponent_Conditional_4_Conditional_5_Template, 2, 0, "span", 8);
|
|
138
140
|
i0.ɵɵelementEnd();
|
|
139
|
-
i0.ɵɵ
|
|
141
|
+
i0.ɵɵconditionalCreate(6, AcuteLoginComponent_Conditional_4_Conditional_6_Template, 7, 0, "div", 9);
|
|
142
|
+
i0.ɵɵrepeaterCreate(7, AcuteLoginComponent_Conditional_4_For_8_Template, 10, 4, "div", null, i0.ɵɵrepeaterTrackByIndex);
|
|
140
143
|
i0.ɵɵelementEnd();
|
|
141
144
|
} if (rf & 2) {
|
|
142
145
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -145,30 +148,31 @@ function AcuteLoginComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
145
148
|
i0.ɵɵadvance();
|
|
146
149
|
i0.ɵɵproperty("disabled", ctx_r0.contactValueInvalidAndDirty());
|
|
147
150
|
i0.ɵɵadvance();
|
|
148
|
-
i0.ɵɵ
|
|
151
|
+
i0.ɵɵconditional(ctx_r0.contactValueInvalidAndDirty() ? 5 : -1);
|
|
149
152
|
i0.ɵɵadvance();
|
|
150
|
-
i0.ɵɵ
|
|
153
|
+
i0.ɵɵconditional(ctx_r0.hasRecentLogins ? 6 : -1);
|
|
151
154
|
i0.ɵɵadvance();
|
|
152
|
-
i0.ɵɵ
|
|
155
|
+
i0.ɵɵrepeater(ctx_r0.recentLogins);
|
|
153
156
|
} }
|
|
154
|
-
function
|
|
157
|
+
function AcuteLoginComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
155
158
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
156
|
-
i0.ɵɵelementStart(0, "div")(1, "p-fieldset",
|
|
159
|
+
i0.ɵɵelementStart(0, "div")(1, "p-fieldset", 23)(2, "div", 24)(3, "div");
|
|
157
160
|
i0.ɵɵtext(4, " Enter the code sent to ");
|
|
158
|
-
i0.ɵɵelementStart(5, "span",
|
|
161
|
+
i0.ɵɵelementStart(5, "span", 25);
|
|
159
162
|
i0.ɵɵtext(6);
|
|
160
163
|
i0.ɵɵelementEnd()();
|
|
161
|
-
i0.ɵɵelementStart(7, "input",
|
|
162
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
164
|
+
i0.ɵɵelementStart(7, "input", 26);
|
|
165
|
+
i0.ɵɵtwoWayListener("ngModelChange", function AcuteLoginComponent_Conditional_5_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.waitingContact.value, $event) || (ctx_r0.waitingContact.value = $event); return i0.ɵɵresetView($event); });
|
|
163
166
|
i0.ɵɵelementEnd();
|
|
164
|
-
i0.ɵɵelementStart(8, "p-inputOtp",
|
|
165
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
167
|
+
i0.ɵɵelementStart(8, "p-inputOtp", 27);
|
|
168
|
+
i0.ɵɵtwoWayListener("ngModelChange", function AcuteLoginComponent_Conditional_5_Template_p_inputOtp_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.verificationCode, $event) || (ctx_r0.verificationCode = $event); return i0.ɵɵresetView($event); });
|
|
169
|
+
i0.ɵɵlistener("ngModelChange", function AcuteLoginComponent_Conditional_5_Template_p_inputOtp_ngModelChange_8_listener() { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.otpChanged()); });
|
|
166
170
|
i0.ɵɵelementEnd();
|
|
167
|
-
i0.ɵɵelementStart(9, "div",
|
|
168
|
-
i0.ɵɵlistener("click", function
|
|
171
|
+
i0.ɵɵelementStart(9, "div", 5)(10, "p-button", 28);
|
|
172
|
+
i0.ɵɵlistener("click", function AcuteLoginComponent_Conditional_5_Template_p_button_click_10_listener() { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.submitVerificationCode(ctx_r0.waitingContact.value, ctx_r0.verificationCode)); });
|
|
169
173
|
i0.ɵɵelementEnd();
|
|
170
|
-
i0.ɵɵelementStart(11, "p-button",
|
|
171
|
-
i0.ɵɵlistener("click", function
|
|
174
|
+
i0.ɵɵelementStart(11, "p-button", 29);
|
|
175
|
+
i0.ɵɵlistener("click", function AcuteLoginComponent_Conditional_5_Template_p_button_click_11_listener() { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); ctx_r0.verificationCode = null; return i0.ɵɵresetView(ctx_r0.showCodePage = false); });
|
|
172
176
|
i0.ɵɵelementEnd()()()()();
|
|
173
177
|
} if (rf & 2) {
|
|
174
178
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -178,7 +182,8 @@ function AcuteLoginComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
178
182
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.waitingContact.value);
|
|
179
183
|
i0.ɵɵadvance();
|
|
180
184
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.verificationCode);
|
|
181
|
-
i0.ɵɵproperty("length", 6);
|
|
185
|
+
i0.ɵɵproperty("length", 6)("integerOnly", ctx_r0.integerOnly);
|
|
186
|
+
i0.ɵɵattribute("inputmode", ctx_r0.otpInputMode)("pattern", ctx_r0.otpInputPattern);
|
|
182
187
|
} }
|
|
183
188
|
export class AcuteLoginComponent {
|
|
184
189
|
route;
|
|
@@ -189,10 +194,14 @@ export class AcuteLoginComponent {
|
|
|
189
194
|
applicationName;
|
|
190
195
|
helperText;
|
|
191
196
|
postLoginUrl;
|
|
197
|
+
integerOnly;
|
|
198
|
+
createUserIfMissing = false;
|
|
199
|
+
caseSensitiveContactValues = false;
|
|
192
200
|
verificationCode;
|
|
193
201
|
waitingContact;
|
|
194
202
|
showCodePage = false;
|
|
195
203
|
newContactValue;
|
|
204
|
+
checkForBackgroundLogInTimerSubscription;
|
|
196
205
|
constructor(route, router, userService, wardenClient, dlgService) {
|
|
197
206
|
this.route = route;
|
|
198
207
|
this.router = router;
|
|
@@ -200,6 +209,38 @@ export class AcuteLoginComponent {
|
|
|
200
209
|
this.wardenClient = wardenClient;
|
|
201
210
|
this.dlgService = dlgService;
|
|
202
211
|
Logger.info('Found %s recent logins', this.recentLogins.length);
|
|
212
|
+
this.checkForBackgroundLogInTimerSubscription = timer(0, 2_500).subscribe(async (_t) => {
|
|
213
|
+
if (this.userService.isLoggedIn()) {
|
|
214
|
+
Logger.info('Detected background login - redirecting');
|
|
215
|
+
await this.router.navigate([this.postLoginUrl]);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
ngOnInit() {
|
|
220
|
+
Logger.info('Login init');
|
|
221
|
+
RequireRatchet.notNullUndefinedOrOnlyWhitespaceString(this.postLoginUrl, 'postLoginUrl may not be empty');
|
|
222
|
+
const mode = StringRatchet.trimToNull(this.route.snapshot.queryParamMap.get('mode'));
|
|
223
|
+
const code = StringRatchet.trimToNull(this.route.snapshot.queryParamMap.get('code'));
|
|
224
|
+
const contactClear = StringRatchet.trimToNull(this.route.snapshot.queryParamMap.get('contact'));
|
|
225
|
+
const contactB64 = StringRatchet.trimToNull(this.route.snapshot.queryParamMap.get('contactEncoded'));
|
|
226
|
+
const contact = contactB64 ? Base64Ratchet.base64StringToString(contactB64) : contactClear;
|
|
227
|
+
if (mode === 'auto' && code && contact) {
|
|
228
|
+
this.attemptAutoLogin(contact, code).then(No.op);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
Logger.info('No auto-login detected');
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
ngOnDestroy() {
|
|
235
|
+
if (this.checkForBackgroundLogInTimerSubscription) {
|
|
236
|
+
this.checkForBackgroundLogInTimerSubscription.unsubscribe();
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
get otpInputMode() {
|
|
240
|
+
return this.integerOnly ? 'numeric' : 'text';
|
|
241
|
+
}
|
|
242
|
+
get otpInputPattern() {
|
|
243
|
+
return this.integerOnly ? '[0-9]*' : '[0-9A-Za-z]*';
|
|
203
244
|
}
|
|
204
245
|
userById(index, ld) {
|
|
205
246
|
return ld.user.userId;
|
|
@@ -211,7 +252,8 @@ export class AcuteLoginComponent {
|
|
|
211
252
|
return this.recentLogins.length > 0;
|
|
212
253
|
}
|
|
213
254
|
get recentLogins() {
|
|
214
|
-
|
|
255
|
+
let rval = this.userService?.serviceOptions?.recentLoginProvider?.fetchAllLogins() || [];
|
|
256
|
+
rval = rval.filter((ld) => { return ld?.user?.contactMethods?.length > 0 || ld?.user?.webAuthnAuthenticatorSummaries?.length > 0; });
|
|
215
257
|
return rval;
|
|
216
258
|
}
|
|
217
259
|
clearSavedLogins() {
|
|
@@ -219,10 +261,19 @@ export class AcuteLoginComponent {
|
|
|
219
261
|
this.userService.serviceOptions.recentLoginProvider.clearAllLogins();
|
|
220
262
|
}
|
|
221
263
|
}
|
|
222
|
-
|
|
223
|
-
|
|
264
|
+
async attemptAutoLogin(contactValue, code) {
|
|
265
|
+
Logger.info('Attempting auto-login');
|
|
266
|
+
const contact = WardenUtils.stringToWardenContact(contactValue);
|
|
267
|
+
const wrapper = await this.userService.executeValidationTokenBasedLogin(contact, code, this.createUserIfMissing);
|
|
268
|
+
if (wrapper) {
|
|
269
|
+
await this.router.navigate([this.postLoginUrl]);
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
Logger.info('Auto-login failed');
|
|
273
|
+
}
|
|
224
274
|
}
|
|
225
|
-
async sendCodeToNewContact(
|
|
275
|
+
async sendCodeToNewContact(inValue) {
|
|
276
|
+
const value = this.caseSensitiveContactValues ? inValue : inValue.toLowerCase();
|
|
226
277
|
Logger.info('Trying to send code to %s %s %s', value, WardenUtils.stringIsEmailAddress(value), WardenUtils.stringIsPhoneNumber(value));
|
|
227
278
|
if (StringRatchet.trimToNull(value)) {
|
|
228
279
|
let ct = null;
|
|
@@ -265,7 +316,7 @@ export class AcuteLoginComponent {
|
|
|
265
316
|
}
|
|
266
317
|
async submitVerificationCode(input, verificationCode) {
|
|
267
318
|
Logger.info('Submit: %s, %s', input, verificationCode);
|
|
268
|
-
const val = await this.userService.executeValidationTokenBasedLogin({ type: WardenUtils.stringToContactType(input), value: input }, verificationCode);
|
|
319
|
+
const val = await this.userService.executeValidationTokenBasedLogin({ type: WardenUtils.stringToContactType(input), value: input }, verificationCode, this.createUserIfMissing);
|
|
269
320
|
if (val) {
|
|
270
321
|
await this.router.navigate([this.postLoginUrl]);
|
|
271
322
|
}
|
|
@@ -291,29 +342,37 @@ export class AcuteLoginComponent {
|
|
|
291
342
|
!WardenUtils.stringIsPhoneNumber(this.newContactValue) &&
|
|
292
343
|
!WardenUtils.stringIsEmailAddress(this.newContactValue));
|
|
293
344
|
}
|
|
345
|
+
async otpChanged() {
|
|
346
|
+
if (this.waitingContact?.value && this.verificationCode?.length === 6) {
|
|
347
|
+
Logger.debug('Code length is 6, submitting');
|
|
348
|
+
await this.submitVerificationCode(this.waitingContact.value, this.verificationCode);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
294
351
|
static ɵfac = function AcuteLoginComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AcuteLoginComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.WardenUserService), i0.ɵɵdirectiveInject(i3.WardenClient), i0.ɵɵdirectiveInject(i4.DialogService)); };
|
|
295
|
-
static ɵcmp = i0.ɵɵdefineComponent({ type: AcuteLoginComponent, selectors: [["ngx-acute-warden-login"]], inputs: { applicationName: "applicationName", helperText: "helperText", postLoginUrl: "postLoginUrl" }, decls: 6, vars: 4, consts: [[2, "display", "flex", "flex-direction", "column", "margin", "10px", "padding", "2px", "align-content", "center", "justify-content", "center"], [2, "display", "flex", "flex-direction", "column", "align-content", "center", "justify-content", "center", "margin", "1em", "gap", "2px"], [
|
|
352
|
+
static ɵcmp = i0.ɵɵdefineComponent({ type: AcuteLoginComponent, selectors: [["ngx-acute-warden-login"]], inputs: { applicationName: "applicationName", helperText: "helperText", postLoginUrl: "postLoginUrl", integerOnly: "integerOnly", createUserIfMissing: "createUserIfMissing", caseSensitiveContactValues: "caseSensitiveContactValues" }, decls: 6, vars: 4, consts: [[2, "display", "flex", "flex-direction", "column", "margin", "10px", "padding", "2px", "align-content", "center", "justify-content", "center"], [2, "display", "flex", "flex-direction", "column", "align-content", "center", "justify-content", "center", "margin", "1em", "gap", "2px"], [1, "text-3xl", "font-bold", "text-center", "text-primary"], [1, "text-base", "font-italic", "text-center", "text-secondary"], [2, "display", "flex", "flex-direction", "column"], [2, "display", "flex", "flex-direction", "row", "justify-content", "space-between", "gap", "5px"], ["id", "newContactValue", "pInputText", "", "placeholder", "Your Email or Text-Capable Phone", "type", "text", 1, "p-inputtext", "rounded-input", 2, "width", "100%", 3, "ngModelChange", "ngModel"], ["icon", "pi pi-envelope", "pTooltip", "Send code", 3, "click", "disabled"], [2, "color", "red"], [2, "display", "flex", "flex-direction", "row", "justify-content", "space-around", "margin", "2em"], [1, "text-lg", "font-italic"], [2, "display", "flex", "flex-direction", "row", "justify-content", "space-between"], [1, "p-toolbar-start"], [1, "p-toolbar-center", 2, "display", "flex", "flex-direction", "row", "gap", "1em"], ["icon", "pi pi-lock-open", "pTooltip", "Authenticate by device (WebAuthn)"], [2, "display", "flex", "flex-direction", "row", "gap", "5px"], [1, "p-toolbar-end"], ["icon", "pi pi-delete-left", "severity", "danger", 3, "click", "pTooltip"], ["icon", "pi pi-lock-open", "pTooltip", "Authenticate by device (WebAuthn)", 3, "click"], ["icon", "pi pi-envelope", 3, "pTooltip"], ["icon", "pi pi-mobile", 3, "pTooltip"], ["icon", "pi pi-envelope", 3, "click", "pTooltip"], ["icon", "pi pi-mobile", 3, "click", "pTooltip"], ["legend", "One-Time Code"], [2, "display", "flex", "flex-direction", "column", "min-width", "100%", "justify-content", "center", "align-items", "center", "gap", "10px"], [2, "font-weight", "bolder"], ["type", "hidden", "id", "waitingContactValue", "readonly", "true", 1, "p-inputtext", "rounded-input", 3, "ngModelChange", "ngModel"], ["id", "verificationCode", "size", "large", 3, "ngModelChange", "ngModel", "length", "integerOnly"], ["label", "Submit code", 3, "click"], ["label", "Cancel", 3, "click"]], template: function AcuteLoginComponent_Template(rf, ctx) { if (rf & 1) {
|
|
296
353
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
297
|
-
i0.ɵɵ
|
|
354
|
+
i0.ɵɵconditionalCreate(2, AcuteLoginComponent_Conditional_2_Template, 2, 1, "div", 2);
|
|
355
|
+
i0.ɵɵconditionalCreate(3, AcuteLoginComponent_Conditional_3_Template, 2, 1, "div", 3);
|
|
298
356
|
i0.ɵɵelementEnd();
|
|
299
|
-
i0.ɵɵ
|
|
357
|
+
i0.ɵɵconditionalCreate(4, AcuteLoginComponent_Conditional_4_Template, 9, 4, "div");
|
|
358
|
+
i0.ɵɵconditionalCreate(5, AcuteLoginComponent_Conditional_5_Template, 12, 7, "div");
|
|
300
359
|
i0.ɵɵelementEnd();
|
|
301
360
|
} if (rf & 2) {
|
|
302
361
|
i0.ɵɵadvance(2);
|
|
303
|
-
i0.ɵɵ
|
|
362
|
+
i0.ɵɵconditional(ctx.applicationName ? 2 : -1);
|
|
304
363
|
i0.ɵɵadvance();
|
|
305
|
-
i0.ɵɵ
|
|
364
|
+
i0.ɵɵconditional(ctx.helperText ? 3 : -1);
|
|
306
365
|
i0.ɵɵadvance();
|
|
307
|
-
i0.ɵɵ
|
|
366
|
+
i0.ɵɵconditional(!ctx.showCodePage ? 4 : -1);
|
|
308
367
|
i0.ɵɵadvance();
|
|
309
|
-
i0.ɵɵ
|
|
368
|
+
i0.ɵɵconditional(ctx.showCodePage ? 5 : -1);
|
|
310
369
|
} }, dependencies: [ButtonModule, i5.Button, RouterModule,
|
|
311
|
-
FormsModule, i6.DefaultValueAccessor, i6.NgControlStatus, i6.NgModel, CommonModule,
|
|
312
|
-
|
|
313
|
-
|
|
370
|
+
FormsModule, i6.DefaultValueAccessor, i6.NgControlStatus, i6.NgModel, CommonModule,
|
|
371
|
+
CardModule,
|
|
372
|
+
TooltipModule, i7.Tooltip, FieldsetModule, i8.Fieldset, InputTextModule, i9.InputText, InputOtpModule, i10.InputOtp, AccordionModule,
|
|
314
373
|
SplitButtonModule,
|
|
315
374
|
InputGroupModule,
|
|
316
|
-
ToolbarModule],
|
|
375
|
+
ToolbarModule], styles: [".custom-otp-input[_ngcontent-%COMP%] {\n width: 40px;\n font-size: 36px;\n border: 0 none;\n appearance: none;\n text-align: center;\n transition: all 0.2s;\n background: transparent;\n border-bottom: 2px solid grey;\n border-radius: 0px;\n }\n\n .custom-otp-input[_ngcontent-%COMP%]:focus {\n outline: 0 none;\n border-bottom-color: var(--p-primary-color);\n }"] });
|
|
317
376
|
}
|
|
318
377
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcuteLoginComponent, [{
|
|
319
378
|
type: Component,
|
|
@@ -329,17 +388,22 @@ export class AcuteLoginComponent {
|
|
|
329
388
|
InputTextModule,
|
|
330
389
|
InputOtpModule,
|
|
331
390
|
AccordionModule,
|
|
332
|
-
TabViewModule,
|
|
333
391
|
SplitButtonModule,
|
|
334
392
|
InputGroupModule,
|
|
335
393
|
ToolbarModule,
|
|
336
|
-
], template: "<div style=\"display: flex; flex-direction: column; margin: 10px; padding: 2px; align-content: center; justify-content: center\">\n <div style=\"display: flex; flex-direction: column; align-content: center; justify-content: center; margin: 1em; gap: 2px\">\n <div class=\"text-3xl font-bold text-center text-primary\"
|
|
394
|
+
], template: "<div style=\"display: flex; flex-direction: column; margin: 10px; padding: 2px; align-content: center; justify-content: center\">\n <div style=\"display: flex; flex-direction: column; align-content: center; justify-content: center; margin: 1em; gap: 2px\">\n @if(applicationName) {\n <div class=\"text-3xl font-bold text-center text-primary\">{{ applicationName }}</div>\n }\n @if(helperText) {\n <div class=\"text-base font-italic text-center text-secondary\">{{ helperText }}</div>\n }\n </div>\n\n @if(!showCodePage) {\n <div>\n <!--<button pButton icon=\"pi pi-ban\" label=\"Clear Saved Logins\" (click)=\"clearSavedLogins()\" style=\"margin-top: 10px\"></button>-->\n\n <div style=\"display: flex; flex-direction: column\">\n <div style=\"display: flex; flex-direction: row; justify-content: space-between; gap: 5px\">\n <input\n class=\"p-inputtext rounded-input\"\n [(ngModel)]=\"newContactValue\"\n id=\"newContactValue\"\n pInputText\n style=\"width: 100%\"\n placeholder=\"Your Email or Text-Capable Phone\"\n type=\"text\"\n />\n <p-button\n icon=\"pi pi-envelope\"\n (click)=\"sendCodeToNewContact(newContactValue)\"\n pTooltip=\"Send code\"\n [disabled]=\"contactValueInvalidAndDirty()\"\n >\n </p-button>\n </div>\n @if(contactValueInvalidAndDirty()) {\n <span style=\"color: red\">Valid email or phone number required</span>\n }\n </div>\n\n @if(hasRecentLogins){\n <div style=\"display: flex; flex-direction: row; justify-content: space-around; margin: 2em\">\n <div>-----</div>\n <div class=\"text-lg font-italic\">Or select a previously used method</div>\n <div>-----</div>\n </div>\n }\n\n @for(lg of recentLogins; track $index) { <!-- lg.userById -->\n <div>\n <div style=\"display: flex; flex-direction: row; justify-content: space-between\">\n <h3 class=\"p-toolbar-start\">{{ lg.user.userLabel }}</h3>\n <div class=\"p-toolbar-center\" style=\"display: flex; flex-direction: row; gap: 1em\">\n @if(lg?.user?.webAuthnAuthenticatorSummaries?.length) {\n <p-button\n icon=\"pi pi-lock-open\"\n (click)=\"processWebAuthnLogin(lg.user.userId)\"\n pTooltip=\"Authenticate by device (WebAuthn)\"\n >\n </p-button>\n }\n @for(e of lg.user.contactMethods; track $index) { <!-- e.contactByName -->\n <div style=\"display: flex; flex-direction: row; gap: 5px\">\n @if(e.type === 'EmailAddress'){\n <p-button\n icon=\"pi pi-envelope\"\n (click)=\"sendCodeToContact(e)\"\n pTooltip=\"{{ e.value }}\"\n ></p-button>\n }\n @if(e.type === 'TextCapablePhoneNumber'){\n <p-button\n icon=\"pi pi-mobile\"\n (click)=\"sendCodeToContact(e)\"\n pTooltip=\"{{ e.value }}\"\n ></p-button>\n }\n </div>\n }\n </div>\n\n <div class=\"p-toolbar-end\">\n <p-button\n icon=\"pi pi-delete-left\"\n severity=\"danger\"\n (click)=\"removeSingleLogin(lg.user.userId)\"\n pTooltip=\"Forget {{ lg.user.userLabel }}\"\n ></p-button>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n @if(showCodePage) {\n <div>\n <p-fieldset legend=\"One-Time Code\">\n <div style=\"display: flex; flex-direction: column; min-width: 100%; justify-content: center; align-items: center; gap: 10px\">\n <div>\n Enter the code sent to <span style=\"font-weight: bolder\">{{ waitingContact.value }}</span>\n </div>\n <input\n type=\"hidden\"\n class=\"p-inputtext rounded-input\"\n [(ngModel)]=\"waitingContact.value\"\n id=\"waitingContactValue\"\n readonly=\"true\"\n />\n <!-- <p-inputOtp [(ngModel)]=\"verificationCode\" id=\"verificationCode\" [length]=\"6\" size=\"large\"\n [integerOnly]=\"integerOnly\" (ngModelChange)=\"otpChanged()\">\n <ng-template #input let-token let-events=\"events\">\n <input class=\"custom-otp-input\" (input)=\"events.input($event)\" (keydown)=\"events.keydown($event)\" type=\"text\" [attr.value]=\"token\" [maxLength]=\"1\" />\n </ng-template>\n </p-inputOtp> -->\n <p-inputOtp [(ngModel)]=\"verificationCode\" id=\"verificationCode\" [length]=\"6\" size=\"large\"\n [integerOnly]=\"integerOnly\" (ngModelChange)=\"otpChanged()\"\n [attr.inputmode]=\"otpInputMode\" [attr.pattern]=\"otpInputPattern\"\n />\n <div style=\"display: flex; flex-direction: row; justify-content: space-between; gap: 5px\">\n <p-button (click)=\"submitVerificationCode(waitingContact.value, verificationCode)\" label=\"Submit code\" > </p-button>\n <p-button (click)=\"verificationCode = null; showCodePage = false\" label=\"Cancel\"></p-button>\n </div>\n </div>\n </p-fieldset>\n </div>\n }\n</div>\n", styles: ["\n .custom-otp-input {\n width: 40px;\n font-size: 36px;\n border: 0 none;\n appearance: none;\n text-align: center;\n transition: all 0.2s;\n background: transparent;\n border-bottom: 2px solid grey;\n border-radius: 0px;\n }\n\n .custom-otp-input:focus {\n outline: 0 none;\n border-bottom-color: var(--p-primary-color);\n }\n "] }]
|
|
337
395
|
}], () => [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i2.WardenUserService }, { type: i3.WardenClient }, { type: i4.DialogService }], { applicationName: [{
|
|
338
396
|
type: Input
|
|
339
397
|
}], helperText: [{
|
|
340
398
|
type: Input
|
|
341
399
|
}], postLoginUrl: [{
|
|
342
400
|
type: Input
|
|
401
|
+
}], integerOnly: [{
|
|
402
|
+
type: Input
|
|
403
|
+
}], createUserIfMissing: [{
|
|
404
|
+
type: Input
|
|
405
|
+
}], caseSensitiveContactValues: [{
|
|
406
|
+
type: Input
|
|
343
407
|
}] }); })();
|
|
344
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AcuteLoginComponent, { className: "AcuteLoginComponent", filePath: "components/acute-login/acute-login.component.ts", lineNumber:
|
|
408
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AcuteLoginComponent, { className: "AcuteLoginComponent", filePath: "components/acute-login/acute-login.component.ts", lineNumber: 73 }); })();
|
|
345
409
|
//# sourceMappingURL=acute-login.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acute-login.component.js","sourceRoot":"","sources":["../../../src/components/acute-login/acute-login.component.ts","../../../src/components/acute-login/acute-login.component.html"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"acute-login.component.js","sourceRoot":"","sources":["../../../src/components/acute-login/acute-login.component.ts","../../../src/components/acute-login/acute-login.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAG,SAAS,EAAG,KAAK,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,Y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d,eAAe;oBACf,iBAAiB;oBACjB,gBAAgB;oBAChB,aAAa;iBACd;;kBAuBA,KAAK;;kBACL,KAAK;;kBAEL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,KAAK;;kFARK,mBAAmB"}
|
|
@@ -14,10 +14,9 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
import * as i1 from "@angular/router";
|
|
15
15
|
import * as i2 from "@bitblit/ratchet-warden-common/client/warden-user-service";
|
|
16
16
|
import * as i3 from "primeng/card";
|
|
17
|
-
import * as i4 from "@angular/common";
|
|
18
17
|
const _c0 = a0 => [a0];
|
|
19
|
-
function
|
|
20
|
-
i0.ɵɵelementStart(0, "a",
|
|
18
|
+
function AcuteMagicLanderComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelementStart(0, "a", 3);
|
|
21
20
|
i0.ɵɵtext(1, "Back to login page");
|
|
22
21
|
i0.ɵɵelementEnd();
|
|
23
22
|
} if (rf & 2) {
|
|
@@ -78,22 +77,22 @@ export class AcuteMagicLanderComponent {
|
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
static ɵfac = function AcuteMagicLanderComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AcuteMagicLanderComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.WardenUserService)); };
|
|
81
|
-
static ɵcmp = i0.ɵɵdefineComponent({ type: AcuteMagicLanderComponent, selectors: [["ngx-acute-warden-magic-lander"]], inputs: { directLoginUrl: "directLoginUrl" }, decls: 6, vars: 2, consts: [[1, "row"], ["header", "Magic Lander"], [2, "display", "flex", "flex-direction", "column"], ["pButton", "", 3, "routerLink"
|
|
80
|
+
static ɵcmp = i0.ɵɵdefineComponent({ type: AcuteMagicLanderComponent, selectors: [["ngx-acute-warden-magic-lander"]], inputs: { directLoginUrl: "directLoginUrl" }, decls: 6, vars: 2, consts: [[1, "row"], ["header", "Magic Lander"], [2, "display", "flex", "flex-direction", "column"], ["pButton", "", 3, "routerLink"]], template: function AcuteMagicLanderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
82
81
|
i0.ɵɵelementStart(0, "div", 0)(1, "p-card", 1)(2, "div", 2)(3, "p");
|
|
83
82
|
i0.ɵɵtext(4);
|
|
84
83
|
i0.ɵɵelementEnd();
|
|
85
|
-
i0.ɵɵ
|
|
84
|
+
i0.ɵɵconditionalCreate(5, AcuteMagicLanderComponent_Conditional_5_Template, 2, 3, "a", 3);
|
|
86
85
|
i0.ɵɵelementEnd()()();
|
|
87
86
|
} if (rf & 2) {
|
|
88
87
|
i0.ɵɵadvance(4);
|
|
89
88
|
i0.ɵɵtextInterpolate(ctx.currentStatus);
|
|
90
89
|
i0.ɵɵadvance();
|
|
91
|
-
i0.ɵɵ
|
|
92
|
-
} }, dependencies: [CardModule, i3.Card, RouterModule, i1.RouterLink, FormsModule, CommonModule,
|
|
90
|
+
i0.ɵɵconditional(ctx.showLoginButton ? 5 : -1);
|
|
91
|
+
} }, dependencies: [CardModule, i3.Card, RouterModule, i1.RouterLink, FormsModule, CommonModule, ButtonDirective], encapsulation: 2 });
|
|
93
92
|
}
|
|
94
93
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcuteMagicLanderComponent, [{
|
|
95
94
|
type: Component,
|
|
96
|
-
args: [{ selector: 'ngx-acute-warden-magic-lander', standalone: true, imports: [CardModule, RouterModule, FormsModule, CommonModule, CardModule, ButtonDirective], template: "<div class=\"row\">\n <p-card header=\"Magic Lander\">\n <div style=\"display: flex; flex-direction: column\">\n <p>{{ currentStatus }}</p>\n <a [routerLink]=\"[directLoginUrl]\"
|
|
95
|
+
args: [{ selector: 'ngx-acute-warden-magic-lander', standalone: true, imports: [CardModule, RouterModule, FormsModule, CommonModule, CardModule, ButtonDirective], template: "<div class=\"row\">\n <p-card header=\"Magic Lander\">\n <div style=\"display: flex; flex-direction: column\">\n <p>{{ currentStatus }}</p>\n @if (showLoginButton) {\n <a [routerLink]=\"[directLoginUrl]\" pButton>Back to login page</a>\n }\n </div>\n </p-card>\n</div>\n" }]
|
|
97
96
|
}], () => [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i2.WardenUserService }], { directLoginUrl: [{
|
|
98
97
|
type: Input
|
|
99
98
|
}] }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acute-magic-lander.component.js","sourceRoot":"","sources":["../../../src/components/acute-magic-lander/acute-magic-lander.component.ts","../../../src/components/acute-magic-lander/acute-magic-lander.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2DAA2D,CAAC;AAC9F,OAAO,EAAE,EAAE,EAAE,MAAM,iCAAiC,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAG5E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC
|
|
1
|
+
{"version":3,"file":"acute-magic-lander.component.js","sourceRoot":"","sources":["../../../src/components/acute-magic-lander/acute-magic-lander.component.ts","../../../src/components/acute-magic-lander/acute-magic-lander.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,M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M,CAAC,IAAI,CAAC,oDAAoD,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;QACrG,CAAC;QACD,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,EAAE,CAAC;YAClC,IAAI,IAAI,EAAE,QAAQ,EAAE,CAAC;gBACnB,MAAM,CAAC,IAAI,CAAC,+BAA+B,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC5D,IAAI,CAAC,aAAa,GAAG,iBAAiB,GAAG,IAAI,CAAC,QAAQ,CAAC;gBACvD,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC9C,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;YAC9C,IAAI,CAAC,aAAa,GAAG,sCAAsC,CAAC;YAC5D,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC9B,CAAC;IACH,CAAC;mHAtDU,yBAAyB;+CAAzB,yBAAyB;YCnBhC,AADF,AADF,AADF,8BAAiB,gBACe,aACuB,QAC9C;YAAA,YAAmB;YAAA,iBAAI;YAC1B,yFAAuB;YAK7B,AADE,AADE,iBAAM,EACC,EACL;;YANG,eAAmB;YAAnB,uCAAmB;YACtB,cAEC;YAFD,8CAEC;4BDcK,UAAU,WAAE,YAAY,iBAAE,WAAW,EAAE,YAAY,EAAc,eAAe;;iFAE/E,yBAAyB;cANrC,SAAS;2BACE,+BAA+B,cAE7B,IAAI,WACP,CAAC,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,CAAC;;kBAG1F,KAAK;;kFADK,yBAAyB"}
|
|
@@ -19,6 +19,8 @@ export declare class AcuteUserProfileComponent {
|
|
|
19
19
|
addWebAuthnDevice(): Promise<void>;
|
|
20
20
|
removeContact(ct: WardenContact): Promise<void>;
|
|
21
21
|
removeWebAuthn(webId: WardenWebAuthnEntrySummary): Promise<void>;
|
|
22
|
+
exportWebAuthn(origin: string): Promise<string>;
|
|
23
|
+
importWebAuthn(): Promise<boolean>;
|
|
22
24
|
webAuthLabel(webId: WardenWebAuthnEntrySummary): string;
|
|
23
25
|
performLogout(): void;
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcuteUserProfileComponent, never>;
|