@keycloakify/angular 21.1.5 → 22.0.0-rc.1

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.
Files changed (152) hide show
  1. package/README.md +2 -0
  2. package/bin/index.js +72 -1113
  3. package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +3 -3
  4. package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs.map +1 -1
  5. package/fesm2022/keycloakify-angular-account-pages-account.mjs +3 -3
  6. package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
  7. package/fesm2022/keycloakify-angular-account-pages-applications.mjs +3 -3
  8. package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
  9. package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +3 -3
  10. package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
  11. package/fesm2022/keycloakify-angular-account-pages-log.mjs +3 -3
  12. package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
  13. package/fesm2022/keycloakify-angular-account-pages-password.mjs +17 -10
  14. package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
  15. package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +3 -3
  16. package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
  17. package/fesm2022/keycloakify-angular-account-pages-totp.mjs +3 -3
  18. package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
  19. package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +3 -3
  20. package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs.map +1 -1
  21. package/fesm2022/keycloakify-angular-account-services-i18n.mjs +3 -3
  22. package/fesm2022/keycloakify-angular-account-services-i18n.mjs.map +1 -1
  23. package/fesm2022/keycloakify-angular-account-template.mjs +5 -4
  24. package/fesm2022/keycloakify-angular-account-template.mjs.map +1 -1
  25. package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +5 -4
  26. package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs.map +1 -1
  27. package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +3 -3
  28. package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs.map +1 -1
  29. package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +3 -3
  30. package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs.map +1 -1
  31. package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +3 -3
  32. package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs.map +1 -1
  33. package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +3 -3
  34. package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs.map +1 -1
  35. package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +3 -3
  36. package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs.map +1 -1
  37. package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +3 -3
  38. package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs.map +1 -1
  39. package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +13 -8
  40. package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -1
  41. package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +9 -6
  42. package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -1
  43. package/fesm2022/keycloakify-angular-login-components-group-label.mjs +9 -6
  44. package/fesm2022/keycloakify-angular-login-components-group-label.mjs.map +1 -1
  45. package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +11 -7
  46. package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -1
  47. package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +13 -8
  48. package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs.map +1 -1
  49. package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +15 -9
  50. package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -1
  51. package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +3 -3
  52. package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs.map +1 -1
  53. package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +7 -5
  54. package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -1
  55. package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +13 -8
  56. package/fesm2022/keycloakify-angular-login-components-select-tag.mjs.map +1 -1
  57. package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +9 -6
  58. package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs.map +1 -1
  59. package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +3 -3
  60. package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs.map +1 -1
  61. package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +3 -3
  62. package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs.map +1 -1
  63. package/fesm2022/keycloakify-angular-login-pages-code.mjs +9 -6
  64. package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -1
  65. package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +9 -6
  66. package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -1
  67. package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +9 -6
  68. package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -1
  69. package/fesm2022/keycloakify-angular-login-pages-error.mjs +9 -6
  70. package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -1
  71. package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +11 -7
  72. package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -1
  73. package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +11 -7
  74. package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -1
  75. package/fesm2022/keycloakify-angular-login-pages-info.mjs +9 -6
  76. package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -1
  77. package/fesm2022/keycloakify-angular-login-pages-link-idp-action.mjs +9 -6
  78. package/fesm2022/keycloakify-angular-login-pages-link-idp-action.mjs.map +1 -1
  79. package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +9 -6
  80. package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs.map +1 -1
  81. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +9 -6
  82. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs.map +1 -1
  83. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +9 -6
  84. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs.map +1 -1
  85. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +9 -6
  86. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
  87. package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +9 -6
  88. package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs.map +1 -1
  89. package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +9 -6
  90. package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs.map +1 -1
  91. package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +9 -6
  92. package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -1
  93. package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +9 -6
  94. package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
  95. package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +9 -6
  96. package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
  97. package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +11 -7
  98. package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -1
  99. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +11 -7
  100. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs.map +1 -1
  101. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +9 -6
  102. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs.map +1 -1
  103. package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +9 -6
  104. package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -1
  105. package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +9 -6
  106. package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -1
  107. package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +9 -6
  108. package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -1
  109. package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +11 -7
  110. package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -1
  111. package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +11 -7
  112. package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
  113. package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +9 -6
  114. package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
  115. package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +9 -6
  116. package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -1
  117. package/fesm2022/keycloakify-angular-login-pages-login.mjs +11 -7
  118. package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
  119. package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +9 -6
  120. package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
  121. package/fesm2022/keycloakify-angular-login-pages-register.mjs +13 -8
  122. package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -1
  123. package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +11 -7
  124. package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
  125. package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +9 -6
  126. package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
  127. package/fesm2022/keycloakify-angular-login-pages-terms.mjs +9 -6
  128. package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -1
  129. package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +11 -7
  130. package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -1
  131. package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +9 -6
  132. package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
  133. package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +9 -6
  134. package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
  135. package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +9 -6
  136. package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
  137. package/fesm2022/keycloakify-angular-login-services-i18n.mjs +3 -3
  138. package/fesm2022/keycloakify-angular-login-services-i18n.mjs.map +1 -1
  139. package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +3 -3
  140. package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs.map +1 -1
  141. package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +3 -3
  142. package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs.map +1 -1
  143. package/fesm2022/keycloakify-angular-login-template.mjs +13 -8
  144. package/fesm2022/keycloakify-angular-login-template.mjs.map +1 -1
  145. package/package.json +1 -1
  146. package/src/bin/initialize-account-theme/boilerplate/KcPageStory.ts +2 -0
  147. package/src/bin/tsconfig.json +4 -5
  148. package/bin/187.index.js +0 -514
  149. package/bin/202.index.js +0 -7778
  150. package/bin/476.index.js +0 -400
  151. package/bin/671.index.js +0 -1354
  152. package/bin/942.index.js +0 -911
@@ -13,15 +13,15 @@ class LogoutOtherSessionsComponent extends ComponentReference {
13
13
  this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
14
14
  this.classes = inject(LOGIN_CLASSES);
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: LogoutOtherSessionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
17
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.12", type: LogoutOtherSessionsComponent, isStandalone: true, selector: "kc-logout-other-sessions", providers: [
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LogoutOtherSessionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
17
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: LogoutOtherSessionsComponent, isStandalone: true, selector: "kc-logout-other-sessions", providers: [
18
18
  {
19
19
  provide: ComponentReference,
20
20
  useExisting: forwardRef(() => LogoutOtherSessionsComponent)
21
21
  }
22
22
  ], usesInheritance: true, ngImport: i0, template: "<div\n id=\"kc-form-options\"\n [kcClass]=\"'kcFormOptionsClass'\"\n>\n <div [kcClass]=\"'kcFormOptionsWrapperClass'\">\n <div class=\"checkbox\">\n <label for=\"logout-sessions\">\n <input\n type=\"checkbox\"\n id=\"logout-sessions\"\n name=\"logout-sessions\"\n value=\"on\"\n defaultChecked=\"true\"\n />\n {{ i18n.msgStr('logoutOtherSessions') }}\n </label>\n </div>\n </div>\n</div>\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: LogoutOtherSessionsComponent, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LogoutOtherSessionsComponent, decorators: [{
25
25
  type: Component,
26
26
  args: [{ selector: 'kc-logout-other-sessions', imports: [KcClassDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
27
27
  {
@@ -1 +1 @@
1
- {"version":3,"file":"keycloakify-angular-login-components-logout-other-sessions.mjs","sources":["../../src/login/components/logout-other-sessions/logout-other-sessions.component.ts","../../src/login/components/logout-other-sessions/logout-other-sessions.component.html","../../src/login/components/logout-other-sessions/keycloakify-angular-login-components-logout-other-sessions.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject } 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 { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\n\n@Component({\n selector: 'kc-logout-other-sessions',\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n imports: [KcClassDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: 'logout-other-sessions.component.html',\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => LogoutOtherSessionsComponent)\n }\n ]\n})\nexport class LogoutOtherSessionsComponent extends ComponentReference {\n i18n = inject<I18n>(LOGIN_I18N);\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n}\n","<div\n id=\"kc-form-options\"\n [kcClass]=\"'kcFormOptionsClass'\"\n>\n <div [kcClass]=\"'kcFormOptionsWrapperClass'\">\n <div class=\"checkbox\">\n <label for=\"logout-sessions\">\n <input\n type=\"checkbox\"\n id=\"logout-sessions\"\n name=\"logout-sessions\"\n value=\"on\"\n defaultChecked=\"true\"\n />\n {{ i18n.msgStr('logoutOtherSessions') }}\n </label>\n </div>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA4BM,MAAO,4BAA6B,SAAQ,kBAAkB,CAAA;AAnBpE,IAAA,WAAA,GAAA;;AAoBI,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AACtB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;AAC9E,IAAA;+GAJY,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,SAAA,EAP1B;AACP,YAAA;AACI,gBAAA,OAAO,EAAE,kBAAkB;AAC3B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,4BAA4B;AAC7D;SACJ,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1BL,mkBAmBA,mFDDc,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAUjB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAnBxC,SAAS;+BACI,0BAA0B,EAAA,OAAA,EAQ3B,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,SAAA,EAEpC;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,kCAAkC;AAC7D;AACJ,qBAAA,EAAA,QAAA,EAAA,mkBAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;;AE1BL;;AAEG;;;;"}
1
+ {"version":3,"file":"keycloakify-angular-login-components-logout-other-sessions.mjs","sources":["../../src/login/components/logout-other-sessions/logout-other-sessions.component.ts","../../src/login/components/logout-other-sessions/logout-other-sessions.component.html","../../src/login/components/logout-other-sessions/keycloakify-angular-login-components-logout-other-sessions.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject } 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 { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\n\n@Component({\n selector: 'kc-logout-other-sessions',\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n imports: [KcClassDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: 'logout-other-sessions.component.html',\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => LogoutOtherSessionsComponent)\n }\n ]\n})\nexport class LogoutOtherSessionsComponent extends ComponentReference {\n i18n = inject<I18n>(LOGIN_I18N);\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n}\n","<div\n id=\"kc-form-options\"\n [kcClass]=\"'kcFormOptionsClass'\"\n>\n <div [kcClass]=\"'kcFormOptionsWrapperClass'\">\n <div class=\"checkbox\">\n <label for=\"logout-sessions\">\n <input\n type=\"checkbox\"\n id=\"logout-sessions\"\n name=\"logout-sessions\"\n value=\"on\"\n defaultChecked=\"true\"\n />\n {{ i18n.msgStr('logoutOtherSessions') }}\n </label>\n </div>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA4BM,MAAO,4BAA6B,SAAQ,kBAAkB,CAAA;AAnBpE,IAAA,WAAA,GAAA;;AAoBI,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AACtB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;AAC9E,IAAA;8GAJY,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,SAAA,EAP1B;AACP,YAAA;AACI,gBAAA,OAAO,EAAE,kBAAkB;AAC3B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,4BAA4B;AAC7D;SACJ,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1BL,mkBAmBA,mFDDc,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAUjB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAnBxC,SAAS;+BACI,0BAA0B,EAAA,OAAA,EAQ3B,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,SAAA,EAEpC;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,kCAAkC;AAC7D;AACJ,qBAAA,EAAA,QAAA,EAAA,mkBAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;;AE1BL;;AAEG;;;;"}
@@ -11,10 +11,12 @@ class PasswordWrapperComponent extends ComponentReference {
11
11
  super(...arguments);
12
12
  this.i18n = inject(LOGIN_I18N);
13
13
  this.renderer = inject(Renderer2);
14
- this.passwordInputId = input.required(...(ngDevMode ? [{ debugName: "passwordInputId" }] : /* istanbul ignore next */ []));
14
+ this.passwordInputId = input.required(/* @ts-ignore */
15
+ ...(ngDevMode ? [{ debugName: "passwordInputId" }] : /* istanbul ignore next */ []));
15
16
  this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
16
17
  this.classes = inject(LOGIN_CLASSES);
17
- this.isPasswordRevealed = signal(false, ...(ngDevMode ? [{ debugName: "isPasswordRevealed" }] : /* istanbul ignore next */ []));
18
+ this.isPasswordRevealed = signal(false, /* @ts-ignore */
19
+ ...(ngDevMode ? [{ debugName: "isPasswordRevealed" }] : /* istanbul ignore next */ []));
18
20
  }
19
21
  togglePasswordVisibility() {
20
22
  this.isPasswordRevealed.update(revealed => !revealed);
@@ -26,15 +28,15 @@ class PasswordWrapperComponent extends ComponentReference {
26
28
  this.renderer.setProperty(input, 'type', this.isPasswordRevealed() ? 'text' : 'password');
27
29
  }
28
30
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PasswordWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
30
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: PasswordWrapperComponent, isStandalone: true, selector: "kc-password-wrapper", inputs: { passwordInputId: { classPropertyName: "passwordInputId", publicName: "passwordInputId", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PasswordWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
32
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: PasswordWrapperComponent, isStandalone: true, selector: "kc-password-wrapper", inputs: { passwordInputId: { classPropertyName: "passwordInputId", publicName: "passwordInputId", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
31
33
  {
32
34
  provide: ComponentReference,
33
35
  useExisting: forwardRef(() => PasswordWrapperComponent)
34
36
  }
35
37
  ], usesInheritance: true, ngImport: i0, template: "<div [kcClass]=\"'kcInputGroup'\">\n <ng-content />\n <button\n type=\"button\"\n [kcClass]=\"'kcFormPasswordVisibilityButtonClass'\"\n [attr.aria-label]=\"i18n.msgStr(isPasswordRevealed() ? 'hidePassword' : 'showPassword')\"\n [attr.aria-controls]=\"passwordInputId()\"\n (click)=\"togglePasswordVisibility()\"\n >\n <i\n aria-hidden=\"true\"\n [kcClass]=\"isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'\"\n ></i>\n </button>\n</div>\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
38
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PasswordWrapperComponent, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PasswordWrapperComponent, decorators: [{
38
40
  type: Component,
39
41
  args: [{ selector: 'kc-password-wrapper', changeDetection: ChangeDetectionStrategy.OnPush, imports: [KcClassDirective], providers: [
40
42
  {
@@ -1 +1 @@
1
- {"version":3,"file":"keycloakify-angular-login-components-password-wrapper.mjs","sources":["../../src/login/components/password-wrapper/password-wrapper.component.ts","../../src/login/components/password-wrapper/password-wrapper.component.html","../../src/login/components/password-wrapper/keycloakify-angular-login-components-password-wrapper.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, input, Renderer2, signal, type WritableSignal } 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 { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\n\n@Component({\n selector: 'kc-password-wrapper',\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [KcClassDirective],\n templateUrl: 'password-wrapper.component.html',\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => PasswordWrapperComponent)\n }\n ]\n})\nexport class PasswordWrapperComponent extends ComponentReference {\n i18n = inject<I18n>(LOGIN_I18N);\n private renderer = inject(Renderer2);\n passwordInputId = input.required<string>();\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n isPasswordRevealed: WritableSignal<boolean> = signal(false);\n\n togglePasswordVisibility(): void {\n this.isPasswordRevealed.update(revealed => !revealed);\n this.setPasswordInputType();\n }\n\n private setPasswordInputType(): void {\n const input = document.getElementById(this.passwordInputId());\n if (input) {\n this.renderer.setProperty(input, 'type', this.isPasswordRevealed() ? 'text' : 'password');\n }\n }\n}\n","<div [kcClass]=\"'kcInputGroup'\">\n <ng-content />\n <button\n type=\"button\"\n [kcClass]=\"'kcFormPasswordVisibilityButtonClass'\"\n [attr.aria-label]=\"i18n.msgStr(isPasswordRevealed() ? 'hidePassword' : 'showPassword')\"\n [attr.aria-controls]=\"passwordInputId()\"\n (click)=\"togglePasswordVisibility()\"\n >\n <i\n aria-hidden=\"true\"\n [kcClass]=\"isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'\"\n ></i>\n </button>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA4BM,MAAO,wBAAyB,SAAQ,kBAAkB,CAAA;AAnBhE,IAAA,WAAA,GAAA;;AAoBI,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AACvB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;AACpC,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK,CAAC,QAAQ,qFAAU;AACjC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;AAE3E,QAAA,IAAA,CAAA,kBAAkB,GAA4B,MAAM,CAAC,KAAK,yFAAC;AAa9D,IAAA;IAXG,wBAAwB,GAAA;AACpB,QAAA,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC;QACrD,IAAI,CAAC,oBAAoB,EAAE;IAC/B;IAEQ,oBAAoB,GAAA;QACxB,MAAM,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CA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AAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,8BAA8B;AACzD;AACJ,qBAAA,EAAA,QAAA,EAAA,yjBAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;;AE1BL;;AAEG;;;;"}
1
+ {"version":3,"file":"keycloakify-angular-login-components-password-wrapper.mjs","sources":["../../src/login/components/password-wrapper/password-wrapper.component.ts","../../src/login/components/password-wrapper/password-wrapper.component.html","../../src/login/components/password-wrapper/keycloakify-angular-login-components-password-wrapper.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, input, Renderer2, signal, type WritableSignal } 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 { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\n\n@Component({\n selector: 'kc-password-wrapper',\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [KcClassDirective],\n templateUrl: 'password-wrapper.component.html',\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => PasswordWrapperComponent)\n }\n ]\n})\nexport class PasswordWrapperComponent extends ComponentReference {\n i18n = inject<I18n>(LOGIN_I18N);\n private renderer = inject(Renderer2);\n passwordInputId = input.required<string>();\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n isPasswordRevealed: WritableSignal<boolean> = signal(false);\n\n togglePasswordVisibility(): void {\n this.isPasswordRevealed.update(revealed => !revealed);\n this.setPasswordInputType();\n }\n\n private setPasswordInputType(): void {\n const input = document.getElementById(this.passwordInputId());\n if (input) {\n this.renderer.setProperty(input, 'type', this.isPasswordRevealed() ? 'text' : 'password');\n }\n }\n}\n","<div [kcClass]=\"'kcInputGroup'\">\n <ng-content />\n <button\n type=\"button\"\n [kcClass]=\"'kcFormPasswordVisibilityButtonClass'\"\n [attr.aria-label]=\"i18n.msgStr(isPasswordRevealed() ? 'hidePassword' : 'showPassword')\"\n [attr.aria-controls]=\"passwordInputId()\"\n (click)=\"togglePasswordVisibility()\"\n >\n <i\n aria-hidden=\"true\"\n [kcClass]=\"isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'\"\n ></i>\n </button>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA4BM,MAAO,wBAAyB,SAAQ,kBAAkB,CAAA;AAnBhE,IAAA,WAAA,GAAA;;AAoBI,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AACvB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;QACpC,IAAA,CAAA,eAAe,GAAG,KAAK,CAAC,QAAQ;4FAAU;AACjC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;QAE3E,IAAA,CAAA,kBAAkB,GAA4B,MAAM,CAAC,KAAK;+FAAC;AAa9D,IAAA;IAXG,wBAAwB,GAAA;AACpB,QAAA,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC;QACrD,IAAI,CAAC,oBAAoB,EAAE;IAC/B;IAEQ,oBAAoB,GAAA;QACxB,MAAM,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7D,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,QAA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AAA,EAAA,QAAA,EAAA,yjBAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;;AE1BL;;AAEG;;;;"}
@@ -11,15 +11,19 @@ class SelectTagComponent extends ComponentReference {
11
11
  constructor() {
12
12
  super(...arguments);
13
13
  this.i18n = inject(LOGIN_I18N);
14
- this.attribute = input(...(ngDevMode ? [undefined, { debugName: "attribute" }] : /* istanbul ignore next */ []));
15
- this.valueOrValues = input(...(ngDevMode ? [undefined, { debugName: "valueOrValues" }] : /* istanbul ignore next */ []));
16
- this.displayableErrors = input(...(ngDevMode ? [undefined, { debugName: "displayableErrors" }] : /* istanbul ignore next */ []));
14
+ this.attribute = input(/* @ts-ignore */
15
+ ...(ngDevMode ? [undefined, { debugName: "attribute" }] : /* istanbul ignore next */ []));
16
+ this.valueOrValues = input(/* @ts-ignore */
17
+ ...(ngDevMode ? [undefined, { debugName: "valueOrValues" }] : /* istanbul ignore next */ []));
18
+ this.displayableErrors = input(/* @ts-ignore */
19
+ ...(ngDevMode ? [undefined, { debugName: "displayableErrors" }] : /* istanbul ignore next */ []));
17
20
  this.dispatchFormAction = output();
18
21
  this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
19
22
  this.classes = inject(LOGIN_CLASSES);
20
23
  this.isMultiple = computed(() => {
21
24
  return this.attribute()?.annotations?.inputType === 'multiselect';
22
- }, ...(ngDevMode ? [{ debugName: "isMultiple" }] : /* istanbul ignore next */ []));
25
+ }, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "isMultiple" }] : /* istanbul ignore next */ []));
23
27
  this.options = computed(() => {
24
28
  const attribute = this.attribute();
25
29
  if (attribute) {
@@ -42,7 +46,8 @@ class SelectTagComponent extends ComponentReference {
42
46
  })();
43
47
  }
44
48
  return [];
45
- }, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
49
+ }, /* @ts-ignore */
50
+ ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
46
51
  }
47
52
  onChange(event) {
48
53
  this.dispatchFormAction.emit({
@@ -63,15 +68,15 @@ class SelectTagComponent extends ComponentReference {
63
68
  fieldIndex: undefined
64
69
  });
65
70
  }
66
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectTagComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
67
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectTagComponent, isStandalone: true, selector: "kc-select-tag", inputs: { attribute: { classPropertyName: "attribute", publicName: "attribute", isSignal: true, isRequired: false, transformFunction: null }, valueOrValues: { classPropertyName: "valueOrValues", publicName: "valueOrValues", isSignal: true, isRequired: false, transformFunction: null }, displayableErrors: { classPropertyName: "displayableErrors", publicName: "displayableErrors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dispatchFormAction: "dispatchFormAction" }, providers: [
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SelectTagComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
72
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: SelectTagComponent, isStandalone: true, selector: "kc-select-tag", inputs: { attribute: { classPropertyName: "attribute", publicName: "attribute", isSignal: true, isRequired: false, transformFunction: null }, valueOrValues: { classPropertyName: "valueOrValues", publicName: "valueOrValues", isSignal: true, isRequired: false, transformFunction: null }, displayableErrors: { classPropertyName: "displayableErrors", publicName: "displayableErrors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dispatchFormAction: "dispatchFormAction" }, providers: [
68
73
  {
69
74
  provide: ComponentReference,
70
75
  useExisting: forwardRef(() => SelectTagComponent)
71
76
  }
72
77
  ], usesInheritance: true, ngImport: i0, template: "@let attr = attribute();\n@let multiple = isMultiple();\n@if (attr) {\n <select\n [id]=\"attr.name\"\n [name]=\"attr.name\"\n [value]=\"valueOrValues()\"\n [kcClass]=\"'kcInputClass'\"\n [attr.aria-invalid]=\"!!displayableErrors()?.length\"\n [disabled]=\"attr.readOnly\"\n [multiple]=\"multiple\"\n [size]=\"!attr.annotations.inputTypeSize ? undefined : (attr.annotations.inputTypeSize | toNumber)\"\n (change)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n >\n @if (!multiple) {\n <option value=\"\"></option>\n }\n @for (option of options(); track option) {\n <option [value]=\"option\">\n @if (!!attr.annotations.inputOptionLabels) {\n {{ i18n.advancedMsgStr(attr.annotations.inputOptionLabels[option] ?? option) }}\n } @else if (!!attr.annotations.inputOptionLabelsI18nPrefix) {\n {{ i18n.advancedMsgStr(attr.annotations.inputOptionLabelsI18nPrefix + '.' + option) }}\n } @else {\n {{ option }}\n }\n </option>\n }\n </select>\n}\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }, { kind: "pipe", type: ToNumberPipe, name: "toNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
73
78
  }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectTagComponent, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SelectTagComponent, decorators: [{
75
80
  type: Component,
76
81
  args: [{ imports: [KcClassDirective, ToNumberPipe], selector: 'kc-select-tag', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
77
82
  {
@@ -1 +1 @@
1
- {"version":3,"file":"keycloakify-angular-login-components-select-tag.mjs","sources":["../../src/login/components/select-tag/select-tag.component.ts","../../src/login/components/select-tag/select-tag.component.html","../../src/login/components/select-tag/keycloakify-angular-login-components-select-tag.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } 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 { ToNumberPipe } from '@keycloakify/angular/lib/pipes/to-number';\nimport type { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport type { Attribute } from 'keycloakify/login/KcContext';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\n\n@Component({\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n imports: [KcClassDirective, ToNumberPipe],\n selector: 'kc-select-tag',\n templateUrl: 'select-tag.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => SelectTagComponent)\n }\n ]\n})\nexport class SelectTagComponent extends ComponentReference {\n i18n = inject<I18n>(LOGIN_I18N);\n attribute = input<Attribute>();\n valueOrValues = input<string | string[]>();\n displayableErrors = input<FormFieldError[]>();\n dispatchFormAction = output<FormAction>();\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n isMultiple = computed(() => {\n return this.attribute()?.annotations?.inputType === 'multiselect';\n });\n\n options = computed(() => {\n const attribute = this.attribute();\n if (attribute) {\n return (() => {\n walk: {\n const { inputOptionsFromValidation } = attribute.annotations;\n\n if (inputOptionsFromValidation === undefined) {\n break walk;\n }\n\n const validator = (attribute.validators as Record<string, { options?: string[] }>)[inputOptionsFromValidation];\n\n if (validator === undefined) {\n break walk;\n }\n\n if (validator.options === undefined) {\n break walk;\n }\n\n return validator.options;\n }\n\n return attribute.validators.options?.options ?? [];\n })();\n }\n return [];\n });\n\n onChange(event: Event) {\n this.dispatchFormAction.emit({\n action: 'update',\n name: this.attribute()?.name ?? '',\n valueOrValues: (() => {\n if (this.isMultiple()) {\n return Array.from((event.target as HTMLSelectElement).selectedOptions).map(option => option.value);\n }\n\n return (event.target as HTMLSelectElement).value;\n })()\n });\n }\n\n onBlur() {\n this.dispatchFormAction.emit({\n action: 'focus lost',\n name: this.attribute()?.name ?? '',\n fieldIndex: undefined\n });\n }\n}\n","@let attr = attribute();\n@let multiple = isMultiple();\n@if (attr) {\n <select\n [id]=\"attr.name\"\n [name]=\"attr.name\"\n [value]=\"valueOrValues()\"\n [kcClass]=\"'kcInputClass'\"\n [attr.aria-invalid]=\"!!displayableErrors()?.length\"\n [disabled]=\"attr.readOnly\"\n [multiple]=\"multiple\"\n [size]=\"!attr.annotations.inputTypeSize ? undefined : (attr.annotations.inputTypeSize | toNumber)\"\n (change)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n >\n @if (!multiple) {\n <option value=\"\"></option>\n }\n @for (option of options(); track option) {\n <option [value]=\"option\">\n @if (!!attr.annotations.inputOptionLabels) {\n {{ i18n.advancedMsgStr(attr.annotations.inputOptionLabels[option] ?? option) }}\n } @else if (!!attr.annotations.inputOptionLabelsI18nPrefix) {\n {{ i18n.advancedMsgStr(attr.annotations.inputOptionLabelsI18nPrefix + '.' + option) }}\n } @else {\n {{ option }}\n }\n </option>\n }\n </select>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA+BM,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;AAnB1D,IAAA,WAAA,GAAA;;AAoBI,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;QAC/B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAa;QAC9B,IAAA,CAAA,aAAa,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EA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A,CAAA,2BAAA,CAAA,EAAA;;;AE7BL;;AAEG;;;;"}
1
+ {"version":3,"file":"keycloakify-angular-login-components-select-tag.mjs","sources":["../../src/login/components/select-tag/select-tag.component.ts","../../src/login/components/select-tag/select-tag.component.html","../../src/login/components/select-tag/keycloakify-angular-login-components-select-tag.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } 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 { ToNumberPipe } from '@keycloakify/angular/lib/pipes/to-number';\nimport type { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport type { Attribute } from 'keycloakify/login/KcContext';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\n\n@Component({\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n imports: [KcClassDirective, ToNumberPipe],\n selector: 'kc-select-tag',\n templateUrl: 'select-tag.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => SelectTagComponent)\n }\n ]\n})\nexport class SelectTagComponent extends ComponentReference {\n i18n = inject<I18n>(LOGIN_I18N);\n attribute = input<Attribute>();\n valueOrValues = input<string | string[]>();\n displayableErrors = input<FormFieldError[]>();\n dispatchFormAction = output<FormAction>();\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n isMultiple = computed(() => {\n return this.attribute()?.annotations?.inputType === 'multiselect';\n });\n\n options = computed(() => {\n const attribute = this.attribute();\n if (attribute) {\n return (() => {\n walk: {\n const { inputOptionsFromValidation } = attribute.annotations;\n\n if (inputOptionsFromValidation === undefined) {\n break walk;\n }\n\n const validator = (attribute.validators as Record<string, { options?: string[] }>)[inputOptionsFromValidation];\n\n if (validator === undefined) {\n break walk;\n }\n\n if (validator.options === undefined) {\n break walk;\n }\n\n return validator.options;\n }\n\n return attribute.validators.options?.options ?? [];\n })();\n }\n return [];\n });\n\n onChange(event: Event) {\n this.dispatchFormAction.emit({\n action: 'update',\n name: this.attribute()?.name ?? '',\n valueOrValues: (() => {\n if (this.isMultiple()) {\n return Array.from((event.target as HTMLSelectElement).selectedOptions).map(option => option.value);\n }\n\n return (event.target as HTMLSelectElement).value;\n })()\n });\n }\n\n onBlur() {\n this.dispatchFormAction.emit({\n action: 'focus lost',\n name: this.attribute()?.name ?? '',\n fieldIndex: undefined\n });\n }\n}\n","@let attr = attribute();\n@let multiple = isMultiple();\n@if (attr) {\n <select\n [id]=\"attr.name\"\n [name]=\"attr.name\"\n [value]=\"valueOrValues()\"\n [kcClass]=\"'kcInputClass'\"\n [attr.aria-invalid]=\"!!displayableErrors()?.length\"\n [disabled]=\"attr.readOnly\"\n [multiple]=\"multiple\"\n [size]=\"!attr.annotations.inputTypeSize ? undefined : (attr.annotations.inputTypeSize | toNumber)\"\n (change)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n >\n @if (!multiple) {\n <option value=\"\"></option>\n }\n @for (option of options(); track option) {\n <option [value]=\"option\">\n @if (!!attr.annotations.inputOptionLabels) {\n {{ i18n.advancedMsgStr(attr.annotations.inputOptionLabels[option] ?? option) }}\n } @else if (!!attr.annotations.inputOptionLabelsI18nPrefix) {\n {{ i18n.advancedMsgStr(attr.annotations.inputOptionLabelsI18nPrefix + '.' + option) }}\n } @else {\n {{ option }}\n }\n </option>\n }\n </select>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA+BM,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;A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AAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;;AE7BL;;AAEG;;;;"}
@@ -9,9 +9,12 @@ import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
9
9
  class TextareaTagComponent extends ComponentReference {
10
10
  constructor() {
11
11
  super(...arguments);
12
- this.attribute = input(...(ngDevMode ? [undefined, { debugName: "attribute" }] : /* istanbul ignore next */ []));
13
- this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
14
- this.displayableErrors = input(...(ngDevMode ? [undefined, { debugName: "displayableErrors" }] : /* istanbul ignore next */ []));
12
+ this.attribute = input(/* @ts-ignore */
13
+ ...(ngDevMode ? [undefined, { debugName: "attribute" }] : /* istanbul ignore next */ []));
14
+ this.value = input(/* @ts-ignore */
15
+ ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
16
+ this.displayableErrors = input(/* @ts-ignore */
17
+ ...(ngDevMode ? [undefined, { debugName: "displayableErrors" }] : /* istanbul ignore next */ []));
15
18
  this.dispatchFormAction = output();
16
19
  this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
17
20
  this.classes = inject(LOGIN_CLASSES);
@@ -30,15 +33,15 @@ class TextareaTagComponent extends ComponentReference {
30
33
  fieldIndex: undefined
31
34
  });
32
35
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TextareaTagComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TextareaTagComponent, isStandalone: true, selector: "kc-textarea-tag", inputs: { attribute: { classPropertyName: "attribute", publicName: "attribute", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, displayableErrors: { classPropertyName: "displayableErrors", publicName: "displayableErrors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dispatchFormAction: "dispatchFormAction" }, providers: [
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TextareaTagComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
37
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: TextareaTagComponent, isStandalone: true, selector: "kc-textarea-tag", inputs: { attribute: { classPropertyName: "attribute", publicName: "attribute", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, displayableErrors: { classPropertyName: "displayableErrors", publicName: "displayableErrors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dispatchFormAction: "dispatchFormAction" }, providers: [
35
38
  {
36
39
  provide: ComponentReference,
37
40
  useExisting: forwardRef(() => TextareaTagComponent)
38
41
  }
39
42
  ], usesInheritance: true, ngImport: i0, template: "@let attr = attribute();\n@if (attr) {\n <textarea\n [id]=\"attr.name\"\n [name]=\"attr.name\"\n [kcClass]=\"'kcInputClass'\"\n [attr.aria-invalid]=\"!!displayableErrors()?.length\"\n [disabled]=\"attr.readOnly\"\n [cols]=\"attr.annotations.inputTypeCols === undefined ? undefined : (attr.annotations.inputTypeCols | toNumber)\"\n [rows]=\"attr.annotations.inputTypeRows === undefined ? undefined : (attr.annotations.inputTypeRows | toNumber)\"\n [maxLength]=\"attr.annotations.inputTypeMaxlength === undefined ? undefined : (attr.annotations.inputTypeMaxlength | toNumber)\"\n [value]=\"value()\"\n (change)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n ></textarea>\n}\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }, { kind: "pipe", type: ToNumberPipe, name: "toNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
43
  }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TextareaTagComponent, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TextareaTagComponent, decorators: [{
42
45
  type: Component,
43
46
  args: [{ imports: [KcClassDirective, ToNumberPipe], selector: 'kc-textarea-tag', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
44
47
  {
@@ -1 +1 @@
1
- {"version":3,"file":"keycloakify-angular-login-components-textarea-tag.mjs","sources":["../../src/login/components/textarea-tag/textarea-tag.component.ts","../../src/login/components/textarea-tag/textarea-tag.component.html","../../src/login/components/textarea-tag/keycloakify-angular-login-components-textarea-tag.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, input, output } 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 { ToNumberPipe } from '@keycloakify/angular/lib/pipes/to-number';\nimport type { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport type { Attribute } from 'keycloakify/login/KcContext';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n imports: [KcClassDirective, ToNumberPipe],\n selector: 'kc-textarea-tag',\n templateUrl: 'textarea-tag.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => TextareaTagComponent)\n }\n ]\n})\nexport class TextareaTagComponent extends ComponentReference {\n attribute = input<Attribute>();\n value = input<string>();\n displayableErrors = input<FormFieldError[]>();\n dispatchFormAction = output<FormAction>();\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n onChange(event: Event) {\n this.dispatchFormAction.emit({\n action: 'update',\n name: this.attribute()?.name ?? '',\n valueOrValues: (event.target as HTMLTextAreaElement).value\n });\n }\n\n onBlur() {\n this.dispatchFormAction.emit({\n action: 'focus lost',\n name: this.attribute()?.name ?? '',\n fieldIndex: undefined\n });\n }\n}\n","@let attr = attribute();\n@if (attr) {\n <textarea\n [id]=\"attr.name\"\n [name]=\"attr.name\"\n [kcClass]=\"'kcInputClass'\"\n [attr.aria-invalid]=\"!!displayableErrors()?.length\"\n [disabled]=\"attr.readOnly\"\n [cols]=\"attr.annotations.inputTypeCols === undefined ? undefined : (attr.annotations.inputTypeCols | toNumber)\"\n [rows]=\"attr.annotations.inputTypeRows === undefined ? undefined : (attr.annotations.inputTypeRows | toNumber)\"\n [maxLength]=\"attr.annotations.inputTypeMaxlength === undefined ? undefined : (attr.annotations.inputTypeMaxlength | toNumber)\"\n [value]=\"value()\"\n (change)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n ></textarea>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6BM,MAAO,oBAAqB,SAAQ,kBAAkB,CAAA;AAnB5D,IAAA,WAAA,GAAA;;QAoBI,IAAA,CAAA,SAAS,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAa;QAC9B,IAAA,CAAA,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;QACvB,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAoB;QAC7C,IAAA,CAAA,kBAAk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/textarea-tag.component.ts","../../src/login/components/textarea-tag/textarea-tag.component.html","../../src/login/components/textarea-tag/keycloakify-angular-login-components-textarea-tag.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, input, output } 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 { ToNumberPipe } from '@keycloakify/angular/lib/pipes/to-number';\nimport type { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport type { Attribute } from 'keycloakify/login/KcContext';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n imports: [KcClassDirective, ToNumberPipe],\n selector: 'kc-textarea-tag',\n templateUrl: 'textarea-tag.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => TextareaTagComponent)\n }\n ]\n})\nexport class TextareaTagComponent extends ComponentReference {\n attribute = input<Attribute>();\n value = input<string>();\n displayableErrors = input<FormFieldError[]>();\n dispatchFormAction = output<FormAction>();\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n onChange(event: Event) {\n this.dispatchFormAction.emit({\n action: 'update',\n name: this.attribute()?.name ?? '',\n valueOrValues: (event.target as HTMLTextAreaElement).value\n });\n }\n\n onBlur() {\n this.dispatchFormAction.emit({\n action: 'focus lost',\n name: this.attribute()?.name ?? '',\n fieldIndex: undefined\n });\n }\n}\n","@let attr = attribute();\n@if (attr) {\n <textarea\n [id]=\"attr.name\"\n [name]=\"attr.name\"\n [kcClass]=\"'kcInputClass'\"\n [attr.aria-invalid]=\"!!displayableErrors()?.length\"\n [disabled]=\"attr.readOnly\"\n [cols]=\"attr.annotations.inputTypeCols === undefined ? undefined : (attr.annotations.inputTypeCols | toNumber)\"\n [rows]=\"attr.annotations.inputTypeRows === undefined ? undefined : (attr.annotations.inputTypeRows | toNumber)\"\n [maxLength]=\"attr.annotations.inputTypeMaxlength === undefined ? undefined : (attr.annotations.inputTypeMaxlength | toNumber)\"\n [value]=\"value()\"\n (change)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n ></textarea>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6BM,MAAO,oBAAqB,SAAQ,kBAAkB,CAAA;AAnB5D,IAAA,WAAA,GAAA;;AAoBI,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAa;AAC9B,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;AACvB,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK;yGAAoB;QAC7C,IAAA,CAAA,kBAAkB,GAAG,MAAM,EAAc;AAChC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;AAiB9E,IAAA;AAfG,IAAA,QAAQ,CAAC,KAAY,EAAA;AACjB,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;AACzB,YAAA,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,IAAI,EAAE;AAClC,YAAA,aAAa,EAAG,KAAK,CAAC,MAA8B,CAAC;AACxD,SAAA,CAAC;IACN;IAEA,MAAM,GAAA;AACF,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;AACzB,YAAA,MAAM,EAAE,YAAY;YACpB,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,IAAI,EAAE;AAClC,YAAA,UAAU,EAAE;AACf,S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,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,YAAY,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAW/B,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAnBhC,SAAS;8BAQG,CAAC,gBAAgB,EAAE,YAAY,CAAC,EAAA,QAAA,EAC/B,iBAAiB,EAAA,eAAA,EAEV,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,0BAA0B;AACrD;AACJ,qBAAA,EAAA,QAAA,EAAA,ovBAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;;AE3BL;;AAEG;;;;"}
@@ -30,8 +30,8 @@ class UserProfileFormFieldsComponent extends ComponentReference {
30
30
  onDispatch(formAction) {
31
31
  this.#userProfileFormService.dispatchFormAction(formAction);
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UserProfileFormFieldsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UserProfileFormFieldsComponent, isStandalone: true, selector: "kc-user-profile-form-fields", providers: [
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: UserProfileFormFieldsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: UserProfileFormFieldsComponent, isStandalone: true, selector: "kc-user-profile-form-fields", providers: [
35
35
  UserProfileFormService,
36
36
  {
37
37
  provide: ComponentReference,
@@ -39,7 +39,7 @@ class UserProfileFormFieldsComponent extends ComponentReference {
39
39
  }
40
40
  ], queries: [{ propertyName: "beforeField", first: true, predicate: ["beforeField"], descendants: true }, { propertyName: "afterField", first: true, predicate: ["afterField"], descendants: true }], usesInheritance: true, ngImport: i0, template: "@let formState = formState$ | async;\n@let xAttributeLocale = xAttributeLocale$ | async;\n@if (formState) {\n @let formFieldStates = formState.formFieldStates;\n\n @for (fieldState of formFieldStates; track fieldState.attribute) {\n <kc-group-label [attribute]=\"fieldState.attribute\" />\n\n @if (beforeField) {\n <ng-container\n [ngTemplateOutlet]=\"beforeField\"\n [ngTemplateOutletContext]=\"{\n attribute: fieldState.attribute,\n valueOrValues: fieldState.valueOrValues,\n displayableErrors: fieldState.displayableErrors\n }\"\n />\n }\n\n <div\n [kcClass]=\"'kcFormGroupClass'\"\n [style.display]=\"\n fieldState.attribute.annotations.inputType === 'hidden' ||\n (fieldState.attribute.name === 'password-confirm' && !doMakeUserConfirmPassword)\n ? 'none'\n : 'block'\n \"\n >\n <div [kcClass]=\"'kcLabelWrapperClass'\">\n <label\n [for]=\"fieldState.attribute.name\"\n [kcClass]=\"'kcLabelClass'\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.displayName ?? '') }}\n @if (fieldState.attribute.required) {\n *\n }\n </label>\n </div>\n\n <div [kcClass]=\"'kcInputWrapperClass'\">\n @if (fieldState.attribute.annotations.inputHelperTextBefore) {\n <div\n aria-live=\"polite\"\n [kcClass]=\"'kcInputHelperTextBeforeClass'\"\n [id]=\"'form-help-text-before-' + fieldState.attribute.name\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.annotations.inputHelperTextBefore) }}\n </div>\n }\n\n <kc-input-field-by-type\n [attribute]=\"fieldState.attribute\"\n [valueOrValues]=\"fieldState.valueOrValues\"\n [displayableErrors]=\"fieldState.displayableErrors\"\n (dispatchFormAction)=\"onDispatch($event)\"\n />\n\n <kc-field-errors\n [attribute]=\"fieldState.attribute\"\n [displayableErrors]=\"fieldState.displayableErrors\"\n />\n @if (fieldState.attribute.annotations.inputHelperTextAfter) {\n <div\n aria-live=\"polite\"\n [kcClass]=\"'kcInputHelperTextAfterClass'\"\n [id]=\"'form-help-text-after-' + fieldState.attribute.name\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.annotations.inputHelperTextAfter) }}\n </div>\n }\n\n @if (afterField) {\n <ng-container\n [ngTemplateOutlet]=\"afterField\"\n [ngTemplateOutletContext]=\"{\n attribute: fieldState.attribute,\n valueOrValues: fieldState.valueOrValues,\n displayableErrors: fieldState.displayableErrors\n }\"\n />\n }\n <!-- NOTE: Downloading of html5DataAnnotations scripts is done in the useUserProfileForm hook -->\n </div>\n </div>\n }\n}\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }, { kind: "component", type: FieldErrorsComponent, selector: "kc-field-errors", inputs: ["attribute", "displayableErrors", "fieldIndex"] }, { kind: "component", type: InputFieldByTypeComponent, selector: "kc-input-field-by-type", inputs: ["attribute", "valueOrValues", "displayableErrors"], outputs: ["dispatchFormAction"] }, { kind: "component", type: GroupLabelComponent, selector: "kc-group-label", inputs: ["attribute", "groupName"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
41
41
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UserProfileFormFieldsComponent, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: UserProfileFormFieldsComponent, decorators: [{
43
43
  type: Component,
44
44
  args: [{ imports: [KcClassDirective, FieldErrorsComponent, InputFieldByTypeComponent, GroupLabelComponent, NgTemplateOutlet, AsyncPipe], selector: 'kc-user-profile-form-fields', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
45
45
  UserProfileFormService,
@@ -1 +1 @@
1
- {"version":3,"file":"keycloakify-angular-login-components-user-profile-form-fields.mjs","sources":["../../src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts","../../src/login/components/user-profile-form-fields/user-profile-form-fields.component.html","../../src/login/components/user-profile-form-fields/keycloakify-angular-login-components-user-profile-form-fields.ts"],"sourcesContent":["import { AsyncPipe, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ContentChild, forwardRef, inject, type TemplateRef } 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 { FieldErrorsComponent } from '@keycloakify/angular/login/components/field-errors';\nimport { GroupLabelComponent } from '@keycloakify/angular/login/components/group-label';\nimport { InputFieldByTypeComponent } from '@keycloakify/angular/login/components/input-field-by-type';\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 { type FormAction, UserProfileFormService } from '@keycloakify/angular/login/services/user-profile-form';\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 { ClassKey } from 'keycloakify/login/lib/kcClsx';\nimport { map } from 'rxjs';\n\n@Component({\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n imports: [KcClassDirective, FieldErrorsComponent, InputFieldByTypeComponent, GroupLabelComponent, NgTemplateOutlet, AsyncPipe],\n selector: 'kc-user-profile-form-fields',\n templateUrl: 'user-profile-form-fields.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n UserProfileFormService,\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => UserProfileFormFieldsComponent)\n }\n ]\n})\nexport class UserProfileFormFieldsComponent extends ComponentReference {\n i18n = inject<I18n>(LOGIN_I18N);\n kcContext = inject<KcContext>(KC_LOGIN_CONTEXT);\n #userProfileFormService = inject(UserProfileFormService);\n doMakeUserConfirmPassword = inject(DO_MAKE_USER_CONFIRM_PASSWORD);\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n formState$ = this.#userProfileFormService.formState$;\n xAttributeLocale$ = this.formState$.pipe(map(s => s.formFieldStates.find(x => x.attribute.name === 'locale')));\n\n @ContentChild('beforeField') beforeField: TemplateRef<unknown> | undefined;\n @ContentChild('afterField') afterField: TemplateRef<unknown> | undefined;\n\n onDispatch(formAction: FormAction) {\n this.#userProfileFormService.dispatchFormAction(formAction);\n }\n}\n","@let formState = formState$ | async;\n@let xAttributeLocale = xAttributeLocale$ | async;\n@if (formState) {\n @let formFieldStates = formState.formFieldStates;\n\n @for (fieldState of formFieldStates; track fieldState.attribute) {\n <kc-group-label [attribute]=\"fieldState.attribute\" />\n\n @if (beforeField) {\n <ng-container\n [ngTemplateOutlet]=\"beforeField\"\n [ngTemplateOutletContext]=\"{\n attribute: fieldState.attribute,\n valueOrValues: fieldState.valueOrValues,\n displayableErrors: fieldState.displayableErrors\n }\"\n />\n }\n\n <div\n [kcClass]=\"'kcFormGroupClass'\"\n [style.display]=\"\n fieldState.attribute.annotations.inputType === 'hidden' ||\n (fieldState.attribute.name === 'password-confirm' && !doMakeUserConfirmPassword)\n ? 'none'\n : 'block'\n \"\n >\n <div [kcClass]=\"'kcLabelWrapperClass'\">\n <label\n [for]=\"fieldState.attribute.name\"\n [kcClass]=\"'kcLabelClass'\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.displayName ?? '') }}\n @if (fieldState.attribute.required) {\n *\n }\n </label>\n </div>\n\n <div [kcClass]=\"'kcInputWrapperClass'\">\n @if (fieldState.attribute.annotations.inputHelperTextBefore) {\n <div\n aria-live=\"polite\"\n [kcClass]=\"'kcInputHelperTextBeforeClass'\"\n [id]=\"'form-help-text-before-' + fieldState.attribute.name\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.annotations.inputHelperTextBefore) }}\n </div>\n }\n\n <kc-input-field-by-type\n [attribute]=\"fieldState.attribute\"\n [valueOrValues]=\"fieldState.valueOrValues\"\n [displayableErrors]=\"fieldState.displayableErrors\"\n (dispatchFormAction)=\"onDispatch($event)\"\n />\n\n <kc-field-errors\n [attribute]=\"fieldState.attribute\"\n [displayableErrors]=\"fieldState.displayableErrors\"\n />\n @if (fieldState.attribute.annotations.inputHelperTextAfter) {\n <div\n aria-live=\"polite\"\n [kcClass]=\"'kcInputHelperTextAfterClass'\"\n [id]=\"'form-help-text-after-' + fieldState.attribute.name\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.annotations.inputHelperTextAfter) }}\n </div>\n }\n\n @if (afterField) {\n <ng-container\n [ngTemplateOutlet]=\"afterField\"\n [ngTemplateOutletContext]=\"{\n attribute: fieldState.attribute,\n valueOrValues: fieldState.valueOrValues,\n displayableErrors: fieldState.displayableErrors\n }\"\n />\n }\n <!-- NOTE: Downloading of html5DataAnnotations scripts is done in the useUserProfileForm hook -->\n </div>\n </div>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAsCM,MAAO,8BAA+B,SAAQ,kBAAkB,CAAA;AApBtE,IAAA,WAAA,GAAA;;AAqBI,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAY,gBAAgB,CAAC;AAC/C,QAAA,IAAA,CAAA,uBAAuB,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACxD,QA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AAA,OAAA,EAAA,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,SAAS,CAAC,EAAA,QAAA,EACpH,6BAA6B,mBAEtB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;wBACP,sBAAsB;AACtB,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,oCAAoC;AAC/D;AACJ,qBAAA,EAAA,QAAA,EAAA,klHAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;sBAaA,YAAY;uBAAC,aAAa;;sBAC1B,YAAY;uBAAC,YAAY;;;AElD9B;;AAEG;;;;"}
1
+ {"version":3,"file":"keycloakify-angular-login-components-user-profile-form-fields.mjs","sources":["../../src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts","../../src/login/components/user-profile-form-fields/user-profile-form-fields.component.html","../../src/login/components/user-profile-form-fields/keycloakify-angular-login-components-user-profile-form-fields.ts"],"sourcesContent":["import { AsyncPipe, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ContentChild, forwardRef, inject, type TemplateRef } 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 { FieldErrorsComponent } from '@keycloakify/angular/login/components/field-errors';\nimport { GroupLabelComponent } from '@keycloakify/angular/login/components/group-label';\nimport { InputFieldByTypeComponent } from '@keycloakify/angular/login/components/input-field-by-type';\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 { type FormAction, UserProfileFormService } from '@keycloakify/angular/login/services/user-profile-form';\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 { ClassKey } from 'keycloakify/login/lib/kcClsx';\nimport { map } from 'rxjs';\n\n@Component({\n styles: [\n `\n :host {\n display: contents;\n }\n `\n ],\n imports: [KcClassDirective, FieldErrorsComponent, InputFieldByTypeComponent, GroupLabelComponent, NgTemplateOutlet, AsyncPipe],\n selector: 'kc-user-profile-form-fields',\n templateUrl: 'user-profile-form-fields.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n UserProfileFormService,\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => UserProfileFormFieldsComponent)\n }\n ]\n})\nexport class UserProfileFormFieldsComponent extends ComponentReference {\n i18n = inject<I18n>(LOGIN_I18N);\n kcContext = inject<KcContext>(KC_LOGIN_CONTEXT);\n #userProfileFormService = inject(UserProfileFormService);\n doMakeUserConfirmPassword = inject(DO_MAKE_USER_CONFIRM_PASSWORD);\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n formState$ = this.#userProfileFormService.formState$;\n xAttributeLocale$ = this.formState$.pipe(map(s => s.formFieldStates.find(x => x.attribute.name === 'locale')));\n\n @ContentChild('beforeField') beforeField: TemplateRef<unknown> | undefined;\n @ContentChild('afterField') afterField: TemplateRef<unknown> | undefined;\n\n onDispatch(formAction: FormAction) {\n this.#userProfileFormService.dispatchFormAction(formAction);\n }\n}\n","@let formState = formState$ | async;\n@let xAttributeLocale = xAttributeLocale$ | async;\n@if (formState) {\n @let formFieldStates = formState.formFieldStates;\n\n @for (fieldState of formFieldStates; track fieldState.attribute) {\n <kc-group-label [attribute]=\"fieldState.attribute\" />\n\n @if (beforeField) {\n <ng-container\n [ngTemplateOutlet]=\"beforeField\"\n [ngTemplateOutletContext]=\"{\n attribute: fieldState.attribute,\n valueOrValues: fieldState.valueOrValues,\n displayableErrors: fieldState.displayableErrors\n }\"\n />\n }\n\n <div\n [kcClass]=\"'kcFormGroupClass'\"\n [style.display]=\"\n fieldState.attribute.annotations.inputType === 'hidden' ||\n (fieldState.attribute.name === 'password-confirm' && !doMakeUserConfirmPassword)\n ? 'none'\n : 'block'\n \"\n >\n <div [kcClass]=\"'kcLabelWrapperClass'\">\n <label\n [for]=\"fieldState.attribute.name\"\n [kcClass]=\"'kcLabelClass'\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.displayName ?? '') }}\n @if (fieldState.attribute.required) {\n *\n }\n </label>\n </div>\n\n <div [kcClass]=\"'kcInputWrapperClass'\">\n @if (fieldState.attribute.annotations.inputHelperTextBefore) {\n <div\n aria-live=\"polite\"\n [kcClass]=\"'kcInputHelperTextBeforeClass'\"\n [id]=\"'form-help-text-before-' + fieldState.attribute.name\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.annotations.inputHelperTextBefore) }}\n </div>\n }\n\n <kc-input-field-by-type\n [attribute]=\"fieldState.attribute\"\n [valueOrValues]=\"fieldState.valueOrValues\"\n [displayableErrors]=\"fieldState.displayableErrors\"\n (dispatchFormAction)=\"onDispatch($event)\"\n />\n\n <kc-field-errors\n [attribute]=\"fieldState.attribute\"\n [displayableErrors]=\"fieldState.displayableErrors\"\n />\n @if (fieldState.attribute.annotations.inputHelperTextAfter) {\n <div\n aria-live=\"polite\"\n [kcClass]=\"'kcInputHelperTextAfterClass'\"\n [id]=\"'form-help-text-after-' + fieldState.attribute.name\"\n >\n {{ i18n.advancedMsgStr(fieldState.attribute.annotations.inputHelperTextAfter) }}\n </div>\n }\n\n @if (afterField) {\n <ng-container\n [ngTemplateOutlet]=\"afterField\"\n [ngTemplateOutletContext]=\"{\n attribute: fieldState.attribute,\n valueOrValues: fieldState.valueOrValues,\n displayableErrors: fieldState.displayableErrors\n }\"\n />\n }\n <!-- NOTE: Downloading of html5DataAnnotations scripts is done in the use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A,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAYpH,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBApB1C,SAAS;AAQG,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,SAAS,CAAC,EAAA,QAAA,EACpH,6BAA6B,mBAEtB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;wBACP,sBAAsB;AACtB,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,oCAAoC;AAC/D;AACJ,qBAAA,EAAA,QAAA,EAAA,klHAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;sBAaA,YAAY;uBAAC,aAAa;;sBAC1B,YAAY;uBAAC,YAAY;;;AElD9B;;AAEG;;;;"}
@@ -116,10 +116,10 @@ class KcClassDirective {
116
116
  });
117
117
  }
118
118
  }
119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: KcClassDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
120
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.12", type: KcClassDirective, isStandalone: true, selector: "[kcClass]", inputs: { klass: ["class", "klass"], ngClass: "ngClass", kcClass: "kcClass" }, ngImport: i0 }); }
119
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: KcClassDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
120
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: KcClassDirective, isStandalone: true, selector: "[kcClass]", inputs: { klass: ["class", "klass"], ngClass: "ngClass", kcClass: "kcClass" }, ngImport: i0 }); }
121
121
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: KcClassDirective, decorators: [{
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: KcClassDirective, decorators: [{
123
123
  type: Directive,
124
124
  args: [{ selector: '[kcClass]' }]
125
125
  }], propDecorators: { klass: [{
@@ -1 +1 @@
1
- {"version":3,"file":"keycloakify-angular-login-directives-kc-class.mjs","sources":["../../src/login/directives/kc-class/kc-class.directive.ts","../../src/login/directives/kc-class/keycloakify-angular-login-directives-kc-class.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport {\n Directive,\n type DoCheck,\n ElementRef,\n inject,\n Input,\n isDevMode,\n Renderer2,\n ɵstringify as stringify\n} from '@angular/core';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { type ClassKey, getKcClsx } from 'keycloakify/login/lib/kcClsx';\n\ninterface CssClassState {\n // PERF: could use a bit mask to represent state as all fields are boolean flags\n enabled: boolean;\n changed: boolean;\n touched: boolean;\n}\n\ntype KcClassSupportedTypes =\n | ClassKey[]\n | Set<ClassKey>\n | Partial<{ [key in ClassKey]: any }>\n | null\n | undefined;\n\ntype NgClassSupportedTypes =\n | string[]\n | Set<string>\n | { [key: string]: any }\n | null\n | undefined;\n\n@Directive({ selector: '[kcClass]' })\nexport class KcClassDirective implements DoCheck {\n private initialClasses: string[] = [];\n private rawClass: NgClassSupportedTypes;\n private rawKcClass: KcClassSupportedTypes;\n\n private stateMap = new Map<string | ClassKey, CssClassState>();\n readonly #renderer = inject(Renderer2);\n readonly #el = inject(ElementRef);\n readonly #host = inject(ComponentReference);\n\n @Input('class')\n set klass(value: string) {\n this.initialClasses = value != null ? value.trim().split(/\\s+/) : [];\n }\n\n @Input('ngClass')\n set ngClass(value: string | NgClassSupportedTypes) {\n this.rawClass = typeof value === 'string' ? value.trim().split(/\\s+/) : value;\n }\n\n @Input('kcClass')\n set kcClass(value: ClassKey | KcClassSupportedTypes) {\n this.rawKcClass =\n typeof value === 'string' ? (value.trim().split(/\\s+/) as ClassKey[]) : value;\n }\n\n ngDoCheck(): void {\n for (const klass of this.initialClasses) {\n this._updateState(klass, true);\n }\n // classes from the [ngClass] binding\n const rawClass = this.rawClass;\n if (Array.isArray(rawClass) || rawClass instanceof Set) {\n for (const klass of rawClass) {\n this._updateState(klass, true);\n }\n } else if (rawClass != null) {\n for (const klass of Object.keys(rawClass)) {\n this._updateState(klass, Boolean(rawClass[klass]));\n }\n }\n\n // classes from the [kcClass] binding\n const rawKcClass = this.rawKcClass;\n if (Array.isArray(rawKcClass) || rawKcClass instanceof Set) {\n for (const klass of rawKcClass) {\n this._updateState(klass, true, true);\n }\n } else if (rawKcClass != null) {\n for (const klass of Object.keys(rawKcClass)) {\n this._updateState(klass, Boolean(rawKcClass[klass as ClassKey]), true);\n }\n }\n\n this._applyStateDiff();\n }\n\n private _updateState(\n klass: string | ClassKey,\n nextEnabled: boolean,\n kcClsxCheck = false\n ) {\n const state = this.stateMap.get(klass);\n if (state !== undefined) {\n if (state.enabled !== nextEnabled) {\n state.changed = true;\n state.enabled = nextEnabled;\n }\n state.touched = true;\n } else {\n let klassChecked = klass;\n if (kcClsxCheck) {\n const doUseDefaultCss = this.#host.doUseDefaultCss ?? true;\n const classes = this.#host.classes;\n const kcClsx = getKcClsx({ doUseDefaultCss, classes }).kcClsx;\n klassChecked = kcClsx(klass as ClassKey);\n }\n this.stateMap.set(klassChecked, {\n enabled: nextEnabled,\n changed: true,\n touched: true\n });\n }\n }\n\n private _applyStateDiff() {\n for (const stateEntry of this.stateMap) {\n const klass = stateEntry[0];\n const state = stateEntry[1];\n\n if (state.changed) {\n this._toggleClass(klass, state.enabled);\n state.changed = false;\n } else if (!state.touched) {\n // A class that was previously active got removed from the new collection of classes -\n // remove from the DOM as well.\n if (state.enabled) {\n this._toggleClass(klass, false);\n }\n this.stateMap.delete(klass);\n }\n\n state.touched = false;\n }\n }\n\n private _toggleClass(klass: string, enabled: boolean): void {\n if (isDevMode()) {\n if (typeof klass !== 'string') {\n throw new Error(\n `NgClass can only toggle CSS classes expressed as strings, got ${stringify(klass)}`\n );\n }\n }\n\n klass = klass.trim();\n if (klass.length > 0) {\n klass.split(/\\s+/).forEach(klass => {\n if (enabled) {\n this.#renderer.addClass(this.#el.nativeElement, klass);\n } else {\n this.#renderer.removeClass(this.#el.nativeElement, klass);\n }\n });\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["stringify"],"mappings":";;;;;AAAA;MAqCa,gBAAgB,CAAA;AAD7B,IAAA,WAAA,GAAA;QAEY,IAAA,CAAA,cAAc,GAAa,EAAE;AAI7B,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,GAAG,EAAoC;AACrD,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC;AACxB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAsH9C,IAAA;AAxHY,IAAA,SAAS;AACT,IAAA,GAAG;AACH,IAAA,KAAK;IAEd,IACI,KAAK,CAAC,KAAa,EAAA;QACnB,IAAI,CAAC,cAAc,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE;IACxE;IAEA,IACI,OAAO,CAAC,KAAqC,EAAA;QAC7C,IAAI,CAAC,QAAQ,GAAG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A,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,CAAA,OAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,SAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B,SAAS;mBAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;sBAW/B,KAAK;uBAAC,OAAO;;sBAKb,KAAK;uBAAC,SAAS;;sBAKf,KAAK;uBAAC,SAAS;;;ACzDpB;;AAEG;;;;"}
1
+ {"version":3,"file":"keycloakify-angular-login-directives-kc-class.mjs","sources":["../../src/login/directives/kc-class/kc-class.directive.ts","../../src/login/directives/kc-class/keycloakify-angular-login-directives-kc-class.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport {\n Directive,\n type DoCheck,\n ElementRef,\n inject,\n Input,\n isDevMode,\n Renderer2,\n ɵstringify as stringify\n} from '@angular/core';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { type ClassKey, getKcClsx } from 'keycloakify/login/lib/kcClsx';\n\ninterface CssClassState {\n // PERF: could use a bit mask to represent state as all fields are boolean flags\n enabled: boolean;\n changed: boolean;\n touched: boolean;\n}\n\ntype KcClassSupportedTypes =\n | ClassKey[]\n | Set<ClassKey>\n | Partial<{ [key in ClassKey]: any }>\n | null\n | undefined;\n\ntype NgClassSupportedTypes =\n | string[]\n | Set<string>\n | { [key: string]: any }\n | null\n | undefined;\n\n@Directive({ selector: '[kcClass]' })\nexport class KcClassDirective implements DoCheck {\n private initialClasses: string[] = [];\n private rawClass: NgClassSupportedTypes;\n private rawKcClass: KcClassSupportedTypes;\n\n private stateMap = new Map<string | ClassKey, CssClassState>();\n readonly #renderer = inject(Renderer2);\n readonly #el = inject(ElementRef);\n readonly #host = inject(ComponentReference);\n\n @Input('class')\n set klass(value: string) {\n this.initialClasses = value != null ? value.trim().split(/\\s+/) : [];\n }\n\n @Input('ngClass')\n set ngClass(value: string | NgClassSupportedTypes) {\n this.rawClass = typeof value === 'string' ? value.trim().split(/\\s+/) : value;\n }\n\n @Input('kcClass')\n set kcClass(value: ClassKey | KcClassSupportedTypes) {\n this.rawKcClass =\n typeof value === 'string' ? (value.trim().split(/\\s+/) as ClassKey[]) : value;\n }\n\n ngDoCheck(): void {\n for (const klass of this.initialClasses) {\n this._updateState(klass, true);\n }\n // classes from the [ngClass] binding\n const rawClass = this.rawClass;\n if (Array.isArray(rawClass) || rawClass instanceof Set) {\n for (const klass of rawClass) {\n this._updateState(klass, true);\n }\n } else if (rawClass != null) {\n for (const klass of Object.keys(rawClass)) {\n this._updateState(klass, Boolean(rawClass[klass]));\n }\n }\n\n // classes from the [kcClass] binding\n const rawKcClass = this.rawKcClass;\n if (Array.isArray(rawKcClass) || rawKcClass instanceof Set) {\n for (const klass of rawKcClass) {\n this._updateState(klass, true, true);\n }\n } else if (rawKcClass != null) {\n for (const klass of Object.keys(rawKcClass)) {\n this._updateState(klass, Boolean(rawKcClass[klass as ClassKey]), true);\n }\n }\n\n this._applyStateDiff();\n }\n\n private _updateState(\n klass: string | ClassKey,\n nextEnabled: boolean,\n kcClsxCheck = false\n ) {\n const state = this.stateMap.get(klass);\n if (state !== undefined) {\n if (state.enabled !== nextEnabled) {\n state.changed = true;\n state.enabled = nextEnabled;\n }\n state.touched = true;\n } else {\n let klassChecked = klass;\n if (kcClsxCheck) {\n const doUseDefaultCss = this.#host.doUseDefaultCss ?? true;\n const classes = this.#host.classes;\n const kcClsx = getKcClsx({ doUseDefaultCss, classes }).kcClsx;\n klassChecked = kcClsx(klass as ClassKey);\n }\n this.stateMap.set(klassChecked, {\n enabled: nextEnabled,\n changed: true,\n touched: true\n });\n }\n }\n\n private _applyStateDiff() {\n for (const stateEntry of this.stateMap) {\n const klass = stateEntry[0];\n const state = stateEntry[1];\n\n if (state.changed) {\n this._toggleClass(klass, state.enabled);\n state.changed = false;\n } else if (!state.touched) {\n // A class that was previously active got removed from the new collection of classes -\n // remove from the DOM as well.\n if (state.enabled) {\n this._toggleClass(klass, false);\n }\n this.stateMap.delete(klass);\n }\n\n state.touched = false;\n }\n }\n\n private _toggleClass(klass: string, enabled: boolean): void {\n if (isDevMode()) {\n if (typeof klass !== 'string') {\n throw new Error(\n `NgClass can only toggle CSS classes expressed as strings, got ${stringify(klass)}`\n );\n }\n }\n\n klass = klass.trim();\n if (klass.length > 0) {\n klass.split(/\\s+/).forEach(klass => {\n if (enabled) {\n this.#renderer.addClass(this.#el.nativeElement, klass);\n } else {\n this.#renderer.removeClass(this.#el.nativeElement, klass);\n }\n });\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["stringify"],"mappings":";;;;;AAAA;MAqCa,gBAAgB,CAAA;AAD7B,IAAA,WAAA,GAAA;QAEY,IAAA,CAAA,cAAc,GAAa,EAAE;AAI7B,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,GAAG,EAAoC;AACrD,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC;AACxB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAsH9C,IAAA;AAxHY,IAAA,SAAS;AACT,IAAA,GAAG;AACH,IAAA,KAAK;IAEd,IACI,KAAK,CAAC,KAAa,EAAA;QACnB,IAAI,CAAC,cAAc,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE;IACxE;IAEA,IACI,OAAO,CAAC,KAAqC,EAAA;QAC7C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GA7HS,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,CAAA,OAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,SAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B,SAAS;mBAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;sBAW/B,KAAK;uBAAC,OAAO;;sBAKb,KAAK;uBAAC,SAAS;;sBAKf,KAAK;uBAAC,SAAS;;;ACzDpB;;AAEG;;;;"}
@@ -17,19 +17,22 @@ class CodeComponent extends ComponentReference {
17
17
  this.displayRequiredFields = false;
18
18
  this.displayInfo = false;
19
19
  this.displayMessage = false;
20
- this.headerNode = viewChild('headerNode', ...(ngDevMode ? [{ debugName: "headerNode" }] : /* istanbul ignore next */ []));
21
- this.infoNode = viewChild('infoNode', ...(ngDevMode ? [{ debugName: "infoNode" }] : /* istanbul ignore next */ []));
22
- this.socialProvidersNode = viewChild('socialProvidersNode', ...(ngDevMode ? [{ debugName: "socialProvidersNode" }] : /* istanbul ignore next */ []));
20
+ this.headerNode = viewChild('headerNode', /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "headerNode" }] : /* istanbul ignore next */ []));
22
+ this.infoNode = viewChild('infoNode', /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "infoNode" }] : /* istanbul ignore next */ []));
24
+ this.socialProvidersNode = viewChild('socialProvidersNode', /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "socialProvidersNode" }] : /* istanbul ignore next */ []));
23
26
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: CodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: CodeComponent, isStandalone: true, selector: "kc-code", providers: [
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: CodeComponent, isStandalone: true, selector: "kc-code", providers: [
26
29
  {
27
30
  provide: ComponentReference,
28
31
  useExisting: forwardRef(() => CodeComponent)
29
32
  }
30
33
  ], 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 code = kcContext.code;\n\n<ng-template #headerNode>\n @let code = kcContext.code;\n @if (code.success) {\n {{ i18n.msgStr('codeSuccessTitle') }}\n } @else {\n {{ i18n.msgStr('codeErrorTitle', code.error) }}\n }\n</ng-template>\n\n<div id=\"kc-code\">\n @if (code.success) {\n <p>{{ i18n.msgStr('copyCodeInstruction') }}</p>\n <input\n id=\"code\"\n [kcClass]=\"'kcTextareaClass'\"\n [defaultValue]=\"code.code\"\n />\n } @else {\n <p id=\"error\">{{ code.error }}</p>\n }\n</div>\n", dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
34
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: CodeComponent, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CodeComponent, decorators: [{
33
36
  type: Component,
34
37
  args: [{ imports: [KcClassDirective], selector: 'kc-code', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
35
38
  {
@@ -1 +1 @@
1
- {"version":3,"file":"keycloakify-angular-login-pages-code.mjs","sources":["../../src/login/pages/code/code.component.ts","../../src/login/pages/code/code.component.html","../../src/login/pages/code/keycloakify-angular-login-pages-code.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-code',\n templateUrl: 'code.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => CodeComponent)\n }\n ]\n})\nexport class CodeComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'code.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 = false;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n}\n","@let code = kcContext.code;\n\n<ng-template #headerNode>\n @let code = kcContext.code;\n @if (code.success) {\n {{ i18n.msgStr('codeSuccessTitle') }}\n } @else {\n {{ i18n.msgStr('codeErrorTitle', code.error) }}\n }\n</ng-template>\n\n<div id=\"kc-code\">\n @if (code.success) {\n <p>{{ i18n.msgStr('copyCodeInstruction') }}</p>\n <input\n id=\"code\"\n [kcClass]=\"'kcTextareaClass'\"\n [defaultValue]=\"code.code\"\n />\n } @else {\n <p id=\"error\">{{ code.error }}</p>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAuBM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAZrD,IAAA,WAAA,GAAA;;AAaI,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA6C,gBAAgB,CAAC;AAChF,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,IAAA,CAAA,qBAAqB,GAAG,KAAK;QAC7B,IAAA,CAAA,WAAW,GAAG,KAAK;QACnB,IAAA,CAAA,cAAc,GAAG,KAAK;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,SAAS,CAA2B,YAAY,iFAAC;AAC9D,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAA2B,UAAU,+EAAC;AAC1D,QAAA,IAAA,CAAA,mBAAmB,GAAG,SAAS,CAA2B,qBAAqB,0FAAC;AACnF,IAAA;+GAjBY,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAA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E,UAAU,CAAC,mBAAmB;AAC9C;AACJ,qBAAA,EAAA,QAAA,EAAA,wkBAAA,EAAA;wEAgBgD,YAAY,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACd,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACC,qBAAqB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvCnF;;AAEG;;;;"}
1
+ {"version":3,"file":"keycloakify-angular-login-pages-code.mjs","sources":["../../src/login/pages/code/code.component.ts","../../src/login/pages/code/code.component.html","../../src/login/pages/code/keycloakify-angular-login-pages-code.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-code',\n templateUrl: 'code.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => CodeComponent)\n }\n ]\n})\nexport class CodeComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'code.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 = false;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n}\n","@let code = kcContext.code;\n\n<ng-template #headerNode>\n @let code = kcContext.code;\n @if (code.success) {\n {{ i18n.msgStr('codeSuccessTitle') }}\n } @else {\n {{ i18n.msgStr('codeErrorTitle', code.error) }}\n }\n</ng-template>\n\n<div id=\"kc-code\">\n @if (code.success) {\n <p>{{ i18n.msgStr('copyCodeInstruction') }}</p>\n <input\n id=\"code\"\n [kcClass]=\"'kcTextareaClass'\"\n [defaultValue]=\"code.code\"\n />\n } @else {\n <p id=\"error\">{{ code.error }}</p>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAuBM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAZrD,IAAA,WAAA,GAAA;;AAaI,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA6C,gBAAgB,CAAC;AAChF,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,IAAA,CAAA,qBAAqB,GAAG,KAAK;QAC7B,IAAA,CAAA,WAAW,GAAG,KAAK;QACnB,IAAA,CAAA,cAAc,GAAG,KAAK;Q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SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAWjB,aAAa,EAAA,UAAA,EAAA,CAAA;kBAZzB,SAAS;8BACG,CAAC,gBAAgB,CAAC,EAAA,QAAA,EACjB,SAAS,mBAEF,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,mBAAmB;AAC9C;AACJ,qBAAA,EAAA,QAAA,EAAA,wkBAAA,EAAA;wEAgBgD,YAAY,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACd,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACC,qBAAqB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvCnF;;AAEG;;;;"}
@@ -17,19 +17,22 @@ class DeleteAccountConfirmComponent extends ComponentReference {
17
17
  this.displayRequiredFields = false;
18
18
  this.displayInfo = false;
19
19
  this.displayMessage = false;
20
- this.headerNode = viewChild('headerNode', ...(ngDevMode ? [{ debugName: "headerNode" }] : /* istanbul ignore next */ []));
21
- this.infoNode = viewChild('infoNode', ...(ngDevMode ? [{ debugName: "infoNode" }] : /* istanbul ignore next */ []));
22
- this.socialProvidersNode = viewChild('socialProvidersNode', ...(ngDevMode ? [{ debugName: "socialProvidersNode" }] : /* istanbul ignore next */ []));
20
+ this.headerNode = viewChild('headerNode', /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "headerNode" }] : /* istanbul ignore next */ []));
22
+ this.infoNode = viewChild('infoNode', /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "infoNode" }] : /* istanbul ignore next */ []));
24
+ this.socialProvidersNode = viewChild('socialProvidersNode', /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "socialProvidersNode" }] : /* istanbul ignore next */ []));
23
26
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DeleteAccountConfirmComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DeleteAccountConfirmComponent, isStandalone: true, selector: "kc-delete-account-confirm", providers: [
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DeleteAccountConfirmComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: DeleteAccountConfirmComponent, isStandalone: true, selector: "kc-delete-account-confirm", providers: [
26
29
  {
27
30
  provide: ComponentReference,
28
31
  useExisting: forwardRef(() => DeleteAccountConfirmComponent)
29
32
  }
30
33
  ], 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 triggered_from_aia = kcContext.triggered_from_aia;\n<ng-template #headerNode>\n {{ i18n.msgStr('deleteAccountConfirm') }}\n</ng-template>\n<form\n method=\"post\"\n class=\"form-actions\"\n [action]=\"url.loginAction\"\n>\n <div\n class=\"alert alert-warning\"\n style=\"margin-top: 0; margin-bottom: 30px\"\n >\n <span class=\"pficon pficon-warning-triangle-o\"></span>\n {{ i18n.msgStr('irreversibleAction') }}\n </div>\n <p>{{ i18n.msgStr('deletingImplies') }}</p>\n <ul style=\"color: #72767b; list-style: disc; list-style-position: inside\">\n <li>{{ i18n.msgStr('loggingOutImmediately') }}</li>\n <li>{{ i18n.msgStr('errasingData') }}</li>\n </ul>\n <p class=\"delete-account-text\">\n {{ i18n.msgStr('finalDeletionConfirmation') }}\n </p>\n <div id=\"kc-form-buttons\">\n <input\n type=\"submit\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']\"\n [value]=\"i18n.msgStr('doConfirmDelete')\"\n />\n @if (triggered_from_aia) {\n <button\n style=\"margin-left: calc(100% - 220px)\"\n type=\"submit\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n }\n </div>\n</form>\n", dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
34
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DeleteAccountConfirmComponent, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DeleteAccountConfirmComponent, decorators: [{
33
36
  type: Component,
34
37
  args: [{ imports: [KcClassDirective], selector: 'kc-delete-account-confirm', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
35
38
  {