@kaufmann-lab/ui 0.1.43 → 0.1.44
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.
|
@@ -16022,10 +16022,15 @@ const MOBILE_STEP_DOWN = {
|
|
|
16022
16022
|
* `title-sm`, el subtítulo y la línea desaparecen.
|
|
16023
16023
|
*
|
|
16024
16024
|
* Con `sticky`, pasado el alto del encabezado queda fijo arriba (`--kf-page-header-top`, default
|
|
16025
|
-
* `0px`) en una versión compacta de
|
|
16026
|
-
* misma fila, las acciones y la frescura compacta; solo se
|
|
16027
|
-
* elevación mientras flota (`data-stuck`). Necesita que el
|
|
16028
|
-
* el contenido que se desplaza.
|
|
16025
|
+
* `0px`) en una versión compacta de 56px (`--kf-page-header-stuck-height`): el título en una
|
|
16026
|
+
* línea, las pestañas (de 32px) en la misma fila, las acciones y la frescura compacta; solo se
|
|
16027
|
+
* oculta el subtítulo. Tiene línea fina y elevación mientras flota (`data-stuck`). Necesita que el
|
|
16028
|
+
* contenedor del encabezado abarque todo el contenido que se desplaza.
|
|
16029
|
+
*
|
|
16030
|
+
* La barra compacta deja en el flujo el alto que el encabezado completo ocupaba: al fijarse o
|
|
16031
|
+
* soltarse, el contenido de abajo no se mueve ni cambia el alto del documento. Sin esa reserva, el
|
|
16032
|
+
* cambio de alto lo corrige el ancla de desplazamiento del navegador y la página salta o vuelve al
|
|
16033
|
+
* tope cerca del umbral.
|
|
16029
16034
|
*
|
|
16030
16035
|
* <kf-page-header layout="v4" sticky title="Divisiones" subtitle="Configuración de las 4 divisiones">
|
|
16031
16036
|
* <kf-button actions size="sm">Nueva división</kf-button>
|
|
@@ -16053,6 +16058,13 @@ class PageHeader {
|
|
|
16053
16058
|
isMobile = matchMediaSignal('(max-width: 900px)');
|
|
16054
16059
|
stuck = signal$1(false, /* @ts-ignore */
|
|
16055
16060
|
...(ngDevMode ? [{ debugName: "stuck" }] : /* istanbul ignore next */ []));
|
|
16061
|
+
/**
|
|
16062
|
+
* Alto del encabezado completo (sin fijar). Lo lee el CSS de la barra compacta para dejar en el flujo la
|
|
16063
|
+
* diferencia (`margin-block-end`). Mientras está fija solo se conoce el alto compacto, así que se conserva
|
|
16064
|
+
* el último medido.
|
|
16065
|
+
*/
|
|
16066
|
+
naturalHeight = signal$1(null, /* @ts-ignore */
|
|
16067
|
+
...(ngDevMode ? [{ debugName: "naturalHeight" }] : /* istanbul ignore next */ []));
|
|
16056
16068
|
host = inject(ElementRef);
|
|
16057
16069
|
resolvedTitleVariant = computed(() => {
|
|
16058
16070
|
if (this.density() === 'compact') {
|
|
@@ -16087,9 +16099,23 @@ class PageHeader {
|
|
|
16087
16099
|
});
|
|
16088
16100
|
});
|
|
16089
16101
|
destroyRef.onDestroy(() => this.stuck.set(false));
|
|
16102
|
+
afterNextRender(() => {
|
|
16103
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
16104
|
+
return;
|
|
16105
|
+
}
|
|
16106
|
+
const el = this.host.nativeElement;
|
|
16107
|
+
const observer = new ResizeObserver(([entry]) => {
|
|
16108
|
+
// Con la barra fija el alto observado es el compacto: no es el que hay que reservar.
|
|
16109
|
+
if (!this.stuck() && entry) {
|
|
16110
|
+
this.naturalHeight.set(entry.borderBoxSize?.[0]?.blockSize ?? el.offsetHeight);
|
|
16111
|
+
}
|
|
16112
|
+
});
|
|
16113
|
+
observer.observe(el);
|
|
16114
|
+
destroyRef.onDestroy(() => observer.disconnect());
|
|
16115
|
+
});
|
|
16090
16116
|
}
|
|
16091
16117
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: PageHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16092
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: PageHeader, isStandalone: true, selector: "kf-page-header", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-layout": "layout()", "attr.data-density": "density()", "attr.data-sticky": "layout() === 'v4' && sticky() ? '' : null", "attr.data-stuck": "stuck() ? '' : null" } }, ngImport: i0, template: "<div class=\"kf-page-header__row\">\n @if (icon(); as iconName) {\n @if (!compact()) {\n <span class=\"kf-page-header__icon\">\n <kf-icon [name]=\"iconName\" size=\"lg\" />\n </span>\n }\n }\n\n <div class=\"kf-page-header__heading\">\n <kf-text\n as=\"h1\"\n class=\"kf-page-header__title\"\n [variant]=\"resolvedTitleVariant()\"\n [attr.title]=\"layout() === 'v4' ? title() : null\"\n >\n {{ title() }}\n </kf-text>\n @if (subtitle() && !compact()) {\n <p class=\"kf-page-header__subtitle\" [attr.title]=\"layout() === 'v4' ? subtitle() : null\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n <div class=\"kf-page-header__actions\">\n <ng-content select=\"[actions]\" />\n </div>\n <span class=\"kf-page-header__divider\" aria-hidden=\"true\"></span>\n <div class=\"kf-page-header__freshness\">\n <ng-content select=\"[freshness]\" />\n </div>\n</div>\n<div class=\"kf-page-header__tabs\">\n <ng-content select=\"[tabs]\" />\n</div>\n", styles: [":host{display:block;font-family:var(--kf-font-body);padding-bottom:var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-page-header__row{display:flex;align-items:center;gap:var(--kf-space-md)}.kf-page-header__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border-radius:var(--kf-radius-md);background:var(--kf-color-primary-soft);color:var(--kf-color-primary);border:1px solid var(--kf-color-border)}.kf-page-header__heading{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.kf-page-header__title{line-height:1.2}.kf-page-header__subtitle{margin:0;font-size:.9375rem;color:var(--kf-color-text-muted)}.kf-page-header__actions{flex:none;display:flex;align-items:center;gap:var(--kf-space-sm)}@media(max-width:900px){.kf-page-header__icon{width:40px;height:40px}.kf-page-header__subtitle{font-size:var(--kf-font-size-label)}}.kf-page-header__actions:empty,.kf-page-header__freshness:empty,.kf-page-header__tabs:empty,.kf-page-header__divider{display:none}:host([data-density=compact]) .kf-page-header__heading{gap:0}:host([data-layout=v4]){container:kf-page-header/inline-size;display:flex;flex-direction:column;gap:var(--kf-space-md);padding-bottom:0;border-bottom:none}:host([data-layout=v4]) .kf-page-header__row{gap:var(--kf-page-header-gap, 12px);min-height:40px;min-width:0}:host([data-layout=v4]) .kf-page-header__heading{gap:4px}:host([data-layout=v4]) .kf-page-header__title{display:block;min-width:0;line-height:1.2}:host([data-layout=v4]) .kf-page-header__title ::ng-deep>h1{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([data-layout=v4]) .kf-page-header__subtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--kf-font-size-body-sm);line-height:20px}:host([data-layout=v4]) .kf-page-header__actions{justify-content:flex-end}:host([data-layout=v4]) .kf-page-header__freshness{flex:none;display:inline-flex;justify-content:flex-end;--kf-data-freshness-prefix: inline}:host([data-layout=v4]) .kf-page-header__actions:not(:empty)+.kf-page-header__divider:has(+.kf-page-header__freshness:not(:empty)){display:block;flex:none;align-self:center;width:1px;height:24px;background:var(--kf-color-border)}:host([data-layout=v4]) .kf-page-header__tabs{min-width:0}@container kf-page-header (max-width: 799.98px){:host([data-layout=v4]) .kf-page-header__freshness{--kf-data-freshness-prefix: none}}@container kf-page-header (max-width: 599.98px){:host([data-layout=v4]){gap:var(--kf-space-sm)}:host([data-layout=v4]) .kf-page-header__row{--kf-page-header-gap: 8px;flex-wrap:wrap;row-gap:var(--kf-space-sm)}:host([data-layout=v4]) .kf-page-header__heading{flex:1 1 7.5rem;min-width:7.5rem}:host([data-layout=v4]) .kf-page-header__actions,:host([data-layout=v4]) .kf-page-header__freshness{margin-inline-start:auto}:host([data-layout=v4]) .kf-page-header__subtitle,:host([data-layout=v4]) .kf-page-header__divider{display:none!important}:host([data-layout=v4]) .kf-page-header__title ::ng-deep>h1{font-size:var(--kf-font-size-title-sm)}}:host([data-layout=v4][data-sticky]){position:sticky;top:calc(var(--kf-page-header-top, 0px) - 1px);z-index:var(--kf-page-header-z, 30)}:host([data-layout=v4][data-stuck]){flex-direction:row;align-items:center;gap:var(--kf-page-header-gap, 12px);margin-inline:calc(-1 * var(--kf-page-header-bleed, 0px));padding:8px var(--kf-page-header-bleed, 0px);background:var(--kf-color-white);border-bottom:1px solid var(--kf-color-border);box-shadow:var(--kf-elevation-raised);--kf-tabs-tab-height: 32px;--kf-tabs-line-width: 0px;--kf-data-freshness-prefix: none}:host([data-layout=v4][data-stuck]) .kf-page-header__row{display:contents}:host([data-layout=v4][data-stuck]) .kf-page-header__icon{order:0}:host([data-layout=v4][data-stuck]) .kf-page-header__heading{order:1;flex:0 1 auto;max-width:32%}:host([data-layout=v4][data-stuck]) .kf-page-header__subtitle{display:none}:host([data-layout=v4][data-stuck]) .kf-page-header__tabs{order:2;flex:1 1 0;align-self:center}:host([data-layout=v4][data-stuck]) .kf-page-header__actions{order:3}:host([data-layout=v4][data-stuck]) .kf-page-header__divider{order:4}:host([data-layout=v4][data-stuck]) .kf-page-header__freshness{order:5;--kf-data-freshness-prefix: none}:host([data-layout=v4][data-stuck]) .kf-page-header__title ::ng-deep>h1{font-size:var(--kf-font-size-body)}@container kf-page-header (max-width: 599.98px){:host([data-layout=v4][data-stuck]) .kf-page-header__heading{display:none}:host([data-layout=v4][data-stuck]) .kf-page-header__freshness{--kf-data-freshness-text: none}}:host([data-layout=v4][data-stuck]) .kf-page-header__tabs{min-width:0}@media(prefers-reduced-motion:no-preference){:host([data-layout=v4][data-sticky]){transition:box-shadow var(--kf-motion-base, .22s) var(--kf-ease-standard, ease)}}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "component", type: Text, selector: "kf-text", inputs: ["as", "variant", "tone"] }] });
|
|
16118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: PageHeader, isStandalone: true, selector: "kf-page-header", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-layout": "layout()", "attr.data-density": "density()", "attr.data-sticky": "layout() === 'v4' && sticky() ? '' : null", "attr.data-stuck": "stuck() ? '' : null", "style.--kf-page-header-natural.px": "naturalHeight()" } }, ngImport: i0, template: "<div class=\"kf-page-header__row\">\n @if (icon(); as iconName) {\n @if (!compact()) {\n <span class=\"kf-page-header__icon\">\n <kf-icon [name]=\"iconName\" size=\"lg\" />\n </span>\n }\n }\n\n <div class=\"kf-page-header__heading\">\n <kf-text\n as=\"h1\"\n class=\"kf-page-header__title\"\n [variant]=\"resolvedTitleVariant()\"\n [attr.title]=\"layout() === 'v4' ? title() : null\"\n >\n {{ title() }}\n </kf-text>\n @if (subtitle() && !compact()) {\n <p class=\"kf-page-header__subtitle\" [attr.title]=\"layout() === 'v4' ? subtitle() : null\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n <div class=\"kf-page-header__actions\">\n <ng-content select=\"[actions]\" />\n </div>\n <span class=\"kf-page-header__divider\" aria-hidden=\"true\"></span>\n <div class=\"kf-page-header__freshness\">\n <ng-content select=\"[freshness]\" />\n </div>\n</div>\n<div class=\"kf-page-header__tabs\">\n <ng-content select=\"[tabs]\" />\n</div>\n", styles: [":host{display:block;font-family:var(--kf-font-body);padding-bottom:var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-page-header__row{display:flex;align-items:center;gap:var(--kf-space-md)}.kf-page-header__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border-radius:var(--kf-radius-md);background:var(--kf-color-primary-soft);color:var(--kf-color-primary);border:1px solid var(--kf-color-border)}.kf-page-header__heading{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.kf-page-header__title{line-height:1.2}.kf-page-header__subtitle{margin:0;font-size:.9375rem;color:var(--kf-color-text-muted)}.kf-page-header__actions{flex:none;display:flex;align-items:center;gap:var(--kf-space-sm)}@media(max-width:900px){.kf-page-header__icon{width:40px;height:40px}.kf-page-header__subtitle{font-size:var(--kf-font-size-label)}}.kf-page-header__actions:empty,.kf-page-header__freshness:empty,.kf-page-header__tabs:empty,.kf-page-header__divider{display:none}:host([data-density=compact]) .kf-page-header__heading{gap:0}:host([data-layout=v4]){container:kf-page-header/inline-size;display:flex;flex-direction:column;gap:var(--kf-space-md);padding-bottom:0;border-bottom:none}:host([data-layout=v4]) .kf-page-header__row{gap:var(--kf-page-header-gap, 12px);min-height:40px;min-width:0}:host([data-layout=v4]) .kf-page-header__heading{gap:4px}:host([data-layout=v4]) .kf-page-header__title{display:block;min-width:0;line-height:1.2}:host([data-layout=v4]) .kf-page-header__title ::ng-deep>h1{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([data-layout=v4]) .kf-page-header__subtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--kf-font-size-body-sm);line-height:20px}:host([data-layout=v4]) .kf-page-header__actions{justify-content:flex-end}:host([data-layout=v4]) .kf-page-header__freshness{flex:none;display:inline-flex;justify-content:flex-end;--kf-data-freshness-prefix: inline}:host([data-layout=v4]) .kf-page-header__actions:not(:empty)+.kf-page-header__divider:has(+.kf-page-header__freshness:not(:empty)){display:block;flex:none;align-self:center;width:1px;height:24px;background:var(--kf-color-border)}:host([data-layout=v4]) .kf-page-header__tabs{min-width:0}@container kf-page-header (max-width: 799.98px){:host([data-layout=v4]) .kf-page-header__freshness{--kf-data-freshness-prefix: none}}@container kf-page-header (max-width: 599.98px){:host([data-layout=v4]){gap:var(--kf-space-sm)}:host([data-layout=v4]) .kf-page-header__row{--kf-page-header-gap: 8px;flex-wrap:wrap;row-gap:var(--kf-space-sm)}:host([data-layout=v4]) .kf-page-header__heading{flex:1 1 7.5rem;min-width:7.5rem}:host([data-layout=v4]) .kf-page-header__actions,:host([data-layout=v4]) .kf-page-header__freshness{margin-inline-start:auto}:host([data-layout=v4]) .kf-page-header__subtitle,:host([data-layout=v4]) .kf-page-header__divider{display:none!important}:host([data-layout=v4]) .kf-page-header__title ::ng-deep>h1{font-size:var(--kf-font-size-title-sm)}}:host([data-layout=v4][data-sticky]){position:sticky;top:calc(var(--kf-page-header-top, 0px) - 1px);z-index:var(--kf-page-header-z, 30);overflow-anchor:none}:host([data-layout=v4][data-stuck]){--_stuck-height: var(--kf-page-header-stuck-height, 56px);box-sizing:border-box;block-size:var(--_stuck-height);margin-block-end:calc(var(--kf-page-header-natural, var(--_stuck-height)) - var(--_stuck-height));flex-direction:row;align-items:center;gap:var(--kf-page-header-gap, 12px);margin-inline:calc(-1 * var(--kf-page-header-bleed, 0px));padding:8px var(--kf-page-header-bleed, 0px);background:var(--kf-color-white);border-bottom:1px solid var(--kf-color-border);box-shadow:var(--kf-elevation-raised);--kf-tabs-tab-height: 32px;--kf-tabs-line-width: 0px;--kf-data-freshness-prefix: none}:host([data-layout=v4][data-stuck]) .kf-page-header__row{display:contents}:host([data-layout=v4][data-stuck]) .kf-page-header__icon{order:0}:host([data-layout=v4][data-stuck]) .kf-page-header__heading{order:1;flex:0 1 auto;max-width:32%}:host([data-layout=v4][data-stuck]) .kf-page-header__subtitle{display:none}:host([data-layout=v4][data-stuck]) .kf-page-header__tabs{order:2;flex:1 1 0;align-self:center}:host([data-layout=v4][data-stuck]) .kf-page-header__actions{order:3}:host([data-layout=v4][data-stuck]) .kf-page-header__divider{order:4}:host([data-layout=v4][data-stuck]) .kf-page-header__freshness{order:5;--kf-data-freshness-prefix: none}:host([data-layout=v4][data-stuck]) .kf-page-header__title ::ng-deep>h1{font-size:var(--kf-font-size-body)}@container kf-page-header (max-width: 599.98px){:host([data-layout=v4][data-stuck]) .kf-page-header__heading{display:none}:host([data-layout=v4][data-stuck]) .kf-page-header__freshness{--kf-data-freshness-text: none}}:host([data-layout=v4][data-stuck]) .kf-page-header__tabs{min-width:0}@media(prefers-reduced-motion:no-preference){:host([data-layout=v4][data-sticky]){transition:box-shadow var(--kf-motion-base, .22s) var(--kf-ease-standard, ease)}:host([data-layout=v4][data-stuck]){animation:kf-page-header-stuck-in var(--kf-motion-fast, .14s) var(--kf-ease-enter, ease-out)}}@keyframes kf-page-header-stuck-in{0%{opacity:.55}}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "component", type: Text, selector: "kf-text", inputs: ["as", "variant", "tone"] }] });
|
|
16093
16119
|
}
|
|
16094
16120
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: PageHeader, decorators: [{
|
|
16095
16121
|
type: Component,
|
|
@@ -16098,7 +16124,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
16098
16124
|
'[attr.data-density]': 'density()',
|
|
16099
16125
|
'[attr.data-sticky]': "layout() === 'v4' && sticky() ? '' : null",
|
|
16100
16126
|
'[attr.data-stuck]': "stuck() ? '' : null",
|
|
16101
|
-
|
|
16127
|
+
'[style.--kf-page-header-natural.px]': 'naturalHeight()',
|
|
16128
|
+
}, template: "<div class=\"kf-page-header__row\">\n @if (icon(); as iconName) {\n @if (!compact()) {\n <span class=\"kf-page-header__icon\">\n <kf-icon [name]=\"iconName\" size=\"lg\" />\n </span>\n }\n }\n\n <div class=\"kf-page-header__heading\">\n <kf-text\n as=\"h1\"\n class=\"kf-page-header__title\"\n [variant]=\"resolvedTitleVariant()\"\n [attr.title]=\"layout() === 'v4' ? title() : null\"\n >\n {{ title() }}\n </kf-text>\n @if (subtitle() && !compact()) {\n <p class=\"kf-page-header__subtitle\" [attr.title]=\"layout() === 'v4' ? subtitle() : null\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n <div class=\"kf-page-header__actions\">\n <ng-content select=\"[actions]\" />\n </div>\n <span class=\"kf-page-header__divider\" aria-hidden=\"true\"></span>\n <div class=\"kf-page-header__freshness\">\n <ng-content select=\"[freshness]\" />\n </div>\n</div>\n<div class=\"kf-page-header__tabs\">\n <ng-content select=\"[tabs]\" />\n</div>\n", styles: [":host{display:block;font-family:var(--kf-font-body);padding-bottom:var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-page-header__row{display:flex;align-items:center;gap:var(--kf-space-md)}.kf-page-header__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border-radius:var(--kf-radius-md);background:var(--kf-color-primary-soft);color:var(--kf-color-primary);border:1px solid var(--kf-color-border)}.kf-page-header__heading{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.kf-page-header__title{line-height:1.2}.kf-page-header__subtitle{margin:0;font-size:.9375rem;color:var(--kf-color-text-muted)}.kf-page-header__actions{flex:none;display:flex;align-items:center;gap:var(--kf-space-sm)}@media(max-width:900px){.kf-page-header__icon{width:40px;height:40px}.kf-page-header__subtitle{font-size:var(--kf-font-size-label)}}.kf-page-header__actions:empty,.kf-page-header__freshness:empty,.kf-page-header__tabs:empty,.kf-page-header__divider{display:none}:host([data-density=compact]) .kf-page-header__heading{gap:0}:host([data-layout=v4]){container:kf-page-header/inline-size;display:flex;flex-direction:column;gap:var(--kf-space-md);padding-bottom:0;border-bottom:none}:host([data-layout=v4]) .kf-page-header__row{gap:var(--kf-page-header-gap, 12px);min-height:40px;min-width:0}:host([data-layout=v4]) .kf-page-header__heading{gap:4px}:host([data-layout=v4]) .kf-page-header__title{display:block;min-width:0;line-height:1.2}:host([data-layout=v4]) .kf-page-header__title ::ng-deep>h1{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([data-layout=v4]) .kf-page-header__subtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--kf-font-size-body-sm);line-height:20px}:host([data-layout=v4]) .kf-page-header__actions{justify-content:flex-end}:host([data-layout=v4]) .kf-page-header__freshness{flex:none;display:inline-flex;justify-content:flex-end;--kf-data-freshness-prefix: inline}:host([data-layout=v4]) .kf-page-header__actions:not(:empty)+.kf-page-header__divider:has(+.kf-page-header__freshness:not(:empty)){display:block;flex:none;align-self:center;width:1px;height:24px;background:var(--kf-color-border)}:host([data-layout=v4]) .kf-page-header__tabs{min-width:0}@container kf-page-header (max-width: 799.98px){:host([data-layout=v4]) .kf-page-header__freshness{--kf-data-freshness-prefix: none}}@container kf-page-header (max-width: 599.98px){:host([data-layout=v4]){gap:var(--kf-space-sm)}:host([data-layout=v4]) .kf-page-header__row{--kf-page-header-gap: 8px;flex-wrap:wrap;row-gap:var(--kf-space-sm)}:host([data-layout=v4]) .kf-page-header__heading{flex:1 1 7.5rem;min-width:7.5rem}:host([data-layout=v4]) .kf-page-header__actions,:host([data-layout=v4]) .kf-page-header__freshness{margin-inline-start:auto}:host([data-layout=v4]) .kf-page-header__subtitle,:host([data-layout=v4]) .kf-page-header__divider{display:none!important}:host([data-layout=v4]) .kf-page-header__title ::ng-deep>h1{font-size:var(--kf-font-size-title-sm)}}:host([data-layout=v4][data-sticky]){position:sticky;top:calc(var(--kf-page-header-top, 0px) - 1px);z-index:var(--kf-page-header-z, 30);overflow-anchor:none}:host([data-layout=v4][data-stuck]){--_stuck-height: var(--kf-page-header-stuck-height, 56px);box-sizing:border-box;block-size:var(--_stuck-height);margin-block-end:calc(var(--kf-page-header-natural, var(--_stuck-height)) - var(--_stuck-height));flex-direction:row;align-items:center;gap:var(--kf-page-header-gap, 12px);margin-inline:calc(-1 * var(--kf-page-header-bleed, 0px));padding:8px var(--kf-page-header-bleed, 0px);background:var(--kf-color-white);border-bottom:1px solid var(--kf-color-border);box-shadow:var(--kf-elevation-raised);--kf-tabs-tab-height: 32px;--kf-tabs-line-width: 0px;--kf-data-freshness-prefix: none}:host([data-layout=v4][data-stuck]) .kf-page-header__row{display:contents}:host([data-layout=v4][data-stuck]) .kf-page-header__icon{order:0}:host([data-layout=v4][data-stuck]) .kf-page-header__heading{order:1;flex:0 1 auto;max-width:32%}:host([data-layout=v4][data-stuck]) .kf-page-header__subtitle{display:none}:host([data-layout=v4][data-stuck]) .kf-page-header__tabs{order:2;flex:1 1 0;align-self:center}:host([data-layout=v4][data-stuck]) .kf-page-header__actions{order:3}:host([data-layout=v4][data-stuck]) .kf-page-header__divider{order:4}:host([data-layout=v4][data-stuck]) .kf-page-header__freshness{order:5;--kf-data-freshness-prefix: none}:host([data-layout=v4][data-stuck]) .kf-page-header__title ::ng-deep>h1{font-size:var(--kf-font-size-body)}@container kf-page-header (max-width: 599.98px){:host([data-layout=v4][data-stuck]) .kf-page-header__heading{display:none}:host([data-layout=v4][data-stuck]) .kf-page-header__freshness{--kf-data-freshness-text: none}}:host([data-layout=v4][data-stuck]) .kf-page-header__tabs{min-width:0}@media(prefers-reduced-motion:no-preference){:host([data-layout=v4][data-sticky]){transition:box-shadow var(--kf-motion-base, .22s) var(--kf-ease-standard, ease)}:host([data-layout=v4][data-stuck]){animation:kf-page-header-stuck-in var(--kf-motion-fast, .14s) var(--kf-ease-enter, ease-out)}}@keyframes kf-page-header-stuck-in{0%{opacity:.55}}\n"] }]
|
|
16102
16129
|
}], ctorParameters: () => [], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }] } });
|
|
16103
16130
|
|
|
16104
16131
|
/**
|