@kaufmann-lab/ui 0.1.41 → 0.1.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaufmann-lab/ui",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "Shared Angular component library for the Kaufmann frontends",
5
5
  "license": "MIT",
6
6
  "author": "Kaufmann Lab",
@@ -2513,6 +2513,19 @@ type ModalIconTone = 'danger' | 'warn' | 'info';
2513
2513
  *
2514
2514
  * <kf-modal [(open)]="open" title="¿Descartar los cambios?" icon="alert-triangle" iconTone="warn">…</kf-modal>
2515
2515
  *
2516
+ * ## Acciones junto a la X: `[kf-modal-actions]` y `closeLabel`
2517
+ * `[kf-modal-actions]` proyecta controles en el encabezado, a la izquierda del botón de cerrar (por
2518
+ * ejemplo un menú «⋯» de `kf-action-menu`), sin armar un encabezado propio. Quedan centrados con la
2519
+ * X y, si el slot está vacío, no ocupan lugar. Con `@if`, un solo elemento raíz por bloque: Angular
2520
+ * decide el slot por ese elemento. `closeLabel` es el nombre accesible del botón de
2521
+ * cerrar («Cerrar diálogo» por defecto): úsalo cuando el diálogo tiene un nombre más preciso.
2522
+ *
2523
+ * <kf-modal [(open)]="open" title="Avisos" closeLabel="Cerrar avisos">
2524
+ * <kf-action-menu kf-modal-actions iconOnly variant="ghost" size="sm" icon="more-horizontal"
2525
+ * label="Opciones de avisos" [items]="items" />
2526
+ * …
2527
+ * </kf-modal>
2528
+ *
2516
2529
  * ## Panel lateral: `panel`
2517
2530
  * Con `panel` el diálogo se presenta como un panel pegado al borde derecho, de alto completo
2518
2531
  * (`100dvh`) y esquinas rectas, para formularios de alta y edición. El encabezado y el pie quedan
@@ -2597,6 +2610,9 @@ declare class Modal {
2597
2610
  readonly icon: _angular_core.InputSignal<IconName | undefined>;
2598
2611
  /** Tono de la pastilla del ícono. */
2599
2612
  readonly iconTone: _angular_core.InputSignal<ModalIconTone>;
2613
+ /** Nombre accesible del botón de cerrar. Sin valor (o vacío) es «Cerrar diálogo». */
2614
+ readonly closeLabel: _angular_core.InputSignal<string | undefined>;
2615
+ protected readonly resolvedCloseLabel: _angular_core.Signal<string>;
2600
2616
  protected readonly titleId: string;
2601
2617
  private readonly dialog;
2602
2618
  private readonly panelRef;
@@ -2623,7 +2639,7 @@ declare class Modal {
2623
2639
  */
2624
2640
  protected onHostClick(event: MouseEvent): void;
2625
2641
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Modal, never>;
2626
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<Modal, "kf-modal", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "fullscreenOnMobile": { "alias": "fullscreenOnMobile"; "required": false; "isSignal": true; }; "panel": { "alias": "panel"; "required": false; "isSignal": true; }; "initialFocus": { "alias": "initialFocus"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconTone": { "alias": "iconTone"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["[kf-modal-meta]", "[kf-modal-toolbar]", "*", "[footer]"], true, never>;
2642
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Modal, "kf-modal", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "dividers": { "alias": "dividers"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "fullscreenOnMobile": { "alias": "fullscreenOnMobile"; "required": false; "isSignal": true; }; "panel": { "alias": "panel"; "required": false; "isSignal": true; }; "initialFocus": { "alias": "initialFocus"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconTone": { "alias": "iconTone"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["[kf-modal-meta]", "[kf-modal-actions]", "[kf-modal-toolbar]", "*", "[footer]"], true, never>;
2627
2643
  }
2628
2644
 
2629
2645
  type ConfirmDialogTone = 'primary' | 'danger';
@@ -3481,6 +3497,17 @@ type DrawerSheetWidth = 'full' | 'readable';
3481
3497
  * <div kf-drawer-footer> ...Limpiar / Ver 12 resultados... </div>
3482
3498
  * </kf-drawer>
3483
3499
  *
3500
+ * `[kf-drawer-actions]` proyecta controles en la barra de título, a la izquierda del botón de
3501
+ * cerrar (por ejemplo un menú «⋯» de `kf-action-menu`), sin armar un encabezado propio. Solo se
3502
+ * dibuja con `title`, que es lo que crea la barra; no cambia el nombre del cierre (`closeLabel`). Con
3503
+ * `@if`, un solo elemento raíz por bloque: Angular decide el slot por ese elemento.
3504
+ *
3505
+ * <kf-drawer [(open)]="open" role="dialog" side="right" title="Avisos" closeLabel="Cerrar avisos">
3506
+ * <kf-action-menu kf-drawer-actions iconOnly variant="ghost" size="sm" icon="more-horizontal"
3507
+ * label="Opciones de avisos" [items]="items" />
3508
+ * …
3509
+ * </kf-drawer>
3510
+ *
3484
3511
  * `side="bottom"` lo convierte en hoja inferior (grip, esquinas superiores
3485
3512
  * redondeadas, alto máximo 80vh) — pensado para un resumen en mobile.
3486
3513
  *
@@ -3698,7 +3725,7 @@ declare class Drawer {
3698
3725
  protected onDragCancel(): void;
3699
3726
  private getOrCreateFocusTrap;
3700
3727
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Drawer, never>;
3701
- 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; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "sheetWidth": { "alias": "sheetWidth"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "swipeToClose": { "alias": "swipeToClose"; "required": false; "isSignal": true; }; "closeOnBack": { "alias": "closeOnBack"; "required": false; "isSignal": true; }; "mountInOverlay": { "alias": "mountInOverlay"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closedAfterBack": "closedAfterBack"; "detentChange": "detentChange"; }, never, ["[kf-drawer-header]", "*", "[kf-drawer-footer]"], true, never>;
3728
+ 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; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "sheetWidth": { "alias": "sheetWidth"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "swipeToClose": { "alias": "swipeToClose"; "required": false; "isSignal": true; }; "closeOnBack": { "alias": "closeOnBack"; "required": false; "isSignal": true; }; "mountInOverlay": { "alias": "mountInOverlay"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closedAfterBack": "closedAfterBack"; "detentChange": "detentChange"; }, never, ["[kf-drawer-actions]", "[kf-drawer-header]", "*", "[kf-drawer-footer]"], true, never>;
3702
3729
  }
3703
3730
 
3704
3731
  /**
@@ -7216,8 +7243,9 @@ declare class Select {
7216
7243
  /**
7217
7244
  * Pone el asterisco rojo en la etiqueta (igual que `kf-input`) y
7218
7245
  * `aria-required="true"` en el campo de búsqueda del panel, que es el único elemento
7219
- * `role="combobox"` (el trigger es un botón y ARIA no admite `aria-required` ahí). Solo
7220
- * señaliza: la validación sigue en el formulario del consumidor.
7246
+ * `role="combobox"` (el trigger es un botón y ARIA no admite `aria-required` ahí). El trigger
7247
+ * lo comunica como descripción («Obligatorio», `aria-describedby`), también deshabilitado.
7248
+ * Solo señaliza: la validación sigue en el formulario del consumidor.
7221
7249
  */
7222
7250
  readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
7223
7251
  /** Mensaje de error con `role="alert"`, debajo del trigger. */
@@ -7269,6 +7297,7 @@ declare class Select {
7269
7297
  readonly triggerId: string;
7270
7298
  readonly listboxId: string;
7271
7299
  readonly errorId: string;
7300
+ protected readonly requiredId: string;
7272
7301
  readonly isOpen: _angular_core.WritableSignal<boolean>;
7273
7302
  readonly searchQuery: _angular_core.WritableSignal<string>;
7274
7303
  readonly activeIndex: _angular_core.WritableSignal<number>;
@@ -7283,6 +7312,8 @@ declare class Select {
7283
7312
  * nombre accesible, así que con label visible no se emite.
7284
7313
  */
7285
7314
  readonly triggerAriaLabel: _angular_core.Signal<string | null>;
7315
+ /** Descripción del trigger: «Obligatorio» con `required` y el mensaje de error, si hay. */
7316
+ protected readonly describedBy: _angular_core.Signal<string | null>;
7286
7317
  /**
7287
7318
  * Textos que `width="fit"` mide para dimensionar el trigger: el de cada
7288
7319
  * opción tal como se vería en el trigger (`shortLabel` o `label`) y el
@@ -8687,6 +8718,13 @@ interface ToastOptions {
8687
8718
  scope?: string;
8688
8719
  /** Lo retira {@link ToastService.clearNavigationScoped}, que la app llama al navegar. */
8689
8720
  clearOnNavigate?: boolean;
8721
+ /**
8722
+ * Aviso crítico: no se descarta solo (sin cuenta regresiva ni `duration`), se queda hasta que
8723
+ * alguien lo cierre y los avisos nuevos no lo desplazan ni lo retira {@link ToastService.clearNavigationScoped}.
8724
+ * Sin `tone` toma `error`. Se anuncia a lectores de pantalla como alerta (`role="alert"`). Si ya
8725
+ * hay {@link TOAST_MAX_VISIBLE} críticos visibles, espera en la cola a que se cierre uno.
8726
+ */
8727
+ critical?: boolean;
8690
8728
  }
8691
8729
  /** Messages for each leg of {@link ToastService.promise}. */
8692
8730
  interface ToastPromiseMessages<T = unknown> {
@@ -8694,7 +8732,7 @@ interface ToastPromiseMessages<T = unknown> {
8694
8732
  success?: string | ((value: T) => string);
8695
8733
  error?: string | ((error: unknown) => string);
8696
8734
  }
8697
- /** The single active toast, as rendered by `kf-toast-host`. */
8735
+ /** A toast of the stack, as rendered by `kf-toast-host`. */
8698
8736
  interface ToastState {
8699
8737
  id: number;
8700
8738
  message: string;
@@ -8705,12 +8743,16 @@ interface ToastState {
8705
8743
  key?: string;
8706
8744
  scope?: string;
8707
8745
  clearOnNavigate?: boolean;
8746
+ /** Persistente: sin cuenta regresiva, se cierra solo a mano (ver {@link ToastOptions.critical}). */
8747
+ critical: boolean;
8708
8748
  /** Veces que llegó este aviso (misma `key`) mientras estaba visible o en cola. */
8709
8749
  count: number;
8710
8750
  /** Cambia en cada refresco: el host reinicia la barra de cuenta regresiva. */
8711
8751
  revision: number;
8712
8752
  }
8713
- /** Máximo de avisos con clave en espera; al pasarlo se descarta el más antiguo. */
8753
+ /** Máximo de avisos visibles a la vez; los que no caben esperan en la cola o desplazan al más antiguo. */
8754
+ declare const TOAST_MAX_VISIBLE = 3;
8755
+ /** Máximo de avisos no críticos en espera; al pasarlo se descarta el más antiguo. Los críticos nunca se descartan. */
8714
8756
  declare const TOAST_MAX_QUEUE = 3;
8715
8757
  /**
8716
8758
  * Auto-dismiss time per tone when the caller doesn't pass `duration`. Errors and
@@ -8724,15 +8766,16 @@ declare const TOAST_DEFAULT_DURATION_MS: Readonly<Record<Exclude<ToastTone, 'loa
8724
8766
  * resuming the timer early. */
8725
8767
  type ToastPauseSource = 'hover' | 'focus';
8726
8768
  /**
8727
- * Shows one toast at a time — a new `show()` call replaces whatever is
8728
- * currently up (this mirrors a global status line, not a notification stack).
8769
+ * Pila de avisos: hasta {@link TOAST_MAX_VISIBLE} (3) visibles a la vez, el más nuevo junto a
8770
+ * la esquina. Un `show()` sin `key` ni `critical` conserva el comportamiento de siempre (una
8771
+ * línea de estado global): reemplaza al aviso sin clave que esté visible, sin apilarse.
8729
8772
  *
8730
8773
  * Avisos con `key` (opt-in, sin clave nada cambia):
8731
8774
  * - la misma clave refresca el visible (texto, temporizador, contador «×N») sin
8732
8775
  * parpadear, o la entrada en cola con esa clave;
8733
- * - una clave distinta, con otro toast con clave visible, espera en una cola de
8734
- * hasta {@link TOAST_MAX_QUEUE} avisos (deduplicada por clave) y se muestra al
8735
- * cerrarse el actual; un `show()` sin clave sigue reemplazando al visible.
8776
+ * - una clave distinta se suma a la pila mientras haya lugar; con la pila llena espera en una
8777
+ * cola de hasta {@link TOAST_MAX_QUEUE} avisos (deduplicada por clave) y se muestra al
8778
+ * cerrarse uno; un `show()` sin clave no espera: desplaza al aviso no crítico más antiguo.
8736
8779
  * - `dismiss('clave')`, `dismissAll()`, `clearScope(scope)` y
8737
8780
  * `clearNavigationScoped()` los retiran. La librería no depende del router: la
8738
8781
  * app llama a este último desde sus eventos de navegación.
@@ -8745,15 +8788,24 @@ type ToastPauseSource = 'hover' | 'focus';
8745
8788
  * toast.show('No se pudo sincronizar la foto', { tone: 'error', key: 'sync-photo', clearOnNavigate: true });
8746
8789
  * ```
8747
8790
  *
8791
+ * Avisos críticos (`critical: true`): persistentes, sin cuenta regresiva; solo se retiran al
8792
+ * cerrarlos (o con `dismiss`, `dismissAll` y `clearScope`, nunca con `clearNavigationScoped`). Con
8793
+ * la pila llena, un crítico desplaza al no crítico más antiguo; si los tres visibles son
8794
+ * críticos, espera en la cola (los críticos en espera nunca se descartan, y el host los cuenta).
8795
+ *
8796
+ * ```ts
8797
+ * toast.show('Falla de energía en la sucursal Lima', { critical: true, key: 'notice:42' });
8798
+ * ```
8799
+ *
8748
8800
  * Duration by tone (when `duration` isn't passed): `success`/`info` 2800ms,
8749
8801
  * `warning` 5000ms, `error` 8000ms (`TOAST_DEFAULT_DURATION_MS`); an explicit
8750
- * `duration` always wins. The countdown pauses while the pointer or focus is
8751
- * on the toast. Error toasts also get a larger, always-opaque close button.
8802
+ * `duration` always wins. The countdown of each toast pauses while the pointer or focus is
8803
+ * on it. Error toasts also get a larger, always-opaque close button.
8752
8804
  *
8753
8805
  * Angular has no global function that can mount UI on its own, so the
8754
8806
  * imperative `showToast(...)` of the reference design system becomes a
8755
- * root-provided service holding signal state: `ToastService.show(...)` sets
8756
- * the active toast and `ToastHost` (standalone, mounted once in the app
8807
+ * root-provided service holding signal state: `ToastService.show(...)` adds
8808
+ * the toast to the stack and `ToastHost` (standalone, mounted once in the app
8757
8809
  * shell) renders it.
8758
8810
  *
8759
8811
  * @example
@@ -8775,45 +8827,55 @@ type ToastPauseSource = 'hover' | 'focus';
8775
8827
  * ```
8776
8828
  */
8777
8829
  declare class ToastService {
8778
- private readonly _current;
8830
+ private readonly _visible;
8779
8831
  private readonly _queue;
8780
8832
  private nextId;
8781
- private dismissTimer?;
8782
- private removeTimer?;
8783
- /** Wall-clock time the running `dismissTimer` is due to fire; used to compute how much
8784
- * time is left when {@link pause} interrupts it. */
8785
- private dismissDueAt?;
8786
- /** Time left on the auto-dismiss countdown while paused. `undefined` when no countdown
8787
- * is currently paused. */
8788
- private remainingMs?;
8789
- private readonly pauseSources;
8790
- /** The single active toast, or `null`. */
8833
+ /** Temporizadores y pausas de cada aviso visible, por `id`. */
8834
+ private readonly timers;
8835
+ /** La pila visible, del más antiguo al más nuevo (el orden en que se dibuja). */
8836
+ readonly visible: _angular_core.Signal<ToastState[]>;
8837
+ /** El aviso visible más reciente, o `null`. Con un solo aviso es «el» aviso. */
8791
8838
  readonly current: _angular_core.Signal<ToastState | null>;
8792
- /** Avisos con clave en espera, en orden de llegada. */
8839
+ /** Avisos en espera (la pila llena), en orden de llegada. */
8793
8840
  readonly queue: _angular_core.Signal<ToastState[]>;
8794
8841
  /**
8795
- * Shows a toast, replacing whatever is currently shown (sin `key`). Con `key`
8796
- * refresca, encola o muestra según la política de la clase. Returns its id
8842
+ * Shows a toast. Sin `key` ni `critical` reemplaza al aviso sin clave visible; con `key`
8843
+ * refresca, apila o encola según la política de la clase. Returns its id
8797
8844
  * (el del toast refrescado, si la clave ya existía).
8798
8845
  */
8799
8846
  show(message: string, options?: ToastOptions): number;
8800
- /** Retira todos los avisos: el visible (con su salida) y los de la cola. */
8847
+ /** Retira todos los avisos: los visibles (con su salida) y los de la cola. */
8801
8848
  dismissAll(): void;
8802
8849
  /** Retira los avisos con este `scope`, visibles o en cola. */
8803
8850
  clearScope(scope: string): void;
8804
- /** Retira los avisos con `clearOnNavigate`. La app lo llama desde sus eventos de navegación. */
8851
+ /** Retira los avisos con `clearOnNavigate`, salvo los críticos. La app lo llama desde sus eventos de navegación. */
8805
8852
  clearNavigationScoped(): void;
8806
8853
  private removeWhere;
8807
8854
  private createState;
8808
8855
  private merge;
8856
+ /**
8857
+ * Muestra `entry` si hay lugar o puede hacerlo; si no, lo deja en la cola. Sin clave ni
8858
+ * `critical` reemplaza al aviso sin clave visible (la línea de estado de siempre); un crítico y un
8859
+ * aviso sin clave, con la pila llena, desplazan al no crítico más antiguo; el resto espera.
8860
+ */
8861
+ private admit;
8862
+ /** Suma a la cola; pasado {@link TOAST_MAX_QUEUE} descarta los no críticos más antiguos. */
8863
+ private enqueue;
8809
8864
  /** Mismo toast visible con datos nuevos: reinicia el temporizador (o lo deja en pausa). */
8810
- private refreshCurrent;
8865
+ private refreshVisible;
8866
+ /** Sin cuenta regresiva: los críticos y los `loading` solo se cierran a mano o por código. */
8867
+ private isPersistent;
8811
8868
  private present;
8869
+ private timersOf;
8812
8870
  private scheduleDismiss;
8871
+ /** Quita un aviso de la pila al instante, sin animación de salida, y apaga sus temporizadores. */
8872
+ private removeNow;
8873
+ /** Sube de la cola a la pila mientras haya lugar: primero los críticos, luego por orden de llegada. */
8874
+ private fillFromQueue;
8813
8875
  /**
8814
8876
  * Pauses the auto-dismiss countdown for `id` while `source` (pointer hover or focus) is
8815
8877
  * active on it, so a user reaching for the action/dismiss button never loses the toast
8816
- * mid-interaction (WCAG 2.2.1). No-op when `id` isn't the active toast, it's leaving, or
8878
+ * mid-interaction (WCAG 2.2.1). No-op when `id` isn't visible, it's leaving, or
8817
8879
  * it has no running countdown (persistent or `loading` toasts, or already paused by
8818
8880
  * another source).
8819
8881
  */
@@ -8825,9 +8887,9 @@ declare class ToastService {
8825
8887
  resume(id: number, source: ToastPauseSource): void;
8826
8888
  /**
8827
8889
  * Starts the exit animation, then removes the toast. No-op when `id` is no
8828
- * longer the active toast, so a stale timer never kills a newer toast. Con una
8829
- * clave (`string`) retira el visible con esa clave y la entrada en cola. Al
8830
- * terminar la salida se muestra el siguiente aviso de la cola, si hay.
8890
+ * longer visible, so a stale timer never kills a newer toast. Sin argumento retira el más
8891
+ * reciente. Con una clave (`string`) retira el visible con esa clave y la entrada en cola. Al
8892
+ * terminar la salida sube a la pila el siguiente aviso de la cola, si hay.
8831
8893
  */
8832
8894
  dismiss(idOrKey?: number | string): void;
8833
8895
  /**
@@ -8840,17 +8902,30 @@ declare class ToastService {
8840
8902
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastService>;
8841
8903
  }
8842
8904
  /**
8843
- * Renders whatever `ToastService` currently holds, fixed bottom-right. Mount
8844
- * one instance in the app shell (e.g. next to the router outlet); it takes no
8845
- * inputs and re-renders itself from the service state.
8905
+ * Renders the stack that `ToastService` holds (up to {@link TOAST_MAX_VISIBLE} toasts), fixed
8906
+ * bottom-right with the newest next to the corner. Mount one instance in the app shell (e.g. next
8907
+ * to the router outlet); it takes no inputs and re-renders itself from the service state.
8908
+ *
8909
+ * Cada aviso se anuncia solo: `role="alert"` (asertivo) los de tono `error` y los críticos,
8910
+ * `role="status"` (cortés) el resto. Con críticos en espera de lugar, la pila lo dice con un
8911
+ * contador.
8846
8912
  *
8847
8913
  * <kf-toast-host />
8914
+ *
8915
+ * La pila (`.kf-toast-stack`) es la que se posiciona: un portal que quiera moverla (por ejemplo
8916
+ * arriba) cambia `inset-*` en esa clase, no en `.kf-toast`.
8848
8917
  */
8849
8918
  declare class ToastHost {
8850
8919
  private readonly toastService;
8851
- /** 0-or-1 wrapper so `@for track t.id` remounts the node on every new toast, restarting its animations. */
8920
+ /** La pila, del más antiguo al más nuevo; `@for track t.id` monta de nuevo el nodo de cada aviso nuevo y reinicia sus animaciones. */
8852
8921
  protected readonly toastList: _angular_core.Signal<ToastState[]>;
8922
+ /** Críticos que esperan lugar porque la pila está llena de críticos. */
8923
+ protected readonly waitingCritical: _angular_core.Signal<number>;
8924
+ protected waitingText(count: number): string;
8853
8925
  protected toastIcon(tone: ToastTone): IconName;
8926
+ /** Error y crítico interrumpen al lector de pantalla; el resto espera su turno. */
8927
+ protected isAlert(t: ToastState): boolean;
8928
+ protected dismissLabel(t: ToastState): string;
8854
8929
  protected dismiss(id: number): void;
8855
8930
  /** Pauses the toast's auto-dismiss timer while the pointer or keyboard focus is on it. */
8856
8931
  protected pause(t: ToastState, source: ToastPauseSource): void;
@@ -8955,5 +9030,5 @@ declare class ViewToggle {
8955
9030
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ViewToggle, "kf-view-toggle", never, { "view": { "alias": "view"; "required": true; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "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>;
8956
9031
  }
8957
9032
 
8958
- export { AUDIO_PLAYER_LABELS, ActionMenu, ActionRow, ActionTile, AdminBadge, AiMark, AiTag, Alert, AlertGroup, AlertRow, AudioPlayer, Avatar, Badge, BrandLogo, Breadcrumb, BucketProgress, Button, CUSTOM_PRESET_ID, 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, DataFreshness, DataTable, DateField, DateRangeField, DateTimeField, DeadlineStrip, DescriptionList, DescriptionValue, Divider, DocumentRow, Drawer, Dropdown, DropdownGroup, DropdownItem, DropdownPanel, EditFooter, EmptyState, EventTimeline, FeatureCard, Field, FieldLabel, Fieldset, FileInput, Filter, FilterChips, FloatingToolbar, FolderTabs, FolderTabsPanel, Footer, FormatInputDirective, Icon, Image, Input, JourneyStepper, LIST_TOOLBAR_HYSTERESIS, LayoutThumb, Link, ListGroup, ListMap, ListToolbar, MEDIA_VIEWER_LABELS, MediaViewer, MetricCard, MilestoneTimeline, Modal, MultiSelect, NoteBlock, NumberStepper, OptionList, PROGRESS_STATUS, PROGRESS_STATUS_LABEL, PageHeader, Pagination, Panel, PopoverDirective, PortalHeader, Progress, ProgressStrip, 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, TOAST_MAX_QUEUE, Tabs, Text, Textarea, TileGrid, TimeField, TimeSlotPicker, ToastHost, ToastService, TooltipDirective, ViewToggle, ZoomPanDirective, dataTableViewSignal, defaultDateRangePresets, formatDataAge, formatFileSize, resolveListToolbarMode };
9033
+ export { AUDIO_PLAYER_LABELS, ActionMenu, ActionRow, ActionTile, AdminBadge, AiMark, AiTag, Alert, AlertGroup, AlertRow, AudioPlayer, Avatar, Badge, BrandLogo, Breadcrumb, BucketProgress, Button, CUSTOM_PRESET_ID, 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, DataFreshness, DataTable, DateField, DateRangeField, DateTimeField, DeadlineStrip, DescriptionList, DescriptionValue, Divider, DocumentRow, Drawer, Dropdown, DropdownGroup, DropdownItem, DropdownPanel, EditFooter, EmptyState, EventTimeline, FeatureCard, Field, FieldLabel, Fieldset, FileInput, Filter, FilterChips, FloatingToolbar, FolderTabs, FolderTabsPanel, Footer, FormatInputDirective, Icon, Image, Input, JourneyStepper, LIST_TOOLBAR_HYSTERESIS, LayoutThumb, Link, ListGroup, ListMap, ListToolbar, MEDIA_VIEWER_LABELS, MediaViewer, MetricCard, MilestoneTimeline, Modal, MultiSelect, NoteBlock, NumberStepper, OptionList, PROGRESS_STATUS, PROGRESS_STATUS_LABEL, PageHeader, Pagination, Panel, PopoverDirective, PortalHeader, Progress, ProgressStrip, 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, TOAST_MAX_QUEUE, TOAST_MAX_VISIBLE, Tabs, Text, Textarea, TileGrid, TimeField, TimeSlotPicker, ToastHost, ToastService, TooltipDirective, ViewToggle, ZoomPanDirective, dataTableViewSignal, defaultDateRangePresets, formatDataAge, formatFileSize, resolveListToolbarMode };
8959
9034
  export type { ActionMenuEntry, ActionMenuGroup, ActionMenuItem, ActionMenuPresentation, ActionRowState, ActionRowStatusPlacement, ActionRowStatusTone, AlertAppearance, AlertGroupEntry, AlertGroupItem, AlertIconAlign, AlertRowTone, AlertTone, AlertVariant, AudioPlayerLabels, AudioPlayerLayout, AudioPlayerStatus, AudioPlayerVariant, BreadcrumbItem, BucketProgressItem, CalendarDay, ConfirmDialogIconPlacement, ConfirmDialogResult, ConfirmDialogTone, ContentStateKind, ContentStateLoad, ContentStateVariant, ContentViewerType, DataTableCardRole, DataTableCardRows, DataTableCellClick, DataTableColumn, DataTableDensity, DataTableItemLabel, DataTableSort, DataTableView, DateFieldPresentation, DateRange, DateRangeFieldPresentation, DateRangePreset, DateTimeFieldPresentation, DeadlineItem, DescriptionItem, DescriptionListDensity, DescriptionListLayout, DividerOrientation, DocumentRowTone, DrawerDetent, DrawerRole, DrawerSheetSize, DrawerSheetWidth, DrawerSide, DrawerSize, DropdownItemBadgeTone, DropdownItemTone, DropdownPanelRole, DropdownPanelVariant, EditFooterPlacement, EmptyStateTone, EmptyStateVariant, 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, ListMapView, ListToolbarMode, MediaViewerClose, MediaViewerDescription, MediaViewerDescriptionSource, MediaViewerItem, MediaViewerItemStatus, MediaViewerItemType, MediaViewerLabels, MediaViewerLabelsInput, MediaViewerTone, MilestoneGroup, MilestoneItem, MilestoneTimelineLabels, ModalIconTone, ModalSize, MultiSelectOption, NoteBlockTone, OptionListOption, PageHeaderDensity, PageHeaderLayout, PageHeaderTitleSize, PaginationItem, PopoverPlacement, PopoverTrigger, PortalHeaderAdminAction, PortalHeaderNavItem, ProgressSize, ProgressStatus, ProgressStripVariant, ProgressTone, RowAction, RowActionKind, RowActionsMode, ScrollSpyScrollOptions, SectionNavSubsectionData, SegmentedFit, SegmentedOption, SegmentedSemantics, SelectOption, SelectableCardLayout, SelectableCardOption, SidebarNavItemData, SignaturePadResult, SkeletonPresetVariant, SkeletonVariant, SortableItemContext, SortableListLabels, SortableListReorder, SortableListVariant, 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 };