@keycloakify/angular 0.0.1-rc.2 → 0.0.1-rc.3
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/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +3 -3
- package/login/components/field-errors/field-errors.component.mjs +3 -3
- package/login/components/group-label/group-label.component.mjs +3 -3
- package/login/components/input-field-by-type/input-field-by-type.component.mjs +4 -11
- package/login/components/input-tag/input-tag.component.mjs +3 -3
- package/login/components/input-tag-selects/input-tag-selects.component.mjs +3 -3
- package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +3 -3
- package/login/components/password-wrapper/password-wrapper.component.mjs +3 -3
- package/login/components/select-tag/select-tag.component.mjs +3 -3
- package/login/components/textarea-tag/textarea-tag.component.mjs +3 -3
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +4 -11
- package/login/containers/template.component.mjs +4 -5
- package/login/pages/code/code.component.mjs +3 -3
- package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +3 -3
- package/login/pages/delete-credential/delete-credential.component.mjs +3 -3
- package/login/pages/error/error.component.mjs +3 -3
- package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +3 -3
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +4 -9
- package/login/pages/info/info.component.mjs +3 -3
- package/login/pages/login/login.component.mjs +5 -15
- package/login/pages/login-config-totp/login-config-totp.component.mjs +4 -11
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +3 -3
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +3 -3
- package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +3 -3
- package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +3 -3
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +3 -3
- package/login/pages/login-otp/login-otp.component.mjs +3 -3
- package/login/pages/login-page-expired/login-page-expired.component.mjs +3 -3
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +3 -3
- package/login/pages/login-password/login-password.component.mjs +4 -10
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +4 -9
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +3 -3
- package/login/pages/login-reset-otp/login-reset-otp.component.mjs +3 -3
- package/login/pages/login-reset-password/login-reset-password.component.mjs +3 -3
- package/login/pages/login-update-password/login-update-password.component.mjs +4 -11
- package/login/pages/login-update-profile/login-update-profile.component.mjs +4 -9
- package/login/pages/login-username/login-username.component.mjs +5 -14
- package/login/pages/login-verify-email/login-verify-email.component.mjs +3 -3
- package/login/pages/login-x509-info/login-x509-info.component.mjs +3 -3
- package/login/pages/logout-confirm/logout-confirm.component.mjs +3 -3
- package/login/pages/register/register.component.mjs +3 -3
- package/login/pages/saml-post-form/saml-post-form.component.mjs +3 -3
- package/login/pages/select-authenticator/select-authenticator.component.mjs +4 -10
- package/login/pages/terms/terms.component.mjs +3 -3
- package/login/pages/update-email/update-email.component.mjs +4 -10
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +4 -10
- package/login/pages/webauthn-error/webauthn-error.component.mjs +4 -9
- package/login/pages/webauthn-register/webauthn-register.component.mjs +4 -9
- package/package.json +5 -5
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +19 -19
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +2 -12
- package/src/login/components/field-errors/field-errors.component.html +10 -10
- package/src/login/components/field-errors/field-errors.component.ts +1 -7
- package/src/login/components/group-label/group-label.component.html +25 -25
- package/src/login/components/group-label/group-label.component.ts +1 -8
- package/src/login/components/input-field-by-type/input-field-by-type.component.html +57 -57
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +3 -21
- package/src/login/components/input-tag/input-tag.component.html +41 -45
- package/src/login/components/input-tag/input-tag.component.ts +2 -13
- package/src/login/components/input-tag-selects/input-tag-selects.component.html +22 -22
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +3 -17
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +15 -15
- package/src/login/components/password-wrapper/password-wrapper.component.html +13 -13
- package/src/login/components/password-wrapper/password-wrapper.component.ts +2 -15
- package/src/login/components/select-tag/select-tag.component.html +26 -26
- package/src/login/components/select-tag/select-tag.component.ts +4 -19
- package/src/login/components/textarea-tag/textarea-tag.component.html +13 -15
- package/src/login/components/textarea-tag/textarea-tag.component.ts +2 -12
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +71 -71
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +4 -28
- package/src/login/containers/template.component.html +183 -183
- package/src/login/containers/template.component.ts +4 -22
- package/src/login/pages/code/code.component.html +21 -21
- package/src/login/pages/code/code.component.ts +1 -5
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +44 -42
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +2 -7
- package/src/login/pages/delete-credential/delete-credential.component.html +29 -29
- package/src/login/pages/delete-credential/delete-credential.component.ts +3 -14
- package/src/login/pages/error/error.component.html +20 -20
- package/src/login/pages/error/error.component.ts +1 -5
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +31 -31
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +3 -15
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +36 -36
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +4 -21
- package/src/login/pages/info/info.component.html +45 -45
- package/src/login/pages/info/info.component.ts +3 -15
- package/src/login/pages/login/login.component.html +194 -194
- package/src/login/pages/login/login.component.ts +5 -30
- package/src/login/pages/login-config-totp/login-config-totp.component.html +189 -179
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +5 -26
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +35 -35
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +3 -14
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +34 -34
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +3 -16
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +32 -30
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +3 -14
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +83 -81
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +3 -14
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +57 -57
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +3 -16
- package/src/login/pages/login-otp/login-otp.component.html +96 -96
- package/src/login/pages/login-otp/login-otp.component.ts +2 -12
- package/src/login/pages/login-page-expired/login-page-expired.component.html +31 -31
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +3 -14
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +183 -181
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +2 -9
- package/src/login/pages/login-password/login-password.component.html +82 -82
- package/src/login/pages/login-password/login-password.component.ts +3 -20
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +142 -142
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +4 -23
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +67 -67
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +4 -18
- package/src/login/pages/login-reset-otp/login-reset-otp.component.html +61 -59
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +2 -12
- package/src/login/pages/login-reset-password/login-reset-password.component.html +84 -84
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +3 -14
- package/src/login/pages/login-update-password/login-update-password.component.html +107 -107
- package/src/login/pages/login-update-password/login-update-password.component.ts +5 -26
- package/src/login/pages/login-update-profile/login-update-profile.component.html +53 -53
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +4 -21
- package/src/login/pages/login-username/login-username.component.html +146 -146
- package/src/login/pages/login-username/login-username.component.ts +4 -25
- package/src/login/pages/login-verify-email/login-verify-email.component.html +22 -22
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +3 -14
- package/src/login/pages/login-x509-info/login-x509-info.component.html +96 -96
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +2 -12
- package/src/login/pages/logout-confirm/logout-confirm.component.html +51 -51
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +2 -12
- package/src/login/pages/register/register.component.html +113 -113
- package/src/login/pages/register/register.component.ts +2 -13
- package/src/login/pages/saml-post-form/saml-post-form.component.html +47 -48
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +2 -14
- package/src/login/pages/select-authenticator/select-authenticator.component.html +43 -44
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +4 -21
- package/src/login/pages/terms/terms.component.html +32 -32
- package/src/login/pages/terms/terms.component.ts +2 -12
- package/src/login/pages/update-email/update-email.component.html +52 -52
- package/src/login/pages/update-email/update-email.component.ts +3 -20
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +146 -148
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +5 -29
- package/src/login/pages/webauthn-error/webauthn-error.component.html +53 -53
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +3 -18
- package/src/login/pages/webauthn-register/webauthn-register.component.html +73 -73
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +4 -20
- package/src/tsconfig.json +0 -1
|
@@ -1,29 +1,12 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
Component,
|
|
5
|
-
ContentChild,
|
|
6
|
-
effect,
|
|
7
|
-
forwardRef,
|
|
8
|
-
inject,
|
|
9
|
-
output,
|
|
10
|
-
TemplateRef
|
|
11
|
-
} from '@angular/core';
|
|
12
|
-
import {
|
|
13
|
-
DO_MAKE_USER_CONFIRM_PASSWORD,
|
|
14
|
-
KC_CONTEXT,
|
|
15
|
-
CLASSES,
|
|
16
|
-
USE_DEFAULT_CSS
|
|
17
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ContentChild, effect, forwardRef, inject, output, TemplateRef } from '@angular/core';
|
|
3
|
+
import { DO_MAKE_USER_CONFIRM_PASSWORD, KC_CONTEXT, CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
18
4
|
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
19
5
|
import { KcContext } from 'keycloakify/login/KcContext';
|
|
20
6
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
21
7
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
22
8
|
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
23
|
-
import {
|
|
24
|
-
FormAction,
|
|
25
|
-
UserProfileFormService
|
|
26
|
-
} from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
9
|
+
import { FormAction, UserProfileFormService } from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
27
10
|
import { FieldErrorsComponent } from '@keycloakify/angular/login/components/field-errors/field-errors.component';
|
|
28
11
|
import { GroupLabelComponent } from '@keycloakify/angular/login/components/group-label/group-label.component';
|
|
29
12
|
import { InputFieldByTypeComponent } from '@keycloakify/angular/login/components/input-field-by-type/input-field-by-type.component';
|
|
@@ -37,14 +20,7 @@ import { InputFieldByTypeComponent } from '@keycloakify/angular/login/components
|
|
|
37
20
|
}
|
|
38
21
|
`
|
|
39
22
|
],
|
|
40
|
-
imports: [
|
|
41
|
-
KcClassDirective,
|
|
42
|
-
FieldErrorsComponent,
|
|
43
|
-
InputFieldByTypeComponent,
|
|
44
|
-
GroupLabelComponent,
|
|
45
|
-
NgTemplateOutlet,
|
|
46
|
-
AdvancedMsgStrPipe
|
|
47
|
-
],
|
|
23
|
+
imports: [KcClassDirective, FieldErrorsComponent, InputFieldByTypeComponent, GroupLabelComponent, NgTemplateOutlet, AdvancedMsgStrPipe],
|
|
48
24
|
selector: 'kc-user-profile-form-fields',
|
|
49
25
|
templateUrl: 'user-profile-form-fields.component.html',
|
|
50
26
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -6,198 +6,198 @@
|
|
|
6
6
|
@let isReadyToRender = isReadyToRender$ | async;
|
|
7
7
|
|
|
8
8
|
@if (isReadyToRender) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<div
|
|
15
|
-
id="kc-header-wrapper"
|
|
16
|
-
[kcClass]="'kcHeaderWrapperClass'"
|
|
17
|
-
>
|
|
18
|
-
<div [innerHTML]="realm?.displayNameHtml | kcSanitize: 'html'"></div>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div [kcClass]="'kcFormCardClass'">
|
|
23
|
-
<header [kcClass]="'kcFormHeaderClass'">
|
|
24
|
-
<!-- Locale switcher -->
|
|
25
|
-
@if (i18n.enabledLanguages.length > 1) {
|
|
26
|
-
<div
|
|
27
|
-
id="kc-locale"
|
|
28
|
-
[kcClass]="'kcLocaleMainClass'"
|
|
29
|
-
>
|
|
9
|
+
<div [kcClass]="'kcLoginClass'">
|
|
10
|
+
<div
|
|
11
|
+
id="kc-header"
|
|
12
|
+
[kcClass]="'kcHeaderClass'"
|
|
13
|
+
>
|
|
30
14
|
<div
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
id="kc-header-wrapper"
|
|
16
|
+
[kcClass]="'kcHeaderWrapperClass'"
|
|
33
17
|
>
|
|
34
|
-
|
|
35
|
-
id="kc-locale-dropdown"
|
|
36
|
-
[kcClass]="'kcLocaleDropDownClass'"
|
|
37
|
-
class="menu-button-links"
|
|
38
|
-
>
|
|
39
|
-
<button
|
|
40
|
-
tabindex="1"
|
|
41
|
-
id="kc-current-locale-link"
|
|
42
|
-
[attr.aria-label]="'languages' | msgStr"
|
|
43
|
-
aria-haspopup="true"
|
|
44
|
-
aria-expanded="false"
|
|
45
|
-
aria-controls="language-switch1"
|
|
46
|
-
>
|
|
47
|
-
{{ i18n.currentLanguage.label }}
|
|
48
|
-
</button>
|
|
49
|
-
<ul
|
|
50
|
-
role="menu"
|
|
51
|
-
tabindex="-1"
|
|
52
|
-
aria-labelledby="kc-current-locale-link"
|
|
53
|
-
aria-activedescendant=""
|
|
54
|
-
id="language-switch1"
|
|
55
|
-
[kcClass]="'kcLocaleListClass'"
|
|
56
|
-
>
|
|
57
|
-
@for (entry of i18n.enabledLanguages; track entry; let idx = $index) {
|
|
58
|
-
<li
|
|
59
|
-
[kcClass]="'kcLocaleListItemClass'"
|
|
60
|
-
role="none"
|
|
61
|
-
>
|
|
62
|
-
<a
|
|
63
|
-
role="menuitem"
|
|
64
|
-
tabindex="-1"
|
|
65
|
-
[href]="entry.href"
|
|
66
|
-
[kcClass]="'kcLocaleItemClass'"
|
|
67
|
-
[id]="'language-' + idx"
|
|
68
|
-
>
|
|
69
|
-
{{ entry.label }}
|
|
70
|
-
</a>
|
|
71
|
-
</li>
|
|
72
|
-
}
|
|
73
|
-
</ul>
|
|
74
|
-
</div>
|
|
18
|
+
<div [innerHTML]="realm?.displayNameHtml | kcSanitize: 'html'"></div>
|
|
75
19
|
</div>
|
|
76
|
-
|
|
77
|
-
}
|
|
20
|
+
</div>
|
|
78
21
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
22
|
+
<div [kcClass]="'kcFormCardClass'">
|
|
23
|
+
<header [kcClass]="'kcFormHeaderClass'">
|
|
24
|
+
<!-- Locale switcher -->
|
|
25
|
+
@if (i18n.enabledLanguages.length > 1) {
|
|
26
|
+
<div
|
|
27
|
+
id="kc-locale"
|
|
28
|
+
[kcClass]="'kcLocaleMainClass'"
|
|
29
|
+
>
|
|
30
|
+
<div
|
|
31
|
+
id="kc-locale-wrapper"
|
|
32
|
+
[kcClass]="'kcLocaleWrapperClass'"
|
|
33
|
+
>
|
|
34
|
+
<div
|
|
35
|
+
id="kc-locale-dropdown"
|
|
36
|
+
[kcClass]="'kcLocaleDropDownClass'"
|
|
37
|
+
class="menu-button-links"
|
|
38
|
+
>
|
|
39
|
+
<button
|
|
40
|
+
tabindex="1"
|
|
41
|
+
id="kc-current-locale-link"
|
|
42
|
+
[attr.aria-label]="'languages' | msgStr"
|
|
43
|
+
aria-haspopup="true"
|
|
44
|
+
aria-expanded="false"
|
|
45
|
+
aria-controls="language-switch1"
|
|
46
|
+
>
|
|
47
|
+
{{ i18n.currentLanguage.label }}
|
|
48
|
+
</button>
|
|
49
|
+
<ul
|
|
50
|
+
role="menu"
|
|
51
|
+
tabindex="-1"
|
|
52
|
+
aria-labelledby="kc-current-locale-link"
|
|
53
|
+
aria-activedescendant=""
|
|
54
|
+
id="language-switch1"
|
|
55
|
+
[kcClass]="'kcLocaleListClass'"
|
|
56
|
+
>
|
|
57
|
+
@for (entry of i18n.enabledLanguages; track entry; let idx = $index) {
|
|
58
|
+
<li
|
|
59
|
+
[kcClass]="'kcLocaleListItemClass'"
|
|
60
|
+
role="none"
|
|
61
|
+
>
|
|
62
|
+
<a
|
|
63
|
+
role="menuitem"
|
|
64
|
+
tabindex="-1"
|
|
65
|
+
[href]="entry.href"
|
|
66
|
+
[kcClass]="'kcLocaleItemClass'"
|
|
67
|
+
[id]="'language-' + idx"
|
|
68
|
+
>
|
|
69
|
+
{{ entry.label }}
|
|
70
|
+
</a>
|
|
71
|
+
</li>
|
|
72
|
+
}
|
|
73
|
+
</ul>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
}
|
|
106
78
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
79
|
+
<!-- Header content -->
|
|
80
|
+
<ng-template #node>
|
|
81
|
+
@if (auth && !auth.showUsername && !auth.showResetCredentials) {
|
|
82
|
+
<h1 id="kc-page-title">
|
|
83
|
+
<ng-content select="[headerNode]"></ng-content>
|
|
84
|
+
</h1>
|
|
85
|
+
} @else {
|
|
86
|
+
<div
|
|
87
|
+
id="kc-username"
|
|
88
|
+
[kcClass]="'kcFormGroupClass'"
|
|
89
|
+
>
|
|
90
|
+
<label id="kc-attempted-username">{{ auth?.attemptedUsername }}</label>
|
|
91
|
+
<a
|
|
92
|
+
id="reset-login"
|
|
93
|
+
[href]="url?.loginRestartFlowUrl"
|
|
94
|
+
[attr.aria-label]="'restartLoginTooltip' | msgStr"
|
|
95
|
+
>
|
|
96
|
+
<div class="kc-login-tooltip">
|
|
97
|
+
<i [kcClass]="'kcResetFlowIcon'"></i>
|
|
98
|
+
<span class="kc-tooltip-text">
|
|
99
|
+
{{ 'restartLoginTooltip' | msgStr }}
|
|
100
|
+
</span>
|
|
101
|
+
</div>
|
|
102
|
+
</a>
|
|
103
|
+
</div>
|
|
104
|
+
}
|
|
105
|
+
</ng-template>
|
|
126
106
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
@case ('info') {
|
|
145
|
-
<span [kcClass]="'kcFeedbackInfoIcon'"></span>
|
|
146
|
-
}
|
|
147
|
-
@case ('error') {
|
|
148
|
-
<span [kcClass]="'kcFeedbackErrorIcon'"></span>
|
|
149
|
-
}
|
|
107
|
+
@if (displayRequiredFields()) {
|
|
108
|
+
<div [kcClass]="'kcContentWrapperClass'">
|
|
109
|
+
<div
|
|
110
|
+
[kcClass]="'kcLabelWrapperClass'"
|
|
111
|
+
class="subtitle"
|
|
112
|
+
>
|
|
113
|
+
<span class="subtitle">
|
|
114
|
+
<span class="required">*</span>
|
|
115
|
+
{{ 'requiredFields' | msgStr }}
|
|
116
|
+
</span>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="col-md-10">
|
|
119
|
+
<ng-container [ngTemplateOutlet]="node"></ng-container>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
} @else {
|
|
123
|
+
<ng-container [ngTemplateOutlet]="node"></ng-container>
|
|
150
124
|
}
|
|
151
|
-
|
|
152
|
-
<span
|
|
153
|
-
[kcClass]="'kcAlertTitleClass'"
|
|
154
|
-
[innerHTML]="message.summary | kcSanitize: 'html'"
|
|
155
|
-
></span>
|
|
156
|
-
</div>
|
|
157
|
-
}
|
|
158
|
-
<!-- Content -->
|
|
159
|
-
<ng-content select="[content]"></ng-content>
|
|
160
|
-
@if (!!auth && auth?.showTryAnotherWayLink) {
|
|
161
|
-
<form
|
|
162
|
-
id="kc-select-try-another-way-form"
|
|
163
|
-
[action]="url?.loginAction"
|
|
164
|
-
method="post"
|
|
165
|
-
>
|
|
166
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
167
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
168
|
-
<input
|
|
169
|
-
type="hidden"
|
|
170
|
-
name="tryAnotherWay"
|
|
171
|
-
value="on"
|
|
172
|
-
/>
|
|
173
|
-
<a
|
|
174
|
-
id="try-another-way"
|
|
175
|
-
(click)="tryAnotherWay()"
|
|
176
|
-
>
|
|
177
|
-
{{ 'doTryAnotherWay' | msgStr }}
|
|
178
|
-
</a>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
</form>
|
|
182
|
-
}
|
|
125
|
+
</header>
|
|
183
126
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
127
|
+
<div id="kc-content">
|
|
128
|
+
<div id="kc-content-wrapper">
|
|
129
|
+
<!-- Message display -->
|
|
130
|
+
@if (displayMessage() && message && (message.type !== 'warning' || !isAppInitiatedAction)) {
|
|
131
|
+
<div
|
|
132
|
+
[kcClass]="'kcAlertClass'"
|
|
133
|
+
[ngClass]="message.type === 'error' ? 'pf-m-danger' : 'pf-m-' + message.type"
|
|
134
|
+
[class]="'alert-' + message.type"
|
|
135
|
+
>
|
|
136
|
+
<div class="pf-c-alert__icon">
|
|
137
|
+
@switch (message.type) {
|
|
138
|
+
@case ('success') {
|
|
139
|
+
<span [kcClass]="'kcFeedbackSuccessIcon'"></span>
|
|
140
|
+
}
|
|
141
|
+
@case ('warning') {
|
|
142
|
+
<span [kcClass]="'kcFeedbackWarningIcon'"></span>
|
|
143
|
+
}
|
|
144
|
+
@case ('info') {
|
|
145
|
+
<span [kcClass]="'kcFeedbackInfoIcon'"></span>
|
|
146
|
+
}
|
|
147
|
+
@case ('error') {
|
|
148
|
+
<span [kcClass]="'kcFeedbackErrorIcon'"></span>
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
</div>
|
|
152
|
+
<span
|
|
153
|
+
[kcClass]="'kcAlertTitleClass'"
|
|
154
|
+
[innerHTML]="message.summary | kcSanitize: 'html'"
|
|
155
|
+
></span>
|
|
156
|
+
</div>
|
|
157
|
+
}
|
|
158
|
+
<!-- Content -->
|
|
159
|
+
<ng-content select="[content]"></ng-content>
|
|
160
|
+
@if (!!auth && auth?.showTryAnotherWayLink) {
|
|
161
|
+
<form
|
|
162
|
+
id="kc-select-try-another-way-form"
|
|
163
|
+
[action]="url?.loginAction"
|
|
164
|
+
method="post"
|
|
165
|
+
>
|
|
166
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
167
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
168
|
+
<input
|
|
169
|
+
type="hidden"
|
|
170
|
+
name="tryAnotherWay"
|
|
171
|
+
value="on"
|
|
172
|
+
/>
|
|
173
|
+
<a
|
|
174
|
+
id="try-another-way"
|
|
175
|
+
(click)="tryAnotherWay()"
|
|
176
|
+
>
|
|
177
|
+
{{ 'doTryAnotherWay' | msgStr }}
|
|
178
|
+
</a>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</form>
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
<ng-content select="[socialProvidersNode]"></ng-content>
|
|
185
|
+
<!-- Info display -->
|
|
186
|
+
@if (displayInfo()) {
|
|
187
|
+
<div
|
|
188
|
+
id="kc-info"
|
|
189
|
+
[kcClass]="'kcSignUpClass'"
|
|
190
|
+
>
|
|
191
|
+
<div
|
|
192
|
+
id="kc-info-wrapper"
|
|
193
|
+
[kcClass]="'kcInfoAreaWrapperClass'"
|
|
194
|
+
>
|
|
195
|
+
<ng-content select="[infoNode]"></ng-content>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
}
|
|
199
|
+
</div>
|
|
197
200
|
</div>
|
|
198
|
-
}
|
|
199
201
|
</div>
|
|
200
|
-
</div>
|
|
201
202
|
</div>
|
|
202
|
-
</div>
|
|
203
203
|
}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { AsyncPipe, NgTemplateOutlet } from '@angular/common';
|
|
2
|
-
import {
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
Component,
|
|
5
|
-
forwardRef,
|
|
6
|
-
inject,
|
|
7
|
-
input,
|
|
8
|
-
OnInit,
|
|
9
|
-
Renderer2
|
|
10
|
-
} from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, OnInit, Renderer2 } from '@angular/core';
|
|
11
3
|
import { Meta, Title } from '@angular/platform-browser';
|
|
12
|
-
import {
|
|
13
|
-
CLASSES,
|
|
14
|
-
I18N,
|
|
15
|
-
KC_CONTEXT,
|
|
16
|
-
USE_DEFAULT_CSS
|
|
17
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
4
|
+
import { CLASSES, I18N, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
18
5
|
import type { I18n } from '@keycloakify/angular/login/i18n';
|
|
19
6
|
import { KcContext } from 'keycloakify/login/KcContext/KcContext';
|
|
20
7
|
import { ClassKey, getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
@@ -58,13 +45,8 @@ export class TemplateComponent extends ComponentReference implements OnInit {
|
|
|
58
45
|
|
|
59
46
|
constructor() {
|
|
60
47
|
super();
|
|
61
|
-
this.title.setTitle(
|
|
62
|
-
|
|
63
|
-
this.i18n.msgStr('loginTitle', this.kcContext.realm.displayName)
|
|
64
|
-
);
|
|
65
|
-
this.isReadyToRender$ = this.loginResourceInjectorService.injectResource(
|
|
66
|
-
this.doUseDefaultCss
|
|
67
|
-
);
|
|
48
|
+
this.title.setTitle(this.documentTitle() ?? this.i18n.msgStr('loginTitle', this.kcContext.realm.displayName));
|
|
49
|
+
this.isReadyToRender$ = this.loginResourceInjectorService.injectResource(this.doUseDefaultCss);
|
|
68
50
|
}
|
|
69
51
|
|
|
70
52
|
ngOnInit() {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
@let code = kcContext.code;
|
|
2
2
|
|
|
3
3
|
<kc-login-template>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<ng-container headerNode>
|
|
5
|
+
@if (code.success) {
|
|
6
|
+
{{ 'codeSuccessTitle' | msgStr }}
|
|
7
|
+
} @else {
|
|
8
|
+
{{ 'codeErrorTitle' | msgStr: code.error }}
|
|
9
|
+
}
|
|
10
|
+
</ng-container>
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
<ng-container content>
|
|
13
|
+
<div id="kc-code">
|
|
14
|
+
@if (code.success) {
|
|
15
|
+
<p>{{ 'copyCodeInstruction' | msgStr }}</p>
|
|
16
|
+
<input
|
|
17
|
+
id="code"
|
|
18
|
+
[kcClass]="'kcTextareaClass'"
|
|
19
|
+
defaultValue="{{ code.code }}"
|
|
20
|
+
/>
|
|
21
|
+
} @else {
|
|
22
|
+
<p id="error">{{ code.error }}</p>
|
|
23
|
+
}
|
|
24
|
+
</div>
|
|
25
|
+
</ng-container>
|
|
26
26
|
</kc-login-template>
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
CLASSES,
|
|
4
|
-
KC_CONTEXT,
|
|
5
|
-
USE_DEFAULT_CSS
|
|
6
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
2
|
+
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
7
3
|
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
8
4
|
import { KcContext } from 'keycloakify/login/KcContext';
|
|
9
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
2
|
@let triggered_from_aia = kcContext.triggered_from_aia;
|
|
3
3
|
<kc-login-template>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
4
|
+
<ng-container headerNode>
|
|
5
|
+
{{ 'deleteAccountConfirm' | msgStr }}
|
|
6
|
+
</ng-container>
|
|
7
|
+
<ng-container content>
|
|
8
|
+
<form
|
|
9
|
+
[action]="url.loginAction"
|
|
10
|
+
method="post"
|
|
11
|
+
class="form-actions"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
class="alert alert-warning"
|
|
15
|
+
style="margin-top: 0; margin-bottom: 30px"
|
|
16
|
+
>
|
|
17
|
+
<span class="pficon pficon-warning-triangle-o"></span>
|
|
18
|
+
{{ 'irreversibleAction' | msgStr }}
|
|
19
|
+
</div>
|
|
20
|
+
<p>{{ 'deletingImplies' | msgStr }}</p>
|
|
21
|
+
<ul style="color: #72767b; list-style: disc; list-style-position: inside">
|
|
22
|
+
<li>{{ 'loggingOutImmediately' | msgStr }}</li>
|
|
23
|
+
<li>{{ 'errasingData' | msgStr }}</li>
|
|
24
|
+
</ul>
|
|
25
|
+
<p class="delete-account-text">
|
|
26
|
+
{{ 'finalDeletionConfirmation' | msgStr }}
|
|
27
|
+
</p>
|
|
28
|
+
<div id="kc-form-buttons">
|
|
29
|
+
<input
|
|
30
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
31
|
+
type="submit"
|
|
32
|
+
value="{{ 'doConfirmDelete' | msgStr }}"
|
|
33
|
+
/>
|
|
34
|
+
@if (triggered_from_aia) {
|
|
35
|
+
<button
|
|
36
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
37
|
+
style="margin-left: calc(100% - 220px)"
|
|
38
|
+
type="submit"
|
|
39
|
+
name="cancel-aia"
|
|
40
|
+
value="true"
|
|
41
|
+
>
|
|
42
|
+
{{ 'doCancel' | msgStr }}
|
|
43
|
+
</button>
|
|
44
|
+
}
|
|
45
|
+
</div>
|
|
46
|
+
</form>
|
|
47
|
+
</ng-container>
|
|
46
48
|
</kc-login-template>
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
CLASSES,
|
|
4
|
-
KC_CONTEXT,
|
|
5
|
-
USE_DEFAULT_CSS
|
|
6
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
2
|
+
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
7
3
|
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
8
4
|
import { KcContext } from 'keycloakify/login/KcContext';
|
|
9
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
@@ -25,8 +21,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
25
21
|
]
|
|
26
22
|
})
|
|
27
23
|
export class DeleteAccountConfirmComponent extends ComponentReference {
|
|
28
|
-
kcContext =
|
|
29
|
-
inject<Extract<KcContext, { pageId: 'delete-account-confirm.ftl' }>>(KC_CONTEXT);
|
|
24
|
+
kcContext = inject<Extract<KcContext, { pageId: 'delete-account-confirm.ftl' }>>(KC_CONTEXT);
|
|
30
25
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
31
26
|
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
32
27
|
}
|