@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,35 +1,35 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
2
|
@let credentialLabel = kcContext.credentialLabel;
|
|
3
3
|
<kc-login-template [displayMessage]="displayMessage">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<ng-container headerNode>
|
|
5
|
+
{{ 'deleteCredentialTitle' | msgStr: credentialLabel }}
|
|
6
|
+
</ng-container>
|
|
7
|
+
<ng-container content>
|
|
8
|
+
<div id="kc-delete-text">
|
|
9
|
+
{{ 'deleteCredentialMessage' | msgStr: credentialLabel }}
|
|
10
|
+
</div>
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
<form
|
|
13
|
+
class="form-actions"
|
|
14
|
+
[action]="url.loginAction"
|
|
15
|
+
method="post"
|
|
16
|
+
>
|
|
17
|
+
<input
|
|
18
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
19
|
+
name="accept"
|
|
20
|
+
id="kc-accept"
|
|
21
|
+
type="submit"
|
|
22
|
+
[value]="'doConfirmDelete' | msgStr"
|
|
23
|
+
/>
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
<input
|
|
26
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
27
|
+
name="cancel-aia"
|
|
28
|
+
[value]="'doCancel' | msgStr"
|
|
29
|
+
id="kc-decline"
|
|
30
|
+
type="submit"
|
|
31
|
+
/>
|
|
32
|
+
</form>
|
|
33
|
+
<div class="clearfix"></div>
|
|
34
|
+
</ng-container>
|
|
35
35
|
</kc-login-template>
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
Component,
|
|
4
|
-
forwardRef,
|
|
5
|
-
inject,
|
|
6
|
-
input
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
CLASSES,
|
|
10
|
-
KC_CONTEXT,
|
|
11
|
-
USE_DEFAULT_CSS
|
|
12
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
+
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
13
3
|
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
4
|
import { KcContext } from 'keycloakify/login/KcContext';
|
|
15
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
@@ -31,8 +21,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
31
21
|
]
|
|
32
22
|
})
|
|
33
23
|
export class DeleteCredentialComponent extends ComponentReference {
|
|
34
|
-
kcContext =
|
|
35
|
-
inject<Extract<KcContext, { pageId: 'delete-credential.ftl' }>>(KC_CONTEXT);
|
|
24
|
+
kcContext = inject<Extract<KcContext, { pageId: 'delete-credential.ftl' }>>(KC_CONTEXT);
|
|
36
25
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
37
26
|
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
38
27
|
displayRequiredFields = input(false);
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
@let skipLink = kcContext.skipLink;
|
|
3
3
|
@let client = kcContext.client;
|
|
4
4
|
<kc-login-template [displayMessage]="false">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
5
|
+
<ng-container headerNode>
|
|
6
|
+
{{ 'errorTitle' | msgStr }}
|
|
7
|
+
</ng-container>
|
|
8
|
+
<ng-container content>
|
|
9
|
+
<div id="kc-error-message">
|
|
10
|
+
<p
|
|
11
|
+
class="instruction"
|
|
12
|
+
[innerHTML]="message.summary | kcSanitize: 'html'"
|
|
13
|
+
></p>
|
|
14
|
+
@if (!skipLink && !!client?.baseUrl) {
|
|
15
|
+
<p>
|
|
16
|
+
<a
|
|
17
|
+
id="backToApplication"
|
|
18
|
+
[href]="client.baseUrl"
|
|
19
|
+
[innerHTML]="'backToApplication' | msgStr | kcSanitize: 'html'"
|
|
20
|
+
></a>
|
|
21
|
+
</p>
|
|
22
|
+
}
|
|
23
|
+
</div>
|
|
24
|
+
</ng-container>
|
|
25
25
|
</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,35 +1,35 @@
|
|
|
1
1
|
@let logout = kcContext.logout;
|
|
2
2
|
<kc-login-template
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
[displayInfo]="displayInfo"
|
|
4
|
+
[bodyClassName]="bodyClassName()"
|
|
5
|
+
[displayMessage]="displayMessage"
|
|
6
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
7
|
+
[documentTitle]="'frontchannel-logout.title' | msgStr"
|
|
8
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
|
-
|
|
9
|
+
<ng-container headerNode>
|
|
10
|
+
{{ 'frontchannel-logout.title' | msgStr }}
|
|
11
|
+
</ng-container>
|
|
12
|
+
<ng-container content>
|
|
13
|
+
<p>{{ 'frontchannel-logout.message' | msgStr }}</p>
|
|
14
|
+
<ul>
|
|
15
|
+
@for (client of logout.clients; track client.name; let idx = $index) {
|
|
16
|
+
<li>
|
|
17
|
+
{{ client.name }}
|
|
18
|
+
<iframe
|
|
19
|
+
[src]="'client.frontChannelLogoutUrl' | kcSanitize: 'resourceUrl'"
|
|
20
|
+
style="display: none"
|
|
21
|
+
></iframe>
|
|
22
|
+
</li>
|
|
23
|
+
}
|
|
24
|
+
</ul>
|
|
25
|
+
@if (logout.logoutRedirectUri) {
|
|
26
|
+
<a
|
|
27
|
+
id="continue"
|
|
28
|
+
class="btn btn-primary"
|
|
29
|
+
[href]="logout.logoutRedirectUri"
|
|
30
|
+
>
|
|
31
|
+
{{ 'doContinue' | msgStr }}
|
|
32
|
+
</a>
|
|
33
|
+
}
|
|
34
|
+
</ng-container>
|
|
35
35
|
</kc-login-template>
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
Component,
|
|
4
|
-
forwardRef,
|
|
5
|
-
inject,
|
|
6
|
-
input,
|
|
7
|
-
OnInit
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import {
|
|
10
|
-
CLASSES,
|
|
11
|
-
KC_CONTEXT,
|
|
12
|
-
USE_DEFAULT_CSS
|
|
13
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, OnInit } from '@angular/core';
|
|
2
|
+
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
14
3
|
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
15
4
|
import { KcContext } from 'keycloakify/login/KcContext';
|
|
16
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
@@ -32,8 +21,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
32
21
|
]
|
|
33
22
|
})
|
|
34
23
|
export class FrontchannelLogoutComponent extends ComponentReference implements OnInit {
|
|
35
|
-
kcContext =
|
|
36
|
-
inject<Extract<KcContext, { pageId: 'frontchannel-logout.ftl' }>>(KC_CONTEXT);
|
|
24
|
+
kcContext = inject<Extract<KcContext, { pageId: 'frontchannel-logout.ftl' }>>(KC_CONTEXT);
|
|
37
25
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
38
26
|
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
39
27
|
displayRequiredFields = input(false);
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
2
|
<kc-login-template
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
[displayInfo]="displayInfo"
|
|
4
|
+
[bodyClassName]="bodyClassName()"
|
|
5
|
+
[displayMessage]="displayMessage"
|
|
6
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
7
|
+
[documentTitle]="documentTitle()"
|
|
8
8
|
>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
>
|
|
19
|
-
<kc-user-profile-form-fields (onIsFormSubmittable)="isFormSubmittable.set($event)" />
|
|
20
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
21
|
-
<div
|
|
22
|
-
id="kc-form-options"
|
|
23
|
-
[kcClass]="'kcFormOptionsClass'"
|
|
9
|
+
<ng-container headerNode>
|
|
10
|
+
{{ 'loginIdpReviewProfileTitle' | msgStr }}
|
|
11
|
+
</ng-container>
|
|
12
|
+
<ng-container content>
|
|
13
|
+
<form
|
|
14
|
+
id="kc-idp-review-profile-form"
|
|
15
|
+
[kcClass]="'kcFormClass'"
|
|
16
|
+
[action]="url.loginAction"
|
|
17
|
+
method="post"
|
|
24
18
|
>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
<kc-user-profile-form-fields (onIsFormSubmittable)="isFormSubmittable.set($event)" />
|
|
20
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
21
|
+
<div
|
|
22
|
+
id="kc-form-options"
|
|
23
|
+
[kcClass]="'kcFormOptionsClass'"
|
|
24
|
+
>
|
|
25
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
26
|
+
</div>
|
|
27
|
+
<div
|
|
28
|
+
id="kc-form-buttons"
|
|
29
|
+
[kcClass]="'kcFormButtonsClass'"
|
|
30
|
+
>
|
|
31
|
+
<input
|
|
32
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
33
|
+
type="submit"
|
|
34
|
+
value="{{ 'doSubmit' | msgStr }}"
|
|
35
|
+
[disabled]="!isFormSubmittable"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</form>
|
|
40
|
+
</ng-container>
|
|
41
41
|
</kc-login-template>
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
Component,
|
|
4
|
-
forwardRef,
|
|
5
|
-
inject,
|
|
6
|
-
input,
|
|
7
|
-
signal
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import {
|
|
10
|
-
CLASSES,
|
|
11
|
-
KC_CONTEXT,
|
|
12
|
-
USE_DEFAULT_CSS
|
|
13
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal } from '@angular/core';
|
|
2
|
+
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
14
3
|
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
15
4
|
import { KcContext } from 'keycloakify/login/KcContext';
|
|
16
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
@@ -21,12 +10,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
21
10
|
|
|
22
11
|
@Component({
|
|
23
12
|
standalone: true,
|
|
24
|
-
imports: [
|
|
25
|
-
TemplateComponent,
|
|
26
|
-
MsgStrPipe,
|
|
27
|
-
UserProfileFormFieldsComponent,
|
|
28
|
-
KcClassDirective
|
|
29
|
-
],
|
|
13
|
+
imports: [TemplateComponent, MsgStrPipe, UserProfileFormFieldsComponent, KcClassDirective],
|
|
30
14
|
selector: 'kc-root',
|
|
31
15
|
templateUrl: 'idp-review-user-profile.component.html',
|
|
32
16
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -38,8 +22,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
38
22
|
]
|
|
39
23
|
})
|
|
40
24
|
export class IdpReviewUserProfileComponent extends ComponentReference {
|
|
41
|
-
kcContext =
|
|
42
|
-
inject<Extract<KcContext, { pageId: 'idp-review-user-profile.ftl' }>>(KC_CONTEXT);
|
|
25
|
+
kcContext = inject<Extract<KcContext, { pageId: 'idp-review-user-profile.ftl' }>>(KC_CONTEXT);
|
|
43
26
|
displayRequiredFields = input(true);
|
|
44
27
|
documentTitle = input<string>();
|
|
45
28
|
bodyClassName = input<string>();
|
|
@@ -5,50 +5,50 @@
|
|
|
5
5
|
@let messageHeader = kcContext.messageHeader;
|
|
6
6
|
@let message = kcContext.message;
|
|
7
7
|
<kc-login-template
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
[displayInfo]="displayInfo"
|
|
9
|
+
[bodyClassName]="bodyClassName()"
|
|
10
|
+
[displayMessage]="displayMessage"
|
|
11
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
12
|
+
[documentTitle]="documentTitle()"
|
|
13
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
14
|
+
<ng-container headerNode>
|
|
15
|
+
<span [innerHTML]="messageHeader ?? message.summary | advancedMsgStr | kcSanitize: 'html'"> </span>
|
|
16
|
+
</ng-container>
|
|
17
|
+
<ng-container content>
|
|
18
|
+
<div id="kc-info-message">
|
|
19
|
+
<p
|
|
20
|
+
class="instruction"
|
|
21
|
+
[innerHTML]="infoMessage | kcSanitize: 'html'"
|
|
22
|
+
></p>
|
|
23
|
+
@if (!skipLink) {
|
|
24
|
+
@if (pageRedirectUri) {
|
|
25
|
+
<p>
|
|
26
|
+
<a
|
|
27
|
+
[href]="pageRedirectUri"
|
|
28
|
+
[innerHTML]="'backToApplication' | msgStr | kcSanitize: 'html'"
|
|
29
|
+
>
|
|
30
|
+
</a>
|
|
31
|
+
</p>
|
|
32
|
+
}
|
|
33
|
+
@if (actionUri) {
|
|
34
|
+
<p>
|
|
35
|
+
<a
|
|
36
|
+
[href]="actionUri"
|
|
37
|
+
[innerHTML]="'proceedWithAction' | msgStr | kcSanitize: 'html'"
|
|
38
|
+
>
|
|
39
|
+
</a>
|
|
40
|
+
</p>
|
|
41
|
+
}
|
|
42
|
+
@if (client.baseUrl) {
|
|
43
|
+
<p>
|
|
44
|
+
<a
|
|
45
|
+
[href]="client.baseUrl"
|
|
46
|
+
[innerHTML]="'backToApplication' | msgStr | kcSanitize: 'html'"
|
|
47
|
+
>
|
|
48
|
+
</a>
|
|
49
|
+
</p>
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
</div>
|
|
53
|
+
</ng-container>
|
|
54
54
|
</kc-login-template>
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
Component,
|
|
4
|
-
forwardRef,
|
|
5
|
-
inject,
|
|
6
|
-
input
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
CLASSES,
|
|
10
|
-
KC_CONTEXT,
|
|
11
|
-
USE_DEFAULT_CSS
|
|
12
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
+
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
13
3
|
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
4
|
import { KcContext } from 'keycloakify/login/KcContext';
|
|
15
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
@@ -53,9 +43,7 @@ export class InfoComponent extends ComponentReference {
|
|
|
53
43
|
html += '<b>';
|
|
54
44
|
|
|
55
45
|
html += this.kcContext.requiredActions
|
|
56
|
-
.map(requiredAction =>
|
|
57
|
-
this.advancedMsgStr.transform(`requiredAction.${requiredAction}`)
|
|
58
|
-
)
|
|
46
|
+
.map(requiredAction => this.advancedMsgStr.transform(`requiredAction.${requiredAction}`))
|
|
59
47
|
.join(', ');
|
|
60
48
|
|
|
61
49
|
html += '</b>';
|