@kaufmann-lab/ui 0.1.29 → 0.1.31
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 +38 -12
- package/fesm2022/kaufmann-lab-ui-auth.mjs.map +1 -1
- package/fesm2022/kaufmann-lab-ui-business.mjs +56 -7
- package/fesm2022/kaufmann-lab-ui-business.mjs.map +1 -1
- package/fesm2022/kaufmann-lab-ui-charts.mjs +1248 -0
- package/fesm2022/kaufmann-lab-ui-charts.mjs.map +1 -0
- package/fesm2022/kaufmann-lab-ui-core.mjs +9119 -3851
- package/fesm2022/kaufmann-lab-ui-core.mjs.map +1 -1
- package/fesm2022/kaufmann-lab-ui-map.mjs +301 -16
- package/fesm2022/kaufmann-lab-ui-map.mjs.map +1 -1
- package/fesm2022/kaufmann-lab-ui-shared.mjs +51 -20
- package/fesm2022/kaufmann-lab-ui-shared.mjs.map +1 -1
- package/fesm2022/kaufmann-lab-ui.mjs +4 -0
- package/fesm2022/kaufmann-lab-ui.mjs.map +1 -1
- package/package.json +5 -1
- package/src/tokens/base.css +102 -2
- package/src/tokens/density.css +27 -0
- package/src/tokens/index.css +5 -1
- package/src/tokens/themes/andes-maq.css +8 -0
- package/src/tokens/themes/divemotor-star.css +8 -0
- package/src/tokens/themes/kaufmann-ar.css +8 -0
- package/src/tokens/tones.css +52 -0
- package/types/kaufmann-lab-ui-auth.d.ts +23 -4
- package/types/kaufmann-lab-ui-business.d.ts +32 -2
- package/types/kaufmann-lab-ui-charts.d.ts +571 -0
- package/types/kaufmann-lab-ui-core.d.ts +2003 -54
- package/types/kaufmann-lab-ui-map.d.ts +112 -4
- package/types/kaufmann-lab-ui-shared.d.ts +25 -5
|
@@ -2,6 +2,8 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { AfterContentInit, TemplateRef, Signal, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { SafeResourceUrl } from '@angular/platform-browser';
|
|
5
|
+
import { DeadlineTone } from '@kaufmann-lab/ui/shared';
|
|
6
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Nombre de cada ícono del design system. Página 5 del PDF fija un set de
|
|
@@ -39,8 +41,141 @@ import { SafeResourceUrl } from '@angular/platform-browser';
|
|
|
39
41
|
* `layout-grid` (de Lucide, cuatro cuadros) es extensión propia: representa
|
|
40
42
|
* la vista de tarjetas; `grid` dibuja una cuadrícula de tabla y no se
|
|
41
43
|
* distingue de la vista de tabla.
|
|
44
|
+
*
|
|
45
|
+
* `sparkle`, `crane`, `swap`, `camera`, `image`, `users`, `route`, `sliders`,
|
|
46
|
+
* `database`, `lock`, `wifi-off`, `rotate-cw`, `plug`, `signal`, `arrow-up`,
|
|
47
|
+
* `link`, `panel-right`, `panel-bottom`, `smartphone`, `scan` y `box` son
|
|
48
|
+
* extensión propia del mismo trazo (24×24, 1.9px). `rotate-cw` lleva el nombre
|
|
49
|
+
* de Lucide para no confundirlo con el input `rotate` de `kf-icon`. No hay
|
|
50
|
+
* `chevron-up` ni `more-horizontal`: son `chevron-down` y `more-vertical` con
|
|
51
|
+
* `rotate`.
|
|
52
|
+
*/
|
|
53
|
+
type IconName = 'activity' | 'alert-circle' | 'alert-octagon' | 'alert-triangle' | 'arrow-up' | 'award' | 'bar-chart' | 'bell' | 'box' | 'bus' | 'calculator' | 'calendar' | 'camera' | 'car' | 'cart' | 'check' | 'check-circle' | 'check-square' | 'chevron-down' | 'chevron-left' | 'chevron-left-bar' | 'chevron-right' | 'clipboard' | 'clock' | 'crane' | 'credit-card' | 'crosshair' | 'database' | 'download' | 'edit' | 'external-link' | 'eye' | 'eye-off' | 'file' | 'filter' | 'gauge' | 'gift' | 'grid' | 'history' | 'home' | 'image' | 'inbox' | 'info' | 'layers' | 'layout-grid' | 'link' | 'list' | 'lock' | 'log-out' | 'mail' | 'map' | 'map-pin' | 'maximize' | 'menu' | 'message-circle' | 'mic' | 'mic-off' | 'minimize' | 'minus' | 'monitor' | 'more-vertical' | 'navigation' | 'panel-bottom' | 'panel-right' | 'pause' | 'phone' | 'pin' | 'play' | 'plug' | 'plus' | 'refresh' | 'rotate-cw' | 'route' | 'scan' | 'search' | 'settings' | 'shield-check' | 'signal' | 'sliders' | 'smartphone' | 'sort' | 'sparkle' | 'star' | 'swap' | 'ticket' | 'tool' | 'trash' | 'truck' | 'upload-cloud' | 'user' | 'user-search' | 'users' | 'video' | 'wifi-off' | 'x' | 'zap';
|
|
54
|
+
|
|
55
|
+
type DropdownItemTone = 'neutral' | 'error';
|
|
56
|
+
type DropdownItemBadgeTone = 'neutral' | 'ok' | 'warn' | 'error' | 'info';
|
|
57
|
+
/**
|
|
58
|
+
* Ítem de acción dentro de un `kf-dropdown-panel`. Es un `<button>` nativo
|
|
59
|
+
* (no un `<a>`): dispara comportamiento en la pantalla actual, no navega.
|
|
60
|
+
*
|
|
61
|
+
* `icon` es opcional — sin él, el ítem es solo texto.
|
|
62
|
+
*
|
|
63
|
+
* <kf-dropdown-item icon="log-out" (click)="onLogout()" tone="error">Cerrar sesión</kf-dropdown-item>
|
|
64
|
+
*
|
|
65
|
+
* Contenido inicial propio (por ejemplo un `kf-avatar` en un ítem de cuenta): se
|
|
66
|
+
* proyecta con `[kf-dropdown-item-leading]`, junto con `description` para el correo.
|
|
67
|
+
*
|
|
68
|
+
* <kf-dropdown-item description="ana@kaufmann.cl" current>
|
|
69
|
+
* <kf-avatar kf-dropdown-item-leading initials="AP" size="sm" />
|
|
70
|
+
* Ana Pérez
|
|
71
|
+
* </kf-dropdown-item>
|
|
72
|
+
*/
|
|
73
|
+
declare class DropdownItem {
|
|
74
|
+
readonly tone: _angular_core.InputSignal<DropdownItemTone>;
|
|
75
|
+
/** Ícono opcional al inicio de la fila. */
|
|
76
|
+
readonly icon: _angular_core.InputSignal<IconName | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Deshabilita el ítem (ej. una acción cuyo endpoint todavía no existe,
|
|
79
|
+
* caso real de "Factura" en `kf-row-actions` de Taller). Default `false`
|
|
80
|
+
* a propósito — ningún consumidor existente (ej. el menú de sesión del
|
|
81
|
+
* Shell) pasa esta prop hoy, así que no cambia su comportamiento.
|
|
82
|
+
*/
|
|
83
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
84
|
+
/** Texto secundario bajo la etiqueta (por ejemplo el correo en un ítem de cuenta). */
|
|
85
|
+
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Deshabilita el ítem explicando por qué: sigue enfocable (`aria-disabled`, no
|
|
88
|
+
* `disabled`), el clic se ignora y la razón se ve bajo la etiqueta y se enlaza
|
|
89
|
+
* con `aria-describedby`. Úsese en vez de `disabled` cuando la persona necesita
|
|
90
|
+
* saber qué falta para poder usar la acción.
|
|
91
|
+
*/
|
|
92
|
+
readonly disabledReason: _angular_core.InputSignal<string | undefined>;
|
|
93
|
+
/** Insignia a la derecha (por ejemplo un contador o «Nuevo»). */
|
|
94
|
+
readonly badge: _angular_core.InputSignal<string | undefined>;
|
|
95
|
+
readonly badgeTone: _angular_core.InputSignal<DropdownItemBadgeTone>;
|
|
96
|
+
/** Marca el ítem como el actual de la lista (`aria-current`), con fondo de marca suave. */
|
|
97
|
+
readonly current: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
98
|
+
/**
|
|
99
|
+
* Con un valor booleano el ítem es una opción de selección única (`menuitemradio`
|
|
100
|
+
* con `aria-checked`), por ejemplo la velocidad de reproducción. Sin él es un
|
|
101
|
+
* `menuitem` común.
|
|
102
|
+
*/
|
|
103
|
+
readonly checked: _angular_core.InputSignal<boolean | undefined>;
|
|
104
|
+
protected readonly reasonId: string;
|
|
105
|
+
protected readonly blocked: _angular_core.Signal<boolean>;
|
|
106
|
+
protected onClick(event: Event): void;
|
|
107
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownItem, never>;
|
|
108
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownItem, "kf-dropdown-item", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "badgeTone": { "alias": "badgeTone"; "required": false; "isSignal": true; }; "current": { "alias": "current"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; }, {}, never, ["[kf-dropdown-item-leading]", "*"], true, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
interface ActionMenuItem {
|
|
112
|
+
id: string;
|
|
113
|
+
label: string;
|
|
114
|
+
icon?: IconName;
|
|
115
|
+
tone?: 'neutral' | 'error';
|
|
116
|
+
disabled?: boolean;
|
|
117
|
+
/** Ítem enfocable pero inerte; la razón se ve bajo la etiqueta. */
|
|
118
|
+
disabledReason?: string;
|
|
119
|
+
description?: string;
|
|
120
|
+
badge?: string;
|
|
121
|
+
badgeTone?: DropdownItemBadgeTone;
|
|
122
|
+
current?: boolean;
|
|
123
|
+
}
|
|
124
|
+
interface ActionMenuGroup {
|
|
125
|
+
group: string;
|
|
126
|
+
items: ActionMenuItem[];
|
|
127
|
+
}
|
|
128
|
+
type ActionMenuEntry = ActionMenuItem | ActionMenuGroup;
|
|
129
|
+
type ActionMenuPresentation = 'auto' | 'menu' | 'sheet';
|
|
130
|
+
/**
|
|
131
|
+
* Botón «Acciones ▾» que abre un menú agrupado: panel flotante de 19rem con
|
|
132
|
+
* scroll interno en pantallas anchas y hoja inferior (`kf-drawer side="bottom"`,
|
|
133
|
+
* ítems de 48 px) en pantallas angostas. `presentation="auto"` usa la hoja bajo
|
|
134
|
+
* 640 px de viewport; `menu` y `sheet` fuerzan una u otra.
|
|
135
|
+
*
|
|
136
|
+
* `items` mezcla ítems sueltos y grupos `{ group, items }`. Un ítem con
|
|
137
|
+
* `disabledReason` sigue enfocable y explica por qué no se puede usar. El menú
|
|
138
|
+
* devuelve el foco al disparador al cerrar y `itemSelect` emite el `id` elegido.
|
|
139
|
+
* Con `iconOnly` el disparador es un círculo con `more-vertical` (o `icon`) y
|
|
140
|
+
* `label` es su nombre accesible.
|
|
141
|
+
*
|
|
142
|
+
* La hoja se monta en el contenedor de overlays de CDK, así que funciona aunque
|
|
143
|
+
* el componente viva dentro de un ancestro con `container-type` o `transform`.
|
|
144
|
+
* No reemplaza a `kf-row-actions`: ese es el menú de ícono de una fila de tabla.
|
|
145
|
+
*
|
|
146
|
+
* <kf-action-menu label="Acciones" [items]="entries" (itemSelect)="run($event)" />
|
|
42
147
|
*/
|
|
43
|
-
|
|
148
|
+
declare class ActionMenu {
|
|
149
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
150
|
+
readonly icon: _angular_core.InputSignal<IconName | undefined>;
|
|
151
|
+
readonly variant: _angular_core.InputSignal<"primary" | "secondary" | "ghost" | "outline" | "danger" | "surface">;
|
|
152
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg">;
|
|
153
|
+
readonly iconOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
154
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
155
|
+
readonly items: _angular_core.InputSignal<ActionMenuEntry[]>;
|
|
156
|
+
readonly presentation: _angular_core.InputSignal<ActionMenuPresentation>;
|
|
157
|
+
/** Título de la hoja; por defecto, `label`. */
|
|
158
|
+
readonly sheetTitle: _angular_core.InputSignal<string | undefined>;
|
|
159
|
+
readonly itemSelect: _angular_core.OutputEmitterRef<string>;
|
|
160
|
+
private readonly sheetTemplate;
|
|
161
|
+
private readonly sheetBody;
|
|
162
|
+
private readonly sheetPortal;
|
|
163
|
+
private readonly compact;
|
|
164
|
+
protected readonly menuOpen: _angular_core.WritableSignal<boolean>;
|
|
165
|
+
protected readonly sheetOpen: _angular_core.WritableSignal<boolean>;
|
|
166
|
+
protected readonly asSheet: _angular_core.Signal<boolean>;
|
|
167
|
+
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
168
|
+
constructor();
|
|
169
|
+
protected toggle(): void;
|
|
170
|
+
protected select(item: ActionMenuItem): void;
|
|
171
|
+
protected asGroup(entry: ActionMenuEntry): ActionMenuGroup | null;
|
|
172
|
+
protected asItem(entry: ActionMenuEntry): ActionMenuItem | null;
|
|
173
|
+
/** Flechas, Inicio y Fin entre los ítems de la hoja (el panel flotante ya las resuelve). */
|
|
174
|
+
protected onSheetKeydown(event: KeyboardEvent): void;
|
|
175
|
+
private openSheet;
|
|
176
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionMenu, never>;
|
|
177
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionMenu, "kf-action-menu", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "presentation": { "alias": "presentation"; "required": false; "isSignal": true; }; "sheetTitle": { "alias": "sheetTitle"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; }, never, never, true, never>;
|
|
178
|
+
}
|
|
44
179
|
|
|
45
180
|
type IconSize = 'sm' | 'md' | 'lg';
|
|
46
181
|
/** Ángulos de rotación soportados por `rotate` — cubre los casos reales del
|
|
@@ -50,7 +185,7 @@ type IconSize = 'sm' | 'md' | 'lg';
|
|
|
50
185
|
* uso ni animación pensada. */
|
|
51
186
|
type IconRotation = 0 | 90 | 180 | 270;
|
|
52
187
|
/**
|
|
53
|
-
* Ícono de trazo del design system —
|
|
188
|
+
* Ícono de trazo del design system — 96 glyphs (59 de la página 5 + extensiones
|
|
54
189
|
* propias documentadas en `icon-name.ts`), grilla 24×24,
|
|
55
190
|
* grosor de trazo 1.9px. Referencia un sprite SVG embebido (ver
|
|
56
191
|
* `icon-sprite.ts`) vía `<use>`, así que no hay peso de red adicional por
|
|
@@ -116,6 +251,54 @@ declare class ActionTile {
|
|
|
116
251
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionTile, "kf-action-tile", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
117
252
|
}
|
|
118
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Marca de un valor inferido por IA: ícono de 16 px junto al dato, con un
|
|
256
|
+
* popover que explica el origen al pasar el cursor o al enfocar. Es un
|
|
257
|
+
* `<button>` (un `role="img"` no es interactivo) cuyo nombre accesible es
|
|
258
|
+
* `label` y cuya descripción permanente es `tip`; `Esc` cierra solo el popover,
|
|
259
|
+
* sin llegar al drawer o modal que lo contenga. El área de toque es de 24 px
|
|
260
|
+
* (el ícono sigue en 16 px).
|
|
261
|
+
*
|
|
262
|
+
* `still` saca la marca del orden de Tab (listas densas, tarjetas móviles):
|
|
263
|
+
* sigue disponible para el cursor y para el lector de pantalla.
|
|
264
|
+
*
|
|
265
|
+
* Regla de uso: nunca junto a un `kf-ai-tag` en el mismo bloque.
|
|
266
|
+
*
|
|
267
|
+
* Placa leída: D4K-902 <kf-ai-mark />
|
|
268
|
+
*/
|
|
269
|
+
declare class AiMark {
|
|
270
|
+
/** Explicación del origen: contenido del popover y descripción accesible. */
|
|
271
|
+
readonly tip: _angular_core.InputSignal<string>;
|
|
272
|
+
/** Nombre accesible corto del botón. */
|
|
273
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
274
|
+
readonly still: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
275
|
+
protected readonly tipId: string;
|
|
276
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiMark, never>;
|
|
277
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiMark, "kf-ai-mark", never, { "tip": { "alias": "tip"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "still": { "alias": "still"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Etiqueta que marca un bloque generado por IA: píldora de 20 px con ícono y
|
|
282
|
+
* rótulo «IA». El violeta del acento (`--kf-color-ai*`) es exclusivo de lo
|
|
283
|
+
* generado por IA: nunca para acciones, selección ni estados.
|
|
284
|
+
*
|
|
285
|
+
* Regla de uso: máximo una por tarjeta, junto al título, y nunca junto a un
|
|
286
|
+
* `kf-ai-mark` en el mismo bloque (la etiqueta cubre el bloque entero; la
|
|
287
|
+
* marca, un solo valor inferido).
|
|
288
|
+
*
|
|
289
|
+
* El host es `role="img"` y `ariaLabel` es su nombre accesible: el color no
|
|
290
|
+
* es el único canal, el ícono y el rótulo identifican el componente.
|
|
291
|
+
*
|
|
292
|
+
* <kf-ai-tag />
|
|
293
|
+
* <kf-ai-tag label="Sugerencia" ariaLabel="Sugerencia generada por IA" />
|
|
294
|
+
*/
|
|
295
|
+
declare class AiTag {
|
|
296
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
297
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
298
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiTag, never>;
|
|
299
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiTag, "kf-ai-tag", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
300
|
+
}
|
|
301
|
+
|
|
119
302
|
/**
|
|
120
303
|
* Marca la barra superior como chrome exclusivo de administradores (página
|
|
121
304
|
* 18) — acento ámbar para diferenciar contexto privilegiado del resto del
|
|
@@ -161,6 +344,12 @@ declare class AdminBadge {
|
|
|
161
344
|
* sobre todo para un botón solo-ícono) declarando las variables en su
|
|
162
345
|
* propio CSS — heredan a través del límite de encapsulación.
|
|
163
346
|
*
|
|
347
|
+
* Colores por ganchos de CSS (todos opcionales, el default no cambia nada): sobre
|
|
348
|
+
* una superficie propia (ej. el visor de evidencias) un contenedor declara
|
|
349
|
+
* `--kf-button-bg`, `--kf-button-fg` y `--kf-button-hover-bg` (primary),
|
|
350
|
+
* `--kf-button-ghost-bg`, `-fg`, `-border` y `-hover-bg` (ghost), `--kf-button-outline-bg` y
|
|
351
|
+
* `--kf-button-focus-shadow`; heredan a través del límite de encapsulación.
|
|
352
|
+
*
|
|
164
353
|
* `focus()` enfoca el `<button>` interno: el consumidor no necesita
|
|
165
354
|
* buscarlo con `querySelector` en el DOM del componente.
|
|
166
355
|
*
|
|
@@ -203,6 +392,11 @@ declare class Button {
|
|
|
203
392
|
* más fuerte para leerse activo, y así ningún consumidor tiene que
|
|
204
393
|
* acordarse de pedirlo aparte. */
|
|
205
394
|
readonly ariaPressed: _angular_core.InputSignal<boolean | undefined>;
|
|
395
|
+
/** Inactivo pero enfocable: `aria-disabled` sin el `disabled` nativo, para que el foco no
|
|
396
|
+
* se pierda al llegar a un extremo (anterior/siguiente). El clic lo ignora quien lo usa. */
|
|
397
|
+
readonly ariaDisabled: _angular_core.InputSignal<boolean | undefined>;
|
|
398
|
+
/** Id del panel que el botón muestra u oculta (con `ariaExpanded`). */
|
|
399
|
+
readonly ariaControls: _angular_core.InputSignal<string | undefined>;
|
|
206
400
|
/** Tipo de elemento emergente que abre el botón (ej. `'dialog'` para un
|
|
207
401
|
* panel de filtros, `'listbox'`) — mismo motivo de reenvío manual. */
|
|
208
402
|
readonly ariaHaspopup: _angular_core.InputSignal<"menu" | "dialog" | "listbox" | "true" | undefined>;
|
|
@@ -214,7 +408,7 @@ declare class Button {
|
|
|
214
408
|
* (`surface` es fondo claro con texto oscuro, mismo motivo que `outline`). */
|
|
215
409
|
protected readonly hasSolidFill: _angular_core.Signal<boolean>;
|
|
216
410
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Button, never>;
|
|
217
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Button, "kf-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaPressed": { "alias": "ariaPressed"; "required": false; "isSignal": true; }; "ariaHaspopup": { "alias": "ariaHaspopup"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
411
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Button, "kf-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaPressed": { "alias": "ariaPressed"; "required": false; "isSignal": true; }; "ariaDisabled": { "alias": "ariaDisabled"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "ariaHaspopup": { "alias": "ariaHaspopup"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
218
412
|
}
|
|
219
413
|
|
|
220
414
|
type AlertTone = 'info' | 'ok' | 'warn' | 'error';
|
|
@@ -225,6 +419,12 @@ type AlertVariant = 'card' | 'bar';
|
|
|
225
419
|
* Ver el JSDoc de `Alert` para cuándo usar cada una.
|
|
226
420
|
*/
|
|
227
421
|
type AlertAppearance = 'surface' | 'elevated' | 'solid';
|
|
422
|
+
/**
|
|
423
|
+
* Dónde se alinea en vertical el ícono de estado (y el botón de cerrar) en la
|
|
424
|
+
* variante `card`: `start` (default) con la primera línea del texto o `center` con
|
|
425
|
+
* todo el bloque de título y mensaje. Ver el JSDoc de `Alert`.
|
|
426
|
+
*/
|
|
427
|
+
type AlertIconAlign = 'start' | 'center';
|
|
228
428
|
/**
|
|
229
429
|
* Banner contextual que vive dentro del flujo: validaciones, avisos de
|
|
230
430
|
* vencimiento, confirmaciones. Persiste hasta que se descarta o hasta que la
|
|
@@ -233,7 +433,8 @@ type AlertAppearance = 'surface' | 'elevated' | 'solid';
|
|
|
233
433
|
* El color sale siempre de los tokens (`*-soft`, `*-strong`), nunca de un input.
|
|
234
434
|
* Ninguna apariencia lleva borde ni acento lateral de color. El ícono va
|
|
235
435
|
* alineado con la primera línea del texto (la del título si lo hay), no
|
|
236
|
-
* centrado en el bloque: en un aviso de una sola línea ambas cosas coinciden.
|
|
436
|
+
* centrado en el bloque: en un aviso de una sola línea ambas cosas coinciden. Con
|
|
437
|
+
* `iconAlign="center"` se centra contra el bloque de título y mensaje.
|
|
237
438
|
*
|
|
238
439
|
* `appearance` elige cómo se muestra el tono (solo aplica a `variant="card"`):
|
|
239
440
|
*
|
|
@@ -278,6 +479,22 @@ type AlertAppearance = 'surface' | 'elevated' | 'solid';
|
|
|
278
479
|
* Las acciones de `variant="card"` van siempre bajo el mensaje. Los botones de
|
|
279
480
|
* un `<div kfAlertActions>` quedan separados 12px (8px en `solid`).
|
|
280
481
|
*
|
|
482
|
+
* `iconAlign` elige dónde se alinea en vertical el ícono de estado (solo aplica a
|
|
483
|
+
* `variant="card"`, en las tres apariencias). `start` (default) lo pone en la
|
|
484
|
+
* primera línea del texto: es lo correcto cuando el contenido es solo texto.
|
|
485
|
+
* `center` lo centra contra todo el bloque de título y mensaje (sin contar la zona
|
|
486
|
+
* de acciones): úsalo cuando el contenido proyectado es más alto que una línea de
|
|
487
|
+
* texto, como una fila con el texto a la izquierda y un `kf-button size="sm"` a la
|
|
488
|
+
* derecha, donde el texto queda centrado en la fila y un ícono en la primera línea
|
|
489
|
+
* se vería más arriba. El botón de cerrar sigue la misma regla.
|
|
490
|
+
*
|
|
491
|
+
* <kf-alert iconAlign="center" tone="info">
|
|
492
|
+
* <div class="fila">
|
|
493
|
+
* <span>Estás viendo la cuenta de Ana Pérez.</span>
|
|
494
|
+
* <kf-button size="sm" variant="outline">Volver a mi cuenta</kf-button>
|
|
495
|
+
* </div>
|
|
496
|
+
* </kf-alert>
|
|
497
|
+
*
|
|
281
498
|
* `open` es two-way: el botón de cerrar lo pone en `false` y el componente
|
|
282
499
|
* deja de renderizar. El consumidor puede volver a abrirlo poniéndolo en
|
|
283
500
|
* `true` (ej. cuando la validación falla otra vez).
|
|
@@ -315,6 +532,12 @@ declare class Alert {
|
|
|
315
532
|
* la ignora. Se expone en el host como `data-appearance`.
|
|
316
533
|
*/
|
|
317
534
|
readonly appearance: _angular_core.InputSignal<AlertAppearance>;
|
|
535
|
+
/**
|
|
536
|
+
* `start` (default) alinea el ícono y el botón de cerrar con la primera línea del
|
|
537
|
+
* texto; `center` los centra contra el bloque de título y mensaje. Solo aplica a
|
|
538
|
+
* `variant="card"`; `bar` la ignora. Se expone en el host como `data-icon-align`.
|
|
539
|
+
*/
|
|
540
|
+
readonly iconAlign: _angular_core.InputSignal<AlertIconAlign>;
|
|
318
541
|
/**
|
|
319
542
|
* Título arriba del mensaje. Vacío deja solo el contenido proyectado y, en
|
|
320
543
|
* `surface`, el layout compacto.
|
|
@@ -330,10 +553,13 @@ declare class Alert {
|
|
|
330
553
|
protected readonly ariaRole: _angular_core.Signal<"alert" | "status">;
|
|
331
554
|
/** Glifo de trazo de `kf-icon`: lo usan `bar` y `solid`. `surface`/`elevated` dibujan el suyo relleno. */
|
|
332
555
|
protected readonly toneIcon: _angular_core.Signal<IconName>;
|
|
333
|
-
/**
|
|
556
|
+
/**
|
|
557
|
+
* Clases del contenedor: tono, forma (`bar` o `card` + apariencia), si lleva título y,
|
|
558
|
+
* solo en `card` con `iconAlign="center"`, `kf-alert--icon-center`.
|
|
559
|
+
*/
|
|
334
560
|
protected readonly rootClass: _angular_core.Signal<string>;
|
|
335
561
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Alert, never>;
|
|
336
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Alert, "kf-alert", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["*", "[kfAlertActions]"], true, never>;
|
|
562
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Alert, "kf-alert", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "iconAlign": { "alias": "iconAlign"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["*", "[kfAlertActions]"], true, never>;
|
|
337
563
|
}
|
|
338
564
|
|
|
339
565
|
type AlertRowTone = 'warn' | 'error' | 'neutral';
|
|
@@ -383,6 +609,171 @@ declare class AlertRow {
|
|
|
383
609
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertRow, "kf-alert-row", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "valueLabel": { "alias": "valueLabel"; "required": false; "isSignal": true; }; "tag": { "alias": "tag"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "rowClick": "rowClick"; }, never, never, true, never>;
|
|
384
610
|
}
|
|
385
611
|
|
|
612
|
+
type AudioPlayerVariant = 'auto' | 'compact' | 'wide' | 'stage';
|
|
613
|
+
type AudioPlayerLayout = 'compact' | 'wide' | 'stage';
|
|
614
|
+
type AudioPlayerStatus = 'ready' | 'loading' | 'processing' | 'error' | 'expired' | 'blocked' | 'unsupported';
|
|
615
|
+
/** Textos del reproductor (`{title}`, `{rate}`, `{seconds}`, `{current}` y `{total}` se reemplazan). */
|
|
616
|
+
interface AudioPlayerLabels {
|
|
617
|
+
play: string;
|
|
618
|
+
pause: string;
|
|
619
|
+
position: string;
|
|
620
|
+
positionText: string;
|
|
621
|
+
rateMenu: string;
|
|
622
|
+
rateButton: string;
|
|
623
|
+
back: string;
|
|
624
|
+
forward: string;
|
|
625
|
+
backShort: string;
|
|
626
|
+
forwardShort: string;
|
|
627
|
+
playing: string;
|
|
628
|
+
paused: string;
|
|
629
|
+
retry: string;
|
|
630
|
+
loading: string;
|
|
631
|
+
processing: string;
|
|
632
|
+
error: string;
|
|
633
|
+
expired: string;
|
|
634
|
+
blocked: string;
|
|
635
|
+
unsupported: string;
|
|
636
|
+
}
|
|
637
|
+
declare const AUDIO_PLAYER_LABELS: AudioPlayerLabels;
|
|
638
|
+
/**
|
|
639
|
+
* Reproductor de audio sobre un `<audio preload="metadata">` encapsulado (no hay
|
|
640
|
+
* otro modo de reproducir): botón de reproducir y pausar, riel de posición,
|
|
641
|
+
* tiempo, menú de velocidades y, según el ancho, título, subtítulo y enlace a la
|
|
642
|
+
* transcripción. Reutiliza `kf-button`, `kf-slider`, `kf-dropdown`, `kf-link`,
|
|
643
|
+
* `kf-icon` y `kf-spinner`.
|
|
644
|
+
*
|
|
645
|
+
* `variant`: `compact` (play de 36 px y riel de 4 px o onda de 20 px), `wide`
|
|
646
|
+
* (play de 44 px, subtítulo y enlace) y `stage` (escenario: carátula, onda de
|
|
647
|
+
* 3,5 rem, retroceder y adelantar `skipSeconds` y menú de velocidades). Con
|
|
648
|
+
* `auto` (default) pasa de compacto a ancho cuando el propio componente mide
|
|
649
|
+
* 30 rem.
|
|
650
|
+
*
|
|
651
|
+
* La onda se dibuja solo si hay `peaks` (0 a 1, tomados del servidor: no se
|
|
652
|
+
* inventan). El riel es un `kf-slider` (patrón APG): ←/↓ −5 s, →/↑ +5 s,
|
|
653
|
+
* RePág/AvPág ±10 s, Inicio/Fin, con el texto de posición como `aria-valuetext`.
|
|
654
|
+
* Con `captureShortcuts` escucha `K` (reproducir o pausar) y `J`/`L` (retroceder y
|
|
655
|
+
* adelantar `skipSeconds`) en el documento, o solo con el foco dentro del
|
|
656
|
+
* reproductor si `shortcutsScope="player"` (en una página normal, WCAG 2.1.4).
|
|
657
|
+
*
|
|
658
|
+
* Se pausa al cambiar `src` y al destruirse; anuncia «Reproduciendo» y «En pausa»
|
|
659
|
+
* en una región `aria-live`. `status` distinto de `ready` reemplaza el
|
|
660
|
+
* reproductor por un mensaje (`statusText` o el texto por defecto de `labels`) y,
|
|
661
|
+
* con `error`, un botón de reintento. Un fallo de carga del propio `<audio>`
|
|
662
|
+
* también muestra `error`.
|
|
663
|
+
*
|
|
664
|
+
* Los botones extra (descargar, abrir en el visor) van en el slot
|
|
665
|
+
* `[kf-audio-tools]`. Color por ganchos de CSS opcionales: `--kf-audio-fg`,
|
|
666
|
+
* `--kf-audio-fg-2`, `--kf-audio-rail`, `--kf-audio-accent`,
|
|
667
|
+
* `--kf-audio-accent-fg`, `--kf-audio-accent-hover`, `--kf-audio-line`,
|
|
668
|
+
* `--kf-audio-raise` y `--kf-audio-cover-display` (`none` oculta la carátula del escenario).
|
|
669
|
+
*
|
|
670
|
+
* <kf-audio-player src="/notas/42.m4a" title="Nota de voz" [durationSec]="48"
|
|
671
|
+
* transcriptLabel="Transcripción · 6 turnos" (transcriptClick)="openTranscript()" />
|
|
672
|
+
*/
|
|
673
|
+
declare class AudioPlayer {
|
|
674
|
+
readonly src: _angular_core.InputSignal<string | null | undefined>;
|
|
675
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
676
|
+
readonly subtitle: _angular_core.InputSignal<string | undefined>;
|
|
677
|
+
/** Picos normalizados (0 a 1) de la forma de onda; sin ellos solo se dibuja el riel. */
|
|
678
|
+
readonly peaks: _angular_core.InputSignal<number[] | undefined>;
|
|
679
|
+
readonly variant: _angular_core.InputSignal<AudioPlayerVariant>;
|
|
680
|
+
readonly rates: _angular_core.InputSignal<number[]>;
|
|
681
|
+
readonly skipSeconds: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
682
|
+
/** Duración conocida (segundos), mientras el audio no informa la suya. */
|
|
683
|
+
readonly durationSec: _angular_core.InputSignal<number | undefined>;
|
|
684
|
+
/** Texto del enlace a la transcripción (ej. «Transcripción · 6 turnos»); sin él no hay enlace. */
|
|
685
|
+
readonly transcriptLabel: _angular_core.InputSignal<string | undefined>;
|
|
686
|
+
readonly status: _angular_core.InputSignal<AudioPlayerStatus>;
|
|
687
|
+
readonly statusText: _angular_core.InputSignal<string | undefined>;
|
|
688
|
+
/**
|
|
689
|
+
* Escucha `K`, `J` y `L` (los activa el visor de evidencias). Son atajos de un solo carácter
|
|
690
|
+
* (WCAG 2.1.4): en el documento solo son válidos dentro de un diálogo modal; en una página normal
|
|
691
|
+
* usar `shortcutsScope="player"`, o dejar `captureShortcuts` apagado, que es el valor por defecto.
|
|
692
|
+
*/
|
|
693
|
+
readonly captureShortcuts: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
694
|
+
/**
|
|
695
|
+
* Dónde se escuchan los atajos: `document` (default, compatible) o `player`, solo con el foco
|
|
696
|
+
* dentro del reproductor.
|
|
697
|
+
*/
|
|
698
|
+
readonly shortcutsScope: _angular_core.InputSignal<"document" | "player">;
|
|
699
|
+
readonly labels: _angular_core.InputSignal<Partial<AudioPlayerLabels>>;
|
|
700
|
+
readonly transcriptClick: _angular_core.OutputEmitterRef<void>;
|
|
701
|
+
readonly retry: _angular_core.OutputEmitterRef<void>;
|
|
702
|
+
readonly playingChange: _angular_core.OutputEmitterRef<boolean>;
|
|
703
|
+
/** El audio llegó al final. */
|
|
704
|
+
readonly playbackEnded: _angular_core.OutputEmitterRef<void>;
|
|
705
|
+
private readonly media;
|
|
706
|
+
private readonly host;
|
|
707
|
+
private readonly document;
|
|
708
|
+
private readonly destroyRef;
|
|
709
|
+
private readonly playingState;
|
|
710
|
+
private readonly positionState;
|
|
711
|
+
private readonly durationState;
|
|
712
|
+
private readonly rateState;
|
|
713
|
+
private readonly mediaFailed;
|
|
714
|
+
private readonly width;
|
|
715
|
+
private wideAt;
|
|
716
|
+
private frame;
|
|
717
|
+
readonly playing: _angular_core.Signal<boolean>;
|
|
718
|
+
/** Posición actual, en segundos. */
|
|
719
|
+
readonly position: _angular_core.Signal<number>;
|
|
720
|
+
/** Duración, en segundos: la del `<audio>` o, antes, `durationSec`. */
|
|
721
|
+
readonly duration: _angular_core.Signal<number>;
|
|
722
|
+
readonly rate: _angular_core.Signal<number>;
|
|
723
|
+
protected readonly scrubbing: _angular_core.WritableSignal<boolean>;
|
|
724
|
+
protected readonly speedOpen: _angular_core.WritableSignal<boolean>;
|
|
725
|
+
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
726
|
+
protected readonly text: _angular_core.Signal<AudioPlayerLabels>;
|
|
727
|
+
protected readonly layout: _angular_core.Signal<AudioPlayerLayout>;
|
|
728
|
+
protected readonly effectiveStatus: _angular_core.Signal<AudioPlayerStatus>;
|
|
729
|
+
protected readonly statusMessage: _angular_core.Signal<string>;
|
|
730
|
+
protected readonly statusIcon: _angular_core.Signal<IconName>;
|
|
731
|
+
protected readonly mediaSrc: _angular_core.Signal<string | null>;
|
|
732
|
+
protected readonly percent: _angular_core.Signal<number>;
|
|
733
|
+
protected readonly bars: _angular_core.Signal<number[]>;
|
|
734
|
+
protected readonly playLabel: _angular_core.Signal<string>;
|
|
735
|
+
protected readonly positionLabel: _angular_core.Signal<string>;
|
|
736
|
+
protected readonly rateLabel: _angular_core.Signal<string>;
|
|
737
|
+
protected readonly rateButtonLabel: _angular_core.Signal<string>;
|
|
738
|
+
protected readonly backLabel: _angular_core.Signal<string>;
|
|
739
|
+
protected readonly forwardLabel: _angular_core.Signal<string>;
|
|
740
|
+
protected readonly backShort: _angular_core.Signal<string>;
|
|
741
|
+
protected readonly forwardShort: _angular_core.Signal<string>;
|
|
742
|
+
protected readonly timeText: _angular_core.Signal<string>;
|
|
743
|
+
protected readonly valueText: _angular_core.Signal<(seconds: number) => string>;
|
|
744
|
+
protected readonly railMax: _angular_core.Signal<number>;
|
|
745
|
+
protected readonly railStep = 0.1;
|
|
746
|
+
protected readonly arrowSeek = 5;
|
|
747
|
+
protected readonly pageSeek = 10;
|
|
748
|
+
constructor();
|
|
749
|
+
/** Reproduce (o reanuda) desde la posición actual. */
|
|
750
|
+
play(): void;
|
|
751
|
+
pause(): void;
|
|
752
|
+
toggle(): void;
|
|
753
|
+
/** Mueve la posición `seconds` (negativo retrocede), sin salir de [0, duración]. */
|
|
754
|
+
seekBy(seconds: number): void;
|
|
755
|
+
seekTo(seconds: number): void;
|
|
756
|
+
setRate(rate: number): void;
|
|
757
|
+
protected rateText(rate: number): string;
|
|
758
|
+
protected selectRate(rate: number): void;
|
|
759
|
+
protected skip(direction: -1 | 1): void;
|
|
760
|
+
protected onScrub(seconds: number): void;
|
|
761
|
+
protected onSeekCommit(seconds: number): void;
|
|
762
|
+
protected onMetadata(): void;
|
|
763
|
+
protected onTimeUpdate(): void;
|
|
764
|
+
protected onPlay(): void;
|
|
765
|
+
protected onPause(): void;
|
|
766
|
+
protected onEnded(): void;
|
|
767
|
+
protected onMediaError(): void;
|
|
768
|
+
protected onRetry(): void;
|
|
769
|
+
private onShortcut;
|
|
770
|
+
/** Mientras suena, la posición sale de `currentTime` en cada cuadro: el riel avanza sin saltos. */
|
|
771
|
+
private startTicker;
|
|
772
|
+
private stopTicker;
|
|
773
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AudioPlayer, never>;
|
|
774
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AudioPlayer, "kf-audio-player", never, { "src": { "alias": "src"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "peaks": { "alias": "peaks"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "rates": { "alias": "rates"; "required": false; "isSignal": true; }; "skipSeconds": { "alias": "skipSeconds"; "required": false; "isSignal": true; }; "durationSec": { "alias": "durationSec"; "required": false; "isSignal": true; }; "transcriptLabel": { "alias": "transcriptLabel"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusText": { "alias": "statusText"; "required": false; "isSignal": true; }; "captureShortcuts": { "alias": "captureShortcuts"; "required": false; "isSignal": true; }; "shortcutsScope": { "alias": "shortcutsScope"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "transcriptClick": "transcriptClick"; "retry": "retry"; "playingChange": "playingChange"; "playbackEnded": "playbackEnded"; }, never, ["[kf-audio-tools]"], true, never>;
|
|
775
|
+
}
|
|
776
|
+
|
|
386
777
|
/**
|
|
387
778
|
* Avatar de usuario: muestra una foto (`src`) o, si no hay foto, las
|
|
388
779
|
* iniciales (`initials`) sobre un fondo con gradiente de marca. `round`
|
|
@@ -400,12 +791,17 @@ declare class Avatar {
|
|
|
400
791
|
readonly initials: _angular_core.InputSignal<string | undefined>;
|
|
401
792
|
readonly src: _angular_core.InputSignal<string | undefined>;
|
|
402
793
|
readonly round: _angular_core.InputSignal<boolean>;
|
|
794
|
+
/**
|
|
795
|
+
* Tamaño del círculo: `sm` (32px), `md` (40px, default) o `lg` (56px). Dentro de la
|
|
796
|
+
* pastilla (`pill`) el círculo mide siempre 32px.
|
|
797
|
+
*/
|
|
798
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg">;
|
|
403
799
|
/** Envuelve el avatar en la pastilla de sesión del header, con chevron. */
|
|
404
800
|
readonly pill: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
405
801
|
/** Limita a 2 caracteres para que quepan cómodos dentro del círculo. */
|
|
406
802
|
readonly displayInitials: _angular_core.Signal<string>;
|
|
407
803
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Avatar, never>;
|
|
408
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Avatar, "kf-avatar", never, { "initials": { "alias": "initials"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "round": { "alias": "round"; "required": false; "isSignal": true; }; "pill": { "alias": "pill"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
804
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Avatar, "kf-avatar", never, { "initials": { "alias": "initials"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "round": { "alias": "round"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "pill": { "alias": "pill"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
409
805
|
}
|
|
410
806
|
|
|
411
807
|
/**
|
|
@@ -431,13 +827,20 @@ declare class Avatar {
|
|
|
431
827
|
* <kf-badge tone="warn" dot truncate [title]="q.statusLabel">{{ q.statusLabel }}</kf-badge>
|
|
432
828
|
*/
|
|
433
829
|
declare class Badge {
|
|
434
|
-
readonly tone: _angular_core.InputSignal<"info" | "
|
|
830
|
+
readonly tone: _angular_core.InputSignal<"info" | "error" | "neutral" | "ok" | "warn" | "service">;
|
|
435
831
|
readonly variant: _angular_core.InputSignal<"soft" | "glass">;
|
|
436
832
|
readonly dot: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
437
833
|
/** Corta el texto con elipsis al ancho del contenedor. Ver JSDoc de la clase. */
|
|
438
834
|
readonly truncate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
835
|
+
/**
|
|
836
|
+
* Deja que el texto parta en varias líneas (con `overflow-wrap: anywhere`) en
|
|
837
|
+
* vez de ensanchar el badge; la forma pasa de píldora a esquinas `--kf-radius-md`
|
|
838
|
+
* para que un texto de varias líneas no se vea deformado. Sin él (default) el
|
|
839
|
+
* badge sigue en una línea.
|
|
840
|
+
*/
|
|
841
|
+
readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
439
842
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Badge, never>;
|
|
440
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Badge, "kf-badge", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; "truncate": { "alias": "truncate"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
843
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Badge, "kf-badge", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; "truncate": { "alias": "truncate"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
441
844
|
}
|
|
442
845
|
|
|
443
846
|
interface BreadcrumbItem {
|
|
@@ -761,6 +1164,8 @@ declare class Carousel implements AfterContentInit {
|
|
|
761
1164
|
*/
|
|
762
1165
|
declare class Checkbox implements ControlValueAccessor {
|
|
763
1166
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
1167
|
+
/** Nombre accesible cuando no hay `label` visible (por ejemplo la casilla de una fila de tabla). */
|
|
1168
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
764
1169
|
readonly checked: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
765
1170
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
766
1171
|
readonly indeterminate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -779,7 +1184,7 @@ declare class Checkbox implements ControlValueAccessor {
|
|
|
779
1184
|
registerOnTouched(fn: () => void): void;
|
|
780
1185
|
setDisabledState?(isDisabled: boolean): void;
|
|
781
1186
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Checkbox, never>;
|
|
782
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Checkbox, "kf-checkbox", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
1187
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Checkbox, "kf-checkbox", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
783
1188
|
}
|
|
784
1189
|
|
|
785
1190
|
/**
|
|
@@ -805,7 +1210,7 @@ declare class Checkbox implements ControlValueAccessor {
|
|
|
805
1210
|
* de superficie/borde/texto-muted más cercanos).
|
|
806
1211
|
*/
|
|
807
1212
|
declare class Chip {
|
|
808
|
-
readonly tone: _angular_core.InputSignal<"
|
|
1213
|
+
readonly tone: _angular_core.InputSignal<"error" | "neutral" | "ok" | "warn">;
|
|
809
1214
|
readonly dot: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
810
1215
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Chip, never>;
|
|
811
1216
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Chip, "kf-chip", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
@@ -828,9 +1233,17 @@ declare class Chip {
|
|
|
828
1233
|
* ...
|
|
829
1234
|
* </kf-collapsible>
|
|
830
1235
|
*
|
|
831
|
-
* El
|
|
832
|
-
*
|
|
833
|
-
*
|
|
1236
|
+
* El chevron es un `kf-icon` fijo (no una prop `icon` configurable). El panel se
|
|
1237
|
+
* anima por su altura real (`grid-template-rows: 0fr → 1fr`), así que admite
|
|
1238
|
+
* contenido de cualquier alto; cerrado queda `inert` y fuera del orden de tabulación.
|
|
1239
|
+
*
|
|
1240
|
+
* Un resumen a la derecha del título (por ejemplo «3 activos») se proyecta con
|
|
1241
|
+
* `[kf-collapsible-meta]`; en un ancho angosto se trunca antes que el título.
|
|
1242
|
+
*
|
|
1243
|
+
* <kf-collapsible title="Filtros" [(expanded)]="open">
|
|
1244
|
+
* <span kf-collapsible-meta>3 activos</span>
|
|
1245
|
+
* ...
|
|
1246
|
+
* </kf-collapsible>
|
|
834
1247
|
*/
|
|
835
1248
|
declare class Collapsible {
|
|
836
1249
|
readonly title: _angular_core.InputSignal<string>;
|
|
@@ -839,7 +1252,7 @@ declare class Collapsible {
|
|
|
839
1252
|
readonly triggerId: string;
|
|
840
1253
|
readonly panelId: string;
|
|
841
1254
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Collapsible, never>;
|
|
842
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Collapsible, "kf-collapsible", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["*"], true, never>;
|
|
1255
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Collapsible, "kf-collapsible", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[kf-collapsible-meta]", "*"], true, never>;
|
|
843
1256
|
}
|
|
844
1257
|
|
|
845
1258
|
/**
|
|
@@ -997,6 +1410,8 @@ interface DataTableCellClick<T = unknown> {
|
|
|
997
1410
|
/** Tope de filas (o tarjetas) esqueleto: con `loading`, una página de 50 no pinta 50. */
|
|
998
1411
|
declare const DATA_TABLE_MAX_SKELETON_ROWS = 12;
|
|
999
1412
|
/** Vistas disponibles cuando `cardable` está activo. */
|
|
1413
|
+
/** Alto de las filas de la vista de tarjetas: todas iguales (`equal`) o según su contenido (`auto`). */
|
|
1414
|
+
type DataTableCardRows = 'equal' | 'auto';
|
|
1000
1415
|
type DataTableView = 'table' | 'cards';
|
|
1001
1416
|
/** Opciones de "filas por página" estándar del portal — 10 como default
|
|
1002
1417
|
* cubre bien tanto un dataset chico (ej. Beneficios) como uno con volumen
|
|
@@ -1228,6 +1643,78 @@ declare class DataTable<T = unknown> {
|
|
|
1228
1643
|
/** Ancho mínimo de cada tarjeta en la grilla (default `220px`, histórico).
|
|
1229
1644
|
* Nunca supera el ancho disponible: en pantallas angostas, una columna. */
|
|
1230
1645
|
readonly cardMinWidth: _angular_core.InputSignal<string>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Pasa a tarjetas cuando la tabla no entra en el ancho del propio componente
|
|
1648
|
+
* (mide su ancho natural y la contenedora, no el viewport) y vuelve a la tabla
|
|
1649
|
+
* cuando cabe, con 24px de histéresis para no parpadear en el límite. Requiere
|
|
1650
|
+
* `cardable` (columnas con `cardRole`); si `view` está definido manda el
|
|
1651
|
+
* consumidor y esta medición no actúa.
|
|
1652
|
+
*/
|
|
1653
|
+
readonly autoCards: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1654
|
+
/**
|
|
1655
|
+
* Alto de las filas de la grilla de tarjetas: `equal` (default) hace que todas
|
|
1656
|
+
* midan lo mismo (manda la más alta); `auto` deja que cada fila mida su
|
|
1657
|
+
* contenido.
|
|
1658
|
+
*/
|
|
1659
|
+
readonly cardRows: _angular_core.InputSignal<DataTableCardRows>;
|
|
1660
|
+
/**
|
|
1661
|
+
* Casillas de selección: una por fila (tabla y tarjetas) y, en la tabla, una de
|
|
1662
|
+
* cabecera que selecciona la página mostrada (con estado indeterminado). La
|
|
1663
|
+
* selección se identifica por `rowKey`; sin él se usa el índice dentro de la
|
|
1664
|
+
* página, que no sirve para seleccionar entre páginas.
|
|
1665
|
+
*/
|
|
1666
|
+
readonly selectable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1667
|
+
/** Claves de las filas seleccionadas, two-way: `[(selected)]="selection"`. */
|
|
1668
|
+
readonly selected: _angular_core.ModelSignal<ReadonlySet<string | number>>;
|
|
1669
|
+
/** Filas que no se pueden seleccionar (su casilla queda deshabilitada). Por defecto todas se pueden. */
|
|
1670
|
+
readonly rowSelectable: _angular_core.InputSignal<((row: T) => boolean) | undefined>;
|
|
1671
|
+
/** Nombre accesible de la casilla de cada fila (por ejemplo `row.plate`). Por defecto «Seleccionar fila». */
|
|
1672
|
+
readonly selectLabel: _angular_core.InputSignal<((row: T) => string) | undefined>;
|
|
1673
|
+
/** Nombre accesible de la casilla de cabecera. */
|
|
1674
|
+
readonly selectPageLabel: _angular_core.InputSignal<string>;
|
|
1675
|
+
/** Texto del conteo de la barra masiva. */
|
|
1676
|
+
readonly selectedCountLabel: _angular_core.InputSignal<(count: number) => string>;
|
|
1677
|
+
/**
|
|
1678
|
+
* Cabecera pegada: la tabla hace scroll vertical dentro de su propio contenedor
|
|
1679
|
+
* (con `maxHeight`) y la cabecera queda arriba. Sin `maxHeight` no hay tope de
|
|
1680
|
+
* alto y el efecto solo se ve si el contenedor del consumidor lo limita.
|
|
1681
|
+
*/
|
|
1682
|
+
readonly stickyHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1683
|
+
/** Alto máximo del contenedor de la tabla con `stickyHeader` (cualquier valor CSS, por ejemplo `24rem`). */
|
|
1684
|
+
readonly maxHeight: _angular_core.InputSignal<string | undefined>;
|
|
1685
|
+
/**
|
|
1686
|
+
* Menú de acciones de cada tarjeta, arriba a la derecha (botón de 44 px, hoja inferior en
|
|
1687
|
+
* pantallas angostas). Devuelve las entradas de `kf-action-menu` de la fila; con `undefined` o
|
|
1688
|
+
* una lista vacía esa tarjeta no muestra menú. Solo existe en la vista de tarjetas: en la tabla
|
|
1689
|
+
* las acciones siguen siendo columnas (`kf-row-actions`).
|
|
1690
|
+
*/
|
|
1691
|
+
readonly cardMenu: _angular_core.InputSignal<((row: T) => ActionMenuEntry[] | undefined) | undefined>;
|
|
1692
|
+
/** Nombre accesible del botón del menú de cada tarjeta (por ejemplo `Acciones de ${row.plate}`). */
|
|
1693
|
+
readonly cardMenuLabel: _angular_core.InputSignal<((row: T) => string) | undefined>;
|
|
1694
|
+
/**
|
|
1695
|
+
* Nombre accesible del botón que abre una tarjeta con casilla o menú (la tarjeta entera no puede
|
|
1696
|
+
* ser un botón con controles dentro). Por defecto «Abrir {título}» o «Abrir la fila».
|
|
1697
|
+
*/
|
|
1698
|
+
readonly cardOpenLabel: _angular_core.InputSignal<((row: T) => string) | undefined>;
|
|
1699
|
+
/** Se emite al elegir una acción del menú de una tarjeta. */
|
|
1700
|
+
readonly cardMenuSelect: _angular_core.OutputEmitterRef<{
|
|
1701
|
+
row: T;
|
|
1702
|
+
id: string;
|
|
1703
|
+
}>;
|
|
1704
|
+
protected readonly selectableKeys: _angular_core.Signal<(string | number)[]>;
|
|
1705
|
+
protected readonly pageAllSelected: _angular_core.Signal<boolean>;
|
|
1706
|
+
protected readonly pageSomeSelected: _angular_core.Signal<boolean>;
|
|
1707
|
+
protected isRowSelectable(row: T): boolean;
|
|
1708
|
+
protected isSelected(row: T, index: number): boolean;
|
|
1709
|
+
protected rowSelectLabel(row: T): string;
|
|
1710
|
+
protected cardMenuEntries(row: T): ActionMenuEntry[] | null;
|
|
1711
|
+
protected cardMenuAriaLabel(row: T): string;
|
|
1712
|
+
/** La tarjeta lleva casilla o menú: no puede ser un `role="button"` con controles adentro. */
|
|
1713
|
+
protected cardHasNestedControls(row: T): boolean;
|
|
1714
|
+
protected cardOpenAriaLabel(row: T): string;
|
|
1715
|
+
protected onCardMenuSelect(row: T, id: string): void;
|
|
1716
|
+
protected toggleRow(row: T, index: number, checked: boolean): void;
|
|
1717
|
+
protected togglePage(checked: boolean): void;
|
|
1231
1718
|
/**
|
|
1232
1719
|
* Formateo simple de celda como texto: `(row) => string`. Para marcado
|
|
1233
1720
|
* real (badges, links, botones) usar `cellTemplates`.
|
|
@@ -1405,6 +1892,11 @@ declare class DataTable<T = unknown> {
|
|
|
1405
1892
|
readonly view: _angular_core.ModelSignal<DataTableView | undefined>;
|
|
1406
1893
|
/** Vista activa: `view` si está definida, si no `defaultView`. */
|
|
1407
1894
|
readonly activeView: _angular_core.Signal<DataTableView>;
|
|
1895
|
+
private readonly hostEl;
|
|
1896
|
+
private readonly autoCardsActive;
|
|
1897
|
+
private autoCardsNaturalWidth;
|
|
1898
|
+
/** Decide entre tabla y tarjetas según el ancho natural de la tabla y el del componente (`autoCards`). */
|
|
1899
|
+
private evaluateAutoCards;
|
|
1408
1900
|
/** Primera columna de cada rol único; el resto se ignora en el encabezado. */
|
|
1409
1901
|
readonly cardMediaColumn: _angular_core.Signal<DataTableColumn | undefined>;
|
|
1410
1902
|
readonly cardTitleColumn: _angular_core.Signal<DataTableColumn | undefined>;
|
|
@@ -1477,7 +1969,7 @@ declare class DataTable<T = unknown> {
|
|
|
1477
1969
|
*/
|
|
1478
1970
|
protected measureStickyOffsets(): void;
|
|
1479
1971
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataTable<any>, never>;
|
|
1480
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataTable<any>, "kf-data-table", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "cardable": { "alias": "cardable"; "required": false; "isSignal": true; }; "defaultView": { "alias": "defaultView"; "required": false; "isSignal": true; }; "showViewToggle": { "alias": "showViewToggle"; "required": false; "isSignal": true; }; "cardMinWidth": { "alias": "cardMinWidth"; "required": false; "isSignal": true; }; "render": { "alias": "render"; "required": false; "isSignal": true; }; "cellTemplates": { "alias": "cellTemplates"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "rowClickable": { "alias": "rowClickable"; "required": false; "isSignal": true; }; "rowFocusable": { "alias": "rowFocusable"; "required": false; "isSignal": true; }; "cellAriaLabel": { "alias": "cellAriaLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "currentRowKey": { "alias": "currentRowKey"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "keepPageOnRowsChange": { "alias": "keepPageOnRowsChange"; "required": false; "isSignal": true; }; "itemLabel": { "alias": "itemLabel"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; }, { "rowClick": "rowClick"; "cellClick": "cellClick"; "page": "pageChange"; "pageSizeChange": "pageSizeChange"; "sortChange": "sortChange"; "view": "viewChange"; }, never, ["[empty]", "[footer]"], true, never>;
|
|
1972
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataTable<any>, "kf-data-table", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "cardable": { "alias": "cardable"; "required": false; "isSignal": true; }; "defaultView": { "alias": "defaultView"; "required": false; "isSignal": true; }; "showViewToggle": { "alias": "showViewToggle"; "required": false; "isSignal": true; }; "cardMinWidth": { "alias": "cardMinWidth"; "required": false; "isSignal": true; }; "autoCards": { "alias": "autoCards"; "required": false; "isSignal": true; }; "cardRows": { "alias": "cardRows"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; "isSignal": true; }; "selectLabel": { "alias": "selectLabel"; "required": false; "isSignal": true; }; "selectPageLabel": { "alias": "selectPageLabel"; "required": false; "isSignal": true; }; "selectedCountLabel": { "alias": "selectedCountLabel"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "cardMenu": { "alias": "cardMenu"; "required": false; "isSignal": true; }; "cardMenuLabel": { "alias": "cardMenuLabel"; "required": false; "isSignal": true; }; "cardOpenLabel": { "alias": "cardOpenLabel"; "required": false; "isSignal": true; }; "render": { "alias": "render"; "required": false; "isSignal": true; }; "cellTemplates": { "alias": "cellTemplates"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "rowClickable": { "alias": "rowClickable"; "required": false; "isSignal": true; }; "rowFocusable": { "alias": "rowFocusable"; "required": false; "isSignal": true; }; "cellAriaLabel": { "alias": "cellAriaLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "currentRowKey": { "alias": "currentRowKey"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "keepPageOnRowsChange": { "alias": "keepPageOnRowsChange"; "required": false; "isSignal": true; }; "itemLabel": { "alias": "itemLabel"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "cardMenuSelect": "cardMenuSelect"; "rowClick": "rowClick"; "cellClick": "cellClick"; "page": "pageChange"; "pageSizeChange": "pageSizeChange"; "sortChange": "sortChange"; "view": "viewChange"; }, never, ["[kf-data-table-bulk]", "[empty]", "[footer]"], true, never>;
|
|
1481
1973
|
}
|
|
1482
1974
|
|
|
1483
1975
|
/** Forma de contenido que reproduce el preset. */
|
|
@@ -1524,7 +2016,7 @@ declare class SkeletonPreset {
|
|
|
1524
2016
|
protected readonly items: _angular_core.Signal<number[]>;
|
|
1525
2017
|
/** Columnas de la tabla sintética (encabezados en blanco: lo real aún no llegó). */
|
|
1526
2018
|
protected readonly tableColumns: _angular_core.Signal<DataTableColumn[]>;
|
|
1527
|
-
protected readonly formColumns: _angular_core.Signal<
|
|
2019
|
+
protected readonly formColumns: _angular_core.Signal<1 | 2>;
|
|
1528
2020
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SkeletonPreset, never>;
|
|
1529
2021
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SkeletonPreset, "kf-skeleton-preset", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1530
2022
|
}
|
|
@@ -1609,6 +2101,71 @@ declare class ContentState {
|
|
|
1609
2101
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentState, "kf-content-state", never, { "state": { "alias": "state"; "required": true; "isSignal": true; }; "load": { "alias": "load"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "loadingTemplate": { "alias": "loadingTemplate"; "required": false; "isSignal": true; }; "loadingPreset": { "alias": "loadingPreset"; "required": false; "isSignal": true; }; }, {}, ["projectedLoading"], ["*", "[actions]"], true, never>;
|
|
1610
2102
|
}
|
|
1611
2103
|
|
|
2104
|
+
type ConfirmDialogTone = 'primary' | 'danger';
|
|
2105
|
+
interface ConfirmDialogResult {
|
|
2106
|
+
/** Motivo escrito, ya recortado; solo si el diálogo pide motivo. */
|
|
2107
|
+
reason?: string;
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* Diálogo de confirmación sobre `kf-modal`: acción binaria (confirmar o
|
|
2111
|
+
* cancelar) con, opcionalmente, una alerta de consecuencia, un motivo
|
|
2112
|
+
* obligatorio (`reasonLabel`, `reasonMinLength`) y una casilla de acuse
|
|
2113
|
+
* (`acknowledgeLabel`). El botón de confirmar siempre está habilitado: al
|
|
2114
|
+
* activarlo valida, deja un error junto a cada campo y enfoca el primero.
|
|
2115
|
+
*
|
|
2116
|
+
* `tone="danger"` pinta la acción como destructiva y deja el foco inicial en
|
|
2117
|
+
* «Cancelar». `busy` bloquea el cierre (X, Esc, fondo y «Cancelar») y muestra
|
|
2118
|
+
* el spinner en «Confirmar». Por defecto `confirmed` cierra el diálogo; con
|
|
2119
|
+
* `[autoClose]="false"` lo cierra quien consume al terminar la operación.
|
|
2120
|
+
* `cancelled` se emite al cerrar por cualquier vía distinta de confirmar.
|
|
2121
|
+
*
|
|
2122
|
+
* <kf-confirm-dialog [(open)]="open" tone="danger" title="Desactivar división"
|
|
2123
|
+
* message="Las órdenes abiertas se conservan." consequence="Dejará de recibir tickets."
|
|
2124
|
+
* reasonLabel="Motivo" [reasonMinLength]="8" confirmLabel="Desactivar"
|
|
2125
|
+
* (confirmed)="deactivate($event.reason)" />
|
|
2126
|
+
*/
|
|
2127
|
+
declare class ConfirmDialog {
|
|
2128
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
2129
|
+
readonly tone: _angular_core.InputSignal<ConfirmDialogTone>;
|
|
2130
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
2131
|
+
readonly message: _angular_core.InputSignal<string | undefined>;
|
|
2132
|
+
readonly icon: _angular_core.InputSignal<IconName | undefined>;
|
|
2133
|
+
readonly confirmLabel: _angular_core.InputSignal<string>;
|
|
2134
|
+
readonly cancelLabel: _angular_core.InputSignal<string>;
|
|
2135
|
+
readonly busy: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2136
|
+
readonly consequence: _angular_core.InputSignal<string | undefined>;
|
|
2137
|
+
readonly reasonLabel: _angular_core.InputSignal<string | undefined>;
|
|
2138
|
+
readonly reasonMinLength: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
2139
|
+
readonly reasonPlaceholder: _angular_core.InputSignal<string>;
|
|
2140
|
+
readonly reasonHint: _angular_core.InputSignal<string | undefined>;
|
|
2141
|
+
/** Mensaje de error del motivo; por defecto se arma con `reasonMinLength`. */
|
|
2142
|
+
readonly reasonError: _angular_core.InputSignal<string | undefined>;
|
|
2143
|
+
readonly acknowledgeLabel: _angular_core.InputSignal<string | undefined>;
|
|
2144
|
+
readonly acknowledgeError: _angular_core.InputSignal<string>;
|
|
2145
|
+
readonly autoClose: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2146
|
+
readonly confirmed: _angular_core.OutputEmitterRef<ConfirmDialogResult>;
|
|
2147
|
+
readonly cancelled: _angular_core.OutputEmitterRef<void>;
|
|
2148
|
+
private readonly host;
|
|
2149
|
+
private readonly injector;
|
|
2150
|
+
protected readonly reason: _angular_core.WritableSignal<string>;
|
|
2151
|
+
protected readonly acknowledged: _angular_core.WritableSignal<boolean>;
|
|
2152
|
+
protected readonly showReasonError: _angular_core.WritableSignal<boolean>;
|
|
2153
|
+
protected readonly showAcknowledgeError: _angular_core.WritableSignal<boolean>;
|
|
2154
|
+
private readonly minReasonLength;
|
|
2155
|
+
protected readonly reasonErrorText: _angular_core.Signal<string>;
|
|
2156
|
+
protected readonly initialFocus: _angular_core.Signal<".kf-confirm-dialog__reason" | ".kf-confirm-dialog__cancel" | ".kf-confirm-dialog__confirm">;
|
|
2157
|
+
constructor();
|
|
2158
|
+
protected onOpenChange(open: boolean): void;
|
|
2159
|
+
protected cancel(): void;
|
|
2160
|
+
protected confirm(): void;
|
|
2161
|
+
protected onReason(value: string): void;
|
|
2162
|
+
protected onAcknowledge(checked: boolean): void;
|
|
2163
|
+
private reset;
|
|
2164
|
+
private focusFirstError;
|
|
2165
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialog, never>;
|
|
2166
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmDialog, "kf-confirm-dialog", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "consequence": { "alias": "consequence"; "required": false; "isSignal": true; }; "reasonLabel": { "alias": "reasonLabel"; "required": false; "isSignal": true; }; "reasonMinLength": { "alias": "reasonMinLength"; "required": false; "isSignal": true; }; "reasonPlaceholder": { "alias": "reasonPlaceholder"; "required": false; "isSignal": true; }; "reasonHint": { "alias": "reasonHint"; "required": false; "isSignal": true; }; "reasonError": { "alias": "reasonError"; "required": false; "isSignal": true; }; "acknowledgeLabel": { "alias": "acknowledgeLabel"; "required": false; "isSignal": true; }; "acknowledgeError": { "alias": "acknowledgeError"; "required": false; "isSignal": true; }; "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "confirmed": "confirmed"; "cancelled": "cancelled"; }, never, ["*"], true, never>;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
1612
2169
|
type ContentViewerType = 'image' | 'video' | 'pdf';
|
|
1613
2170
|
/**
|
|
1614
2171
|
* Visor a pantalla completa para ampliar una pieza de contenido: imagen,
|
|
@@ -1720,6 +2277,173 @@ declare class CursorPager {
|
|
|
1720
2277
|
*/
|
|
1721
2278
|
declare function dataTableViewSignal(query?: string): Signal<DataTableView>;
|
|
1722
2279
|
|
|
2280
|
+
type DatePart = 'day' | 'month' | 'year';
|
|
2281
|
+
/** Orden de las partes y separador con que un `locale` escribe una fecha numérica. */
|
|
2282
|
+
interface DatePattern {
|
|
2283
|
+
order: readonly DatePart[];
|
|
2284
|
+
separator: string;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
type DateFieldPresentation = 'popover' | 'sheet' | 'auto';
|
|
2288
|
+
/**
|
|
2289
|
+
* Campo de fecha: texto con máscara según el orden de `Intl` del `locale`
|
|
2290
|
+
* (`es-CL` escribe 25-11-2024, `es-PE` 25/11/2024) y un calendario en popover
|
|
2291
|
+
* (`kf-calendar`, con teclado) o, en pantallas táctiles angostas, en una hoja
|
|
2292
|
+
* inferior. `value` es la fecha ISO `yyyy-MM-dd` (o `null` si el texto está
|
|
2293
|
+
* vacío, incompleto o fuera de rango); lo que se ve lo decide el `locale`.
|
|
2294
|
+
*
|
|
2295
|
+
* Teclado: `Alt` + ↓ abre el calendario, `Esc` lo cierra y devuelve el foco al
|
|
2296
|
+
* texto. Elegir un día cierra el calendario. `min`, `max` y `availableDates` se
|
|
2297
|
+
* aplican al calendario y al texto escrito: una fecha escrita que no los
|
|
2298
|
+
* respeta deja `value` en `null` y muestra `rangeErrorMessage`.
|
|
2299
|
+
*
|
|
2300
|
+
* <kf-date-field label="Fecha de entrega" locale="es-CL" [min]="today" [(value)]="date" />
|
|
2301
|
+
*/
|
|
2302
|
+
declare class DateField {
|
|
2303
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
2304
|
+
readonly hideLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2305
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
2306
|
+
readonly min: _angular_core.InputSignal<string | null>;
|
|
2307
|
+
readonly max: _angular_core.InputSignal<string | null>;
|
|
2308
|
+
readonly availableDates: _angular_core.InputSignal<readonly string[] | null>;
|
|
2309
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2310
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2311
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2312
|
+
readonly errorMessage: _angular_core.InputSignal<string | undefined>;
|
|
2313
|
+
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
2314
|
+
readonly locale: _angular_core.InputSignal<string>;
|
|
2315
|
+
readonly presentation: _angular_core.InputSignal<DateFieldPresentation>;
|
|
2316
|
+
readonly parseErrorMessage: _angular_core.InputSignal<string>;
|
|
2317
|
+
readonly rangeErrorMessage: _angular_core.InputSignal<string>;
|
|
2318
|
+
readonly openCalendarLabel: _angular_core.InputSignal<string>;
|
|
2319
|
+
private readonly field;
|
|
2320
|
+
protected readonly fieldHost: _angular_core.Signal<ElementRef<any>>;
|
|
2321
|
+
private readonly panel;
|
|
2322
|
+
private readonly sheetTemplate;
|
|
2323
|
+
private readonly injector;
|
|
2324
|
+
private readonly sheetPortal;
|
|
2325
|
+
private readonly compact;
|
|
2326
|
+
protected readonly popoverOpen: _angular_core.WritableSignal<boolean>;
|
|
2327
|
+
protected readonly sheetOpen: _angular_core.WritableSignal<boolean>;
|
|
2328
|
+
protected readonly text: _angular_core.WritableSignal<string>;
|
|
2329
|
+
private readonly textError;
|
|
2330
|
+
/** Último valor producido por el texto: evita reescribir el campo mientras se escribe. */
|
|
2331
|
+
private lastValue;
|
|
2332
|
+
private lastPattern;
|
|
2333
|
+
protected readonly pattern: _angular_core.Signal<DatePattern>;
|
|
2334
|
+
protected readonly placeholder: _angular_core.Signal<string>;
|
|
2335
|
+
protected readonly maxLength: _angular_core.Signal<number>;
|
|
2336
|
+
protected readonly monthNames: _angular_core.Signal<string[]>;
|
|
2337
|
+
protected readonly weekdayLabels: _angular_core.Signal<string[]>;
|
|
2338
|
+
protected readonly weekdayNames: _angular_core.Signal<string[]>;
|
|
2339
|
+
protected readonly asSheet: _angular_core.Signal<boolean>;
|
|
2340
|
+
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
2341
|
+
protected readonly fieldInvalid: _angular_core.Signal<boolean>;
|
|
2342
|
+
protected readonly fieldError: _angular_core.Signal<string | undefined>;
|
|
2343
|
+
constructor();
|
|
2344
|
+
protected onText(raw: string): void;
|
|
2345
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
2346
|
+
protected toggle(): void;
|
|
2347
|
+
protected pick(iso: string | null): void;
|
|
2348
|
+
private open;
|
|
2349
|
+
private close;
|
|
2350
|
+
private commit;
|
|
2351
|
+
private setText;
|
|
2352
|
+
private focusActiveDay;
|
|
2353
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateField, never>;
|
|
2354
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateField, "kf-date-field", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "availableDates": { "alias": "availableDates"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "presentation": { "alias": "presentation"; "required": false; "isSignal": true; }; "parseErrorMessage": { "alias": "parseErrorMessage"; "required": false; "isSignal": true; }; "rangeErrorMessage": { "alias": "rangeErrorMessage"; "required": false; "isSignal": true; }; "openCalendarLabel": { "alias": "openCalendarLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
interface DeadlineItem {
|
|
2358
|
+
id: string;
|
|
2359
|
+
/** Nombre completo del plazo («Plazo de atención»). */
|
|
2360
|
+
label: string;
|
|
2361
|
+
/** Forma corta, usada en el segmento reducido («+ Compromiso»). */
|
|
2362
|
+
shortLabel?: string;
|
|
2363
|
+
/** Abreviatura para anchos muy angostos. */
|
|
2364
|
+
abbr?: string;
|
|
2365
|
+
/** Tiempo restante ya formateado («12 min»). */
|
|
2366
|
+
value: string;
|
|
2367
|
+
/** Texto de vencimiento («vence 14:30»). */
|
|
2368
|
+
dueLabel?: string;
|
|
2369
|
+
/** Avance del plazo consumido, de 0 a 100. */
|
|
2370
|
+
pct: number;
|
|
2371
|
+
tone: DeadlineTone;
|
|
2372
|
+
/** Posición (0 a 100) de la marca del umbral de riesgo sobre la barra. */
|
|
2373
|
+
thresholdPct?: number;
|
|
2374
|
+
/** Texto solo para lector de pantalla que nombra el tono («En riesgo»). */
|
|
2375
|
+
toneLabel?: string;
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Franja baja (48 px) con uno o dos plazos en curso: ícono, nombre, tiempo
|
|
2379
|
+
* restante, vencimiento y una barra de avance con la marca del umbral. El color
|
|
2380
|
+
* (`tone`, ya calculado por quien consume; ver `resolveDeadlineTone` en
|
|
2381
|
+
* `@kaufmann-lab/ui/shared`) solo afecta al valor, al ícono y a la barra; el
|
|
2382
|
+
* ícono cambia con el tono para que el color no sea el único canal.
|
|
2383
|
+
*
|
|
2384
|
+
* Se adapta al ancho de su contenedor: bajo 56rem el segundo plazo pasa a
|
|
2385
|
+
* «+ Compromiso · 7 min», bajo 45rem se oculta el chevron, bajo 30rem se usan
|
|
2386
|
+
* abreviaturas sin vencimiento y bajo 25rem solo queda la abreviatura. Sin
|
|
2387
|
+
* ítems no dibuja nada ni deja hueco.
|
|
2388
|
+
*
|
|
2389
|
+
* Con `interactive` toda la franja es un botón con `aria-haspopup="dialog"`;
|
|
2390
|
+
* `itemClick` emite el id del plazo bajo el puntero (`null` con teclado).
|
|
2391
|
+
*
|
|
2392
|
+
* <kf-deadline-strip [items]="plazos()" interactive (itemClick)="openDetail($event)" />
|
|
2393
|
+
*/
|
|
2394
|
+
declare class DeadlineStrip {
|
|
2395
|
+
readonly items: _angular_core.InputSignal<DeadlineItem[]>;
|
|
2396
|
+
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2397
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
2398
|
+
readonly itemClick: _angular_core.OutputEmitterRef<string | null>;
|
|
2399
|
+
protected icon(tone: DeadlineTone): IconName;
|
|
2400
|
+
protected percent(value: number): number;
|
|
2401
|
+
protected onActivate(event: Event): void;
|
|
2402
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeadlineStrip, never>;
|
|
2403
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DeadlineStrip, "kf-deadline-strip", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
interface DescriptionItem {
|
|
2407
|
+
id?: string;
|
|
2408
|
+
label: string;
|
|
2409
|
+
value?: string | null;
|
|
2410
|
+
/** Valor en tipografía monoespaciada (códigos, identificadores). */
|
|
2411
|
+
mono?: boolean;
|
|
2412
|
+
}
|
|
2413
|
+
type DescriptionListLayout = 'stacked' | 'inline' | 'grid';
|
|
2414
|
+
type DescriptionListDensity = 'default' | 'compact';
|
|
2415
|
+
/** Plantilla del valor de cada ítem: `<ng-template kfDescriptionValue let-item>`. */
|
|
2416
|
+
declare class DescriptionValue {
|
|
2417
|
+
readonly template: TemplateRef<{
|
|
2418
|
+
$implicit: DescriptionItem;
|
|
2419
|
+
}>;
|
|
2420
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DescriptionValue, never>;
|
|
2421
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DescriptionValue, "ng-template[kfDescriptionValue]", never, {}, {}, never, never, true, never>;
|
|
2422
|
+
}
|
|
2423
|
+
/**
|
|
2424
|
+
* Lista de pares etiqueta/valor con semántica `<dl>/<dt>/<dd>` (datos de una
|
|
2425
|
+
* unidad, de un cliente, de un evento).
|
|
2426
|
+
*
|
|
2427
|
+
* `layout`: `stacked` (etiqueta sobre el valor), `inline` (dos columnas; bajo
|
|
2428
|
+
* 30rem de ancho pasa a apilado) y `grid` (varios pares por fila con
|
|
2429
|
+
* `auto-fit`; una sola columna bajo 20rem). Un valor vacío muestra «—» con el
|
|
2430
|
+
* texto de `emptyLabel` para lectores de pantalla. Un valor con marcado se
|
|
2431
|
+
* resuelve con `<ng-template kfDescriptionValue let-item>`.
|
|
2432
|
+
*
|
|
2433
|
+
* <kf-description-list layout="grid" [items]="[
|
|
2434
|
+
* { label: 'Marca', value: 'Volvo' }, { label: 'Serie', value: 'YV1', mono: true }
|
|
2435
|
+
* ]" />
|
|
2436
|
+
*/
|
|
2437
|
+
declare class DescriptionList {
|
|
2438
|
+
readonly items: _angular_core.InputSignal<DescriptionItem[]>;
|
|
2439
|
+
readonly layout: _angular_core.InputSignal<DescriptionListLayout>;
|
|
2440
|
+
readonly density: _angular_core.InputSignal<DescriptionListDensity>;
|
|
2441
|
+
readonly emptyLabel: _angular_core.InputSignal<string>;
|
|
2442
|
+
protected readonly valueTemplate: _angular_core.Signal<DescriptionValue | undefined>;
|
|
2443
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DescriptionList, never>;
|
|
2444
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DescriptionList, "kf-description-list", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; "isSignal": true; }; }, {}, ["valueTemplate"], never, true, never>;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
1723
2447
|
type DividerOrientation = 'horizontal' | 'vertical';
|
|
1724
2448
|
/**
|
|
1725
2449
|
* Separador visual simple entre bloques de contenido. `orientation`
|
|
@@ -1787,6 +2511,10 @@ type DrawerSide = 'left' | 'right' | 'bottom';
|
|
|
1787
2511
|
* `aria-modal="true"`.
|
|
1788
2512
|
*/
|
|
1789
2513
|
type DrawerRole = 'navigation' | 'dialog';
|
|
2514
|
+
/** Ancho con nombre de un panel lateral: `md` (hasta 640px) o `lg` (hasta 880px). */
|
|
2515
|
+
type DrawerSize = 'md' | 'lg';
|
|
2516
|
+
/** Alto de la hoja inferior: según contenido (`auto`) o pantalla completa (`full`). */
|
|
2517
|
+
type DrawerSheetSize = 'auto' | 'full';
|
|
1790
2518
|
/**
|
|
1791
2519
|
* Panel lateral genérico, agnóstico de contenido — no sabe qué es navegación
|
|
1792
2520
|
* ni qué es sesión, solo da tres lugares para proyectar contenido
|
|
@@ -1873,6 +2601,15 @@ type DrawerRole = 'navigation' | 'dialog';
|
|
|
1873
2601
|
* Al cerrar, el foco vuelve al elemento que lo tenía al abrir solo si sigue
|
|
1874
2602
|
* en el documento (`isConnected`); si fue desmontado mientras el drawer
|
|
1875
2603
|
* estaba abierto, no se fuerza ningún destino.
|
|
2604
|
+
*
|
|
2605
|
+
* ## Dónde colocarlo
|
|
2606
|
+
*
|
|
2607
|
+
* El panel y el telón son `position: fixed` dentro del propio componente. Un
|
|
2608
|
+
* ancestro con `container-type`, `transform`, `filter` o `contain` pasa a ser
|
|
2609
|
+
* su bloque contenedor: el drawer se mide contra ese ancestro y no contra la
|
|
2610
|
+
* ventana. Hay que colocarlo fuera de esos contenedores. `kf-action-menu`,
|
|
2611
|
+
* `kf-date-field` y `kf-time-field` no tienen esta limitación: montan su hoja
|
|
2612
|
+
* en el contenedor de overlays de CDK.
|
|
1876
2613
|
*/
|
|
1877
2614
|
declare class Drawer {
|
|
1878
2615
|
/** Visibilidad del panel, two-way: `[(open)]="menuOpen"`. */
|
|
@@ -1893,6 +2630,29 @@ declare class Drawer {
|
|
|
1893
2630
|
/** Nombre accesible del botón de cierre de la barra de título y del
|
|
1894
2631
|
* overlay. Default: "Cerrar menú" (`navigation`) o "Cerrar" (`dialog`). */
|
|
1895
2632
|
readonly closeLabel: _angular_core.InputSignal<string | undefined>;
|
|
2633
|
+
/**
|
|
2634
|
+
* Ancho con nombre de un panel lateral (`left` o `right`): `md` = `min(640px,
|
|
2635
|
+
* 94vw)` y `lg` = `min(880px, 70vw)`, ambos a ancho completo bajo 600px; se
|
|
2636
|
+
* ajustan con `--kf-drawer-width-md` y `--kf-drawer-width-lg`. `null` (default)
|
|
2637
|
+
* conserva el ancho de siempre (`--kf-drawer-width`, 480px en `dialog`). Sin
|
|
2638
|
+
* efecto en la hoja inferior.
|
|
2639
|
+
*/
|
|
2640
|
+
readonly size: _angular_core.InputSignal<DrawerSize | null>;
|
|
2641
|
+
/** Alto de la hoja inferior (`side="bottom"`): `auto` (default, según contenido con tope de 80vh) o `full` (`100dvh`). */
|
|
2642
|
+
readonly sheetSize: _angular_core.InputSignal<DrawerSheetSize>;
|
|
2643
|
+
/**
|
|
2644
|
+
* Hoja inferior: se cierra arrastrando hacia abajo desde el tirador o la barra
|
|
2645
|
+
* de título si el desplazamiento supera `min(80px, 25% del alto)`, o 24px a más
|
|
2646
|
+
* de 0.5px/ms. El botón de cierre y Escape siguen disponibles. Default `true`;
|
|
2647
|
+
* sin efecto en los paneles laterales.
|
|
2648
|
+
*/
|
|
2649
|
+
readonly swipeToClose: _angular_core.InputSignal<boolean>;
|
|
2650
|
+
/**
|
|
2651
|
+
* Hoja inferior: apila una entrada de `history` al abrir y cierra con el
|
|
2652
|
+
* botón atrás (por ejemplo, el de Android); al cerrar por código retrocede esa
|
|
2653
|
+
* entrada. Default `false`.
|
|
2654
|
+
*/
|
|
2655
|
+
readonly closeOnBack: _angular_core.InputSignal<boolean>;
|
|
1896
2656
|
/** `ariaLabel` o, sin él, el default según el rol. */
|
|
1897
2657
|
protected readonly resolvedAriaLabel: _angular_core.Signal<string>;
|
|
1898
2658
|
/** `closeLabel` o, sin él, el default según el rol. */
|
|
@@ -1902,15 +2662,25 @@ declare class Drawer {
|
|
|
1902
2662
|
private readonly focusTrapFactory;
|
|
1903
2663
|
private readonly document;
|
|
1904
2664
|
private readonly overlayContainer;
|
|
2665
|
+
private readonly history;
|
|
2666
|
+
private historyPushed;
|
|
2667
|
+
private drag;
|
|
1905
2668
|
private registeredPanel;
|
|
1906
2669
|
private focusTrap;
|
|
1907
2670
|
private lastFocusedElement;
|
|
1908
2671
|
constructor();
|
|
1909
2672
|
/** Cierra el drawer con Escape — mismo patrón que `Dropdown`/`Modal`. */
|
|
1910
2673
|
protected onEscape(event: Event): void;
|
|
2674
|
+
/** Cierra la hoja con el botón atrás cuando `closeOnBack` apiló su entrada de historial. */
|
|
2675
|
+
protected onPopState(): void;
|
|
2676
|
+
private syncHistory;
|
|
2677
|
+
protected onDragStart(event: PointerEvent): void;
|
|
2678
|
+
protected onDragMove(event: PointerEvent): void;
|
|
2679
|
+
protected onDragEnd(event: PointerEvent): void;
|
|
2680
|
+
protected onDragCancel(): void;
|
|
1911
2681
|
private getOrCreateFocusTrap;
|
|
1912
2682
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Drawer, never>;
|
|
1913
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Drawer, "kf-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["[kf-drawer-header]", "*", "[kf-drawer-footer]"], true, never>;
|
|
2683
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Drawer, "kf-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "sheetSize": { "alias": "sheetSize"; "required": false; "isSignal": true; }; "swipeToClose": { "alias": "swipeToClose"; "required": false; "isSignal": true; }; "closeOnBack": { "alias": "closeOnBack"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["[kf-drawer-header]", "*", "[kf-drawer-footer]"], true, never>;
|
|
1914
2684
|
}
|
|
1915
2685
|
|
|
1916
2686
|
/**
|
|
@@ -2018,28 +2788,22 @@ declare class Dropdown {
|
|
|
2018
2788
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Dropdown, "kf-dropdown", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "anchor": { "alias": "anchor"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["panel"], ["*"], true, never>;
|
|
2019
2789
|
}
|
|
2020
2790
|
|
|
2021
|
-
type DropdownItemTone = 'neutral' | 'error';
|
|
2022
2791
|
/**
|
|
2023
|
-
*
|
|
2024
|
-
* (
|
|
2025
|
-
*
|
|
2026
|
-
*
|
|
2027
|
-
*
|
|
2028
|
-
*
|
|
2792
|
+
* Grupo de ítems dentro de un `kf-dropdown-panel`: un encabezado en mayúsculas
|
|
2793
|
+
* pequeñas (`label`) y una línea que lo separa del grupo anterior. Expone
|
|
2794
|
+
* `role="group"` con el encabezado como nombre (`aria-labelledby`).
|
|
2795
|
+
*
|
|
2796
|
+
* <kf-dropdown-panel>
|
|
2797
|
+
* <kf-dropdown-group label="Exportar">
|
|
2798
|
+
* <kf-dropdown-item icon="download">CSV</kf-dropdown-item>
|
|
2799
|
+
* </kf-dropdown-group>
|
|
2800
|
+
* </kf-dropdown-panel>
|
|
2029
2801
|
*/
|
|
2030
|
-
declare class
|
|
2031
|
-
readonly
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
* Deshabilita el ítem (ej. una acción cuyo endpoint todavía no existe,
|
|
2036
|
-
* caso real de "Factura" en `kf-row-actions` de Taller). Default `false`
|
|
2037
|
-
* a propósito — ningún consumidor existente (ej. el menú de sesión del
|
|
2038
|
-
* Shell) pasa esta prop hoy, así que no cambia su comportamiento.
|
|
2039
|
-
*/
|
|
2040
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2041
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownItem, never>;
|
|
2042
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownItem, "kf-dropdown-item", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2802
|
+
declare class DropdownGroup {
|
|
2803
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
2804
|
+
protected readonly labelId: string;
|
|
2805
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownGroup, never>;
|
|
2806
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownGroup, "kf-dropdown-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2043
2807
|
}
|
|
2044
2808
|
|
|
2045
2809
|
type DropdownPanelVariant = 'solid' | 'dark';
|
|
@@ -2071,13 +2835,25 @@ type DropdownPanelRole = 'menu' | 'dialog';
|
|
|
2071
2835
|
declare class DropdownPanel {
|
|
2072
2836
|
readonly variant: _angular_core.InputSignal<DropdownPanelVariant>;
|
|
2073
2837
|
readonly role: _angular_core.InputSignal<DropdownPanelRole>;
|
|
2838
|
+
/**
|
|
2839
|
+
* Alto máximo del panel (cualquier valor CSS). Sin él el tope es
|
|
2840
|
+
* `min(32rem, 100dvh - 16px)`; si el contenido lo supera, el panel hace scroll
|
|
2841
|
+
* interno en vez de salirse del viewport.
|
|
2842
|
+
*/
|
|
2843
|
+
readonly maxHeight: _angular_core.InputSignal<string | undefined>;
|
|
2844
|
+
/**
|
|
2845
|
+
* Ancho del panel (cualquier valor CSS, por ejemplo `22rem`). Sin él el panel
|
|
2846
|
+
* mide entre 220px y 280px. Nunca pasa del viewport menos 16px. También se
|
|
2847
|
+
* puede fijar con el token `--kf-dropdown-panel-width`.
|
|
2848
|
+
*/
|
|
2849
|
+
readonly width: _angular_core.InputSignal<string | undefined>;
|
|
2074
2850
|
/** Nombre accesible del panel (obligatorio en la práctica con `role="dialog"`). */
|
|
2075
2851
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
2076
2852
|
/** `id` del contenedor con el rol; el disparador lo referencia con `aria-controls`. */
|
|
2077
2853
|
readonly panelId: string;
|
|
2078
2854
|
readonly templateRef: _angular_core.Signal<TemplateRef<any>>;
|
|
2079
2855
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownPanel, never>;
|
|
2080
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownPanel, "kf-dropdown-panel", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2856
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownPanel, "kf-dropdown-panel", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2081
2857
|
}
|
|
2082
2858
|
|
|
2083
2859
|
/** Tono del estado. `warn`/`info` solo cambian el chip del ícono. */
|
|
@@ -2259,6 +3035,36 @@ declare class FieldLabel {
|
|
|
2259
3035
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldLabel, "kf-field-label", never, { "for": { "alias": "for"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "visuallyHidden": { "alias": "visuallyHidden"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2260
3036
|
}
|
|
2261
3037
|
|
|
3038
|
+
/**
|
|
3039
|
+
* Grupo de campos con leyenda: envuelve un `<fieldset>`/`<legend>` nativo, la
|
|
3040
|
+
* semántica correcta para un grupo de casillas o de opciones relacionadas.
|
|
3041
|
+
* La leyenda usa la tipografía de `kf-field-label`. `required` agrega el
|
|
3042
|
+
* asterisco visual, `hint` y `errorMessage` se enlazan con `aria-describedby`
|
|
3043
|
+
* (el error se anuncia como alerta) y `disabled` deshabilita todos los
|
|
3044
|
+
* controles nativos del interior.
|
|
3045
|
+
*
|
|
3046
|
+
* `aria-invalid` no se usa: el rol `group` del fieldset no lo admite, así que
|
|
3047
|
+
* el error se comunica con el texto asociado y con el borde del grupo.
|
|
3048
|
+
*
|
|
3049
|
+
* <kf-fieldset legend="Divisiones con acceso" required [invalid]="!!error" [errorMessage]="error">
|
|
3050
|
+
* <kf-checkbox label="Divemotor STAR" /> <kf-checkbox label="Andes Maq" />
|
|
3051
|
+
* </kf-fieldset>
|
|
3052
|
+
*/
|
|
3053
|
+
declare class Fieldset {
|
|
3054
|
+
readonly legend: _angular_core.InputSignal<string>;
|
|
3055
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3056
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3057
|
+
readonly errorMessage: _angular_core.InputSignal<string | undefined>;
|
|
3058
|
+
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
3059
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3060
|
+
private readonly id;
|
|
3061
|
+
protected readonly hintId: string;
|
|
3062
|
+
protected readonly errorId: string;
|
|
3063
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
3064
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Fieldset, never>;
|
|
3065
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Fieldset, "kf-fieldset", never, { "legend": { "alias": "legend"; "required": true; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3066
|
+
}
|
|
3067
|
+
|
|
2262
3068
|
/** Por qué se descartó un archivo: formato fuera de `accept` o más grande que `maxSize`. */
|
|
2263
3069
|
type FileRejectionReason = 'type' | 'size';
|
|
2264
3070
|
/** Un archivo descartado y el motivo. */
|
|
@@ -2599,6 +3405,46 @@ declare class FilterChips {
|
|
|
2599
3405
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterChips, "kf-filter-chips", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "deselectable": { "alias": "deselectable"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
2600
3406
|
}
|
|
2601
3407
|
|
|
3408
|
+
type FloatingToolbarPlacement = 'static' | 'bottom';
|
|
3409
|
+
/**
|
|
3410
|
+
* Barra de herramientas en forma de píldora (`role="toolbar"`) para acciones
|
|
3411
|
+
* flotantes sobre un contenido, como el zoom y el giro de una imagen.
|
|
3412
|
+
*
|
|
3413
|
+
* Patrón APG: una sola parada de Tab, flechas ←/→ (con vuelta), Inicio y Fin
|
|
3414
|
+
* entre los botones proyectados. Admite `kf-divider orientation="vertical"` como
|
|
3415
|
+
* separador. Bajo 30rem de ancho del contenedor se centra y pasa a varias filas.
|
|
3416
|
+
*
|
|
3417
|
+
* Superficie por ganchos de CSS (opcionales; sin ellos no cambia nada):
|
|
3418
|
+
* `--kf-floating-toolbar-bg`, `-border`, `-shadow` y `-fg`.
|
|
3419
|
+
*
|
|
3420
|
+
* `placement="bottom"` ancla la barra abajo al centro del contenedor
|
|
3421
|
+
* posicionado más cercano (necesita `position: relative` en él).
|
|
3422
|
+
* `heightChange` emite su alto para que el contenedor reserve ese espacio como
|
|
3423
|
+
* relleno inferior y la barra no tape el contenido.
|
|
3424
|
+
*
|
|
3425
|
+
* <kf-floating-toolbar ariaLabel="Zoom de la imagen" placement="bottom">
|
|
3426
|
+
* <kf-button variant="ghost" shape="circle" icon="minus" ariaLabel="Alejar" />
|
|
3427
|
+
* <kf-button variant="ghost" shape="circle" icon="plus" ariaLabel="Acercar" />
|
|
3428
|
+
* </kf-floating-toolbar>
|
|
3429
|
+
*/
|
|
3430
|
+
declare class FloatingToolbar {
|
|
3431
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
3432
|
+
readonly placement: _angular_core.InputSignal<FloatingToolbarPlacement>;
|
|
3433
|
+
readonly heightChange: _angular_core.OutputEmitterRef<number>;
|
|
3434
|
+
private readonly host;
|
|
3435
|
+
private readonly bar;
|
|
3436
|
+
private readonly destroyRef;
|
|
3437
|
+
private activeIndex;
|
|
3438
|
+
constructor();
|
|
3439
|
+
protected onFocusIn(event: FocusEvent): void;
|
|
3440
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
3441
|
+
private items;
|
|
3442
|
+
/** Solo el botón activo queda en el orden de Tab; los demás se alcanzan con flechas. */
|
|
3443
|
+
private syncTabStops;
|
|
3444
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FloatingToolbar, never>;
|
|
3445
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FloatingToolbar, "kf-floating-toolbar", never, { "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; }, { "heightChange": "heightChange"; }, never, ["*"], true, never>;
|
|
3446
|
+
}
|
|
3447
|
+
|
|
2602
3448
|
/** Un link del pie — legales, contacto, soporte. */
|
|
2603
3449
|
interface FooterLink {
|
|
2604
3450
|
label: string;
|
|
@@ -2631,6 +3477,52 @@ declare class Footer {
|
|
|
2631
3477
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Footer, "kf-footer", never, { "logoSrc": { "alias": "logoSrc"; "required": false; "isSignal": true; }; "logoAlt": { "alias": "logoAlt"; "required": false; "isSignal": true; }; "copyright": { "alias": "copyright"; "required": true; "isSignal": true; }; "links": { "alias": "links"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2632
3478
|
}
|
|
2633
3479
|
|
|
3480
|
+
type ImageFit = 'cover' | 'contain' | 'fill';
|
|
3481
|
+
type ImageRadius = 'none' | 'sm' | 'md' | 'lg' | 'pill';
|
|
3482
|
+
type ImageStatus = 'loading' | 'loaded' | 'failed' | 'blocked';
|
|
3483
|
+
/** Tamaño intrínseco del raster, en píxeles. */
|
|
3484
|
+
interface ImageNaturalSize {
|
|
3485
|
+
readonly width: number;
|
|
3486
|
+
readonly height: number;
|
|
3487
|
+
}
|
|
3488
|
+
/**
|
|
3489
|
+
* Imagen con estados: bloque `kf-skeleton` mientras carga, ícono de respaldo
|
|
3490
|
+
* si falla o no hay `src`, y estado `blocked` que nunca pide el archivo (una
|
|
3491
|
+
* evidencia bloqueada no filtra miniatura). El `<img>` nativo queda
|
|
3492
|
+
* encapsulado acá: es la única forma de decodificar un raster y de darle `alt`.
|
|
3493
|
+
*
|
|
3494
|
+
* `alt` es obligatorio: usar `''` solo si la imagen es decorativa. Con
|
|
3495
|
+
* `aspectRatio` (por ejemplo `'4 / 3'`) el bloque reserva su alto antes de
|
|
3496
|
+
* cargar y no hay salto de layout.
|
|
3497
|
+
*
|
|
3498
|
+
* <kf-image src="/evidencias/42.jpg" alt="Frente de la unidad" aspectRatio="4 / 3" />
|
|
3499
|
+
* <kf-image alt="Evidencia bloqueada" blocked />
|
|
3500
|
+
*/
|
|
3501
|
+
declare class Image {
|
|
3502
|
+
readonly src: _angular_core.InputSignal<string | null | undefined>;
|
|
3503
|
+
readonly alt: _angular_core.InputSignal<string>;
|
|
3504
|
+
readonly fit: _angular_core.InputSignal<ImageFit>;
|
|
3505
|
+
readonly aspectRatio: _angular_core.InputSignal<string | undefined>;
|
|
3506
|
+
readonly radius: _angular_core.InputSignal<ImageRadius>;
|
|
3507
|
+
readonly loading: _angular_core.InputSignal<"lazy" | "eager">;
|
|
3508
|
+
readonly fallbackIcon: _angular_core.InputSignal<IconName>;
|
|
3509
|
+
/** Muestra `lock` y nunca pide `src`. */
|
|
3510
|
+
readonly blocked: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3511
|
+
readonly loaded: _angular_core.OutputEmitterRef<void>;
|
|
3512
|
+
readonly failed: _angular_core.OutputEmitterRef<void>;
|
|
3513
|
+
/** Resultado del último intento, atado al `src` que lo produjo. */
|
|
3514
|
+
private readonly result;
|
|
3515
|
+
protected readonly status: _angular_core.Signal<ImageStatus>;
|
|
3516
|
+
private readonly natural;
|
|
3517
|
+
/** Tamaño intrínseco de la imagen cargada; `null` mientras carga, si falla o si no hay `src`. */
|
|
3518
|
+
readonly naturalSize: _angular_core.Signal<ImageNaturalSize | null>;
|
|
3519
|
+
protected readonly showImage: _angular_core.Signal<boolean>;
|
|
3520
|
+
protected onLoad(event: Event): void;
|
|
3521
|
+
protected onError(): void;
|
|
3522
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Image, never>;
|
|
3523
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Image, "kf-image", never, { "src": { "alias": "src"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": true; "isSignal": true; }; "fit": { "alias": "fit"; "required": false; "isSignal": true; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "fallbackIcon": { "alias": "fallbackIcon"; "required": false; "isSignal": true; }; "blocked": { "alias": "blocked"; "required": false; "isSignal": true; }; }, { "loaded": "loaded"; "failed": "failed"; }, never, never, true, never>;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
2634
3526
|
/** Valor de `min`/`max`/`step`: número, o texto cuando el tipo lo pide (una fecha `'2026-01-31'`, un mes, una hora). */
|
|
2635
3527
|
type InputBound = string | number | null | undefined;
|
|
2636
3528
|
/**
|
|
@@ -2689,6 +3581,9 @@ type InputBound = string | number | null | undefined;
|
|
|
2689
3581
|
* `focus()` enfoca el `<input>` nativo, sin que el consumidor busque el
|
|
2690
3582
|
* control interno con `querySelector`.
|
|
2691
3583
|
*
|
|
3584
|
+
* Un elemento con el atributo `kf-input-trailing` se proyecta al final del
|
|
3585
|
+
* campo, dentro del borde (por ejemplo un `kf-button` que abre un calendario).
|
|
3586
|
+
*
|
|
2692
3587
|
* `autocomplete`, `name` e `inputmode` se reenvían al `<input>` nativo (un
|
|
2693
3588
|
* atributo en el host no llega adentro) para que el navegador y los gestores
|
|
2694
3589
|
* de contraseñas identifiquen el campo; sin valor no se renderiza ningún
|
|
@@ -2715,6 +3610,12 @@ declare class Input implements ControlValueAccessor, AfterViewInit {
|
|
|
2715
3610
|
private static nextId;
|
|
2716
3611
|
private readonly nativeInput;
|
|
2717
3612
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
3613
|
+
/**
|
|
3614
|
+
* Tamaño del campo: `md` (default) o `sm`, de alto `--kf-control-sm` (32px) y con
|
|
3615
|
+
* la tipografía `body-sm`, para filas de filtros densas junto a `kf-select
|
|
3616
|
+
* size="sm"`. Con `data-density="touch"` sube a 44px.
|
|
3617
|
+
*/
|
|
3618
|
+
readonly size: _angular_core.InputSignal<"sm" | "md">;
|
|
2718
3619
|
/** Oculta el `label` a la vista y lo deja como nombre accesible (`<label for>`), sin ocultarlo con CSS desde afuera. */
|
|
2719
3620
|
readonly hideLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2720
3621
|
/** Marca el label con un asterisco visual y aplica `required` al `<input>`
|
|
@@ -2817,7 +3718,7 @@ declare class Input implements ControlValueAccessor, AfterViewInit {
|
|
|
2817
3718
|
*/
|
|
2818
3719
|
protected onTogglePasswordVisibility(): void;
|
|
2819
3720
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Input, never>;
|
|
2820
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Input, "kf-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputmode": { "alias": "inputmode"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "toggleable": { "alias": "toggleable"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; }, { "cleared": "cleared"; }, never,
|
|
3721
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Input, "kf-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputmode": { "alias": "inputmode"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "toggleable": { "alias": "toggleable"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; }, { "cleared": "cleared"; }, never, ["[kf-input-trailing]"], true, never>;
|
|
2821
3722
|
}
|
|
2822
3723
|
|
|
2823
3724
|
type ResolvedJourneyStep = JourneyStep & {
|
|
@@ -2934,6 +3835,41 @@ declare class JourneyStepper {
|
|
|
2934
3835
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<JourneyStepper, "kf-journey-stepper", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "autoBreakpoint": { "alias": "autoBreakpoint"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "surface": { "alias": "surface"; "required": false; "isSignal": true; }; "colorScheme": { "alias": "colorScheme"; "required": false; "isSignal": true; }; "currentStep": { "alias": "currentStep"; "required": false; "isSignal": true; }; }, { "stepClick": "stepClick"; }, never, never, true, never>;
|
|
2935
3836
|
}
|
|
2936
3837
|
|
|
3838
|
+
type LayoutThumbTone = 'primary' | 'info' | 'ok' | 'warn' | 'error' | 'service' | 'neutral';
|
|
3839
|
+
type LayoutThumbSize = 'sm' | 'lg';
|
|
3840
|
+
interface LayoutThumbTile {
|
|
3841
|
+
/** Columna de inicio, de 1 a 12. */
|
|
3842
|
+
col: number;
|
|
3843
|
+
/** Fila de inicio, de 1 a 6. */
|
|
3844
|
+
row: number;
|
|
3845
|
+
colSpan: number;
|
|
3846
|
+
rowSpan: number;
|
|
3847
|
+
tone: LayoutThumbTone;
|
|
3848
|
+
/** Contorno punteado de error: el bloque tiene un problema. */
|
|
3849
|
+
flagged?: boolean;
|
|
3850
|
+
}
|
|
3851
|
+
/**
|
|
3852
|
+
* Miniatura esquemática de una distribución: grilla de 12 columnas x 6 filas con
|
|
3853
|
+
* aspecto 16/9 y un bloque por cada elemento de `tiles`. `size="sm"` mide 64 px
|
|
3854
|
+
* de ancho y `lg` ocupa el ancho del contenedor. El host es `role="img"` y
|
|
3855
|
+
* `ariaLabel` describe la distribución (el color es solo apoyo visual).
|
|
3856
|
+
*
|
|
3857
|
+
* Solo dibuja la forma: el catálogo de bloques o de distribuciones es del
|
|
3858
|
+
* dominio de quien consume la librería.
|
|
3859
|
+
*
|
|
3860
|
+
* <kf-layout-thumb ariaLabel="Distribución de 3 bloques" [tiles]="[
|
|
3861
|
+
* { col: 1, row: 1, colSpan: 6, rowSpan: 6, tone: 'primary' },
|
|
3862
|
+
* { col: 7, row: 1, colSpan: 6, rowSpan: 3, tone: 'ok' }
|
|
3863
|
+
* ]" />
|
|
3864
|
+
*/
|
|
3865
|
+
declare class LayoutThumb {
|
|
3866
|
+
readonly tiles: _angular_core.InputSignal<LayoutThumbTile[]>;
|
|
3867
|
+
readonly size: _angular_core.InputSignal<LayoutThumbSize>;
|
|
3868
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
3869
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutThumb, never>;
|
|
3870
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LayoutThumb, "kf-layout-thumb", never, { "tiles": { "alias": "tiles"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3871
|
+
}
|
|
3872
|
+
|
|
2937
3873
|
type LinkVariant = 'default' | 'muted';
|
|
2938
3874
|
/**
|
|
2939
3875
|
* Acción de bajo énfasis con apariencia de texto — "¿Olvidaste tu
|
|
@@ -3210,6 +4146,435 @@ declare class MetricCard {
|
|
|
3210
4146
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MetricCard, "kf-metric-card", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "foot": { "alias": "foot"; "required": false; "isSignal": true; }; "valueColor": { "alias": "valueColor"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, {}, never, ["[actions]"], true, never>;
|
|
3211
4147
|
}
|
|
3212
4148
|
|
|
4149
|
+
type ZoomPanRotation = 0 | 90 | 180 | 270;
|
|
4150
|
+
type ZoomPanSwipe = 'prev' | 'next';
|
|
4151
|
+
type ZoomPanMode = 'fit' | 'natural' | 'zoomed';
|
|
4152
|
+
/** Tamaño intrínseco del contenido, en píxeles. */
|
|
4153
|
+
interface ZoomPanSize {
|
|
4154
|
+
readonly width: number;
|
|
4155
|
+
readonly height: number;
|
|
4156
|
+
}
|
|
4157
|
+
/**
|
|
4158
|
+
* Zoom y arrastre de un contenido dentro de un escenario (típicamente la foto de
|
|
4159
|
+
* un visor de evidencias). La directiva va en el escenario y administra el primer
|
|
4160
|
+
* descendiente que coincide con `kfZoomPanTarget` (por defecto
|
|
4161
|
+
* `[data-kf-zoom-target]`): lo centra en el área visible, le da el tamaño que
|
|
4162
|
+
* hace caber `kfZoomPanNatural` («Ajustar» es un contain real que nunca amplía) y
|
|
4163
|
+
* le aplica el zoom, el giro y el desplazamiento con `transform`.
|
|
4164
|
+
*
|
|
4165
|
+
* `kfZoomPanZoom` es la escala relativa a «Ajustar» (1 = ajustada) y `percent()`
|
|
4166
|
+
* da el porcentaje real sobre el tamaño natural. Los botones usan los pasos
|
|
4167
|
+
* 1 / 1,5 / 2 / 3 / 4 hasta `kfZoomPanMax`. Sin `kfZoomPanNatural` la directiva no
|
|
4168
|
+
* toca el contenido.
|
|
4169
|
+
*
|
|
4170
|
+
* Gestos con Pointer Events (el escenario lleva `touch-action: none`): arrastre
|
|
4171
|
+
* con zoom, pellizco de dos punteros (al soltarlo por debajo de 1,04 vuelve a
|
|
4172
|
+
* «Ajustar»), `Ctrl` + rueda (también el pellizco del trackpad), rueda sola para
|
|
4173
|
+
* desplazar con zoom, doble clic o doble toque (`kfZoomPanDoubleTap` ⇄ «Ajustar»)
|
|
4174
|
+
* y, con «Ajustar», deslizar con un dedo emite `kfZoomPanSwipe`. `Shift` + flechas
|
|
4175
|
+
* desplaza con teclado cuando hay zoom: es la alternativa al arrastre. El
|
|
4176
|
+
* escenario necesita `position` distinto de `static` (la directiva lo fija en
|
|
4177
|
+
* `relative` si hace falta) y recorta con `overflow: clip`: el contenido ampliado
|
|
4178
|
+
* nunca se puede desplazar por scroll (ni por el foco ni por `scrollIntoView`).
|
|
4179
|
+
*
|
|
4180
|
+
* El controlador de botones y atajos es el propio `exportAs: 'kfZoomPan'`:
|
|
4181
|
+
* `zoomIn()`, `zoomOut()`, `fit()`, `reset()` (ajusta y quita el giro), `rotateBy()`
|
|
4182
|
+
* y `zoomToNatural()`.
|
|
4183
|
+
*
|
|
4184
|
+
* <div class="stage" kfZoomPan #zp="kfZoomPan" [kfZoomPanNatural]="size()"
|
|
4185
|
+
* (kfZoomPanSwipe)="go($event)">
|
|
4186
|
+
* <kf-image data-kf-zoom-target src="/f.jpg" alt="Frente" fit="fill" />
|
|
4187
|
+
* </div>
|
|
4188
|
+
* <kf-button icon="plus" ariaLabel="Acercar" (click)="zp.zoomIn()" />
|
|
4189
|
+
*/
|
|
4190
|
+
declare class ZoomPanDirective {
|
|
4191
|
+
readonly kfZoomPanZoom: _angular_core.ModelSignal<number>;
|
|
4192
|
+
readonly kfZoomPanRotation: _angular_core.ModelSignal<ZoomPanRotation>;
|
|
4193
|
+
readonly kfZoomPanMax: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
4194
|
+
readonly kfZoomPanDoubleTap: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
4195
|
+
readonly kfZoomPanSwipeEnabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
4196
|
+
readonly kfZoomPanNatural: _angular_core.InputSignal<ZoomPanSize | null>;
|
|
4197
|
+
readonly kfZoomPanDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
4198
|
+
readonly kfZoomPanTarget: _angular_core.InputSignal<string>;
|
|
4199
|
+
/** Deslizar con un dedo estando en «Ajustar»: `next` hacia la izquierda, `prev` hacia la derecha. */
|
|
4200
|
+
readonly kfZoomPanSwipe: _angular_core.OutputEmitterRef<ZoomPanSwipe>;
|
|
4201
|
+
/** Escala actual relativa a «Ajustar» (el mismo modelo que `kfZoomPanZoom`). */
|
|
4202
|
+
readonly zoom: _angular_core.ModelSignal<number>;
|
|
4203
|
+
/** Giro actual (el mismo modelo que `kfZoomPanRotation`). */
|
|
4204
|
+
readonly rotation: _angular_core.ModelSignal<ZoomPanRotation>;
|
|
4205
|
+
private readonly maxZoom;
|
|
4206
|
+
private readonly doubleTapZoom;
|
|
4207
|
+
private readonly swipeNavigation;
|
|
4208
|
+
private readonly naturalSize;
|
|
4209
|
+
protected readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
4210
|
+
private readonly target;
|
|
4211
|
+
private readonly host;
|
|
4212
|
+
private readonly destroyRef;
|
|
4213
|
+
private readonly stage;
|
|
4214
|
+
private readonly pan;
|
|
4215
|
+
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
4216
|
+
private readonly pointers;
|
|
4217
|
+
private drag;
|
|
4218
|
+
private pinch;
|
|
4219
|
+
private lastTap;
|
|
4220
|
+
private animate;
|
|
4221
|
+
private readonly geometry;
|
|
4222
|
+
private readonly limit;
|
|
4223
|
+
/** Porcentaje real sobre el tamaño natural (100 = un píxel por píxel); `null` sin medidas. */
|
|
4224
|
+
readonly percent: _angular_core.Signal<number | null>;
|
|
4225
|
+
/** Hay más contenido que escenario: el arrastre tiene efecto. */
|
|
4226
|
+
readonly pannable: _angular_core.Signal<boolean>;
|
|
4227
|
+
readonly mode: _angular_core.Signal<ZoomPanMode>;
|
|
4228
|
+
readonly canZoomIn: _angular_core.Signal<boolean>;
|
|
4229
|
+
readonly canZoomOut: _angular_core.Signal<boolean>;
|
|
4230
|
+
constructor();
|
|
4231
|
+
/** Vuelve a medir el escenario y a aplicar el estado (si el contenido se reemplazó sin cambiar de tamaño). */
|
|
4232
|
+
refresh(): void;
|
|
4233
|
+
/** Siguiente paso de zoom (relativo a «Ajustar»), centrado en el escenario. */
|
|
4234
|
+
zoomIn(): void;
|
|
4235
|
+
/** Paso de zoom anterior; desde el primero vuelve a «Ajustar». */
|
|
4236
|
+
zoomOut(): void;
|
|
4237
|
+
/** «Ajustar»: escala 1 y contenido centrado; el giro se conserva. */
|
|
4238
|
+
fit(): void;
|
|
4239
|
+
/** «Ajustar» y sin giro. */
|
|
4240
|
+
reset(): void;
|
|
4241
|
+
/** Lleva el contenido a un píxel por píxel (100 %), dentro de `kfZoomPanMax`. */
|
|
4242
|
+
zoomToNatural(): void;
|
|
4243
|
+
rotateBy(degrees?: 90 | -90): void;
|
|
4244
|
+
/** Cambia el zoom manteniendo bajo `(clientX, clientY)` el mismo punto del contenido. */
|
|
4245
|
+
zoomTo(next: number, clientX?: number, clientY?: number): void;
|
|
4246
|
+
private animated;
|
|
4247
|
+
private setZoom;
|
|
4248
|
+
private centerOnScreen;
|
|
4249
|
+
/** Distancia máxima del contenido al centro, en cada eje, para el zoom dado. */
|
|
4250
|
+
private bounds;
|
|
4251
|
+
private setPan;
|
|
4252
|
+
private connect;
|
|
4253
|
+
private measure;
|
|
4254
|
+
private apply;
|
|
4255
|
+
private readonly onPointerDown;
|
|
4256
|
+
private readonly onPointerMove;
|
|
4257
|
+
private readonly onPointerEnd;
|
|
4258
|
+
private registerTap;
|
|
4259
|
+
private readonly onWheel;
|
|
4260
|
+
private readonly onKeydown;
|
|
4261
|
+
/**
|
|
4262
|
+
* `Shift` + flechas desplaza el contenido ampliado. La directiva lo escucha en su
|
|
4263
|
+
* escenario, que no recibe foco: un contenedor que ya tiene el foco en otro
|
|
4264
|
+
* control (un visor modal) reenvía aquí el `keydown`. Devuelve `true` si lo
|
|
4265
|
+
* resolvió (y llamó a `preventDefault()`).
|
|
4266
|
+
*/
|
|
4267
|
+
panByKeyboard(event: KeyboardEvent): boolean;
|
|
4268
|
+
private distance;
|
|
4269
|
+
private middle;
|
|
4270
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZoomPanDirective, never>;
|
|
4271
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZoomPanDirective, "[kfZoomPan]", ["kfZoomPan"], { "kfZoomPanZoom": { "alias": "kfZoomPanZoom"; "required": false; "isSignal": true; }; "kfZoomPanRotation": { "alias": "kfZoomPanRotation"; "required": false; "isSignal": true; }; "kfZoomPanMax": { "alias": "kfZoomPanMax"; "required": false; "isSignal": true; }; "kfZoomPanDoubleTap": { "alias": "kfZoomPanDoubleTap"; "required": false; "isSignal": true; }; "kfZoomPanSwipeEnabled": { "alias": "kfZoomPanSwipeEnabled"; "required": false; "isSignal": true; }; "kfZoomPanNatural": { "alias": "kfZoomPanNatural"; "required": false; "isSignal": true; }; "kfZoomPanDisabled": { "alias": "kfZoomPanDisabled"; "required": false; "isSignal": true; }; "kfZoomPanTarget": { "alias": "kfZoomPanTarget"; "required": false; "isSignal": true; }; }, { "kfZoomPanZoom": "kfZoomPanZoomChange"; "kfZoomPanRotation": "kfZoomPanRotationChange"; "kfZoomPanSwipe": "kfZoomPanSwipe"; }, never, never, true, never>;
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
type MediaViewerItemType = 'image' | 'video' | 'audio' | 'pdf' | 'unsupported';
|
|
4275
|
+
/**
|
|
4276
|
+
* Estado del archivo. `blocked` y `processing` ocultan todo lo derivado de él
|
|
4277
|
+
* (miniatura, descripción y filas de «Detalles»); `loading`, `error`, `offline` y
|
|
4278
|
+
* `unsupported` solo reemplazan el contenido del escenario por el aviso.
|
|
4279
|
+
*/
|
|
4280
|
+
type MediaViewerItemStatus = 'ready' | 'loading' | 'processing' | 'error' | 'blocked' | 'offline' | 'unsupported';
|
|
4281
|
+
type MediaViewerTone = 'auto' | 'light' | 'dark';
|
|
4282
|
+
/** Procedencia del texto de la descripción: generado por IA o escrito por una persona. */
|
|
4283
|
+
type MediaViewerDescriptionSource = 'ai' | 'person';
|
|
4284
|
+
interface MediaViewerDescription {
|
|
4285
|
+
text: string;
|
|
4286
|
+
source: MediaViewerDescriptionSource;
|
|
4287
|
+
/** Línea de procedencia bajo el texto (ej. «Generada por IA a partir de la imagen.»). */
|
|
4288
|
+
note?: string;
|
|
4289
|
+
/** Con texto, ofrece un botón (ej. «Corregir») y `descriptionAction` emite el archivo. */
|
|
4290
|
+
actionLabel?: string;
|
|
4291
|
+
/** Nombre accesible del botón cuando el rótulo solo no alcanza. */
|
|
4292
|
+
actionAriaLabel?: string;
|
|
4293
|
+
/** Muestra en su lugar el slot `[kf-media-viewer-description-editor]` (el editor es del consumidor). */
|
|
4294
|
+
editing?: boolean;
|
|
4295
|
+
}
|
|
4296
|
+
/**
|
|
4297
|
+
* Una evidencia. Modelo neutro: el consumidor mapea su DTO. Un `pdf` solo se abre
|
|
4298
|
+
* si `src` es local (`blob:` o `data:application/pdf`); de otro modo se muestra
|
|
4299
|
+
* como no soportado y se ofrece la descarga.
|
|
4300
|
+
*/
|
|
4301
|
+
interface MediaViewerItem {
|
|
4302
|
+
id: string;
|
|
4303
|
+
type: MediaViewerItemType;
|
|
4304
|
+
title: string;
|
|
4305
|
+
/** Una línea bajo el título (ej. «Foto · WhatsApp»). */
|
|
4306
|
+
subtitle?: string;
|
|
4307
|
+
src?: string;
|
|
4308
|
+
/** Miniatura de la tira (imágenes y video). Un archivo bloqueado nunca la usa. */
|
|
4309
|
+
thumbnailSrc?: string;
|
|
4310
|
+
/** Póster del video. */
|
|
4311
|
+
posterSrc?: string;
|
|
4312
|
+
/** Texto alternativo de la imagen; sin él se usa `title`. */
|
|
4313
|
+
alt?: string;
|
|
4314
|
+
durationSec?: number;
|
|
4315
|
+
/** Picos 0..1 de la onda del audio; sin ellos solo se dibuja el riel. */
|
|
4316
|
+
peaks?: number[];
|
|
4317
|
+
/** Texto del enlace a la transcripción del audio (ej. «Transcripción · 6 turnos»). */
|
|
4318
|
+
transcriptLabel?: string;
|
|
4319
|
+
downloadUrl?: string;
|
|
4320
|
+
/** Enlace que copia «Copiar enlace»; sin él la acción no se ofrece. */
|
|
4321
|
+
linkUrl?: string;
|
|
4322
|
+
status?: MediaViewerItemStatus;
|
|
4323
|
+
statusTitle?: string;
|
|
4324
|
+
statusHint?: string;
|
|
4325
|
+
/** Botón del aviso de estado (ej. «Reintentar», «Solicitar acceso»). */
|
|
4326
|
+
statusActionLabel?: string;
|
|
4327
|
+
/** Descripción con su procedencia, primera fila de «Detalles». */
|
|
4328
|
+
description?: MediaViewerDescription;
|
|
4329
|
+
/** Filas de «Detalles» (enviada por, archivo, ubicación…). */
|
|
4330
|
+
details?: DescriptionItem[];
|
|
4331
|
+
}
|
|
4332
|
+
interface MediaViewerClose {
|
|
4333
|
+
index: number;
|
|
4334
|
+
item: MediaViewerItem | null;
|
|
4335
|
+
}
|
|
4336
|
+
/** Textos del visor. `{n}`, `{total}`, `{title}`, `{percent}` y `{reason}` se reemplazan. */
|
|
4337
|
+
interface MediaViewerLabels {
|
|
4338
|
+
dialog: string;
|
|
4339
|
+
close: string;
|
|
4340
|
+
closeHint: string;
|
|
4341
|
+
details: string;
|
|
4342
|
+
show: string;
|
|
4343
|
+
hide: string;
|
|
4344
|
+
showDetails: string;
|
|
4345
|
+
hideDetails: string;
|
|
4346
|
+
detailsRegion: string;
|
|
4347
|
+
detailsStatus: string;
|
|
4348
|
+
detailsWhat: string;
|
|
4349
|
+
detailsDescription: string;
|
|
4350
|
+
copyLink: string;
|
|
4351
|
+
linkCopied: string;
|
|
4352
|
+
linkNotCopied: string;
|
|
4353
|
+
download: string;
|
|
4354
|
+
downloadUnavailable: string;
|
|
4355
|
+
fullscreen: string;
|
|
4356
|
+
exitFullscreen: string;
|
|
4357
|
+
more: string;
|
|
4358
|
+
previous: string;
|
|
4359
|
+
next: string;
|
|
4360
|
+
zoomToolbar: string;
|
|
4361
|
+
zoomOut: string;
|
|
4362
|
+
zoomIn: string;
|
|
4363
|
+
fit: string;
|
|
4364
|
+
fitAt: string;
|
|
4365
|
+
rotate: string;
|
|
4366
|
+
imageViewer: string;
|
|
4367
|
+
/** Ayuda de teclado (solo para lectores de pantalla): descripción accesible del diálogo. */
|
|
4368
|
+
keyboardHelp: string;
|
|
4369
|
+
counter: string;
|
|
4370
|
+
thumbnails: string;
|
|
4371
|
+
goTo: string;
|
|
4372
|
+
announce: string;
|
|
4373
|
+
playVideo: string;
|
|
4374
|
+
videoLabel: string;
|
|
4375
|
+
empty: string;
|
|
4376
|
+
noPreview: string;
|
|
4377
|
+
noPreviewHint: string;
|
|
4378
|
+
statuses: Record<Exclude<MediaViewerItemStatus, 'ready'>, {
|
|
4379
|
+
title: string;
|
|
4380
|
+
hint: string;
|
|
4381
|
+
action?: string;
|
|
4382
|
+
}>;
|
|
4383
|
+
}
|
|
4384
|
+
declare const MEDIA_VIEWER_LABELS: MediaViewerLabels;
|
|
4385
|
+
|
|
4386
|
+
/** Textos parciales: cada clave que falta toma el valor por defecto (`statuses` se mezcla por estado). */
|
|
4387
|
+
type MediaViewerLabelsInput = Partial<Omit<MediaViewerLabels, 'statuses'>> & {
|
|
4388
|
+
statuses?: Partial<MediaViewerLabels['statuses']>;
|
|
4389
|
+
};
|
|
4390
|
+
interface StripEntry {
|
|
4391
|
+
readonly item: MediaViewerItem;
|
|
4392
|
+
readonly index: number;
|
|
4393
|
+
}
|
|
4394
|
+
/**
|
|
4395
|
+
* Visor modal de evidencias: fotos con zoom, giro y arrastre, audio, video y
|
|
4396
|
+
* documento (PDF), con navegación entre ellas, tira de miniaturas y panel de
|
|
4397
|
+
* «Detalles». Es un componente nuevo: `kf-content-viewer` (un solo archivo) no cambia.
|
|
4398
|
+
*
|
|
4399
|
+
* Se apoya en el `<dialog>` nativo (`showModal()`): el fondo queda inerte y el
|
|
4400
|
+
* navegador resuelve el top-layer; el foco queda atrapado en el visor, empieza
|
|
4401
|
+
* en «Cerrar» y vuelve al elemento que lo abrió. `open`, `index` y
|
|
4402
|
+
* `detailsOpen` son two-way. Con `dismissible` en `false` solo cierra el
|
|
4403
|
+
* consumidor.
|
|
4404
|
+
*
|
|
4405
|
+
* Entrada: `items`, un modelo neutro (`MediaViewerItem`) que el consumidor arma
|
|
4406
|
+
* desde su DTO. El tono (`tone`) es claro con los colores del tema; `dark`
|
|
4407
|
+
* (o `auto`, que copia `data-tone` del ancestro más cercano o del
|
|
4408
|
+
* `kf-portal-header` al abrir) lo pasa a oscuro. El panel «Detalles» siempre es
|
|
4409
|
+
* la superficie del tema.
|
|
4410
|
+
*
|
|
4411
|
+
* Tipos: `image` (`kf-image` con `kfZoomPan`; pellizco, doble toque, `Ctrl` +
|
|
4412
|
+
* rueda y arrastre), `video` (`<video preload="metadata">` con controles nativos
|
|
4413
|
+
* tras pulsar el póster), `audio` (`kf-audio-player variant="stage"`; `K`, `J` y
|
|
4414
|
+
* `L` activos) y `pdf` (`<iframe>` del visor nativo del navegador, solo para
|
|
4415
|
+
* `blob:` o `data:application/pdf`: no hay páginas con ←/→, esas teclas cambian
|
|
4416
|
+
* de evidencia). Un archivo con `status` distinto de `ready` se reemplaza por su
|
|
4417
|
+
* aviso; con `blocked` o `processing` además nada derivado de él se muestra.
|
|
4418
|
+
*
|
|
4419
|
+
* Teclado: ←/→ y Inicio/Fin entre evidencias (sin vuelta circular), `+`, `−` y
|
|
4420
|
+
* `0` (zoom y «Ajustar»), `R` (girar), `I` (Detalles), `F` (pantalla completa),
|
|
4421
|
+
* `Shift` + flechas (desplazar con zoom), `Esc` (con un menú abierto cierra solo
|
|
4422
|
+
* el menú). Los avisos, el menú y la región `aria-live` viven dentro del diálogo.
|
|
4423
|
+
*
|
|
4424
|
+
* Slots: `[kf-media-viewer-details]` (contenido extra de la tarjeta de
|
|
4425
|
+
* «Detalles»), `[kf-media-viewer-details-actions]` (pie fijo de la tarjeta),
|
|
4426
|
+
* `[kf-media-viewer-description-editor]` (editor que reemplaza el texto cuando
|
|
4427
|
+
* `description.editing`) y `[kf-media-viewer-actions]` (botones extra en el
|
|
4428
|
+
* encabezado, ocultos bajo 37,5 rem de ancho). Con `blocked` o `processing` los
|
|
4429
|
+
* slots de «Detalles» no se muestran.
|
|
4430
|
+
*
|
|
4431
|
+
* <kf-media-viewer [(open)]="viewerOpen" [(index)]="current" [items]="evidences()"
|
|
4432
|
+
* (closed)="focusEvidence($event.index)" />
|
|
4433
|
+
*/
|
|
4434
|
+
declare class MediaViewer {
|
|
4435
|
+
readonly items: _angular_core.InputSignal<MediaViewerItem[]>;
|
|
4436
|
+
/** Visibilidad, two-way: `[(open)]="viewerOpen"`. */
|
|
4437
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
4438
|
+
/** Evidencia mostrada, two-way. */
|
|
4439
|
+
readonly index: _angular_core.ModelSignal<number>;
|
|
4440
|
+
/** Panel «Detalles»; `undefined` (default) lo abre desde 80 rem de ancho del visor. */
|
|
4441
|
+
readonly detailsOpen: _angular_core.ModelSignal<boolean | undefined>;
|
|
4442
|
+
readonly tone: _angular_core.InputSignal<MediaViewerTone>;
|
|
4443
|
+
/** Permite cerrar con el botón, `Escape` o clic en el telón. */
|
|
4444
|
+
readonly dismissible: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
4445
|
+
readonly labels: _angular_core.InputSignal<MediaViewerLabelsInput>;
|
|
4446
|
+
/** Zoom máximo de la foto, relativo a «Ajustar» (mobile usa 5). */
|
|
4447
|
+
readonly maxZoom: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
4448
|
+
/** Zoom del doble toque o doble clic, relativo a «Ajustar» (mobile usa 2,5). */
|
|
4449
|
+
readonly doubleTapZoom: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
4450
|
+
readonly itemChange: _angular_core.OutputEmitterRef<MediaViewerItem>;
|
|
4451
|
+
readonly download: _angular_core.OutputEmitterRef<MediaViewerItem>;
|
|
4452
|
+
readonly copyLink: _angular_core.OutputEmitterRef<MediaViewerItem>;
|
|
4453
|
+
/** El botón del aviso de estado (reintentar, solicitar acceso…). */
|
|
4454
|
+
readonly statusAction: _angular_core.OutputEmitterRef<MediaViewerItem>;
|
|
4455
|
+
/** El botón de la descripción (ej. «Corregir»). */
|
|
4456
|
+
readonly descriptionAction: _angular_core.OutputEmitterRef<MediaViewerItem>;
|
|
4457
|
+
readonly transcriptClick: _angular_core.OutputEmitterRef<MediaViewerItem>;
|
|
4458
|
+
readonly closed: _angular_core.OutputEmitterRef<MediaViewerClose>;
|
|
4459
|
+
private readonly uid;
|
|
4460
|
+
protected readonly titleId: string;
|
|
4461
|
+
protected readonly sideId: string;
|
|
4462
|
+
protected readonly helpId: string;
|
|
4463
|
+
private readonly dialog;
|
|
4464
|
+
private readonly frame;
|
|
4465
|
+
private readonly closeButton;
|
|
4466
|
+
private readonly stage;
|
|
4467
|
+
private readonly thumbs;
|
|
4468
|
+
private readonly zoomPan;
|
|
4469
|
+
private readonly image;
|
|
4470
|
+
private readonly host;
|
|
4471
|
+
private readonly document;
|
|
4472
|
+
private readonly destroyRef;
|
|
4473
|
+
private readonly overlayContainer;
|
|
4474
|
+
private readonly focusTrapFactory;
|
|
4475
|
+
private readonly sanitizer;
|
|
4476
|
+
private focusTrap;
|
|
4477
|
+
private opener;
|
|
4478
|
+
private wasOpen;
|
|
4479
|
+
private backdropDown;
|
|
4480
|
+
private noticeTimer;
|
|
4481
|
+
private previousOverflow;
|
|
4482
|
+
private rootFontSize;
|
|
4483
|
+
private readonly autoTone;
|
|
4484
|
+
private readonly frameWidth;
|
|
4485
|
+
private readonly failedMedia;
|
|
4486
|
+
private readonly reloadKey;
|
|
4487
|
+
protected readonly reloadCount: _angular_core.Signal<number>;
|
|
4488
|
+
private readonly startedVideo;
|
|
4489
|
+
protected readonly moreBefore: _angular_core.WritableSignal<number>;
|
|
4490
|
+
protected readonly moreAfter: _angular_core.WritableSignal<number>;
|
|
4491
|
+
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
4492
|
+
protected readonly zoomAnnouncement: _angular_core.WritableSignal<string>;
|
|
4493
|
+
protected readonly notice: _angular_core.WritableSignal<string | null>;
|
|
4494
|
+
protected readonly toolbarHeight: _angular_core.WritableSignal<number>;
|
|
4495
|
+
protected readonly inFullscreen: _angular_core.WritableSignal<boolean>;
|
|
4496
|
+
protected readonly canFullscreen: _angular_core.WritableSignal<boolean>;
|
|
4497
|
+
protected readonly text: _angular_core.Signal<MediaViewerLabels>;
|
|
4498
|
+
protected readonly effectiveTone: _angular_core.Signal<"dark" | "light">;
|
|
4499
|
+
protected readonly count: _angular_core.Signal<number>;
|
|
4500
|
+
protected readonly position: _angular_core.Signal<number>;
|
|
4501
|
+
protected readonly current: _angular_core.Signal<MediaViewerItem | null>;
|
|
4502
|
+
protected readonly hasPrevious: _angular_core.Signal<boolean>;
|
|
4503
|
+
protected readonly hasNext: _angular_core.Signal<boolean>;
|
|
4504
|
+
protected readonly pdfUrl: _angular_core.Signal<SafeResourceUrl | null>;
|
|
4505
|
+
/** Estado que se muestra: el del archivo, más los que el propio visor deduce. */
|
|
4506
|
+
protected readonly status: _angular_core.Signal<MediaViewerItemStatus>;
|
|
4507
|
+
protected readonly concealed: _angular_core.Signal<boolean>;
|
|
4508
|
+
protected readonly statusInfo: _angular_core.Signal<{
|
|
4509
|
+
status: "error" | "offline" | "loading" | "processing" | "blocked" | "unsupported";
|
|
4510
|
+
icon: IconName;
|
|
4511
|
+
title: string;
|
|
4512
|
+
hint: string;
|
|
4513
|
+
action: string | null;
|
|
4514
|
+
downloadable: boolean;
|
|
4515
|
+
} | null>;
|
|
4516
|
+
protected readonly zoomable: _angular_core.Signal<boolean>;
|
|
4517
|
+
protected readonly imageKey: _angular_core.Signal<MediaViewerItem[]>;
|
|
4518
|
+
protected readonly naturalSize: _angular_core.Signal<ZoomPanSize | null>;
|
|
4519
|
+
protected readonly imageReady: _angular_core.Signal<boolean>;
|
|
4520
|
+
protected readonly detailsShown: _angular_core.Signal<boolean>;
|
|
4521
|
+
protected readonly canZoomIn: _angular_core.Signal<boolean>;
|
|
4522
|
+
protected readonly canZoomOut: _angular_core.Signal<boolean>;
|
|
4523
|
+
protected readonly zoomLabel: _angular_core.Signal<string>;
|
|
4524
|
+
protected readonly zoomAriaLabel: _angular_core.Signal<string>;
|
|
4525
|
+
protected readonly counterText: _angular_core.Signal<string>;
|
|
4526
|
+
protected readonly videoLabel: _angular_core.Signal<string>;
|
|
4527
|
+
protected readonly videoDuration: _angular_core.Signal<string | null>;
|
|
4528
|
+
protected readonly videoStarted: _angular_core.Signal<boolean>;
|
|
4529
|
+
protected readonly stripItems: _angular_core.Signal<StripEntry[]>;
|
|
4530
|
+
protected readonly noDownload: _angular_core.Signal<boolean>;
|
|
4531
|
+
protected readonly downloadReason: _angular_core.Signal<string>;
|
|
4532
|
+
protected readonly detailRows: _angular_core.Signal<DescriptionItem[]>;
|
|
4533
|
+
protected readonly showDescription: _angular_core.Signal<boolean>;
|
|
4534
|
+
protected readonly menuItems: _angular_core.Signal<ActionMenuItem[]>;
|
|
4535
|
+
constructor();
|
|
4536
|
+
/** Muestra la evidencia `index` (acotado al rango) y emite `itemChange` si cambió. */
|
|
4537
|
+
go(index: number): void;
|
|
4538
|
+
protected step(direction: -1 | 1): void;
|
|
4539
|
+
protected close(): void;
|
|
4540
|
+
protected toggleDetails(): void;
|
|
4541
|
+
protected onSwipe(direction: ZoomPanSwipe): void;
|
|
4542
|
+
protected onImageLoaded(): void;
|
|
4543
|
+
protected onMediaFailed(): void;
|
|
4544
|
+
protected onStatusAction(): void;
|
|
4545
|
+
protected startVideo(): void;
|
|
4546
|
+
protected zoom(action: 'in' | 'out' | 'fit'): void;
|
|
4547
|
+
protected rotate(): void;
|
|
4548
|
+
protected downloadCurrent(): void;
|
|
4549
|
+
protected copyCurrentLink(): Promise<void>;
|
|
4550
|
+
private writeClipboard;
|
|
4551
|
+
protected toggleFullscreen(): void;
|
|
4552
|
+
protected onMenuSelect(id: string): void;
|
|
4553
|
+
protected onCancel(event: Event): void;
|
|
4554
|
+
protected onNativeClose(): void;
|
|
4555
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
4556
|
+
/** Un clic cierra solo si empezó y terminó en el telón: un arrastre que termina afuera no cuenta. */
|
|
4557
|
+
protected onDialogClick(event: MouseEvent): void;
|
|
4558
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
4559
|
+
protected goToLabel(entry: StripEntry): string;
|
|
4560
|
+
protected thumbIcon(item: MediaViewerItem): IconName;
|
|
4561
|
+
/** La miniatura solo se pide si el archivo no está bloqueado y es una imagen o un video con miniatura. */
|
|
4562
|
+
protected thumbSrc(item: MediaViewerItem): string | null;
|
|
4563
|
+
protected imageAlt(item: MediaViewerItem): string;
|
|
4564
|
+
protected updateStripMore(): void;
|
|
4565
|
+
protected onReserve(height: number): void;
|
|
4566
|
+
private mediaKey;
|
|
4567
|
+
private centerCurrentThumb;
|
|
4568
|
+
private readAutoTone;
|
|
4569
|
+
private openDialog;
|
|
4570
|
+
private closeDialog;
|
|
4571
|
+
/** Una sola vez por apertura: libera el foco y el scroll, devuelve el foco y avisa con `closed`. */
|
|
4572
|
+
private finishClose;
|
|
4573
|
+
private showNotice;
|
|
4574
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MediaViewer, never>;
|
|
4575
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MediaViewer, "kf-media-viewer", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; "detailsOpen": { "alias": "detailsOpen"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "maxZoom": { "alias": "maxZoom"; "required": false; "isSignal": true; }; "doubleTapZoom": { "alias": "doubleTapZoom"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "index": "indexChange"; "detailsOpen": "detailsOpenChange"; "itemChange": "itemChange"; "download": "download"; "copyLink": "copyLink"; "statusAction": "statusAction"; "descriptionAction": "descriptionAction"; "transcriptClick": "transcriptClick"; "closed": "closed"; }, never, ["[kf-media-viewer-actions]", "[kf-media-viewer-description-editor]", "[kf-media-viewer-details]", "[kf-media-viewer-details-actions]"], true, never>;
|
|
4576
|
+
}
|
|
4577
|
+
|
|
3213
4578
|
/** Estado de avance de una etapa o hito; nunca se comunica solo con color. */
|
|
3214
4579
|
type ProgressStatus = 'done' | 'current' | 'pending';
|
|
3215
4580
|
declare const PROGRESS_STATUS: {
|
|
@@ -3479,6 +4844,57 @@ declare class NoteBlock {
|
|
|
3479
4844
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NoteBlock, "kf-note-block", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "signature": { "alias": "signature"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3480
4845
|
}
|
|
3481
4846
|
|
|
4847
|
+
/**
|
|
4848
|
+
* Selector numérico con botones − y +: reemplaza a `<input type="number">` y su
|
|
4849
|
+
* flecha nativa. El valor central es un `role="spinbutton"` con
|
|
4850
|
+
* `aria-valuenow/min/max`: ↑/↓ cambian por `step`, RePág/AvPág por 10 pasos e
|
|
4851
|
+
* Inicio/Fin llevan a los extremos. Los botones de 44 px quedan `aria-disabled`
|
|
4852
|
+
* (no `disabled`) en los extremos del rango: conservan el foco al llegar al límite.
|
|
4853
|
+
*
|
|
4854
|
+
* `label` es el nombre accesible del valor (no se ve). `itemLabel` completa los
|
|
4855
|
+
* nombres de los botones («Restar {itemLabel}»). `valueText` da el texto del
|
|
4856
|
+
* valor, visible y para `aria-valuetext` («3 un.»).
|
|
4857
|
+
*
|
|
4858
|
+
* Una región `role="status"` anuncia el valor nuevo cuando cambia con los botones
|
|
4859
|
+
* (el foco queda en ellos, no en el valor) y el límite si se intenta pasar.
|
|
4860
|
+
* `changeText`, `minText` y `maxText` son sus textos (`{label}` y `{value}`).
|
|
4861
|
+
*
|
|
4862
|
+
* <kf-number-stepper label="Cantidad de baterías" itemLabel="baterías" [(value)]="qty" />
|
|
4863
|
+
*/
|
|
4864
|
+
declare class NumberStepper {
|
|
4865
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
4866
|
+
readonly value: _angular_core.ModelSignal<number>;
|
|
4867
|
+
readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
4868
|
+
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
4869
|
+
readonly step: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
4870
|
+
readonly itemLabel: _angular_core.InputSignal<string | undefined>;
|
|
4871
|
+
readonly valueText: _angular_core.InputSignal<((value: number) => string) | undefined>;
|
|
4872
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
4873
|
+
/** Anuncio al cambiar el valor con los botones. */
|
|
4874
|
+
readonly changeText: _angular_core.InputSignal<string>;
|
|
4875
|
+
/** Anuncio al intentar bajar del mínimo. */
|
|
4876
|
+
readonly minText: _angular_core.InputSignal<string>;
|
|
4877
|
+
/** Anuncio al intentar subir del máximo. */
|
|
4878
|
+
readonly maxText: _angular_core.InputSignal<string>;
|
|
4879
|
+
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
4880
|
+
private readonly lower;
|
|
4881
|
+
private readonly upper;
|
|
4882
|
+
private readonly stepSize;
|
|
4883
|
+
protected readonly current: _angular_core.Signal<number>;
|
|
4884
|
+
protected readonly atMin: _angular_core.Signal<boolean>;
|
|
4885
|
+
protected readonly atMax: _angular_core.Signal<boolean>;
|
|
4886
|
+
protected readonly text: _angular_core.Signal<string>;
|
|
4887
|
+
protected readonly decrementLabel: _angular_core.Signal<string>;
|
|
4888
|
+
protected readonly incrementLabel: _angular_core.Signal<string>;
|
|
4889
|
+
protected change(delta: number): void;
|
|
4890
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
4891
|
+
private setValue;
|
|
4892
|
+
private clamp;
|
|
4893
|
+
private buttonLabel;
|
|
4894
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberStepper, never>;
|
|
4895
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NumberStepper, "kf-number-stepper", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "itemLabel": { "alias": "itemLabel"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "changeText": { "alias": "changeText"; "required": false; "isSignal": true; }; "minText": { "alias": "minText"; "required": false; "isSignal": true; }; "maxText": { "alias": "maxText"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
4896
|
+
}
|
|
4897
|
+
|
|
3482
4898
|
/** Opción de `kf-option-list`. `count` se muestra alineado a la derecha. */
|
|
3483
4899
|
interface OptionListOption {
|
|
3484
4900
|
value: string;
|
|
@@ -3809,6 +5225,11 @@ declare class PopoverDirective implements OnDestroy {
|
|
|
3809
5225
|
readonly kfPopoverInteractive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3810
5226
|
/** Nombre accesible del panel cuando es `interactive` (rol `dialog`). */
|
|
3811
5227
|
readonly kfPopoverLabel: _angular_core.InputSignal<string | null>;
|
|
5228
|
+
/**
|
|
5229
|
+
* Si el panel se referencia con `aria-describedby` mientras está abierto (default). En
|
|
5230
|
+
* `false` el anfitrión ya trae su propia descripción permanente con el mismo texto.
|
|
5231
|
+
*/
|
|
5232
|
+
readonly kfPopoverDescribe: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3812
5233
|
/** Emite `true` al abrirse y `false` al cerrarse. */
|
|
3813
5234
|
readonly kfPopoverOpenChange: _angular_core.OutputEmitterRef<boolean>;
|
|
3814
5235
|
private readonly host;
|
|
@@ -3886,9 +5307,12 @@ declare class PopoverDirective implements OnDestroy {
|
|
|
3886
5307
|
private positionsFor;
|
|
3887
5308
|
private positionFor;
|
|
3888
5309
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopoverDirective, never>;
|
|
3889
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopoverDirective, "[kfPopover]", ["kfPopover"], { "kfPopover": { "alias": "kfPopover"; "required": true; "isSignal": true; }; "kfPopoverPlacement": { "alias": "kfPopoverPlacement"; "required": false; "isSignal": true; }; "kfPopoverShowDelay": { "alias": "kfPopoverShowDelay"; "required": false; "isSignal": true; }; "kfPopoverHideDelay": { "alias": "kfPopoverHideDelay"; "required": false; "isSignal": true; }; "kfPopoverDisabled": { "alias": "kfPopoverDisabled"; "required": false; "isSignal": true; }; "kfPopoverInteractive": { "alias": "kfPopoverInteractive"; "required": false; "isSignal": true; }; "kfPopoverLabel": { "alias": "kfPopoverLabel"; "required": false; "isSignal": true; }; }, { "kfPopoverOpenChange": "kfPopoverOpenChange"; }, never, never, true, never>;
|
|
5310
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopoverDirective, "[kfPopover]", ["kfPopover"], { "kfPopover": { "alias": "kfPopover"; "required": true; "isSignal": true; }; "kfPopoverPlacement": { "alias": "kfPopoverPlacement"; "required": false; "isSignal": true; }; "kfPopoverShowDelay": { "alias": "kfPopoverShowDelay"; "required": false; "isSignal": true; }; "kfPopoverHideDelay": { "alias": "kfPopoverHideDelay"; "required": false; "isSignal": true; }; "kfPopoverDisabled": { "alias": "kfPopoverDisabled"; "required": false; "isSignal": true; }; "kfPopoverInteractive": { "alias": "kfPopoverInteractive"; "required": false; "isSignal": true; }; "kfPopoverLabel": { "alias": "kfPopoverLabel"; "required": false; "isSignal": true; }; "kfPopoverDescribe": { "alias": "kfPopoverDescribe"; "required": false; "isSignal": true; }; }, { "kfPopoverOpenChange": "kfPopoverOpenChange"; }, never, never, true, never>;
|
|
3890
5311
|
}
|
|
3891
5312
|
|
|
5313
|
+
/** Tono de una superficie de shell (`data-tone`): oscura o clara. Ver `tokens/tones.css`. */
|
|
5314
|
+
type SurfaceTone = 'dark' | 'light';
|
|
5315
|
+
|
|
3892
5316
|
/** Un ítem de navegación de la barra de marca. `icon` es opcional y solo se
|
|
3893
5317
|
* usa en el drawer mobile (columna, ver template) — el `<nav>` horizontal de
|
|
3894
5318
|
* escritorio se mantiene solo texto, sin ícono ni chevron. */
|
|
@@ -3958,6 +5382,13 @@ interface PortalHeaderAdminAction {
|
|
|
3958
5382
|
* </kf-portal-header>
|
|
3959
5383
|
*/
|
|
3960
5384
|
declare class PortalHeader {
|
|
5385
|
+
/**
|
|
5386
|
+
* Tono de la superficie: `dark` (default, fondo `--kf-header-bg` = azul profundo
|
|
5387
|
+
* de la marca) o `light` (fondo blanco, texto `ink`). Se refleja como
|
|
5388
|
+
* `data-tone` en el host; los colores salen de los tokens `--kf-header-*`
|
|
5389
|
+
* (`tokens/tones.css`), no del componente.
|
|
5390
|
+
*/
|
|
5391
|
+
readonly tone: _angular_core.InputSignal<SurfaceTone>;
|
|
3961
5392
|
readonly brand: _angular_core.InputSignal<string>;
|
|
3962
5393
|
/** URL del logo como imagen. Sin ella (default), se mantiene el texto de `brand`. */
|
|
3963
5394
|
readonly logoSrc: _angular_core.InputSignal<string | undefined>;
|
|
@@ -4022,7 +5453,7 @@ declare class PortalHeader {
|
|
|
4022
5453
|
*/
|
|
4023
5454
|
protected readonly thumbStyle: _angular_core.Signal<Record<string, string>>;
|
|
4024
5455
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PortalHeader, never>;
|
|
4025
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PortalHeader, "kf-portal-header", never, { "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "logoSrc": { "alias": "logoSrc"; "required": false; "isSignal": true; }; "logoAlt": { "alias": "logoAlt"; "required": false; "isSignal": true; }; "isAdmin": { "alias": "isAdmin"; "required": false; "isSignal": true; }; "adminActions": { "alias": "adminActions"; "required": false; "isSignal": true; }; "navItems": { "alias": "navItems"; "required": false; "isSignal": true; }; "userInitials": { "alias": "userInitials"; "required": true; "isSignal": true; }; "tagline": { "alias": "tagline"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": false; "isSignal": true; }; "showCart": { "alias": "showCart"; "required": false; "isSignal": true; }; "cartCount": { "alias": "cartCount"; "required": false; "isSignal": true; }; }, { "sessionClick": "sessionClick"; "cartClick": "cartClick"; }, never, ["[kf-portal-header-extra]", "[kf-portal-header-footer]"], true, never>;
|
|
5456
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PortalHeader, "kf-portal-header", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "logoSrc": { "alias": "logoSrc"; "required": false; "isSignal": true; }; "logoAlt": { "alias": "logoAlt"; "required": false; "isSignal": true; }; "isAdmin": { "alias": "isAdmin"; "required": false; "isSignal": true; }; "adminActions": { "alias": "adminActions"; "required": false; "isSignal": true; }; "navItems": { "alias": "navItems"; "required": false; "isSignal": true; }; "userInitials": { "alias": "userInitials"; "required": true; "isSignal": true; }; "tagline": { "alias": "tagline"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": false; "isSignal": true; }; "showCart": { "alias": "showCart"; "required": false; "isSignal": true; }; "cartCount": { "alias": "cartCount"; "required": false; "isSignal": true; }; }, { "sessionClick": "sessionClick"; "cartClick": "cartClick"; }, never, ["[kf-portal-header-extra]", "[kf-portal-header-footer]"], true, never>;
|
|
4026
5457
|
}
|
|
4027
5458
|
|
|
4028
5459
|
/** Mismo vocabulario que `Badge.tone`/`TextTone` (menos `info`/`service`,
|
|
@@ -4146,6 +5577,97 @@ declare class RowActions {
|
|
|
4146
5577
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RowActions, "kf-row-actions", never, { "actions": { "alias": "actions"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "inlineLimit": { "alias": "inlineLimit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4147
5578
|
}
|
|
4148
5579
|
|
|
5580
|
+
interface ScrollSpyScrollOptions {
|
|
5581
|
+
/** Enfoca el encabezado de la sección al terminar el desplazamiento. */
|
|
5582
|
+
focus?: boolean;
|
|
5583
|
+
}
|
|
5584
|
+
/**
|
|
5585
|
+
* Espía de scroll: se pone en el contenedor que desplaza y publica cuál de sus
|
|
5586
|
+
* secciones (`[data-kf-section]`, con el id como valor del atributo o como `id`)
|
|
5587
|
+
* es la activa, es decir, la última cuyo borde superior ya pasó la línea de
|
|
5588
|
+
* `kfScrollSpyOffset` (alto de lo pegado arriba). Al final del scroll queda
|
|
5589
|
+
* activa la última sección. Alimenta `kf-tabs.activeSection` y una hoja «Ir a…».
|
|
5590
|
+
*
|
|
5591
|
+
* `scrollTo(id, { focus })` (vía `exportAs: 'kfScrollSpy'`) desplaza hasta la
|
|
5592
|
+
* sección respetando `prefers-reduced-motion`, suspende el espía mientras dura el
|
|
5593
|
+
* desplazamiento (la sección elegida no oscila) y, con `focus`, enfoca su
|
|
5594
|
+
* encabezado al terminar. La sección elegida queda activa hasta que el usuario
|
|
5595
|
+
* vuelva a desplazar.
|
|
5596
|
+
*
|
|
5597
|
+
* <div class="detalle" kfScrollSpy #spy="kfScrollSpy" [kfScrollSpyOffset]="48"
|
|
5598
|
+
* (kfScrollSpyActive)="section.set($event)">
|
|
5599
|
+
* <section data-kf-section="costos"><h2>Costos</h2></section>
|
|
5600
|
+
* </div>
|
|
5601
|
+
*/
|
|
5602
|
+
declare class ScrollSpyDirective {
|
|
5603
|
+
readonly kfScrollSpySelector: _angular_core.InputSignal<string>;
|
|
5604
|
+
readonly kfScrollSpyOffset: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
5605
|
+
readonly kfScrollSpyActive: _angular_core.OutputEmitterRef<string | null>;
|
|
5606
|
+
private readonly host;
|
|
5607
|
+
private readonly document;
|
|
5608
|
+
private readonly destroyRef;
|
|
5609
|
+
private readonly activeState;
|
|
5610
|
+
/** Id de la sección activa (`null` si no hay secciones). */
|
|
5611
|
+
readonly active: _angular_core.Signal<string | null>;
|
|
5612
|
+
private programmatic;
|
|
5613
|
+
/** Acción pendiente al terminar el desplazamiento programático (enfocar el encabezado). */
|
|
5614
|
+
private afterSettle;
|
|
5615
|
+
private settleTimer;
|
|
5616
|
+
private frame;
|
|
5617
|
+
private observer;
|
|
5618
|
+
constructor();
|
|
5619
|
+
/** Desplaza el contenedor hasta la sección `id`. */
|
|
5620
|
+
scrollTo(id: string, options?: ScrollSpyScrollOptions): void;
|
|
5621
|
+
private start;
|
|
5622
|
+
private stop;
|
|
5623
|
+
private readonly onScroll;
|
|
5624
|
+
private schedule;
|
|
5625
|
+
private observeSections;
|
|
5626
|
+
private recompute;
|
|
5627
|
+
private setActive;
|
|
5628
|
+
private sections;
|
|
5629
|
+
/** Da por terminado el desplazamiento programático tras un rato sin eventos de scroll. */
|
|
5630
|
+
private armSettleTimer;
|
|
5631
|
+
private focusSection;
|
|
5632
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollSpyDirective, never>;
|
|
5633
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ScrollSpyDirective, "[kfScrollSpy]", ["kfScrollSpy"], { "kfScrollSpySelector": { "alias": "kfScrollSpySelector"; "required": false; "isSignal": true; }; "kfScrollSpyOffset": { "alias": "kfScrollSpyOffset"; "required": false; "isSignal": true; }; }, { "kfScrollSpyActive": "kfScrollSpyActive"; }, never, never, true, never>;
|
|
5634
|
+
}
|
|
5635
|
+
|
|
5636
|
+
/**
|
|
5637
|
+
* Botón «Volver arriba»: círculo de 44 px anclado abajo a la derecha del
|
|
5638
|
+
* contenedor que desplaza, que aparece tras bajar más de una pantalla.
|
|
5639
|
+
*
|
|
5640
|
+
* Va como ÚLTIMO elemento del contenido que se desplaza (después de
|
|
5641
|
+
* «Cargar más» u otro pie): el host es `position: sticky` de alto 0, así que el
|
|
5642
|
+
* botón flota sobre el borde inferior visible sin reservar espacio. Por defecto
|
|
5643
|
+
* observa el ancestro con scroll más cercano; `scroller` acepta un elemento o un
|
|
5644
|
+
* selector CSS para otro contenedor.
|
|
5645
|
+
*
|
|
5646
|
+
* Con `prefers-reduced-motion` no hay fundido ni desplazamiento suave.
|
|
5647
|
+
* `threshold` es `'screen'` (alto visible del contenedor) o píxeles.
|
|
5648
|
+
*
|
|
5649
|
+
* <div class="lista"> ... <kf-scroll-top /> </div>
|
|
5650
|
+
*/
|
|
5651
|
+
declare class ScrollTop {
|
|
5652
|
+
readonly scroller: _angular_core.InputSignal<string | HTMLElement | undefined>;
|
|
5653
|
+
readonly threshold: _angular_core.InputSignal<number | "screen">;
|
|
5654
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
5655
|
+
readonly scrolled: _angular_core.OutputEmitterRef<void>;
|
|
5656
|
+
private readonly host;
|
|
5657
|
+
private readonly document;
|
|
5658
|
+
private readonly attached;
|
|
5659
|
+
private target;
|
|
5660
|
+
protected readonly visible: _angular_core.WritableSignal<boolean>;
|
|
5661
|
+
constructor();
|
|
5662
|
+
protected goTop(): void;
|
|
5663
|
+
/** Primer control enfocable del contenedor; sin ninguno, el propio contenedor. */
|
|
5664
|
+
private focusStart;
|
|
5665
|
+
private resolveTarget;
|
|
5666
|
+
private nearestScrollable;
|
|
5667
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollTop, never>;
|
|
5668
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScrollTop, "kf-scroll-top", never, { "scroller": { "alias": "scroller"; "required": false; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "scrolled": "scrolled"; }, never, never, true, never>;
|
|
5669
|
+
}
|
|
5670
|
+
|
|
4149
5671
|
/**
|
|
4150
5672
|
* Título de sub-sección con chip de ícono, pensado para anidarse dentro de
|
|
4151
5673
|
* cards o paneles (a diferencia de `PageHeader`, que encabeza una página
|
|
@@ -4296,6 +5818,13 @@ interface SegmentedOption {
|
|
|
4296
5818
|
value: string;
|
|
4297
5819
|
label: string;
|
|
4298
5820
|
}
|
|
5821
|
+
/** `equal`: columnas iguales (default). `content`: cada opción mide lo que su texto. */
|
|
5822
|
+
type SegmentedFit = 'equal' | 'content';
|
|
5823
|
+
/**
|
|
5824
|
+
* Semántica de selección: `pressed` (default) son botones con `aria-pressed`;
|
|
5825
|
+
* `radio` es un `radiogroup` con `aria-checked` y navegación por flechas.
|
|
5826
|
+
*/
|
|
5827
|
+
type SegmentedSemantics = 'pressed' | 'radio';
|
|
4299
5828
|
/**
|
|
4300
5829
|
* Control de segmentos relleno, tipo "iOS segmented control": 2-3 opciones
|
|
4301
5830
|
* con un thumb que se desliza detrás de la opción activa.
|
|
@@ -4305,16 +5834,37 @@ interface SegmentedOption {
|
|
|
4305
5834
|
* (mismo criterio que Tabs), sin medir el DOM desde TypeScript.
|
|
4306
5835
|
*
|
|
4307
5836
|
* <kf-segmented [options]="options" [value]="value" (valueChange)="onChange($event)" />
|
|
5837
|
+
*
|
|
5838
|
+
* Las columnas son `minmax(0, 1fr)` y el texto parte palabra (`overflow-wrap`,
|
|
5839
|
+
* `hyphens`): con el texto al 200 % las opciones se encogen y no hay scroll
|
|
5840
|
+
* horizontal. `semantics="radio"` expone un `radiogroup`; `fit="content"` mide
|
|
5841
|
+
* cada opción para mover el thumb, como `kf-tabs`.
|
|
4308
5842
|
*/
|
|
4309
5843
|
declare class Segmented {
|
|
4310
5844
|
readonly options: _angular_core.InputSignal<SegmentedOption[]>;
|
|
4311
5845
|
readonly value: _angular_core.InputSignal<string>;
|
|
5846
|
+
/** Nombre accesible del control (por ejemplo «Vista»). Con él el contenedor es un `group` (o `radiogroup`). */
|
|
5847
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
5848
|
+
readonly fit: _angular_core.InputSignal<SegmentedFit>;
|
|
5849
|
+
readonly semantics: _angular_core.InputSignal<SegmentedSemantics>;
|
|
4312
5850
|
readonly valueChange: _angular_core.OutputEmitterRef<string>;
|
|
5851
|
+
protected readonly idPrefix: string;
|
|
5852
|
+
private readonly track;
|
|
5853
|
+
private readonly destroyRef;
|
|
5854
|
+
private readonly activeRect;
|
|
5855
|
+
protected readonly thumbX: _angular_core.Signal<number>;
|
|
5856
|
+
protected readonly thumbWidth: _angular_core.Signal<number>;
|
|
5857
|
+
constructor();
|
|
5858
|
+
/** Con `fit="content"` el thumb sigue a la opción activa por su posición medida. */
|
|
5859
|
+
private measure;
|
|
5860
|
+
/** Opción que entra al orden de tabulación en `radio`: la activa o, sin ninguna, la primera. */
|
|
5861
|
+
protected tabStop(value: string): boolean;
|
|
5862
|
+
protected onKeydown(event: KeyboardEvent, currentValue: string): void;
|
|
4313
5863
|
/** Índice de la opción activa; -1 si `value` no matchea ninguna opción. */
|
|
4314
5864
|
readonly selectedIndex: _angular_core.Signal<number>;
|
|
4315
5865
|
select(nextValue: string): void;
|
|
4316
5866
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Segmented, never>;
|
|
4317
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Segmented, "kf-segmented", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
5867
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Segmented, "kf-segmented", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "fit": { "alias": "fit"; "required": false; "isSignal": true; }; "semantics": { "alias": "semantics"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
4318
5868
|
}
|
|
4319
5869
|
|
|
4320
5870
|
/**
|
|
@@ -4388,10 +5938,11 @@ interface SelectOption {
|
|
|
4388
5938
|
*
|
|
4389
5939
|
* <kf-select width="fit" label="División" hideLabel [options]="divisions" [value]="division()" (valueChange)="..." />
|
|
4390
5940
|
*
|
|
4391
|
-
* `size="sm"` fija la altura del trigger en 32px (`--kf-
|
|
4392
|
-
*
|
|
4393
|
-
*
|
|
4394
|
-
*
|
|
5941
|
+
* `size="sm"` fija la altura del trigger en 32px (`--kf-control-sm`) para filas
|
|
5942
|
+
* de filtros densas, sin tocar el padding horizontal ni el `variant`. El
|
|
5943
|
+
* default (`'md'`) no cambia nada. Para otra altura puntual, declarar
|
|
5944
|
+
* `--kf-select-min-height` en el propio `kf-select` o en un ancestro; con
|
|
5945
|
+
* `data-density="touch"` el trigger llega a 44px en ambos tamaños.
|
|
4395
5946
|
*
|
|
4396
5947
|
* <kf-select size="sm" width="fit" [options]="ranges" [value]="range()" (valueChange)="..." />
|
|
4397
5948
|
*
|
|
@@ -4435,7 +5986,7 @@ declare class Select {
|
|
|
4435
5986
|
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
4436
5987
|
/** Mensaje de error con `role="alert"`, debajo del trigger. */
|
|
4437
5988
|
readonly errorMessage: _angular_core.InputSignal<string | undefined>;
|
|
4438
|
-
readonly variant: _angular_core.InputSignal<"
|
|
5989
|
+
readonly variant: _angular_core.InputSignal<"compact" | "field">;
|
|
4439
5990
|
/**
|
|
4440
5991
|
* Ancho del control. 'md' (240px) es el default histórico y preserva el
|
|
4441
5992
|
* comportamiento actual sin cambios para consumidores existentes.
|
|
@@ -4600,6 +6151,26 @@ interface SelectableCardOption {
|
|
|
4600
6151
|
value: string;
|
|
4601
6152
|
label: string;
|
|
4602
6153
|
icon?: IconName;
|
|
6154
|
+
/** Texto secundario bajo la etiqueta; se enlaza con `aria-describedby`. */
|
|
6155
|
+
description?: string;
|
|
6156
|
+
disabled?: boolean;
|
|
6157
|
+
}
|
|
6158
|
+
/** Disposición de las opciones: en columna (`list`, default) o en grilla de tarjetas verticales (`grid`). */
|
|
6159
|
+
type SelectableCardLayout = 'list' | 'grid';
|
|
6160
|
+
/**
|
|
6161
|
+
* Plantilla de la miniatura de cada opción en `layout="grid"` (por ejemplo un
|
|
6162
|
+
* `kf-layout-thumb`); recibe la opción como `$implicit`:
|
|
6163
|
+
*
|
|
6164
|
+
* <kf-selectable-card-group layout="grid" [options]="layouts" ...>
|
|
6165
|
+
* <ng-template kfSelectableCardPreview let-option>...</ng-template>
|
|
6166
|
+
* </kf-selectable-card-group>
|
|
6167
|
+
*/
|
|
6168
|
+
declare class SelectableCardPreview {
|
|
6169
|
+
readonly templateRef: TemplateRef<{
|
|
6170
|
+
$implicit: SelectableCardOption;
|
|
6171
|
+
}>;
|
|
6172
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectableCardPreview, never>;
|
|
6173
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SelectableCardPreview, "ng-template[kfSelectableCardPreview]", never, {}, {}, never, never, true, never>;
|
|
4603
6174
|
}
|
|
4604
6175
|
/**
|
|
4605
6176
|
* Radio group real (`role="radiogroup"` + `role="radio"` + `aria-checked`),
|
|
@@ -4634,13 +6205,96 @@ declare class SelectableCardGroup {
|
|
|
4634
6205
|
readonly value: _angular_core.InputSignal<string>;
|
|
4635
6206
|
/** Accesible: describe qué está eligiendo el usuario (ej. "Método de pago"). */
|
|
4636
6207
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
6208
|
+
/**
|
|
6209
|
+
* `list` (default) apila las opciones en columna; `grid` las reparte en una
|
|
6210
|
+
* grilla de tarjetas verticales (`auto-fill`, 132px mínimos) con la miniatura
|
|
6211
|
+
* arriba (`kfSelectableCardPreview`) y navegación por las cuatro flechas.
|
|
6212
|
+
*/
|
|
6213
|
+
readonly layout: _angular_core.InputSignal<SelectableCardLayout>;
|
|
6214
|
+
protected readonly preview: _angular_core.Signal<SelectableCardPreview | undefined>;
|
|
4637
6215
|
readonly valueChange: _angular_core.OutputEmitterRef<string>;
|
|
4638
6216
|
select(value: string): void;
|
|
4639
6217
|
protected onKeydown(event: KeyboardEvent, currentValue: string): void;
|
|
4640
6218
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectableCardGroup, never>;
|
|
4641
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectableCardGroup, "kf-selectable-card-group", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; }, { "valueChange": "valueChange"; },
|
|
6219
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectableCardGroup, "kf-selectable-card-group", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, ["preview"], never, true, never>;
|
|
6220
|
+
}
|
|
6221
|
+
|
|
6222
|
+
interface SignaturePadResult {
|
|
6223
|
+
blob: Blob;
|
|
6224
|
+
sizeBytes: number;
|
|
6225
|
+
width: number;
|
|
6226
|
+
height: number;
|
|
6227
|
+
mimeType: 'image/png';
|
|
6228
|
+
}
|
|
6229
|
+
/**
|
|
6230
|
+
* Firma manuscrita sobre `<canvas>` exportada a PNG. El trazo (puntero, dedo o
|
|
6231
|
+
* lápiz) toma el color de `--kf-color-ink`; los puntos se guardan normalizados,
|
|
6232
|
+
* así que la firma sobrevive a un cambio de tamaño y se exporta a cualquier
|
|
6233
|
+
* ancho. `signed` emite el PNG (con fondo blanco) al terminar cada trazo, o
|
|
6234
|
+
* `null` al borrar. Si supera `maxBytes` se reexporta a menor ancho hasta
|
|
6235
|
+
* cumplirlo (nunca baja de 120 px).
|
|
6236
|
+
*
|
|
6237
|
+
* Nativo: `<canvas>` es la única forma de capturar el trazo continuo. No es
|
|
6238
|
+
* operable por teclado: un firmante que no pueda dibujar necesita una
|
|
6239
|
+
* alternativa que pone quien consume (por ejemplo nombre y cargo en un
|
|
6240
|
+
* `kf-input`). El lienzo es `role="img"` con el nombre de `label`.
|
|
6241
|
+
*
|
|
6242
|
+
* <kf-signature-pad label="Firma del cliente" (signed)="onSigned($event)" />
|
|
6243
|
+
*/
|
|
6244
|
+
declare class SignaturePad {
|
|
6245
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
6246
|
+
/** Alto del lienzo en píxeles CSS. */
|
|
6247
|
+
readonly height: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
6248
|
+
readonly maxBytes: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
6249
|
+
readonly exportWidth: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
6250
|
+
readonly helpText: _angular_core.InputSignal<string>;
|
|
6251
|
+
readonly signedText: _angular_core.InputSignal<string>;
|
|
6252
|
+
readonly clearLabel: _angular_core.InputSignal<string>;
|
|
6253
|
+
/** Anuncio (región `role="status"`) al borrar la firma; al terminar el primer trazo se anuncia `signedText`. */
|
|
6254
|
+
readonly clearedText: _angular_core.InputSignal<string>;
|
|
6255
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6256
|
+
readonly signed: _angular_core.OutputEmitterRef<SignaturePadResult | null>;
|
|
6257
|
+
private readonly canvas;
|
|
6258
|
+
private readonly destroyRef;
|
|
6259
|
+
private strokes;
|
|
6260
|
+
private current;
|
|
6261
|
+
/** Se incrementa con cada cambio para descartar exportaciones que llegan tarde. */
|
|
6262
|
+
private revision;
|
|
6263
|
+
protected readonly hasInk: _angular_core.WritableSignal<boolean>;
|
|
6264
|
+
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
6265
|
+
protected readonly accessibleName: _angular_core.Signal<string>;
|
|
6266
|
+
constructor();
|
|
6267
|
+
isEmpty(): boolean;
|
|
6268
|
+
clear(): void;
|
|
6269
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
6270
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
6271
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
6272
|
+
/** Un puntero sintético (o ya soltado) no se puede capturar: el trazo sigue igual. */
|
|
6273
|
+
private capture;
|
|
6274
|
+
private emitSigned;
|
|
6275
|
+
private toPoint;
|
|
6276
|
+
/** Ajusta la resolución del lienzo a su tamaño CSS y a la densidad de la pantalla. */
|
|
6277
|
+
private fitCanvas;
|
|
6278
|
+
private redraw;
|
|
6279
|
+
private strokeColor;
|
|
6280
|
+
private paint;
|
|
6281
|
+
private exportPng;
|
|
6282
|
+
private renderPng;
|
|
6283
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SignaturePad, never>;
|
|
6284
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SignaturePad, "kf-signature-pad", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxBytes": { "alias": "maxBytes"; "required": false; "isSignal": true; }; "exportWidth": { "alias": "exportWidth"; "required": false; "isSignal": true; }; "helpText": { "alias": "helpText"; "required": false; "isSignal": true; }; "signedText": { "alias": "signedText"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "clearedText": { "alias": "clearedText"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "signed": "signed"; }, never, never, true, never>;
|
|
4642
6285
|
}
|
|
4643
6286
|
|
|
6287
|
+
/**
|
|
6288
|
+
* Insignia de un ítem de navegación. Expandido es una píldora con `count` a la
|
|
6289
|
+
* derecha; colapsado es un punto sobre el ícono. `label` es el texto para
|
|
6290
|
+
* lectores de pantalla (por ejemplo «3 sin leer») y lo aporta el consumidor.
|
|
6291
|
+
* Sin `tone` es `error`.
|
|
6292
|
+
*/
|
|
6293
|
+
interface SidebarNavItemBadge {
|
|
6294
|
+
count: number;
|
|
6295
|
+
tone?: 'error' | 'warn';
|
|
6296
|
+
label?: string;
|
|
6297
|
+
}
|
|
4644
6298
|
/** Contrato de datos de `kf-sidebar-shell.navItems`. `icon` es requerido:
|
|
4645
6299
|
* en el sidebar persistente el ícono es parte permanente del diseño.
|
|
4646
6300
|
* `groupLabel` opcional agrupa ítems consecutivos bajo un separador con
|
|
@@ -4653,6 +6307,7 @@ interface SidebarNavItemData {
|
|
|
4653
6307
|
href: string;
|
|
4654
6308
|
active?: boolean;
|
|
4655
6309
|
groupLabel?: string;
|
|
6310
|
+
badge?: SidebarNavItemBadge;
|
|
4656
6311
|
}
|
|
4657
6312
|
|
|
4658
6313
|
/**
|
|
@@ -4689,6 +6344,13 @@ interface SidebarNavItemData {
|
|
|
4689
6344
|
* según el viewport.
|
|
4690
6345
|
*/
|
|
4691
6346
|
declare class SidebarShell {
|
|
6347
|
+
/**
|
|
6348
|
+
* Tono de la superficie: `dark` (default, degradado de marca) o `light` (rail
|
|
6349
|
+
* blanco con la marca solo en el ítem activo). Se refleja como `data-tone` en
|
|
6350
|
+
* el host; los colores salen de los tokens `--kf-sidebar-*` y `--kf-header-*`
|
|
6351
|
+
* (`tokens/tones.css`), que el tema y el consumidor pueden ajustar.
|
|
6352
|
+
*/
|
|
6353
|
+
readonly tone: _angular_core.InputSignal<SurfaceTone>;
|
|
4692
6354
|
/** Ítems del menú del rail. */
|
|
4693
6355
|
readonly navItems: _angular_core.InputSignal<SidebarNavItemData[]>;
|
|
4694
6356
|
/**
|
|
@@ -4721,6 +6383,8 @@ declare class SidebarShell {
|
|
|
4721
6383
|
* muestra todo expandido.
|
|
4722
6384
|
*/
|
|
4723
6385
|
readonly itemsCollapsed: _angular_core.Signal<boolean>;
|
|
6386
|
+
/** Rail deslizado y cerrado (mobile): fuera del orden de tabulación y del árbol de accesibilidad. */
|
|
6387
|
+
protected readonly railHidden: _angular_core.Signal<boolean>;
|
|
4724
6388
|
/**
|
|
4725
6389
|
* Cierra el panel mobile con Escape — mismo criterio que `Drawer`: si un
|
|
4726
6390
|
* panel flotante de adentro (`kf-dropdown`, `kf-select`) ya consumió la
|
|
@@ -4730,7 +6394,7 @@ declare class SidebarShell {
|
|
|
4730
6394
|
protected onEscape(event: Event): void;
|
|
4731
6395
|
protected onNavItemClick(event: Event, item: SidebarNavItemData): void;
|
|
4732
6396
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarShell, never>;
|
|
4733
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidebarShell, "kf-sidebar-shell", never, { "navItems": { "alias": "navItems"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "mobileOpen": { "alias": "mobileOpen"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "mobileOpen": "mobileOpenChange"; "navItemClick": "navItemClick"; }, never, ["[kf-sidebar-brand]", "[kf-sidebar-brand-collapsed]", "[kf-sidebar-footer]", "[kf-sidebar-brand-mobile]"], true, never>;
|
|
6397
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidebarShell, "kf-sidebar-shell", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "navItems": { "alias": "navItems"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "mobileOpen": { "alias": "mobileOpen"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "mobileOpen": "mobileOpenChange"; "navItemClick": "navItemClick"; }, never, ["[kf-sidebar-brand]", "[kf-sidebar-brand-collapsed]", "[kf-sidebar-footer]", "[kf-sidebar-brand-mobile]"], true, never>;
|
|
4734
6398
|
}
|
|
4735
6399
|
|
|
4736
6400
|
/** Forma del placeholder. */
|
|
@@ -4759,6 +6423,147 @@ declare class Skeleton {
|
|
|
4759
6423
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Skeleton, "kf-skeleton", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4760
6424
|
}
|
|
4761
6425
|
|
|
6426
|
+
/**
|
|
6427
|
+
* Control deslizante propio (patrón APG «slider»): `div role="slider"` con
|
|
6428
|
+
* pulgar de 26 px, riel de 6 px y área táctil de 44 px con puntero grueso o
|
|
6429
|
+
* con `data-density="touch"`. No usa `<input type="range">`.
|
|
6430
|
+
*
|
|
6431
|
+
* Teclado: flechas ±`step`, RePág/AvPág ±10 pasos, Inicio/Fin. El arrastre usa
|
|
6432
|
+
* Pointer Events con captura. `label` es el nombre accesible (con `hideLabel`
|
|
6433
|
+
* deja de verse); `valueText` entrega el texto de `aria-valuetext` y el valor
|
|
6434
|
+
* visible de `showValue` (por ejemplo «1:30» o «250 m»).
|
|
6435
|
+
*
|
|
6436
|
+
* `keyStep` y `pageStep` cambian el salto de las flechas y de RePág/AvPág (por
|
|
6437
|
+
* ejemplo 5 s y 10 s en un reproductor, con `step` de 0,1 para un riel fluido).
|
|
6438
|
+
* Colores por ganchos de CSS: `--kf-slider-track`, `--kf-slider-fill`,
|
|
6439
|
+
* `--kf-slider-thumb-bg`, `--kf-slider-thumb-border` y `--kf-slider-rail-height`.
|
|
6440
|
+
*
|
|
6441
|
+
* `value` es two-way. `valueCommit` emite al soltar el puntero y tras cada
|
|
6442
|
+
* tecla: sirve para acciones costosas (buscar en un audio) que no deben correr
|
|
6443
|
+
* en cada movimiento del arrastre.
|
|
6444
|
+
*
|
|
6445
|
+
* <kf-slider label="Radio de la geocerca" [min]="10" [max]="5000" [step]="10"
|
|
6446
|
+
* [(value)]="radius" showValue [valueText]="meters" />
|
|
6447
|
+
*/
|
|
6448
|
+
declare class Slider {
|
|
6449
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
6450
|
+
readonly hideLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6451
|
+
readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
6452
|
+
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
6453
|
+
readonly step: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
6454
|
+
readonly value: _angular_core.ModelSignal<number>;
|
|
6455
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6456
|
+
readonly valueText: _angular_core.InputSignal<((value: number) => string) | undefined>;
|
|
6457
|
+
readonly showValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6458
|
+
/** Paso de las flechas; por defecto `step`. */
|
|
6459
|
+
readonly keyStep: _angular_core.InputSignal<number | undefined>;
|
|
6460
|
+
/** Paso de RePág/AvPág; por defecto 10 pasos de `step`. */
|
|
6461
|
+
readonly pageStep: _angular_core.InputSignal<number | undefined>;
|
|
6462
|
+
readonly valueCommit: _angular_core.OutputEmitterRef<number>;
|
|
6463
|
+
private readonly rail;
|
|
6464
|
+
private readonly thumb;
|
|
6465
|
+
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
6466
|
+
private readonly lower;
|
|
6467
|
+
private readonly upper;
|
|
6468
|
+
private readonly stepSize;
|
|
6469
|
+
private readonly arrowSize;
|
|
6470
|
+
private readonly pageSize;
|
|
6471
|
+
/** Valor ajustado al rango y a la grilla de `step`. */
|
|
6472
|
+
protected readonly current: _angular_core.Signal<number>;
|
|
6473
|
+
protected readonly percent: _angular_core.Signal<number>;
|
|
6474
|
+
protected readonly text: _angular_core.Signal<string>;
|
|
6475
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
6476
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
6477
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
6478
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
6479
|
+
/** Un puntero sintético (o ya soltado) no se puede capturar: el arrastre sigue igual. */
|
|
6480
|
+
private capture;
|
|
6481
|
+
private setFromPointer;
|
|
6482
|
+
private setValue;
|
|
6483
|
+
private normalize;
|
|
6484
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Slider, never>;
|
|
6485
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Slider, "kf-slider", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "keyStep": { "alias": "keyStep"; "required": false; "isSignal": true; }; "pageStep": { "alias": "pageStep"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueCommit": "valueCommit"; }, never, never, true, never>;
|
|
6486
|
+
}
|
|
6487
|
+
|
|
6488
|
+
interface SortableListLabels<T> {
|
|
6489
|
+
/** Nombre accesible del asa de arrastre de un ítem. */
|
|
6490
|
+
handle: (item: T) => string;
|
|
6491
|
+
up: (item: T) => string;
|
|
6492
|
+
down: (item: T) => string;
|
|
6493
|
+
/** Anuncio en vivo tras mover un ítem (posición 1-based). */
|
|
6494
|
+
moved: (item: T, position: number, total: number) => string;
|
|
6495
|
+
}
|
|
6496
|
+
interface SortableListReorder<T> {
|
|
6497
|
+
id: string;
|
|
6498
|
+
from: number;
|
|
6499
|
+
to: number;
|
|
6500
|
+
/** Lista ya reordenada: el consumidor decide si la adopta y si la persiste. */
|
|
6501
|
+
items: T[];
|
|
6502
|
+
}
|
|
6503
|
+
interface SortableItemContext<T> {
|
|
6504
|
+
$implicit: T;
|
|
6505
|
+
index: number;
|
|
6506
|
+
}
|
|
6507
|
+
/** Plantilla de cada ítem: `<ng-template kfSortableItem let-item let-index="index">`. */
|
|
6508
|
+
declare class SortableItem {
|
|
6509
|
+
readonly template: TemplateRef<SortableItemContext<unknown>>;
|
|
6510
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SortableItem, never>;
|
|
6511
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SortableItem, "ng-template[kfSortableItem]", never, {}, {}, never, never, true, never>;
|
|
6512
|
+
}
|
|
6513
|
+
/**
|
|
6514
|
+
* Lista reordenable con alternativas al arrastre (WCAG 2.5.7): asa de arrastre,
|
|
6515
|
+
* botones ▲▼ y teclado (`Alt` + ↑/↓ sobre el asa). Se apoya en
|
|
6516
|
+
* `@angular/cdk/drag-drop`, que también responde al toque. Soltar **inserta** el
|
|
6517
|
+
* ítem en la nueva posición.
|
|
6518
|
+
*
|
|
6519
|
+
* La lista no se modifica sola: `reorder` entrega la lista nueva y quien consume
|
|
6520
|
+
* decide si la adopta y si la persiste. Cada movimiento se anuncia en una región
|
|
6521
|
+
* `aria-live` y el ítem movido destella 1,2 s. Un ítem en `lockedIds` no se
|
|
6522
|
+
* mueve ni admite que otro ocupe su posición (`aria-disabled`).
|
|
6523
|
+
*
|
|
6524
|
+
* <kf-sortable-list ariaLabel="Orden de los pasos" [items]="steps()" [itemId]="id"
|
|
6525
|
+
* [lockedIds]="['intro']" (reorder)="steps.set($event.items)">
|
|
6526
|
+
* <ng-template kfSortableItem let-step>{{ step.title }}</ng-template>
|
|
6527
|
+
* </kf-sortable-list>
|
|
6528
|
+
*/
|
|
6529
|
+
declare class SortableList<T> {
|
|
6530
|
+
readonly items: _angular_core.InputSignal<T[]>;
|
|
6531
|
+
readonly itemId: _angular_core.InputSignal<(item: T) => string>;
|
|
6532
|
+
readonly lockedIds: _angular_core.InputSignal<readonly string[]>;
|
|
6533
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
6534
|
+
readonly labels: _angular_core.InputSignal<Partial<SortableListLabels<T>>>;
|
|
6535
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6536
|
+
readonly reorder: _angular_core.OutputEmitterRef<SortableListReorder<T>>;
|
|
6537
|
+
protected readonly template: _angular_core.Signal<SortableItem | undefined>;
|
|
6538
|
+
private readonly host;
|
|
6539
|
+
private readonly injector;
|
|
6540
|
+
private readonly timers;
|
|
6541
|
+
protected readonly movedId: _angular_core.WritableSignal<string | null>;
|
|
6542
|
+
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
6543
|
+
private readonly locked;
|
|
6544
|
+
constructor();
|
|
6545
|
+
protected id(item: T): string;
|
|
6546
|
+
protected isLocked(item: T): boolean;
|
|
6547
|
+
protected canMove(index: number, delta: number): boolean;
|
|
6548
|
+
protected handleLabel(item: T): string;
|
|
6549
|
+
protected upLabel(item: T): string;
|
|
6550
|
+
protected downLabel(item: T): string;
|
|
6551
|
+
/** CDK consulta esto al arrastrar: nadie puede ocupar la posición de un ítem bloqueado. */
|
|
6552
|
+
protected readonly sortPredicate: (index: number) => boolean;
|
|
6553
|
+
protected onDrop(event: CdkDragDrop<T[]>): void;
|
|
6554
|
+
protected move(index: number, delta: number, origin: 'up' | 'down' | 'handle'): void;
|
|
6555
|
+
protected onHandleKeydown(event: KeyboardEvent, index: number): void;
|
|
6556
|
+
private apply;
|
|
6557
|
+
private defaultMoved;
|
|
6558
|
+
private flash;
|
|
6559
|
+
private announce;
|
|
6560
|
+
private later;
|
|
6561
|
+
/** Mover el nodo del DOM le quita el foco al control: se devuelve al que se usó. */
|
|
6562
|
+
private restoreFocus;
|
|
6563
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SortableList<any>, never>;
|
|
6564
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SortableList<any>, "kf-sortable-list", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "itemId": { "alias": "itemId"; "required": true; "isSignal": true; }; "lockedIds": { "alias": "lockedIds"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "reorder": "reorder"; }, ["template"], never, true, never>;
|
|
6565
|
+
}
|
|
6566
|
+
|
|
4762
6567
|
type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
4763
6568
|
/**
|
|
4764
6569
|
* Indicador de carga indeterminado: inline, dentro de un botón, o como único
|
|
@@ -5048,7 +6853,7 @@ declare class StatusNode {
|
|
|
5048
6853
|
* <kf-status-pill tone="error" dot>Fuera de servicio</kf-status-pill>
|
|
5049
6854
|
*/
|
|
5050
6855
|
declare class StatusPill {
|
|
5051
|
-
readonly tone: _angular_core.InputSignal<"
|
|
6856
|
+
readonly tone: _angular_core.InputSignal<"error" | "ok" | "warn" | "blue">;
|
|
5052
6857
|
readonly dot: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5053
6858
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StatusPill, never>;
|
|
5054
6859
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StatusPill, "kf-status-pill", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
@@ -5118,33 +6923,105 @@ declare class Switch implements ControlValueAccessor {
|
|
|
5118
6923
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Switch, "kf-switch", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, never, true, never>;
|
|
5119
6924
|
}
|
|
5120
6925
|
|
|
6926
|
+
/** Urgencia de un contador: `warn` (ámbar) o `error` (rojo). Siempre lleva ícono además del color. */
|
|
6927
|
+
type TabUrgency = 'warn' | 'error';
|
|
6928
|
+
/** Sección de una pestaña, ofrecida en el panel «Ir a…» de la pestaña activa. */
|
|
6929
|
+
interface TabSection {
|
|
6930
|
+
id: string;
|
|
6931
|
+
label: string;
|
|
6932
|
+
icon?: IconName;
|
|
6933
|
+
count?: number | string;
|
|
6934
|
+
urgency?: TabUrgency;
|
|
6935
|
+
}
|
|
5121
6936
|
interface TabOption {
|
|
5122
6937
|
value: string;
|
|
5123
6938
|
label: string;
|
|
5124
6939
|
icon?: IconName;
|
|
6940
|
+
/** Etiqueta corta, usada cuando la barra mide menos de 30rem. El nombre accesible sigue siendo `label`. */
|
|
6941
|
+
shortLabel?: string;
|
|
6942
|
+
/** Contador tras la etiqueta (cifras tabulares); se atenúa en 0. */
|
|
6943
|
+
count?: number | string;
|
|
6944
|
+
urgency?: TabUrgency;
|
|
6945
|
+
/** Texto para lectores de pantalla de la urgencia (por ejemplo «vencido»); lo aporta el consumidor. */
|
|
6946
|
+
urgencyLabel?: string;
|
|
6947
|
+
disabled?: boolean;
|
|
6948
|
+
/** Con secciones, la pestaña activa muestra un chevron que abre «Ir a…». */
|
|
6949
|
+
sections?: TabSection[];
|
|
5125
6950
|
}
|
|
6951
|
+
/** Evento de `sectionSelect`: la sección elegida y la pestaña activa que la contiene. */
|
|
6952
|
+
interface TabSectionSelect {
|
|
6953
|
+
tab: string;
|
|
6954
|
+
section: string;
|
|
6955
|
+
}
|
|
6956
|
+
/** Cómo se comporta la barra cuando no caben las pestañas: sin cambio (`scroll`) o menú «Más» (`more`). */
|
|
6957
|
+
type TabsOverflow = 'scroll' | 'more';
|
|
5126
6958
|
/**
|
|
5127
6959
|
* Barra de tabs subrayada: un indicador se desliza hasta la pestaña activa.
|
|
5128
6960
|
* La posición se mide (`offsetLeft`/`offsetWidth`) después de cada render,
|
|
5129
6961
|
* ya que las pestañas tienen ancho de contenido variable.
|
|
5130
6962
|
*
|
|
5131
6963
|
* <kf-tabs [options]="tabs" [value]="active" (valueChange)="active = $event" />
|
|
6964
|
+
*
|
|
6965
|
+
* Con `overflow="more"` las pestañas que no caben (medidas con `ResizeObserver`)
|
|
6966
|
+
* pasan al menú «Más»; la activa siempre queda visible. El menú «Más» y el
|
|
6967
|
+
* chevron «Ir a…» son hermanos del `role="tablist"`, nunca hijos.
|
|
5132
6968
|
*/
|
|
5133
6969
|
declare class Tabs {
|
|
5134
6970
|
readonly options: _angular_core.InputSignal<TabOption[]>;
|
|
5135
6971
|
readonly value: _angular_core.InputSignal<string>;
|
|
6972
|
+
/** Nombre accesible de la barra (`aria-label` del `tablist`). */
|
|
6973
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
6974
|
+
/** `scroll` (default) no toca las pestañas que no caben; `more` las pasa al menú «Más». */
|
|
6975
|
+
readonly overflow: _angular_core.InputSignal<TabsOverflow>;
|
|
6976
|
+
/** Texto del botón del menú de desborde (`overflow="more"`). */
|
|
6977
|
+
readonly moreLabel: _angular_core.InputSignal<string>;
|
|
6978
|
+
/** Texto del panel de secciones de la pestaña activa. */
|
|
6979
|
+
readonly sectionsLabel: _angular_core.InputSignal<string>;
|
|
6980
|
+
/** Sección actual dentro de la pestaña activa, marcada en el panel «Ir a…». */
|
|
6981
|
+
readonly activeSection: _angular_core.InputSignal<string | null>;
|
|
5136
6982
|
readonly valueChange: _angular_core.OutputEmitterRef<string>;
|
|
6983
|
+
/** Se emite al elegir una sección en «Ir a…». */
|
|
6984
|
+
readonly sectionSelect: _angular_core.OutputEmitterRef<TabSectionSelect>;
|
|
6985
|
+
private readonly bar;
|
|
5137
6986
|
private readonly track;
|
|
6987
|
+
private readonly probe;
|
|
6988
|
+
private readonly moreButton;
|
|
6989
|
+
private readonly tabButtons;
|
|
5138
6990
|
private readonly destroyRef;
|
|
5139
6991
|
private readonly activeRect;
|
|
6992
|
+
/** Valores de las pestañas que no caben (solo con `overflow="more"`). */
|
|
6993
|
+
protected readonly hiddenValues: _angular_core.WritableSignal<ReadonlySet<string>>;
|
|
6994
|
+
/** Barra más angosta que 30rem: se usan las etiquetas cortas. */
|
|
6995
|
+
protected readonly compact: _angular_core.WritableSignal<boolean>;
|
|
6996
|
+
protected readonly moreOpen: _angular_core.WritableSignal<boolean>;
|
|
6997
|
+
protected readonly sectionsOpen: _angular_core.WritableSignal<boolean>;
|
|
5140
6998
|
protected readonly indicatorTransform: _angular_core.Signal<string>;
|
|
5141
6999
|
protected readonly indicatorWidth: _angular_core.Signal<number>;
|
|
7000
|
+
protected readonly hiddenOptions: _angular_core.Signal<TabOption[]>;
|
|
7001
|
+
protected readonly activeOption: _angular_core.Signal<TabOption | undefined>;
|
|
7002
|
+
protected readonly activeSections: _angular_core.Signal<TabSection[] | null>;
|
|
7003
|
+
/** Hay controles junto al `tablist` (menú «Más» o chevron de secciones). */
|
|
7004
|
+
protected readonly extras: _angular_core.Signal<boolean>;
|
|
7005
|
+
protected readonly chevronLeft: _angular_core.Signal<number>;
|
|
5142
7006
|
constructor();
|
|
7007
|
+
/** Ancho de la barra: sin controles el envoltorio no tiene caja (`display: contents`) y manda el `tablist`. */
|
|
7008
|
+
private barWidth;
|
|
5143
7009
|
private measure;
|
|
7010
|
+
/**
|
|
7011
|
+
* Reparte las pestañas entre la barra y el menú «Más»: se miden los anchos
|
|
7012
|
+
* naturales en una copia invisible (así no cambian al ocultar una) y se van
|
|
7013
|
+
* sumando en orden; la activa siempre queda dentro.
|
|
7014
|
+
*/
|
|
7015
|
+
private applyOverflow;
|
|
5144
7016
|
select(value: string): void;
|
|
7017
|
+
protected showsSections(option: TabOption): boolean;
|
|
7018
|
+
protected isZero(count: number | string): boolean;
|
|
7019
|
+
protected visibleLabel(option: TabOption): string;
|
|
7020
|
+
protected pickHidden(option: TabOption): void;
|
|
7021
|
+
protected pickSection(section: TabSection): void;
|
|
5145
7022
|
protected onKeydown(event: KeyboardEvent, currentValue: string): void;
|
|
5146
7023
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tabs, never>;
|
|
5147
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tabs, "kf-tabs", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
7024
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tabs, "kf-tabs", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "overflow": { "alias": "overflow"; "required": false; "isSignal": true; }; "moreLabel": { "alias": "moreLabel"; "required": false; "isSignal": true; }; "sectionsLabel": { "alias": "sectionsLabel"; "required": false; "isSignal": true; }; "activeSection": { "alias": "activeSection"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "sectionSelect": "sectionSelect"; }, never, never, true, never>;
|
|
5148
7025
|
}
|
|
5149
7026
|
|
|
5150
7027
|
interface FolderTabOption {
|
|
@@ -5332,6 +7209,78 @@ declare class TileGrid {
|
|
|
5332
7209
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TileGrid, "kf-tile-grid", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
5333
7210
|
}
|
|
5334
7211
|
|
|
7212
|
+
type HourCycle = 12 | 24;
|
|
7213
|
+
type DayPeriod = 'AM' | 'PM';
|
|
7214
|
+
|
|
7215
|
+
/**
|
|
7216
|
+
* Campo de hora libre: texto con máscara `hh:mm` y una lista de horas en popover.
|
|
7217
|
+
* `value` es la hora en 24 h (`HH:mm`, o `null` si el texto está vacío,
|
|
7218
|
+
* incompleto o fuera de `min`/`max`). Con `hourCycle="12"` el campo escribe
|
|
7219
|
+
* `hh:mm` y un botón alterna a. m./p. m. (también se puede teclear «a» o «p»);
|
|
7220
|
+
* los rótulos salen de `Intl` según `locale`.
|
|
7221
|
+
*
|
|
7222
|
+
* Teclado: ↑/↓ mueven la hora por `step` minutos, `Alt` + ↓ abre la lista y
|
|
7223
|
+
* `Esc` la cierra. Al salir del campo una hora a medio escribir se completa con
|
|
7224
|
+
* ceros («9» → «09:00»). No es `kf-time-slot-picker`: ese elige entre horarios
|
|
7225
|
+
* que ofrece el negocio; este admite cualquier hora de una grilla regular.
|
|
7226
|
+
*
|
|
7227
|
+
* <kf-time-field label="Inicio" [step]="15" min="08:00" max="20:00" [(value)]="start" />
|
|
7228
|
+
*/
|
|
7229
|
+
declare class TimeField {
|
|
7230
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
7231
|
+
readonly hideLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7232
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
7233
|
+
readonly hourCycle: _angular_core.InputSignalWithTransform<HourCycle, unknown>;
|
|
7234
|
+
/** Minutos entre horas de la lista y de ↑/↓. */
|
|
7235
|
+
readonly step: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
7236
|
+
readonly min: _angular_core.InputSignal<string | null>;
|
|
7237
|
+
readonly max: _angular_core.InputSignal<string | null>;
|
|
7238
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7239
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7240
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7241
|
+
readonly errorMessage: _angular_core.InputSignal<string | undefined>;
|
|
7242
|
+
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
7243
|
+
readonly locale: _angular_core.InputSignal<string>;
|
|
7244
|
+
readonly parseErrorMessage: _angular_core.InputSignal<string>;
|
|
7245
|
+
readonly rangeErrorMessage: _angular_core.InputSignal<string>;
|
|
7246
|
+
readonly openListLabel: _angular_core.InputSignal<string>;
|
|
7247
|
+
readonly periodLabel: _angular_core.InputSignal<string>;
|
|
7248
|
+
private readonly field;
|
|
7249
|
+
protected readonly fieldHost: _angular_core.Signal<ElementRef<any>>;
|
|
7250
|
+
private readonly panel;
|
|
7251
|
+
private readonly injector;
|
|
7252
|
+
protected readonly listOpen: _angular_core.WritableSignal<boolean>;
|
|
7253
|
+
protected readonly text: _angular_core.WritableSignal<string>;
|
|
7254
|
+
protected readonly period: _angular_core.WritableSignal<DayPeriod>;
|
|
7255
|
+
private readonly textError;
|
|
7256
|
+
private lastValue;
|
|
7257
|
+
private lastCycle;
|
|
7258
|
+
protected readonly periodNames: _angular_core.Signal<Record<DayPeriod, string>>;
|
|
7259
|
+
protected readonly slots: _angular_core.Signal<{
|
|
7260
|
+
value: string;
|
|
7261
|
+
label: string;
|
|
7262
|
+
}[]>;
|
|
7263
|
+
protected readonly fieldInvalid: _angular_core.Signal<boolean>;
|
|
7264
|
+
protected readonly fieldError: _angular_core.Signal<string | undefined>;
|
|
7265
|
+
constructor();
|
|
7266
|
+
protected onText(raw: string): void;
|
|
7267
|
+
protected onFocusOut(): void;
|
|
7268
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
7269
|
+
protected togglePeriod(): void;
|
|
7270
|
+
protected toggleList(): void;
|
|
7271
|
+
protected pick(value: string): void;
|
|
7272
|
+
private open;
|
|
7273
|
+
/** Escribe una hora ya válida (de ↑/↓ o de la lista) en el campo y en `value`. */
|
|
7274
|
+
private apply;
|
|
7275
|
+
/** Lee el texto escrito y actualiza `value` y el error. */
|
|
7276
|
+
private evaluate;
|
|
7277
|
+
private commit;
|
|
7278
|
+
private setText;
|
|
7279
|
+
private focusCurrent;
|
|
7280
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimeField, never>;
|
|
7281
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimeField, "kf-time-field", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "hourCycle": { "alias": "hourCycle"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "parseErrorMessage": { "alias": "parseErrorMessage"; "required": false; "isSignal": true; }; "rangeErrorMessage": { "alias": "rangeErrorMessage"; "required": false; "isSignal": true; }; "openListLabel": { "alias": "openListLabel"; "required": false; "isSignal": true; }; "periodLabel": { "alias": "periodLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
7282
|
+
}
|
|
7283
|
+
|
|
5335
7284
|
interface TimeSlot {
|
|
5336
7285
|
value: string;
|
|
5337
7286
|
/** Texto visible; por defecto, `value`. */
|
|
@@ -5623,5 +7572,5 @@ declare class ViewToggle {
|
|
|
5623
7572
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ViewToggle, "kf-view-toggle", never, { "view": { "alias": "view"; "required": true; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "tableLabel": { "alias": "tableLabel"; "required": false; "isSignal": true; }; "cardsLabel": { "alias": "cardsLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "viewChange": "viewChange"; }, never, never, true, never>;
|
|
5624
7573
|
}
|
|
5625
7574
|
|
|
5626
|
-
export { ActionTile, AdminBadge, Alert, AlertRow, Avatar, Badge, Breadcrumb, BucketProgress, Button, Calendar, Card, Carousel, CarouselSlide, Checkbox, Chip, Collapsible, ContactPopover, ContentSlot, ContentState, ContentStateLoading, ContentViewer, CursorPager, DATA_TABLE_MAX_SKELETON_ROWS, DEFAULT_MILESTONE_TIMELINE_LABELS, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, Divider, DocumentRow, Drawer, Dropdown, DropdownItem, DropdownPanel, EmptyState, EventTimeline, FeatureCard, Field, FieldLabel, FileInput, Filter, FilterChips, FolderTabs, FolderTabsPanel, Footer, FormatInputDirective, Icon, Input, JourneyStepper, LIST_TOOLBAR_HYSTERESIS, Link, ListToolbar, MetricCard, MilestoneTimeline, Modal, MultiSelect, NoteBlock, OptionList, PROGRESS_STATUS, PROGRESS_STATUS_LABEL, PageHeader, Pagination, Panel, PopoverDirective, PortalHeader, Progress, PulseDot, RowActions, SKELETON_PRESET_MAX_COUNT, SectionHeader, SectionNav, SectionNavItem, SectionNavSubsection, Segmented, Select, SelectableCardGroup, SidebarShell, Skeleton, SkeletonPreset, Spinner, StatCard, StatTile, StatusMark, StatusNode, StatusPill, Switch, TOAST_DEFAULT_DURATION_MS, Tabs, Text, Textarea, TileGrid, TimeSlotPicker, ToastHost, ToastService, TooltipDirective, ViewToggle, dataTableViewSignal, formatFileSize, resolveListToolbarMode };
|
|
5627
|
-
export type { AlertAppearance, AlertRowTone, AlertTone, AlertVariant, BreadcrumbItem, BucketProgressItem, CalendarDay, ContentStateKind, ContentStateLoad, ContentViewerType, DataTableCardRole, DataTableCellClick, DataTableColumn, DataTableDensity, DataTableItemLabel, DataTableSort, DataTableView, DividerOrientation, DocumentRowTone, DrawerRole, DrawerSide, DropdownItemTone, DropdownPanelRole, DropdownPanelVariant, EmptyStateTone, EventTimelineItem, EventTimelineTone, FileRejection, FileRejectionReason, FilterChipOption, FilterFieldChange, FilterFieldConfig, FilterFieldType, FilterValue, FolderTabOption, FooterLink, IconName, IconRotation, IconSize, InputBound, JourneyStep, JourneyStepStatus, JourneyStepperColorScheme, JourneyStepperOrientation, JourneyStepperSurface, LinkVariant, ListToolbarMode, MilestoneGroup, MilestoneItem, MilestoneTimelineLabels, ModalSize, MultiSelectOption, NoteBlockTone, OptionListOption, PageHeaderTitleSize, PaginationItem, PopoverPlacement, PortalHeaderAdminAction, PortalHeaderNavItem, ProgressSize, ProgressStatus, ProgressTone, RowAction, RowActionKind, RowActionsMode, SectionNavSubsectionData, SegmentedOption, SelectOption, SelectableCardOption, SidebarNavItemData, SkeletonPresetVariant, SkeletonVariant, SpinnerSize, StatCardBadgeTone, StatCardDensity, StatCardTone, StatTileTone, StatTileVariant, SwitchSize, TabOption, TextAs, TextTone, TextVariant, TimeSlot, ToastAction, ToastOptions, ToastPromiseMessages, ToastState, ToastTone, TooltipPosition, ViewToggleOption };
|
|
7575
|
+
export { AUDIO_PLAYER_LABELS, ActionMenu, ActionTile, AdminBadge, AiMark, AiTag, Alert, AlertRow, AudioPlayer, Avatar, Badge, Breadcrumb, BucketProgress, Button, Calendar, Card, Carousel, CarouselSlide, Checkbox, Chip, Collapsible, ConfirmDialog, ContactPopover, ContentSlot, ContentState, ContentStateLoading, ContentViewer, CursorPager, DATA_TABLE_MAX_SKELETON_ROWS, DEFAULT_MILESTONE_TIMELINE_LABELS, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, DateField, DeadlineStrip, DescriptionList, DescriptionValue, Divider, DocumentRow, Drawer, Dropdown, DropdownGroup, DropdownItem, DropdownPanel, EmptyState, EventTimeline, FeatureCard, Field, FieldLabel, Fieldset, FileInput, Filter, FilterChips, FloatingToolbar, FolderTabs, FolderTabsPanel, Footer, FormatInputDirective, Icon, Image, Input, JourneyStepper, LIST_TOOLBAR_HYSTERESIS, LayoutThumb, Link, ListToolbar, MEDIA_VIEWER_LABELS, MediaViewer, MetricCard, MilestoneTimeline, Modal, MultiSelect, NoteBlock, NumberStepper, OptionList, PROGRESS_STATUS, PROGRESS_STATUS_LABEL, PageHeader, Pagination, Panel, PopoverDirective, PortalHeader, Progress, PulseDot, RowActions, SKELETON_PRESET_MAX_COUNT, ScrollSpyDirective, ScrollTop, SectionHeader, SectionNav, SectionNavItem, SectionNavSubsection, Segmented, Select, SelectableCardGroup, SelectableCardPreview, SidebarShell, SignaturePad, Skeleton, SkeletonPreset, Slider, SortableItem, SortableList, Spinner, StatCard, StatTile, StatusMark, StatusNode, StatusPill, Switch, TOAST_DEFAULT_DURATION_MS, Tabs, Text, Textarea, TileGrid, TimeField, TimeSlotPicker, ToastHost, ToastService, TooltipDirective, ViewToggle, ZoomPanDirective, dataTableViewSignal, formatFileSize, resolveListToolbarMode };
|
|
7576
|
+
export type { ActionMenuEntry, ActionMenuGroup, ActionMenuItem, ActionMenuPresentation, AlertAppearance, AlertIconAlign, AlertRowTone, AlertTone, AlertVariant, AudioPlayerLabels, AudioPlayerLayout, AudioPlayerStatus, AudioPlayerVariant, BreadcrumbItem, BucketProgressItem, CalendarDay, ConfirmDialogResult, ConfirmDialogTone, ContentStateKind, ContentStateLoad, ContentViewerType, DataTableCardRole, DataTableCardRows, DataTableCellClick, DataTableColumn, DataTableDensity, DataTableItemLabel, DataTableSort, DataTableView, DateFieldPresentation, DeadlineItem, DescriptionItem, DescriptionListDensity, DescriptionListLayout, DividerOrientation, DocumentRowTone, DrawerRole, DrawerSheetSize, DrawerSide, DrawerSize, DropdownItemBadgeTone, DropdownItemTone, DropdownPanelRole, DropdownPanelVariant, EmptyStateTone, EventTimelineItem, EventTimelineTone, FileRejection, FileRejectionReason, FilterChipOption, FilterFieldChange, FilterFieldConfig, FilterFieldType, FilterValue, FloatingToolbarPlacement, FolderTabOption, FooterLink, IconName, IconRotation, IconSize, ImageFit, ImageNaturalSize, ImageRadius, ImageStatus, InputBound, JourneyStep, JourneyStepStatus, JourneyStepperColorScheme, JourneyStepperOrientation, JourneyStepperSurface, LayoutThumbSize, LayoutThumbTile, LayoutThumbTone, LinkVariant, ListToolbarMode, MediaViewerClose, MediaViewerDescription, MediaViewerDescriptionSource, MediaViewerItem, MediaViewerItemStatus, MediaViewerItemType, MediaViewerLabels, MediaViewerLabelsInput, MediaViewerTone, MilestoneGroup, MilestoneItem, MilestoneTimelineLabels, ModalSize, MultiSelectOption, NoteBlockTone, OptionListOption, PageHeaderTitleSize, PaginationItem, PopoverPlacement, PortalHeaderAdminAction, PortalHeaderNavItem, ProgressSize, ProgressStatus, ProgressTone, RowAction, RowActionKind, RowActionsMode, ScrollSpyScrollOptions, SectionNavSubsectionData, SegmentedFit, SegmentedOption, SegmentedSemantics, SelectOption, SelectableCardLayout, SelectableCardOption, SidebarNavItemData, SignaturePadResult, SkeletonPresetVariant, SkeletonVariant, SortableItemContext, SortableListLabels, SortableListReorder, SpinnerSize, StatCardBadgeTone, StatCardDensity, StatCardTone, StatTileTone, StatTileVariant, SurfaceTone, SwitchSize, TabOption, TabSection, TabSectionSelect, TabUrgency, TabsOverflow, TextAs, TextTone, TextVariant, TimeSlot, ToastAction, ToastOptions, ToastPromiseMessages, ToastState, ToastTone, TooltipPosition, ViewToggleOption, ZoomPanMode, ZoomPanRotation, ZoomPanSize, ZoomPanSwipe };
|