@kaufmann-lab/ui 0.1.36 → 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
@@ -71,8 +71,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
71
71
  * </form>
72
72
  * </kf-auth-layout>
73
73
  *
74
- * `backgroundVariant` controla la superficie del panel derecho:
75
- * `'plain'` (fondo liso, comportamiento histórico), `'gradient'` (default —
74
+ * `backgroundVariant` controla la superficie del layout:
75
+ * `'plain'` (plano: panel de marca de un solo color, fondo liso a la derecha y
76
+ * tarjeta sin sombra), `'gradient'` (default —
76
77
  * degradé sutil derivado de `--kf-color-primary`/`--kf-color-surface` vía
77
78
  * `color-mix()`, ningún color hardcodeado) o `'pattern'` (el mismo degradé
78
79
  * más una textura de puntos, también resuelta con tokens). Los tres se
@@ -114,11 +115,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
114
115
  * <kf-button type="submit">Ingresar</kf-button>
115
116
  * </form>
116
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>
117
141
  */
118
142
  class AuthLayout {
119
143
  /** Nombre de marca/portal — wordmark de respaldo si no hay logo, y `alt` de ambos logos. */
120
144
  brand = input.required(/* @ts-ignore */
121
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 */ []));
122
167
  /** Logo en blanco para el panel oscuro de desktop. Sin esto, se muestra `brand()` como wordmark. */
123
168
  brandLogoSrc = input(/* @ts-ignore */
124
169
  ...(ngDevMode ? [undefined, { debugName: "brandLogoSrc" }] : /* istanbul ignore next */ []));
@@ -128,9 +173,21 @@ class AuthLayout {
128
173
  /** Logo compacto para mobile, sobre fondo claro. Sin esto, reutiliza `brandLogoSrc`. */
129
174
  brandLogoMobileSrc = input(/* @ts-ignore */
130
175
  ...(ngDevMode ? [undefined, { debugName: "brandLogoMobileSrc" }] : /* istanbul ignore next */ []));
131
- /** Superficie del panel derecho. Default `'gradient'`; `'plain'` preserva el fondo liso histórico. */
176
+ /** Superficie del layout. Default `'gradient'`; `'plain'` es la variante plana, sin degradados ni sombra de tarjeta. */
132
177
  backgroundVariant = input('gradient', /* @ts-ignore */
133
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 });
134
191
  /** Envuelve el contenido proyectado con la superficie de `kf-card` (fondo, borde, sombra). Default `false` — preserva el comportamiento histórico. */
135
192
  card = input(false, { ...(ngDevMode ? { debugName: "card" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
136
193
  /** Título del encabezado dentro de la card (`title-lg`). Sin este input, no se renderiza ningún encabezado. */
@@ -146,14 +203,15 @@ class AuthLayout {
146
203
  noteContent = contentChild(AuthLayoutNote, /* @ts-ignore */
147
204
  ...(ngDevMode ? [{ debugName: "noteContent" }] : /* istanbul ignore next */ []));
148
205
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: AuthLayout, deps: [], target: i0.ɵɵFactoryTarget.Component });
149
- 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)}.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)}.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: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"] }] });
150
207
  }
151
208
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: AuthLayout, decorators: [{
152
209
  type: Component,
153
- args: [{ selector: 'kf-auth-layout', imports: [Divider, Text], host: {
210
+ args: [{ selector: 'kf-auth-layout', imports: [BrandLogo, Divider, Text], host: {
154
211
  '[attr.data-background]': 'backgroundVariant()',
155
- }, 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)}.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)}.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: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"] }]
156
- }], 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 }] }] } });
157
215
 
158
216
  /**
159
217
  * Botón de cerrar sesión, pensado para proyectarse dentro de
@@ -200,6 +258,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
200
258
  * brand opcional arriba. Solo identidad — el logout vive aparte, en
201
259
  * `kf-drawer-logout`.
202
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
+ *
203
266
  * `collapsed` oculta brand/nombre/email y deja solo el avatar (para un
204
267
  * `kf-sidebar-shell` colapsado). `interactive` convierte la tarjeta en un
205
268
  * botón real que emite `cardClick`, para cuando la identidad es el
@@ -217,6 +280,9 @@ class DrawerSession {
217
280
  ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
218
281
  email = input('', /* @ts-ignore */
219
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 */ []));
220
286
  /**
221
287
  * Etiqueta de rol o función del usuario dentro de la sesión (ej.
222
288
  * "Coordinador", "Supervisor"). Se muestra como badge dentro de la
@@ -255,26 +321,127 @@ class DrawerSession {
255
321
  }, /* @ts-ignore */
256
322
  ...(ngDevMode ? [{ debugName: "displayInitials" }] : /* istanbul ignore next */ []));
257
323
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: DrawerSession, deps: [], target: i0.ɵɵFactoryTarget.Component });
258
- 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"] }] });
259
325
  }
260
326
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: DrawerSession, decorators: [{
261
327
  type: Component,
262
- 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"] }]
263
- }], 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"] }] } });
264
428
 
265
429
  const PROVIDER_CONFIG = {
266
430
  microsoft: { label: 'Continuar con Microsoft' },
431
+ corporate: { label: 'Continuar con la cuenta corporativa', icon: 'shield-check' },
267
432
  };
268
433
  /**
269
434
  * Botón de inicio de sesión vía SSO corporativo — pensado como pieza suelta,
270
435
  * no acoplada a `kf-auth-layout`: cualquier consumidor puede usarlo solo,
271
436
  * dentro o fuera del slot `[sso]` de `AuthLayout`.
272
437
  *
273
- * `provider` resuelve copy y glyph — hoy solo `'microsoft'` (el método
274
- * principal de acceso del ecosistema, cuenta corporativa de Grupo Kaufmann),
275
- * con la puerta abierta a sumar otros a futuro sin romper la API existente.
438
+ * `provider` resuelve copy y glyph: `'microsoft'` (default, el método
439
+ * principal de acceso del ecosistema, cuenta corporativa de Grupo Kaufmann) y
440
+ * `'corporate'`, neutro y sin marca de terceros, con el escudo con check de
441
+ * `kf-icon` en el color del texto. La puerta sigue abierta a sumar otros sin
442
+ * romper la API existente.
276
443
  *
277
- * El glyph es el ícono GENÉRICO de 4 cuadrados de colores que Microsoft
444
+ * El glyph de `microsoft` es el ícono GENÉRICO de 4 cuadrados de colores que Microsoft
278
445
  * publica en sus propias guías de marca para botones de terceros ("Sign in
279
446
  * with Microsoft") — nunca el logotipo/wordmark oficial completo. No vive en
280
447
  * el sprite de `kf-icon` (`icon-sprite.ts`) a propósito: ese catálogo es
@@ -306,21 +473,22 @@ class SsoButton {
306
473
  config = computed(() => PROVIDER_CONFIG[this.provider()], /* @ts-ignore */
307
474
  ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
308
475
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SsoButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
309
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: SsoButton, isStandalone: true, selector: "kf-sso-button", inputs: { provider: { classPropertyName: "provider", publicName: "provider", 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 }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n class=\"kf-sso-button\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.aria-label]=\"config().label\"\n>\n @if (loading()) {\n <kf-spinner size=\"sm\" />\n } @else {\n <!--\n \u00CDcono gen\u00E9rico \"Sign in with Microsoft\" de 4 cuadrados de colores\n (rojo, verde, azul, amarillo) \u2014 no el logotipo/wordmark oficial.\n Ver justificaci\u00F3n completa en el JSDoc de SsoButton.ts.\n -->\n <svg\n class=\"kf-sso-button__glyph\"\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 18 18\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <rect x=\"0\" y=\"0\" width=\"8.5\" height=\"8.5\" fill=\"#f25022\" />\n <rect x=\"9.5\" y=\"0\" width=\"8.5\" height=\"8.5\" fill=\"#7fba00\" />\n <rect x=\"0\" y=\"9.5\" width=\"8.5\" height=\"8.5\" fill=\"#00a4ef\" />\n <rect x=\"9.5\" y=\"9.5\" width=\"8.5\" height=\"8.5\" fill=\"#ffb900\" />\n </svg>\n }\n <span class=\"kf-sso-button__label\">\n <ng-content>{{ config().label }}</ng-content>\n </span>\n</button>\n", styles: [":host{display:block}.kf-sso-button{display:flex;align-items:center;justify-content:center;gap:var(--kf-space-sm);width:100%;min-height:var(--kf-control-min-height, auto);font:inherit;font-weight:600;padding:var(--kf-space-sm) var(--kf-space-md);border:1px solid var(--kf-color-border-strong);border-radius:var(--kf-radius-sm);background:var(--kf-color-white);color:var(--kf-color-text);cursor:pointer;transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s)}.kf-sso-button:hover:not(:disabled){background:var(--kf-color-surface);border-color:var(--kf-color-text-muted)}.kf-sso-button:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-sso-button:disabled{opacity:.5;cursor:not-allowed}.kf-sso-button__glyph{flex:none}.kf-sso-button__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "component", type: Spinner, selector: "kf-spinner", inputs: ["size", "label", "onDark"] }] });
476
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: SsoButton, isStandalone: true, selector: "kf-sso-button", inputs: { provider: { classPropertyName: "provider", publicName: "provider", 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 }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n class=\"kf-sso-button\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.aria-label]=\"config().label\"\n>\n @if (loading()) {\n <kf-spinner size=\"sm\" />\n } @else if (config().icon; as glyph) {\n <kf-icon class=\"kf-sso-button__glyph\" [name]=\"glyph\" size=\"md\" />\n } @else {\n <!--\n \u00CDcono gen\u00E9rico \"Sign in with Microsoft\" de 4 cuadrados de colores\n (rojo, verde, azul, amarillo) \u2014 no el logotipo/wordmark oficial.\n Ver justificaci\u00F3n completa en el JSDoc de SsoButton.ts.\n -->\n <svg\n class=\"kf-sso-button__glyph\"\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 18 18\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <rect x=\"0\" y=\"0\" width=\"8.5\" height=\"8.5\" fill=\"#f25022\" />\n <rect x=\"9.5\" y=\"0\" width=\"8.5\" height=\"8.5\" fill=\"#7fba00\" />\n <rect x=\"0\" y=\"9.5\" width=\"8.5\" height=\"8.5\" fill=\"#00a4ef\" />\n <rect x=\"9.5\" y=\"9.5\" width=\"8.5\" height=\"8.5\" fill=\"#ffb900\" />\n </svg>\n }\n <span class=\"kf-sso-button__label\">\n <ng-content>{{ config().label }}</ng-content>\n </span>\n</button>\n", styles: [":host{display:block}.kf-sso-button{display:flex;align-items:center;justify-content:center;gap:var(--kf-space-sm);width:100%;min-height:var(--kf-control-min-height, auto);font:inherit;font-weight:600;padding:var(--kf-space-sm) var(--kf-space-md);border:1px solid var(--kf-color-border-strong);border-radius:var(--kf-radius-sm);background:var(--kf-color-white);color:var(--kf-color-text);cursor:pointer;transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s)}.kf-sso-button:hover:not(:disabled){background:var(--kf-color-surface);border-color:var(--kf-color-text-muted)}.kf-sso-button:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-sso-button:disabled{opacity:.5;cursor:not-allowed}.kf-sso-button__glyph{flex:none}.kf-sso-button__label{min-width:0;text-align:center;text-wrap:balance;overflow-wrap:anywhere}\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"] }] });
310
477
  }
311
478
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SsoButton, decorators: [{
312
479
  type: Component,
313
- args: [{ selector: 'kf-sso-button', imports: [Spinner], template: "<button\n class=\"kf-sso-button\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.aria-label]=\"config().label\"\n>\n @if (loading()) {\n <kf-spinner size=\"sm\" />\n } @else {\n <!--\n \u00CDcono gen\u00E9rico \"Sign in with Microsoft\" de 4 cuadrados de colores\n (rojo, verde, azul, amarillo) \u2014 no el logotipo/wordmark oficial.\n Ver justificaci\u00F3n completa en el JSDoc de SsoButton.ts.\n -->\n <svg\n class=\"kf-sso-button__glyph\"\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 18 18\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <rect x=\"0\" y=\"0\" width=\"8.5\" height=\"8.5\" fill=\"#f25022\" />\n <rect x=\"9.5\" y=\"0\" width=\"8.5\" height=\"8.5\" fill=\"#7fba00\" />\n <rect x=\"0\" y=\"9.5\" width=\"8.5\" height=\"8.5\" fill=\"#00a4ef\" />\n <rect x=\"9.5\" y=\"9.5\" width=\"8.5\" height=\"8.5\" fill=\"#ffb900\" />\n </svg>\n }\n <span class=\"kf-sso-button__label\">\n <ng-content>{{ config().label }}</ng-content>\n </span>\n</button>\n", styles: [":host{display:block}.kf-sso-button{display:flex;align-items:center;justify-content:center;gap:var(--kf-space-sm);width:100%;min-height:var(--kf-control-min-height, auto);font:inherit;font-weight:600;padding:var(--kf-space-sm) var(--kf-space-md);border:1px solid var(--kf-color-border-strong);border-radius:var(--kf-radius-sm);background:var(--kf-color-white);color:var(--kf-color-text);cursor:pointer;transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s)}.kf-sso-button:hover:not(:disabled){background:var(--kf-color-surface);border-color:var(--kf-color-text-muted)}.kf-sso-button:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-sso-button:disabled{opacity:.5;cursor:not-allowed}.kf-sso-button__glyph{flex:none}.kf-sso-button__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
480
+ args: [{ selector: 'kf-sso-button', imports: [Icon, Spinner], template: "<button\n class=\"kf-sso-button\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.aria-label]=\"config().label\"\n>\n @if (loading()) {\n <kf-spinner size=\"sm\" />\n } @else if (config().icon; as glyph) {\n <kf-icon class=\"kf-sso-button__glyph\" [name]=\"glyph\" size=\"md\" />\n } @else {\n <!--\n \u00CDcono gen\u00E9rico \"Sign in with Microsoft\" de 4 cuadrados de colores\n (rojo, verde, azul, amarillo) \u2014 no el logotipo/wordmark oficial.\n Ver justificaci\u00F3n completa en el JSDoc de SsoButton.ts.\n -->\n <svg\n class=\"kf-sso-button__glyph\"\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 18 18\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <rect x=\"0\" y=\"0\" width=\"8.5\" height=\"8.5\" fill=\"#f25022\" />\n <rect x=\"9.5\" y=\"0\" width=\"8.5\" height=\"8.5\" fill=\"#7fba00\" />\n <rect x=\"0\" y=\"9.5\" width=\"8.5\" height=\"8.5\" fill=\"#00a4ef\" />\n <rect x=\"9.5\" y=\"9.5\" width=\"8.5\" height=\"8.5\" fill=\"#ffb900\" />\n </svg>\n }\n <span class=\"kf-sso-button__label\">\n <ng-content>{{ config().label }}</ng-content>\n </span>\n</button>\n", styles: [":host{display:block}.kf-sso-button{display:flex;align-items:center;justify-content:center;gap:var(--kf-space-sm);width:100%;min-height:var(--kf-control-min-height, auto);font:inherit;font-weight:600;padding:var(--kf-space-sm) var(--kf-space-md);border:1px solid var(--kf-color-border-strong);border-radius:var(--kf-radius-sm);background:var(--kf-color-white);color:var(--kf-color-text);cursor:pointer;transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s)}.kf-sso-button:hover:not(:disabled){background:var(--kf-color-surface);border-color:var(--kf-color-text-muted)}.kf-sso-button:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-sso-button:disabled{opacity:.5;cursor:not-allowed}.kf-sso-button__glyph{flex:none}.kf-sso-button__label{min-width:0;text-align:center;text-wrap:balance;overflow-wrap:anywhere}\n"] }]
314
481
  }], propDecorators: { provider: [{ type: i0.Input, args: [{ isSignal: true, alias: "provider", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
315
482
 
316
483
  /*
317
484
  * Public API Surface of ui/auth — entry point secundario, `@kaufmann-lab/ui/auth`.
318
485
  *
319
486
  * Piezas del flujo de login y de la identidad de sesión: el esqueleto de la
320
- * pantalla de login (`AuthLayout` + su slot `AuthLayoutSso`), el botón de
321
- * acceso por proveedor (`SsoButton`) y los bloques de sesión que se proyectan
322
- * en un `kf-drawer` (`DrawerSession`, `DrawerLogout`). Ver `ENTRY-POINTS.md`
323
- * 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.
324
492
  *
325
493
  * `AdminBadge` NO vive acá aunque temáticamente encajaría: `PortalHeader`
326
494
  * (`@kaufmann-lab/ui/core`) lo compone, y un `AdminBadge` en `/auth` (que
@@ -344,5 +512,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
344
512
  * Generated bundle index. Do not edit.
345
513
  */
346
514
 
347
- export { AuthLayout, AuthLayoutNote, AuthLayoutSso, DrawerLogout, DrawerSession, SsoButton };
515
+ export { AuthLayout, AuthLayoutNote, AuthLayoutSso, DrawerLogout, DrawerSession, EnvironmentTag, IdpButton, SsoButton };
348
516
  //# sourceMappingURL=kaufmann-lab-ui-auth.mjs.map