@kaufmann-lab/ui 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/kaufmann-lab-ui-auth.mjs +15 -11
- package/fesm2022/kaufmann-lab-ui-auth.mjs.map +1 -1
- package/fesm2022/kaufmann-lab-ui-business.mjs +1 -1
- package/fesm2022/kaufmann-lab-ui-business.mjs.map +1 -1
- package/fesm2022/kaufmann-lab-ui-core.mjs +129 -56
- package/fesm2022/kaufmann-lab-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/kaufmann-lab-ui-auth.d.ts +21 -10
- package/types/kaufmann-lab-ui-core.d.ts +59 -15
|
@@ -1712,6 +1712,9 @@ const DRAG_IGNORED_TARGETS = 'button, a[href], input, select, textarea, [role="b
|
|
|
1712
1712
|
* `--kf-drawer-sheet-max-height`, `--kf-drawer-sheet-medium-height`,
|
|
1713
1713
|
* `--kf-drawer-sheet-large-gap` y `--kf-drawer-sheet-readable-width`. Se
|
|
1714
1714
|
* declaran en el `<kf-drawer>` o un ancestro (con `mountInOverlay`, en `:root`).
|
|
1715
|
+
* `--kf-keyboard-inset` (alto del teclado virtual que tapa la vista, lo publica
|
|
1716
|
+
* la app) apoya la hoja inferior sobre el teclado: sus acciones quedan visibles y
|
|
1717
|
+
* su alto se recorta al espacio libre.
|
|
1715
1718
|
*
|
|
1716
1719
|
* Escape cierra el panel salvo que un control interno ya haya consumido la
|
|
1717
1720
|
* tecla (`event.defaultPrevented`): un `kf-select`, `kf-multi-select` o
|
|
@@ -1924,21 +1927,31 @@ class Drawer {
|
|
|
1924
1927
|
unregisterOpenModalDialog(panel);
|
|
1925
1928
|
}
|
|
1926
1929
|
});
|
|
1930
|
+
// El foco inicial se pide solo al abrir (o cuando el panel cambia), nunca en cada render mientras sigue abierto:
|
|
1931
|
+
// si no, tocar otro campo de la hoja devolvía el foco al inicial y cerraba el teclado del teléfono. `focus()`
|
|
1932
|
+
// dispara eventos síncronos: van fuera del contexto reactivo para que sus lectores no se vuelvan dependencias.
|
|
1927
1933
|
afterRenderEffect(() => {
|
|
1928
1934
|
const panel = this.panelRef()?.nativeElement;
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
this.lastFocusedElement.focus();
|
|
1935
|
+
const open = this.open();
|
|
1936
|
+
untracked(() => {
|
|
1937
|
+
if (open && panel) {
|
|
1938
|
+
if (this.focusTrapPanel === panel && this.focusTrap) {
|
|
1939
|
+
return;
|
|
1940
|
+
}
|
|
1941
|
+
this.lastFocusedElement = this.document.activeElement;
|
|
1942
|
+
const trap = this.getOrCreateFocusTrap(panel);
|
|
1943
|
+
void trap.focusInitialElement();
|
|
1939
1944
|
}
|
|
1940
|
-
|
|
1941
|
-
|
|
1945
|
+
else if (!open) {
|
|
1946
|
+
this.focusTrap?.destroy();
|
|
1947
|
+
this.focusTrap = null;
|
|
1948
|
+
this.focusTrapPanel = null;
|
|
1949
|
+
if (this.lastFocusedElement?.isConnected) {
|
|
1950
|
+
this.lastFocusedElement.focus();
|
|
1951
|
+
}
|
|
1952
|
+
this.lastFocusedElement = null;
|
|
1953
|
+
}
|
|
1954
|
+
});
|
|
1942
1955
|
});
|
|
1943
1956
|
effect(() => {
|
|
1944
1957
|
const open = this.open();
|
|
@@ -2148,7 +2161,7 @@ class Drawer {
|
|
|
2148
2161
|
return this.focusTrap;
|
|
2149
2162
|
}
|
|
2150
2163
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Drawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2151
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Drawer, isStandalone: true, selector: "kf-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, sheetSize: { classPropertyName: "sheetSize", publicName: "sheetSize", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, sheetWidth: { classPropertyName: "sheetWidth", publicName: "sheetWidth", isSignal: true, isRequired: false, transformFunction: null }, flush: { classPropertyName: "flush", publicName: "flush", isSignal: true, isRequired: false, transformFunction: null }, swipeToClose: { classPropertyName: "swipeToClose", publicName: "swipeToClose", isSignal: true, isRequired: false, transformFunction: null }, closeOnBack: { classPropertyName: "closeOnBack", publicName: "closeOnBack", isSignal: true, isRequired: false, transformFunction: null }, mountInOverlay: { classPropertyName: "mountInOverlay", publicName: "mountInOverlay", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closedAfterBack: "closedAfterBack", detentChange: "detentChange" }, host: { listeners: { "window:popstate": "onPopState()", "document:keydown.escape": "onEscape($event)" }, properties: { "attr.role": "null", "attr.title": "null" } }, viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Backdrop y panel van en una plantilla: inline dentro del propio componente\n (default) o, con `mountInOverlay`, montados en el contenedor de overlays de\n CDK para escapar de un ancestro con `container-type`, `transform` o `contain`. -->\n<ng-template #content>\n @if (open()) {\n <button\n type=\"button\"\n class=\"kf-drawer__overlay\"\n [class.kf-drawer__overlay--sheet]=\"side() === 'bottom'\"\n animate.leave=\"kf-drawer__overlay--leave\"\n [attr.aria-label]=\"resolvedCloseLabel()\"\n [attr.tabindex]=\"role() === 'dialog' ? -1 : null\"\n (click)=\"open.set(false)\"\n ></button>\n }\n\n <!-- Un <div> con rol expl\u00EDcito (no <nav>): un mismo panel puede ser\n navegaci\u00F3n o di\u00E1logo, y <nav> no admite role=\"dialog\". -->\n <div\n #panel\n class=\"kf-drawer__panel\"\n [class.kf-drawer__panel--open]=\"open()\"\n [class.kf-drawer__panel--right]=\"side() === 'right'\"\n [class.kf-drawer__panel--bottom]=\"side() === 'bottom'\"\n [class.kf-drawer__panel--size-md]=\"side() !== 'bottom' && size() === 'md'\"\n [class.kf-drawer__panel--size-lg]=\"side() !== 'bottom' && size() === 'lg'\"\n [class.kf-drawer__panel--sheet-full]=\"side() === 'bottom' && sheetSize() === 'full'\"\n [class.kf-drawer__panel--sheet-medium]=\"side() === 'bottom' && detent() === 'medium'\"\n [class.kf-drawer__panel--sheet-large]=\"side() === 'bottom' && detent() === 'large'\"\n [class.kf-drawer__panel--sheet-readable]=\"side() === 'bottom' && sheetWidth() === 'readable'\"\n [class.kf-drawer__panel--flush]=\"flush()\"\n [class.kf-drawer__panel--dialog]=\"role() === 'dialog'\"\n [class.kf-drawer__panel--overlay]=\"mountInOverlay()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"role() === 'dialog' ? 'true' : null\"\n [attr.aria-label]=\"title() ? null : resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [attr.aria-hidden]=\"!open()\"\n >\n @if (side() === 'bottom') {\n <div\n class=\"kf-drawer__grip\"\n aria-hidden=\"true\"\n (pointerdown)=\"onDragStart($event)\"\n (pointermove)=\"onDragMove($event)\"\n (pointerup)=\"onDragEnd($event)\"\n (pointercancel)=\"onDragCancel()\"\n ></div>\n }\n @if (title(); as titleText) {\n <div\n class=\"kf-drawer__titlebar\"\n (pointerdown)=\"onDragStart($event)\"\n (pointermove)=\"onDragMove($event)\"\n (pointerup)=\"onDragEnd($event)\"\n (pointercancel)=\"onDragCancel()\"\n >\n <h2 class=\"kf-drawer__title\" [id]=\"titleId\">{{ titleText }}</h2>\n <kf-button\n class=\"kf-drawer__close\"\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n icon=\"x\"\n [ariaLabel]=\"resolvedCloseLabel()\"\n (click)=\"open.set(false)\"\n />\n </div>\n }\n <div class=\"kf-drawer__header\"><ng-content select=\"[kf-drawer-header]\" /></div>\n <div class=\"kf-drawer__body\"><ng-content /></div>\n <div class=\"kf-drawer__footer\"><ng-content select=\"[kf-drawer-footer]\" /></div>\n </div>\n</ng-template>\n\n@if (!mountInOverlay()) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n}\n", styles: [".kf-drawer__overlay{position:fixed;inset:0;border:none;padding:0;cursor:pointer;background:var(--kf-drawer-scrim, var(--kf-scrim, rgba(23, 29, 37, .4)));backdrop-filter:var(--kf-drawer-backdrop-filter, blur(4px));-webkit-backdrop-filter:var(--kf-drawer-backdrop-filter, blur(4px));z-index:39;animation:kf-drawer-fade-in var(--kf-motion-base, .22s) var(--kf-ease-standard, ease) both}.kf-drawer__overlay--sheet{backdrop-filter:var(--kf-drawer-backdrop-filter, none);-webkit-backdrop-filter:var(--kf-drawer-backdrop-filter, none)}.kf-drawer__overlay--leave{pointer-events:none;animation:kf-drawer-fade-out var(--kf-motion-base, .22s) var(--kf-ease-exit, ease-in) both}@keyframes kf-drawer-fade-in{0%{opacity:0}}@keyframes kf-drawer-fade-out{to{opacity:0}}.kf-drawer__panel{position:fixed;top:0;left:0;bottom:0;z-index:40;display:flex;flex-direction:column;width:82%;max-width:320px;background:var(--kf-color-white);box-shadow:8px 0 24px -8px #1018284d;transform:translate(-100%);visibility:hidden;transition:transform var(--kf-drawer-duration, .24s) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear var(--kf-drawer-duration, .24s)}.kf-drawer__panel--overlay{font-family:var(--kf-font-body)}.kf-drawer__panel--right{left:auto;right:0;box-shadow:-8px 0 24px -8px #1018284d;transform:translate(100%)}.kf-drawer__panel--dialog{width:min(var(--kf-drawer-width, 480px),100vw);max-width:none}@media(max-width:640px){.kf-drawer__panel--dialog{width:100vw}}.kf-drawer__panel--size-md{width:min(var(--kf-drawer-width-md, 640px),94vw);max-width:none}.kf-drawer__panel--size-lg{width:min(var(--kf-drawer-width-lg, 880px),70vw);max-width:none}@media(max-width:600px){.kf-drawer__panel--size-md,.kf-drawer__panel--size-lg{width:100vw}}.kf-drawer__panel--bottom{--kf-drawer-duration: var(--kf-motion-slow, .32s);top:auto;right:0;width:100%;max-width:none;max-height:var(--kf-drawer-sheet-max-height, 80vh);border-radius:var(--kf-drawer-sheet-radius, var(--kf-radius-lg)) var(--kf-drawer-sheet-radius, var(--kf-radius-lg)) 0 0;box-shadow:var(--kf-elevation-sheet, var(--kf-shadow-lg));padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);transform:translateY(100%)}.kf-drawer__panel--sheet-medium,.kf-drawer__panel--sheet-large{max-height:none}.kf-drawer__panel--sheet-medium{height:var(--kf-drawer-sheet-medium-height, 50dvh)}.kf-drawer__panel--sheet-large{height:calc(100dvh - var(--kf-drawer-sheet-large-gap, 24px) - env(safe-area-inset-top,0px))}.kf-drawer__panel--sheet-medium.kf-drawer__panel--open,.kf-drawer__panel--sheet-large.kf-drawer__panel--open{transition:transform var(--kf-drawer-duration) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),height var(--kf-drawer-duration) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear 0s}@media(min-width:640px){.kf-drawer__panel--sheet-readable:not(.kf-drawer__panel--sheet-full){left:max(0px,calc((100% - var(--kf-drawer-sheet-readable-width, 600px)) / 2));right:max(0px,calc((100% - var(--kf-drawer-sheet-readable-width, 600px)) / 2));width:auto}}.kf-drawer__panel--sheet-full{height:100vh;height:100dvh;max-height:none;border-radius:0}@media(orientation:landscape)and (max-height:500px){.kf-drawer__panel--bottom:not(.kf-drawer__panel--sheet-full){max-height:94vh}}.kf-drawer__panel--bottom .kf-drawer__grip,.kf-drawer__panel--bottom .kf-drawer__titlebar{touch-action:none}.kf-drawer__panel--open{transform:none;visibility:visible;transition:transform var(--kf-drawer-duration, .24s) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear 0s}.kf-drawer__panel--bottom.kf-drawer__panel--open{transform:none}@media(prefers-reduced-motion:reduce){.kf-drawer__panel,.kf-drawer__panel--open{transition:none}.kf-drawer__overlay,.kf-drawer__overlay--leave{animation:none}}.kf-drawer__grip{position:relative;flex:none;align-self:center;width:36px;height:4px;margin-top:var(--kf-space-sm);border-radius:var(--kf-radius-pill);background:var(--kf-color-border-strong)}.kf-drawer__grip:before{content:\"\";position:absolute;inset:-12px -32px}.kf-drawer__titlebar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-sm) var(--kf-space-sm) var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-drawer__title{margin:0;min-width:0;font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-sm);font-weight:700;line-height:1.25;color:var(--kf-color-ink)}.kf-drawer__close{flex:none}@media(pointer:coarse),(max-width:760px){.kf-drawer__close{--kf-button-min-height: 44px;min-width:44px}}.kf-drawer__header:empty,.kf-drawer__footer:empty{display:none}.kf-drawer__header{padding:var(--kf-space-lg);background:var(--kf-color-tertiary-deep)}.kf-drawer__body{flex:1 1 auto;min-height:0;overscroll-behavior:contain;display:flex;flex-direction:column;gap:var(--kf-drawer-body-gap, var(--kf-space-xs));padding:var(--kf-drawer-body-padding, var(--kf-space-lg));overflow-y:auto}.kf-drawer__panel--dialog .kf-drawer__body{gap:var(--kf-drawer-body-gap, var(--kf-space-lg))}.kf-drawer__panel--flush .kf-drawer__body{gap:0;padding:0 0 var(--kf-space-md)}.kf-drawer__footer{flex:none;padding:var(--kf-space-lg);border-top:1px solid var(--kf-color-border)}.kf-drawer__panel--dialog .kf-drawer__footer{padding:var(--kf-space-md) var(--kf-space-lg)}\n"], dependencies: [{ kind: "component", type: Button, selector: "kf-button", inputs: ["variant", "size", "shape", "disabled", "type", "icon", "block", "loading", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDisabled", "ariaDescribedby", "attention", "ariaControls", "ariaHaspopup"], outputs: ["disabledClick"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Drawer, isStandalone: true, selector: "kf-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, sheetSize: { classPropertyName: "sheetSize", publicName: "sheetSize", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, sheetWidth: { classPropertyName: "sheetWidth", publicName: "sheetWidth", isSignal: true, isRequired: false, transformFunction: null }, flush: { classPropertyName: "flush", publicName: "flush", isSignal: true, isRequired: false, transformFunction: null }, swipeToClose: { classPropertyName: "swipeToClose", publicName: "swipeToClose", isSignal: true, isRequired: false, transformFunction: null }, closeOnBack: { classPropertyName: "closeOnBack", publicName: "closeOnBack", isSignal: true, isRequired: false, transformFunction: null }, mountInOverlay: { classPropertyName: "mountInOverlay", publicName: "mountInOverlay", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closedAfterBack: "closedAfterBack", detentChange: "detentChange" }, host: { listeners: { "window:popstate": "onPopState()", "document:keydown.escape": "onEscape($event)" }, properties: { "attr.role": "null", "attr.title": "null" } }, viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Backdrop y panel van en una plantilla: inline dentro del propio componente\n (default) o, con `mountInOverlay`, montados en el contenedor de overlays de\n CDK para escapar de un ancestro con `container-type`, `transform` o `contain`. -->\n<ng-template #content>\n @if (open()) {\n <button\n type=\"button\"\n class=\"kf-drawer__overlay\"\n [class.kf-drawer__overlay--sheet]=\"side() === 'bottom'\"\n animate.leave=\"kf-drawer__overlay--leave\"\n [attr.aria-label]=\"resolvedCloseLabel()\"\n [attr.tabindex]=\"role() === 'dialog' ? -1 : null\"\n (click)=\"open.set(false)\"\n ></button>\n }\n\n <!-- Un <div> con rol expl\u00EDcito (no <nav>): un mismo panel puede ser\n navegaci\u00F3n o di\u00E1logo, y <nav> no admite role=\"dialog\". -->\n <div\n #panel\n class=\"kf-drawer__panel\"\n [class.kf-drawer__panel--open]=\"open()\"\n [class.kf-drawer__panel--right]=\"side() === 'right'\"\n [class.kf-drawer__panel--bottom]=\"side() === 'bottom'\"\n [class.kf-drawer__panel--size-md]=\"side() !== 'bottom' && size() === 'md'\"\n [class.kf-drawer__panel--size-lg]=\"side() !== 'bottom' && size() === 'lg'\"\n [class.kf-drawer__panel--sheet-full]=\"side() === 'bottom' && sheetSize() === 'full'\"\n [class.kf-drawer__panel--sheet-medium]=\"side() === 'bottom' && detent() === 'medium'\"\n [class.kf-drawer__panel--sheet-large]=\"side() === 'bottom' && detent() === 'large'\"\n [class.kf-drawer__panel--sheet-readable]=\"side() === 'bottom' && sheetWidth() === 'readable'\"\n [class.kf-drawer__panel--flush]=\"flush()\"\n [class.kf-drawer__panel--dialog]=\"role() === 'dialog'\"\n [class.kf-drawer__panel--overlay]=\"mountInOverlay()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"role() === 'dialog' ? 'true' : null\"\n [attr.aria-label]=\"title() ? null : resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [attr.aria-hidden]=\"!open()\"\n >\n @if (side() === 'bottom') {\n <div\n class=\"kf-drawer__grip\"\n aria-hidden=\"true\"\n (pointerdown)=\"onDragStart($event)\"\n (pointermove)=\"onDragMove($event)\"\n (pointerup)=\"onDragEnd($event)\"\n (pointercancel)=\"onDragCancel()\"\n ></div>\n }\n @if (title(); as titleText) {\n <div\n class=\"kf-drawer__titlebar\"\n (pointerdown)=\"onDragStart($event)\"\n (pointermove)=\"onDragMove($event)\"\n (pointerup)=\"onDragEnd($event)\"\n (pointercancel)=\"onDragCancel()\"\n >\n <h2 class=\"kf-drawer__title\" [id]=\"titleId\">{{ titleText }}</h2>\n <kf-button\n class=\"kf-drawer__close\"\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n icon=\"x\"\n [ariaLabel]=\"resolvedCloseLabel()\"\n (click)=\"open.set(false)\"\n />\n </div>\n }\n <div class=\"kf-drawer__header\"><ng-content select=\"[kf-drawer-header]\" /></div>\n <div class=\"kf-drawer__body\"><ng-content /></div>\n <div class=\"kf-drawer__footer\"><ng-content select=\"[kf-drawer-footer]\" /></div>\n </div>\n</ng-template>\n\n@if (!mountInOverlay()) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n}\n", styles: [".kf-drawer__overlay{position:fixed;inset:0;border:none;padding:0;cursor:pointer;background:var(--kf-drawer-scrim, var(--kf-scrim, rgba(23, 29, 37, .4)));backdrop-filter:var(--kf-drawer-backdrop-filter, blur(4px));-webkit-backdrop-filter:var(--kf-drawer-backdrop-filter, blur(4px));z-index:39;animation:kf-drawer-fade-in var(--kf-motion-base, .22s) var(--kf-ease-standard, ease) both}.kf-drawer__overlay--sheet{backdrop-filter:var(--kf-drawer-backdrop-filter, none);-webkit-backdrop-filter:var(--kf-drawer-backdrop-filter, none)}.kf-drawer__overlay--leave{pointer-events:none;animation:kf-drawer-fade-out var(--kf-motion-base, .22s) var(--kf-ease-exit, ease-in) both}@keyframes kf-drawer-fade-in{0%{opacity:0}}@keyframes kf-drawer-fade-out{to{opacity:0}}.kf-drawer__panel{position:fixed;top:0;left:0;bottom:0;z-index:40;display:flex;flex-direction:column;width:82%;max-width:320px;background:var(--kf-color-white);box-shadow:8px 0 24px -8px #1018284d;transform:translate(-100%);visibility:hidden;transition:transform var(--kf-drawer-duration, .24s) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear var(--kf-drawer-duration, .24s)}.kf-drawer__panel--overlay{font-family:var(--kf-font-body)}.kf-drawer__panel--right{left:auto;right:0;box-shadow:-8px 0 24px -8px #1018284d;transform:translate(100%)}.kf-drawer__panel--dialog{width:min(var(--kf-drawer-width, 480px),100vw);max-width:none}@media(max-width:640px){.kf-drawer__panel--dialog{width:100vw}}.kf-drawer__panel--size-md{width:min(var(--kf-drawer-width-md, 640px),94vw);max-width:none}.kf-drawer__panel--size-lg{width:min(var(--kf-drawer-width-lg, 880px),70vw);max-width:none}@media(max-width:600px){.kf-drawer__panel--size-md,.kf-drawer__panel--size-lg{width:100vw}}.kf-drawer__panel--bottom{--kf-drawer-duration: var(--kf-motion-slow, .32s);top:auto;right:0;bottom:var(--kf-keyboard-inset, 0px);width:100%;max-width:none;max-height:min(var(--kf-drawer-sheet-max-height, 80vh),calc(100dvh - var(--kf-keyboard-inset, 0px) - env(safe-area-inset-top,0px)));border-radius:var(--kf-drawer-sheet-radius, var(--kf-radius-lg)) var(--kf-drawer-sheet-radius, var(--kf-radius-lg)) 0 0;box-shadow:var(--kf-elevation-sheet, var(--kf-shadow-lg));padding-bottom:max(0px,calc(env(safe-area-inset-bottom,0px) - var(--kf-keyboard-inset, 0px)));padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);transform:translateY(100%)}.kf-drawer__panel--sheet-medium,.kf-drawer__panel--sheet-large{max-height:none}.kf-drawer__panel--sheet-medium{height:min(var(--kf-drawer-sheet-medium-height, 50dvh),calc(100dvh - var(--kf-keyboard-inset, 0px) - env(safe-area-inset-top,0px)))}.kf-drawer__panel--sheet-large{height:calc(100dvh - var(--kf-drawer-sheet-large-gap, 24px) - env(safe-area-inset-top,0px) - var(--kf-keyboard-inset, 0px))}.kf-drawer__panel--sheet-medium.kf-drawer__panel--open,.kf-drawer__panel--sheet-large.kf-drawer__panel--open{transition:transform var(--kf-drawer-duration) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),height var(--kf-drawer-duration) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear 0s}@media(min-width:640px){.kf-drawer__panel--sheet-readable:not(.kf-drawer__panel--sheet-full){left:max(0px,calc((100% - var(--kf-drawer-sheet-readable-width, 600px)) / 2));right:max(0px,calc((100% - var(--kf-drawer-sheet-readable-width, 600px)) / 2));width:auto}}.kf-drawer__panel--sheet-full{height:100vh;height:calc(100dvh - var(--kf-keyboard-inset, 0px));max-height:none;border-radius:0}@media(orientation:landscape)and (max-height:500px){.kf-drawer__panel--bottom:not(.kf-drawer__panel--sheet-full){max-height:94vh}}.kf-drawer__panel--bottom .kf-drawer__grip,.kf-drawer__panel--bottom .kf-drawer__titlebar{touch-action:none}.kf-drawer__panel--open{transform:none;visibility:visible;transition:transform var(--kf-drawer-duration, .24s) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear 0s}.kf-drawer__panel--bottom.kf-drawer__panel--open{transform:none}@media(prefers-reduced-motion:reduce){.kf-drawer__panel,.kf-drawer__panel--open{transition:none}.kf-drawer__overlay,.kf-drawer__overlay--leave{animation:none}}.kf-drawer__grip{position:relative;flex:none;align-self:center;width:36px;height:4px;margin-top:var(--kf-space-sm);border-radius:var(--kf-radius-pill);background:var(--kf-color-border-strong)}.kf-drawer__grip:before{content:\"\";position:absolute;inset:-12px -32px}.kf-drawer__titlebar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-sm) var(--kf-space-sm) var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-drawer__title{margin:0;min-width:0;font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-sm);font-weight:700;line-height:1.25;color:var(--kf-color-ink)}.kf-drawer__close{flex:none}@media(pointer:coarse),(max-width:760px){.kf-drawer__close{--kf-button-min-height: 44px;min-width:44px}}.kf-drawer__header:empty,.kf-drawer__footer:empty{display:none}.kf-drawer__header{padding:var(--kf-space-lg);background:var(--kf-color-tertiary-deep)}.kf-drawer__body{flex:1 1 auto;min-height:0;overscroll-behavior:contain;display:flex;flex-direction:column;gap:var(--kf-drawer-body-gap, var(--kf-space-xs));padding:var(--kf-drawer-body-padding, var(--kf-space-lg));overflow-y:auto}.kf-drawer__panel--dialog .kf-drawer__body{gap:var(--kf-drawer-body-gap, var(--kf-space-lg))}.kf-drawer__panel--flush .kf-drawer__body{gap:0;padding:0 0 var(--kf-space-md)}.kf-drawer__footer{flex:none;padding:var(--kf-space-lg);border-top:1px solid var(--kf-color-border)}.kf-drawer__panel--dialog .kf-drawer__footer{padding:var(--kf-space-md) var(--kf-space-lg)}\n"], dependencies: [{ kind: "component", type: Button, selector: "kf-button", inputs: ["variant", "size", "shape", "disabled", "type", "icon", "block", "loading", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDisabled", "ariaDescribedby", "attention", "ariaControls", "ariaHaspopup"], outputs: ["disabledClick"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2152
2165
|
}
|
|
2153
2166
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Drawer, decorators: [{
|
|
2154
2167
|
type: Component,
|
|
@@ -2160,7 +2173,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
2160
2173
|
'[attr.role]': 'null',
|
|
2161
2174
|
'[attr.title]': 'null',
|
|
2162
2175
|
'(window:popstate)': 'onPopState()',
|
|
2163
|
-
}, template: "<!-- Backdrop y panel van en una plantilla: inline dentro del propio componente\n (default) o, con `mountInOverlay`, montados en el contenedor de overlays de\n CDK para escapar de un ancestro con `container-type`, `transform` o `contain`. -->\n<ng-template #content>\n @if (open()) {\n <button\n type=\"button\"\n class=\"kf-drawer__overlay\"\n [class.kf-drawer__overlay--sheet]=\"side() === 'bottom'\"\n animate.leave=\"kf-drawer__overlay--leave\"\n [attr.aria-label]=\"resolvedCloseLabel()\"\n [attr.tabindex]=\"role() === 'dialog' ? -1 : null\"\n (click)=\"open.set(false)\"\n ></button>\n }\n\n <!-- Un <div> con rol expl\u00EDcito (no <nav>): un mismo panel puede ser\n navegaci\u00F3n o di\u00E1logo, y <nav> no admite role=\"dialog\". -->\n <div\n #panel\n class=\"kf-drawer__panel\"\n [class.kf-drawer__panel--open]=\"open()\"\n [class.kf-drawer__panel--right]=\"side() === 'right'\"\n [class.kf-drawer__panel--bottom]=\"side() === 'bottom'\"\n [class.kf-drawer__panel--size-md]=\"side() !== 'bottom' && size() === 'md'\"\n [class.kf-drawer__panel--size-lg]=\"side() !== 'bottom' && size() === 'lg'\"\n [class.kf-drawer__panel--sheet-full]=\"side() === 'bottom' && sheetSize() === 'full'\"\n [class.kf-drawer__panel--sheet-medium]=\"side() === 'bottom' && detent() === 'medium'\"\n [class.kf-drawer__panel--sheet-large]=\"side() === 'bottom' && detent() === 'large'\"\n [class.kf-drawer__panel--sheet-readable]=\"side() === 'bottom' && sheetWidth() === 'readable'\"\n [class.kf-drawer__panel--flush]=\"flush()\"\n [class.kf-drawer__panel--dialog]=\"role() === 'dialog'\"\n [class.kf-drawer__panel--overlay]=\"mountInOverlay()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"role() === 'dialog' ? 'true' : null\"\n [attr.aria-label]=\"title() ? null : resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [attr.aria-hidden]=\"!open()\"\n >\n @if (side() === 'bottom') {\n <div\n class=\"kf-drawer__grip\"\n aria-hidden=\"true\"\n (pointerdown)=\"onDragStart($event)\"\n (pointermove)=\"onDragMove($event)\"\n (pointerup)=\"onDragEnd($event)\"\n (pointercancel)=\"onDragCancel()\"\n ></div>\n }\n @if (title(); as titleText) {\n <div\n class=\"kf-drawer__titlebar\"\n (pointerdown)=\"onDragStart($event)\"\n (pointermove)=\"onDragMove($event)\"\n (pointerup)=\"onDragEnd($event)\"\n (pointercancel)=\"onDragCancel()\"\n >\n <h2 class=\"kf-drawer__title\" [id]=\"titleId\">{{ titleText }}</h2>\n <kf-button\n class=\"kf-drawer__close\"\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n icon=\"x\"\n [ariaLabel]=\"resolvedCloseLabel()\"\n (click)=\"open.set(false)\"\n />\n </div>\n }\n <div class=\"kf-drawer__header\"><ng-content select=\"[kf-drawer-header]\" /></div>\n <div class=\"kf-drawer__body\"><ng-content /></div>\n <div class=\"kf-drawer__footer\"><ng-content select=\"[kf-drawer-footer]\" /></div>\n </div>\n</ng-template>\n\n@if (!mountInOverlay()) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n}\n", styles: [".kf-drawer__overlay{position:fixed;inset:0;border:none;padding:0;cursor:pointer;background:var(--kf-drawer-scrim, var(--kf-scrim, rgba(23, 29, 37, .4)));backdrop-filter:var(--kf-drawer-backdrop-filter, blur(4px));-webkit-backdrop-filter:var(--kf-drawer-backdrop-filter, blur(4px));z-index:39;animation:kf-drawer-fade-in var(--kf-motion-base, .22s) var(--kf-ease-standard, ease) both}.kf-drawer__overlay--sheet{backdrop-filter:var(--kf-drawer-backdrop-filter, none);-webkit-backdrop-filter:var(--kf-drawer-backdrop-filter, none)}.kf-drawer__overlay--leave{pointer-events:none;animation:kf-drawer-fade-out var(--kf-motion-base, .22s) var(--kf-ease-exit, ease-in) both}@keyframes kf-drawer-fade-in{0%{opacity:0}}@keyframes kf-drawer-fade-out{to{opacity:0}}.kf-drawer__panel{position:fixed;top:0;left:0;bottom:0;z-index:40;display:flex;flex-direction:column;width:82%;max-width:320px;background:var(--kf-color-white);box-shadow:8px 0 24px -8px #1018284d;transform:translate(-100%);visibility:hidden;transition:transform var(--kf-drawer-duration, .24s) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear var(--kf-drawer-duration, .24s)}.kf-drawer__panel--overlay{font-family:var(--kf-font-body)}.kf-drawer__panel--right{left:auto;right:0;box-shadow:-8px 0 24px -8px #1018284d;transform:translate(100%)}.kf-drawer__panel--dialog{width:min(var(--kf-drawer-width, 480px),100vw);max-width:none}@media(max-width:640px){.kf-drawer__panel--dialog{width:100vw}}.kf-drawer__panel--size-md{width:min(var(--kf-drawer-width-md, 640px),94vw);max-width:none}.kf-drawer__panel--size-lg{width:min(var(--kf-drawer-width-lg, 880px),70vw);max-width:none}@media(max-width:600px){.kf-drawer__panel--size-md,.kf-drawer__panel--size-lg{width:100vw}}.kf-drawer__panel--bottom{--kf-drawer-duration: var(--kf-motion-slow, .32s);top:auto;right:0;width:100%;max-width:none;max-height:var(--kf-drawer-sheet-max-height, 80vh);border-radius:var(--kf-drawer-sheet-radius, var(--kf-radius-lg)) var(--kf-drawer-sheet-radius, var(--kf-radius-lg)) 0 0;box-shadow:var(--kf-elevation-sheet, var(--kf-shadow-lg));padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);transform:translateY(100%)}.kf-drawer__panel--sheet-medium,.kf-drawer__panel--sheet-large{max-height:none}.kf-drawer__panel--sheet-medium{height:var(--kf-drawer-sheet-medium-height, 50dvh)}.kf-drawer__panel--sheet-large{height:calc(100dvh - var(--kf-drawer-sheet-large-gap, 24px) - env(safe-area-inset-top,0px))}.kf-drawer__panel--sheet-medium.kf-drawer__panel--open,.kf-drawer__panel--sheet-large.kf-drawer__panel--open{transition:transform var(--kf-drawer-duration) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),height var(--kf-drawer-duration) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear 0s}@media(min-width:640px){.kf-drawer__panel--sheet-readable:not(.kf-drawer__panel--sheet-full){left:max(0px,calc((100% - var(--kf-drawer-sheet-readable-width, 600px)) / 2));right:max(0px,calc((100% - var(--kf-drawer-sheet-readable-width, 600px)) / 2));width:auto}}.kf-drawer__panel--sheet-full{height:100vh;height:100dvh;max-height:none;border-radius:0}@media(orientation:landscape)and (max-height:500px){.kf-drawer__panel--bottom:not(.kf-drawer__panel--sheet-full){max-height:94vh}}.kf-drawer__panel--bottom .kf-drawer__grip,.kf-drawer__panel--bottom .kf-drawer__titlebar{touch-action:none}.kf-drawer__panel--open{transform:none;visibility:visible;transition:transform var(--kf-drawer-duration, .24s) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear 0s}.kf-drawer__panel--bottom.kf-drawer__panel--open{transform:none}@media(prefers-reduced-motion:reduce){.kf-drawer__panel,.kf-drawer__panel--open{transition:none}.kf-drawer__overlay,.kf-drawer__overlay--leave{animation:none}}.kf-drawer__grip{position:relative;flex:none;align-self:center;width:36px;height:4px;margin-top:var(--kf-space-sm);border-radius:var(--kf-radius-pill);background:var(--kf-color-border-strong)}.kf-drawer__grip:before{content:\"\";position:absolute;inset:-12px -32px}.kf-drawer__titlebar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-sm) var(--kf-space-sm) var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-drawer__title{margin:0;min-width:0;font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-sm);font-weight:700;line-height:1.25;color:var(--kf-color-ink)}.kf-drawer__close{flex:none}@media(pointer:coarse),(max-width:760px){.kf-drawer__close{--kf-button-min-height: 44px;min-width:44px}}.kf-drawer__header:empty,.kf-drawer__footer:empty{display:none}.kf-drawer__header{padding:var(--kf-space-lg);background:var(--kf-color-tertiary-deep)}.kf-drawer__body{flex:1 1 auto;min-height:0;overscroll-behavior:contain;display:flex;flex-direction:column;gap:var(--kf-drawer-body-gap, var(--kf-space-xs));padding:var(--kf-drawer-body-padding, var(--kf-space-lg));overflow-y:auto}.kf-drawer__panel--dialog .kf-drawer__body{gap:var(--kf-drawer-body-gap, var(--kf-space-lg))}.kf-drawer__panel--flush .kf-drawer__body{gap:0;padding:0 0 var(--kf-space-md)}.kf-drawer__footer{flex:none;padding:var(--kf-space-lg);border-top:1px solid var(--kf-color-border)}.kf-drawer__panel--dialog .kf-drawer__footer{padding:var(--kf-space-md) var(--kf-space-lg)}\n"] }]
|
|
2176
|
+
}, template: "<!-- Backdrop y panel van en una plantilla: inline dentro del propio componente\n (default) o, con `mountInOverlay`, montados en el contenedor de overlays de\n CDK para escapar de un ancestro con `container-type`, `transform` o `contain`. -->\n<ng-template #content>\n @if (open()) {\n <button\n type=\"button\"\n class=\"kf-drawer__overlay\"\n [class.kf-drawer__overlay--sheet]=\"side() === 'bottom'\"\n animate.leave=\"kf-drawer__overlay--leave\"\n [attr.aria-label]=\"resolvedCloseLabel()\"\n [attr.tabindex]=\"role() === 'dialog' ? -1 : null\"\n (click)=\"open.set(false)\"\n ></button>\n }\n\n <!-- Un <div> con rol expl\u00EDcito (no <nav>): un mismo panel puede ser\n navegaci\u00F3n o di\u00E1logo, y <nav> no admite role=\"dialog\". -->\n <div\n #panel\n class=\"kf-drawer__panel\"\n [class.kf-drawer__panel--open]=\"open()\"\n [class.kf-drawer__panel--right]=\"side() === 'right'\"\n [class.kf-drawer__panel--bottom]=\"side() === 'bottom'\"\n [class.kf-drawer__panel--size-md]=\"side() !== 'bottom' && size() === 'md'\"\n [class.kf-drawer__panel--size-lg]=\"side() !== 'bottom' && size() === 'lg'\"\n [class.kf-drawer__panel--sheet-full]=\"side() === 'bottom' && sheetSize() === 'full'\"\n [class.kf-drawer__panel--sheet-medium]=\"side() === 'bottom' && detent() === 'medium'\"\n [class.kf-drawer__panel--sheet-large]=\"side() === 'bottom' && detent() === 'large'\"\n [class.kf-drawer__panel--sheet-readable]=\"side() === 'bottom' && sheetWidth() === 'readable'\"\n [class.kf-drawer__panel--flush]=\"flush()\"\n [class.kf-drawer__panel--dialog]=\"role() === 'dialog'\"\n [class.kf-drawer__panel--overlay]=\"mountInOverlay()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"role() === 'dialog' ? 'true' : null\"\n [attr.aria-label]=\"title() ? null : resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [attr.aria-hidden]=\"!open()\"\n >\n @if (side() === 'bottom') {\n <div\n class=\"kf-drawer__grip\"\n aria-hidden=\"true\"\n (pointerdown)=\"onDragStart($event)\"\n (pointermove)=\"onDragMove($event)\"\n (pointerup)=\"onDragEnd($event)\"\n (pointercancel)=\"onDragCancel()\"\n ></div>\n }\n @if (title(); as titleText) {\n <div\n class=\"kf-drawer__titlebar\"\n (pointerdown)=\"onDragStart($event)\"\n (pointermove)=\"onDragMove($event)\"\n (pointerup)=\"onDragEnd($event)\"\n (pointercancel)=\"onDragCancel()\"\n >\n <h2 class=\"kf-drawer__title\" [id]=\"titleId\">{{ titleText }}</h2>\n <kf-button\n class=\"kf-drawer__close\"\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n icon=\"x\"\n [ariaLabel]=\"resolvedCloseLabel()\"\n (click)=\"open.set(false)\"\n />\n </div>\n }\n <div class=\"kf-drawer__header\"><ng-content select=\"[kf-drawer-header]\" /></div>\n <div class=\"kf-drawer__body\"><ng-content /></div>\n <div class=\"kf-drawer__footer\"><ng-content select=\"[kf-drawer-footer]\" /></div>\n </div>\n</ng-template>\n\n@if (!mountInOverlay()) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n}\n", styles: [".kf-drawer__overlay{position:fixed;inset:0;border:none;padding:0;cursor:pointer;background:var(--kf-drawer-scrim, var(--kf-scrim, rgba(23, 29, 37, .4)));backdrop-filter:var(--kf-drawer-backdrop-filter, blur(4px));-webkit-backdrop-filter:var(--kf-drawer-backdrop-filter, blur(4px));z-index:39;animation:kf-drawer-fade-in var(--kf-motion-base, .22s) var(--kf-ease-standard, ease) both}.kf-drawer__overlay--sheet{backdrop-filter:var(--kf-drawer-backdrop-filter, none);-webkit-backdrop-filter:var(--kf-drawer-backdrop-filter, none)}.kf-drawer__overlay--leave{pointer-events:none;animation:kf-drawer-fade-out var(--kf-motion-base, .22s) var(--kf-ease-exit, ease-in) both}@keyframes kf-drawer-fade-in{0%{opacity:0}}@keyframes kf-drawer-fade-out{to{opacity:0}}.kf-drawer__panel{position:fixed;top:0;left:0;bottom:0;z-index:40;display:flex;flex-direction:column;width:82%;max-width:320px;background:var(--kf-color-white);box-shadow:8px 0 24px -8px #1018284d;transform:translate(-100%);visibility:hidden;transition:transform var(--kf-drawer-duration, .24s) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear var(--kf-drawer-duration, .24s)}.kf-drawer__panel--overlay{font-family:var(--kf-font-body)}.kf-drawer__panel--right{left:auto;right:0;box-shadow:-8px 0 24px -8px #1018284d;transform:translate(100%)}.kf-drawer__panel--dialog{width:min(var(--kf-drawer-width, 480px),100vw);max-width:none}@media(max-width:640px){.kf-drawer__panel--dialog{width:100vw}}.kf-drawer__panel--size-md{width:min(var(--kf-drawer-width-md, 640px),94vw);max-width:none}.kf-drawer__panel--size-lg{width:min(var(--kf-drawer-width-lg, 880px),70vw);max-width:none}@media(max-width:600px){.kf-drawer__panel--size-md,.kf-drawer__panel--size-lg{width:100vw}}.kf-drawer__panel--bottom{--kf-drawer-duration: var(--kf-motion-slow, .32s);top:auto;right:0;bottom:var(--kf-keyboard-inset, 0px);width:100%;max-width:none;max-height:min(var(--kf-drawer-sheet-max-height, 80vh),calc(100dvh - var(--kf-keyboard-inset, 0px) - env(safe-area-inset-top,0px)));border-radius:var(--kf-drawer-sheet-radius, var(--kf-radius-lg)) var(--kf-drawer-sheet-radius, var(--kf-radius-lg)) 0 0;box-shadow:var(--kf-elevation-sheet, var(--kf-shadow-lg));padding-bottom:max(0px,calc(env(safe-area-inset-bottom,0px) - var(--kf-keyboard-inset, 0px)));padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);transform:translateY(100%)}.kf-drawer__panel--sheet-medium,.kf-drawer__panel--sheet-large{max-height:none}.kf-drawer__panel--sheet-medium{height:min(var(--kf-drawer-sheet-medium-height, 50dvh),calc(100dvh - var(--kf-keyboard-inset, 0px) - env(safe-area-inset-top,0px)))}.kf-drawer__panel--sheet-large{height:calc(100dvh - var(--kf-drawer-sheet-large-gap, 24px) - env(safe-area-inset-top,0px) - var(--kf-keyboard-inset, 0px))}.kf-drawer__panel--sheet-medium.kf-drawer__panel--open,.kf-drawer__panel--sheet-large.kf-drawer__panel--open{transition:transform var(--kf-drawer-duration) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),height var(--kf-drawer-duration) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear 0s}@media(min-width:640px){.kf-drawer__panel--sheet-readable:not(.kf-drawer__panel--sheet-full){left:max(0px,calc((100% - var(--kf-drawer-sheet-readable-width, 600px)) / 2));right:max(0px,calc((100% - var(--kf-drawer-sheet-readable-width, 600px)) / 2));width:auto}}.kf-drawer__panel--sheet-full{height:100vh;height:calc(100dvh - var(--kf-keyboard-inset, 0px));max-height:none;border-radius:0}@media(orientation:landscape)and (max-height:500px){.kf-drawer__panel--bottom:not(.kf-drawer__panel--sheet-full){max-height:94vh}}.kf-drawer__panel--bottom .kf-drawer__grip,.kf-drawer__panel--bottom .kf-drawer__titlebar{touch-action:none}.kf-drawer__panel--open{transform:none;visibility:visible;transition:transform var(--kf-drawer-duration, .24s) var(--kf-ease-spring-ish, cubic-bezier(.32, .72, 0, 1)),visibility 0s linear 0s}.kf-drawer__panel--bottom.kf-drawer__panel--open{transform:none}@media(prefers-reduced-motion:reduce){.kf-drawer__panel,.kf-drawer__panel--open{transition:none}.kf-drawer__overlay,.kf-drawer__overlay--leave{animation:none}}.kf-drawer__grip{position:relative;flex:none;align-self:center;width:36px;height:4px;margin-top:var(--kf-space-sm);border-radius:var(--kf-radius-pill);background:var(--kf-color-border-strong)}.kf-drawer__grip:before{content:\"\";position:absolute;inset:-12px -32px}.kf-drawer__titlebar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-sm) var(--kf-space-sm) var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-drawer__title{margin:0;min-width:0;font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-sm);font-weight:700;line-height:1.25;color:var(--kf-color-ink)}.kf-drawer__close{flex:none}@media(pointer:coarse),(max-width:760px){.kf-drawer__close{--kf-button-min-height: 44px;min-width:44px}}.kf-drawer__header:empty,.kf-drawer__footer:empty{display:none}.kf-drawer__header{padding:var(--kf-space-lg);background:var(--kf-color-tertiary-deep)}.kf-drawer__body{flex:1 1 auto;min-height:0;overscroll-behavior:contain;display:flex;flex-direction:column;gap:var(--kf-drawer-body-gap, var(--kf-space-xs));padding:var(--kf-drawer-body-padding, var(--kf-space-lg));overflow-y:auto}.kf-drawer__panel--dialog .kf-drawer__body{gap:var(--kf-drawer-body-gap, var(--kf-space-lg))}.kf-drawer__panel--flush .kf-drawer__body{gap:0;padding:0 0 var(--kf-space-md)}.kf-drawer__footer{flex:none;padding:var(--kf-space-lg);border-top:1px solid var(--kf-color-border)}.kf-drawer__panel--dialog .kf-drawer__footer{padding:var(--kf-space-md) var(--kf-space-lg)}\n"] }]
|
|
2164
2177
|
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], sheetSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "sheetSize", required: false }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], sheetWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "sheetWidth", required: false }] }], flush: [{ type: i0.Input, args: [{ isSignal: true, alias: "flush", required: false }] }], swipeToClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeToClose", required: false }] }], closeOnBack: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBack", required: false }] }], mountInOverlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "mountInOverlay", required: false }] }], closedAfterBack: [{ type: i0.Output, args: ["closedAfterBack"] }], detentChange: [{ type: i0.Output, args: ["detentChange"] }], panelRef: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], contentTemplate: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], onEscape: [{
|
|
2165
2178
|
type: HostListener,
|
|
2166
2179
|
args: ['document:keydown.escape', ['$event']]
|
|
@@ -2847,7 +2860,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
2847
2860
|
* necesita un trazo animable sobre un círculo relleno.
|
|
2848
2861
|
*
|
|
2849
2862
|
* El estado nunca se comunica solo con color: `status` es texto
|
|
2850
|
-
* («Requerida», «Pendiente», «Sin enviar») y `statusTone` lo refuerza.
|
|
2863
|
+
* («Requerida», «Pendiente», «Sin enviar») y `statusTone` lo refuerza. A la
|
|
2864
|
+
* derecha toma su ancho natural (hasta el 60% de la fila) y el título cede
|
|
2865
|
+
* primero; para textos largos («Disponible desde 12 nov · 10:00») usar
|
|
2866
|
+
* `statusPlacement="below"`, que lo pone bajo el título y el detalle.
|
|
2851
2867
|
*
|
|
2852
2868
|
* `muted` la atenúa con `aria-disabled="true"` pero sigue siendo enfocable y
|
|
2853
2869
|
* tocable (emite `activate`), para que la app explique por qué no se puede
|
|
@@ -2874,6 +2890,8 @@ class ActionRow {
|
|
|
2874
2890
|
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
2875
2891
|
statusTone = input('neutral', /* @ts-ignore */
|
|
2876
2892
|
...(ngDevMode ? [{ debugName: "statusTone" }] : /* istanbul ignore next */ []));
|
|
2893
|
+
statusPlacement = input('end', /* @ts-ignore */
|
|
2894
|
+
...(ngDevMode ? [{ debugName: "statusPlacement" }] : /* istanbul ignore next */ []));
|
|
2877
2895
|
state = input('todo', /* @ts-ignore */
|
|
2878
2896
|
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
2879
2897
|
/** `danger` pinta ícono y título con el rojo de error (acciones destructivas). */
|
|
@@ -2893,7 +2911,7 @@ class ActionRow {
|
|
|
2893
2911
|
animateCheck = linkedSignal({ ...(ngDevMode ? { debugName: "animateCheck" } : /* istanbul ignore next */ {}), source: this.state,
|
|
2894
2912
|
computation: (state, previous) => state === 'done' && previous !== undefined && (previous.source !== 'done' || previous.value) });
|
|
2895
2913
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: ActionRow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2896
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: ActionRow, isStandalone: true, selector: "kf-action-row", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, statusTone: { classPropertyName: "statusTone", publicName: "statusTone", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, muted: { classPropertyName: "muted", publicName: "muted", isSignal: true, isRequired: false, transformFunction: null }, chevron: { classPropertyName: "chevron", publicName: "chevron", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activate: "activate" }, host: { properties: { "attr.title": "null", "attr.data-separator": "separator() ? '' : null" } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"kf-action-row\"\n [class.kf-action-row--with-lead]=\"icon() || state() !== 'todo'\"\n [class.kf-action-row--completing]=\"animateCheck()\"\n [attr.data-state]=\"state()\"\n [attr.data-tone]=\"tone()\"\n [attr.aria-disabled]=\"muted() ? 'true' : null\"\n (click)=\"activate.emit()\"\n>\n @if (icon() || state() !== 'todo') {\n <span class=\"kf-action-row__lead\" aria-hidden=\"true\">\n @switch (state()) {\n @case ('done') {\n <svg class=\"kf-action-row__check\" viewBox=\"0 0 24 24\" width=\"22\" height=\"22\">\n <circle cx=\"12\" cy=\"12\" r=\"11\" />\n <path d=\"M7 12.5l3.2 3.2L17 9\" />\n </svg>\n }\n @case ('queued') {\n <kf-icon name=\"clock\" size=\"md\" />\n }\n @default {\n <kf-icon [name]=\"icon()!\" size=\"md\" />\n }\n }\n </span>\n }\n <span class=\"kf-action-row__text\">\n <span class=\"kf-action-row__title\">{{ title() }}</span>\n @if (detail(); as text) {\n <span class=\"kf-action-row__detail\">{{ text }}</span>\n }\n </span>\n @if (status(); as text) {\n <span class=\"kf-action-row__status\" [attr.data-tone]=\"statusTone()\">{{ text }}</span>\n }\n @if (chevron()) {\n <kf-icon class=\"kf-action-row__chevron\" name=\"chevron-right\" size=\"sm\" aria-hidden=\"true\" />\n }\n</button>\n", styles: [":host{display:block;position:relative}:host([data-separator]:not(:first-child)):before{content:\"\";position:absolute;z-index:1;top:0;right:0;left:var(--kf-action-row-separator-inset, var(--kf-space-md));border-top:1px solid var(--kf-color-border);pointer-events:none}:host([data-separator]:not(:first-child):has(.kf-action-row--with-lead)):before{left:var(--kf-action-row-separator-inset, calc(var(--kf-space-md) + 24px + var(--kf-space-sm)))}.kf-action-row{display:flex;align-items:center;gap:var(--kf-space-sm);width:100%;min-height:56px;padding:var(--kf-space-sm) var(--kf-space-md);border:none;background:var(--kf-action-row-bg, var(--kf-color-white));color:var(--kf-color-ink);font:inherit;font-family:var(--kf-font-body);text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--kf-motion-fast) var(--kf-ease-standard),transform var(--kf-motion-fast) var(--kf-ease-standard)}@media(hover:hover){.kf-action-row:hover:not([aria-disabled=true]){background:var(--kf-action-row-hover-bg, var(--kf-color-surface))}}.kf-action-row:active:not([aria-disabled=true]){background:var(--kf-action-row-active-bg, var(--kf-color-gray-100));transform:scale(var(--kf-press-scale))}.kf-action-row:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus-inset)}.kf-action-row[aria-disabled=true]{cursor:default}.kf-action-row[aria-disabled=true] .kf-action-row__title,.kf-action-row[aria-disabled=true] .kf-action-row__lead{color:var(--kf-color-text-muted)}.kf-action-row__lead{display:flex;flex:none;align-items:center;justify-content:center;width:24px;color:var(--kf-color-text-muted)}.kf-action-row[data-state=queued] .kf-action-row__lead{color:var(--kf-color-warning-strong)}.kf-action-row[data-tone=danger] .kf-action-row__lead,.kf-action-row[data-tone=danger] .kf-action-row__title{color:var(--kf-color-error-strong)}.kf-action-row__text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:
|
|
2914
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: ActionRow, isStandalone: true, selector: "kf-action-row", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, statusTone: { classPropertyName: "statusTone", publicName: "statusTone", isSignal: true, isRequired: false, transformFunction: null }, statusPlacement: { classPropertyName: "statusPlacement", publicName: "statusPlacement", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, muted: { classPropertyName: "muted", publicName: "muted", isSignal: true, isRequired: false, transformFunction: null }, chevron: { classPropertyName: "chevron", publicName: "chevron", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activate: "activate" }, host: { properties: { "attr.title": "null", "attr.data-separator": "separator() ? '' : null" } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"kf-action-row\"\n [class.kf-action-row--with-lead]=\"icon() || state() !== 'todo'\"\n [class.kf-action-row--completing]=\"animateCheck()\"\n [attr.data-state]=\"state()\"\n [attr.data-tone]=\"tone()\"\n [attr.aria-disabled]=\"muted() ? 'true' : null\"\n (click)=\"activate.emit()\"\n>\n @if (icon() || state() !== 'todo') {\n <span class=\"kf-action-row__lead\" aria-hidden=\"true\">\n @switch (state()) {\n @case ('done') {\n <svg class=\"kf-action-row__check\" viewBox=\"0 0 24 24\" width=\"22\" height=\"22\">\n <circle cx=\"12\" cy=\"12\" r=\"11\" />\n <path d=\"M7 12.5l3.2 3.2L17 9\" />\n </svg>\n }\n @case ('queued') {\n <kf-icon name=\"clock\" size=\"md\" />\n }\n @default {\n <kf-icon [name]=\"icon()!\" size=\"md\" />\n }\n }\n </span>\n }\n <span class=\"kf-action-row__text\">\n <span class=\"kf-action-row__title\">{{ title() }}</span>\n @if (detail(); as text) {\n <span class=\"kf-action-row__detail\">{{ text }}</span>\n }\n @if (status(); as text) {\n @if (statusPlacement() === 'below') {\n <span\n class=\"kf-action-row__status kf-action-row__status--below\"\n [attr.data-tone]=\"statusTone()\"\n >{{ text }}</span\n >\n }\n }\n </span>\n @if (status(); as text) {\n @if (statusPlacement() === 'end') {\n <span class=\"kf-action-row__status\" [attr.data-tone]=\"statusTone()\">{{ text }}</span>\n }\n }\n @if (chevron()) {\n <kf-icon class=\"kf-action-row__chevron\" name=\"chevron-right\" size=\"sm\" aria-hidden=\"true\" />\n }\n</button>\n", styles: [":host{display:block;position:relative}:host([data-separator]:not(:first-child)):before{content:\"\";position:absolute;z-index:1;top:0;right:0;left:var(--kf-action-row-separator-inset, var(--kf-space-md));border-top:1px solid var(--kf-color-border);pointer-events:none}:host([data-separator]:not(:first-child):has(.kf-action-row--with-lead)):before{left:var(--kf-action-row-separator-inset, calc(var(--kf-space-md) + 24px + var(--kf-space-sm)))}.kf-action-row{display:flex;align-items:center;gap:var(--kf-space-sm);width:100%;min-height:56px;padding:var(--kf-space-sm) var(--kf-space-md);border:none;background:var(--kf-action-row-bg, var(--kf-color-white));color:var(--kf-color-ink);font:inherit;font-family:var(--kf-font-body);text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--kf-motion-fast) var(--kf-ease-standard),transform var(--kf-motion-fast) var(--kf-ease-standard)}@media(hover:hover){.kf-action-row:hover:not([aria-disabled=true]){background:var(--kf-action-row-hover-bg, var(--kf-color-surface))}}.kf-action-row:active:not([aria-disabled=true]){background:var(--kf-action-row-active-bg, var(--kf-color-gray-100));transform:scale(var(--kf-press-scale))}.kf-action-row:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus-inset)}.kf-action-row[aria-disabled=true]{cursor:default}.kf-action-row[aria-disabled=true] .kf-action-row__title,.kf-action-row[aria-disabled=true] .kf-action-row__lead{color:var(--kf-color-text-muted)}.kf-action-row__lead{display:flex;flex:none;align-items:center;justify-content:center;width:24px;color:var(--kf-color-text-muted)}.kf-action-row[data-state=queued] .kf-action-row__lead{color:var(--kf-color-warning-strong)}.kf-action-row[data-tone=danger] .kf-action-row__lead,.kf-action-row[data-tone=danger] .kf-action-row__title{color:var(--kf-color-error-strong)}.kf-action-row__text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:5.5rem}.kf-action-row__title{font-size:var(--kf-font-size-body);font-weight:500;line-height:1.35;overflow-wrap:anywhere}.kf-action-row__detail{font-size:var(--kf-font-size-label);line-height:1.4;color:var(--kf-color-text-muted);overflow-wrap:anywhere}.kf-action-row__status{flex:0 1 auto;min-width:0;max-width:60%;text-wrap:balance;font-size:var(--kf-font-size-label);font-weight:var(--kf-font-weight-medium);line-height:1.3;text-align:end;color:var(--kf-color-text-muted);font-variant-numeric:tabular-nums}.kf-action-row__status--below{max-width:none;text-align:start}.kf-action-row__status[data-tone=ok]{color:var(--kf-color-success-strong)}.kf-action-row__status[data-tone=warn]{color:var(--kf-color-warning-strong)}.kf-action-row__status[data-tone=error]{color:var(--kf-color-error-strong)}.kf-action-row__status[data-tone=info]{color:var(--kf-color-info-strong)}.kf-action-row__chevron{flex:none;color:var(--kf-color-gray-500)}.kf-action-row__check{fill:none;stroke-linecap:round;stroke-linejoin:round}.kf-action-row__check circle{fill:var(--kf-color-success-strong);stroke:none;transform-origin:center}.kf-action-row__check path{stroke:var(--kf-color-white);stroke-width:2.4}.kf-action-row--completing .kf-action-row__check circle{animation:kf-action-row-pop var(--kf-motion-base) var(--kf-ease-enter) both}.kf-action-row--completing .kf-action-row__check path{stroke-dasharray:16;stroke-dashoffset:16;animation:kf-action-row-draw var(--kf-motion-slow) var(--kf-ease-standard) var(--kf-motion-fast) forwards}@keyframes kf-action-row-pop{0%{opacity:0;transform:scale(.4)}}@keyframes kf-action-row-draw{to{stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){.kf-action-row--completing .kf-action-row__check circle,.kf-action-row--completing .kf-action-row__check path{animation:none;stroke-dashoffset:0}}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2897
2915
|
}
|
|
2898
2916
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: ActionRow, decorators: [{
|
|
2899
2917
|
type: Component,
|
|
@@ -2902,8 +2920,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
2902
2920
|
// mostraría un tooltip nativo sobre toda la fila.
|
|
2903
2921
|
'[attr.title]': 'null',
|
|
2904
2922
|
'[attr.data-separator]': "separator() ? '' : null",
|
|
2905
|
-
}, template: "<button\n type=\"button\"\n class=\"kf-action-row\"\n [class.kf-action-row--with-lead]=\"icon() || state() !== 'todo'\"\n [class.kf-action-row--completing]=\"animateCheck()\"\n [attr.data-state]=\"state()\"\n [attr.data-tone]=\"tone()\"\n [attr.aria-disabled]=\"muted() ? 'true' : null\"\n (click)=\"activate.emit()\"\n>\n @if (icon() || state() !== 'todo') {\n <span class=\"kf-action-row__lead\" aria-hidden=\"true\">\n @switch (state()) {\n @case ('done') {\n <svg class=\"kf-action-row__check\" viewBox=\"0 0 24 24\" width=\"22\" height=\"22\">\n <circle cx=\"12\" cy=\"12\" r=\"11\" />\n <path d=\"M7 12.5l3.2 3.2L17 9\" />\n </svg>\n }\n @case ('queued') {\n <kf-icon name=\"clock\" size=\"md\" />\n }\n @default {\n <kf-icon [name]=\"icon()!\" size=\"md\" />\n }\n }\n </span>\n }\n <span class=\"kf-action-row__text\">\n <span class=\"kf-action-row__title\">{{ title() }}</span>\n @if (detail(); as text) {\n <span class=\"kf-action-row__detail\">{{ text }}</span>\n }\n </span>\n @if (status(); as text) {\n <span class=\"kf-action-row__status\" [attr.data-tone]=\"statusTone()\">{{ text }}</span>\n }\n @if (chevron()) {\n <kf-icon class=\"kf-action-row__chevron\" name=\"chevron-right\" size=\"sm\" aria-hidden=\"true\" />\n }\n</button>\n", styles: [":host{display:block;position:relative}:host([data-separator]:not(:first-child)):before{content:\"\";position:absolute;z-index:1;top:0;right:0;left:var(--kf-action-row-separator-inset, var(--kf-space-md));border-top:1px solid var(--kf-color-border);pointer-events:none}:host([data-separator]:not(:first-child):has(.kf-action-row--with-lead)):before{left:var(--kf-action-row-separator-inset, calc(var(--kf-space-md) + 24px + var(--kf-space-sm)))}.kf-action-row{display:flex;align-items:center;gap:var(--kf-space-sm);width:100%;min-height:56px;padding:var(--kf-space-sm) var(--kf-space-md);border:none;background:var(--kf-action-row-bg, var(--kf-color-white));color:var(--kf-color-ink);font:inherit;font-family:var(--kf-font-body);text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--kf-motion-fast) var(--kf-ease-standard),transform var(--kf-motion-fast) var(--kf-ease-standard)}@media(hover:hover){.kf-action-row:hover:not([aria-disabled=true]){background:var(--kf-action-row-hover-bg, var(--kf-color-surface))}}.kf-action-row:active:not([aria-disabled=true]){background:var(--kf-action-row-active-bg, var(--kf-color-gray-100));transform:scale(var(--kf-press-scale))}.kf-action-row:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus-inset)}.kf-action-row[aria-disabled=true]{cursor:default}.kf-action-row[aria-disabled=true] .kf-action-row__title,.kf-action-row[aria-disabled=true] .kf-action-row__lead{color:var(--kf-color-text-muted)}.kf-action-row__lead{display:flex;flex:none;align-items:center;justify-content:center;width:24px;color:var(--kf-color-text-muted)}.kf-action-row[data-state=queued] .kf-action-row__lead{color:var(--kf-color-warning-strong)}.kf-action-row[data-tone=danger] .kf-action-row__lead,.kf-action-row[data-tone=danger] .kf-action-row__title{color:var(--kf-color-error-strong)}.kf-action-row__text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:
|
|
2906
|
-
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], statusTone: [{ type: i0.Input, args: [{ isSignal: true, alias: "statusTone", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], muted: [{ type: i0.Input, args: [{ isSignal: true, alias: "muted", required: false }] }], chevron: [{ type: i0.Input, args: [{ isSignal: true, alias: "chevron", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], activate: [{ type: i0.Output, args: ["activate"] }] } });
|
|
2923
|
+
}, template: "<button\n type=\"button\"\n class=\"kf-action-row\"\n [class.kf-action-row--with-lead]=\"icon() || state() !== 'todo'\"\n [class.kf-action-row--completing]=\"animateCheck()\"\n [attr.data-state]=\"state()\"\n [attr.data-tone]=\"tone()\"\n [attr.aria-disabled]=\"muted() ? 'true' : null\"\n (click)=\"activate.emit()\"\n>\n @if (icon() || state() !== 'todo') {\n <span class=\"kf-action-row__lead\" aria-hidden=\"true\">\n @switch (state()) {\n @case ('done') {\n <svg class=\"kf-action-row__check\" viewBox=\"0 0 24 24\" width=\"22\" height=\"22\">\n <circle cx=\"12\" cy=\"12\" r=\"11\" />\n <path d=\"M7 12.5l3.2 3.2L17 9\" />\n </svg>\n }\n @case ('queued') {\n <kf-icon name=\"clock\" size=\"md\" />\n }\n @default {\n <kf-icon [name]=\"icon()!\" size=\"md\" />\n }\n }\n </span>\n }\n <span class=\"kf-action-row__text\">\n <span class=\"kf-action-row__title\">{{ title() }}</span>\n @if (detail(); as text) {\n <span class=\"kf-action-row__detail\">{{ text }}</span>\n }\n @if (status(); as text) {\n @if (statusPlacement() === 'below') {\n <span\n class=\"kf-action-row__status kf-action-row__status--below\"\n [attr.data-tone]=\"statusTone()\"\n >{{ text }}</span\n >\n }\n }\n </span>\n @if (status(); as text) {\n @if (statusPlacement() === 'end') {\n <span class=\"kf-action-row__status\" [attr.data-tone]=\"statusTone()\">{{ text }}</span>\n }\n }\n @if (chevron()) {\n <kf-icon class=\"kf-action-row__chevron\" name=\"chevron-right\" size=\"sm\" aria-hidden=\"true\" />\n }\n</button>\n", styles: [":host{display:block;position:relative}:host([data-separator]:not(:first-child)):before{content:\"\";position:absolute;z-index:1;top:0;right:0;left:var(--kf-action-row-separator-inset, var(--kf-space-md));border-top:1px solid var(--kf-color-border);pointer-events:none}:host([data-separator]:not(:first-child):has(.kf-action-row--with-lead)):before{left:var(--kf-action-row-separator-inset, calc(var(--kf-space-md) + 24px + var(--kf-space-sm)))}.kf-action-row{display:flex;align-items:center;gap:var(--kf-space-sm);width:100%;min-height:56px;padding:var(--kf-space-sm) var(--kf-space-md);border:none;background:var(--kf-action-row-bg, var(--kf-color-white));color:var(--kf-color-ink);font:inherit;font-family:var(--kf-font-body);text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--kf-motion-fast) var(--kf-ease-standard),transform var(--kf-motion-fast) var(--kf-ease-standard)}@media(hover:hover){.kf-action-row:hover:not([aria-disabled=true]){background:var(--kf-action-row-hover-bg, var(--kf-color-surface))}}.kf-action-row:active:not([aria-disabled=true]){background:var(--kf-action-row-active-bg, var(--kf-color-gray-100));transform:scale(var(--kf-press-scale))}.kf-action-row:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus-inset)}.kf-action-row[aria-disabled=true]{cursor:default}.kf-action-row[aria-disabled=true] .kf-action-row__title,.kf-action-row[aria-disabled=true] .kf-action-row__lead{color:var(--kf-color-text-muted)}.kf-action-row__lead{display:flex;flex:none;align-items:center;justify-content:center;width:24px;color:var(--kf-color-text-muted)}.kf-action-row[data-state=queued] .kf-action-row__lead{color:var(--kf-color-warning-strong)}.kf-action-row[data-tone=danger] .kf-action-row__lead,.kf-action-row[data-tone=danger] .kf-action-row__title{color:var(--kf-color-error-strong)}.kf-action-row__text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:5.5rem}.kf-action-row__title{font-size:var(--kf-font-size-body);font-weight:500;line-height:1.35;overflow-wrap:anywhere}.kf-action-row__detail{font-size:var(--kf-font-size-label);line-height:1.4;color:var(--kf-color-text-muted);overflow-wrap:anywhere}.kf-action-row__status{flex:0 1 auto;min-width:0;max-width:60%;text-wrap:balance;font-size:var(--kf-font-size-label);font-weight:var(--kf-font-weight-medium);line-height:1.3;text-align:end;color:var(--kf-color-text-muted);font-variant-numeric:tabular-nums}.kf-action-row__status--below{max-width:none;text-align:start}.kf-action-row__status[data-tone=ok]{color:var(--kf-color-success-strong)}.kf-action-row__status[data-tone=warn]{color:var(--kf-color-warning-strong)}.kf-action-row__status[data-tone=error]{color:var(--kf-color-error-strong)}.kf-action-row__status[data-tone=info]{color:var(--kf-color-info-strong)}.kf-action-row__chevron{flex:none;color:var(--kf-color-gray-500)}.kf-action-row__check{fill:none;stroke-linecap:round;stroke-linejoin:round}.kf-action-row__check circle{fill:var(--kf-color-success-strong);stroke:none;transform-origin:center}.kf-action-row__check path{stroke:var(--kf-color-white);stroke-width:2.4}.kf-action-row--completing .kf-action-row__check circle{animation:kf-action-row-pop var(--kf-motion-base) var(--kf-ease-enter) both}.kf-action-row--completing .kf-action-row__check path{stroke-dasharray:16;stroke-dashoffset:16;animation:kf-action-row-draw var(--kf-motion-slow) var(--kf-ease-standard) var(--kf-motion-fast) forwards}@keyframes kf-action-row-pop{0%{opacity:0;transform:scale(.4)}}@keyframes kf-action-row-draw{to{stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){.kf-action-row--completing .kf-action-row__check circle,.kf-action-row--completing .kf-action-row__check path{animation:none;stroke-dashoffset:0}}\n"] }]
|
|
2924
|
+
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], statusTone: [{ type: i0.Input, args: [{ isSignal: true, alias: "statusTone", required: false }] }], statusPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "statusPlacement", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], muted: [{ type: i0.Input, args: [{ isSignal: true, alias: "muted", required: false }] }], chevron: [{ type: i0.Input, args: [{ isSignal: true, alias: "chevron", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], activate: [{ type: i0.Output, args: ["activate"] }] } });
|
|
2907
2925
|
|
|
2908
2926
|
/**
|
|
2909
2927
|
* Dos variantes del mismo concepto — acceso rápido a una sección (página
|
|
@@ -3867,7 +3885,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
3867
3885
|
}, template: "<kf-icon name=\"shield-check\" size=\"sm\" />\n<kf-text as=\"span\" variant=\"overline-strong\" tone=\"warn\">Vista administrador</kf-text>\n", styles: [":host{display:inline-flex;align-items:center;gap:var(--kf-space-xs);padding:var(--kf-space-xs) var(--kf-space-sm);border-radius:var(--kf-radius-pill);background:var(--kf-color-warning-soft);border:1px solid var(--kf-color-warning);color:var(--kf-color-warning-strong);line-height:1}:host(.kf-admin-badge--inline){background:transparent;border-color:#e2b93b80}\n"] }]
|
|
3868
3886
|
}], propDecorators: { inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }] } });
|
|
3869
3887
|
|
|
3870
|
-
const TONE_ICON$
|
|
3888
|
+
const TONE_ICON$2 = {
|
|
3871
3889
|
info: 'alert-circle',
|
|
3872
3890
|
ok: 'check-circle',
|
|
3873
3891
|
warn: 'alert-triangle',
|
|
@@ -4026,7 +4044,7 @@ class Alert {
|
|
|
4026
4044
|
ariaRole = computed(() => this.tone() === 'error' || this.tone() === 'warn' ? 'alert' : 'status', /* @ts-ignore */
|
|
4027
4045
|
...(ngDevMode ? [{ debugName: "ariaRole" }] : /* istanbul ignore next */ []));
|
|
4028
4046
|
/** Glifo de trazo de `kf-icon`: lo usan `bar` y `solid`. `surface`/`elevated` dibujan el suyo relleno. */
|
|
4029
|
-
toneIcon = computed(() => TONE_ICON$
|
|
4047
|
+
toneIcon = computed(() => TONE_ICON$2[this.tone()], /* @ts-ignore */
|
|
4030
4048
|
...(ngDevMode ? [{ debugName: "toneIcon" }] : /* istanbul ignore next */ []));
|
|
4031
4049
|
/**
|
|
4032
4050
|
* Clases del contenedor: tono, forma (`bar` o `card` + apariencia), si lleva título y,
|
|
@@ -4908,7 +4926,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
4908
4926
|
|
|
4909
4927
|
/**
|
|
4910
4928
|
* Avatar de usuario: muestra una foto (`src`) o, si no hay foto, las
|
|
4911
|
-
* iniciales (`initials`) sobre un fondo
|
|
4929
|
+
* iniciales (`initials`) sobre un fondo plano del color de marca. `round`
|
|
4912
4930
|
* controla la forma: circular (por defecto) o cuadrada con radio.
|
|
4913
4931
|
*
|
|
4914
4932
|
* Con `pill`, el avatar se envuelve en una pastilla azul con un chevron a la
|
|
@@ -4938,11 +4956,11 @@ class Avatar {
|
|
|
4938
4956
|
displayInitials = computed(() => (this.initials() ?? '').slice(0, 2), /* @ts-ignore */
|
|
4939
4957
|
...(ngDevMode ? [{ debugName: "displayInitials" }] : /* istanbul ignore next */ []));
|
|
4940
4958
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Avatar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4941
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Avatar, isStandalone: true, selector: "kf-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, round: { classPropertyName: "round", publicName: "round", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pill: { classPropertyName: "pill", publicName: "pill", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-template #avatarCircle>\n <span\n class=\"kf-avatar\"\n [class.kf-avatar--square]=\"!round()\"\n [class.kf-avatar--sm]=\"size() === 'sm'\"\n [class.kf-avatar--lg]=\"size() === 'lg'\"\n >\n @if (src()) {\n <img class=\"kf-avatar__image\" [src]=\"src()\" [alt]=\"initials() || ''\" />\n } @else {\n <span class=\"kf-avatar__initials\">{{ displayInitials() }}</span>\n }\n </span>\n</ng-template>\n\n@if (pill()) {\n <span class=\"kf-avatar-pill\">\n <ng-container [ngTemplateOutlet]=\"avatarCircle\" />\n <span class=\"kf-avatar-pill__caret\" aria-hidden=\"true\"></span>\n </span>\n} @else {\n <ng-container [ngTemplateOutlet]=\"avatarCircle\" />\n}\n", styles: [":host{display:inline-block}.kf-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:40px;block-size:40px;overflow:hidden;border-radius:var(--kf-radius-pill);background:var(
|
|
4959
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Avatar, isStandalone: true, selector: "kf-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, round: { classPropertyName: "round", publicName: "round", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pill: { classPropertyName: "pill", publicName: "pill", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-template #avatarCircle>\n <span\n class=\"kf-avatar\"\n [class.kf-avatar--square]=\"!round()\"\n [class.kf-avatar--sm]=\"size() === 'sm'\"\n [class.kf-avatar--lg]=\"size() === 'lg'\"\n >\n @if (src()) {\n <img class=\"kf-avatar__image\" [src]=\"src()\" [alt]=\"initials() || ''\" />\n } @else {\n <span class=\"kf-avatar__initials\">{{ displayInitials() }}</span>\n }\n </span>\n</ng-template>\n\n@if (pill()) {\n <span class=\"kf-avatar-pill\">\n <ng-container [ngTemplateOutlet]=\"avatarCircle\" />\n <span class=\"kf-avatar-pill__caret\" aria-hidden=\"true\"></span>\n </span>\n} @else {\n <ng-container [ngTemplateOutlet]=\"avatarCircle\" />\n}\n", styles: [":host{display:inline-block}.kf-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:40px;block-size:40px;overflow:hidden;border-radius:var(--kf-radius-pill);background:var(--kf-avatar-bg, var(--kf-color-primary));box-shadow:0 0 0 1px var(--kf-avatar-ring, transparent);color:var(--kf-color-white);font:inherit;font-size:.875rem;font-weight:600;line-height:1;-webkit-user-select:none;user-select:none;flex:none}.kf-avatar--sm{inline-size:32px;block-size:32px;font-size:var(--kf-font-size-label)}.kf-avatar--lg{inline-size:56px;block-size:56px;font-size:var(--kf-font-size-title-sm)}.kf-avatar--square{border-radius:var(--kf-radius-sm)}.kf-avatar__image{inline-size:100%;block-size:100%;object-fit:cover}.kf-avatar__initials{text-transform:uppercase}.kf-avatar-pill{display:inline-flex;align-items:center;gap:var(--kf-space-xs);padding:var(--kf-space-xs) var(--kf-space-sm) var(--kf-space-xs) var(--kf-space-xs);border-radius:var(--kf-radius-pill);background:var(--kf-color-primary);cursor:pointer}.kf-avatar-pill .kf-avatar{inline-size:32px;block-size:32px;background:#ffffff2e}.kf-avatar-pill__caret{flex:none;width:8px;height:8px;border-right:2px solid var(--kf-color-white);border-bottom:2px solid var(--kf-color-white);transform:rotate(45deg);margin-top:-4px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
4942
4960
|
}
|
|
4943
4961
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Avatar, decorators: [{
|
|
4944
4962
|
type: Component,
|
|
4945
|
-
args: [{ selector: 'kf-avatar', imports: [NgTemplateOutlet], template: "<ng-template #avatarCircle>\n <span\n class=\"kf-avatar\"\n [class.kf-avatar--square]=\"!round()\"\n [class.kf-avatar--sm]=\"size() === 'sm'\"\n [class.kf-avatar--lg]=\"size() === 'lg'\"\n >\n @if (src()) {\n <img class=\"kf-avatar__image\" [src]=\"src()\" [alt]=\"initials() || ''\" />\n } @else {\n <span class=\"kf-avatar__initials\">{{ displayInitials() }}</span>\n }\n </span>\n</ng-template>\n\n@if (pill()) {\n <span class=\"kf-avatar-pill\">\n <ng-container [ngTemplateOutlet]=\"avatarCircle\" />\n <span class=\"kf-avatar-pill__caret\" aria-hidden=\"true\"></span>\n </span>\n} @else {\n <ng-container [ngTemplateOutlet]=\"avatarCircle\" />\n}\n", styles: [":host{display:inline-block}.kf-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:40px;block-size:40px;overflow:hidden;border-radius:var(--kf-radius-pill);background:var(
|
|
4963
|
+
args: [{ selector: 'kf-avatar', imports: [NgTemplateOutlet], template: "<ng-template #avatarCircle>\n <span\n class=\"kf-avatar\"\n [class.kf-avatar--square]=\"!round()\"\n [class.kf-avatar--sm]=\"size() === 'sm'\"\n [class.kf-avatar--lg]=\"size() === 'lg'\"\n >\n @if (src()) {\n <img class=\"kf-avatar__image\" [src]=\"src()\" [alt]=\"initials() || ''\" />\n } @else {\n <span class=\"kf-avatar__initials\">{{ displayInitials() }}</span>\n }\n </span>\n</ng-template>\n\n@if (pill()) {\n <span class=\"kf-avatar-pill\">\n <ng-container [ngTemplateOutlet]=\"avatarCircle\" />\n <span class=\"kf-avatar-pill__caret\" aria-hidden=\"true\"></span>\n </span>\n} @else {\n <ng-container [ngTemplateOutlet]=\"avatarCircle\" />\n}\n", styles: [":host{display:inline-block}.kf-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:40px;block-size:40px;overflow:hidden;border-radius:var(--kf-radius-pill);background:var(--kf-avatar-bg, var(--kf-color-primary));box-shadow:0 0 0 1px var(--kf-avatar-ring, transparent);color:var(--kf-color-white);font:inherit;font-size:.875rem;font-weight:600;line-height:1;-webkit-user-select:none;user-select:none;flex:none}.kf-avatar--sm{inline-size:32px;block-size:32px;font-size:var(--kf-font-size-label)}.kf-avatar--lg{inline-size:56px;block-size:56px;font-size:var(--kf-font-size-title-sm)}.kf-avatar--square{border-radius:var(--kf-radius-sm)}.kf-avatar__image{inline-size:100%;block-size:100%;object-fit:cover}.kf-avatar__initials{text-transform:uppercase}.kf-avatar-pill{display:inline-flex;align-items:center;gap:var(--kf-space-xs);padding:var(--kf-space-xs) var(--kf-space-sm) var(--kf-space-xs) var(--kf-space-xs);border-radius:var(--kf-radius-pill);background:var(--kf-color-primary);cursor:pointer}.kf-avatar-pill .kf-avatar{inline-size:32px;block-size:32px;background:#ffffff2e}.kf-avatar-pill__caret{flex:none;width:8px;height:8px;border-right:2px solid var(--kf-color-white);border-bottom:2px solid var(--kf-color-white);transform:rotate(45deg);margin-top:-4px}\n"] }]
|
|
4946
4964
|
}], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], round: [{ type: i0.Input, args: [{ isSignal: true, alias: "round", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], pill: [{ type: i0.Input, args: [{ isSignal: true, alias: "pill", required: false }] }] } });
|
|
4947
4965
|
|
|
4948
4966
|
/**
|
|
@@ -8429,6 +8447,18 @@ class Textarea {
|
|
|
8429
8447
|
readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
8430
8448
|
placeholder = input('', /* @ts-ignore */
|
|
8431
8449
|
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
8450
|
+
/** Mayúsculas automáticas del teclado virtual (`none`, `sentences`, `words`, `characters`). */
|
|
8451
|
+
autocapitalize = input(/* @ts-ignore */
|
|
8452
|
+
...(ngDevMode ? [undefined, { debugName: "autocapitalize" }] : /* istanbul ignore next */ []));
|
|
8453
|
+
/** Autocorrector del teclado de iOS (`on` | `off`). */
|
|
8454
|
+
autocorrect = input(/* @ts-ignore */
|
|
8455
|
+
...(ngDevMode ? [undefined, { debugName: "autocorrect" }] : /* istanbul ignore next */ []));
|
|
8456
|
+
/** Revisión ortográfica del navegador. */
|
|
8457
|
+
spellcheck = input(/* @ts-ignore */
|
|
8458
|
+
...(ngDevMode ? [undefined, { debugName: "spellcheck" }] : /* istanbul ignore next */ []));
|
|
8459
|
+
/** Tecla de acción del teclado virtual; sin valor, «Intro» agrega una línea. */
|
|
8460
|
+
enterkeyhint = input(/* @ts-ignore */
|
|
8461
|
+
...(ngDevMode ? [undefined, { debugName: "enterkeyhint" }] : /* istanbul ignore next */ []));
|
|
8432
8462
|
/** Filas mínimas visibles en reposo — define la altura de arranque del campo. */
|
|
8433
8463
|
minRows = input(3, /* @ts-ignore */
|
|
8434
8464
|
...(ngDevMode ? [{ debugName: "minRows" }] : /* istanbul ignore next */ []));
|
|
@@ -8547,13 +8577,13 @@ class Textarea {
|
|
|
8547
8577
|
el.style.overflowY = el.scrollHeight > maxHeight ? 'auto' : 'hidden';
|
|
8548
8578
|
}
|
|
8549
8579
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Textarea, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8550
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Textarea, isStandalone: true, selector: "kf-textarea", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, showCounter: { classPropertyName: "showCounter", publicName: "showCounter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
8580
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Textarea, isStandalone: true, selector: "kf-textarea", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocapitalize: { classPropertyName: "autocapitalize", publicName: "autocapitalize", isSignal: true, isRequired: false, transformFunction: null }, autocorrect: { classPropertyName: "autocorrect", publicName: "autocorrect", isSignal: true, isRequired: false, transformFunction: null }, spellcheck: { classPropertyName: "spellcheck", publicName: "spellcheck", isSignal: true, isRequired: false, transformFunction: null }, enterkeyhint: { classPropertyName: "enterkeyhint", publicName: "enterkeyhint", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, showCounter: { classPropertyName: "showCounter", publicName: "showCounter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
8551
8581
|
{
|
|
8552
8582
|
provide: NG_VALUE_ACCESSOR,
|
|
8553
8583
|
useExisting: forwardRef(() => Textarea),
|
|
8554
8584
|
multi: true,
|
|
8555
8585
|
},
|
|
8556
|
-
], viewQueries: [{ propertyName: "nativeTextarea", first: true, predicate: ["nativeTextarea"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (label()) {\n <kf-field-label [for]=\"textareaId\" [required]=\"required()\">{{ label() }}</kf-field-label>\n}\n<textarea\n #nativeTextarea\n [id]=\"textareaId\"\n class=\"kf-textarea__control\"\n [class.kf-textarea__control--focused]=\"focused()\"\n [class.kf-textarea__control--invalid]=\"invalid()\"\n [class.kf-textarea__control--readonly]=\"readonly()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"invalid() ? true : null\"\n [value]=\"value()\"\n (input)=\"onInput(nativeTextarea.value)\"\n (blur)=\"onBlur()\"\n (focus)=\"focused.set(true)\"\n></textarea>\n<ng-template #feedback>\n @if (errorMessage(); as message) {\n <span class=\"kf-textarea__error kf-field-error\" [id]=\"errorId\" role=\"alert\">{{ message }}</span>\n } @else if (hint()) {\n <span class=\"kf-textarea__hint kf-field-hint\" [id]=\"hintId\">{{ hint() }}</span>\n }\n</ng-template>\n@if (counterVisible()) {\n <div class=\"kf-textarea__footer\">\n <ng-container [ngTemplateOutlet]=\"feedback\" />\n <span\n class=\"kf-textarea__counter kf-field-hint\"\n [class.kf-textarea__counter--limit]=\"atLimit()\"\n [id]=\"counterId\"\n >{{ value().length }} / {{ maxlength() }}</span\n >\n </div>\n <span class=\"kf-sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ counterAnnouncement() }}</span>\n} @else {\n <ng-container [ngTemplateOutlet]=\"feedback\" />\n}\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}.kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{display:flex;flex-direction:column;gap:var(--kf-space-xs);font-family:var(--kf-font-body)}.kf-textarea__control{resize:none;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--kf-color-border-control);border-radius:var(--kf-radius-sm);background:var(--kf-color-surface);color:var(--kf-color-text);font:inherit;padding:var(--kf-space-sm);transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s),box-shadow var(--kf-motion-fast, .14s)}.kf-textarea__control::placeholder{color:var(--kf-color-text-muted)}.kf-textarea__control--focused{background:var(--kf-color-white);border-color:var(--kf-color-primary);box-shadow:var(--kf-shadow-focus);outline:none}.kf-textarea__control--invalid{border-color:var(--kf-color-error)}.kf-textarea__control--invalid.kf-textarea__control--focused{box-shadow:var(--kf-shadow-focus-error)}.kf-textarea__control:disabled{opacity:.5;cursor:not-allowed}.kf-textarea__control--readonly{background:var(--kf-color-gray-100);cursor:default}.kf-textarea__footer{display:flex;align-items:flex-start;gap:var(--kf-space-sm)}.kf-textarea__footer>.kf-textarea__hint,.kf-textarea__footer>.kf-textarea__error{flex:1 1 auto;min-width:0}.kf-textarea__counter{flex:none;margin-inline-start:auto;white-space:nowrap;font-variant-numeric:tabular-nums}.kf-textarea__counter--limit{font-weight:600;color:var(--kf-color-error-strong)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: FieldLabel, selector: "kf-field-label", inputs: ["for", "required", "visuallyHidden"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8586
|
+
], viewQueries: [{ propertyName: "nativeTextarea", first: true, predicate: ["nativeTextarea"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (label()) {\n <kf-field-label [for]=\"textareaId\" [required]=\"required()\">{{ label() }}</kf-field-label>\n}\n<textarea\n #nativeTextarea\n [id]=\"textareaId\"\n class=\"kf-textarea__control\"\n [class.kf-textarea__control--focused]=\"focused()\"\n [class.kf-textarea__control--invalid]=\"invalid()\"\n [class.kf-textarea__control--readonly]=\"readonly()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.autocapitalize]=\"autocapitalize() || null\"\n [attr.autocorrect]=\"autocorrect() || null\"\n [attr.spellcheck]=\"spellcheck() ?? null\"\n [attr.enterkeyhint]=\"enterkeyhint() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"invalid() ? true : null\"\n [value]=\"value()\"\n (input)=\"onInput(nativeTextarea.value)\"\n (blur)=\"onBlur()\"\n (focus)=\"focused.set(true)\"\n></textarea>\n<ng-template #feedback>\n @if (errorMessage(); as message) {\n <span class=\"kf-textarea__error kf-field-error\" [id]=\"errorId\" role=\"alert\">{{ message }}</span>\n } @else if (hint()) {\n <span class=\"kf-textarea__hint kf-field-hint\" [id]=\"hintId\">{{ hint() }}</span>\n }\n</ng-template>\n@if (counterVisible()) {\n <div class=\"kf-textarea__footer\">\n <ng-container [ngTemplateOutlet]=\"feedback\" />\n <span\n class=\"kf-textarea__counter kf-field-hint\"\n [class.kf-textarea__counter--limit]=\"atLimit()\"\n [id]=\"counterId\"\n >{{ value().length }} / {{ maxlength() }}</span\n >\n </div>\n <span class=\"kf-sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ counterAnnouncement() }}</span>\n} @else {\n <ng-container [ngTemplateOutlet]=\"feedback\" />\n}\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}.kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{display:flex;flex-direction:column;gap:var(--kf-space-xs);font-family:var(--kf-font-body)}.kf-textarea__control{resize:none;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--kf-color-border-control);border-radius:var(--kf-radius-sm);background:var(--kf-color-surface);color:var(--kf-color-text);font:inherit;padding:var(--kf-space-sm);transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s),box-shadow var(--kf-motion-fast, .14s)}.kf-textarea__control::placeholder{color:var(--kf-color-text-muted)}.kf-textarea__control--focused{background:var(--kf-color-white);border-color:var(--kf-color-primary);box-shadow:var(--kf-shadow-focus);outline:none}.kf-textarea__control--invalid{border-color:var(--kf-color-error)}.kf-textarea__control--invalid.kf-textarea__control--focused{box-shadow:var(--kf-shadow-focus-error)}.kf-textarea__control:disabled{opacity:.5;cursor:not-allowed}.kf-textarea__control--readonly{background:var(--kf-color-gray-100);cursor:default}.kf-textarea__footer{display:flex;align-items:flex-start;gap:var(--kf-space-sm)}.kf-textarea__footer>.kf-textarea__hint,.kf-textarea__footer>.kf-textarea__error{flex:1 1 auto;min-width:0}.kf-textarea__counter{flex:none;margin-inline-start:auto;white-space:nowrap;font-variant-numeric:tabular-nums}.kf-textarea__counter--limit{font-weight:600;color:var(--kf-color-error-strong)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: FieldLabel, selector: "kf-field-label", inputs: ["for", "required", "visuallyHidden"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8557
8587
|
}
|
|
8558
8588
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Textarea, decorators: [{
|
|
8559
8589
|
type: Component,
|
|
@@ -8563,8 +8593,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
8563
8593
|
useExisting: forwardRef(() => Textarea),
|
|
8564
8594
|
multi: true,
|
|
8565
8595
|
},
|
|
8566
|
-
], template: "@if (label()) {\n <kf-field-label [for]=\"textareaId\" [required]=\"required()\">{{ label() }}</kf-field-label>\n}\n<textarea\n #nativeTextarea\n [id]=\"textareaId\"\n class=\"kf-textarea__control\"\n [class.kf-textarea__control--focused]=\"focused()\"\n [class.kf-textarea__control--invalid]=\"invalid()\"\n [class.kf-textarea__control--readonly]=\"readonly()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"invalid() ? true : null\"\n [value]=\"value()\"\n (input)=\"onInput(nativeTextarea.value)\"\n (blur)=\"onBlur()\"\n (focus)=\"focused.set(true)\"\n></textarea>\n<ng-template #feedback>\n @if (errorMessage(); as message) {\n <span class=\"kf-textarea__error kf-field-error\" [id]=\"errorId\" role=\"alert\">{{ message }}</span>\n } @else if (hint()) {\n <span class=\"kf-textarea__hint kf-field-hint\" [id]=\"hintId\">{{ hint() }}</span>\n }\n</ng-template>\n@if (counterVisible()) {\n <div class=\"kf-textarea__footer\">\n <ng-container [ngTemplateOutlet]=\"feedback\" />\n <span\n class=\"kf-textarea__counter kf-field-hint\"\n [class.kf-textarea__counter--limit]=\"atLimit()\"\n [id]=\"counterId\"\n >{{ value().length }} / {{ maxlength() }}</span\n >\n </div>\n <span class=\"kf-sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ counterAnnouncement() }}</span>\n} @else {\n <ng-container [ngTemplateOutlet]=\"feedback\" />\n}\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}.kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{display:flex;flex-direction:column;gap:var(--kf-space-xs);font-family:var(--kf-font-body)}.kf-textarea__control{resize:none;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--kf-color-border-control);border-radius:var(--kf-radius-sm);background:var(--kf-color-surface);color:var(--kf-color-text);font:inherit;padding:var(--kf-space-sm);transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s),box-shadow var(--kf-motion-fast, .14s)}.kf-textarea__control::placeholder{color:var(--kf-color-text-muted)}.kf-textarea__control--focused{background:var(--kf-color-white);border-color:var(--kf-color-primary);box-shadow:var(--kf-shadow-focus);outline:none}.kf-textarea__control--invalid{border-color:var(--kf-color-error)}.kf-textarea__control--invalid.kf-textarea__control--focused{box-shadow:var(--kf-shadow-focus-error)}.kf-textarea__control:disabled{opacity:.5;cursor:not-allowed}.kf-textarea__control--readonly{background:var(--kf-color-gray-100);cursor:default}.kf-textarea__footer{display:flex;align-items:flex-start;gap:var(--kf-space-sm)}.kf-textarea__footer>.kf-textarea__hint,.kf-textarea__footer>.kf-textarea__error{flex:1 1 auto;min-width:0}.kf-textarea__counter{flex:none;margin-inline-start:auto;white-space:nowrap;font-variant-numeric:tabular-nums}.kf-textarea__counter--limit{font-weight:600;color:var(--kf-color-error-strong)}\n"] }]
|
|
8567
|
-
}], propDecorators: { nativeTextarea: [{ type: i0.ViewChild, args: ['nativeTextarea', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], minRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRows", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], showCounter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCounter", required: false }] }] } });
|
|
8596
|
+
], template: "@if (label()) {\n <kf-field-label [for]=\"textareaId\" [required]=\"required()\">{{ label() }}</kf-field-label>\n}\n<textarea\n #nativeTextarea\n [id]=\"textareaId\"\n class=\"kf-textarea__control\"\n [class.kf-textarea__control--focused]=\"focused()\"\n [class.kf-textarea__control--invalid]=\"invalid()\"\n [class.kf-textarea__control--readonly]=\"readonly()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.autocapitalize]=\"autocapitalize() || null\"\n [attr.autocorrect]=\"autocorrect() || null\"\n [attr.spellcheck]=\"spellcheck() ?? null\"\n [attr.enterkeyhint]=\"enterkeyhint() || null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"invalid() ? true : null\"\n [value]=\"value()\"\n (input)=\"onInput(nativeTextarea.value)\"\n (blur)=\"onBlur()\"\n (focus)=\"focused.set(true)\"\n></textarea>\n<ng-template #feedback>\n @if (errorMessage(); as message) {\n <span class=\"kf-textarea__error kf-field-error\" [id]=\"errorId\" role=\"alert\">{{ message }}</span>\n } @else if (hint()) {\n <span class=\"kf-textarea__hint kf-field-hint\" [id]=\"hintId\">{{ hint() }}</span>\n }\n</ng-template>\n@if (counterVisible()) {\n <div class=\"kf-textarea__footer\">\n <ng-container [ngTemplateOutlet]=\"feedback\" />\n <span\n class=\"kf-textarea__counter kf-field-hint\"\n [class.kf-textarea__counter--limit]=\"atLimit()\"\n [id]=\"counterId\"\n >{{ value().length }} / {{ maxlength() }}</span\n >\n </div>\n <span class=\"kf-sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ counterAnnouncement() }}</span>\n} @else {\n <ng-container [ngTemplateOutlet]=\"feedback\" />\n}\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}.kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{display:flex;flex-direction:column;gap:var(--kf-space-xs);font-family:var(--kf-font-body)}.kf-textarea__control{resize:none;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--kf-color-border-control);border-radius:var(--kf-radius-sm);background:var(--kf-color-surface);color:var(--kf-color-text);font:inherit;padding:var(--kf-space-sm);transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s),box-shadow var(--kf-motion-fast, .14s)}.kf-textarea__control::placeholder{color:var(--kf-color-text-muted)}.kf-textarea__control--focused{background:var(--kf-color-white);border-color:var(--kf-color-primary);box-shadow:var(--kf-shadow-focus);outline:none}.kf-textarea__control--invalid{border-color:var(--kf-color-error)}.kf-textarea__control--invalid.kf-textarea__control--focused{box-shadow:var(--kf-shadow-focus-error)}.kf-textarea__control:disabled{opacity:.5;cursor:not-allowed}.kf-textarea__control--readonly{background:var(--kf-color-gray-100);cursor:default}.kf-textarea__footer{display:flex;align-items:flex-start;gap:var(--kf-space-sm)}.kf-textarea__footer>.kf-textarea__hint,.kf-textarea__footer>.kf-textarea__error{flex:1 1 auto;min-width:0}.kf-textarea__counter{flex:none;margin-inline-start:auto;white-space:nowrap;font-variant-numeric:tabular-nums}.kf-textarea__counter--limit{font-weight:600;color:var(--kf-color-error-strong)}\n"] }]
|
|
8597
|
+
}], propDecorators: { nativeTextarea: [{ type: i0.ViewChild, args: ['nativeTextarea', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autocapitalize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocapitalize", required: false }] }], autocorrect: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocorrect", required: false }] }], spellcheck: [{ type: i0.Input, args: [{ isSignal: true, alias: "spellcheck", required: false }] }], enterkeyhint: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterkeyhint", required: false }] }], minRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRows", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], showCounter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCounter", required: false }] }] } });
|
|
8568
8598
|
|
|
8569
8599
|
/**
|
|
8570
8600
|
* Diálogo de confirmación sobre `kf-modal`: acción binaria (confirmar o
|
|
@@ -8705,7 +8735,7 @@ class ConfirmDialog {
|
|
|
8705
8735
|
this.host.nativeElement.querySelector('[aria-invalid="true"]')?.focus();
|
|
8706
8736
|
}
|
|
8707
8737
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: ConfirmDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8708
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: ConfirmDialog, isStandalone: true, selector: "kf-confirm-dialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, consequence: { classPropertyName: "consequence", publicName: "consequence", isSignal: true, isRequired: false, transformFunction: null }, reasonLabel: { classPropertyName: "reasonLabel", publicName: "reasonLabel", isSignal: true, isRequired: false, transformFunction: null }, reasonMinLength: { classPropertyName: "reasonMinLength", publicName: "reasonMinLength", isSignal: true, isRequired: false, transformFunction: null }, reasonPlaceholder: { classPropertyName: "reasonPlaceholder", publicName: "reasonPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, reasonHint: { classPropertyName: "reasonHint", publicName: "reasonHint", isSignal: true, isRequired: false, transformFunction: null }, reasonError: { classPropertyName: "reasonError", publicName: "reasonError", isSignal: true, isRequired: false, transformFunction: null }, acknowledgeLabel: { classPropertyName: "acknowledgeLabel", publicName: "acknowledgeLabel", isSignal: true, isRequired: false, transformFunction: null }, acknowledgeError: { classPropertyName: "acknowledgeError", publicName: "acknowledgeError", isSignal: true, isRequired: false, transformFunction: null }, autoClose: { classPropertyName: "autoClose", publicName: "autoClose", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", confirmed: "confirmed", cancelled: "cancelled" }, ngImport: i0, template: "<kf-modal\n size=\"sm\"\n [open]=\"open()\"\n [title]=\"title()\"\n [dismissible]=\"!busy()\"\n [initialFocus]=\"initialFocus()\"\n (openChange)=\"onOpenChange($event)\"\n>\n <div class=\"kf-confirm-dialog__body\">\n @if (icon(); as iconName) {\n <span\n class=\"kf-confirm-dialog__icon\"\n [class.kf-confirm-dialog__icon--danger]=\"tone() === 'danger'\"\n >\n <kf-icon [name]=\"iconName\" size=\"lg\" />\n </span>\n }\n @if (message(); as text) {\n <p class=\"kf-confirm-dialog__message\">{{ text }}</p>\n }\n <ng-content />\n @if (consequence(); as text) {\n <kf-alert [tone]=\"tone() === 'danger' ? 'warn' : 'info'\">{{ text }}</kf-alert>\n }\n @if (reasonLabel(); as label) {\n <kf-textarea\n class=\"kf-confirm-dialog__reason\"\n required\n [label]=\"label\"\n [placeholder]=\"reasonPlaceholder()\"\n [hint]=\"reasonHint()\"\n [invalid]=\"showReasonError()\"\n [errorMessage]=\"showReasonError() ? reasonErrorText() : undefined\"\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"reason()\"\n (ngModelChange)=\"onReason($event)\"\n />\n }\n @if (acknowledgeLabel(); as label) {\n <div class=\"kf-confirm-dialog__acknowledge\">\n <kf-checkbox\n [label]=\"label\"\n [checked]=\"acknowledged()\"\n [invalid]=\"showAcknowledgeError()\"\n (checkedChange)=\"onAcknowledge($event)\"\n />\n @if (showAcknowledgeError()) {\n <span class=\"kf-confirm-dialog__error kf-field-error\" role=\"alert\">{{\n acknowledgeError()\n }}</span>\n }\n </div>\n }\n </div>\n <div footer class=\"kf-confirm-dialog__actions\">\n <kf-button\n class=\"kf-confirm-dialog__cancel\"\n variant=\"outline\"\n type=\"button\"\n [disabled]=\"busy()\"\n (click)=\"cancel()\"\n >\n {{ cancelLabel() }}\n </kf-button>\n <kf-button\n class=\"kf-confirm-dialog__confirm\"\n type=\"button\"\n [variant]=\"tone() === 'danger' ? 'danger' : 'primary'\"\n [loading]=\"busy()\"\n (click)=\"confirm()\"\n >\n {{ confirmLabel() }}\n </kf-button>\n </div>\n</kf-modal>\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}:host{display:contents}.kf-confirm-dialog__body{display:flex;flex-direction:column;gap:var(--kf-space-md)}.kf-confirm-dialog__message{margin:0;font-size:var(--kf-font-size-body-sm);color:var(--kf-color-text-muted)}.kf-confirm-dialog__icon{display:flex;align-items:center;justify-content:center;align-self:center;width:48px;height:48px;border-radius:var(--kf-radius-pill);background:var(--kf-color-primary-soft);color:var(--kf-color-primary)}.kf-confirm-dialog__icon--danger{background:var(--kf-color-error-soft);color:var(--kf-color-error-strong)}.kf-confirm-dialog__acknowledge{display:flex;flex-direction:column;gap:var(--kf-space-xs)}.kf-confirm-dialog__actions{display:flex;justify-content:flex-end;gap:var(--kf-space-sm)}@media(max-width:480px){.kf-confirm-dialog__body{text-align:center}.kf-confirm-dialog__actions{flex-direction:column-reverse;align-items:stretch}}\n"], dependencies: [{ kind: "component", type: Alert, selector: "kf-alert", inputs: ["tone", "variant", "appearance", "iconAlign", "title", "dismissible", "actionsInline", "open"], outputs: ["openChange"] }, { kind: "component", type: Button, selector: "kf-button", inputs: ["variant", "size", "shape", "disabled", "type", "icon", "block", "loading", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDisabled", "ariaDescribedby", "attention", "ariaControls", "ariaHaspopup"], outputs: ["disabledClick"] }, { kind: "component", type: Checkbox, selector: "kf-checkbox", inputs: ["label", "ariaLabel", "checked", "disabled", "indeterminate", "invalid"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "component", type: Modal, selector: "kf-modal", inputs: ["title", "open", "dismissible", "width", "size", "dividers", "maxHeight", "fullscreenOnMobile", "initialFocus"], outputs: ["openChange"] }, { kind: "component", type: Textarea, selector: "kf-textarea", inputs: ["label", "required", "hint", "invalid", "errorMessage", "disabled", "readonly", "placeholder", "minRows", "maxRows", "maxlength", "showCounter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8738
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: ConfirmDialog, isStandalone: true, selector: "kf-confirm-dialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, consequence: { classPropertyName: "consequence", publicName: "consequence", isSignal: true, isRequired: false, transformFunction: null }, reasonLabel: { classPropertyName: "reasonLabel", publicName: "reasonLabel", isSignal: true, isRequired: false, transformFunction: null }, reasonMinLength: { classPropertyName: "reasonMinLength", publicName: "reasonMinLength", isSignal: true, isRequired: false, transformFunction: null }, reasonPlaceholder: { classPropertyName: "reasonPlaceholder", publicName: "reasonPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, reasonHint: { classPropertyName: "reasonHint", publicName: "reasonHint", isSignal: true, isRequired: false, transformFunction: null }, reasonError: { classPropertyName: "reasonError", publicName: "reasonError", isSignal: true, isRequired: false, transformFunction: null }, acknowledgeLabel: { classPropertyName: "acknowledgeLabel", publicName: "acknowledgeLabel", isSignal: true, isRequired: false, transformFunction: null }, acknowledgeError: { classPropertyName: "acknowledgeError", publicName: "acknowledgeError", isSignal: true, isRequired: false, transformFunction: null }, autoClose: { classPropertyName: "autoClose", publicName: "autoClose", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", confirmed: "confirmed", cancelled: "cancelled" }, ngImport: i0, template: "<kf-modal\n size=\"sm\"\n [open]=\"open()\"\n [title]=\"title()\"\n [dismissible]=\"!busy()\"\n [initialFocus]=\"initialFocus()\"\n (openChange)=\"onOpenChange($event)\"\n>\n <div class=\"kf-confirm-dialog__body\">\n @if (icon(); as iconName) {\n <span\n class=\"kf-confirm-dialog__icon\"\n [class.kf-confirm-dialog__icon--danger]=\"tone() === 'danger'\"\n >\n <kf-icon [name]=\"iconName\" size=\"lg\" />\n </span>\n }\n @if (message(); as text) {\n <p class=\"kf-confirm-dialog__message\">{{ text }}</p>\n }\n <ng-content />\n @if (consequence(); as text) {\n <kf-alert [tone]=\"tone() === 'danger' ? 'warn' : 'info'\">{{ text }}</kf-alert>\n }\n @if (reasonLabel(); as label) {\n <kf-textarea\n class=\"kf-confirm-dialog__reason\"\n required\n [label]=\"label\"\n [placeholder]=\"reasonPlaceholder()\"\n [hint]=\"reasonHint()\"\n [invalid]=\"showReasonError()\"\n [errorMessage]=\"showReasonError() ? reasonErrorText() : undefined\"\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"reason()\"\n (ngModelChange)=\"onReason($event)\"\n />\n }\n @if (acknowledgeLabel(); as label) {\n <div class=\"kf-confirm-dialog__acknowledge\">\n <kf-checkbox\n [label]=\"label\"\n [checked]=\"acknowledged()\"\n [invalid]=\"showAcknowledgeError()\"\n (checkedChange)=\"onAcknowledge($event)\"\n />\n @if (showAcknowledgeError()) {\n <span class=\"kf-confirm-dialog__error kf-field-error\" role=\"alert\">{{\n acknowledgeError()\n }}</span>\n }\n </div>\n }\n </div>\n <div footer class=\"kf-confirm-dialog__actions\">\n <kf-button\n class=\"kf-confirm-dialog__cancel\"\n variant=\"outline\"\n type=\"button\"\n [disabled]=\"busy()\"\n (click)=\"cancel()\"\n >\n {{ cancelLabel() }}\n </kf-button>\n <kf-button\n class=\"kf-confirm-dialog__confirm\"\n type=\"button\"\n [variant]=\"tone() === 'danger' ? 'danger' : 'primary'\"\n [loading]=\"busy()\"\n (click)=\"confirm()\"\n >\n {{ confirmLabel() }}\n </kf-button>\n </div>\n</kf-modal>\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}:host{display:contents}.kf-confirm-dialog__body{display:flex;flex-direction:column;gap:var(--kf-space-md)}.kf-confirm-dialog__message{margin:0;font-size:var(--kf-font-size-body-sm);color:var(--kf-color-text-muted)}.kf-confirm-dialog__icon{display:flex;align-items:center;justify-content:center;align-self:center;width:48px;height:48px;border-radius:var(--kf-radius-pill);background:var(--kf-color-primary-soft);color:var(--kf-color-primary)}.kf-confirm-dialog__icon--danger{background:var(--kf-color-error-soft);color:var(--kf-color-error-strong)}.kf-confirm-dialog__acknowledge{display:flex;flex-direction:column;gap:var(--kf-space-xs)}.kf-confirm-dialog__actions{display:flex;justify-content:flex-end;gap:var(--kf-space-sm)}@media(max-width:480px){.kf-confirm-dialog__body{text-align:center}.kf-confirm-dialog__actions{flex-direction:column-reverse;align-items:stretch}}\n"], dependencies: [{ kind: "component", type: Alert, selector: "kf-alert", inputs: ["tone", "variant", "appearance", "iconAlign", "title", "dismissible", "actionsInline", "open"], outputs: ["openChange"] }, { kind: "component", type: Button, selector: "kf-button", inputs: ["variant", "size", "shape", "disabled", "type", "icon", "block", "loading", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDisabled", "ariaDescribedby", "attention", "ariaControls", "ariaHaspopup"], outputs: ["disabledClick"] }, { kind: "component", type: Checkbox, selector: "kf-checkbox", inputs: ["label", "ariaLabel", "checked", "disabled", "indeterminate", "invalid"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "component", type: Modal, selector: "kf-modal", inputs: ["title", "open", "dismissible", "width", "size", "dividers", "maxHeight", "fullscreenOnMobile", "initialFocus"], outputs: ["openChange"] }, { kind: "component", type: Textarea, selector: "kf-textarea", inputs: ["label", "required", "hint", "invalid", "errorMessage", "disabled", "readonly", "placeholder", "autocapitalize", "autocorrect", "spellcheck", "enterkeyhint", "minRows", "maxRows", "maxlength", "showCounter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8709
8739
|
}
|
|
8710
8740
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: ConfirmDialog, decorators: [{
|
|
8711
8741
|
type: Component,
|
|
@@ -9063,6 +9093,18 @@ class Input {
|
|
|
9063
9093
|
* el `type`. Sin valor, el atributo no se renderiza. */
|
|
9064
9094
|
inputmode = input(/* @ts-ignore */
|
|
9065
9095
|
...(ngDevMode ? [undefined, { debugName: "inputmode" }] : /* istanbul ignore next */ []));
|
|
9096
|
+
/** Mayúsculas automáticas del teclado virtual (`none`, `sentences`, `words`, `characters`). Sin valor, no se renderiza. */
|
|
9097
|
+
autocapitalize = input(/* @ts-ignore */
|
|
9098
|
+
...(ngDevMode ? [undefined, { debugName: "autocapitalize" }] : /* istanbul ignore next */ []));
|
|
9099
|
+
/** Autocorrector del teclado de iOS (`on` | `off`): conviene `off` en códigos y placas. */
|
|
9100
|
+
autocorrect = input(/* @ts-ignore */
|
|
9101
|
+
...(ngDevMode ? [undefined, { debugName: "autocorrect" }] : /* istanbul ignore next */ []));
|
|
9102
|
+
/** Revisión ortográfica del navegador; `false` en códigos, nombres y búsquedas. */
|
|
9103
|
+
spellcheck = input(/* @ts-ignore */
|
|
9104
|
+
...(ngDevMode ? [undefined, { debugName: "spellcheck" }] : /* istanbul ignore next */ []));
|
|
9105
|
+
/** Tecla de acción del teclado virtual (`next`, `done`, `search`, `send`, `go`, `enter`). */
|
|
9106
|
+
enterkeyhint = input(/* @ts-ignore */
|
|
9107
|
+
...(ngDevMode ? [undefined, { debugName: "enterkeyhint" }] : /* istanbul ignore next */ []));
|
|
9066
9108
|
/** Límite inferior del control (`min` nativo): número, o texto para fechas/horas (`'2026-01-01'`). */
|
|
9067
9109
|
min = input(null, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: normalizeBound });
|
|
9068
9110
|
/** Límite superior del control (`max` nativo). Ver `min`. */
|
|
@@ -9180,13 +9222,13 @@ class Input {
|
|
|
9180
9222
|
this.passwordVisible.update((visible) => !visible);
|
|
9181
9223
|
}
|
|
9182
9224
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Input, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9183
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Input, isStandalone: true, selector: "kf-input", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputmode: { classPropertyName: "inputmode", publicName: "inputmode", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, toggleable: { classPropertyName: "toggleable", publicName: "toggleable", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cleared: "cleared" }, providers: [
|
|
9225
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Input, isStandalone: true, selector: "kf-input", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputmode: { classPropertyName: "inputmode", publicName: "inputmode", isSignal: true, isRequired: false, transformFunction: null }, autocapitalize: { classPropertyName: "autocapitalize", publicName: "autocapitalize", isSignal: true, isRequired: false, transformFunction: null }, autocorrect: { classPropertyName: "autocorrect", publicName: "autocorrect", isSignal: true, isRequired: false, transformFunction: null }, spellcheck: { classPropertyName: "spellcheck", publicName: "spellcheck", isSignal: true, isRequired: false, transformFunction: null }, enterkeyhint: { classPropertyName: "enterkeyhint", publicName: "enterkeyhint", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, toggleable: { classPropertyName: "toggleable", publicName: "toggleable", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cleared: "cleared" }, providers: [
|
|
9184
9226
|
{
|
|
9185
9227
|
provide: NG_VALUE_ACCESSOR,
|
|
9186
9228
|
useExisting: forwardRef(() => Input),
|
|
9187
9229
|
multi: true,
|
|
9188
9230
|
},
|
|
9189
|
-
], viewQueries: [{ propertyName: "nativeInput", first: true, predicate: ["nativeInput"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (label()) {\n <kf-field-label [for]=\"inputId\" [required]=\"required()\" [visuallyHidden]=\"hideLabel()\">{{\n label()\n }}</kf-field-label>\n}\n<div\n class=\"kf-input__field\"\n [class.kf-input__field--sm]=\"size() === 'sm'\"\n [class.kf-input__field--disabled]=\"isDisabled()\"\n [class.kf-input__field--readonly]=\"readonly()\"\n [class.kf-input__field--focused]=\"focused()\"\n [class.kf-input__field--invalid]=\"invalid()\"\n>\n @if (icon(); as iconName) {\n <kf-icon class=\"kf-input__icon\" [name]=\"iconName\" size=\"sm\" />\n }\n <input\n #nativeInput\n [id]=\"inputId\"\n class=\"kf-input__control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.name]=\"name() || null\"\n [attr.inputmode]=\"inputmode() || null\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.maxlength]=\"maxlength()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-describedby]=\"errorMessage() ? errorId : hint() ? hintId : null\"\n [attr.aria-invalid]=\"invalid() ? true : null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [value]=\"value()\"\n (input)=\"onInput(nativeInput.value)\"\n (blur)=\"onBlur()\"\n (focus)=\"focused.set(true)\"\n />\n @if (showClear()) {\n <button\n type=\"button\"\n class=\"kf-input__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onClear()\"\n >\n <kf-icon name=\"x\" size=\"sm\" />\n </button>\n }\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"kf-input__toggle\"\n [attr.aria-label]=\"passwordVisible() ? 'Ocultar contrase\u00F1a' : 'Mostrar contrase\u00F1a'\"\n [attr.aria-pressed]=\"passwordVisible()\"\n (click)=\"onTogglePasswordVisibility()\"\n >\n <kf-icon [name]=\"passwordVisible() ? 'eye-off' : 'eye'\" size=\"sm\" />\n </button>\n } @else if (suffix()) {\n <span class=\"kf-input__suffix\">{{ suffix() }}</span>\n }\n <ng-content select=\"[kf-input-trailing]\" />\n</div>\n@if (errorMessage(); as message) {\n <span class=\"kf-input__error kf-field-error\" [id]=\"errorId\" role=\"alert\">{{ message }}</span>\n} @else if (hint()) {\n <span class=\"kf-input__hint kf-field-hint\" [id]=\"hintId\">{{ hint() }}</span>\n}\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}:host{display:flex;flex-direction:column;gap:var(--kf-space-xs);font-family:var(--kf-font-body)}.kf-input__field{display:flex;align-items:center;gap:var(--kf-space-sm);min-height:var(--kf-control-min-height, auto);padding:0 var(--kf-space-sm);background:var(--kf-color-surface);border:1px solid var(--kf-color-border-control);border-radius:var(--kf-radius-sm);transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s),box-shadow var(--kf-motion-fast, .14s)}.kf-input__field--sm{box-sizing:border-box;min-height:max(var(--kf-control-sm, 2rem),var(--kf-control-min-height, 0px));font-size:var(--kf-font-size-body-sm)}.kf-input__field--sm .kf-input__control{padding-block:0}.kf-input__field--focused{background:var(--kf-color-white);border-color:var(--kf-color-primary);box-shadow:var(--kf-shadow-focus)}.kf-input__field--invalid{border-color:var(--kf-color-error)}.kf-input__field--invalid.kf-input__field--focused{box-shadow:var(--kf-shadow-focus-error)}.kf-input__field--disabled{opacity:.5}.kf-input__field--readonly{background:var(--kf-color-gray-100)}.kf-input__control:read-only{cursor:default}.kf-input__icon{color:var(--kf-color-text-muted)}.kf-input__field--invalid .kf-input__icon{color:var(--kf-color-error)}.kf-input__control{flex:1;align-self:stretch;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:var(--kf-color-text);padding:var(--kf-space-sm) 0}.kf-input__control::placeholder{color:var(--kf-color-text-muted)}.kf-input__control:disabled{cursor:not-allowed}.kf-input__suffix{flex:none;color:var(--kf-color-text-muted);font-size:.875rem}.kf-input__control::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.kf-input__clear,.kf-input__toggle{flex:none;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;padding:var(--kf-space-xs);margin:0 calc(var(--kf-space-xs) * -1);color:var(--kf-color-text-muted);cursor:pointer;border-radius:var(--kf-radius-xs);transition:color var(--kf-motion-fast, .14s)}.kf-input__clear:hover,.kf-input__toggle:hover{color:var(--kf-color-text)}.kf-input__clear:focus-visible,.kf-input__toggle:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: FieldLabel, selector: "kf-field-label", inputs: ["for", "required", "visuallyHidden"] }, { kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9231
|
+
], viewQueries: [{ propertyName: "nativeInput", first: true, predicate: ["nativeInput"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (label()) {\n <kf-field-label [for]=\"inputId\" [required]=\"required()\" [visuallyHidden]=\"hideLabel()\">{{\n label()\n }}</kf-field-label>\n}\n<div\n class=\"kf-input__field\"\n [class.kf-input__field--sm]=\"size() === 'sm'\"\n [class.kf-input__field--disabled]=\"isDisabled()\"\n [class.kf-input__field--readonly]=\"readonly()\"\n [class.kf-input__field--focused]=\"focused()\"\n [class.kf-input__field--invalid]=\"invalid()\"\n>\n @if (icon(); as iconName) {\n <kf-icon class=\"kf-input__icon\" [name]=\"iconName\" size=\"sm\" />\n }\n <input\n #nativeInput\n [id]=\"inputId\"\n class=\"kf-input__control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.name]=\"name() || null\"\n [attr.inputmode]=\"inputmode() || null\"\n [attr.autocapitalize]=\"autocapitalize() || null\"\n [attr.autocorrect]=\"autocorrect() || null\"\n [attr.spellcheck]=\"spellcheck() ?? null\"\n [attr.enterkeyhint]=\"enterkeyhint() || null\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.maxlength]=\"maxlength()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-describedby]=\"errorMessage() ? errorId : hint() ? hintId : null\"\n [attr.aria-invalid]=\"invalid() ? true : null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [value]=\"value()\"\n (input)=\"onInput(nativeInput.value)\"\n (blur)=\"onBlur()\"\n (focus)=\"focused.set(true)\"\n />\n @if (showClear()) {\n <button\n type=\"button\"\n class=\"kf-input__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onClear()\"\n >\n <kf-icon name=\"x\" size=\"sm\" />\n </button>\n }\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"kf-input__toggle\"\n [attr.aria-label]=\"passwordVisible() ? 'Ocultar contrase\u00F1a' : 'Mostrar contrase\u00F1a'\"\n [attr.aria-pressed]=\"passwordVisible()\"\n (click)=\"onTogglePasswordVisibility()\"\n >\n <kf-icon [name]=\"passwordVisible() ? 'eye-off' : 'eye'\" size=\"sm\" />\n </button>\n } @else if (suffix()) {\n <span class=\"kf-input__suffix\">{{ suffix() }}</span>\n }\n <ng-content select=\"[kf-input-trailing]\" />\n</div>\n@if (errorMessage(); as message) {\n <span class=\"kf-input__error kf-field-error\" [id]=\"errorId\" role=\"alert\">{{ message }}</span>\n} @else if (hint()) {\n <span class=\"kf-input__hint kf-field-hint\" [id]=\"hintId\">{{ hint() }}</span>\n}\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}:host{display:flex;flex-direction:column;gap:var(--kf-space-xs);font-family:var(--kf-font-body)}.kf-input__field{display:flex;align-items:center;gap:var(--kf-space-sm);min-height:var(--kf-control-min-height, auto);padding:0 var(--kf-space-sm);background:var(--kf-color-surface);border:1px solid var(--kf-color-border-control);border-radius:var(--kf-radius-sm);transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s),box-shadow var(--kf-motion-fast, .14s)}.kf-input__field--sm{box-sizing:border-box;min-height:max(var(--kf-control-sm, 2rem),var(--kf-control-min-height, 0px));font-size:var(--kf-font-size-body-sm)}.kf-input__field--sm .kf-input__control{padding-block:0}.kf-input__field--focused{background:var(--kf-color-white);border-color:var(--kf-color-primary);box-shadow:var(--kf-shadow-focus)}.kf-input__field--invalid{border-color:var(--kf-color-error)}.kf-input__field--invalid.kf-input__field--focused{box-shadow:var(--kf-shadow-focus-error)}.kf-input__field--disabled{opacity:.5}.kf-input__field--readonly{background:var(--kf-color-gray-100)}.kf-input__control:read-only{cursor:default}.kf-input__icon{color:var(--kf-color-text-muted)}.kf-input__field--invalid .kf-input__icon{color:var(--kf-color-error)}.kf-input__control{flex:1;align-self:stretch;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:var(--kf-color-text);padding:var(--kf-space-sm) 0}.kf-input__control::placeholder{color:var(--kf-color-text-muted)}.kf-input__control:disabled{cursor:not-allowed}.kf-input__suffix{flex:none;color:var(--kf-color-text-muted);font-size:.875rem}.kf-input__control::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.kf-input__clear,.kf-input__toggle{flex:none;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;padding:var(--kf-space-xs);margin:0 calc(var(--kf-space-xs) * -1);color:var(--kf-color-text-muted);cursor:pointer;border-radius:var(--kf-radius-xs);transition:color var(--kf-motion-fast, .14s)}.kf-input__clear:hover,.kf-input__toggle:hover{color:var(--kf-color-text)}.kf-input__clear:focus-visible,.kf-input__toggle:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: FieldLabel, selector: "kf-field-label", inputs: ["for", "required", "visuallyHidden"] }, { kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9190
9232
|
}
|
|
9191
9233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Input, decorators: [{
|
|
9192
9234
|
type: Component,
|
|
@@ -9196,8 +9238,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
9196
9238
|
useExisting: forwardRef(() => Input),
|
|
9197
9239
|
multi: true,
|
|
9198
9240
|
},
|
|
9199
|
-
], template: "@if (label()) {\n <kf-field-label [for]=\"inputId\" [required]=\"required()\" [visuallyHidden]=\"hideLabel()\">{{\n label()\n }}</kf-field-label>\n}\n<div\n class=\"kf-input__field\"\n [class.kf-input__field--sm]=\"size() === 'sm'\"\n [class.kf-input__field--disabled]=\"isDisabled()\"\n [class.kf-input__field--readonly]=\"readonly()\"\n [class.kf-input__field--focused]=\"focused()\"\n [class.kf-input__field--invalid]=\"invalid()\"\n>\n @if (icon(); as iconName) {\n <kf-icon class=\"kf-input__icon\" [name]=\"iconName\" size=\"sm\" />\n }\n <input\n #nativeInput\n [id]=\"inputId\"\n class=\"kf-input__control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.name]=\"name() || null\"\n [attr.inputmode]=\"inputmode() || null\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.maxlength]=\"maxlength()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-describedby]=\"errorMessage() ? errorId : hint() ? hintId : null\"\n [attr.aria-invalid]=\"invalid() ? true : null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [value]=\"value()\"\n (input)=\"onInput(nativeInput.value)\"\n (blur)=\"onBlur()\"\n (focus)=\"focused.set(true)\"\n />\n @if (showClear()) {\n <button\n type=\"button\"\n class=\"kf-input__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onClear()\"\n >\n <kf-icon name=\"x\" size=\"sm\" />\n </button>\n }\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"kf-input__toggle\"\n [attr.aria-label]=\"passwordVisible() ? 'Ocultar contrase\u00F1a' : 'Mostrar contrase\u00F1a'\"\n [attr.aria-pressed]=\"passwordVisible()\"\n (click)=\"onTogglePasswordVisibility()\"\n >\n <kf-icon [name]=\"passwordVisible() ? 'eye-off' : 'eye'\" size=\"sm\" />\n </button>\n } @else if (suffix()) {\n <span class=\"kf-input__suffix\">{{ suffix() }}</span>\n }\n <ng-content select=\"[kf-input-trailing]\" />\n</div>\n@if (errorMessage(); as message) {\n <span class=\"kf-input__error kf-field-error\" [id]=\"errorId\" role=\"alert\">{{ message }}</span>\n} @else if (hint()) {\n <span class=\"kf-input__hint kf-field-hint\" [id]=\"hintId\">{{ hint() }}</span>\n}\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}:host{display:flex;flex-direction:column;gap:var(--kf-space-xs);font-family:var(--kf-font-body)}.kf-input__field{display:flex;align-items:center;gap:var(--kf-space-sm);min-height:var(--kf-control-min-height, auto);padding:0 var(--kf-space-sm);background:var(--kf-color-surface);border:1px solid var(--kf-color-border-control);border-radius:var(--kf-radius-sm);transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s),box-shadow var(--kf-motion-fast, .14s)}.kf-input__field--sm{box-sizing:border-box;min-height:max(var(--kf-control-sm, 2rem),var(--kf-control-min-height, 0px));font-size:var(--kf-font-size-body-sm)}.kf-input__field--sm .kf-input__control{padding-block:0}.kf-input__field--focused{background:var(--kf-color-white);border-color:var(--kf-color-primary);box-shadow:var(--kf-shadow-focus)}.kf-input__field--invalid{border-color:var(--kf-color-error)}.kf-input__field--invalid.kf-input__field--focused{box-shadow:var(--kf-shadow-focus-error)}.kf-input__field--disabled{opacity:.5}.kf-input__field--readonly{background:var(--kf-color-gray-100)}.kf-input__control:read-only{cursor:default}.kf-input__icon{color:var(--kf-color-text-muted)}.kf-input__field--invalid .kf-input__icon{color:var(--kf-color-error)}.kf-input__control{flex:1;align-self:stretch;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:var(--kf-color-text);padding:var(--kf-space-sm) 0}.kf-input__control::placeholder{color:var(--kf-color-text-muted)}.kf-input__control:disabled{cursor:not-allowed}.kf-input__suffix{flex:none;color:var(--kf-color-text-muted);font-size:.875rem}.kf-input__control::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.kf-input__clear,.kf-input__toggle{flex:none;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;padding:var(--kf-space-xs);margin:0 calc(var(--kf-space-xs) * -1);color:var(--kf-color-text-muted);cursor:pointer;border-radius:var(--kf-radius-xs);transition:color var(--kf-motion-fast, .14s)}.kf-input__clear:hover,.kf-input__toggle:hover{color:var(--kf-color-text)}.kf-input__clear:focus-visible,.kf-input__toggle:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}\n"] }]
|
|
9200
|
-
}], propDecorators: { nativeInput: [{ type: i0.ViewChild, args: ['nativeInput', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], inputmode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputmode", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], toggleable: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleable", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], cleared: [{ type: i0.Output, args: ["cleared"] }] } });
|
|
9241
|
+
], template: "@if (label()) {\n <kf-field-label [for]=\"inputId\" [required]=\"required()\" [visuallyHidden]=\"hideLabel()\">{{\n label()\n }}</kf-field-label>\n}\n<div\n class=\"kf-input__field\"\n [class.kf-input__field--sm]=\"size() === 'sm'\"\n [class.kf-input__field--disabled]=\"isDisabled()\"\n [class.kf-input__field--readonly]=\"readonly()\"\n [class.kf-input__field--focused]=\"focused()\"\n [class.kf-input__field--invalid]=\"invalid()\"\n>\n @if (icon(); as iconName) {\n <kf-icon class=\"kf-input__icon\" [name]=\"iconName\" size=\"sm\" />\n }\n <input\n #nativeInput\n [id]=\"inputId\"\n class=\"kf-input__control\"\n [type]=\"effectiveType()\"\n [placeholder]=\"placeholder()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.name]=\"name() || null\"\n [attr.inputmode]=\"inputmode() || null\"\n [attr.autocapitalize]=\"autocapitalize() || null\"\n [attr.autocorrect]=\"autocorrect() || null\"\n [attr.spellcheck]=\"spellcheck() ?? null\"\n [attr.enterkeyhint]=\"enterkeyhint() || null\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.maxlength]=\"maxlength()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-describedby]=\"errorMessage() ? errorId : hint() ? hintId : null\"\n [attr.aria-invalid]=\"invalid() ? true : null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [value]=\"value()\"\n (input)=\"onInput(nativeInput.value)\"\n (blur)=\"onBlur()\"\n (focus)=\"focused.set(true)\"\n />\n @if (showClear()) {\n <button\n type=\"button\"\n class=\"kf-input__clear\"\n [attr.aria-label]=\"clearLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onClear()\"\n >\n <kf-icon name=\"x\" size=\"sm\" />\n </button>\n }\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"kf-input__toggle\"\n [attr.aria-label]=\"passwordVisible() ? 'Ocultar contrase\u00F1a' : 'Mostrar contrase\u00F1a'\"\n [attr.aria-pressed]=\"passwordVisible()\"\n (click)=\"onTogglePasswordVisibility()\"\n >\n <kf-icon [name]=\"passwordVisible() ? 'eye-off' : 'eye'\" size=\"sm\" />\n </button>\n } @else if (suffix()) {\n <span class=\"kf-input__suffix\">{{ suffix() }}</span>\n }\n <ng-content select=\"[kf-input-trailing]\" />\n</div>\n@if (errorMessage(); as message) {\n <span class=\"kf-input__error kf-field-error\" [id]=\"errorId\" role=\"alert\">{{ message }}</span>\n} @else if (hint()) {\n <span class=\"kf-input__hint kf-field-hint\" [id]=\"hintId\">{{ hint() }}</span>\n}\n", styles: [".kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}:host{display:flex;flex-direction:column;gap:var(--kf-space-xs);font-family:var(--kf-font-body)}.kf-input__field{display:flex;align-items:center;gap:var(--kf-space-sm);min-height:var(--kf-control-min-height, auto);padding:0 var(--kf-space-sm);background:var(--kf-color-surface);border:1px solid var(--kf-color-border-control);border-radius:var(--kf-radius-sm);transition:background var(--kf-motion-fast, .14s),border-color var(--kf-motion-fast, .14s),box-shadow var(--kf-motion-fast, .14s)}.kf-input__field--sm{box-sizing:border-box;min-height:max(var(--kf-control-sm, 2rem),var(--kf-control-min-height, 0px));font-size:var(--kf-font-size-body-sm)}.kf-input__field--sm .kf-input__control{padding-block:0}.kf-input__field--focused{background:var(--kf-color-white);border-color:var(--kf-color-primary);box-shadow:var(--kf-shadow-focus)}.kf-input__field--invalid{border-color:var(--kf-color-error)}.kf-input__field--invalid.kf-input__field--focused{box-shadow:var(--kf-shadow-focus-error)}.kf-input__field--disabled{opacity:.5}.kf-input__field--readonly{background:var(--kf-color-gray-100)}.kf-input__control:read-only{cursor:default}.kf-input__icon{color:var(--kf-color-text-muted)}.kf-input__field--invalid .kf-input__icon{color:var(--kf-color-error)}.kf-input__control{flex:1;align-self:stretch;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:var(--kf-color-text);padding:var(--kf-space-sm) 0}.kf-input__control::placeholder{color:var(--kf-color-text-muted)}.kf-input__control:disabled{cursor:not-allowed}.kf-input__suffix{flex:none;color:var(--kf-color-text-muted);font-size:.875rem}.kf-input__control::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.kf-input__clear,.kf-input__toggle{flex:none;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;padding:var(--kf-space-xs);margin:0 calc(var(--kf-space-xs) * -1);color:var(--kf-color-text-muted);cursor:pointer;border-radius:var(--kf-radius-xs);transition:color var(--kf-motion-fast, .14s)}.kf-input__clear:hover,.kf-input__toggle:hover{color:var(--kf-color-text)}.kf-input__clear:focus-visible,.kf-input__toggle:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}\n"] }]
|
|
9242
|
+
}], propDecorators: { nativeInput: [{ type: i0.ViewChild, args: ['nativeInput', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], inputmode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputmode", required: false }] }], autocapitalize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocapitalize", required: false }] }], autocorrect: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocorrect", required: false }] }], spellcheck: [{ type: i0.Input, args: [{ isSignal: true, alias: "spellcheck", required: false }] }], enterkeyhint: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterkeyhint", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], toggleable: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleable", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], cleared: [{ type: i0.Output, args: ["cleared"] }] } });
|
|
9201
9243
|
|
|
9202
9244
|
const PART_LENGTH = { day: 2, month: 2, year: 4 };
|
|
9203
9245
|
const FALLBACK = { order: ['day', 'month', 'year'], separator: '/' };
|
|
@@ -9523,7 +9565,7 @@ class DateField {
|
|
|
9523
9565
|
?.focus();
|
|
9524
9566
|
}
|
|
9525
9567
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: DateField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9526
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.0", type: DateField, isStandalone: true, selector: "kf-date-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, availableDates: { classPropertyName: "availableDates", publicName: "availableDates", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, presentation: { classPropertyName: "presentation", publicName: "presentation", isSignal: true, isRequired: false, transformFunction: null }, parseErrorMessage: { classPropertyName: "parseErrorMessage", publicName: "parseErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, rangeErrorMessage: { classPropertyName: "rangeErrorMessage", publicName: "rangeErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, openCalendarLabel: { classPropertyName: "openCalendarLabel", publicName: "openCalendarLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, viewQueries: [{ propertyName: "field", first: true, predicate: Input, descendants: true, isSignal: true }, { propertyName: "fieldHost", first: true, predicate: Input, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "panel", first: true, predicate: DropdownPanel, descendants: true, isSignal: true }, { propertyName: "sheetTemplate", first: true, predicate: ["sheetTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #calendarTemplate>\n <kf-calendar\n [value]=\"value()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [availableDates]=\"availableDates()\"\n [monthNames]=\"monthNames()\"\n [weekdayLabels]=\"weekdayLabels()\"\n [weekdayNames]=\"weekdayNames()\"\n [ariaLabel]=\"label()\"\n (valueChange)=\"pick($event)\"\n />\n</ng-template>\n\n<kf-dropdown [(open)]=\"popoverOpen\" [anchor]=\"fieldHost()\" [autoFocus]=\"false\">\n <kf-input\n [label]=\"label()\"\n [hideLabel]=\"hideLabel()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [invalid]=\"fieldInvalid()\"\n [errorMessage]=\"fieldError()\"\n [hint]=\"hint()\"\n [placeholder]=\"placeholder()\"\n [maxlength]=\"maxLength()\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"text()\"\n (ngModelChange)=\"onText($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <kf-button\n kf-input-trailing\n class=\"kf-date-field__toggle\"\n variant=\"ghost\"\n shape=\"circle\"\n size=\"sm\"\n icon=\"calendar\"\n type=\"button\"\n [ariaLabel]=\"openCalendarLabel()\"\n [ariaHaspopup]=\"'dialog'\"\n [ariaExpanded]=\"expanded()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n />\n </kf-input>\n <kf-dropdown-panel role=\"dialog\" [ariaLabel]=\"label()\">\n <ng-container [ngTemplateOutlet]=\"calendarTemplate\" />\n </kf-dropdown-panel>\n</kf-dropdown>\n\n<ng-template #sheetTemplate>\n <kf-drawer side=\"bottom\" role=\"dialog\" [title]=\"label()\" [(open)]=\"sheetOpen\">\n <div class=\"kf-date-field__sheet\">\n <ng-container [ngTemplateOutlet]=\"calendarTemplate\" />\n </div>\n </kf-drawer>\n</ng-template>\n", styles: [":host{display:block}kf-dropdown{display:block}.kf-date-field__sheet{display:flex;justify-content:center;padding:var(--kf-space-sm) 0 var(--kf-space-md)}\n"], dependencies: [{ kind: "component", type: Button, selector: "kf-button", inputs: ["variant", "size", "shape", "disabled", "type", "icon", "block", "loading", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDisabled", "ariaDescribedby", "attention", "ariaControls", "ariaHaspopup"], outputs: ["disabledClick"] }, { kind: "component", type: Calendar, selector: "kf-calendar", inputs: ["value", "month", "min", "max", "availableDates", "markedDates", "today", "loading", "ariaLabel", "monthNames", "weekdayLabels", "weekdayNames", "markedLabel", "previousMonthLabel", "nextMonthLabel"], outputs: ["valueChange", "monthChange"] }, { kind: "component", type: Drawer, selector: "kf-drawer", inputs: ["open", "side", "role", "ariaLabel", "title", "closeLabel", "size", "sheetSize", "expandable", "sheetWidth", "flush", "swipeToClose", "closeOnBack", "mountInOverlay"], outputs: ["openChange", "closedAfterBack", "detentChange"] }, { kind: "component", type: Dropdown, selector: "kf-dropdown", inputs: ["open", "anchor", "autoFocus"], outputs: ["openChange"] }, { kind: "component", type: DropdownPanel, selector: "kf-dropdown-panel", inputs: ["variant", "role", "maxHeight", "width", "ariaLabel"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Input, selector: "kf-input", inputs: ["label", "size", "hideLabel", "required", "icon", "suffix", "hint", "invalid", "errorMessage", "disabled", "readonly", "type", "placeholder", "autocomplete", "name", "inputmode", "min", "max", "step", "maxlength", "toggleable", "ariaLabel", "clearable", "clearLabel"], outputs: ["cleared"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9568
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.0", type: DateField, isStandalone: true, selector: "kf-date-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, availableDates: { classPropertyName: "availableDates", publicName: "availableDates", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, presentation: { classPropertyName: "presentation", publicName: "presentation", isSignal: true, isRequired: false, transformFunction: null }, parseErrorMessage: { classPropertyName: "parseErrorMessage", publicName: "parseErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, rangeErrorMessage: { classPropertyName: "rangeErrorMessage", publicName: "rangeErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, openCalendarLabel: { classPropertyName: "openCalendarLabel", publicName: "openCalendarLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, viewQueries: [{ propertyName: "field", first: true, predicate: Input, descendants: true, isSignal: true }, { propertyName: "fieldHost", first: true, predicate: Input, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "panel", first: true, predicate: DropdownPanel, descendants: true, isSignal: true }, { propertyName: "sheetTemplate", first: true, predicate: ["sheetTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #calendarTemplate>\n <kf-calendar\n [value]=\"value()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [availableDates]=\"availableDates()\"\n [monthNames]=\"monthNames()\"\n [weekdayLabels]=\"weekdayLabels()\"\n [weekdayNames]=\"weekdayNames()\"\n [ariaLabel]=\"label()\"\n (valueChange)=\"pick($event)\"\n />\n</ng-template>\n\n<kf-dropdown [(open)]=\"popoverOpen\" [anchor]=\"fieldHost()\" [autoFocus]=\"false\">\n <kf-input\n [label]=\"label()\"\n [hideLabel]=\"hideLabel()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [invalid]=\"fieldInvalid()\"\n [errorMessage]=\"fieldError()\"\n [hint]=\"hint()\"\n [placeholder]=\"placeholder()\"\n [maxlength]=\"maxLength()\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"text()\"\n (ngModelChange)=\"onText($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <kf-button\n kf-input-trailing\n class=\"kf-date-field__toggle\"\n variant=\"ghost\"\n shape=\"circle\"\n size=\"sm\"\n icon=\"calendar\"\n type=\"button\"\n [ariaLabel]=\"openCalendarLabel()\"\n [ariaHaspopup]=\"'dialog'\"\n [ariaExpanded]=\"expanded()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n />\n </kf-input>\n <kf-dropdown-panel role=\"dialog\" [ariaLabel]=\"label()\">\n <ng-container [ngTemplateOutlet]=\"calendarTemplate\" />\n </kf-dropdown-panel>\n</kf-dropdown>\n\n<ng-template #sheetTemplate>\n <kf-drawer side=\"bottom\" role=\"dialog\" [title]=\"label()\" [(open)]=\"sheetOpen\">\n <div class=\"kf-date-field__sheet\">\n <ng-container [ngTemplateOutlet]=\"calendarTemplate\" />\n </div>\n </kf-drawer>\n</ng-template>\n", styles: [":host{display:block}kf-dropdown{display:block}.kf-date-field__sheet{display:flex;justify-content:center;padding:var(--kf-space-sm) 0 var(--kf-space-md)}\n"], dependencies: [{ kind: "component", type: Button, selector: "kf-button", inputs: ["variant", "size", "shape", "disabled", "type", "icon", "block", "loading", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDisabled", "ariaDescribedby", "attention", "ariaControls", "ariaHaspopup"], outputs: ["disabledClick"] }, { kind: "component", type: Calendar, selector: "kf-calendar", inputs: ["value", "month", "min", "max", "availableDates", "markedDates", "today", "loading", "ariaLabel", "monthNames", "weekdayLabels", "weekdayNames", "markedLabel", "previousMonthLabel", "nextMonthLabel"], outputs: ["valueChange", "monthChange"] }, { kind: "component", type: Drawer, selector: "kf-drawer", inputs: ["open", "side", "role", "ariaLabel", "title", "closeLabel", "size", "sheetSize", "expandable", "sheetWidth", "flush", "swipeToClose", "closeOnBack", "mountInOverlay"], outputs: ["openChange", "closedAfterBack", "detentChange"] }, { kind: "component", type: Dropdown, selector: "kf-dropdown", inputs: ["open", "anchor", "autoFocus"], outputs: ["openChange"] }, { kind: "component", type: DropdownPanel, selector: "kf-dropdown-panel", inputs: ["variant", "role", "maxHeight", "width", "ariaLabel"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Input, selector: "kf-input", inputs: ["label", "size", "hideLabel", "required", "icon", "suffix", "hint", "invalid", "errorMessage", "disabled", "readonly", "type", "placeholder", "autocomplete", "name", "inputmode", "autocapitalize", "autocorrect", "spellcheck", "enterkeyhint", "min", "max", "step", "maxlength", "toggleable", "ariaLabel", "clearable", "clearLabel"], outputs: ["cleared"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9527
9569
|
}
|
|
9528
9570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: DateField, decorators: [{
|
|
9529
9571
|
type: Component,
|
|
@@ -9539,7 +9581,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
9539
9581
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #calendarTemplate>\n <kf-calendar\n [value]=\"value()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [availableDates]=\"availableDates()\"\n [monthNames]=\"monthNames()\"\n [weekdayLabels]=\"weekdayLabels()\"\n [weekdayNames]=\"weekdayNames()\"\n [ariaLabel]=\"label()\"\n (valueChange)=\"pick($event)\"\n />\n</ng-template>\n\n<kf-dropdown [(open)]=\"popoverOpen\" [anchor]=\"fieldHost()\" [autoFocus]=\"false\">\n <kf-input\n [label]=\"label()\"\n [hideLabel]=\"hideLabel()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [invalid]=\"fieldInvalid()\"\n [errorMessage]=\"fieldError()\"\n [hint]=\"hint()\"\n [placeholder]=\"placeholder()\"\n [maxlength]=\"maxLength()\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"text()\"\n (ngModelChange)=\"onText($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <kf-button\n kf-input-trailing\n class=\"kf-date-field__toggle\"\n variant=\"ghost\"\n shape=\"circle\"\n size=\"sm\"\n icon=\"calendar\"\n type=\"button\"\n [ariaLabel]=\"openCalendarLabel()\"\n [ariaHaspopup]=\"'dialog'\"\n [ariaExpanded]=\"expanded()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n />\n </kf-input>\n <kf-dropdown-panel role=\"dialog\" [ariaLabel]=\"label()\">\n <ng-container [ngTemplateOutlet]=\"calendarTemplate\" />\n </kf-dropdown-panel>\n</kf-dropdown>\n\n<ng-template #sheetTemplate>\n <kf-drawer side=\"bottom\" role=\"dialog\" [title]=\"label()\" [(open)]=\"sheetOpen\">\n <div class=\"kf-date-field__sheet\">\n <ng-container [ngTemplateOutlet]=\"calendarTemplate\" />\n </div>\n </kf-drawer>\n</ng-template>\n", styles: [":host{display:block}kf-dropdown{display:block}.kf-date-field__sheet{display:flex;justify-content:center;padding:var(--kf-space-sm) 0 var(--kf-space-md)}\n"] }]
|
|
9540
9582
|
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], availableDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "availableDates", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], presentation: [{ type: i0.Input, args: [{ isSignal: true, alias: "presentation", required: false }] }], parseErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "parseErrorMessage", required: false }] }], rangeErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeErrorMessage", required: false }] }], openCalendarLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "openCalendarLabel", required: false }] }], field: [{ type: i0.ViewChild, args: [i0.forwardRef(() => Input), { isSignal: true }] }], fieldHost: [{ type: i0.ViewChild, args: [i0.forwardRef(() => Input), { ...{ read: ElementRef }, isSignal: true }] }], panel: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DropdownPanel), { isSignal: true }] }], sheetTemplate: [{ type: i0.ViewChild, args: ['sheetTemplate', { isSignal: true }] }] } });
|
|
9541
9583
|
|
|
9542
|
-
const TONE_ICON = {
|
|
9584
|
+
const TONE_ICON$1 = {
|
|
9543
9585
|
neutral: 'clock',
|
|
9544
9586
|
warn: 'alert-triangle',
|
|
9545
9587
|
error: 'alert-circle',
|
|
@@ -9569,7 +9611,7 @@ class DeadlineStrip {
|
|
|
9569
9611
|
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
9570
9612
|
itemClick = output();
|
|
9571
9613
|
icon(tone) {
|
|
9572
|
-
return TONE_ICON[tone];
|
|
9614
|
+
return TONE_ICON$1[tone];
|
|
9573
9615
|
}
|
|
9574
9616
|
percent(value) {
|
|
9575
9617
|
return Number.isFinite(value) ? Math.min(100, Math.max(0, value)) : 0;
|
|
@@ -9680,9 +9722,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
9680
9722
|
|
|
9681
9723
|
/**
|
|
9682
9724
|
* Bloque promocional sobre fondo oscuro de marca (página 37) — campañas,
|
|
9683
|
-
* accesos directos o el portal de autoatención.
|
|
9684
|
-
*
|
|
9685
|
-
* `kf-carousel` y la barra de `kf-portal-header
|
|
9725
|
+
* accesos directos o el portal de autoatención. El fondo es plano y usa
|
|
9726
|
+
* `--kf-color-tertiary-deep`, el mismo azul profundo que el slide destacado de
|
|
9727
|
+
* `kf-carousel` y la barra de `kf-portal-header`; `--kf-feature-card-bg` lo
|
|
9728
|
+
* reemplaza.
|
|
9686
9729
|
*
|
|
9687
9730
|
* <kf-feature-card badge="Autoatención" badgeIcon="tool" title="Portal de Autoatención"
|
|
9688
9731
|
* description="Con tu patente o VIN accede a soluciones para tu vehículo: mantenciones, repuestos y conectividad en un solo lugar."
|
|
@@ -9702,11 +9745,11 @@ class FeatureCard {
|
|
|
9702
9745
|
actionHref = input(/* @ts-ignore */
|
|
9703
9746
|
...(ngDevMode ? [undefined, { debugName: "actionHref" }] : /* istanbul ignore next */ []));
|
|
9704
9747
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FeatureCard, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9705
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: FeatureCard, isStandalone: true, selector: "kf-feature-card", inputs: { badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, badgeIcon: { classPropertyName: "badgeIcon", publicName: "badgeIcon", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, actionHref: { classPropertyName: "actionHref", publicName: "actionHref", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (badge()) {\n <span class=\"kf-feature-card__badge\">\n @if (badgeIcon(); as iconName) {\n <kf-icon [name]=\"iconName\" size=\"sm\" />\n }\n <kf-text as=\"span\" variant=\"overline-strong\" class=\"kf-feature-card__badge-text\">{{\n badge()\n }}</kf-text>\n </span>\n}\n<span class=\"kf-feature-card__title\">{{ title() }}</span>\n@if (description()) {\n <p class=\"kf-feature-card__description\">{{ description() }}</p>\n}\n@if (actionLabel()) {\n <a class=\"kf-feature-card__action\" [href]=\"actionHref() || '#'\">\n <kf-icon name=\"chevron-right\" size=\"sm\" />\n {{ actionLabel() }}\n </a>\n}\n", styles: [":host{display:flex;flex-direction:column;align-items:flex-start;gap:var(--kf-space-sm);padding:var(--kf-space-lg);border-radius:var(--kf-radius-md);background:
|
|
9748
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: FeatureCard, isStandalone: true, selector: "kf-feature-card", inputs: { badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, badgeIcon: { classPropertyName: "badgeIcon", publicName: "badgeIcon", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, actionHref: { classPropertyName: "actionHref", publicName: "actionHref", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (badge()) {\n <span class=\"kf-feature-card__badge\">\n @if (badgeIcon(); as iconName) {\n <kf-icon [name]=\"iconName\" size=\"sm\" />\n }\n <kf-text as=\"span\" variant=\"overline-strong\" class=\"kf-feature-card__badge-text\">{{\n badge()\n }}</kf-text>\n </span>\n}\n<span class=\"kf-feature-card__title\">{{ title() }}</span>\n@if (description()) {\n <p class=\"kf-feature-card__description\">{{ description() }}</p>\n}\n@if (actionLabel()) {\n <a class=\"kf-feature-card__action\" [href]=\"actionHref() || '#'\">\n <kf-icon name=\"chevron-right\" size=\"sm\" />\n {{ actionLabel() }}\n </a>\n}\n", styles: [":host{display:flex;flex-direction:column;align-items:flex-start;gap:var(--kf-space-sm);padding:var(--kf-space-lg);border-radius:var(--kf-radius-md);background:var(--kf-feature-card-bg, var(--kf-color-tertiary-deep));color:var(--kf-color-white);font-family:var(--kf-font-body)}.kf-feature-card__badge{display:inline-flex;align-items:center;gap:var(--kf-space-xs);padding:var(--kf-space-xs) var(--kf-space-sm);border-radius:var(--kf-radius-pill);background:#ffffff1f;border:1px solid rgba(255,255,255,.24)}.kf-feature-card__badge-text{color:inherit!important}.kf-feature-card__title{font-family:var(--kf-font-title);font-size:1.375rem;font-weight:700;line-height:1.2}.kf-feature-card__description{margin:0;max-width:48ch;color:#fffc;font-size:.9375rem}.kf-feature-card__action{display:inline-flex;align-items:center;gap:var(--kf-space-xs);margin-top:var(--kf-space-xs);padding:var(--kf-space-xs) var(--kf-space-md);border-radius:var(--kf-radius-sm);background:#ffffff24;color:var(--kf-color-white);font-size:.875rem;font-weight:600;text-decoration:none;transition:background var(--kf-motion-fast, .14s)}.kf-feature-card__action:hover{background:#ffffff38}\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"] }] });
|
|
9706
9749
|
}
|
|
9707
9750
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FeatureCard, decorators: [{
|
|
9708
9751
|
type: Component,
|
|
9709
|
-
args: [{ selector: 'kf-feature-card', imports: [Icon, Text], template: "@if (badge()) {\n <span class=\"kf-feature-card__badge\">\n @if (badgeIcon(); as iconName) {\n <kf-icon [name]=\"iconName\" size=\"sm\" />\n }\n <kf-text as=\"span\" variant=\"overline-strong\" class=\"kf-feature-card__badge-text\">{{\n badge()\n }}</kf-text>\n </span>\n}\n<span class=\"kf-feature-card__title\">{{ title() }}</span>\n@if (description()) {\n <p class=\"kf-feature-card__description\">{{ description() }}</p>\n}\n@if (actionLabel()) {\n <a class=\"kf-feature-card__action\" [href]=\"actionHref() || '#'\">\n <kf-icon name=\"chevron-right\" size=\"sm\" />\n {{ actionLabel() }}\n </a>\n}\n", styles: [":host{display:flex;flex-direction:column;align-items:flex-start;gap:var(--kf-space-sm);padding:var(--kf-space-lg);border-radius:var(--kf-radius-md);background:
|
|
9752
|
+
args: [{ selector: 'kf-feature-card', imports: [Icon, Text], template: "@if (badge()) {\n <span class=\"kf-feature-card__badge\">\n @if (badgeIcon(); as iconName) {\n <kf-icon [name]=\"iconName\" size=\"sm\" />\n }\n <kf-text as=\"span\" variant=\"overline-strong\" class=\"kf-feature-card__badge-text\">{{\n badge()\n }}</kf-text>\n </span>\n}\n<span class=\"kf-feature-card__title\">{{ title() }}</span>\n@if (description()) {\n <p class=\"kf-feature-card__description\">{{ description() }}</p>\n}\n@if (actionLabel()) {\n <a class=\"kf-feature-card__action\" [href]=\"actionHref() || '#'\">\n <kf-icon name=\"chevron-right\" size=\"sm\" />\n {{ actionLabel() }}\n </a>\n}\n", styles: [":host{display:flex;flex-direction:column;align-items:flex-start;gap:var(--kf-space-sm);padding:var(--kf-space-lg);border-radius:var(--kf-radius-md);background:var(--kf-feature-card-bg, var(--kf-color-tertiary-deep));color:var(--kf-color-white);font-family:var(--kf-font-body)}.kf-feature-card__badge{display:inline-flex;align-items:center;gap:var(--kf-space-xs);padding:var(--kf-space-xs) var(--kf-space-sm);border-radius:var(--kf-radius-pill);background:#ffffff1f;border:1px solid rgba(255,255,255,.24)}.kf-feature-card__badge-text{color:inherit!important}.kf-feature-card__title{font-family:var(--kf-font-title);font-size:1.375rem;font-weight:700;line-height:1.2}.kf-feature-card__description{margin:0;max-width:48ch;color:#fffc;font-size:.9375rem}.kf-feature-card__action{display:inline-flex;align-items:center;gap:var(--kf-space-xs);margin-top:var(--kf-space-xs);padding:var(--kf-space-xs) var(--kf-space-md);border-radius:var(--kf-radius-sm);background:#ffffff24;color:var(--kf-color-white);font-size:.875rem;font-weight:600;text-decoration:none;transition:background var(--kf-motion-fast, .14s)}.kf-feature-card__action:hover{background:#ffffff38}\n"] }]
|
|
9710
9753
|
}], propDecorators: { badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], badgeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeIcon", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], actionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionLabel", required: false }] }], actionHref: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionHref", required: false }] }] } });
|
|
9711
9754
|
|
|
9712
9755
|
/**
|
|
@@ -9768,7 +9811,8 @@ let nextFieldsetId = 0;
|
|
|
9768
9811
|
* controles nativos del interior.
|
|
9769
9812
|
*
|
|
9770
9813
|
* `aria-invalid` no se usa: el rol `group` del fieldset no lo admite, así que
|
|
9771
|
-
* el error se comunica con el texto asociado y con
|
|
9814
|
+
* el error se comunica con el texto asociado y, con `invalid`, con un ícono de
|
|
9815
|
+
* error y la leyenda en rojo. El grupo no dibuja borde ni franja de color.
|
|
9772
9816
|
*
|
|
9773
9817
|
* <kf-fieldset legend="Divisiones con acceso" required [invalid]="!!error" [errorMessage]="error">
|
|
9774
9818
|
* <kf-checkbox label="Divemotor STAR" /> <kf-checkbox label="Andes Maq" />
|
|
@@ -9795,11 +9839,11 @@ class Fieldset {
|
|
|
9795
9839
|
}, /* @ts-ignore */
|
|
9796
9840
|
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
9797
9841
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Fieldset, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9798
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Fieldset, isStandalone: true, selector: "kf-fieldset", inputs: { legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: true, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<fieldset\n class=\"kf-fieldset\"\n [class.kf-fieldset--invalid]=\"invalid()\"\n [disabled]=\"disabled()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <legend class=\"kf-fieldset__legend kf-field-label-text\">\n {{ legend() }}\n
|
|
9842
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Fieldset, isStandalone: true, selector: "kf-fieldset", inputs: { legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: true, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<fieldset\n class=\"kf-fieldset\"\n [class.kf-fieldset--invalid]=\"invalid()\"\n [disabled]=\"disabled()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <legend class=\"kf-fieldset__legend kf-field-label-text\">\n <span class=\"kf-fieldset__legend-row\">\n @if (invalid()) {\n <kf-icon class=\"kf-fieldset__invalid-icon\" name=\"alert-circle\" size=\"sm\" />\n }\n <span class=\"kf-fieldset__legend-text\">\n {{ legend() }}\n @if (required()) {\n <span class=\"kf-fieldset__required\" aria-hidden=\"true\">*</span>\n }\n </span>\n </span>\n </legend>\n <div class=\"kf-fieldset__content\"><ng-content /></div>\n @if (errorMessage(); as message) {\n <span class=\"kf-fieldset__error kf-field-error\" role=\"alert\" [id]=\"errorId\">{{ message }}</span>\n } @else if (hint(); as text) {\n <span class=\"kf-fieldset__hint kf-field-hint\" [id]=\"hintId\">{{ text }}</span>\n }\n</fieldset>\n", styles: [".kf-field-label-text{font-family:var(--kf-font-title);font-size:var(--kf-font-size-caption);font-weight:var(--kf-font-weight-medium);letter-spacing:.04em;text-transform:uppercase;color:var(--kf-color-text-muted)}.kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}:host{display:block;font-family:var(--kf-font-body)}.kf-fieldset{display:flex;flex-direction:column;gap:var(--kf-space-xs);min-width:0;margin:0;padding:0;border:none}.kf-fieldset__legend{padding:0;margin-bottom:var(--kf-space-xs)}.kf-fieldset__required{color:var(--kf-color-error);margin-inline-start:2px}.kf-fieldset__content{display:flex;flex-direction:column;gap:var(--kf-space-sm);padding:var(--kf-space-xs) 0}.kf-fieldset__legend-row{display:inline-flex;align-items:center;gap:var(--kf-space-xs)}.kf-fieldset--invalid .kf-fieldset__legend,.kf-fieldset__invalid-icon{color:var(--kf-color-error-strong)}.kf-fieldset:disabled{opacity:.55}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9799
9843
|
}
|
|
9800
9844
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Fieldset, decorators: [{
|
|
9801
9845
|
type: Component,
|
|
9802
|
-
args: [{ selector: 'kf-fieldset', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fieldset\n class=\"kf-fieldset\"\n [class.kf-fieldset--invalid]=\"invalid()\"\n [disabled]=\"disabled()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <legend class=\"kf-fieldset__legend kf-field-label-text\">\n {{ legend() }}\n
|
|
9846
|
+
args: [{ selector: 'kf-fieldset', imports: [Icon], changeDetection: ChangeDetectionStrategy.OnPush, template: "<fieldset\n class=\"kf-fieldset\"\n [class.kf-fieldset--invalid]=\"invalid()\"\n [disabled]=\"disabled()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <legend class=\"kf-fieldset__legend kf-field-label-text\">\n <span class=\"kf-fieldset__legend-row\">\n @if (invalid()) {\n <kf-icon class=\"kf-fieldset__invalid-icon\" name=\"alert-circle\" size=\"sm\" />\n }\n <span class=\"kf-fieldset__legend-text\">\n {{ legend() }}\n @if (required()) {\n <span class=\"kf-fieldset__required\" aria-hidden=\"true\">*</span>\n }\n </span>\n </span>\n </legend>\n <div class=\"kf-fieldset__content\"><ng-content /></div>\n @if (errorMessage(); as message) {\n <span class=\"kf-fieldset__error kf-field-error\" role=\"alert\" [id]=\"errorId\">{{ message }}</span>\n } @else if (hint(); as text) {\n <span class=\"kf-fieldset__hint kf-field-hint\" [id]=\"hintId\">{{ text }}</span>\n }\n</fieldset>\n", styles: [".kf-field-label-text{font-family:var(--kf-font-title);font-size:var(--kf-font-size-caption);font-weight:var(--kf-font-weight-medium);letter-spacing:.04em;text-transform:uppercase;color:var(--kf-color-text-muted)}.kf-field-hint{font-size:.75rem;color:var(--kf-color-text-muted)}.kf-field-error{display:flex;align-items:center;gap:var(--kf-space-xs);font-size:.75rem;font-weight:600;color:var(--kf-color-error-strong)}:host{display:block;font-family:var(--kf-font-body)}.kf-fieldset{display:flex;flex-direction:column;gap:var(--kf-space-xs);min-width:0;margin:0;padding:0;border:none}.kf-fieldset__legend{padding:0;margin-bottom:var(--kf-space-xs)}.kf-fieldset__required{color:var(--kf-color-error);margin-inline-start:2px}.kf-fieldset__content{display:flex;flex-direction:column;gap:var(--kf-space-sm);padding:var(--kf-space-xs) 0}.kf-fieldset__legend-row{display:inline-flex;align-items:center;gap:var(--kf-space-xs)}.kf-fieldset--invalid .kf-fieldset__legend,.kf-fieldset__invalid-icon{color:var(--kf-color-error-strong)}.kf-fieldset:disabled{opacity:.55}\n"] }]
|
|
9803
9847
|
}], propDecorators: { legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: true }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
9804
9848
|
|
|
9805
9849
|
let nextId$4 = 0;
|
|
@@ -10378,7 +10422,7 @@ class Filter {
|
|
|
10378
10422
|
this.fieldChange.emit({ key, value });
|
|
10379
10423
|
}
|
|
10380
10424
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Filter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10381
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Filter, isStandalone: true, selector: "kf-filter", inputs: { fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: true, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, mobileTitle: { classPropertyName: "mobileTitle", publicName: "mobileTitle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fieldChange: "fieldChange" }, ngImport: i0, template: "<ng-template #fieldsTpl let-stacked=\"stacked\">\n @for (field of fields(); track field.key) {\n @switch (field.type) {\n @case ('select') {\n <kf-select\n [label]=\"field.label ?? ''\"\n [options]=\"optionsFor(field.key)\"\n [value]=\"singleValueFor(field.key)\"\n [placeholder]=\"field.placeholder ?? ''\"\n [style.width]=\"stacked ? '100%' : fieldWidth(field)\"\n (valueChange)=\"onFieldChange(field.key, $event)\"\n />\n }\n @case ('multi-select') {\n <kf-multi-select\n [label]=\"field.label ?? ''\"\n [options]=\"multiOptionsFor(field.key)\"\n [values]=\"multiValueFor(field.key)\"\n [placeholder]=\"field.placeholder ?? ''\"\n [style.width]=\"stacked ? '100%' : fieldWidth(field)\"\n (valuesChange)=\"onFieldChange(field.key, $event)\"\n />\n }\n @case ('search') {\n <kf-input\n [label]=\"field.label ?? ''\"\n [icon]=\"field.icon ?? 'search'\"\n [placeholder]=\"field.placeholder ?? ''\"\n [style.width]=\"stacked ? '100%' : fieldWidth(field)\"\n [ngModel]=\"singleValueFor(field.key)\"\n (ngModelChange)=\"onFieldChange(field.key, $event)\"\n />\n }\n }\n @if (!stacked && field.showDivider) {\n <kf-divider orientation=\"vertical\" />\n }\n }\n</ng-template>\n\n<div class=\"kf-filter kf-filter--row\">\n <ng-container [ngTemplateOutlet]=\"fieldsTpl\" [ngTemplateOutletContext]=\"{ stacked: false }\" />\n</div>\n\n<kf-collapsible class=\"kf-filter__collapsible\" [title]=\"mobileTitle()\">\n <div class=\"kf-filter kf-filter--stack\">\n <ng-container [ngTemplateOutlet]=\"fieldsTpl\" [ngTemplateOutletContext]=\"{ stacked: true }\" />\n </div>\n</kf-collapsible>\n", styles: ["@charset \"UTF-8\";:host{display:block}.kf-filter--row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--kf-space-md)}.kf-filter--stack{display:flex;flex-direction:column;gap:var(--kf-space-md)}.kf-filter__collapsible{display:none}@media(max-width:768px){.kf-filter--row{display:none}.kf-filter__collapsible{display:block}}\n"], dependencies: [{ kind: "component", type: Collapsible, selector: "kf-collapsible", inputs: ["title", "expanded"], outputs: ["expandedChange"] }, { kind: "component", type: Divider, selector: "kf-divider", inputs: ["orientation"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Input, selector: "kf-input", inputs: ["label", "size", "hideLabel", "required", "icon", "suffix", "hint", "invalid", "errorMessage", "disabled", "readonly", "type", "placeholder", "autocomplete", "name", "inputmode", "min", "max", "step", "maxlength", "toggleable", "ariaLabel", "clearable", "clearLabel"], outputs: ["cleared"] }, { kind: "component", type: MultiSelect, selector: "kf-multi-select", inputs: ["label", "options", "values", "placeholder", "disabled", "width", "searchable", "searchThreshold"], outputs: ["valuesChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Select, selector: "kf-select", inputs: ["label", "hideLabel", "prefix", "options", "value", "placeholder", "disabled", "invalid", "required", "errorMessage", "variant", "width", "size", "searchable", "searchThreshold", "ariaLabel", "icon", "panelTitle", "panelWidth"], outputs: ["valueChange"] }] });
|
|
10425
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Filter, isStandalone: true, selector: "kf-filter", inputs: { fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: true, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, mobileTitle: { classPropertyName: "mobileTitle", publicName: "mobileTitle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fieldChange: "fieldChange" }, ngImport: i0, template: "<ng-template #fieldsTpl let-stacked=\"stacked\">\n @for (field of fields(); track field.key) {\n @switch (field.type) {\n @case ('select') {\n <kf-select\n [label]=\"field.label ?? ''\"\n [options]=\"optionsFor(field.key)\"\n [value]=\"singleValueFor(field.key)\"\n [placeholder]=\"field.placeholder ?? ''\"\n [style.width]=\"stacked ? '100%' : fieldWidth(field)\"\n (valueChange)=\"onFieldChange(field.key, $event)\"\n />\n }\n @case ('multi-select') {\n <kf-multi-select\n [label]=\"field.label ?? ''\"\n [options]=\"multiOptionsFor(field.key)\"\n [values]=\"multiValueFor(field.key)\"\n [placeholder]=\"field.placeholder ?? ''\"\n [style.width]=\"stacked ? '100%' : fieldWidth(field)\"\n (valuesChange)=\"onFieldChange(field.key, $event)\"\n />\n }\n @case ('search') {\n <kf-input\n [label]=\"field.label ?? ''\"\n [icon]=\"field.icon ?? 'search'\"\n [placeholder]=\"field.placeholder ?? ''\"\n [style.width]=\"stacked ? '100%' : fieldWidth(field)\"\n [ngModel]=\"singleValueFor(field.key)\"\n (ngModelChange)=\"onFieldChange(field.key, $event)\"\n />\n }\n }\n @if (!stacked && field.showDivider) {\n <kf-divider orientation=\"vertical\" />\n }\n }\n</ng-template>\n\n<div class=\"kf-filter kf-filter--row\">\n <ng-container [ngTemplateOutlet]=\"fieldsTpl\" [ngTemplateOutletContext]=\"{ stacked: false }\" />\n</div>\n\n<kf-collapsible class=\"kf-filter__collapsible\" [title]=\"mobileTitle()\">\n <div class=\"kf-filter kf-filter--stack\">\n <ng-container [ngTemplateOutlet]=\"fieldsTpl\" [ngTemplateOutletContext]=\"{ stacked: true }\" />\n </div>\n</kf-collapsible>\n", styles: ["@charset \"UTF-8\";:host{display:block}.kf-filter--row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--kf-space-md)}.kf-filter--stack{display:flex;flex-direction:column;gap:var(--kf-space-md)}.kf-filter__collapsible{display:none}@media(max-width:768px){.kf-filter--row{display:none}.kf-filter__collapsible{display:block}}\n"], dependencies: [{ kind: "component", type: Collapsible, selector: "kf-collapsible", inputs: ["title", "expanded"], outputs: ["expandedChange"] }, { kind: "component", type: Divider, selector: "kf-divider", inputs: ["orientation"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Input, selector: "kf-input", inputs: ["label", "size", "hideLabel", "required", "icon", "suffix", "hint", "invalid", "errorMessage", "disabled", "readonly", "type", "placeholder", "autocomplete", "name", "inputmode", "autocapitalize", "autocorrect", "spellcheck", "enterkeyhint", "min", "max", "step", "maxlength", "toggleable", "ariaLabel", "clearable", "clearLabel"], outputs: ["cleared"] }, { kind: "component", type: MultiSelect, selector: "kf-multi-select", inputs: ["label", "options", "values", "placeholder", "disabled", "width", "searchable", "searchThreshold"], outputs: ["valuesChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Select, selector: "kf-select", inputs: ["label", "hideLabel", "prefix", "options", "value", "placeholder", "disabled", "invalid", "required", "errorMessage", "variant", "width", "size", "searchable", "searchThreshold", "ariaLabel", "icon", "panelTitle", "panelWidth"], outputs: ["valueChange"] }] });
|
|
10382
10426
|
}
|
|
10383
10427
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Filter, decorators: [{
|
|
10384
10428
|
type: Component,
|
|
@@ -12948,11 +12992,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
12948
12992
|
args: [{ selector: 'kf-milestone-timeline', imports: [Badge, Button, Icon, NgTemplateOutlet, StatusMark, StatusNode], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"kf-milestone-timeline\">\n <div class=\"kf-milestone-timeline__toolbar\">\n <p class=\"kf-milestone-timeline__heading\" role=\"heading\" [attr.aria-level]=\"headingLevel()\">\n {{ text().heading }}\n </p>\n @if (hasExpandable()) {\n <kf-button\n class=\"kf-milestone-timeline__toggle-all\"\n variant=\"ghost\"\n size=\"sm\"\n (click)=\"toggleAll()\"\n >\n {{ allExpanded() ? text().collapseAll : text().expandAll }}\n </kf-button>\n }\n </div>\n\n <ol class=\"kf-milestone-timeline__list\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @for (row of rows(); track row.group.id) {\n <li\n class=\"kf-milestone-timeline__group\"\n [class]=\"'kf-milestone-timeline__group--' + row.group.status\"\n >\n @if (row.expandable) {\n <button\n type=\"button\"\n class=\"kf-milestone-timeline__head\"\n [id]=\"headId(row.group.id)\"\n [attr.aria-expanded]=\"isExpanded(row.group.id)\"\n [attr.aria-controls]=\"panelId(row.group.id)\"\n (click)=\"toggle(row.group.id)\"\n >\n <ng-container *ngTemplateOutlet=\"headContent; context: { $implicit: row }\" />\n <kf-icon class=\"kf-milestone-timeline__chevron\" name=\"chevron-down\" size=\"sm\" />\n </button>\n\n <div\n class=\"kf-milestone-timeline__panel\"\n role=\"group\"\n [id]=\"panelId(row.group.id)\"\n [attr.aria-labelledby]=\"headId(row.group.id)\"\n [hidden]=\"!isExpanded(row.group.id)\"\n >\n <ul class=\"kf-milestone-timeline__items\">\n @for (item of row.main; track item.id) {\n <li\n class=\"kf-milestone-timeline__item\"\n [class.kf-milestone-timeline__item--done]=\"item.done\"\n [class.kf-milestone-timeline__item--next]=\"item.id === nextItemId()\"\n >\n <kf-status-mark [status]=\"itemStatus(item)\" [small]=\"true\" />\n <span class=\"kf-milestone-timeline__item-body\">\n <span\n >{{ item.label\n }}<span class=\"kf-sr-only\"\n >: {{ item.done ? text().itemDone : text().itemPending }}</span\n ></span\n >\n @if (item.date) {\n <span class=\"kf-milestone-timeline__item-date\">{{ item.date }}</span>\n }\n </span>\n @if (item.id === nextItemId()) {\n <kf-badge tone=\"info\">{{ text().next }}</kf-badge>\n }\n </li>\n }\n </ul>\n\n @if (row.exceptions.length > 0) {\n <div class=\"kf-milestone-timeline__exceptions\">\n <p class=\"kf-milestone-timeline__exceptions-title\">{{ text().exceptionsTitle }}</p>\n @if (row.happened.length > 0) {\n <ul class=\"kf-milestone-timeline__items\">\n @for (item of row.happened; track item.id) {\n <li class=\"kf-milestone-timeline__item kf-milestone-timeline__item--done\">\n <kf-status-mark status=\"done\" [small]=\"true\" [exception]=\"true\" />\n <span class=\"kf-milestone-timeline__item-body\">\n <span\n >{{ item.label\n }}<span class=\"kf-sr-only\">: {{ text().itemDone }}</span></span\n >\n @if (item.date) {\n <span class=\"kf-milestone-timeline__item-date\">{{ item.date }}</span>\n }\n </span>\n </li>\n }\n </ul>\n } @else {\n <p class=\"kf-milestone-timeline__exceptions-empty\">{{ text().noExceptions }}</p>\n }\n </div>\n }\n </div>\n } @else {\n <div\n class=\"kf-milestone-timeline__head kf-milestone-timeline__head--static\"\n [id]=\"headId(row.group.id)\"\n >\n <ng-container *ngTemplateOutlet=\"headContent; context: { $implicit: row }\" />\n </div>\n }\n </li>\n }\n </ol>\n</div>\n\n<!-- Nodo + t\u00EDtulo + estado de una etapa, compartido por el encabezado bot\u00F3n y el est\u00E1tico. -->\n<ng-template #headContent let-row>\n <kf-status-node [status]=\"row.group.status\" [icon]=\"row.group.icon\" />\n <span class=\"kf-milestone-timeline__text\">\n <span class=\"kf-milestone-timeline__title\">{{ row.group.label }}</span>\n <span class=\"kf-milestone-timeline__meta\">\n @if (row.group.status === 'done') {\n <span class=\"kf-sr-only\">{{ text().statusDone }}. </span>\n }\n {{ row.meta }}\n </span>\n </span>\n</ng-template>\n", styles: [".kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{display:block;--_node: var(--kf-status-node-size, 2.125rem);--_gutter: var(--kf-space-sm);--_pad-y: var(--kf-space-sm);--_line: 2px}.kf-milestone-timeline{display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-milestone-timeline__toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--kf-space-sm)}.kf-milestone-timeline__heading{margin:0;font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-sm);font-weight:var(--kf-font-weight-title);color:var(--kf-color-ink)}.kf-milestone-timeline__list{list-style:none;margin:0;padding:0}.kf-milestone-timeline__group{position:relative}.kf-milestone-timeline__group:not(:last-child):before{content:\"\";position:absolute;inset-inline-start:calc(var(--_gutter) + var(--_node) / 2 - var(--_line) / 2);top:calc(var(--_pad-y) + var(--_node));bottom:calc(var(--kf-space-xs) - var(--_pad-y));width:var(--_line);background:var(--kf-color-border-strong)}.kf-milestone-timeline__group--done:not(:last-child):before{background:var(--kf-color-success-strong)}.kf-milestone-timeline__head{position:relative;z-index:1;display:flex;align-items:flex-start;gap:var(--kf-space-md);box-sizing:border-box;width:100%;min-height:2.75rem;padding:var(--_pad-y) var(--_gutter);background:none;border:0;border-radius:var(--kf-radius-sm);text-align:left;font:inherit;color:inherit}button.kf-milestone-timeline__head{cursor:pointer}button.kf-milestone-timeline__head:hover{background:var(--kf-color-surface)}button.kf-milestone-timeline__head:focus-visible{outline:2px solid var(--kf-color-primary);outline-offset:2px}.kf-milestone-timeline__text{flex:1;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;min-height:var(--_node)}.kf-milestone-timeline__title{font-weight:700;font-size:var(--kf-font-size-body);color:var(--kf-color-ink)}.kf-milestone-timeline__meta{font-size:var(--kf-font-size-body-sm);color:var(--kf-color-text)}.kf-milestone-timeline__group--current .kf-milestone-timeline__meta{color:var(--kf-color-primary-active);font-weight:600}.kf-milestone-timeline__chevron{flex:none;align-self:center;color:var(--kf-color-text);transition:transform .15s ease}.kf-milestone-timeline__head[aria-expanded=true] .kf-milestone-timeline__chevron{transform:rotate(180deg)}.kf-milestone-timeline__panel{padding-block:var(--kf-space-sm) var(--kf-space-md);padding-inline:calc(var(--_gutter) + var(--_node) + var(--kf-space-md)) var(--_gutter)}.kf-milestone-timeline__panel[hidden]{display:none}.kf-milestone-timeline__items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-milestone-timeline__item{display:flex;align-items:flex-start;gap:var(--kf-space-sm);font-size:var(--kf-font-size-body-sm);color:var(--kf-color-text)}.kf-milestone-timeline__item kf-status-mark{margin-top:2px}.kf-milestone-timeline__item--done{color:var(--kf-color-ink)}.kf-milestone-timeline__item--next{color:var(--kf-color-ink);font-weight:700}.kf-milestone-timeline__item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.kf-milestone-timeline__item-date{font-size:var(--kf-font-size-caption);font-weight:400;color:var(--kf-color-text)}.kf-milestone-timeline__exceptions{margin-top:var(--kf-space-md);padding-top:var(--kf-space-sm);border-top:1px dashed var(--kf-color-border-strong)}.kf-milestone-timeline__exceptions-title{margin:0 0 var(--kf-space-sm);font-size:var(--kf-font-size-caption);font-weight:700;color:var(--kf-color-text)}.kf-milestone-timeline__exceptions-empty{margin:0;font-size:var(--kf-font-size-body-sm);color:var(--kf-color-text)}@media(max-width:640px),(pointer:coarse){.kf-milestone-timeline__toggle-all{--kf-button-min-height: 44px}}@media(prefers-reduced-motion:reduce){.kf-milestone-timeline__chevron{transition:none}}\n"] }]
|
|
12949
12993
|
}], propDecorators: { groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: true }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }, { type: i0.Output, args: ["expandedIdsChange"] }], nextItemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextItemId", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }] } });
|
|
12950
12994
|
|
|
12995
|
+
/** Ícono de estado por tono; `neutral` e `info` no llevan ícono si no se pide uno. */
|
|
12996
|
+
const TONE_ICON = {
|
|
12997
|
+
ok: 'check-circle',
|
|
12998
|
+
warn: 'alert-triangle',
|
|
12999
|
+
error: 'alert-circle',
|
|
13000
|
+
};
|
|
12951
13001
|
/**
|
|
12952
13002
|
* Bloque de texto atribuido a una PERSONA: encabezado, prosa y firma al pie,
|
|
12953
|
-
* con
|
|
12954
|
-
*
|
|
12955
|
-
*
|
|
13003
|
+
* con borde fino neutro — la anatomía de una cita, distinta de `kf-alert`
|
|
13004
|
+
* (que interrumpe el flujo con `role="alert"`). El texto va como contenido
|
|
13005
|
+
* proyectado y respeta los saltos de línea del autor.
|
|
13006
|
+
*
|
|
13007
|
+
* El tono nunca se dibuja como borde ni franja: se comunica con el ícono líder
|
|
13008
|
+
* (color del tono) y, mientras `tinted` sea `true`, con el fondo suave del tono.
|
|
13009
|
+
* `ok`, `warn` y `error` muestran su ícono de estado; `neutral` e `info` no
|
|
13010
|
+
* muestran ninguno salvo que se pase `icon`. `[icon]="null"` lo oculta siempre.
|
|
13011
|
+
* El ícono es decorativo: el estado lo da el texto.
|
|
13012
|
+
*
|
|
13013
|
+
* <kf-note-block tone="warn" title="Día 2" signature="J. Pérez">Falta el sello.</kf-note-block>
|
|
13014
|
+
* <kf-note-block [tinted]="false" icon="info">Nota sin fondo de color.</kf-note-block>
|
|
12956
13015
|
*/
|
|
12957
13016
|
class NoteBlock {
|
|
12958
13017
|
title = input(/* @ts-ignore */
|
|
@@ -12965,15 +13024,29 @@ class NoteBlock {
|
|
|
12965
13024
|
...(ngDevMode ? [undefined, { debugName: "signature" }] : /* istanbul ignore next */ []));
|
|
12966
13025
|
tone = input('info', /* @ts-ignore */
|
|
12967
13026
|
...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
13027
|
+
/**
|
|
13028
|
+
* Ícono líder. Sin valor usa el ícono de estado del tono (ninguno en
|
|
13029
|
+
* `neutral` e `info`); `null` no dibuja ícono.
|
|
13030
|
+
*/
|
|
13031
|
+
icon = input(undefined, /* @ts-ignore */
|
|
13032
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
13033
|
+
/** Fondo suave del tono. Con `false` el fondo es la superficie neutra y el tono lo da solo el ícono. */
|
|
13034
|
+
tinted = input(true, { ...(ngDevMode ? { debugName: "tinted" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
13035
|
+
leadIcon = computed(() => {
|
|
13036
|
+
const explicit = this.icon();
|
|
13037
|
+
return explicit === undefined ? (TONE_ICON[this.tone()] ?? null) : explicit;
|
|
13038
|
+
}, /* @ts-ignore */
|
|
13039
|
+
...(ngDevMode ? [{ debugName: "leadIcon" }] : /* istanbul ignore next */ []));
|
|
12968
13040
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: NoteBlock, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12969
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: NoteBlock, isStandalone: true, selector: "kf-note-block", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "\"kf-note-block--\" + tone()" } }, ngImport: i0, template: "@if (title() || subtitle()) {\n
|
|
13041
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: NoteBlock, isStandalone: true, selector: "kf-note-block", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, tinted: { classPropertyName: "tinted", publicName: "tinted", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "\"kf-note-block--\" + tone()", "class.kf-note-block--tinted": "tinted()" } }, ngImport: i0, template: "@if (leadIcon(); as name) {\n <kf-icon class=\"kf-note-block__icon\" [name]=\"name\" size=\"sm\" />\n}\n\n<div class=\"kf-note-block__body\">\n @if (title() || subtitle()) {\n <span class=\"kf-note-block__head\">\n @if (title(); as heading) {\n <span class=\"kf-note-block__title kf-overline-text\">{{ heading }}</span>\n }\n @if (subtitle(); as sub) {\n <span class=\"kf-note-block__subtitle kf-caption-text\">{{ sub }}</span>\n }\n </span>\n }\n\n <span class=\"kf-note-block__text\"><ng-content /></span>\n\n @if (signature(); as author) {\n <span class=\"kf-note-block__signature kf-caption-text\">{{ author }}</span>\n }\n</div>\n", styles: [".kf-overline-text{font-family:var(--kf-font-title);font-size:var(--kf-font-size-caption);font-weight:var(--kf-font-weight-medium);letter-spacing:.04em;text-transform:uppercase;color:var(--kf-color-text-muted)}.kf-caption-text{font-size:var(--kf-font-size-caption);font-weight:var(--kf-font-weight-body);color:var(--kf-color-text-muted)}:host{--_icon: var(--kf-color-text-muted);display:flex;align-items:flex-start;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-md);border:1px solid var(--kf-color-border);border-radius:var(--kf-radius-sm);background:var(--kf-color-surface);min-width:0}:host(.kf-note-block--info){--_icon: var(--kf-color-info-strong)}:host(.kf-note-block--ok){--_icon: var(--kf-color-success-strong)}:host(.kf-note-block--warn){--_icon: var(--kf-color-warning-strong)}:host(.kf-note-block--error){--_icon: var(--kf-color-error-strong)}:host(.kf-note-block--tinted.kf-note-block--info){background:var(--kf-color-info-soft)}:host(.kf-note-block--tinted.kf-note-block--ok){background:var(--kf-color-success-soft)}:host(.kf-note-block--tinted.kf-note-block--warn){background:var(--kf-color-warning-soft)}:host(.kf-note-block--tinted.kf-note-block--error){background:var(--kf-color-error-soft)}.kf-note-block__icon{color:var(--_icon);margin-block-start:.125rem}.kf-note-block__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--kf-space-xs);min-width:0}.kf-note-block__head{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--kf-space-sm)}.kf-note-block__title{font-weight:var(--kf-font-weight-title);color:var(--kf-color-ink)}.kf-note-block__text{font-family:var(--kf-font-body);font-size:var(--kf-font-size-body);color:var(--kf-color-text);white-space:pre-line;overflow-wrap:anywhere}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }] });
|
|
12970
13042
|
}
|
|
12971
13043
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: NoteBlock, decorators: [{
|
|
12972
13044
|
type: Component,
|
|
12973
|
-
args: [{ selector: 'kf-note-block', host: {
|
|
13045
|
+
args: [{ selector: 'kf-note-block', imports: [Icon], host: {
|
|
12974
13046
|
'[class]': '"kf-note-block--" + tone()',
|
|
12975
|
-
|
|
12976
|
-
|
|
13047
|
+
'[class.kf-note-block--tinted]': 'tinted()',
|
|
13048
|
+
}, template: "@if (leadIcon(); as name) {\n <kf-icon class=\"kf-note-block__icon\" [name]=\"name\" size=\"sm\" />\n}\n\n<div class=\"kf-note-block__body\">\n @if (title() || subtitle()) {\n <span class=\"kf-note-block__head\">\n @if (title(); as heading) {\n <span class=\"kf-note-block__title kf-overline-text\">{{ heading }}</span>\n }\n @if (subtitle(); as sub) {\n <span class=\"kf-note-block__subtitle kf-caption-text\">{{ sub }}</span>\n }\n </span>\n }\n\n <span class=\"kf-note-block__text\"><ng-content /></span>\n\n @if (signature(); as author) {\n <span class=\"kf-note-block__signature kf-caption-text\">{{ author }}</span>\n }\n</div>\n", styles: [".kf-overline-text{font-family:var(--kf-font-title);font-size:var(--kf-font-size-caption);font-weight:var(--kf-font-weight-medium);letter-spacing:.04em;text-transform:uppercase;color:var(--kf-color-text-muted)}.kf-caption-text{font-size:var(--kf-font-size-caption);font-weight:var(--kf-font-weight-body);color:var(--kf-color-text-muted)}:host{--_icon: var(--kf-color-text-muted);display:flex;align-items:flex-start;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-md);border:1px solid var(--kf-color-border);border-radius:var(--kf-radius-sm);background:var(--kf-color-surface);min-width:0}:host(.kf-note-block--info){--_icon: var(--kf-color-info-strong)}:host(.kf-note-block--ok){--_icon: var(--kf-color-success-strong)}:host(.kf-note-block--warn){--_icon: var(--kf-color-warning-strong)}:host(.kf-note-block--error){--_icon: var(--kf-color-error-strong)}:host(.kf-note-block--tinted.kf-note-block--info){background:var(--kf-color-info-soft)}:host(.kf-note-block--tinted.kf-note-block--ok){background:var(--kf-color-success-soft)}:host(.kf-note-block--tinted.kf-note-block--warn){background:var(--kf-color-warning-soft)}:host(.kf-note-block--tinted.kf-note-block--error){background:var(--kf-color-error-soft)}.kf-note-block__icon{color:var(--_icon);margin-block-start:.125rem}.kf-note-block__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--kf-space-xs);min-width:0}.kf-note-block__head{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--kf-space-sm)}.kf-note-block__title{font-weight:var(--kf-font-weight-title);color:var(--kf-color-ink)}.kf-note-block__text{font-family:var(--kf-font-body);font-size:var(--kf-font-size-body);color:var(--kf-color-text);white-space:pre-line;overflow-wrap:anywhere}\n"] }]
|
|
13049
|
+
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], signature: [{ type: i0.Input, args: [{ isSignal: true, alias: "signature", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], tinted: [{ type: i0.Input, args: [{ isSignal: true, alias: "tinted", required: false }] }] } });
|
|
12977
13050
|
|
|
12978
13051
|
const PAGE_STEPS = 10;
|
|
12979
13052
|
function fill(template, label, value) {
|
|
@@ -14778,11 +14851,11 @@ class SidebarNavItem {
|
|
|
14778
14851
|
}, /* @ts-ignore */
|
|
14779
14852
|
...(ngDevMode ? [{ debugName: "collapsedName" }] : /* istanbul ignore next */ []));
|
|
14780
14853
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SidebarNavItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14781
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: SidebarNavItem, isStandalone: true, selector: "kf-sidebar-nav-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: true, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<a\n class=\"kf-sidebar-nav-item\"\n [class.kf-sidebar-nav-item--active]=\"active()\"\n [class.kf-sidebar-nav-item--collapsed]=\"collapsed()\"\n [href]=\"href()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-label]=\"collapsed() ? collapsedName() : null\"\n [kfTooltip]=\"collapsed() ? label() : ''\"\n>\n <kf-icon [name]=\"icon()\" size=\"md\" />\n @if (!collapsed()) {\n <span class=\"kf-sidebar-nav-item__label\">{{ label() }}</span>\n }\n @if (badge(); as badgeData) {\n @if (collapsed()) {\n <span\n class=\"kf-sidebar-nav-item__dot\"\n [class.kf-sidebar-nav-item__dot--warn]=\"badgeTone() === 'warn'\"\n aria-hidden=\"true\"\n ></span>\n } @else {\n <span\n class=\"kf-sidebar-nav-item__badge\"\n [class.kf-sidebar-nav-item__badge--warn]=\"badgeTone() === 'warn'\"\n >{{ badgeData.count }}</span\n >\n @if (badgeData.label) {\n <span class=\"kf-sr-only\">{{ badgeData.label }}</span>\n }\n }\n }\n</a>\n", styles: [".kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.kf-sidebar-nav-item{box-sizing:border-box;position:relative;display:flex;align-items:center;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-md);border-radius:var(--kf-radius-sm);color:var(--kf-sidebar-fg);font-family:var(--kf-font-body);font-size:.875rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:background var(--kf-motion-fast, .14s),color var(--kf-motion-fast, .14s)}.kf-sidebar-nav-item:hover:not(.kf-sidebar-nav-item--active){background:var(--kf-sidebar-item-hover-bg);color:var(--kf-sidebar-item-active-fg)}.kf-sidebar-nav-item--collapsed:hover:not(.kf-sidebar-nav-item--active){background:var(--kf-sidebar-item-active-bg)}.kf-sidebar-nav-item--active{background:var(--kf-sidebar-item-active-bg);color:var(--kf-sidebar-item-active-fg)}.kf-sidebar-nav-item--active
|
|
14854
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: SidebarNavItem, isStandalone: true, selector: "kf-sidebar-nav-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: true, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<a\n class=\"kf-sidebar-nav-item\"\n [class.kf-sidebar-nav-item--active]=\"active()\"\n [class.kf-sidebar-nav-item--collapsed]=\"collapsed()\"\n [href]=\"href()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-label]=\"collapsed() ? collapsedName() : null\"\n [kfTooltip]=\"collapsed() ? label() : ''\"\n>\n <kf-icon [name]=\"icon()\" size=\"md\" />\n @if (!collapsed()) {\n <span class=\"kf-sidebar-nav-item__label\">{{ label() }}</span>\n }\n @if (badge(); as badgeData) {\n @if (collapsed()) {\n <span\n class=\"kf-sidebar-nav-item__dot\"\n [class.kf-sidebar-nav-item__dot--warn]=\"badgeTone() === 'warn'\"\n aria-hidden=\"true\"\n ></span>\n } @else {\n <span\n class=\"kf-sidebar-nav-item__badge\"\n [class.kf-sidebar-nav-item__badge--warn]=\"badgeTone() === 'warn'\"\n >{{ badgeData.count }}</span\n >\n @if (badgeData.label) {\n <span class=\"kf-sr-only\">{{ badgeData.label }}</span>\n }\n }\n }\n</a>\n", styles: [".kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.kf-sidebar-nav-item{box-sizing:border-box;position:relative;display:flex;align-items:center;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-md);border-radius:var(--kf-radius-sm);color:var(--kf-sidebar-fg);font-family:var(--kf-font-body);font-size:.875rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:background var(--kf-motion-fast, .14s),color var(--kf-motion-fast, .14s)}.kf-sidebar-nav-item:hover:not(.kf-sidebar-nav-item--active){background:var(--kf-sidebar-item-hover-bg);color:var(--kf-sidebar-item-active-fg)}.kf-sidebar-nav-item--collapsed:hover:not(.kf-sidebar-nav-item--active){background:var(--kf-sidebar-item-active-bg)}.kf-sidebar-nav-item--active{background:var(--kf-sidebar-item-active-bg);color:var(--kf-sidebar-item-active-fg);font-weight:700}.kf-sidebar-nav-item--active kf-icon{color:var(--kf-sidebar-accent)}.kf-sidebar-nav-item--collapsed{justify-content:center;width:40px;height:40px;padding-inline:0}.kf-sidebar-nav-item__badge{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:22px;min-height:22px;margin-inline-start:auto;padding:0 var(--kf-space-xs);border-radius:var(--kf-radius-pill);background:var(--kf-color-error);color:var(--kf-color-white);font-size:var(--kf-font-size-caption);font-weight:700;font-variant-numeric:tabular-nums;line-height:1}.kf-sidebar-nav-item__badge--warn{background:var(--kf-color-warning);color:var(--kf-color-ink)}.kf-sidebar-nav-item__dot{position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:var(--kf-radius-pill);background:color-mix(in srgb,var(--kf-color-error) 45%,var(--kf-color-white));pointer-events:none}.kf-sidebar-nav-item__dot--warn{background:var(--kf-color-warning)}:host-context([data-tone=\"light\"]) .kf-sidebar-nav-item__dot{background:var(--kf-color-error)}:host-context([data-tone=\"light\"]) .kf-sidebar-nav-item__dot--warn{background:var(--kf-color-warning-strong)}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "directive", type: TooltipDirective, selector: "[kfTooltip]", inputs: ["kfTooltip", "kfTooltipPosition"] }] });
|
|
14782
14855
|
}
|
|
14783
14856
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SidebarNavItem, decorators: [{
|
|
14784
14857
|
type: Component,
|
|
14785
|
-
args: [{ selector: 'kf-sidebar-nav-item', imports: [Icon, TooltipDirective], template: "<a\n class=\"kf-sidebar-nav-item\"\n [class.kf-sidebar-nav-item--active]=\"active()\"\n [class.kf-sidebar-nav-item--collapsed]=\"collapsed()\"\n [href]=\"href()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-label]=\"collapsed() ? collapsedName() : null\"\n [kfTooltip]=\"collapsed() ? label() : ''\"\n>\n <kf-icon [name]=\"icon()\" size=\"md\" />\n @if (!collapsed()) {\n <span class=\"kf-sidebar-nav-item__label\">{{ label() }}</span>\n }\n @if (badge(); as badgeData) {\n @if (collapsed()) {\n <span\n class=\"kf-sidebar-nav-item__dot\"\n [class.kf-sidebar-nav-item__dot--warn]=\"badgeTone() === 'warn'\"\n aria-hidden=\"true\"\n ></span>\n } @else {\n <span\n class=\"kf-sidebar-nav-item__badge\"\n [class.kf-sidebar-nav-item__badge--warn]=\"badgeTone() === 'warn'\"\n >{{ badgeData.count }}</span\n >\n @if (badgeData.label) {\n <span class=\"kf-sr-only\">{{ badgeData.label }}</span>\n }\n }\n }\n</a>\n", styles: [".kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.kf-sidebar-nav-item{box-sizing:border-box;position:relative;display:flex;align-items:center;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-md);border-radius:var(--kf-radius-sm);color:var(--kf-sidebar-fg);font-family:var(--kf-font-body);font-size:.875rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:background var(--kf-motion-fast, .14s),color var(--kf-motion-fast, .14s)}.kf-sidebar-nav-item:hover:not(.kf-sidebar-nav-item--active){background:var(--kf-sidebar-item-hover-bg);color:var(--kf-sidebar-item-active-fg)}.kf-sidebar-nav-item--collapsed:hover:not(.kf-sidebar-nav-item--active){background:var(--kf-sidebar-item-active-bg)}.kf-sidebar-nav-item--active{background:var(--kf-sidebar-item-active-bg);color:var(--kf-sidebar-item-active-fg)}.kf-sidebar-nav-item--active
|
|
14858
|
+
args: [{ selector: 'kf-sidebar-nav-item', imports: [Icon, TooltipDirective], template: "<a\n class=\"kf-sidebar-nav-item\"\n [class.kf-sidebar-nav-item--active]=\"active()\"\n [class.kf-sidebar-nav-item--collapsed]=\"collapsed()\"\n [href]=\"href()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-label]=\"collapsed() ? collapsedName() : null\"\n [kfTooltip]=\"collapsed() ? label() : ''\"\n>\n <kf-icon [name]=\"icon()\" size=\"md\" />\n @if (!collapsed()) {\n <span class=\"kf-sidebar-nav-item__label\">{{ label() }}</span>\n }\n @if (badge(); as badgeData) {\n @if (collapsed()) {\n <span\n class=\"kf-sidebar-nav-item__dot\"\n [class.kf-sidebar-nav-item__dot--warn]=\"badgeTone() === 'warn'\"\n aria-hidden=\"true\"\n ></span>\n } @else {\n <span\n class=\"kf-sidebar-nav-item__badge\"\n [class.kf-sidebar-nav-item__badge--warn]=\"badgeTone() === 'warn'\"\n >{{ badgeData.count }}</span\n >\n @if (badgeData.label) {\n <span class=\"kf-sr-only\">{{ badgeData.label }}</span>\n }\n }\n }\n</a>\n", styles: [".kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.kf-sidebar-nav-item{box-sizing:border-box;position:relative;display:flex;align-items:center;gap:var(--kf-space-sm);padding:var(--kf-space-sm) var(--kf-space-md);border-radius:var(--kf-radius-sm);color:var(--kf-sidebar-fg);font-family:var(--kf-font-body);font-size:.875rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:background var(--kf-motion-fast, .14s),color var(--kf-motion-fast, .14s)}.kf-sidebar-nav-item:hover:not(.kf-sidebar-nav-item--active){background:var(--kf-sidebar-item-hover-bg);color:var(--kf-sidebar-item-active-fg)}.kf-sidebar-nav-item--collapsed:hover:not(.kf-sidebar-nav-item--active){background:var(--kf-sidebar-item-active-bg)}.kf-sidebar-nav-item--active{background:var(--kf-sidebar-item-active-bg);color:var(--kf-sidebar-item-active-fg);font-weight:700}.kf-sidebar-nav-item--active kf-icon{color:var(--kf-sidebar-accent)}.kf-sidebar-nav-item--collapsed{justify-content:center;width:40px;height:40px;padding-inline:0}.kf-sidebar-nav-item__badge{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:22px;min-height:22px;margin-inline-start:auto;padding:0 var(--kf-space-xs);border-radius:var(--kf-radius-pill);background:var(--kf-color-error);color:var(--kf-color-white);font-size:var(--kf-font-size-caption);font-weight:700;font-variant-numeric:tabular-nums;line-height:1}.kf-sidebar-nav-item__badge--warn{background:var(--kf-color-warning);color:var(--kf-color-ink)}.kf-sidebar-nav-item__dot{position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:var(--kf-radius-pill);background:color-mix(in srgb,var(--kf-color-error) 45%,var(--kf-color-white));pointer-events:none}.kf-sidebar-nav-item__dot--warn{background:var(--kf-color-warning)}:host-context([data-tone=\"light\"]) .kf-sidebar-nav-item__dot{background:var(--kf-color-error)}:host-context([data-tone=\"light\"]) .kf-sidebar-nav-item__dot--warn{background:var(--kf-color-warning-strong)}\n"] }]
|
|
14786
14859
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: true }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }] } });
|
|
14787
14860
|
|
|
14788
14861
|
const MOBILE_BREAKPOINT_QUERY = '(max-width: 900px)';
|
|
@@ -16013,7 +16086,7 @@ class TimeField {
|
|
|
16013
16086
|
target?.focus({ preventScroll: true });
|
|
16014
16087
|
}
|
|
16015
16088
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: TimeField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16016
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: TimeField, isStandalone: true, selector: "kf-time-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, hourCycle: { classPropertyName: "hourCycle", publicName: "hourCycle", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, parseErrorMessage: { classPropertyName: "parseErrorMessage", publicName: "parseErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, rangeErrorMessage: { classPropertyName: "rangeErrorMessage", publicName: "rangeErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, openListLabel: { classPropertyName: "openListLabel", publicName: "openListLabel", isSignal: true, isRequired: false, transformFunction: null }, periodLabel: { classPropertyName: "periodLabel", publicName: "periodLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, viewQueries: [{ propertyName: "field", first: true, predicate: Input, descendants: true, isSignal: true }, { propertyName: "fieldHost", first: true, predicate: Input, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "panel", first: true, predicate: DropdownPanel, descendants: true, isSignal: true }], ngImport: i0, template: "<kf-dropdown [(open)]=\"listOpen\" [anchor]=\"fieldHost()\" [autoFocus]=\"false\">\n <kf-input\n [label]=\"label()\"\n [hideLabel]=\"hideLabel()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [invalid]=\"fieldInvalid()\"\n [errorMessage]=\"fieldError()\"\n [hint]=\"hint()\"\n placeholder=\"hh:mm\"\n [maxlength]=\"5\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"text()\"\n (ngModelChange)=\"onText($event)\"\n (keydown)=\"onKeydown($event)\"\n (focusout)=\"onFocusOut()\"\n >\n @if (hourCycle() === 12) {\n <kf-button\n kf-input-trailing\n class=\"kf-time-field__period\"\n variant=\"ghost\"\n size=\"sm\"\n type=\"button\"\n [ariaLabel]=\"periodLabel() + ': ' + periodNames()[period()]\"\n [disabled]=\"disabled()\"\n (click)=\"togglePeriod()\"\n >\n {{ periodNames()[period()] }}\n </kf-button>\n }\n <kf-button\n kf-input-trailing\n class=\"kf-time-field__toggle\"\n variant=\"ghost\"\n shape=\"circle\"\n size=\"sm\"\n icon=\"clock\"\n type=\"button\"\n [ariaLabel]=\"openListLabel()\"\n [ariaHaspopup]=\"'menu'\"\n [ariaExpanded]=\"listOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"toggleList()\"\n />\n </kf-input>\n <kf-dropdown-panel maxHeight=\"16rem\" width=\"11rem\" [ariaLabel]=\"label()\">\n @if (listOpen()) {\n @for (slot of slots(); track slot.value) {\n <kf-dropdown-item [current]=\"slot.value === value()\" (click)=\"pick(slot.value)\">\n {{ slot.label }}\n </kf-dropdown-item>\n }\n }\n </kf-dropdown-panel>\n</kf-dropdown>\n", styles: [":host{display:block}kf-dropdown{display:block}\n"], dependencies: [{ kind: "component", type: Button, selector: "kf-button", inputs: ["variant", "size", "shape", "disabled", "type", "icon", "block", "loading", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDisabled", "ariaDescribedby", "attention", "ariaControls", "ariaHaspopup"], outputs: ["disabledClick"] }, { kind: "component", type: Dropdown, selector: "kf-dropdown", inputs: ["open", "anchor", "autoFocus"], outputs: ["openChange"] }, { kind: "component", type: DropdownItem, selector: "kf-dropdown-item", inputs: ["tone", "icon", "disabled", "description", "disabledReason", "badge", "badgeTone", "current", "checked"] }, { kind: "component", type: DropdownPanel, selector: "kf-dropdown-panel", inputs: ["variant", "role", "maxHeight", "width", "ariaLabel"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Input, selector: "kf-input", inputs: ["label", "size", "hideLabel", "required", "icon", "suffix", "hint", "invalid", "errorMessage", "disabled", "readonly", "type", "placeholder", "autocomplete", "name", "inputmode", "min", "max", "step", "maxlength", "toggleable", "ariaLabel", "clearable", "clearLabel"], outputs: ["cleared"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16089
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: TimeField, isStandalone: true, selector: "kf-time-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, hourCycle: { classPropertyName: "hourCycle", publicName: "hourCycle", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, parseErrorMessage: { classPropertyName: "parseErrorMessage", publicName: "parseErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, rangeErrorMessage: { classPropertyName: "rangeErrorMessage", publicName: "rangeErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, openListLabel: { classPropertyName: "openListLabel", publicName: "openListLabel", isSignal: true, isRequired: false, transformFunction: null }, periodLabel: { classPropertyName: "periodLabel", publicName: "periodLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, viewQueries: [{ propertyName: "field", first: true, predicate: Input, descendants: true, isSignal: true }, { propertyName: "fieldHost", first: true, predicate: Input, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "panel", first: true, predicate: DropdownPanel, descendants: true, isSignal: true }], ngImport: i0, template: "<kf-dropdown [(open)]=\"listOpen\" [anchor]=\"fieldHost()\" [autoFocus]=\"false\">\n <kf-input\n [label]=\"label()\"\n [hideLabel]=\"hideLabel()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [invalid]=\"fieldInvalid()\"\n [errorMessage]=\"fieldError()\"\n [hint]=\"hint()\"\n placeholder=\"hh:mm\"\n [maxlength]=\"5\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [ngModelOptions]=\"{ standalone: true }\"\n [ngModel]=\"text()\"\n (ngModelChange)=\"onText($event)\"\n (keydown)=\"onKeydown($event)\"\n (focusout)=\"onFocusOut()\"\n >\n @if (hourCycle() === 12) {\n <kf-button\n kf-input-trailing\n class=\"kf-time-field__period\"\n variant=\"ghost\"\n size=\"sm\"\n type=\"button\"\n [ariaLabel]=\"periodLabel() + ': ' + periodNames()[period()]\"\n [disabled]=\"disabled()\"\n (click)=\"togglePeriod()\"\n >\n {{ periodNames()[period()] }}\n </kf-button>\n }\n <kf-button\n kf-input-trailing\n class=\"kf-time-field__toggle\"\n variant=\"ghost\"\n shape=\"circle\"\n size=\"sm\"\n icon=\"clock\"\n type=\"button\"\n [ariaLabel]=\"openListLabel()\"\n [ariaHaspopup]=\"'menu'\"\n [ariaExpanded]=\"listOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"toggleList()\"\n />\n </kf-input>\n <kf-dropdown-panel maxHeight=\"16rem\" width=\"11rem\" [ariaLabel]=\"label()\">\n @if (listOpen()) {\n @for (slot of slots(); track slot.value) {\n <kf-dropdown-item [current]=\"slot.value === value()\" (click)=\"pick(slot.value)\">\n {{ slot.label }}\n </kf-dropdown-item>\n }\n }\n </kf-dropdown-panel>\n</kf-dropdown>\n", styles: [":host{display:block}kf-dropdown{display:block}\n"], dependencies: [{ kind: "component", type: Button, selector: "kf-button", inputs: ["variant", "size", "shape", "disabled", "type", "icon", "block", "loading", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDisabled", "ariaDescribedby", "attention", "ariaControls", "ariaHaspopup"], outputs: ["disabledClick"] }, { kind: "component", type: Dropdown, selector: "kf-dropdown", inputs: ["open", "anchor", "autoFocus"], outputs: ["openChange"] }, { kind: "component", type: DropdownItem, selector: "kf-dropdown-item", inputs: ["tone", "icon", "disabled", "description", "disabledReason", "badge", "badgeTone", "current", "checked"] }, { kind: "component", type: DropdownPanel, selector: "kf-dropdown-panel", inputs: ["variant", "role", "maxHeight", "width", "ariaLabel"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Input, selector: "kf-input", inputs: ["label", "size", "hideLabel", "required", "icon", "suffix", "hint", "invalid", "errorMessage", "disabled", "readonly", "type", "placeholder", "autocomplete", "name", "inputmode", "autocapitalize", "autocorrect", "spellcheck", "enterkeyhint", "min", "max", "step", "maxlength", "toggleable", "ariaLabel", "clearable", "clearLabel"], outputs: ["cleared"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16017
16090
|
}
|
|
16018
16091
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: TimeField, decorators: [{
|
|
16019
16092
|
type: Component,
|
|
@@ -16457,11 +16530,11 @@ class ToastHost {
|
|
|
16457
16530
|
this.dismiss(t.id);
|
|
16458
16531
|
}
|
|
16459
16532
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: ToastHost, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16460
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: ToastHost, isStandalone: true, selector: "kf-toast-host", ngImport: i0, template: "@for (t of toastList(); track t.id) {\n <div\n class=\"kf-toast kf-toast--{{ t.tone }}\"\n [class.kf-toast--leaving]=\"t.leaving\"\n role=\"status\"\n [attr.aria-live]=\"t.tone === 'error' ? 'assertive' : 'polite'\"\n (mouseenter)=\"pause(t, 'hover')\"\n (mouseleave)=\"resume(t, 'hover')\"\n (focusin)=\"pause(t, 'focus')\"\n (focusout)=\"resume(t, 'focus')\"\n >\n <kf-icon class=\"kf-toast__icon\" [name]=\"toastIcon(t.tone)\" size=\"sm\" />\n <span class=\"kf-toast__message\"\n >{{ t.message }}\n <!-- Montado de nuevo en cada repetici\u00F3n para que el contador se note. -->\n @for (n of t.count > 1 ? [t.count] : []; track n) {\n <span class=\"kf-toast__count\"\n ><span aria-hidden=\"true\">\u00D7{{ n }}</span\n ><span class=\"kf-toast__sr\">({{ n }} veces)</span></span\n >\n }\n </span>\n @if (t.action; as action) {\n <button type=\"button\" class=\"kf-toast__action\" (click)=\"runAction(t)\">\n {{ action.label }}\n </button>\n }\n <button\n type=\"button\"\n class=\"kf-toast__dismiss\"\n [class.kf-toast__dismiss--prominent]=\"t.tone === 'error'\"\n [attr.aria-label]=\"t.tone === 'error' ? 'Cerrar mensaje de error' : 'Cerrar'\"\n (click)=\"dismiss(t.id)\"\n >\n <kf-icon name=\"x\" size=\"sm\" />\n </button>\n <!-- Un refresco por clave cambia `revision`: la barra se vuelve a montar y su cuenta regresiva reinicia. -->\n @for (revision of [t.revision]; track revision) {\n <span class=\"kf-toast__bar\" [style.--kf-toast-dur]=\"t.duration + 'ms'\"></span>\n }\n </div>\n}\n", styles: ["@keyframes kf-toast-in{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes kf-toast-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes kf-toast-indeterminate{0%{left:-40%;width:40%}50%{left:30%;width:55%}to{left:100%;width:40%}}.kf-toast{--kf-toast-accent: var(--kf-color-info);position:fixed;inset-block-end:var(--kf-space-lg);inset-inline-end:var(--kf-space-lg);z-index:1100;display:flex;align-items:center;gap:var(--kf-space-sm);max-inline-size:360px;padding:var(--kf-space-sm)
|
|
16533
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: ToastHost, isStandalone: true, selector: "kf-toast-host", ngImport: i0, template: "@for (t of toastList(); track t.id) {\n <div\n class=\"kf-toast kf-toast--{{ t.tone }}\"\n [class.kf-toast--leaving]=\"t.leaving\"\n role=\"status\"\n [attr.aria-live]=\"t.tone === 'error' ? 'assertive' : 'polite'\"\n (mouseenter)=\"pause(t, 'hover')\"\n (mouseleave)=\"resume(t, 'hover')\"\n (focusin)=\"pause(t, 'focus')\"\n (focusout)=\"resume(t, 'focus')\"\n >\n <kf-icon class=\"kf-toast__icon\" [name]=\"toastIcon(t.tone)\" size=\"sm\" />\n <span class=\"kf-toast__message\"\n >{{ t.message }}\n <!-- Montado de nuevo en cada repetici\u00F3n para que el contador se note. -->\n @for (n of t.count > 1 ? [t.count] : []; track n) {\n <span class=\"kf-toast__count\"\n ><span aria-hidden=\"true\">\u00D7{{ n }}</span\n ><span class=\"kf-toast__sr\">({{ n }} veces)</span></span\n >\n }\n </span>\n @if (t.action; as action) {\n <button type=\"button\" class=\"kf-toast__action\" (click)=\"runAction(t)\">\n {{ action.label }}\n </button>\n }\n <button\n type=\"button\"\n class=\"kf-toast__dismiss\"\n [class.kf-toast__dismiss--prominent]=\"t.tone === 'error'\"\n [attr.aria-label]=\"t.tone === 'error' ? 'Cerrar mensaje de error' : 'Cerrar'\"\n (click)=\"dismiss(t.id)\"\n >\n <kf-icon name=\"x\" size=\"sm\" />\n </button>\n <!-- Un refresco por clave cambia `revision`: la barra se vuelve a montar y su cuenta regresiva reinicia. -->\n @for (revision of [t.revision]; track revision) {\n <span class=\"kf-toast__bar\" [style.--kf-toast-dur]=\"t.duration + 'ms'\"></span>\n }\n </div>\n}\n", styles: ["@keyframes kf-toast-in{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes kf-toast-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes kf-toast-indeterminate{0%{left:-40%;width:40%}50%{left:30%;width:55%}to{left:100%;width:40%}}.kf-toast{--kf-toast-accent: var(--kf-color-info);position:fixed;inset-block-end:var(--kf-space-lg);inset-inline-end:var(--kf-space-lg);z-index:1100;display:flex;align-items:center;gap:var(--kf-space-sm);max-inline-size:360px;padding:var(--kf-space-sm);border-radius:var(--kf-radius-md);background:var(--kf-color-ink);color:var(--kf-color-white);box-shadow:var(--kf-shadow-lg);font-family:var(--kf-font-body);font-size:.875rem;font-weight:600;line-height:1.4;overflow:hidden;animation:kf-toast-in var(--kf-motion-base, .25s) var(--kf-ease-enter, ease) forwards;transition:transform var(--kf-motion-fast, .2s) var(--kf-ease-exit, ease),opacity var(--kf-motion-fast, .2s) var(--kf-ease-exit, ease)}.kf-toast--leaving{transform:translateY(20px);opacity:0}.kf-toast--success{--kf-toast-accent: var(--kf-color-success)}.kf-toast--error{--kf-toast-accent: var(--kf-color-error)}.kf-toast--warning{--kf-toast-accent: var(--kf-color-warning)}.kf-toast--info,.kf-toast--loading{--kf-toast-accent: var(--kf-color-info)}.kf-toast__icon{flex:none;padding:6px;border-radius:var(--kf-radius-pill);background:color-mix(in srgb,var(--kf-toast-accent) 24%,transparent);color:var(--kf-toast-accent)}.kf-toast__message{flex:1}.kf-toast__count{display:inline-block;margin-inline-start:var(--kf-space-xs);padding:0 6px;border-radius:var(--kf-radius-pill);background:color-mix(in srgb,var(--kf-color-white) 16%,transparent);font-size:var(--kf-font-size-caption);font-variant-numeric:tabular-nums;animation:kf-toast-count-pop var(--kf-motion-fast, .15s) var(--kf-ease-enter, ease-out)}@keyframes kf-toast-count-pop{0%{transform:scale(.8)}}.kf-toast__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.kf-toast__action{flex:none;padding:2px var(--kf-space-xs);border:none;border-radius:var(--kf-radius-xs);background:transparent;color:var(--kf-toast-accent);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.kf-toast__action:hover{opacity:.85}.kf-toast__dismiss{flex:none;display:grid;place-items:center;inline-size:24px;block-size:24px;padding:0;border:none;border-radius:var(--kf-radius-xs);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer;opacity:.6}.kf-toast__dismiss:hover{opacity:1}.kf-toast__dismiss:focus-visible,.kf-toast__action:focus-visible{outline:2px solid var(--kf-color-white);outline-offset:1px;opacity:1}.kf-toast__dismiss--prominent{inline-size:32px;block-size:32px;opacity:1}.kf-toast__bar{position:absolute;inset-block-end:0;left:0;block-size:3px;inline-size:100%;background:var(--kf-color-white);opacity:.32;transform-origin:left;animation:kf-toast-bar var(--kf-toast-dur, 2.8s) linear forwards}.kf-toast--loading .kf-toast__bar{left:-40%;inline-size:40%;opacity:.4;animation:kf-toast-indeterminate 1.4s ease-in-out infinite}.kf-toast:hover .kf-toast__bar,.kf-toast:focus-within .kf-toast__bar{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.kf-toast,.kf-toast__bar,.kf-toast__count,.kf-toast--loading .kf-toast__bar{animation:none}.kf-toast{transition:none}}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16461
16534
|
}
|
|
16462
16535
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: ToastHost, decorators: [{
|
|
16463
16536
|
type: Component,
|
|
16464
|
-
args: [{ selector: 'kf-toast-host', changeDetection: ChangeDetectionStrategy.OnPush, imports: [Icon], template: "@for (t of toastList(); track t.id) {\n <div\n class=\"kf-toast kf-toast--{{ t.tone }}\"\n [class.kf-toast--leaving]=\"t.leaving\"\n role=\"status\"\n [attr.aria-live]=\"t.tone === 'error' ? 'assertive' : 'polite'\"\n (mouseenter)=\"pause(t, 'hover')\"\n (mouseleave)=\"resume(t, 'hover')\"\n (focusin)=\"pause(t, 'focus')\"\n (focusout)=\"resume(t, 'focus')\"\n >\n <kf-icon class=\"kf-toast__icon\" [name]=\"toastIcon(t.tone)\" size=\"sm\" />\n <span class=\"kf-toast__message\"\n >{{ t.message }}\n <!-- Montado de nuevo en cada repetici\u00F3n para que el contador se note. -->\n @for (n of t.count > 1 ? [t.count] : []; track n) {\n <span class=\"kf-toast__count\"\n ><span aria-hidden=\"true\">\u00D7{{ n }}</span\n ><span class=\"kf-toast__sr\">({{ n }} veces)</span></span\n >\n }\n </span>\n @if (t.action; as action) {\n <button type=\"button\" class=\"kf-toast__action\" (click)=\"runAction(t)\">\n {{ action.label }}\n </button>\n }\n <button\n type=\"button\"\n class=\"kf-toast__dismiss\"\n [class.kf-toast__dismiss--prominent]=\"t.tone === 'error'\"\n [attr.aria-label]=\"t.tone === 'error' ? 'Cerrar mensaje de error' : 'Cerrar'\"\n (click)=\"dismiss(t.id)\"\n >\n <kf-icon name=\"x\" size=\"sm\" />\n </button>\n <!-- Un refresco por clave cambia `revision`: la barra se vuelve a montar y su cuenta regresiva reinicia. -->\n @for (revision of [t.revision]; track revision) {\n <span class=\"kf-toast__bar\" [style.--kf-toast-dur]=\"t.duration + 'ms'\"></span>\n }\n </div>\n}\n", styles: ["@keyframes kf-toast-in{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes kf-toast-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes kf-toast-indeterminate{0%{left:-40%;width:40%}50%{left:30%;width:55%}to{left:100%;width:40%}}.kf-toast{--kf-toast-accent: var(--kf-color-info);position:fixed;inset-block-end:var(--kf-space-lg);inset-inline-end:var(--kf-space-lg);z-index:1100;display:flex;align-items:center;gap:var(--kf-space-sm);max-inline-size:360px;padding:var(--kf-space-sm)
|
|
16537
|
+
args: [{ selector: 'kf-toast-host', changeDetection: ChangeDetectionStrategy.OnPush, imports: [Icon], template: "@for (t of toastList(); track t.id) {\n <div\n class=\"kf-toast kf-toast--{{ t.tone }}\"\n [class.kf-toast--leaving]=\"t.leaving\"\n role=\"status\"\n [attr.aria-live]=\"t.tone === 'error' ? 'assertive' : 'polite'\"\n (mouseenter)=\"pause(t, 'hover')\"\n (mouseleave)=\"resume(t, 'hover')\"\n (focusin)=\"pause(t, 'focus')\"\n (focusout)=\"resume(t, 'focus')\"\n >\n <kf-icon class=\"kf-toast__icon\" [name]=\"toastIcon(t.tone)\" size=\"sm\" />\n <span class=\"kf-toast__message\"\n >{{ t.message }}\n <!-- Montado de nuevo en cada repetici\u00F3n para que el contador se note. -->\n @for (n of t.count > 1 ? [t.count] : []; track n) {\n <span class=\"kf-toast__count\"\n ><span aria-hidden=\"true\">\u00D7{{ n }}</span\n ><span class=\"kf-toast__sr\">({{ n }} veces)</span></span\n >\n }\n </span>\n @if (t.action; as action) {\n <button type=\"button\" class=\"kf-toast__action\" (click)=\"runAction(t)\">\n {{ action.label }}\n </button>\n }\n <button\n type=\"button\"\n class=\"kf-toast__dismiss\"\n [class.kf-toast__dismiss--prominent]=\"t.tone === 'error'\"\n [attr.aria-label]=\"t.tone === 'error' ? 'Cerrar mensaje de error' : 'Cerrar'\"\n (click)=\"dismiss(t.id)\"\n >\n <kf-icon name=\"x\" size=\"sm\" />\n </button>\n <!-- Un refresco por clave cambia `revision`: la barra se vuelve a montar y su cuenta regresiva reinicia. -->\n @for (revision of [t.revision]; track revision) {\n <span class=\"kf-toast__bar\" [style.--kf-toast-dur]=\"t.duration + 'ms'\"></span>\n }\n </div>\n}\n", styles: ["@keyframes kf-toast-in{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes kf-toast-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes kf-toast-indeterminate{0%{left:-40%;width:40%}50%{left:30%;width:55%}to{left:100%;width:40%}}.kf-toast{--kf-toast-accent: var(--kf-color-info);position:fixed;inset-block-end:var(--kf-space-lg);inset-inline-end:var(--kf-space-lg);z-index:1100;display:flex;align-items:center;gap:var(--kf-space-sm);max-inline-size:360px;padding:var(--kf-space-sm);border-radius:var(--kf-radius-md);background:var(--kf-color-ink);color:var(--kf-color-white);box-shadow:var(--kf-shadow-lg);font-family:var(--kf-font-body);font-size:.875rem;font-weight:600;line-height:1.4;overflow:hidden;animation:kf-toast-in var(--kf-motion-base, .25s) var(--kf-ease-enter, ease) forwards;transition:transform var(--kf-motion-fast, .2s) var(--kf-ease-exit, ease),opacity var(--kf-motion-fast, .2s) var(--kf-ease-exit, ease)}.kf-toast--leaving{transform:translateY(20px);opacity:0}.kf-toast--success{--kf-toast-accent: var(--kf-color-success)}.kf-toast--error{--kf-toast-accent: var(--kf-color-error)}.kf-toast--warning{--kf-toast-accent: var(--kf-color-warning)}.kf-toast--info,.kf-toast--loading{--kf-toast-accent: var(--kf-color-info)}.kf-toast__icon{flex:none;padding:6px;border-radius:var(--kf-radius-pill);background:color-mix(in srgb,var(--kf-toast-accent) 24%,transparent);color:var(--kf-toast-accent)}.kf-toast__message{flex:1}.kf-toast__count{display:inline-block;margin-inline-start:var(--kf-space-xs);padding:0 6px;border-radius:var(--kf-radius-pill);background:color-mix(in srgb,var(--kf-color-white) 16%,transparent);font-size:var(--kf-font-size-caption);font-variant-numeric:tabular-nums;animation:kf-toast-count-pop var(--kf-motion-fast, .15s) var(--kf-ease-enter, ease-out)}@keyframes kf-toast-count-pop{0%{transform:scale(.8)}}.kf-toast__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.kf-toast__action{flex:none;padding:2px var(--kf-space-xs);border:none;border-radius:var(--kf-radius-xs);background:transparent;color:var(--kf-toast-accent);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.kf-toast__action:hover{opacity:.85}.kf-toast__dismiss{flex:none;display:grid;place-items:center;inline-size:24px;block-size:24px;padding:0;border:none;border-radius:var(--kf-radius-xs);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer;opacity:.6}.kf-toast__dismiss:hover{opacity:1}.kf-toast__dismiss:focus-visible,.kf-toast__action:focus-visible{outline:2px solid var(--kf-color-white);outline-offset:1px;opacity:1}.kf-toast__dismiss--prominent{inline-size:32px;block-size:32px;opacity:1}.kf-toast__bar{position:absolute;inset-block-end:0;left:0;block-size:3px;inline-size:100%;background:var(--kf-color-white);opacity:.32;transform-origin:left;animation:kf-toast-bar var(--kf-toast-dur, 2.8s) linear forwards}.kf-toast--loading .kf-toast__bar{left:-40%;inline-size:40%;opacity:.4;animation:kf-toast-indeterminate 1.4s ease-in-out infinite}.kf-toast:hover .kf-toast__bar,.kf-toast:focus-within .kf-toast__bar{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.kf-toast,.kf-toast__bar,.kf-toast__count,.kf-toast--loading .kf-toast__bar{animation:none}.kf-toast{transition:none}}\n"] }]
|
|
16465
16538
|
}] });
|
|
16466
16539
|
|
|
16467
16540
|
/*
|