@keycloakify/angular 20.1.8 → 20.1.10
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/README.md +4 -4
- package/bin/187.index.js +2 -2
- package/bin/{559.index.js → 247.index.js} +161 -34
- package/bin/index.js +1 -1
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-account.mjs +8 -8
- package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs +7 -7
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +6 -8
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-log.mjs +7 -7
- package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-password.mjs +6 -7
- package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +6 -7
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs +6 -7
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-template.mjs +6 -7
- package/fesm2022/keycloakify-angular-account-template.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +4 -5
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-code.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-error.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-info.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +4 -5
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +5 -6
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +4 -5
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login.mjs +7 -6
- package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +7 -6
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-register.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +4 -5
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +4 -5
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +4 -5
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-template.mjs +3 -3
- package/package.json +13 -13
- package/src/account/i18n.ts +1 -1
- package/src/account/pages/account/account.component.html +9 -5
- package/src/account/pages/account/account.component.ts +4 -3
- package/src/account/pages/applications/applications.component.ts +4 -3
- package/src/account/pages/federatedIdentity/federatedIdentity.component.ts +2 -4
- package/src/account/pages/log/log.component.ts +4 -3
- package/src/account/pages/password/password.component.ts +3 -3
- package/src/account/pages/sessions/sessions.component.ts +3 -3
- package/src/account/pages/totp/totp.component.ts +3 -3
- package/src/account/providers/keycloakify-angular/keycloakify-angular.providers.ts +2 -2
- package/src/account/template/template.component.html +8 -8
- package/src/account/template/template.component.ts +1 -2
- package/src/bin/initialize-account-theme/boilerplate/KcPageStory.ts +2 -1
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +1 -2
- package/src/login/components/field-errors/field-errors.component.ts +2 -2
- package/src/login/components/group-label/group-label.component.ts +1 -1
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +1 -1
- package/src/login/components/input-tag/input-tag.component.ts +1 -1
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +2 -2
- package/src/login/components/password-wrapper/password-wrapper.component.ts +1 -2
- package/src/login/components/select-tag/select-tag.component.ts +2 -2
- package/src/login/components/textarea-tag/textarea-tag.component.ts +2 -2
- package/src/login/i18n.ts +1 -1
- package/src/login/pages/login/login.component.ts +2 -2
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +0 -2
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +0 -1
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +1 -1
- package/src/login/pages/login-username/login-username.component.ts +1 -2
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +0 -2
- package/src/login/pages/logout-confirm/logout-confirm.component.html +5 -1
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +2 -1
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +0 -1
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +1 -2
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +2 -3
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +1 -2
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +1 -1
- package/src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts +1 -1
- package/src/login/services/login-resource-injector/login-resource-injector.service.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-error.mjs","sources":["../../src/login/pages/webauthn-error/webauthn-error.component.ts","../../src/login/pages/webauthn-error/webauthn-error.component.html","../../src/login/pages/webauthn-error/keycloakify-angular-login-pages-webauthn-error.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport {
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-error.mjs","sources":["../../src/login/pages/webauthn-error/webauthn-error.component.ts","../../src/login/pages/webauthn-error/webauthn-error.component.html","../../src/login/pages/webauthn-error/keycloakify-angular-login-pages-webauthn-error.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n imports: [KcClassDirective],\n selector: 'kc-webauthn-error',\n templateUrl: 'webauthn-error.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnErrorComponent)\n }\n ]\n})\nexport class WebauthnErrorComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-error.ftl' }>>(KC_LOGIN_CONTEXT);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n onClick() {\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('isSetRetry').value = 'retry';\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('executionValue').value = '${execution}';\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('kc-error-credential-form').requestSubmit();\n }\n}\n","@let url = kcContext.url;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n {{ i18n.msgStr('webauthn-error-title') }}\n</ng-template>\n<form\n id=\"kc-error-credential-form\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <input\n type=\"hidden\"\n id=\"executionValue\"\n name=\"authenticationExecution\"\n />\n <input\n type=\"hidden\"\n id=\"isSetRetry\"\n name=\"isSetRetry\"\n />\n</form>\n<input\n tabIndex=\"4\"\n type=\"button\"\n name=\"try-again\"\n id=\"kc-try-again\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [value]=\"i18n.msgStr('doTryAgain')\"\n (click)=\"onClick()\"\n/>\n@if (isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAuBM,MAAO,sBAAuB,SAAQ,kBAAkB,CAAA;AAZ9D,IAAA,WAAA,GAAA;;AAaI,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAuD,gBAAgB,CAAC;AAC1F,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AAEtB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;QAK3E,IAAqB,CAAA,qBAAA,GAAG,KAAK;QAC7B,IAAW,CAAA,WAAA,GAAG,KAAK;QACnB,IAAc,CAAA,cAAA,GAAG,IAAI;AAErB,QAAA,IAAA,CAAA,UAAU,GAAG,SAAS,CAA2B,YAAY,sDAAC;AAC9D,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAA2B,UAAU,oDAAC;AAC1D,QAAA,IAAA,CAAA,mBAAmB,GAAG,SAAS,CAA2B,qBAAqB,+DAAC;AAUnF;IARG,OAAO,GAAA;;QAEH,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,KAAK,GAAG,OAAO;;QAErD,QAAQ,CAAC,cAAc,CAAC,gBAAgB,CAA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,CAAA;;2FAWjB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAZlC,SAAS;8BACG,CAAC,gBAAgB,CAAC,EACjB,QAAA,EAAA,mBAAmB,mBAEZ,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,4BAA4B;AACvD;AACJ,qBAAA,EAAA,QAAA,EAAA,+0CAAA,EAAA;;;AErBL;;AAEG;;;;"}
|
|
@@ -57,15 +57,15 @@ class WebauthnRegisterComponent extends ComponentReference {
|
|
|
57
57
|
];
|
|
58
58
|
this.loginResourceInjectorService.insertAdditionalScripts(scripts);
|
|
59
59
|
}
|
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
60
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WebauthnRegisterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: WebauthnRegisterComponent, isStandalone: true, selector: "kc-webauthn-register", providers: [
|
|
62
62
|
{
|
|
63
63
|
provide: ComponentReference,
|
|
64
64
|
useExisting: forwardRef(() => WebauthnRegisterComponent)
|
|
65
65
|
}
|
|
66
66
|
], viewQueries: [{ propertyName: "headerNode", first: true, predicate: ["headerNode"], descendants: true, isSignal: true }, { propertyName: "infoNode", first: true, predicate: ["infoNode"], descendants: true, isSignal: true }, { propertyName: "socialProvidersNode", first: true, predicate: ["socialProvidersNode"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@let url = kcContext.url;\n@let isSetRetry = kcContext.isSetRetry;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n <span [kcClass]=\"'kcWebAuthnKeyIcon'\"></span>\n {{ i18n.msgStr('webauthn-registration-title') }}\n</ng-template>\n<form\n id=\"register\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n id=\"clientDataJSON\"\n name=\"clientDataJSON\"\n />\n <input\n type=\"hidden\"\n id=\"attestationObject\"\n name=\"attestationObject\"\n />\n <input\n type=\"hidden\"\n id=\"publicKeyCredentialId\"\n name=\"publicKeyCredentialId\"\n />\n <input\n type=\"hidden\"\n id=\"authenticatorLabel\"\n name=\"authenticatorLabel\"\n />\n <input\n type=\"hidden\"\n id=\"transports\"\n name=\"transports\"\n />\n <input\n type=\"hidden\"\n id=\"error\"\n name=\"error\"\n />\n <kc-logout-other-sessions />\n </div>\n</form>\n<input\n type=\"submit\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [id]=\"authButtonId\"\n [value]=\"i18n.msgStr('doRegisterSecurityKey')\"\n/>\n@if (!isSetRetry && isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n", dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }, { kind: "component", type: LogoutOtherSessionsComponent, selector: "kc-logout-other-sessions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WebauthnRegisterComponent, decorators: [{
|
|
69
69
|
type: Component,
|
|
70
70
|
args: [{ imports: [KcClassDirective, LogoutOtherSessionsComponent], selector: 'kc-webauthn-register', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
71
71
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-register.mjs","sources":["../../src/login/pages/webauthn-register/webauthn-register.component.ts","../../src/login/pages/webauthn-register/webauthn-register.component.html","../../src/login/pages/webauthn-register/keycloakify-angular-login-pages-webauthn-register.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { type Script } from '@keycloakify/angular/lib/models/script';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n imports: [KcClassDirective, LogoutOtherSessionsComponent],\n selector: 'kc-webauthn-register',\n templateUrl: 'webauthn-register.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnRegisterComponent)\n }\n ]\n})\nexport class WebauthnRegisterComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-register.ftl' }>>(KC_LOGIN_CONTEXT);\n loginResourceInjectorService = inject(LoginResourceInjectorService);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n authButtonId = 'authenticateWebAuthnButton';\n\n constructor() {\n super();\n const {\n url,\n challenge,\n userid,\n username,\n signatureAlgorithms,\n rpEntityName,\n rpId,\n attestationConveyancePreference,\n authenticatorAttachment,\n requireResidentKey,\n userVerificationRequirement,\n createTimeout,\n excludeCredentialIds\n } = this.kcContext;\n const scripts: Script[] = [\n {\n type: 'module',\n id: 'WebAuthnRegisterScript',\n textContent: `\n import { registerByWebAuthn } from \"${url.resourcesPath}/js/webauthnRegister.js\";\n const registerButton = document.getElementById('${this.authButtonId}');\n registerButton.addEventListener(\"click\", function() {\n const input = {\n challenge : '${challenge}',\n userid : '${userid}',\n username : '${username}',\n signatureAlgorithms : ${JSON.stringify(signatureAlgorithms)},\n rpEntityName : ${JSON.stringify(rpEntityName)},\n rpId : ${JSON.stringify(rpId)},\n attestationConveyancePreference : ${JSON.stringify(attestationConveyancePreference)},\n authenticatorAttachment : ${JSON.stringify(authenticatorAttachment)},\n requireResidentKey : ${JSON.stringify(requireResidentKey)},\n userVerificationRequirement : ${JSON.stringify(userVerificationRequirement)},\n createTimeout : ${createTimeout},\n excludeCredentialIds : ${JSON.stringify(excludeCredentialIds)},\n initLabel : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label'))},\n initLabelPrompt : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label-prompt'))},\n errmsg : ${JSON.stringify(this.i18n.msgStr('webauthn-unsupported-browser-text'))}\n };\n registerByWebAuthn(input);\n });\n `\n }\n ];\n this.loginResourceInjectorService.insertAdditionalScripts(scripts);\n }\n}\n","@let url = kcContext.url;\n@let isSetRetry = kcContext.isSetRetry;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n <span [kcClass]=\"'kcWebAuthnKeyIcon'\"></span>\n {{ i18n.msgStr('webauthn-registration-title') }}\n</ng-template>\n<form\n id=\"register\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n id=\"clientDataJSON\"\n name=\"clientDataJSON\"\n />\n <input\n type=\"hidden\"\n id=\"attestationObject\"\n name=\"attestationObject\"\n />\n <input\n type=\"hidden\"\n id=\"publicKeyCredentialId\"\n name=\"publicKeyCredentialId\"\n />\n <input\n type=\"hidden\"\n id=\"authenticatorLabel\"\n name=\"authenticatorLabel\"\n />\n <input\n type=\"hidden\"\n id=\"transports\"\n name=\"transports\"\n />\n <input\n type=\"hidden\"\n id=\"error\"\n name=\"error\"\n />\n <kc-logout-other-sessions />\n </div>\n</form>\n<input\n type=\"submit\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [id]=\"authButtonId\"\n [value]=\"i18n.msgStr('doRegisterSecurityKey')\"\n/>\n@if (!isSetRetry && isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AA0BM,MAAO,yBAA0B,SAAQ,kBAAkB,CAAA;AAqB7D,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;AArBX,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA0D,gBAAgB,CAAC;AAC7F,QAAA,IAAA,CAAA,4BAA4B,GAAG,MAAM,CAAC,4BAA4B,CAAC;AACnE,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AAEtB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;QAK3E,IAAqB,CAAA,qBAAA,GAAG,KAAK;QAC7B,IAAW,CAAA,WAAA,GAAG,KAAK;QACnB,IAAc,CAAA,cAAA,GAAG,IAAI;AAErB,QAAA,IAAA,CAAA,UAAU,GAAG,SAAS,CAA2B,YAAY,sDAAC;AAC9D,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAA2B,UAAU,oDAAC;AAC1D,QAAA,IAAA,CAAA,mBAAmB,GAAG,SAAS,CAA2B,qBAAqB,+DAAC;QAEhF,IAAY,CAAA,YAAA,GAAG,4BAA4B;AAIvC,QAAA,MAAM,EACF,GAAG,EACH,SAAS,EACT,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,IAAI,EACJ,+BAA+B,EAC/B,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,aAAa,EACb,oBAAoB,EACvB,GAAG,IAAI,CAAC,SAAS;AAClB,QAAA,MAAM,OAAO,GAAa;AACtB,YAAA;AACI,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,EAAE,EAAE,wB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CAAC,EAAA,QAAA,EAC/C,sBAAsB,EAEf,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,+BAA+B;AAC1D;AACJ,qBAAA,EAAA,QAAA,EAAA,ogEAAA,EAAA;;;AExBL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-register.mjs","sources":["../../src/login/pages/webauthn-register/webauthn-register.component.ts","../../src/login/pages/webauthn-register/webauthn-register.component.html","../../src/login/pages/webauthn-register/keycloakify-angular-login-pages-webauthn-register.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport type { Script } from '@keycloakify/angular/lib/models/script';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n imports: [KcClassDirective, LogoutOtherSessionsComponent],\n selector: 'kc-webauthn-register',\n templateUrl: 'webauthn-register.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnRegisterComponent)\n }\n ]\n})\nexport class WebauthnRegisterComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-register.ftl' }>>(KC_LOGIN_CONTEXT);\n loginResourceInjectorService = inject(LoginResourceInjectorService);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n authButtonId = 'authenticateWebAuthnButton';\n\n constructor() {\n super();\n const {\n url,\n challenge,\n userid,\n username,\n signatureAlgorithms,\n rpEntityName,\n rpId,\n attestationConveyancePreference,\n authenticatorAttachment,\n requireResidentKey,\n userVerificationRequirement,\n createTimeout,\n excludeCredentialIds\n } = this.kcContext;\n const scripts: Script[] = [\n {\n type: 'module',\n id: 'WebAuthnRegisterScript',\n textContent: `\n import { registerByWebAuthn } from \"${url.resourcesPath}/js/webauthnRegister.js\";\n const registerButton = document.getElementById('${this.authButtonId}');\n registerButton.addEventListener(\"click\", function() {\n const input = {\n challenge : '${challenge}',\n userid : '${userid}',\n username : '${username}',\n signatureAlgorithms : ${JSON.stringify(signatureAlgorithms)},\n rpEntityName : ${JSON.stringify(rpEntityName)},\n rpId : ${JSON.stringify(rpId)},\n attestationConveyancePreference : ${JSON.stringify(attestationConveyancePreference)},\n authenticatorAttachment : ${JSON.stringify(authenticatorAttachment)},\n requireResidentKey : ${JSON.stringify(requireResidentKey)},\n userVerificationRequirement : ${JSON.stringify(userVerificationRequirement)},\n createTimeout : ${createTimeout},\n excludeCredentialIds : ${JSON.stringify(excludeCredentialIds)},\n initLabel : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label'))},\n initLabelPrompt : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label-prompt'))},\n errmsg : ${JSON.stringify(this.i18n.msgStr('webauthn-unsupported-browser-text'))}\n };\n registerByWebAuthn(input);\n });\n `\n }\n ];\n this.loginResourceInjectorService.insertAdditionalScripts(scripts);\n }\n}\n","@let url = kcContext.url;\n@let isSetRetry = kcContext.isSetRetry;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n <span [kcClass]=\"'kcWebAuthnKeyIcon'\"></span>\n {{ i18n.msgStr('webauthn-registration-title') }}\n</ng-template>\n<form\n id=\"register\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n id=\"clientDataJSON\"\n name=\"clientDataJSON\"\n />\n <input\n type=\"hidden\"\n id=\"attestationObject\"\n name=\"attestationObject\"\n />\n <input\n type=\"hidden\"\n id=\"publicKeyCredentialId\"\n name=\"publicKeyCredentialId\"\n />\n <input\n type=\"hidden\"\n id=\"authenticatorLabel\"\n name=\"authenticatorLabel\"\n />\n <input\n type=\"hidden\"\n id=\"transports\"\n name=\"transports\"\n />\n <input\n type=\"hidden\"\n id=\"error\"\n name=\"error\"\n />\n <kc-logout-other-sessions />\n </div>\n</form>\n<input\n type=\"submit\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [id]=\"authButtonId\"\n [value]=\"i18n.msgStr('doRegisterSecurityKey')\"\n/>\n@if (!isSetRetry && isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AA0BM,MAAO,yBAA0B,SAAQ,kBAAkB,CAAA;AAqB7D,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;AArBX,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA0D,gBAAgB,CAAC;AAC7F,QAAA,IAAA,CAAA,4BAA4B,GAAG,MAAM,CAAC,4BAA4B,CAAC;AACnE,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AAEtB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;QAK3E,IAAqB,CAAA,qBAAA,GAAG,KAAK;QAC7B,IAAW,CAAA,WAAA,GAAG,KAAK;QACnB,IAAc,CAAA,cAAA,GAAG,IAAI;AAErB,QAAA,IAAA,CAAA,UAAU,GAAG,SAAS,CAA2B,YAAY,sDAAC;AAC9D,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAA2B,UAAU,oDAAC;AAC1D,QAAA,IAAA,CAAA,mBAAmB,GAAG,SAAS,CAA2B,qBAAqB,+DAAC;QAEhF,IAAY,CAAA,YAAA,GAAG,4BAA4B;AAIvC,QAAA,MAAM,EACF,GAAG,EACH,SAAS,EACT,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,IAAI,EACJ,+BAA+B,EAC/B,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,aAAa,EACb,oBAAoB,EACvB,GAAG,IAAI,CAAC,SAAS;AAClB,QAAA,MAAM,OAAO,GAAa;AACtB,YAAA;AACI,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,EAAE,EAAE,wBAAwB;AAC5B,gBAAA,WAAW,EAAE;A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EAEf,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,+BAA+B;AAC1D;AACJ,qBAAA,EAAA,QAAA,EAAA,ogEAAA,EAAA;;;AExBL;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-providers-keycloakify-angular.mjs","sources":["../../src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts","../../src/login/providers/keycloakify-angular/keycloakify-angular-login-providers-keycloakify-angular.ts"],"sourcesContent":["import {\n LOCALE_ID,\n makeEnvironmentProviders,\n inject,\n provideAppInitializer,\n DOCUMENT\n} from '@angular/core';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { I18nService } from '@keycloakify/angular/login/services/i18n';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password';\nimport {
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-providers-keycloakify-angular.mjs","sources":["../../src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts","../../src/login/providers/keycloakify-angular/keycloakify-angular-login-providers-keycloakify-angular.ts"],"sourcesContent":["import {\n LOCALE_ID,\n makeEnvironmentProviders,\n inject,\n provideAppInitializer,\n DOCUMENT\n} from '@angular/core';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { I18nService } from '@keycloakify/angular/login/services/i18n';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password';\nimport type { KcContextLike } from 'keycloakify/login/i18n/noJsx';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\nexport type KeycloakifyAngularLoginConfig = {\n doMakeUserConfirmPassword?: boolean;\n doUseDefaultCss?: boolean;\n classes?: { [key in ClassKey]?: string };\n kcContext: unknown;\n getI18n: (params: { kcContext: KcContextLike }) => {\n i18n: unknown;\n prI18n_currentLanguage: Promise<unknown> | undefined;\n };\n};\n\nexport const provideKeycloakifyAngular = (config: KeycloakifyAngularLoginConfig) =>\n makeEnvironmentProviders([\n {\n provide: KC_LOGIN_CONTEXT,\n useValue: config.kcContext\n },\n {\n provide: DO_MAKE_USER_CONFIRM_PASSWORD,\n useValue: config?.doMakeUserConfirmPassword ?? true\n },\n {\n provide: LOCALE_ID,\n useFactory: (document: Document) => {\n return document.documentElement.lang ?? 'en';\n },\n deps: [DOCUMENT]\n },\n provideAppInitializer(() => {\n const i18nService: I18nService = inject(I18nService);\n const kcContext: KcContext = inject(KC_LOGIN_CONTEXT);\n const getI18n = config.getI18n;\n\n const { i18n, prI18n_currentLanguage } = getI18n({\n kcContext\n });\n let i18nPromise = new Promise<typeof i18n>(resolve => resolve(i18n));\n if (prI18n_currentLanguage) {\n i18nPromise = prI18n_currentLanguage;\n }\n return i18nPromise.then(i18n => {\n i18nService.i18n = i18n;\n return true;\n });\n }),\n {\n provide: LOGIN_I18N,\n useFactory: (i18nService: I18nService) => i18nService.i18n,\n deps: [I18nService]\n },\n { provide: USE_DEFAULT_CSS, useValue: config?.doUseDefaultCss ?? true },\n { provide: LOGIN_CLASSES, useValue: config?.classes ?? {} }\n ]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],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AAE,MAAM,EAAE,eAAe,IAAI,IAAI,EAAE;IACvE,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,IAAI,EAAE;AAC5D,CAAA;;ACrEL;;AAEG;;;;"}
|
|
@@ -3,10 +3,10 @@ import { Injectable } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
/** INTERNAL: DO NOT IMPORT THIS */
|
|
5
5
|
class I18nService {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: I18nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: I18nService, providedIn: 'root' }); }
|
|
8
8
|
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: I18nService, decorators: [{
|
|
10
10
|
type: Injectable,
|
|
11
11
|
args: [{ providedIn: 'root' }]
|
|
12
12
|
}] });
|
|
@@ -60,10 +60,10 @@ class LoginResourceInjectorService {
|
|
|
60
60
|
];
|
|
61
61
|
this.insertAdditionalScripts(scripts);
|
|
62
62
|
}
|
|
63
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
64
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: LoginResourceInjectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
64
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: LoginResourceInjectorService, providedIn: 'root' }); }
|
|
65
65
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: LoginResourceInjectorService, decorators: [{
|
|
67
67
|
type: Injectable,
|
|
68
68
|
args: [{
|
|
69
69
|
providedIn: 'root'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-services-login-resource-injector.mjs","sources":["../../src/login/services/login-resource-injector/login-resource-injector.service.ts","../../src/login/services/login-resource-injector/keycloakify-angular-login-services-login-resource-injector.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { ResourceInjectorService } from '@keycloakify/angular/lib/services/resource-injector';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { catchError, forkJoin, of, switchMap } from 'rxjs';\nimport {
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-services-login-resource-injector.mjs","sources":["../../src/login/services/login-resource-injector/login-resource-injector.service.ts","../../src/login/services/login-resource-injector/keycloakify-angular-login-services-login-resource-injector.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { ResourceInjectorService } from '@keycloakify/angular/lib/services/resource-injector';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { catchError, forkJoin, of, switchMap } from 'rxjs';\nimport type { Script } from '@keycloakify/angular/lib/models/script';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LoginResourceInjectorService {\n private kcContext: KcContext = inject<KcContext>(KC_LOGIN_CONTEXT);\n private resourceInjectorService: ResourceInjectorService = inject(\n ResourceInjectorService\n );\n\n injectResource(doUseDefaultCss = true) {\n if (!doUseDefaultCss) {\n this.injectScripts();\n return of(true);\n }\n //reversed order of stylesheets to accomodate prepending to head\n const stylesheets = [\n `${this.kcContext.url.resourcesPath}/css/login.css`,\n `${this.kcContext.url.resourcesCommonPath}/lib/pficon/pficon.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly-additions.min.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly.min.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/@patternfly/patternfly/patternfly.min.css`\n ];\n\n return forkJoin(\n stylesheets.map(url => this.resourceInjectorService.createLink(url))\n ).pipe(\n switchMap(() => {\n this.injectScripts();\n return of(true);\n }),\n catchError(error => {\n console.error('Error loading styles:', error);\n return of(false);\n })\n );\n }\n\n insertAdditionalScripts(scripts: Script[]) {\n scripts.map(script => this.resourceInjectorService.createScript(script));\n }\n\n private injectScripts() {\n const scripts: Script[] = [\n {\n type: 'module',\n id: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`,\n src: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`\n },\n ...(this.kcContext.scripts ?? []).map(script => ({\n type: 'text/javascript',\n src: script,\n id: script\n })),\n {\n type: 'module',\n id: 'authenticationSession',\n textContent: [\n `import { startSessionPolling, checkAuthSession } from \"${this.kcContext.url.resourcesPath}/js/authChecker.js\";`,\n ``,\n `startSessionPolling(\"${this.kcContext.url.ssoLoginInOtherTabsUrl}\");`,\n this.kcContext.authenticationSession === undefined\n ? ''\n : `checkAuthSession(\"${this.kcContext.authenticationSession.authSessionIdHash}\");`\n ].join('\\n')\n }\n ];\n this.insertAdditionalScripts(scripts);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAUa,4BAA4B,CAAA;AAHzC,IAAA,WAAA,GAAA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AAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,cAFzB,MAAM,EAAA,CAAA,CAAA;;2FAET,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAHxC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -62,10 +62,10 @@ class UserProfileFormService {
|
|
|
62
62
|
if (this.#unsubscribe)
|
|
63
63
|
this.#unsubscribe();
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
66
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserProfileFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
66
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserProfileFormService, providedIn: 'root' }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: UserProfileFormService, decorators: [{
|
|
69
69
|
type: Injectable,
|
|
70
70
|
args: [{ providedIn: 'root' }]
|
|
71
71
|
}], ctorParameters: () => [] });
|
|
@@ -104,15 +104,15 @@ class TemplateComponent extends ComponentReference {
|
|
|
104
104
|
this.#cdr.markForCheck();
|
|
105
105
|
this.#effectRef.destroy();
|
|
106
106
|
}
|
|
107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
108
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
108
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: TemplateComponent, isStandalone: true, selector: "kc-root", inputs: { page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, userProfileFormFields: { classPropertyName: "userProfileFormFields", publicName: "userProfileFormFields", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
109
109
|
{
|
|
110
110
|
provide: ComponentReference,
|
|
111
111
|
useExisting: forwardRef(() => TemplateComponent)
|
|
112
112
|
}
|
|
113
113
|
], viewQueries: [{ propertyName: "pageRef", first: true, predicate: ["pageRef"], descendants: true, read: ViewContainerRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@let realm = kcContext.realm;\n@let message = kcContext.message;\n@let auth = kcContext.auth;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n@let url = kcContext.url;\n@let isReadyToRender = isReadyToRender$ | async;\n\n@if (isReadyToRender) {\n <div [kcClass]=\"'kcLoginClass'\">\n <div\n id=\"kc-header\"\n [kcClass]=\"'kcHeaderClass'\"\n >\n <div\n id=\"kc-header-wrapper\"\n [kcClass]=\"'kcHeaderWrapperClass'\"\n >\n <div [innerHTML]=\"realm?.displayNameHtml ?? '' | kcSanitize: 'html'\"></div>\n </div>\n </div>\n\n <div [kcClass]=\"'kcFormCardClass'\">\n <header [kcClass]=\"'kcFormHeaderClass'\">\n <!-- Locale switcher -->\n @if (i18n.enabledLanguages.length > 1) {\n <div\n id=\"kc-locale\"\n [kcClass]=\"'kcLocaleMainClass'\"\n >\n <div\n id=\"kc-locale-wrapper\"\n [kcClass]=\"'kcLocaleWrapperClass'\"\n >\n <div\n id=\"kc-locale-dropdown\"\n class=\"menu-button-links\"\n [kcClass]=\"'kcLocaleDropDownClass'\"\n >\n <button\n tabindex=\"1\"\n id=\"kc-current-locale-link\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n aria-controls=\"language-switch1\"\n [attr.aria-label]=\"i18n.msgStr('languages')\"\n >\n {{ i18n.currentLanguage.label }}\n </button>\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n aria-labelledby=\"kc-current-locale-link\"\n aria-activedescendant=\"\"\n id=\"language-switch1\"\n [kcClass]=\"'kcLocaleListClass'\"\n >\n @for (entry of i18n.enabledLanguages; track entry; let idx = $index) {\n <li\n role=\"none\"\n [kcClass]=\"'kcLocaleListItemClass'\"\n >\n <a\n role=\"menuitem\"\n tabindex=\"-1\"\n [href]=\"entry.href\"\n [kcClass]=\"'kcLocaleItemClass'\"\n [id]=\"'language-' + idx\"\n >\n {{ entry.label }}\n </a>\n </li>\n }\n </ul>\n </div>\n </div>\n </div>\n }\n\n <!-- Header content -->\n <ng-template #node>\n @if (auth && !auth.showUsername && !auth.showResetCredentials) {\n <h1 id=\"kc-page-title\">\n @let header = headerNode && headerNode();\n @if (header) {\n <ng-container [ngTemplateOutlet]=\"header\" />\n }\n </h1>\n } @else {\n <div\n id=\"kc-username\"\n [kcClass]=\"'kcFormGroupClass'\"\n >\n <label id=\"kc-attempted-username\">{{ auth?.attemptedUsername }}</label>\n <a\n id=\"reset-login\"\n [href]=\"url?.loginRestartFlowUrl\"\n [attr.aria-label]=\"i18n.msgStr('restartLoginTooltip')\"\n >\n <div class=\"kc-login-tooltip\">\n <i [kcClass]=\"'kcResetFlowIcon'\"></i>\n <span class=\"kc-tooltip-text\">\n {{ i18n.msgStr('restartLoginTooltip') }}\n </span>\n </div>\n </a>\n </div>\n }\n </ng-template>\n\n @if (displayRequiredFields) {\n <div [kcClass]=\"'kcContentWrapperClass'\">\n <div\n class=\"subtitle\"\n [kcClass]=\"'kcLabelWrapperClass'\"\n >\n <span class=\"subtitle\">\n <span class=\"required\">*</span>\n {{ i18n.msgStr('requiredFields') }}\n </span>\n </div>\n <div class=\"col-md-10\">\n <ng-container [ngTemplateOutlet]=\"node\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"node\" />\n }\n </header>\n\n <div id=\"kc-content\">\n <div id=\"kc-content-wrapper\">\n <!-- Message display -->\n @if (displayMessage && message && (message.type !== 'warning' || !isAppInitiatedAction)) {\n <div\n [kcClass]=\"'kcAlertClass'\"\n [ngClass]=\"message.type === 'error' ? 'pf-m-danger' : 'pf-m-' + message.type\"\n [class]=\"'alert-' + message.type\"\n >\n <div class=\"pf-c-alert__icon\">\n @switch (message.type) {\n @case ('success') {\n <span [kcClass]=\"'kcFeedbackSuccessIcon'\"></span>\n }\n @case ('warning') {\n <span [kcClass]=\"'kcFeedbackWarningIcon'\"></span>\n }\n @case ('info') {\n <span [kcClass]=\"'kcFeedbackInfoIcon'\"></span>\n }\n @case ('error') {\n <span [kcClass]=\"'kcFeedbackErrorIcon'\"></span>\n }\n }\n </div>\n <span\n [kcClass]=\"'kcAlertTitleClass'\"\n [innerHTML]=\"message.summary | kcSanitize: 'html'\"\n ></span>\n </div>\n }\n <!-- Content -->\n <ng-template #pageRef></ng-template>\n\n @if (!!auth && auth?.showTryAnotherWayLink) {\n <form\n id=\"kc-select-try-another-way-form\"\n method=\"post\"\n [action]=\"url?.loginAction\"\n >\n <div [kcClass]=\"'kcFormGroupClass'\">\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n name=\"tryAnotherWay\"\n value=\"on\"\n />\n <a\n id=\"try-another-way\"\n (click)=\"tryAnotherWay()\"\n >\n {{ i18n.msgStr('doTryAnotherWay') }}\n </a>\n </div>\n </div>\n </form>\n }\n @let socialProviders = socialProvidersNode && socialProvidersNode();\n @if (socialProviders) {\n <ng-container [ngTemplateOutlet]=\"socialProviders\" />\n }\n <!-- Info display -->\n @if (displayInfo) {\n <div\n id=\"kc-info\"\n [kcClass]=\"'kcSignUpClass'\"\n >\n <div\n id=\"kc-info-wrapper\"\n [kcClass]=\"'kcInfoAreaWrapperClass'\"\n >\n @let info = infoNode && infoNode();\n @if (info) {\n <ng-container [ngTemplateOutlet]=\"info\" />\n }\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n </div>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: KcSanitizePipe, name: "kcSanitize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
114
114
|
}
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TemplateComponent, decorators: [{
|
|
116
116
|
type: Component,
|
|
117
117
|
args: [{ selector: 'kc-root', imports: [AsyncPipe, KcSanitizePipe, NgTemplateOutlet, KcClassDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
118
118
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keycloakify/angular",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "20.1.
|
|
4
|
+
"version": "20.1.10",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"keycloakify": "^11.9.3",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
@@ -174,14 +174,14 @@
|
|
|
174
174
|
"types": "./login/components/field-errors/index.d.ts",
|
|
175
175
|
"default": "./fesm2022/keycloakify-angular-login-components-field-errors.mjs"
|
|
176
176
|
},
|
|
177
|
-
"./login/components/group-label": {
|
|
178
|
-
"types": "./login/components/group-label/index.d.ts",
|
|
179
|
-
"default": "./fesm2022/keycloakify-angular-login-components-group-label.mjs"
|
|
180
|
-
},
|
|
181
177
|
"./login/components/input-field-by-type": {
|
|
182
178
|
"types": "./login/components/input-field-by-type/index.d.ts",
|
|
183
179
|
"default": "./fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs"
|
|
184
180
|
},
|
|
181
|
+
"./login/components/group-label": {
|
|
182
|
+
"types": "./login/components/group-label/index.d.ts",
|
|
183
|
+
"default": "./fesm2022/keycloakify-angular-login-components-group-label.mjs"
|
|
184
|
+
},
|
|
185
185
|
"./login/components/input-tag": {
|
|
186
186
|
"types": "./login/components/input-tag/index.d.ts",
|
|
187
187
|
"default": "./fesm2022/keycloakify-angular-login-components-input-tag.mjs"
|
|
@@ -270,14 +270,14 @@
|
|
|
270
270
|
"types": "./login/pages/login-oauth-grant/index.d.ts",
|
|
271
271
|
"default": "./fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs"
|
|
272
272
|
},
|
|
273
|
-
"./login/pages/login-oauth2-device-verify-user-code": {
|
|
274
|
-
"types": "./login/pages/login-oauth2-device-verify-user-code/index.d.ts",
|
|
275
|
-
"default": "./fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs"
|
|
276
|
-
},
|
|
277
273
|
"./login/pages/login-otp": {
|
|
278
274
|
"types": "./login/pages/login-otp/index.d.ts",
|
|
279
275
|
"default": "./fesm2022/keycloakify-angular-login-pages-login-otp.mjs"
|
|
280
276
|
},
|
|
277
|
+
"./login/pages/login-oauth2-device-verify-user-code": {
|
|
278
|
+
"types": "./login/pages/login-oauth2-device-verify-user-code/index.d.ts",
|
|
279
|
+
"default": "./fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs"
|
|
280
|
+
},
|
|
281
281
|
"./login/pages/login-page-expired": {
|
|
282
282
|
"types": "./login/pages/login-page-expired/index.d.ts",
|
|
283
283
|
"default": "./fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs"
|
|
@@ -330,14 +330,14 @@
|
|
|
330
330
|
"types": "./login/pages/logout-confirm/index.d.ts",
|
|
331
331
|
"default": "./fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs"
|
|
332
332
|
},
|
|
333
|
-
"./login/pages/register": {
|
|
334
|
-
"types": "./login/pages/register/index.d.ts",
|
|
335
|
-
"default": "./fesm2022/keycloakify-angular-login-pages-register.mjs"
|
|
336
|
-
},
|
|
337
333
|
"./login/pages/saml-post-form": {
|
|
338
334
|
"types": "./login/pages/saml-post-form/index.d.ts",
|
|
339
335
|
"default": "./fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs"
|
|
340
336
|
},
|
|
337
|
+
"./login/pages/register": {
|
|
338
|
+
"types": "./login/pages/register/index.d.ts",
|
|
339
|
+
"default": "./fesm2022/keycloakify-angular-login-pages-register.mjs"
|
|
340
|
+
},
|
|
341
341
|
"./login/pages/select-authenticator": {
|
|
342
342
|
"types": "./login/pages/select-authenticator/index.d.ts",
|
|
343
343
|
"default": "./fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs"
|
package/src/account/i18n.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GenericI18n_noJsx } from 'keycloakify/account/i18n/noJsx/GenericI18n_noJsx';
|
|
2
|
-
import {
|
|
2
|
+
import type { MessageKey as MessageKey_defaultSet } from 'keycloakify/account/i18n/messages_defaultSet/types';
|
|
3
3
|
/** INTERNAL: DO NOT IMPORT THIS */
|
|
4
4
|
export type I18n = GenericI18n_noJsx<MessageKey_defaultSet, string>;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@if (!realm.registrationEmailAsUsername) {
|
|
28
28
|
<div
|
|
29
29
|
class="form-group"
|
|
30
|
-
[
|
|
30
|
+
[class.has-error]="messagesPerField.existsError('username')"
|
|
31
31
|
>
|
|
32
32
|
<div class="col-sm-2 col-md-2">
|
|
33
33
|
<label
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
<div
|
|
58
58
|
class="form-group"
|
|
59
|
-
[
|
|
59
|
+
[class.has-error]="messagesPerField.existsError('email')"
|
|
60
60
|
>
|
|
61
61
|
<div class="col-sm-2 col-md-2">
|
|
62
62
|
<label
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
|
|
83
83
|
<div
|
|
84
84
|
class="form-group"
|
|
85
|
-
[
|
|
85
|
+
[class.has-error]="messagesPerField.existsError('firstName')"
|
|
86
86
|
>
|
|
87
87
|
<div class="col-sm-2 col-md-2">
|
|
88
88
|
<label
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
|
|
108
108
|
<div
|
|
109
109
|
class="form-group"
|
|
110
|
-
[
|
|
110
|
+
[class.has-error]="messagesPerField.existsError('lastName')"
|
|
111
111
|
>
|
|
112
112
|
<div class="col-sm-2 col-md-2">
|
|
113
113
|
<label
|
|
@@ -137,7 +137,11 @@
|
|
|
137
137
|
>
|
|
138
138
|
<div>
|
|
139
139
|
@if (referrer) {
|
|
140
|
-
<a
|
|
140
|
+
<a
|
|
141
|
+
[href]="referrer!.url"
|
|
142
|
+
[innerHTML]="i18n.msgStr('backToApplication') | kcSanitize: 'html'"
|
|
143
|
+
>
|
|
144
|
+
</a>
|
|
141
145
|
}
|
|
142
146
|
<button
|
|
143
147
|
type="submit"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Component, forwardRef, inject } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
3
2
|
import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
|
|
4
3
|
import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
|
|
5
4
|
import type { I18n } from '@keycloakify/angular/account/i18n';
|
|
@@ -7,13 +6,15 @@ import type { KcContext } from '@keycloakify/angular/account/KcContext';
|
|
|
7
6
|
import { ACCOUNT_CLASSES } from '@keycloakify/angular/account/tokens/classes';
|
|
8
7
|
import { ACCOUNT_I18N } from '@keycloakify/angular/account/tokens/i18n';
|
|
9
8
|
import { KC_ACCOUNT_CONTEXT } from '@keycloakify/angular/account/tokens/kc-context';
|
|
9
|
+
import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
|
|
10
10
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
11
11
|
import type { ClassKey } from 'keycloakify/account';
|
|
12
12
|
|
|
13
13
|
@Component({
|
|
14
|
-
imports: [KcClassDirective,
|
|
14
|
+
imports: [KcClassDirective, KcSanitizePipe],
|
|
15
15
|
selector: 'kc-account',
|
|
16
16
|
templateUrl: 'account.component.html',
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
18
|
providers: [
|
|
18
19
|
{
|
|
19
20
|
provide: ComponentReference,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { KeyValuePipe
|
|
2
|
-
import { Component, forwardRef, inject } from '@angular/core';
|
|
1
|
+
import { KeyValuePipe } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
3
3
|
import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
|
|
4
4
|
import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
|
|
5
5
|
import type { I18n } from '@keycloakify/angular/account/i18n';
|
|
@@ -12,9 +12,10 @@ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css
|
|
|
12
12
|
import type { ClassKey } from 'keycloakify/account';
|
|
13
13
|
|
|
14
14
|
@Component({
|
|
15
|
-
imports: [KcClassDirective,
|
|
15
|
+
imports: [KcClassDirective, KeyValuePipe, IsArrayWithEmptyObjectPipe],
|
|
16
16
|
selector: 'kc-applications',
|
|
17
17
|
templateUrl: 'applications.component.html',
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
19
|
providers: [
|
|
19
20
|
{
|
|
20
21
|
provide: ComponentReference,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Component, forwardRef, inject } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
3
2
|
import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
|
|
4
|
-
import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
|
|
5
3
|
import type { I18n } from '@keycloakify/angular/account/i18n';
|
|
6
4
|
import type { KcContext } from '@keycloakify/angular/account/KcContext';
|
|
7
5
|
import { ACCOUNT_CLASSES } from '@keycloakify/angular/account/tokens/classes';
|
|
@@ -11,9 +9,9 @@ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css
|
|
|
11
9
|
import type { ClassKey } from 'keycloakify/account';
|
|
12
10
|
|
|
13
11
|
@Component({
|
|
14
|
-
imports: [KcClassDirective, NgClass],
|
|
15
12
|
selector: 'kc-federated-identity',
|
|
16
13
|
templateUrl: 'federatedIdentity.component.html',
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
15
|
providers: [
|
|
18
16
|
{
|
|
19
17
|
provide: ComponentReference,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DatePipe
|
|
2
|
-
import { Component, forwardRef, inject } from '@angular/core';
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
3
3
|
import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
|
|
4
4
|
import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
|
|
5
5
|
import type { I18n } from '@keycloakify/angular/account/i18n';
|
|
@@ -11,9 +11,10 @@ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css
|
|
|
11
11
|
import type { ClassKey } from 'keycloakify/account';
|
|
12
12
|
|
|
13
13
|
@Component({
|
|
14
|
-
imports: [KcClassDirective,
|
|
14
|
+
imports: [KcClassDirective, DatePipe],
|
|
15
15
|
selector: 'kc-log',
|
|
16
16
|
templateUrl: 'log.component.html',
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
18
|
providers: [
|
|
18
19
|
{
|
|
19
20
|
provide: ComponentReference,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Component, forwardRef, inject, signal } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, signal } from '@angular/core';
|
|
3
2
|
import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
|
|
4
3
|
import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
|
|
5
4
|
import type { I18n } from '@keycloakify/angular/account/i18n';
|
|
@@ -11,9 +10,10 @@ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css
|
|
|
11
10
|
import type { ClassKey } from 'keycloakify/account';
|
|
12
11
|
|
|
13
12
|
@Component({
|
|
14
|
-
imports: [KcClassDirective
|
|
13
|
+
imports: [KcClassDirective],
|
|
15
14
|
selector: 'kc-password',
|
|
16
15
|
templateUrl: 'password.component.html',
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
17
|
providers: [
|
|
18
18
|
{
|
|
19
19
|
provide: ComponentReference,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Component, forwardRef, inject } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
3
2
|
import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
|
|
4
3
|
import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
|
|
5
4
|
import type { I18n } from '@keycloakify/angular/account/i18n';
|
|
@@ -11,9 +10,10 @@ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css
|
|
|
11
10
|
import type { ClassKey } from 'keycloakify/account';
|
|
12
11
|
|
|
13
12
|
@Component({
|
|
14
|
-
imports: [KcClassDirective
|
|
13
|
+
imports: [KcClassDirective],
|
|
15
14
|
selector: 'kc-sessions',
|
|
16
15
|
templateUrl: 'sessions.component.html',
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
17
|
providers: [
|
|
18
18
|
{
|
|
19
19
|
provide: ComponentReference,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Component, forwardRef, inject } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
3
2
|
import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
|
|
4
3
|
import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
|
|
5
4
|
import type { I18n } from '@keycloakify/angular/account/i18n';
|
|
@@ -12,9 +11,10 @@ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css
|
|
|
12
11
|
import type { ClassKey } from 'keycloakify/account';
|
|
13
12
|
|
|
14
13
|
@Component({
|
|
15
|
-
imports: [KcClassDirective, KcSanitizePipe
|
|
14
|
+
imports: [KcClassDirective, KcSanitizePipe],
|
|
16
15
|
selector: 'kc-totp',
|
|
17
16
|
templateUrl: 'totp.component.html',
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
18
|
providers: [
|
|
19
19
|
{
|
|
20
20
|
provide: ComponentReference,
|
|
@@ -11,7 +11,7 @@ import { ACCOUNT_CLASSES } from '@keycloakify/angular/account/tokens/classes';
|
|
|
11
11
|
import { ACCOUNT_I18N } from '@keycloakify/angular/account/tokens/i18n';
|
|
12
12
|
import { KC_ACCOUNT_CONTEXT } from '@keycloakify/angular/account/tokens/kc-context';
|
|
13
13
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
14
|
-
import {
|
|
14
|
+
import type { KcContextLike } from 'keycloakify/account/i18n/noJsx';
|
|
15
15
|
import type { ClassKey } from 'keycloakify/account/lib/kcClsx';
|
|
16
16
|
|
|
17
17
|
export type KeycloakifyAngularAccountConfig = {
|
|
@@ -39,7 +39,7 @@ export const provideKeycloakifyAngular = (config: KeycloakifyAngularAccountConfi
|
|
|
39
39
|
},
|
|
40
40
|
provideAppInitializer(() => {
|
|
41
41
|
const i18nService: I18nService = inject(I18nService);
|
|
42
|
-
const kcContext
|
|
42
|
+
const kcContext = inject<KcContext>(KC_ACCOUNT_CONTEXT);
|
|
43
43
|
const getI18n = config.getI18n;
|
|
44
44
|
|
|
45
45
|
const { i18n, prI18n_currentLanguage } = getI18n({
|