@kaufmann-lab/ui 0.1.37 → 0.1.38

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.
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, input, booleanAttribute, contentChild, Component, output, computed } from '@angular/core';
3
- import { Divider, Text, Icon, Avatar, Spinner } from '@kaufmann-lab/ui/core';
2
+ import { Directive, input, computed, booleanAttribute, contentChild, Component, output, ChangeDetectionStrategy } from '@angular/core';
3
+ import { BrandLogo, Divider, Text, Icon, Avatar, Spinner } from '@kaufmann-lab/ui/core';
4
4
 
5
5
  /**
6
6
  * Marca el contenido del slot `[kfAuthLayoutNote]` de `kf-auth-layout`: una nota
@@ -115,11 +115,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
115
115
  * <kf-button type="submit">Ingresar</kf-button>
116
116
  * </form>
117
117
  * </kf-auth-layout>
118
+ *
119
+ * ## `shell="halves"`
120
+ * Composición de login central: desde 848px de ancho del propio layout (no de la ventana), dos mitades
121
+ * iguales. A la izquierda el panel de marca, en tres filas (`1fr auto 1fr`) que dejan el bloque
122
+ * central centrado aunque el logo y el pie midan distinto: el logo (`brandLogoSrc`) arriba, el bloque
123
+ * `[kfAuthLayoutHero]` (producto, frase de valor y bajada) al centro, `[kfAuthLayoutBrandFooter]` abajo
124
+ * y `[kfAuthLayoutBackdrop]` como fondo tenue (por ejemplo, una ilustración animada; la pausa cuando
125
+ * la pestaña está oculta la resuelve quien la proyecta). El degradado del panel sale de
126
+ * `--kf-auth-brand-from` y `--kf-auth-brand-to` y los textos de `--kf-auth-on-brand`; ninguno recibe
127
+ * un color. A la derecha, una columna blanca sin tarjeta (`card` no aplica) con el bloque centrado de
128
+ * hasta 400px (480px con `wide`), el texto alineado a la izquierda y `[kfAuthLayoutFoot]` pegado al
129
+ * pie sin mover el centrado (por ejemplo, `kf-environment-tag`). Bajo 848px no hay panel de marca:
130
+ * queda la columna con el logo compacto (`brandLogoMobileSrc`) arriba y los botones y campos de 48px;
131
+ * desde 848px miden 44px. Sin `shell`, el layout es el de siempre.
132
+ *
133
+ * <kf-auth-layout shell="halves" brand="Grupo Kaufmann" brandLogoSrc="images/white.png"
134
+ * brandLogoMobileSrc="images/ink.png" title="Iniciar sesión">
135
+ * <app-route-art kfAuthLayoutBackdrop />
136
+ * <div kfAuthLayoutHero>…producto y frase de valor…</div>
137
+ * <p kfAuthLayoutBrandFooter>Asistencia en Ruta</p>
138
+ * <kf-idp-button />
139
+ * <kf-environment-tag kfAuthLayoutFoot [name]="env" />
140
+ * </kf-auth-layout>
118
141
  */
119
142
  class AuthLayout {
120
143
  /** Nombre de marca/portal — wordmark de respaldo si no hay logo, y `alt` de ambos logos. */
121
144
  brand = input.required(/* @ts-ignore */
122
145
  ...(ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []));
146
+ /**
147
+ * Logo para una superficie clara (el de tinta oscura) y logo para una superficie oscura (el
148
+ * blanco), nombrados por la superficie donde se usan, no por el color del archivo. Con alguno de
149
+ * los dos, el layout dibuja el logo con `kf-brand-logo`: el del panel de marca (oscuro) usa
150
+ * `srcOnDark` y el compacto sobre la columna clara usa `srcOnLight`; si la imagen del tono falta o
151
+ * no carga, se dibuja `brand` como texto. Reemplaza a `brandLogoSrc`/`brandLogoMobileSrc`, que
152
+ * siguen funcionando cuando estos no se indican.
153
+ */
154
+ srcOnLight = input(/* @ts-ignore */
155
+ ...(ngDevMode ? [undefined, { debugName: "srcOnLight" }] : /* istanbul ignore next */ []));
156
+ srcOnDark = input(/* @ts-ignore */
157
+ ...(ngDevMode ? [undefined, { debugName: "srcOnDark" }] : /* istanbul ignore next */ []));
158
+ /** Ancho / alto de los logos de `srcOnLight`/`srcOnDark`, para reservar el alto antes de cargar. */
159
+ brandLogoRatio = input(/* @ts-ignore */
160
+ ...(ngDevMode ? [undefined, { debugName: "brandLogoRatio" }] : /* istanbul ignore next */ []));
161
+ /** Ancho del logo del panel de marca: 210px en `halves`, 7,5rem en el layout histórico. */
162
+ brandLogoWidth = computed(() => this.shell() === 'halves' ? '210px' : '7.5rem', /* @ts-ignore */
163
+ ...(ngDevMode ? [{ debugName: "brandLogoWidth" }] : /* istanbul ignore next */ []));
164
+ /** Ancho del logo compacto sobre la columna clara. */
165
+ mobileLogoWidth = computed(() => this.shell() === 'halves' ? '168px' : '6.5rem', /* @ts-ignore */
166
+ ...(ngDevMode ? [{ debugName: "mobileLogoWidth" }] : /* istanbul ignore next */ []));
123
167
  /** Logo en blanco para el panel oscuro de desktop. Sin esto, se muestra `brand()` como wordmark. */
124
168
  brandLogoSrc = input(/* @ts-ignore */
125
169
  ...(ngDevMode ? [undefined, { debugName: "brandLogoSrc" }] : /* istanbul ignore next */ []));
@@ -132,6 +176,18 @@ class AuthLayout {
132
176
  /** Superficie del layout. Default `'gradient'`; `'plain'` es la variante plana, sin degradados ni sombra de tarjeta. */
133
177
  backgroundVariant = input('gradient', /* @ts-ignore */
134
178
  ...(ngDevMode ? [{ debugName: "backgroundVariant" }] : /* istanbul ignore next */ []));
179
+ /**
180
+ * `halves`: desde 848px de ancho del propio layout, dos mitades iguales: a la izquierda el panel
181
+ * de marca (logo arriba, `[kfAuthLayoutHero]` centrado, `[kfAuthLayoutBrandFooter]` abajo y
182
+ * `[kfAuthLayoutBackdrop]` como fondo tenue) y a la derecha una columna blanca sin tarjeta, con el
183
+ * bloque centrado (máx. 400px, 480px con `wide`) y `[kfAuthLayoutFoot]` al pie. Bajo 848px solo
184
+ * queda la columna, con el logo compacto arriba, y los controles pasan a 48px. Default `default`:
185
+ * sin cambios. Ver el JSDoc de la clase.
186
+ */
187
+ shell = input('default', /* @ts-ignore */
188
+ ...(ngDevMode ? [{ debugName: "shell" }] : /* istanbul ignore next */ []));
189
+ /** Con `shell="halves"`, columna de hasta 480px (formularios) en lugar de 400px. */
190
+ wide = input(false, { ...(ngDevMode ? { debugName: "wide" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
135
191
  /** Envuelve el contenido proyectado con la superficie de `kf-card` (fondo, borde, sombra). Default `false` — preserva el comportamiento histórico. */
136
192
  card = input(false, { ...(ngDevMode ? { debugName: "card" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
137
193
  /** Título del encabezado dentro de la card (`title-lg`). Sin este input, no se renderiza ningún encabezado. */
@@ -147,14 +203,15 @@ class AuthLayout {
147
203
  noteContent = contentChild(AuthLayoutNote, /* @ts-ignore */
148
204
  ...(ngDevMode ? [{ debugName: "noteContent" }] : /* istanbul ignore next */ []));
149
205
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: AuthLayout, deps: [], target: i0.ɵɵFactoryTarget.Component });
150
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: AuthLayout, isStandalone: true, selector: "kf-auth-layout", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: true, transformFunction: null }, brandLogoSrc: { classPropertyName: "brandLogoSrc", publicName: "brandLogoSrc", isSignal: true, isRequired: false, transformFunction: null }, brandTagline: { classPropertyName: "brandTagline", publicName: "brandTagline", isSignal: true, isRequired: false, transformFunction: null }, brandLogoMobileSrc: { classPropertyName: "brandLogoMobileSrc", publicName: "brandLogoMobileSrc", isSignal: true, isRequired: false, transformFunction: null }, backgroundVariant: { classPropertyName: "backgroundVariant", publicName: "backgroundVariant", isSignal: true, isRequired: false, transformFunction: null }, card: { classPropertyName: "card", publicName: "card", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-background": "backgroundVariant()" } }, queries: [{ propertyName: "ssoContent", first: true, predicate: AuthLayoutSso, descendants: true, isSignal: true }, { propertyName: "noteContent", first: true, predicate: AuthLayoutNote, descendants: true, isSignal: true }], ngImport: i0, template: "<aside class=\"kf-auth-layout__brand\">\n @if (brandLogoSrc()) {\n <img class=\"kf-auth-layout__logo\" [src]=\"brandLogoSrc()\" [alt]=\"brand()\" />\n } @else {\n <span class=\"kf-auth-layout__wordmark\">{{ brand() }}</span>\n }\n @if (brandTagline()) {\n <p class=\"kf-auth-layout__tagline\">{{ brandTagline() }}</p>\n }\n</aside>\n\n<main class=\"kf-auth-layout__content\">\n <div class=\"kf-auth-layout__panel\" [class.kf-auth-layout__panel--card]=\"card()\">\n <div class=\"kf-auth-layout__mobile-brand\">\n @if (brandLogoMobileSrc() || brandLogoSrc()) {\n <img\n class=\"kf-auth-layout__logo kf-auth-layout__logo--mobile\"\n [src]=\"brandLogoMobileSrc() || brandLogoSrc()\"\n [alt]=\"brand()\"\n />\n } @else {\n <span class=\"kf-auth-layout__wordmark kf-auth-layout__wordmark--mobile\">{{ brand() }}</span>\n }\n </div>\n\n @if (title(); as headerTitle) {\n <div class=\"kf-auth-layout__header\">\n <kf-text as=\"h1\" variant=\"title-lg\">{{ headerTitle }}</kf-text>\n @if (subtitle(); as headerSubtitle) {\n <kf-text as=\"p\" variant=\"body-muted\">{{ headerSubtitle }}</kf-text>\n }\n </div>\n }\n\n <div class=\"kf-auth-layout__sso\">\n <ng-content select=\"[kfAuthLayoutSso]\" />\n </div>\n\n @if (ssoContent()) {\n <div class=\"kf-auth-layout__divider\">\n <kf-divider />\n <kf-text as=\"span\" variant=\"caption\" class=\"kf-auth-layout__divider-label\">o</kf-text>\n <kf-divider />\n </div>\n }\n\n <div class=\"kf-auth-layout__body\">\n <ng-content />\n </div>\n </div>\n\n @if (noteContent()) {\n <div class=\"kf-auth-layout__note\">\n <ng-content select=\"[kfAuthLayoutNote]\" />\n </div>\n }\n</main>\n", styles: ["@charset \"UTF-8\";:host{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);min-height:100dvh}.kf-auth-layout__brand{display:flex;flex-direction:column;justify-content:center;gap:var(--kf-space-md);padding:var(--kf-space-xl);background:linear-gradient(190deg,var(--kf-color-primary-active) 0%,var(--kf-color-tertiary-deep) 100%);color:var(--kf-color-white)}:host([data-background=plain]) .kf-auth-layout__brand{background:var(--kf-color-tertiary-deep)}.kf-auth-layout__logo{height:1.75rem;width:fit-content}.kf-auth-layout__wordmark{font-family:var(--kf-font-title);font-weight:var(--kf-font-weight-title);font-size:var(--kf-font-size-title-lg);letter-spacing:-.01em}.kf-auth-layout__tagline{max-width:34ch;margin:0;font-family:var(--kf-font-body);font-size:var(--kf-font-size-body);color:#ffffffb8}.kf-auth-layout__content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--kf-space-md);padding:var(--kf-space-xl);background:var(--kf-color-surface)}:host([data-background=gradient]) .kf-auth-layout__content{background:linear-gradient(165deg,color-mix(in srgb,var(--kf-color-primary) 6%,var(--kf-color-surface)) 0%,var(--kf-color-surface) 55%,color-mix(in srgb,var(--kf-color-primary) 10%,var(--kf-color-surface)) 100%)}:host([data-background=pattern]) .kf-auth-layout__content{background-color:var(--kf-color-surface);background-image:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--kf-color-primary) 16%,transparent) 1px,transparent 0),linear-gradient(165deg,color-mix(in srgb,var(--kf-color-primary) 6%,var(--kf-color-surface)) 0%,var(--kf-color-surface) 55%,color-mix(in srgb,var(--kf-color-primary) 10%,var(--kf-color-surface)) 100%);background-size:18px 18px,100% 100%}.kf-auth-layout__panel{width:100%;max-width:360px;display:flex;flex-direction:column;gap:var(--kf-space-xl)}.kf-auth-layout__header{display:flex;flex-direction:column;gap:var(--kf-space-xs)}.kf-auth-layout__sso,.kf-auth-layout__body{display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-auth-layout__panel--card{padding:var(--kf-space-xl);background:var(--kf-color-white);border:1px solid var(--kf-color-border);border-radius:var(--kf-radius-md);box-shadow:var(--kf-shadow-md)}:host([data-background=plain]) .kf-auth-layout__panel--card{box-shadow:none}.kf-auth-layout__divider{display:flex;align-items:center;gap:var(--kf-space-sm)}.kf-auth-layout__divider kf-divider{flex:1 1 0}.kf-auth-layout__divider-label{flex:none}.kf-auth-layout__mobile-brand{display:none;text-align:center}.kf-auth-layout__logo--mobile{margin-inline:auto;height:1.5rem}.kf-auth-layout__wordmark--mobile{color:var(--kf-color-ink)}@media(max-width:900px){:host{grid-template-columns:minmax(0,1fr)}.kf-auth-layout__brand{display:none}.kf-auth-layout__content{padding:var(--kf-space-lg) var(--kf-space-md)}.kf-auth-layout__mobile-brand{display:block;margin-bottom:var(--kf-space-md)}}@media(max-width:480px){.kf-auth-layout__panel{max-width:none}}.kf-auth-layout__note{width:100%;max-width:360px;font-size:var(--kf-font-size-caption);color:var(--kf-color-text-muted);text-align:center}@media(max-width:480px){.kf-auth-layout__note{max-width:none}}\n"], dependencies: [{ kind: "component", type: Divider, selector: "kf-divider", inputs: ["orientation"] }, { kind: "component", type: Text, selector: "kf-text", inputs: ["as", "variant", "tone"] }] });
206
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: AuthLayout, isStandalone: true, selector: "kf-auth-layout", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: true, transformFunction: null }, srcOnLight: { classPropertyName: "srcOnLight", publicName: "srcOnLight", isSignal: true, isRequired: false, transformFunction: null }, srcOnDark: { classPropertyName: "srcOnDark", publicName: "srcOnDark", isSignal: true, isRequired: false, transformFunction: null }, brandLogoRatio: { classPropertyName: "brandLogoRatio", publicName: "brandLogoRatio", isSignal: true, isRequired: false, transformFunction: null }, brandLogoSrc: { classPropertyName: "brandLogoSrc", publicName: "brandLogoSrc", isSignal: true, isRequired: false, transformFunction: null }, brandTagline: { classPropertyName: "brandTagline", publicName: "brandTagline", isSignal: true, isRequired: false, transformFunction: null }, brandLogoMobileSrc: { classPropertyName: "brandLogoMobileSrc", publicName: "brandLogoMobileSrc", isSignal: true, isRequired: false, transformFunction: null }, backgroundVariant: { classPropertyName: "backgroundVariant", publicName: "backgroundVariant", isSignal: true, isRequired: false, transformFunction: null }, shell: { classPropertyName: "shell", publicName: "shell", isSignal: true, isRequired: false, transformFunction: null }, wide: { classPropertyName: "wide", publicName: "wide", isSignal: true, isRequired: false, transformFunction: null }, card: { classPropertyName: "card", publicName: "card", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-background": "backgroundVariant()", "attr.data-shell": "shell()" } }, queries: [{ propertyName: "ssoContent", first: true, predicate: AuthLayoutSso, descendants: true, isSignal: true }, { propertyName: "noteContent", first: true, predicate: AuthLayoutNote, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"kf-auth-layout__shell\">\n <aside class=\"kf-auth-layout__brand\">\n <div class=\"kf-auth-layout__backdrop\" aria-hidden=\"true\">\n <ng-content select=\"[kfAuthLayoutBackdrop]\" />\n </div>\n @if (srcOnLight() || srcOnDark()) {\n <kf-brand-logo\n class=\"kf-auth-layout__brand-logo\"\n tone=\"dark\"\n [alt]=\"brand()\"\n [srcOnLight]=\"srcOnLight() ?? null\"\n [srcOnDark]=\"srcOnDark() ?? null\"\n [width]=\"brandLogoWidth()\"\n [ratio]=\"brandLogoRatio() ?? null\"\n />\n } @else if (brandLogoSrc()) {\n <img class=\"kf-auth-layout__logo\" [src]=\"brandLogoSrc()\" [alt]=\"brand()\" />\n } @else {\n <span class=\"kf-auth-layout__wordmark\">{{ brand() }}</span>\n }\n <div class=\"kf-auth-layout__hero\">\n <ng-content select=\"[kfAuthLayoutHero]\" />\n @if (brandTagline()) {\n <p class=\"kf-auth-layout__tagline\">{{ brandTagline() }}</p>\n }\n </div>\n <div class=\"kf-auth-layout__brand-foot\">\n <ng-content select=\"[kfAuthLayoutBrandFooter]\" />\n </div>\n </aside>\n\n <main class=\"kf-auth-layout__content\">\n <div\n class=\"kf-auth-layout__panel\"\n [class.kf-auth-layout__panel--card]=\"card()\"\n [class.kf-auth-layout__panel--wide]=\"wide()\"\n >\n <div class=\"kf-auth-layout__mobile-brand\">\n @if (srcOnLight() || srcOnDark()) {\n <kf-brand-logo\n class=\"kf-auth-layout__brand-logo kf-auth-layout__brand-logo--mobile\"\n tone=\"light\"\n [alt]=\"brand()\"\n [srcOnLight]=\"srcOnLight() ?? null\"\n [srcOnDark]=\"srcOnDark() ?? null\"\n [width]=\"mobileLogoWidth()\"\n [ratio]=\"brandLogoRatio() ?? null\"\n />\n } @else if (brandLogoMobileSrc() || brandLogoSrc()) {\n <img\n class=\"kf-auth-layout__logo kf-auth-layout__logo--mobile\"\n [src]=\"brandLogoMobileSrc() || brandLogoSrc()\"\n [alt]=\"brand()\"\n />\n } @else {\n <span class=\"kf-auth-layout__wordmark kf-auth-layout__wordmark--mobile\">{{\n brand()\n }}</span>\n }\n </div>\n\n @if (title(); as headerTitle) {\n <div class=\"kf-auth-layout__header\">\n <kf-text as=\"h1\" variant=\"title-lg\">{{ headerTitle }}</kf-text>\n @if (subtitle(); as headerSubtitle) {\n <kf-text as=\"p\" variant=\"body-muted\">{{ headerSubtitle }}</kf-text>\n }\n </div>\n }\n\n <div class=\"kf-auth-layout__sso\">\n <ng-content select=\"[kfAuthLayoutSso]\" />\n </div>\n\n @if (ssoContent()) {\n <div class=\"kf-auth-layout__divider\">\n <kf-divider />\n <kf-text as=\"span\" variant=\"caption\" class=\"kf-auth-layout__divider-label\">o</kf-text>\n <kf-divider />\n </div>\n }\n\n <div class=\"kf-auth-layout__body\">\n <ng-content />\n </div>\n </div>\n\n @if (noteContent()) {\n <div class=\"kf-auth-layout__note\">\n <ng-content select=\"[kfAuthLayoutNote]\" />\n </div>\n }\n <div class=\"kf-auth-layout__foot\">\n <ng-content select=\"[kfAuthLayoutFoot]\" />\n </div>\n </main>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);min-height:var(--kf-auth-layout-min-height, 100dvh)}.kf-auth-layout__brand{display:flex;flex-direction:column;justify-content:center;gap:var(--kf-space-md);padding:var(--kf-space-xl);background:linear-gradient(190deg,var(--kf-color-primary-active) 0%,var(--kf-color-tertiary-deep) 100%);color:var(--kf-color-white)}:host([data-background=plain]) .kf-auth-layout__brand{background:var(--kf-color-tertiary-deep)}.kf-auth-layout__logo{height:1.75rem;width:fit-content}.kf-auth-layout__brand-logo--mobile{margin-inline:auto}.kf-auth-layout__wordmark{font-family:var(--kf-font-title);font-weight:var(--kf-font-weight-title);font-size:var(--kf-font-size-title-lg);letter-spacing:-.01em}.kf-auth-layout__tagline{max-width:34ch;margin:0;font-family:var(--kf-font-body);font-size:var(--kf-font-size-body);color:#ffffffb8}.kf-auth-layout__content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--kf-space-md);padding:var(--kf-space-xl);background:var(--kf-color-surface)}:host([data-background=gradient]) .kf-auth-layout__content{background:linear-gradient(165deg,color-mix(in srgb,var(--kf-color-primary) 6%,var(--kf-color-surface)) 0%,var(--kf-color-surface) 55%,color-mix(in srgb,var(--kf-color-primary) 10%,var(--kf-color-surface)) 100%)}:host([data-background=pattern]) .kf-auth-layout__content{background-color:var(--kf-color-surface);background-image:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--kf-color-primary) 16%,transparent) 1px,transparent 0),linear-gradient(165deg,color-mix(in srgb,var(--kf-color-primary) 6%,var(--kf-color-surface)) 0%,var(--kf-color-surface) 55%,color-mix(in srgb,var(--kf-color-primary) 10%,var(--kf-color-surface)) 100%);background-size:18px 18px,100% 100%}.kf-auth-layout__panel{width:100%;max-width:360px;display:flex;flex-direction:column;gap:var(--kf-space-xl)}.kf-auth-layout__header{display:flex;flex-direction:column;gap:var(--kf-space-xs)}.kf-auth-layout__sso,.kf-auth-layout__body{display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-auth-layout__panel--card{padding:var(--kf-space-xl);background:var(--kf-color-white);border:1px solid var(--kf-color-border);border-radius:var(--kf-radius-md);box-shadow:var(--kf-shadow-md)}:host([data-background=plain]) .kf-auth-layout__panel--card{box-shadow:none}.kf-auth-layout__divider{display:flex;align-items:center;gap:var(--kf-space-sm)}.kf-auth-layout__divider kf-divider{flex:1 1 0}.kf-auth-layout__divider-label{flex:none}.kf-auth-layout__mobile-brand{display:none;text-align:center}.kf-auth-layout__logo--mobile{margin-inline:auto;height:1.5rem}.kf-auth-layout__wordmark--mobile{color:var(--kf-color-ink)}@media(max-width:900px){:host{grid-template-columns:minmax(0,1fr)}.kf-auth-layout__brand{display:none}.kf-auth-layout__content{padding:var(--kf-space-lg) var(--kf-space-md)}.kf-auth-layout__mobile-brand{display:block;margin-bottom:var(--kf-space-md)}}@media(max-width:480px){.kf-auth-layout__panel{max-width:none}}.kf-auth-layout__note{width:100%;max-width:360px;font-size:var(--kf-font-size-caption);color:var(--kf-color-text-muted);text-align:center}@media(max-width:480px){.kf-auth-layout__note{max-width:none}}:host([data-shell=halves]){display:block;min-height:var(--kf-auth-layout-min-height, 100dvh);container:kf-auth-layout/inline-size}:host([data-shell=halves]) .kf-auth-layout__shell{display:grid;grid-template-columns:minmax(0,1fr);height:100%;min-height:var(--kf-auth-layout-min-height, 100dvh)}.kf-auth-layout__shell{display:contents}.kf-auth-layout__backdrop,.kf-auth-layout__brand-foot,.kf-auth-layout__foot{display:none}.kf-auth-layout__hero{display:contents}:host([data-shell=halves]) .kf-auth-layout__content{position:relative;padding:72px var(--kf-space-lg) calc(72px + env(safe-area-inset-bottom,0px));background:var(--kf-color-white);--kf-button-min-height: 48px;--kf-select-min-height: 48px;--kf-control-min-height: 48px;--kf-link-min-height: 40px}:host([data-shell=halves]) .kf-auth-layout__panel{max-width:400px;gap:var(--kf-space-lg);animation:kf-auth-column-in .24s var(--kf-ease-enter, ease-out) both}:host([data-shell=halves]) .kf-auth-layout__panel--wide{max-width:480px}:host([data-shell=halves]) .kf-auth-layout__panel--card{padding:0;background:none;border:none;box-shadow:none}:host([data-shell=halves]) .kf-auth-layout__header{align-items:flex-start;gap:var(--kf-space-sm);text-align:start}:host([data-shell=halves]) .kf-auth-layout__body{gap:var(--kf-space-md)}:host([data-shell=halves]) .kf-auth-layout__mobile-brand{display:block;margin-bottom:var(--kf-space-md)}:host([data-shell=halves]) .kf-auth-layout__foot{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;align-items:center;gap:var(--kf-space-xs);padding:0 var(--kf-space-md) calc(var(--kf-space-md) + env(safe-area-inset-bottom,0px));pointer-events:none}:host([data-shell=halves]) .kf-auth-layout__foot:empty{display:none}@keyframes kf-auth-column-in{0%{opacity:0;transform:translateY(8px)}}@container kf-auth-layout (min-width: 480px){:host([data-shell=halves]) .kf-auth-layout__content{padding-inline:var(--kf-space-xl)}}@container kf-auth-layout (max-width: 847.98px){:host([data-shell=halves]) .kf-auth-layout__brand{display:none}}@container kf-auth-layout (min-width: 848px){:host([data-shell=halves]) .kf-auth-layout__shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}:host([data-shell=halves]) .kf-auth-layout__mobile-brand{display:none}:host([data-shell=halves]) .kf-auth-layout__content{--kf-button-min-height: var(--kf-hit-target-min, 44px);--kf-select-min-height: var(--kf-hit-target-min, 44px);--kf-control-min-height: var(--kf-hit-target-min, 44px)}:host([data-shell=halves]) .kf-auth-layout__brand{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto 1fr;min-width:0;overflow:hidden;padding:var(--kf-space-xl);background:linear-gradient(170deg,var(--kf-auth-brand-from, var(--kf-color-primary-active)) 0%,var(--kf-auth-brand-to, var(--kf-color-tertiary-deep)) 100%);color:var(--kf-auth-on-brand, var(--kf-color-white))}:host([data-shell=halves]) .kf-auth-layout__backdrop{position:absolute;inset:0;z-index:0;display:block;pointer-events:none}:host([data-shell=halves]) .kf-auth-layout__logo,:host([data-shell=halves]) .kf-auth-layout__brand-logo:not(.kf-auth-layout__brand-logo--mobile),:host([data-shell=halves]) .kf-auth-layout__wordmark{position:relative;z-index:1;grid-row:1;align-self:start;justify-self:start}:host([data-shell=halves]) .kf-auth-layout__logo{width:210px;max-width:100%;height:auto}:host([data-shell=halves]) .kf-auth-layout__hero{position:relative;z-index:1;grid-row:2;display:flex;flex-direction:column;gap:var(--kf-space-md);min-width:0;max-width:34rem;justify-self:center;text-align:start}:host([data-shell=halves]) .kf-auth-layout__tagline{color:var(--kf-auth-on-brand-muted, rgba(255, 255, 255, .78))}:host([data-shell=halves]) .kf-auth-layout__brand-foot{position:relative;z-index:1;grid-row:3;display:block;align-self:end;color:var(--kf-auth-on-brand-muted, rgba(255, 255, 255, .78));font-size:var(--kf-font-size-caption)}:host([data-shell=halves]) .kf-auth-layout__brand-foot:empty{display:none}}@container kf-auth-layout (min-width: 1600px){:host([data-shell=halves]) .kf-auth-layout__brand{padding:48px}}@media(prefers-reduced-motion:reduce){:host([data-shell=halves]) .kf-auth-layout__panel{animation:none}}\n"], dependencies: [{ kind: "component", type: BrandLogo, selector: "kf-brand-logo", inputs: ["alt", "srcOnLight", "srcOnDark", "tone", "width", "ratio", "decorative"] }, { kind: "component", type: Divider, selector: "kf-divider", inputs: ["orientation"] }, { kind: "component", type: Text, selector: "kf-text", inputs: ["as", "variant", "tone"] }] });
151
207
  }
152
208
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: AuthLayout, decorators: [{
153
209
  type: Component,
154
- args: [{ selector: 'kf-auth-layout', imports: [Divider, Text], host: {
210
+ args: [{ selector: 'kf-auth-layout', imports: [BrandLogo, Divider, Text], host: {
155
211
  '[attr.data-background]': 'backgroundVariant()',
156
- }, template: "<aside class=\"kf-auth-layout__brand\">\n @if (brandLogoSrc()) {\n <img class=\"kf-auth-layout__logo\" [src]=\"brandLogoSrc()\" [alt]=\"brand()\" />\n } @else {\n <span class=\"kf-auth-layout__wordmark\">{{ brand() }}</span>\n }\n @if (brandTagline()) {\n <p class=\"kf-auth-layout__tagline\">{{ brandTagline() }}</p>\n }\n</aside>\n\n<main class=\"kf-auth-layout__content\">\n <div class=\"kf-auth-layout__panel\" [class.kf-auth-layout__panel--card]=\"card()\">\n <div class=\"kf-auth-layout__mobile-brand\">\n @if (brandLogoMobileSrc() || brandLogoSrc()) {\n <img\n class=\"kf-auth-layout__logo kf-auth-layout__logo--mobile\"\n [src]=\"brandLogoMobileSrc() || brandLogoSrc()\"\n [alt]=\"brand()\"\n />\n } @else {\n <span class=\"kf-auth-layout__wordmark kf-auth-layout__wordmark--mobile\">{{ brand() }}</span>\n }\n </div>\n\n @if (title(); as headerTitle) {\n <div class=\"kf-auth-layout__header\">\n <kf-text as=\"h1\" variant=\"title-lg\">{{ headerTitle }}</kf-text>\n @if (subtitle(); as headerSubtitle) {\n <kf-text as=\"p\" variant=\"body-muted\">{{ headerSubtitle }}</kf-text>\n }\n </div>\n }\n\n <div class=\"kf-auth-layout__sso\">\n <ng-content select=\"[kfAuthLayoutSso]\" />\n </div>\n\n @if (ssoContent()) {\n <div class=\"kf-auth-layout__divider\">\n <kf-divider />\n <kf-text as=\"span\" variant=\"caption\" class=\"kf-auth-layout__divider-label\">o</kf-text>\n <kf-divider />\n </div>\n }\n\n <div class=\"kf-auth-layout__body\">\n <ng-content />\n </div>\n </div>\n\n @if (noteContent()) {\n <div class=\"kf-auth-layout__note\">\n <ng-content select=\"[kfAuthLayoutNote]\" />\n </div>\n }\n</main>\n", styles: ["@charset \"UTF-8\";:host{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);min-height:100dvh}.kf-auth-layout__brand{display:flex;flex-direction:column;justify-content:center;gap:var(--kf-space-md);padding:var(--kf-space-xl);background:linear-gradient(190deg,var(--kf-color-primary-active) 0%,var(--kf-color-tertiary-deep) 100%);color:var(--kf-color-white)}:host([data-background=plain]) .kf-auth-layout__brand{background:var(--kf-color-tertiary-deep)}.kf-auth-layout__logo{height:1.75rem;width:fit-content}.kf-auth-layout__wordmark{font-family:var(--kf-font-title);font-weight:var(--kf-font-weight-title);font-size:var(--kf-font-size-title-lg);letter-spacing:-.01em}.kf-auth-layout__tagline{max-width:34ch;margin:0;font-family:var(--kf-font-body);font-size:var(--kf-font-size-body);color:#ffffffb8}.kf-auth-layout__content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--kf-space-md);padding:var(--kf-space-xl);background:var(--kf-color-surface)}:host([data-background=gradient]) .kf-auth-layout__content{background:linear-gradient(165deg,color-mix(in srgb,var(--kf-color-primary) 6%,var(--kf-color-surface)) 0%,var(--kf-color-surface) 55%,color-mix(in srgb,var(--kf-color-primary) 10%,var(--kf-color-surface)) 100%)}:host([data-background=pattern]) .kf-auth-layout__content{background-color:var(--kf-color-surface);background-image:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--kf-color-primary) 16%,transparent) 1px,transparent 0),linear-gradient(165deg,color-mix(in srgb,var(--kf-color-primary) 6%,var(--kf-color-surface)) 0%,var(--kf-color-surface) 55%,color-mix(in srgb,var(--kf-color-primary) 10%,var(--kf-color-surface)) 100%);background-size:18px 18px,100% 100%}.kf-auth-layout__panel{width:100%;max-width:360px;display:flex;flex-direction:column;gap:var(--kf-space-xl)}.kf-auth-layout__header{display:flex;flex-direction:column;gap:var(--kf-space-xs)}.kf-auth-layout__sso,.kf-auth-layout__body{display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-auth-layout__panel--card{padding:var(--kf-space-xl);background:var(--kf-color-white);border:1px solid var(--kf-color-border);border-radius:var(--kf-radius-md);box-shadow:var(--kf-shadow-md)}:host([data-background=plain]) .kf-auth-layout__panel--card{box-shadow:none}.kf-auth-layout__divider{display:flex;align-items:center;gap:var(--kf-space-sm)}.kf-auth-layout__divider kf-divider{flex:1 1 0}.kf-auth-layout__divider-label{flex:none}.kf-auth-layout__mobile-brand{display:none;text-align:center}.kf-auth-layout__logo--mobile{margin-inline:auto;height:1.5rem}.kf-auth-layout__wordmark--mobile{color:var(--kf-color-ink)}@media(max-width:900px){:host{grid-template-columns:minmax(0,1fr)}.kf-auth-layout__brand{display:none}.kf-auth-layout__content{padding:var(--kf-space-lg) var(--kf-space-md)}.kf-auth-layout__mobile-brand{display:block;margin-bottom:var(--kf-space-md)}}@media(max-width:480px){.kf-auth-layout__panel{max-width:none}}.kf-auth-layout__note{width:100%;max-width:360px;font-size:var(--kf-font-size-caption);color:var(--kf-color-text-muted);text-align:center}@media(max-width:480px){.kf-auth-layout__note{max-width:none}}\n"] }]
157
- }], propDecorators: { brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: true }] }], brandLogoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoSrc", required: false }] }], brandTagline: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandTagline", required: false }] }], brandLogoMobileSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoMobileSrc", required: false }] }], backgroundVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "backgroundVariant", required: false }] }], card: [{ type: i0.Input, args: [{ isSignal: true, alias: "card", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], ssoContent: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AuthLayoutSso), { isSignal: true }] }], noteContent: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AuthLayoutNote), { isSignal: true }] }] } });
212
+ '[attr.data-shell]': 'shell()',
213
+ }, template: "<div class=\"kf-auth-layout__shell\">\n <aside class=\"kf-auth-layout__brand\">\n <div class=\"kf-auth-layout__backdrop\" aria-hidden=\"true\">\n <ng-content select=\"[kfAuthLayoutBackdrop]\" />\n </div>\n @if (srcOnLight() || srcOnDark()) {\n <kf-brand-logo\n class=\"kf-auth-layout__brand-logo\"\n tone=\"dark\"\n [alt]=\"brand()\"\n [srcOnLight]=\"srcOnLight() ?? null\"\n [srcOnDark]=\"srcOnDark() ?? null\"\n [width]=\"brandLogoWidth()\"\n [ratio]=\"brandLogoRatio() ?? null\"\n />\n } @else if (brandLogoSrc()) {\n <img class=\"kf-auth-layout__logo\" [src]=\"brandLogoSrc()\" [alt]=\"brand()\" />\n } @else {\n <span class=\"kf-auth-layout__wordmark\">{{ brand() }}</span>\n }\n <div class=\"kf-auth-layout__hero\">\n <ng-content select=\"[kfAuthLayoutHero]\" />\n @if (brandTagline()) {\n <p class=\"kf-auth-layout__tagline\">{{ brandTagline() }}</p>\n }\n </div>\n <div class=\"kf-auth-layout__brand-foot\">\n <ng-content select=\"[kfAuthLayoutBrandFooter]\" />\n </div>\n </aside>\n\n <main class=\"kf-auth-layout__content\">\n <div\n class=\"kf-auth-layout__panel\"\n [class.kf-auth-layout__panel--card]=\"card()\"\n [class.kf-auth-layout__panel--wide]=\"wide()\"\n >\n <div class=\"kf-auth-layout__mobile-brand\">\n @if (srcOnLight() || srcOnDark()) {\n <kf-brand-logo\n class=\"kf-auth-layout__brand-logo kf-auth-layout__brand-logo--mobile\"\n tone=\"light\"\n [alt]=\"brand()\"\n [srcOnLight]=\"srcOnLight() ?? null\"\n [srcOnDark]=\"srcOnDark() ?? null\"\n [width]=\"mobileLogoWidth()\"\n [ratio]=\"brandLogoRatio() ?? null\"\n />\n } @else if (brandLogoMobileSrc() || brandLogoSrc()) {\n <img\n class=\"kf-auth-layout__logo kf-auth-layout__logo--mobile\"\n [src]=\"brandLogoMobileSrc() || brandLogoSrc()\"\n [alt]=\"brand()\"\n />\n } @else {\n <span class=\"kf-auth-layout__wordmark kf-auth-layout__wordmark--mobile\">{{\n brand()\n }}</span>\n }\n </div>\n\n @if (title(); as headerTitle) {\n <div class=\"kf-auth-layout__header\">\n <kf-text as=\"h1\" variant=\"title-lg\">{{ headerTitle }}</kf-text>\n @if (subtitle(); as headerSubtitle) {\n <kf-text as=\"p\" variant=\"body-muted\">{{ headerSubtitle }}</kf-text>\n }\n </div>\n }\n\n <div class=\"kf-auth-layout__sso\">\n <ng-content select=\"[kfAuthLayoutSso]\" />\n </div>\n\n @if (ssoContent()) {\n <div class=\"kf-auth-layout__divider\">\n <kf-divider />\n <kf-text as=\"span\" variant=\"caption\" class=\"kf-auth-layout__divider-label\">o</kf-text>\n <kf-divider />\n </div>\n }\n\n <div class=\"kf-auth-layout__body\">\n <ng-content />\n </div>\n </div>\n\n @if (noteContent()) {\n <div class=\"kf-auth-layout__note\">\n <ng-content select=\"[kfAuthLayoutNote]\" />\n </div>\n }\n <div class=\"kf-auth-layout__foot\">\n <ng-content select=\"[kfAuthLayoutFoot]\" />\n </div>\n </main>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);min-height:var(--kf-auth-layout-min-height, 100dvh)}.kf-auth-layout__brand{display:flex;flex-direction:column;justify-content:center;gap:var(--kf-space-md);padding:var(--kf-space-xl);background:linear-gradient(190deg,var(--kf-color-primary-active) 0%,var(--kf-color-tertiary-deep) 100%);color:var(--kf-color-white)}:host([data-background=plain]) .kf-auth-layout__brand{background:var(--kf-color-tertiary-deep)}.kf-auth-layout__logo{height:1.75rem;width:fit-content}.kf-auth-layout__brand-logo--mobile{margin-inline:auto}.kf-auth-layout__wordmark{font-family:var(--kf-font-title);font-weight:var(--kf-font-weight-title);font-size:var(--kf-font-size-title-lg);letter-spacing:-.01em}.kf-auth-layout__tagline{max-width:34ch;margin:0;font-family:var(--kf-font-body);font-size:var(--kf-font-size-body);color:#ffffffb8}.kf-auth-layout__content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--kf-space-md);padding:var(--kf-space-xl);background:var(--kf-color-surface)}:host([data-background=gradient]) .kf-auth-layout__content{background:linear-gradient(165deg,color-mix(in srgb,var(--kf-color-primary) 6%,var(--kf-color-surface)) 0%,var(--kf-color-surface) 55%,color-mix(in srgb,var(--kf-color-primary) 10%,var(--kf-color-surface)) 100%)}:host([data-background=pattern]) .kf-auth-layout__content{background-color:var(--kf-color-surface);background-image:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--kf-color-primary) 16%,transparent) 1px,transparent 0),linear-gradient(165deg,color-mix(in srgb,var(--kf-color-primary) 6%,var(--kf-color-surface)) 0%,var(--kf-color-surface) 55%,color-mix(in srgb,var(--kf-color-primary) 10%,var(--kf-color-surface)) 100%);background-size:18px 18px,100% 100%}.kf-auth-layout__panel{width:100%;max-width:360px;display:flex;flex-direction:column;gap:var(--kf-space-xl)}.kf-auth-layout__header{display:flex;flex-direction:column;gap:var(--kf-space-xs)}.kf-auth-layout__sso,.kf-auth-layout__body{display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-auth-layout__panel--card{padding:var(--kf-space-xl);background:var(--kf-color-white);border:1px solid var(--kf-color-border);border-radius:var(--kf-radius-md);box-shadow:var(--kf-shadow-md)}:host([data-background=plain]) .kf-auth-layout__panel--card{box-shadow:none}.kf-auth-layout__divider{display:flex;align-items:center;gap:var(--kf-space-sm)}.kf-auth-layout__divider kf-divider{flex:1 1 0}.kf-auth-layout__divider-label{flex:none}.kf-auth-layout__mobile-brand{display:none;text-align:center}.kf-auth-layout__logo--mobile{margin-inline:auto;height:1.5rem}.kf-auth-layout__wordmark--mobile{color:var(--kf-color-ink)}@media(max-width:900px){:host{grid-template-columns:minmax(0,1fr)}.kf-auth-layout__brand{display:none}.kf-auth-layout__content{padding:var(--kf-space-lg) var(--kf-space-md)}.kf-auth-layout__mobile-brand{display:block;margin-bottom:var(--kf-space-md)}}@media(max-width:480px){.kf-auth-layout__panel{max-width:none}}.kf-auth-layout__note{width:100%;max-width:360px;font-size:var(--kf-font-size-caption);color:var(--kf-color-text-muted);text-align:center}@media(max-width:480px){.kf-auth-layout__note{max-width:none}}:host([data-shell=halves]){display:block;min-height:var(--kf-auth-layout-min-height, 100dvh);container:kf-auth-layout/inline-size}:host([data-shell=halves]) .kf-auth-layout__shell{display:grid;grid-template-columns:minmax(0,1fr);height:100%;min-height:var(--kf-auth-layout-min-height, 100dvh)}.kf-auth-layout__shell{display:contents}.kf-auth-layout__backdrop,.kf-auth-layout__brand-foot,.kf-auth-layout__foot{display:none}.kf-auth-layout__hero{display:contents}:host([data-shell=halves]) .kf-auth-layout__content{position:relative;padding:72px var(--kf-space-lg) calc(72px + env(safe-area-inset-bottom,0px));background:var(--kf-color-white);--kf-button-min-height: 48px;--kf-select-min-height: 48px;--kf-control-min-height: 48px;--kf-link-min-height: 40px}:host([data-shell=halves]) .kf-auth-layout__panel{max-width:400px;gap:var(--kf-space-lg);animation:kf-auth-column-in .24s var(--kf-ease-enter, ease-out) both}:host([data-shell=halves]) .kf-auth-layout__panel--wide{max-width:480px}:host([data-shell=halves]) .kf-auth-layout__panel--card{padding:0;background:none;border:none;box-shadow:none}:host([data-shell=halves]) .kf-auth-layout__header{align-items:flex-start;gap:var(--kf-space-sm);text-align:start}:host([data-shell=halves]) .kf-auth-layout__body{gap:var(--kf-space-md)}:host([data-shell=halves]) .kf-auth-layout__mobile-brand{display:block;margin-bottom:var(--kf-space-md)}:host([data-shell=halves]) .kf-auth-layout__foot{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;align-items:center;gap:var(--kf-space-xs);padding:0 var(--kf-space-md) calc(var(--kf-space-md) + env(safe-area-inset-bottom,0px));pointer-events:none}:host([data-shell=halves]) .kf-auth-layout__foot:empty{display:none}@keyframes kf-auth-column-in{0%{opacity:0;transform:translateY(8px)}}@container kf-auth-layout (min-width: 480px){:host([data-shell=halves]) .kf-auth-layout__content{padding-inline:var(--kf-space-xl)}}@container kf-auth-layout (max-width: 847.98px){:host([data-shell=halves]) .kf-auth-layout__brand{display:none}}@container kf-auth-layout (min-width: 848px){:host([data-shell=halves]) .kf-auth-layout__shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}:host([data-shell=halves]) .kf-auth-layout__mobile-brand{display:none}:host([data-shell=halves]) .kf-auth-layout__content{--kf-button-min-height: var(--kf-hit-target-min, 44px);--kf-select-min-height: var(--kf-hit-target-min, 44px);--kf-control-min-height: var(--kf-hit-target-min, 44px)}:host([data-shell=halves]) .kf-auth-layout__brand{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto 1fr;min-width:0;overflow:hidden;padding:var(--kf-space-xl);background:linear-gradient(170deg,var(--kf-auth-brand-from, var(--kf-color-primary-active)) 0%,var(--kf-auth-brand-to, var(--kf-color-tertiary-deep)) 100%);color:var(--kf-auth-on-brand, var(--kf-color-white))}:host([data-shell=halves]) .kf-auth-layout__backdrop{position:absolute;inset:0;z-index:0;display:block;pointer-events:none}:host([data-shell=halves]) .kf-auth-layout__logo,:host([data-shell=halves]) .kf-auth-layout__brand-logo:not(.kf-auth-layout__brand-logo--mobile),:host([data-shell=halves]) .kf-auth-layout__wordmark{position:relative;z-index:1;grid-row:1;align-self:start;justify-self:start}:host([data-shell=halves]) .kf-auth-layout__logo{width:210px;max-width:100%;height:auto}:host([data-shell=halves]) .kf-auth-layout__hero{position:relative;z-index:1;grid-row:2;display:flex;flex-direction:column;gap:var(--kf-space-md);min-width:0;max-width:34rem;justify-self:center;text-align:start}:host([data-shell=halves]) .kf-auth-layout__tagline{color:var(--kf-auth-on-brand-muted, rgba(255, 255, 255, .78))}:host([data-shell=halves]) .kf-auth-layout__brand-foot{position:relative;z-index:1;grid-row:3;display:block;align-self:end;color:var(--kf-auth-on-brand-muted, rgba(255, 255, 255, .78));font-size:var(--kf-font-size-caption)}:host([data-shell=halves]) .kf-auth-layout__brand-foot:empty{display:none}}@container kf-auth-layout (min-width: 1600px){:host([data-shell=halves]) .kf-auth-layout__brand{padding:48px}}@media(prefers-reduced-motion:reduce){:host([data-shell=halves]) .kf-auth-layout__panel{animation:none}}\n"] }]
214
+ }], propDecorators: { brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: true }] }], srcOnLight: [{ type: i0.Input, args: [{ isSignal: true, alias: "srcOnLight", required: false }] }], srcOnDark: [{ type: i0.Input, args: [{ isSignal: true, alias: "srcOnDark", required: false }] }], brandLogoRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoRatio", required: false }] }], brandLogoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoSrc", required: false }] }], brandTagline: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandTagline", required: false }] }], brandLogoMobileSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoMobileSrc", required: false }] }], backgroundVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "backgroundVariant", required: false }] }], shell: [{ type: i0.Input, args: [{ isSignal: true, alias: "shell", required: false }] }], wide: [{ type: i0.Input, args: [{ isSignal: true, alias: "wide", required: false }] }], card: [{ type: i0.Input, args: [{ isSignal: true, alias: "card", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], ssoContent: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AuthLayoutSso), { isSignal: true }] }], noteContent: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AuthLayoutNote), { isSignal: true }] }] } });
158
215
 
159
216
  /**
160
217
  * Botón de cerrar sesión, pensado para proyectarse dentro de
@@ -201,6 +258,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
201
258
  * brand opcional arriba. Solo identidad — el logout vive aparte, en
202
259
  * `kf-drawer-logout`.
203
260
  *
261
+ * `detail` es una segunda línea propia bajo el nombre (ej. la cuenta activa,
262
+ * «Transportes Andinos · RUC 20100047218»), con el mismo tratamiento que el
263
+ * email y por encima de él; hasta 3 líneas, con el texto completo en `title`.
264
+ * Sin `detail` la tarjeta no cambia.
265
+ *
204
266
  * `collapsed` oculta brand/nombre/email y deja solo el avatar (para un
205
267
  * `kf-sidebar-shell` colapsado). `interactive` convierte la tarjeta en un
206
268
  * botón real que emite `cardClick`, para cuando la identidad es el
@@ -218,6 +280,9 @@ class DrawerSession {
218
280
  ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
219
281
  email = input('', /* @ts-ignore */
220
282
  ...(ngDevMode ? [{ debugName: "email" }] : /* istanbul ignore next */ []));
283
+ /** Segunda línea bajo el nombre, antes del email (ej. la cuenta activa). */
284
+ detail = input('', /* @ts-ignore */
285
+ ...(ngDevMode ? [{ debugName: "detail" }] : /* istanbul ignore next */ []));
221
286
  /**
222
287
  * Etiqueta de rol o función del usuario dentro de la sesión (ej.
223
288
  * "Coordinador", "Supervisor"). Se muestra como badge dentro de la
@@ -256,12 +321,110 @@ class DrawerSession {
256
321
  }, /* @ts-ignore */
257
322
  ...(ngDevMode ? [{ debugName: "displayInitials" }] : /* istanbul ignore next */ []));
258
323
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: DrawerSession, deps: [], target: i0.ɵɵFactoryTarget.Component });
259
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: DrawerSession, isStandalone: true, selector: "kf-drawer-session", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, email: { classPropertyName: "email", publicName: "email", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, avatarUrl: { classPropertyName: "avatarUrl", publicName: "avatarUrl", isSignal: true, isRequired: false, transformFunction: null }, brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cardClick: "cardClick" }, ngImport: i0, template: "@if (brand() && !collapsed()) {\n <span class=\"kf-drawer-session__brand\">{{ brand() }}</span>\n}\n\n@if (interactive()) {\n <button\n type=\"button\"\n class=\"kf-drawer-session__card kf-drawer-session__card--interactive\"\n [class.kf-drawer-session__card--collapsed]=\"collapsed()\"\n (click)=\"cardClick.emit()\"\n >\n <kf-avatar [initials]=\"displayInitials()\" [src]=\"avatarUrl()\" />\n @if (!collapsed()) {\n <div class=\"kf-drawer-session__identity\">\n <span class=\"kf-drawer-session__name\">{{ name() }}</span>\n @if (email()) {\n <span class=\"kf-drawer-session__email\" [attr.title]=\"email()\">{{ email() }}</span>\n }\n @if (role()) {\n <span class=\"kf-drawer-session__role\">{{ role() }}</span>\n }\n </div>\n <kf-icon name=\"more-vertical\" size=\"sm\" />\n }\n </button>\n} @else {\n <div class=\"kf-drawer-session__card\" [class.kf-drawer-session__card--collapsed]=\"collapsed()\">\n <kf-avatar [initials]=\"displayInitials()\" [src]=\"avatarUrl()\" />\n @if (!collapsed()) {\n <div class=\"kf-drawer-session__identity\">\n <span class=\"kf-drawer-session__name\">{{ name() }}</span>\n @if (email()) {\n <span class=\"kf-drawer-session__email\" [attr.title]=\"email()\">{{ email() }}</span>\n }\n @if (role()) {\n <span class=\"kf-drawer-session__role\">{{ role() }}</span>\n }\n </div>\n }\n </div>\n}\n", styles: [":host{display:block;font-family:var(--kf-font-body)}.kf-drawer-session__brand{display:block;margin-bottom:var(--kf-space-sm);font-family:var(--kf-font-mono);font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--kf-sidebar-fg-muted)}.kf-drawer-session__card{box-sizing:border-box;display:flex;align-items:center;gap:var(--kf-space-sm);width:100%;padding:var(--kf-space-sm);border:1px solid var(--kf-header-border);border-radius:var(--kf-radius-md);background:color-mix(in srgb,var(--kf-header-fg) 4%,transparent)}.kf-drawer-session__card kf-avatar{--kf-avatar-ring: var(--kf-sidebar-divider)}.kf-drawer-session__card--interactive{font:inherit;color:inherit;cursor:pointer;text-align:left;transition:background var(--kf-motion-fast, .14s)}.kf-drawer-session__card--interactive:hover{background:color-mix(in srgb,var(--kf-header-fg) 9%,transparent)}.kf-drawer-session__card--interactive:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-drawer-session__card--interactive kf-icon{flex:none;color:color-mix(in srgb,var(--kf-sidebar-fg-muted) 70%,transparent)}.kf-drawer-session__card--collapsed{justify-content:center;width:40px;height:40px;padding:0;border-color:transparent;background:transparent}.kf-drawer-session__card--collapsed:hover{background:color-mix(in srgb,var(--kf-header-fg) 9%,transparent)}.kf-drawer-session__identity{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.kf-drawer-session__name{font-size:.9375rem;font-weight:600;color:var(--kf-header-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kf-drawer-session__email{font-size:var(--kf-font-size-label);color:var(--kf-sidebar-fg-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}.kf-drawer-session__role{display:inline-block;margin-top:2px;padding:2px var(--kf-space-xs);border:1px solid color-mix(in srgb,var(--kf-header-fg) 16%,transparent);border-radius:var(--kf-radius-pill);font-family:var(--kf-font-mono);font-size:.625rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:color-mix(in srgb,var(--kf-header-fg) 85%,transparent);background:color-mix(in srgb,var(--kf-header-fg) 8%,transparent);width:fit-content}\n"], dependencies: [{ kind: "component", type: Avatar, selector: "kf-avatar", inputs: ["initials", "src", "round", "size", "pill"] }, { kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }] });
324
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: DrawerSession, isStandalone: true, selector: "kf-drawer-session", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, email: { classPropertyName: "email", publicName: "email", isSignal: true, isRequired: false, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, avatarUrl: { classPropertyName: "avatarUrl", publicName: "avatarUrl", isSignal: true, isRequired: false, transformFunction: null }, brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cardClick: "cardClick" }, ngImport: i0, template: "@if (brand() && !collapsed()) {\n <span class=\"kf-drawer-session__brand\">{{ brand() }}</span>\n}\n\n@if (interactive()) {\n <button\n type=\"button\"\n class=\"kf-drawer-session__card kf-drawer-session__card--interactive\"\n [class.kf-drawer-session__card--collapsed]=\"collapsed()\"\n (click)=\"cardClick.emit()\"\n >\n <kf-avatar [initials]=\"displayInitials()\" [src]=\"avatarUrl()\" />\n @if (!collapsed()) {\n <div class=\"kf-drawer-session__identity\">\n <span class=\"kf-drawer-session__name\">{{ name() }}</span>\n @if (detail()) {\n <span class=\"kf-drawer-session__detail\" [attr.title]=\"detail()\">{{ detail() }}</span>\n }\n @if (email()) {\n <span class=\"kf-drawer-session__email\" [attr.title]=\"email()\">{{ email() }}</span>\n }\n @if (role()) {\n <span class=\"kf-drawer-session__role\">{{ role() }}</span>\n }\n </div>\n <kf-icon name=\"more-vertical\" size=\"sm\" />\n }\n </button>\n} @else {\n <div class=\"kf-drawer-session__card\" [class.kf-drawer-session__card--collapsed]=\"collapsed()\">\n <kf-avatar [initials]=\"displayInitials()\" [src]=\"avatarUrl()\" />\n @if (!collapsed()) {\n <div class=\"kf-drawer-session__identity\">\n <span class=\"kf-drawer-session__name\">{{ name() }}</span>\n @if (detail()) {\n <span class=\"kf-drawer-session__detail\" [attr.title]=\"detail()\">{{ detail() }}</span>\n }\n @if (email()) {\n <span class=\"kf-drawer-session__email\" [attr.title]=\"email()\">{{ email() }}</span>\n }\n @if (role()) {\n <span class=\"kf-drawer-session__role\">{{ role() }}</span>\n }\n </div>\n }\n </div>\n}\n", styles: [":host{display:block;font-family:var(--kf-font-body)}.kf-drawer-session__brand{display:block;margin-bottom:var(--kf-space-sm);font-family:var(--kf-font-mono);font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--kf-sidebar-fg-muted)}.kf-drawer-session__card{box-sizing:border-box;display:flex;align-items:center;gap:var(--kf-space-sm);width:100%;padding:var(--kf-space-sm);border:1px solid var(--kf-header-border);border-radius:var(--kf-radius-md);background:color-mix(in srgb,var(--kf-header-fg) 4%,transparent)}.kf-drawer-session__card kf-avatar{--kf-avatar-ring: var(--kf-sidebar-divider)}.kf-drawer-session__card--interactive{font:inherit;color:inherit;cursor:pointer;text-align:left;transition:background var(--kf-motion-fast, .14s)}.kf-drawer-session__card--interactive:hover{background:color-mix(in srgb,var(--kf-header-fg) 9%,transparent)}.kf-drawer-session__card--interactive:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-drawer-session__card--interactive kf-icon{flex:none;color:color-mix(in srgb,var(--kf-sidebar-fg-muted) 70%,transparent)}.kf-drawer-session__card--collapsed{justify-content:center;width:40px;height:40px;padding:0;border-color:transparent;background:transparent}.kf-drawer-session__card--collapsed:hover{background:color-mix(in srgb,var(--kf-header-fg) 9%,transparent)}.kf-drawer-session__identity{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.kf-drawer-session__name{font-size:.9375rem;font-weight:600;color:var(--kf-header-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kf-drawer-session__detail,.kf-drawer-session__email{font-size:var(--kf-font-size-label);color:var(--kf-sidebar-fg-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}.kf-drawer-session__role{display:inline-block;margin-top:2px;padding:2px var(--kf-space-xs);border:1px solid color-mix(in srgb,var(--kf-header-fg) 16%,transparent);border-radius:var(--kf-radius-pill);font-family:var(--kf-font-mono);font-size:.625rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:color-mix(in srgb,var(--kf-header-fg) 85%,transparent);background:color-mix(in srgb,var(--kf-header-fg) 8%,transparent);width:fit-content}\n"], dependencies: [{ kind: "component", type: Avatar, selector: "kf-avatar", inputs: ["initials", "src", "round", "size", "pill"] }, { kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }] });
260
325
  }
261
326
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: DrawerSession, decorators: [{
262
327
  type: Component,
263
- args: [{ selector: 'kf-drawer-session', imports: [Avatar, Icon], template: "@if (brand() && !collapsed()) {\n <span class=\"kf-drawer-session__brand\">{{ brand() }}</span>\n}\n\n@if (interactive()) {\n <button\n type=\"button\"\n class=\"kf-drawer-session__card kf-drawer-session__card--interactive\"\n [class.kf-drawer-session__card--collapsed]=\"collapsed()\"\n (click)=\"cardClick.emit()\"\n >\n <kf-avatar [initials]=\"displayInitials()\" [src]=\"avatarUrl()\" />\n @if (!collapsed()) {\n <div class=\"kf-drawer-session__identity\">\n <span class=\"kf-drawer-session__name\">{{ name() }}</span>\n @if (email()) {\n <span class=\"kf-drawer-session__email\" [attr.title]=\"email()\">{{ email() }}</span>\n }\n @if (role()) {\n <span class=\"kf-drawer-session__role\">{{ role() }}</span>\n }\n </div>\n <kf-icon name=\"more-vertical\" size=\"sm\" />\n }\n </button>\n} @else {\n <div class=\"kf-drawer-session__card\" [class.kf-drawer-session__card--collapsed]=\"collapsed()\">\n <kf-avatar [initials]=\"displayInitials()\" [src]=\"avatarUrl()\" />\n @if (!collapsed()) {\n <div class=\"kf-drawer-session__identity\">\n <span class=\"kf-drawer-session__name\">{{ name() }}</span>\n @if (email()) {\n <span class=\"kf-drawer-session__email\" [attr.title]=\"email()\">{{ email() }}</span>\n }\n @if (role()) {\n <span class=\"kf-drawer-session__role\">{{ role() }}</span>\n }\n </div>\n }\n </div>\n}\n", styles: [":host{display:block;font-family:var(--kf-font-body)}.kf-drawer-session__brand{display:block;margin-bottom:var(--kf-space-sm);font-family:var(--kf-font-mono);font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--kf-sidebar-fg-muted)}.kf-drawer-session__card{box-sizing:border-box;display:flex;align-items:center;gap:var(--kf-space-sm);width:100%;padding:var(--kf-space-sm);border:1px solid var(--kf-header-border);border-radius:var(--kf-radius-md);background:color-mix(in srgb,var(--kf-header-fg) 4%,transparent)}.kf-drawer-session__card kf-avatar{--kf-avatar-ring: var(--kf-sidebar-divider)}.kf-drawer-session__card--interactive{font:inherit;color:inherit;cursor:pointer;text-align:left;transition:background var(--kf-motion-fast, .14s)}.kf-drawer-session__card--interactive:hover{background:color-mix(in srgb,var(--kf-header-fg) 9%,transparent)}.kf-drawer-session__card--interactive:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-drawer-session__card--interactive kf-icon{flex:none;color:color-mix(in srgb,var(--kf-sidebar-fg-muted) 70%,transparent)}.kf-drawer-session__card--collapsed{justify-content:center;width:40px;height:40px;padding:0;border-color:transparent;background:transparent}.kf-drawer-session__card--collapsed:hover{background:color-mix(in srgb,var(--kf-header-fg) 9%,transparent)}.kf-drawer-session__identity{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.kf-drawer-session__name{font-size:.9375rem;font-weight:600;color:var(--kf-header-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kf-drawer-session__email{font-size:var(--kf-font-size-label);color:var(--kf-sidebar-fg-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}.kf-drawer-session__role{display:inline-block;margin-top:2px;padding:2px var(--kf-space-xs);border:1px solid color-mix(in srgb,var(--kf-header-fg) 16%,transparent);border-radius:var(--kf-radius-pill);font-family:var(--kf-font-mono);font-size:.625rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:color-mix(in srgb,var(--kf-header-fg) 85%,transparent);background:color-mix(in srgb,var(--kf-header-fg) 8%,transparent);width:fit-content}\n"] }]
264
- }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], email: [{ type: i0.Input, args: [{ isSignal: true, alias: "email", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], avatarUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarUrl", required: false }] }], brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], cardClick: [{ type: i0.Output, args: ["cardClick"] }] } });
328
+ args: [{ selector: 'kf-drawer-session', imports: [Avatar, Icon], template: "@if (brand() && !collapsed()) {\n <span class=\"kf-drawer-session__brand\">{{ brand() }}</span>\n}\n\n@if (interactive()) {\n <button\n type=\"button\"\n class=\"kf-drawer-session__card kf-drawer-session__card--interactive\"\n [class.kf-drawer-session__card--collapsed]=\"collapsed()\"\n (click)=\"cardClick.emit()\"\n >\n <kf-avatar [initials]=\"displayInitials()\" [src]=\"avatarUrl()\" />\n @if (!collapsed()) {\n <div class=\"kf-drawer-session__identity\">\n <span class=\"kf-drawer-session__name\">{{ name() }}</span>\n @if (detail()) {\n <span class=\"kf-drawer-session__detail\" [attr.title]=\"detail()\">{{ detail() }}</span>\n }\n @if (email()) {\n <span class=\"kf-drawer-session__email\" [attr.title]=\"email()\">{{ email() }}</span>\n }\n @if (role()) {\n <span class=\"kf-drawer-session__role\">{{ role() }}</span>\n }\n </div>\n <kf-icon name=\"more-vertical\" size=\"sm\" />\n }\n </button>\n} @else {\n <div class=\"kf-drawer-session__card\" [class.kf-drawer-session__card--collapsed]=\"collapsed()\">\n <kf-avatar [initials]=\"displayInitials()\" [src]=\"avatarUrl()\" />\n @if (!collapsed()) {\n <div class=\"kf-drawer-session__identity\">\n <span class=\"kf-drawer-session__name\">{{ name() }}</span>\n @if (detail()) {\n <span class=\"kf-drawer-session__detail\" [attr.title]=\"detail()\">{{ detail() }}</span>\n }\n @if (email()) {\n <span class=\"kf-drawer-session__email\" [attr.title]=\"email()\">{{ email() }}</span>\n }\n @if (role()) {\n <span class=\"kf-drawer-session__role\">{{ role() }}</span>\n }\n </div>\n }\n </div>\n}\n", styles: [":host{display:block;font-family:var(--kf-font-body)}.kf-drawer-session__brand{display:block;margin-bottom:var(--kf-space-sm);font-family:var(--kf-font-mono);font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--kf-sidebar-fg-muted)}.kf-drawer-session__card{box-sizing:border-box;display:flex;align-items:center;gap:var(--kf-space-sm);width:100%;padding:var(--kf-space-sm);border:1px solid var(--kf-header-border);border-radius:var(--kf-radius-md);background:color-mix(in srgb,var(--kf-header-fg) 4%,transparent)}.kf-drawer-session__card kf-avatar{--kf-avatar-ring: var(--kf-sidebar-divider)}.kf-drawer-session__card--interactive{font:inherit;color:inherit;cursor:pointer;text-align:left;transition:background var(--kf-motion-fast, .14s)}.kf-drawer-session__card--interactive:hover{background:color-mix(in srgb,var(--kf-header-fg) 9%,transparent)}.kf-drawer-session__card--interactive:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-drawer-session__card--interactive kf-icon{flex:none;color:color-mix(in srgb,var(--kf-sidebar-fg-muted) 70%,transparent)}.kf-drawer-session__card--collapsed{justify-content:center;width:40px;height:40px;padding:0;border-color:transparent;background:transparent}.kf-drawer-session__card--collapsed:hover{background:color-mix(in srgb,var(--kf-header-fg) 9%,transparent)}.kf-drawer-session__identity{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.kf-drawer-session__name{font-size:.9375rem;font-weight:600;color:var(--kf-header-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kf-drawer-session__detail,.kf-drawer-session__email{font-size:var(--kf-font-size-label);color:var(--kf-sidebar-fg-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}.kf-drawer-session__role{display:inline-block;margin-top:2px;padding:2px var(--kf-space-xs);border:1px solid color-mix(in srgb,var(--kf-header-fg) 16%,transparent);border-radius:var(--kf-radius-pill);font-family:var(--kf-font-mono);font-size:.625rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:color-mix(in srgb,var(--kf-header-fg) 85%,transparent);background:color-mix(in srgb,var(--kf-header-fg) 8%,transparent);width:fit-content}\n"] }]
329
+ }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], email: [{ type: i0.Input, args: [{ isSignal: true, alias: "email", required: false }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], avatarUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarUrl", required: false }] }], brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], cardClick: [{ type: i0.Output, args: ["cardClick"] }] } });
330
+
331
+ /**
332
+ * Rótulo del ambiente al pie de las pantallas de acceso: «Entorno de pruebas · QA». Sin
333
+ * `name` (producción) no dibuja nada ni ocupa lugar, así que el consumidor lo deja siempre
334
+ * en la plantilla y solo decide qué nombre le pasa.
335
+ *
336
+ * `prefix` es el texto fijo que antecede al nombre; el nombre va en el color del texto y en
337
+ * peso 600 para que se lea primero. El color sale de los tokens (`text-muted`, `text`).
338
+ *
339
+ * <kf-environment-tag [name]="environmentName" />
340
+ */
341
+ class EnvironmentTag {
342
+ /** Nombre del ambiente (`QA`, `Local`); vacío, `null` o solo espacios: no se muestra. */
343
+ name = input(null, /* @ts-ignore */
344
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
345
+ prefix = input('Entorno de pruebas', /* @ts-ignore */
346
+ ...(ngDevMode ? [{ debugName: "prefix" }] : /* istanbul ignore next */ []));
347
+ environment = computed(() => this.name()?.trim() || null, /* @ts-ignore */
348
+ ...(ngDevMode ? [{ debugName: "environment" }] : /* istanbul ignore next */ []));
349
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EnvironmentTag, deps: [], target: i0.ɵɵFactoryTarget.Component });
350
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EnvironmentTag, isStandalone: true, selector: "kf-environment-tag", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (environment(); as env) {\n <p class=\"kf-environment-tag\">\n {{ prefix() }} \u00B7 <strong class=\"kf-environment-tag__name\">{{ env }}</strong>\n </p>\n}\n", styles: [":host{display:block;font-family:var(--kf-font-body)}:host:empty{display:none}.kf-environment-tag{margin:0;color:var(--kf-color-text-muted);font-size:var(--kf-font-size-caption);line-height:1.5;letter-spacing:.02em;text-align:center;overflow-wrap:anywhere}.kf-environment-tag__name{color:var(--kf-color-text);font-weight:600}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
351
+ }
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EnvironmentTag, decorators: [{
353
+ type: Component,
354
+ args: [{ selector: 'kf-environment-tag', changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (environment(); as env) {\n <p class=\"kf-environment-tag\">\n {{ prefix() }} \u00B7 <strong class=\"kf-environment-tag__name\">{{ env }}</strong>\n </p>\n}\n", styles: [":host{display:block;font-family:var(--kf-font-body)}:host:empty{display:none}.kf-environment-tag{margin:0;color:var(--kf-color-text-muted);font-size:var(--kf-font-size-caption);line-height:1.5;letter-spacing:.02em;text-align:center;overflow-wrap:anywhere}.kf-environment-tag__name{color:var(--kf-color-text);font-weight:600}\n"] }]
355
+ }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }] } });
356
+
357
+ const PRESENTATIONS = {
358
+ corporate: {
359
+ label: 'Continuar con la cuenta corporativa',
360
+ busyLabel: 'Abriendo el acceso corporativo…',
361
+ appearance: 'primary',
362
+ },
363
+ microsoft: {
364
+ label: 'Continuar con Microsoft',
365
+ busyLabel: 'Abriendo Microsoft…',
366
+ appearance: 'neutral',
367
+ },
368
+ };
369
+ /**
370
+ * Botón de acceso por proveedor de identidad para la pantalla de login, de 44px de alto
371
+ * (`--kf-button-min-height` lo sube). Una sola configuración, `mark`, decide glifo, etiqueta y
372
+ * apariencia: `corporate` (default) es neutro de marca, con la llave sobre el color primario;
373
+ * `microsoft` usa el logo de cuatro cuadros sobre fondo claro.
374
+ *
375
+ * Diferencias con `kf-sso-button`: la apariencia primaria, el estado inactivo por
376
+ * `aria-disabled` (el botón sigue enfocable, así el motivo que apunta `describedBy` se lee),
377
+ * sin atenuar con opacidad (relleno neutro y texto atenuado), y una etiqueta propia mientras
378
+ * `loading` (con `aria-busy` y un aviso `role="status"`). Inactivo o cargando, el clic no emite
379
+ * `pressed` ni llega al host.
380
+ *
381
+ * <kf-idp-button mark="corporate" [loading]="opening()" [disabled]="!ready()"
382
+ * describedBy="idp-reason" (pressed)="signIn()" />
383
+ */
384
+ class IdpButton {
385
+ mark = input('corporate', /* @ts-ignore */
386
+ ...(ngDevMode ? [{ debugName: "mark" }] : /* istanbul ignore next */ []));
387
+ /** Reemplaza la etiqueta de `mark` (por ejemplo, para otro país o idioma). */
388
+ label = input(/* @ts-ignore */
389
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
390
+ /** Reemplaza la etiqueta de `mark` mientras `loading`. */
391
+ busyLabel = input(/* @ts-ignore */
392
+ ...(ngDevMode ? [undefined, { debugName: "busyLabel" }] : /* istanbul ignore next */ []));
393
+ /** Inactivo pero enfocable: el motivo llega por `describedBy`. */
394
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
395
+ /** Mientras se prepara la salida: spinner en el lugar del glifo y etiqueta de espera. */
396
+ loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
397
+ /** Id del elemento que explica el estado (`aria-describedby` del botón). */
398
+ describedBy = input(null, /* @ts-ignore */
399
+ ...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
400
+ type = input('button', /* @ts-ignore */
401
+ ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
402
+ pressed = output();
403
+ presentation = computed(() => PRESENTATIONS[this.mark()], /* @ts-ignore */
404
+ ...(ngDevMode ? [{ debugName: "presentation" }] : /* istanbul ignore next */ []));
405
+ appearance = computed(() => this.presentation().appearance, /* @ts-ignore */
406
+ ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
407
+ inactive = computed(() => this.disabled() || this.loading(), /* @ts-ignore */
408
+ ...(ngDevMode ? [{ debugName: "inactive" }] : /* istanbul ignore next */ []));
409
+ text = computed(() => this.label() ?? this.presentation().label, /* @ts-ignore */
410
+ ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
411
+ busyText = computed(() => this.busyLabel() ?? this.presentation().busyLabel, /* @ts-ignore */
412
+ ...(ngDevMode ? [{ debugName: "busyText" }] : /* istanbul ignore next */ []));
413
+ onClick(event) {
414
+ if (this.inactive()) {
415
+ event.preventDefault();
416
+ event.stopPropagation();
417
+ return;
418
+ }
419
+ this.pressed.emit();
420
+ }
421
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: IdpButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
422
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: IdpButton, isStandalone: true, selector: "kf-idp-button", inputs: { mark: { classPropertyName: "mark", publicName: "mark", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, busyLabel: { classPropertyName: "busyLabel", publicName: "busyLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, describedBy: { classPropertyName: "describedBy", publicName: "describedBy", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressed" }, ngImport: i0, template: "<button\n class=\"kf-idp-button\"\n [class.kf-idp-button--neutral]=\"appearance() === 'neutral'\"\n [attr.type]=\"type()\"\n [attr.aria-disabled]=\"inactive() ? 'true' : null\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"kf-idp-button__mark\" aria-hidden=\"true\">\n @if (loading()) {\n <kf-spinner size=\"sm\" [onDark]=\"appearance() === 'primary'\" />\n } @else if (mark() === 'microsoft') {\n <!-- Logo de Microsoft (4 cuadros) con sus colores de marca: no admite tinta del tema. -->\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 21 21\" focusable=\"false\">\n <rect x=\"1\" y=\"1\" width=\"9\" height=\"9\" fill=\"#f25022\" />\n <rect x=\"11\" y=\"1\" width=\"9\" height=\"9\" fill=\"#7fba00\" />\n <rect x=\"1\" y=\"11\" width=\"9\" height=\"9\" fill=\"#00a4ef\" />\n <rect x=\"11\" y=\"11\" width=\"9\" height=\"9\" fill=\"#ffb900\" />\n </svg>\n } @else {\n <kf-icon name=\"key-round\" size=\"md\" />\n }\n </span>\n <span class=\"kf-idp-button__label\">{{ loading() ? busyText() : text() }}</span>\n</button>\n<span class=\"kf-idp-button__live\" role=\"status\">{{ loading() ? busyText() : '' }}</span>\n", styles: [":host{position:relative;display:block}.kf-idp-button{display:flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;width:100%;min-height:var(--kf-button-min-height, var(--kf-hit-target-min, 44px));padding:2px var(--kf-space-md);border:1px solid var(--kf-color-primary);border-radius:var(--kf-radius-sm);background:var(--kf-color-primary);color:var(--kf-color-white);font:inherit;font-size:var(--kf-font-size-body-sm);font-weight:600;line-height:1.25;text-align:center;cursor:pointer;transition:background-color var(--kf-motion-fast) var(--kf-ease-standard),border-color var(--kf-motion-fast) var(--kf-ease-standard),transform var(--kf-motion-fast) var(--kf-ease-standard)}.kf-idp-button:hover:not([aria-disabled=true]){border-color:var(--kf-color-primary-hover);background:var(--kf-color-primary-hover)}.kf-idp-button:active:not([aria-disabled=true]){transform:scale(var(--kf-press-scale))}.kf-idp-button:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-idp-button--neutral{border-color:var(--kf-color-border-control);background:var(--kf-color-white);color:var(--kf-color-ink)}.kf-idp-button--neutral:hover:not([aria-disabled=true]){border-color:var(--kf-color-text-muted);background:var(--kf-color-surface)}.kf-idp-button[aria-disabled=true]:not([aria-busy=true]){border-color:transparent;background:var(--kf-color-gray-200);color:var(--kf-color-text-muted);cursor:not-allowed}.kf-idp-button[aria-busy=true]{cursor:progress}.kf-idp-button__mark{display:inline-grid;flex:none;place-items:center;width:20px;height:20px}.kf-idp-button__label{min-width:0;text-wrap:balance;overflow-wrap:anywhere}.kf-idp-button__live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "component", type: Spinner, selector: "kf-spinner", inputs: ["size", "label", "onDark"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
423
+ }
424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: IdpButton, decorators: [{
425
+ type: Component,
426
+ args: [{ selector: 'kf-idp-button', imports: [Icon, Spinner], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n class=\"kf-idp-button\"\n [class.kf-idp-button--neutral]=\"appearance() === 'neutral'\"\n [attr.type]=\"type()\"\n [attr.aria-disabled]=\"inactive() ? 'true' : null\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"kf-idp-button__mark\" aria-hidden=\"true\">\n @if (loading()) {\n <kf-spinner size=\"sm\" [onDark]=\"appearance() === 'primary'\" />\n } @else if (mark() === 'microsoft') {\n <!-- Logo de Microsoft (4 cuadros) con sus colores de marca: no admite tinta del tema. -->\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 21 21\" focusable=\"false\">\n <rect x=\"1\" y=\"1\" width=\"9\" height=\"9\" fill=\"#f25022\" />\n <rect x=\"11\" y=\"1\" width=\"9\" height=\"9\" fill=\"#7fba00\" />\n <rect x=\"1\" y=\"11\" width=\"9\" height=\"9\" fill=\"#00a4ef\" />\n <rect x=\"11\" y=\"11\" width=\"9\" height=\"9\" fill=\"#ffb900\" />\n </svg>\n } @else {\n <kf-icon name=\"key-round\" size=\"md\" />\n }\n </span>\n <span class=\"kf-idp-button__label\">{{ loading() ? busyText() : text() }}</span>\n</button>\n<span class=\"kf-idp-button__live\" role=\"status\">{{ loading() ? busyText() : '' }}</span>\n", styles: [":host{position:relative;display:block}.kf-idp-button{display:flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;width:100%;min-height:var(--kf-button-min-height, var(--kf-hit-target-min, 44px));padding:2px var(--kf-space-md);border:1px solid var(--kf-color-primary);border-radius:var(--kf-radius-sm);background:var(--kf-color-primary);color:var(--kf-color-white);font:inherit;font-size:var(--kf-font-size-body-sm);font-weight:600;line-height:1.25;text-align:center;cursor:pointer;transition:background-color var(--kf-motion-fast) var(--kf-ease-standard),border-color var(--kf-motion-fast) var(--kf-ease-standard),transform var(--kf-motion-fast) var(--kf-ease-standard)}.kf-idp-button:hover:not([aria-disabled=true]){border-color:var(--kf-color-primary-hover);background:var(--kf-color-primary-hover)}.kf-idp-button:active:not([aria-disabled=true]){transform:scale(var(--kf-press-scale))}.kf-idp-button:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-idp-button--neutral{border-color:var(--kf-color-border-control);background:var(--kf-color-white);color:var(--kf-color-ink)}.kf-idp-button--neutral:hover:not([aria-disabled=true]){border-color:var(--kf-color-text-muted);background:var(--kf-color-surface)}.kf-idp-button[aria-disabled=true]:not([aria-busy=true]){border-color:transparent;background:var(--kf-color-gray-200);color:var(--kf-color-text-muted);cursor:not-allowed}.kf-idp-button[aria-busy=true]{cursor:progress}.kf-idp-button__mark{display:inline-grid;flex:none;place-items:center;width:20px;height:20px}.kf-idp-button__label{min-width:0;text-wrap:balance;overflow-wrap:anywhere}.kf-idp-button__live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"] }]
427
+ }], propDecorators: { mark: [{ type: i0.Input, args: [{ isSignal: true, alias: "mark", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], busyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "busyLabel", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], describedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "describedBy", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], pressed: [{ type: i0.Output, args: ["pressed"] }] } });
265
428
 
266
429
  const PROVIDER_CONFIG = {
267
430
  microsoft: { label: 'Continuar con Microsoft' },
@@ -321,10 +484,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
321
484
  * Public API Surface of ui/auth — entry point secundario, `@kaufmann-lab/ui/auth`.
322
485
  *
323
486
  * Piezas del flujo de login y de la identidad de sesión: el esqueleto de la
324
- * pantalla de login (`AuthLayout` + su slot `AuthLayoutSso`), el botón de
325
- * acceso por proveedor (`SsoButton`) y los bloques de sesión que se proyectan
326
- * en un `kf-drawer` (`DrawerSession`, `DrawerLogout`). Ver `ENTRY-POINTS.md`
327
- * en la raíz del repo para el criterio.
487
+ * pantalla de login (`AuthLayout` + su slot `AuthLayoutSso`), los botones de
488
+ * acceso por proveedor (`SsoButton`, `IdpButton`), el rótulo del ambiente
489
+ * (`EnvironmentTag`) y los bloques de sesión que se proyectan en un `kf-drawer`
490
+ * (`DrawerSession`, `DrawerLogout`). Ver `ENTRY-POINTS.md` en la raíz del repo
491
+ * para el criterio.
328
492
  *
329
493
  * `AdminBadge` NO vive acá aunque temáticamente encajaría: `PortalHeader`
330
494
  * (`@kaufmann-lab/ui/core`) lo compone, y un `AdminBadge` en `/auth` (que
@@ -348,5 +512,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
348
512
  * Generated bundle index. Do not edit.
349
513
  */
350
514
 
351
- export { AuthLayout, AuthLayoutNote, AuthLayoutSso, DrawerLogout, DrawerSession, SsoButton };
515
+ export { AuthLayout, AuthLayoutNote, AuthLayoutSso, DrawerLogout, DrawerSession, EnvironmentTag, IdpButton, SsoButton };
352
516
  //# sourceMappingURL=kaufmann-lab-ui-auth.mjs.map