@kaufmann-lab/ui 0.1.31 → 0.1.32

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.
@@ -2631,6 +2631,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
2631
2631
  * Accesibilidad: mientras está abierto, el elemento que recibe el foco
2632
2632
  * referencia el panel con `aria-describedby` (se conserva cualquier valor
2633
2633
  * previo).
2634
+ *
2635
+ * Apertura por clic (`kfPopoverTrigger="click"`): el popover se abre y se
2636
+ * cierra con un clic o toque sobre el anfitrión (Enter y Espacio sobre un
2637
+ * `<button>` ya generan ese clic) y no responde al puntero ni al foco. Se
2638
+ * cierra con Escape, con un `pointerdown` fuera del anfitrión y del panel, al
2639
+ * volver a pulsar el anfitrión y cuando el foco pasa a un elemento fuera de
2640
+ * ambos (por ejemplo, Tab desde el último control del panel, que además deja el
2641
+ * foco en el anfitrión para que Tab continúe con el siguiente elemento). Con
2642
+ * scroll y redimensionado el panel se reposiciona en vez de cerrarse. Con
2643
+ * `kfPopoverInteractive`, al abrir el foco pasa al primer control del panel y
2644
+ * al cerrar con Escape (o con `close()`) vuelve al anfitrión, solo si estaba
2645
+ * dentro del panel. El panel es un `dialog` no modal: ponle nombre con
2646
+ * `kfPopoverLabel`.
2647
+ *
2648
+ * <button [kfPopover]="detail" kfPopoverTrigger="click" kfPopoverInteractive
2649
+ * kfPopoverLabel="Detalle del total">Ver detalle</button>
2650
+ *
2651
+ * En modo `click` la directiva mantiene `aria-expanded` y `aria-controls` (id
2652
+ * del panel) y, con `kfPopoverInteractive`, `aria-haspopup="dialog"` en el
2653
+ * control real: el propio anfitrión si es enfocable o, si no, su primer
2654
+ * descendiente enfocable. Por eso funciona directamente sobre un componente que
2655
+ * envuelve un `<button>`, como `kf-stat-card` con `clickable`. Si el
2656
+ * anfitrión se desactiva (`kfPopoverDisabled`), la directiva retira esos
2657
+ * atributos para que otra vía de apertura (una hoja inferior en móvil) los
2658
+ * gobierne. No agrega `aria-describedby`.
2659
+ *
2660
+ * Control externo: `kfPopoverOpen` (con `kfPopoverOpenChange`, o
2661
+ * `[(kfPopoverOpen)]`) abre y cierra el panel desde el consumidor en cualquier
2662
+ * modo. Cuando el consumidor lo abre desde el código y el panel es interactivo,
2663
+ * el foco también pasa al panel.
2634
2664
  */
2635
2665
  class PopoverDirective {
2636
2666
  /** Contenido del popover (un `ng-template`). `null`/`undefined` = no se abre. */
@@ -2655,8 +2685,15 @@ class PopoverDirective {
2655
2685
  * `false` el anfitrión ya trae su propia descripción permanente con el mismo texto.
2656
2686
  */
2657
2687
  kfPopoverDescribe = input(true, { ...(ngDevMode ? { debugName: "kfPopoverDescribe" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2658
- /** Emite `true` al abrirse y `false` al cerrarse. */
2659
- kfPopoverOpenChange = output();
2688
+ /** Disparador: `'hover'` (default, puntero y foco de teclado) o `'click'` (clic o toque). */
2689
+ kfPopoverTrigger = input('hover', /* @ts-ignore */
2690
+ ...(ngDevMode ? [{ debugName: "kfPopoverTrigger" }] : /* istanbul ignore next */ []));
2691
+ /**
2692
+ * Estado abierto/cerrado. Léelo con `[(kfPopoverOpen)]` o `(kfPopoverOpenChange)`
2693
+ * (emite `true` al abrirse y `false` al cerrarse); escribirlo abre o cierra el panel.
2694
+ */
2695
+ kfPopoverOpen = model(false, /* @ts-ignore */
2696
+ ...(ngDevMode ? [{ debugName: "kfPopoverOpen" }] : /* istanbul ignore next */ []));
2660
2697
  host = inject(ElementRef);
2661
2698
  overlayService = inject(Overlay);
2662
2699
  viewContainerRef = inject(ViewContainerRef);
@@ -2681,6 +2718,11 @@ class PopoverDirective {
2681
2718
  openedAt = 0;
2682
2719
  teardownGlobalListeners = null;
2683
2720
  destroyed = false;
2721
+ /** `true` tras el primer render: antes no hay anfitrión resuelto ni DOM que medir. */
2722
+ ready = false;
2723
+ /** Elemento en el que se escribieron los atributos ARIA del modo `click`. */
2724
+ ariaElement = null;
2725
+ ariaHaspopupWritten = false;
2684
2726
  pointerOnHost = false;
2685
2727
  pointerOnPanel = false;
2686
2728
  focusOnHost = false;
@@ -2693,6 +2735,42 @@ class PopoverDirective {
2693
2735
  untracked(() => this.close());
2694
2736
  }
2695
2737
  });
2738
+ // Cambiar de disparador con el panel abierto lo cierra: el estado de puntero
2739
+ // y foco del modo anterior no aplica al nuevo.
2740
+ effect(() => {
2741
+ this.kfPopoverTrigger();
2742
+ untracked(() => {
2743
+ if (this.overlayRef) {
2744
+ this.close();
2745
+ }
2746
+ });
2747
+ });
2748
+ effect(() => {
2749
+ this.kfPopoverTrigger();
2750
+ this.kfPopoverDisabled();
2751
+ this.kfPopoverInteractive();
2752
+ this.openState();
2753
+ untracked(() => this.syncAria());
2754
+ });
2755
+ // Control externo: `kfPopoverOpen` abre o cierra el panel.
2756
+ effect(() => {
2757
+ const wanted = this.kfPopoverOpen();
2758
+ untracked(() => {
2759
+ if (!this.ready) {
2760
+ return;
2761
+ }
2762
+ if (wanted && !this.overlayRef) {
2763
+ this.open();
2764
+ if (!this.overlayRef) {
2765
+ // No pudo abrirse (sin plantilla o desactivado): se informa al consumidor.
2766
+ this.kfPopoverOpen.set(false);
2767
+ }
2768
+ }
2769
+ else if (!wanted && this.overlayRef) {
2770
+ this.closeNow();
2771
+ }
2772
+ });
2773
+ });
2696
2774
  // El elemento que recibe los eventos se resuelve tras el primer render: en
2697
2775
  // una vista embebida (ej. dentro de la celda de un `kf-data-table`) el
2698
2776
  // anfitrión aún no tiene a su ancestro interactivo en el DOM al construirse.
@@ -2708,6 +2786,7 @@ class PopoverDirective {
2708
2786
  ['focusin', this.onHostFocusIn],
2709
2787
  ['focusout', this.onHostFocusOut],
2710
2788
  ['keydown', this.onHostKeydown],
2789
+ ['click', this.onHostClick],
2711
2790
  ];
2712
2791
  for (const [type, listener] of listeners) {
2713
2792
  target.addEventListener(type, listener);
@@ -2717,6 +2796,14 @@ class PopoverDirective {
2717
2796
  target.removeEventListener(type, listener);
2718
2797
  }
2719
2798
  });
2799
+ this.ready = true;
2800
+ this.syncAria();
2801
+ if (this.kfPopoverOpen()) {
2802
+ this.open();
2803
+ if (!this.overlayRef) {
2804
+ this.kfPopoverOpen.set(false);
2805
+ }
2806
+ }
2720
2807
  });
2721
2808
  }
2722
2809
  ngOnDestroy() {
@@ -2724,20 +2811,47 @@ class PopoverDirective {
2724
2811
  this.clearTimers();
2725
2812
  this.dispose();
2726
2813
  }
2727
- /** Cierra el panel de inmediato, sin retardo. */
2814
+ /**
2815
+ * Cierra el panel de inmediato, sin retardo. En modo `click`, si el foco
2816
+ * estaba dentro del panel, vuelve al anfitrión.
2817
+ */
2728
2818
  close() {
2819
+ const restoreFocus = this.isClick && this.focusIsInPanel();
2820
+ this.closeNow();
2821
+ if (restoreFocus) {
2822
+ this.focusHost();
2823
+ }
2824
+ }
2825
+ get isClick() {
2826
+ return this.kfPopoverTrigger() === 'click';
2827
+ }
2828
+ closeNow() {
2729
2829
  this.clearTimers();
2730
2830
  this.dispose();
2731
2831
  }
2832
+ focusIsInPanel() {
2833
+ return this.panelElement?.contains(this.document.activeElement) ?? false;
2834
+ }
2835
+ onHostClick = () => {
2836
+ if (!this.isClick || this.kfPopoverDisabled()) {
2837
+ return;
2838
+ }
2839
+ if (this.overlayRef) {
2840
+ this.close();
2841
+ }
2842
+ else {
2843
+ this.open();
2844
+ }
2845
+ };
2732
2846
  onHostPointerEnter = (event) => {
2733
- if (event.pointerType === 'touch') {
2847
+ if (this.isClick || event.pointerType === 'touch') {
2734
2848
  return;
2735
2849
  }
2736
2850
  this.pointerOnHost = true;
2737
2851
  this.reevaluate(this.kfPopoverShowDelay());
2738
2852
  };
2739
2853
  onHostPointerLeave = (event) => {
2740
- if (event.pointerType === 'touch') {
2854
+ if (this.isClick || event.pointerType === 'touch') {
2741
2855
  return;
2742
2856
  }
2743
2857
  this.pointerOnHost = false;
@@ -2746,7 +2860,7 @@ class PopoverDirective {
2746
2860
  onHostFocusIn = (event) => {
2747
2861
  // Solo foco de teclado: un clic o un toque enfocan el botón pero no
2748
2862
  // deben abrir el panel (el clic tiene su propia acción).
2749
- if (!this.isKeyboardFocus(event.target)) {
2863
+ if (this.isClick || !this.isKeyboardFocus(event.target)) {
2750
2864
  return;
2751
2865
  }
2752
2866
  this.focusOnHost = true;
@@ -2757,6 +2871,13 @@ class PopoverDirective {
2757
2871
  if (next && this.trigger.contains(next)) {
2758
2872
  return;
2759
2873
  }
2874
+ if (this.isClick) {
2875
+ // El foco pasa al panel o a otro elemento: solo en el segundo caso se cierra.
2876
+ if (next && this.overlayRef && !this.panelElement?.contains(next)) {
2877
+ this.closeNow();
2878
+ }
2879
+ return;
2880
+ }
2760
2881
  this.focusOnHost = false;
2761
2882
  if (next && this.kfPopoverInteractive() && this.panelElement?.contains(next)) {
2762
2883
  // El foco pasa al panel: su propio `focusin` lo registra.
@@ -2789,6 +2910,9 @@ class PopoverDirective {
2789
2910
  }
2790
2911
  /** Abre o cierra según los cuatro orígenes (puntero/foco × anfitrión/panel). */
2791
2912
  reevaluate(delay) {
2913
+ if (this.isClick) {
2914
+ return;
2915
+ }
2792
2916
  if (this.wanted) {
2793
2917
  this.clearHideTimer();
2794
2918
  if (!this.dismissed) {
@@ -2877,7 +3001,10 @@ class PopoverDirective {
2877
3001
  this.listenGlobal();
2878
3002
  this.openedAt = Date.now();
2879
3003
  this.openState.set(true);
2880
- this.kfPopoverOpenChange.emit(true);
3004
+ this.kfPopoverOpen.set(true);
3005
+ if (this.isClick && this.kfPopoverInteractive()) {
3006
+ this.focusFirstInPanel();
3007
+ }
2881
3008
  }
2882
3009
  dispose() {
2883
3010
  const overlayRef = this.overlayRef;
@@ -2896,7 +3023,7 @@ class PopoverDirective {
2896
3023
  this.removeDescribedBy();
2897
3024
  if (wasOpen && !this.destroyed) {
2898
3025
  this.openState.set(false);
2899
- this.kfPopoverOpenChange.emit(false);
3026
+ this.kfPopoverOpen.set(false);
2900
3027
  }
2901
3028
  }
2902
3029
  onPanelFocusOut(event) {
@@ -2909,25 +3036,96 @@ class PopoverDirective {
2909
3036
  if (next && (this.panelElement?.contains(next) || this.trigger.contains(next))) {
2910
3037
  return;
2911
3038
  }
3039
+ if (this.isClick) {
3040
+ // Sin destino (`null`) el foco no salió a otro elemento: lo cierran Escape o `pointerdown`.
3041
+ if (next) {
3042
+ this.closeNow();
3043
+ }
3044
+ return;
3045
+ }
2912
3046
  this.reevaluate(0);
2913
3047
  }
2914
- /** Mayús+Tab desde el primer control del panel devuelve el foco al anfitrión. */
3048
+ /**
3049
+ * Mayús+Tab desde el primer control del panel devuelve el foco al anfitrión.
3050
+ * En modo `click`, Tab desde el último control cierra el panel y deja el foco
3051
+ * en el anfitrión, de modo que Tab continúa con el elemento siguiente a él.
3052
+ */
2915
3053
  onPanelKeydown = (event) => {
2916
- if (event.key !== 'Tab' || !event.shiftKey || !this.panelElement) {
3054
+ if (event.key !== 'Tab' || !this.panelElement) {
2917
3055
  return;
2918
3056
  }
2919
- const first = this.panelElement.querySelector(FOCUSABLE_SELECTOR);
2920
- if (first && this.document.activeElement === first) {
2921
- event.preventDefault();
3057
+ if (event.shiftKey) {
3058
+ const first = this.panelElement.querySelector(FOCUSABLE_SELECTOR);
3059
+ if (first && this.document.activeElement === first) {
3060
+ event.preventDefault();
3061
+ this.focusHost();
3062
+ }
3063
+ return;
3064
+ }
3065
+ if (!this.isClick) {
3066
+ return;
3067
+ }
3068
+ const focusable = this.panelElement.querySelectorAll(FOCUSABLE_SELECTOR);
3069
+ if (focusable.length > 0 && this.document.activeElement === focusable[focusable.length - 1]) {
3070
+ this.closeNow();
2922
3071
  this.focusHost();
2923
3072
  }
2924
3073
  };
2925
- focusHost() {
3074
+ /** Control real del anfitrión: él mismo si es enfocable o su primer descendiente enfocable. */
3075
+ controlElement() {
2926
3076
  const host = this.trigger;
2927
- const focusable = host.matches(FOCUSABLE_SELECTOR)
3077
+ return host.matches(FOCUSABLE_SELECTOR)
2928
3078
  ? host
2929
3079
  : host.querySelector(FOCUSABLE_SELECTOR);
2930
- focusable?.focus({ preventScroll: true });
3080
+ }
3081
+ focusHost() {
3082
+ this.controlElement()?.focus({ preventScroll: true });
3083
+ }
3084
+ focusFirstInPanel() {
3085
+ this.panelElement?.querySelector(FOCUSABLE_SELECTOR)?.focus({
3086
+ preventScroll: true,
3087
+ });
3088
+ }
3089
+ /**
3090
+ * Mantiene `aria-expanded`, `aria-controls` y (si el panel es interactivo)
3091
+ * `aria-haspopup` en el control real mientras el modo es `click` y la
3092
+ * directiva está activa; los retira en cualquier otro caso. Un
3093
+ * `aria-haspopup` que ya traía el control se respeta y no se toca.
3094
+ */
3095
+ syncAria() {
3096
+ if (!this.ready) {
3097
+ return;
3098
+ }
3099
+ const active = this.isClick && !this.kfPopoverDisabled();
3100
+ const target = active ? this.controlElement() : null;
3101
+ if (this.ariaElement && this.ariaElement !== target) {
3102
+ this.clearAria(this.ariaElement);
3103
+ }
3104
+ if (!target) {
3105
+ return;
3106
+ }
3107
+ target.setAttribute('aria-expanded', String(this.openState()));
3108
+ target.setAttribute('aria-controls', this.panelId);
3109
+ if (this.kfPopoverInteractive()) {
3110
+ if (!target.hasAttribute('aria-haspopup')) {
3111
+ target.setAttribute('aria-haspopup', 'dialog');
3112
+ this.ariaHaspopupWritten = true;
3113
+ }
3114
+ }
3115
+ else if (this.ariaHaspopupWritten) {
3116
+ target.removeAttribute('aria-haspopup');
3117
+ this.ariaHaspopupWritten = false;
3118
+ }
3119
+ this.ariaElement = target;
3120
+ }
3121
+ clearAria(element) {
3122
+ element.removeAttribute('aria-expanded');
3123
+ element.removeAttribute('aria-controls');
3124
+ if (this.ariaHaspopupWritten) {
3125
+ element.removeAttribute('aria-haspopup');
3126
+ this.ariaHaspopupWritten = false;
3127
+ }
3128
+ this.ariaElement = null;
2931
3129
  }
2932
3130
  /**
2933
3131
  * Escape, scroll y resize mientras el panel está abierto. En fase de captura
@@ -2942,30 +3140,58 @@ class PopoverDirective {
2942
3140
  return;
2943
3141
  }
2944
3142
  event.stopPropagation();
2945
- const focusInPanel = this.panelElement?.contains(this.document.activeElement) ?? false;
3143
+ const focusInPanel = this.focusIsInPanel();
2946
3144
  this.dismissed = true;
2947
- this.close();
3145
+ this.closeNow();
2948
3146
  if (focusInPanel) {
2949
3147
  this.focusHost();
2950
3148
  }
2951
3149
  };
2952
3150
  const onScroll = (event) => {
2953
3151
  const target = event.target;
3152
+ if (target && this.panelElement?.contains(target)) {
3153
+ return;
3154
+ }
3155
+ if (this.isClick) {
3156
+ // El panel acompaña al anfitrión en vez de cerrarse.
3157
+ this.overlayRef?.updatePosition();
3158
+ return;
3159
+ }
2954
3160
  if (Date.now() - this.openedAt < SCROLL_GRACE_MS) {
2955
3161
  return;
2956
3162
  }
2957
- if (target && this.panelElement?.contains(target)) {
3163
+ this.closeNow();
3164
+ };
3165
+ const onResize = () => {
3166
+ if (this.isClick) {
3167
+ this.overlayRef?.updatePosition();
3168
+ }
3169
+ else {
3170
+ this.closeNow();
3171
+ }
3172
+ };
3173
+ // Solo en modo `click`: un `pointerdown` fuera del anfitrión y del panel lo cierra.
3174
+ const onPointerDown = (event) => {
3175
+ if (!this.isClick) {
2958
3176
  return;
2959
3177
  }
2960
- this.close();
3178
+ const target = event.target;
3179
+ if (!target ||
3180
+ this.panelElement?.contains(target) ||
3181
+ this.trigger.contains(target) ||
3182
+ this.host.nativeElement.contains(target)) {
3183
+ return;
3184
+ }
3185
+ this.closeNow();
2961
3186
  };
2962
- const onResize = () => this.close();
2963
3187
  this.document.addEventListener('keydown', onKeydown, true);
2964
3188
  this.document.addEventListener('scroll', onScroll, true);
3189
+ this.document.addEventListener('pointerdown', onPointerDown, true);
2965
3190
  view?.addEventListener('resize', onResize);
2966
3191
  this.teardownGlobalListeners = () => {
2967
3192
  this.document.removeEventListener('keydown', onKeydown, true);
2968
3193
  this.document.removeEventListener('scroll', onScroll, true);
3194
+ this.document.removeEventListener('pointerdown', onPointerDown, true);
2969
3195
  view?.removeEventListener('resize', onResize);
2970
3196
  };
2971
3197
  }
@@ -2986,7 +3212,7 @@ class PopoverDirective {
2986
3212
  }
2987
3213
  }
2988
3214
  addDescribedBy() {
2989
- if (!this.kfPopoverDescribe()) {
3215
+ if (!this.kfPopoverDescribe() || this.isClick) {
2990
3216
  return;
2991
3217
  }
2992
3218
  const tokens = this.describedByTokens();
@@ -3063,7 +3289,7 @@ class PopoverDirective {
3063
3289
  };
3064
3290
  }
3065
3291
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: PopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3066
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.0", type: PopoverDirective, isStandalone: true, selector: "[kfPopover]", inputs: { kfPopover: { classPropertyName: "kfPopover", publicName: "kfPopover", isSignal: true, isRequired: true, transformFunction: null }, kfPopoverPlacement: { classPropertyName: "kfPopoverPlacement", publicName: "kfPopoverPlacement", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverShowDelay: { classPropertyName: "kfPopoverShowDelay", publicName: "kfPopoverShowDelay", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverHideDelay: { classPropertyName: "kfPopoverHideDelay", publicName: "kfPopoverHideDelay", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverDisabled: { classPropertyName: "kfPopoverDisabled", publicName: "kfPopoverDisabled", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverInteractive: { classPropertyName: "kfPopoverInteractive", publicName: "kfPopoverInteractive", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverLabel: { classPropertyName: "kfPopoverLabel", publicName: "kfPopoverLabel", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverDescribe: { classPropertyName: "kfPopoverDescribe", publicName: "kfPopoverDescribe", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { kfPopoverOpenChange: "kfPopoverOpenChange" }, exportAs: ["kfPopover"], ngImport: i0 });
3292
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.0", type: PopoverDirective, isStandalone: true, selector: "[kfPopover]", inputs: { kfPopover: { classPropertyName: "kfPopover", publicName: "kfPopover", isSignal: true, isRequired: true, transformFunction: null }, kfPopoverPlacement: { classPropertyName: "kfPopoverPlacement", publicName: "kfPopoverPlacement", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverShowDelay: { classPropertyName: "kfPopoverShowDelay", publicName: "kfPopoverShowDelay", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverHideDelay: { classPropertyName: "kfPopoverHideDelay", publicName: "kfPopoverHideDelay", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverDisabled: { classPropertyName: "kfPopoverDisabled", publicName: "kfPopoverDisabled", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverInteractive: { classPropertyName: "kfPopoverInteractive", publicName: "kfPopoverInteractive", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverLabel: { classPropertyName: "kfPopoverLabel", publicName: "kfPopoverLabel", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverDescribe: { classPropertyName: "kfPopoverDescribe", publicName: "kfPopoverDescribe", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverTrigger: { classPropertyName: "kfPopoverTrigger", publicName: "kfPopoverTrigger", isSignal: true, isRequired: false, transformFunction: null }, kfPopoverOpen: { classPropertyName: "kfPopoverOpen", publicName: "kfPopoverOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { kfPopoverOpen: "kfPopoverOpenChange" }, exportAs: ["kfPopover"], ngImport: i0 });
3067
3293
  }
3068
3294
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: PopoverDirective, decorators: [{
3069
3295
  type: Directive,
@@ -3071,7 +3297,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
3071
3297
  selector: '[kfPopover]',
3072
3298
  exportAs: 'kfPopover',
3073
3299
  }]
3074
- }], ctorParameters: () => [], propDecorators: { kfPopover: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopover", required: true }] }], kfPopoverPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverPlacement", required: false }] }], kfPopoverShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverShowDelay", required: false }] }], kfPopoverHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverHideDelay", required: false }] }], kfPopoverDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverDisabled", required: false }] }], kfPopoverInteractive: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverInteractive", required: false }] }], kfPopoverLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverLabel", required: false }] }], kfPopoverDescribe: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverDescribe", required: false }] }], kfPopoverOpenChange: [{ type: i0.Output, args: ["kfPopoverOpenChange"] }] } });
3300
+ }], ctorParameters: () => [], propDecorators: { kfPopover: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopover", required: true }] }], kfPopoverPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverPlacement", required: false }] }], kfPopoverShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverShowDelay", required: false }] }], kfPopoverHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverHideDelay", required: false }] }], kfPopoverDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverDisabled", required: false }] }], kfPopoverInteractive: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverInteractive", required: false }] }], kfPopoverLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverLabel", required: false }] }], kfPopoverDescribe: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverDescribe", required: false }] }], kfPopoverTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverTrigger", required: false }] }], kfPopoverOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "kfPopoverOpen", required: false }] }, { type: i0.Output, args: ["kfPopoverOpenChange"] }] } });
3075
3301
 
3076
3302
  let nextId$5 = 0;
3077
3303
  /**
@@ -3099,7 +3325,7 @@ class AiMark {
3099
3325
  still = input(false, { ...(ngDevMode ? { debugName: "still" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3100
3326
  tipId = `kf-ai-mark-tip-${nextId$5++}`;
3101
3327
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: AiMark, deps: [], target: i0.ɵɵFactoryTarget.Component });
3102
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.0", type: AiMark, isStandalone: true, selector: "kf-ai-mark", inputs: { tip: { classPropertyName: "tip", publicName: "tip", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, still: { classPropertyName: "still", publicName: "still", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"kf-ai-mark\"\n kfPopoverPlacement=\"top\"\n [kfPopover]=\"tipTemplate\"\n [kfPopoverDescribe]=\"false\"\n [attr.aria-label]=\"label()\"\n [attr.aria-describedby]=\"tipId\"\n [attr.tabindex]=\"still() ? -1 : null\"\n>\n <kf-icon class=\"kf-ai-mark__icon\" name=\"sparkle\" size=\"sm\" />\n</button>\n<span class=\"kf-sr-only\" [id]=\"tipId\">{{ tip() }}</span>\n<ng-template #tipTemplate>{{ tip() }}</ng-template>\n", styles: [".kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{position:relative;display:inline-flex;flex:none;vertical-align:-3px}.kf-ai-mark{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;margin:-4px;padding:0;border:0;background:transparent;border-radius:var(--kf-radius-pill);color:var(--kf-color-ai);font:inherit;cursor:help}.kf-ai-mark:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-ai-mark__icon{--kf-icon-size: 14px !important}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "directive", type: PopoverDirective, selector: "[kfPopover]", inputs: ["kfPopover", "kfPopoverPlacement", "kfPopoverShowDelay", "kfPopoverHideDelay", "kfPopoverDisabled", "kfPopoverInteractive", "kfPopoverLabel", "kfPopoverDescribe"], outputs: ["kfPopoverOpenChange"], exportAs: ["kfPopover"] }] });
3328
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.0", type: AiMark, isStandalone: true, selector: "kf-ai-mark", inputs: { tip: { classPropertyName: "tip", publicName: "tip", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, still: { classPropertyName: "still", publicName: "still", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"kf-ai-mark\"\n kfPopoverPlacement=\"top\"\n [kfPopover]=\"tipTemplate\"\n [kfPopoverDescribe]=\"false\"\n [attr.aria-label]=\"label()\"\n [attr.aria-describedby]=\"tipId\"\n [attr.tabindex]=\"still() ? -1 : null\"\n>\n <kf-icon class=\"kf-ai-mark__icon\" name=\"sparkle\" size=\"sm\" />\n</button>\n<span class=\"kf-sr-only\" [id]=\"tipId\">{{ tip() }}</span>\n<ng-template #tipTemplate>{{ tip() }}</ng-template>\n", styles: [".kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{position:relative;display:inline-flex;flex:none;vertical-align:-3px}.kf-ai-mark{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;margin:-4px;padding:0;border:0;background:transparent;border-radius:var(--kf-radius-pill);color:var(--kf-color-ai);font:inherit;cursor:help}.kf-ai-mark:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-ai-mark__icon{--kf-icon-size: 14px !important}\n"], dependencies: [{ kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "directive", type: PopoverDirective, selector: "[kfPopover]", inputs: ["kfPopover", "kfPopoverPlacement", "kfPopoverShowDelay", "kfPopoverHideDelay", "kfPopoverDisabled", "kfPopoverInteractive", "kfPopoverLabel", "kfPopoverDescribe", "kfPopoverTrigger", "kfPopoverOpen"], outputs: ["kfPopoverOpenChange"], exportAs: ["kfPopover"] }] });
3103
3329
  }
3104
3330
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: AiMark, decorators: [{
3105
3331
  type: Component,
@@ -7126,6 +7352,26 @@ const BAR_TONE = {
7126
7352
  * <kf-stat-card icon="clock" tone="warn" value="7" label="Por vencer" [bar]="35" hint="7 de 20"
7127
7353
  * clickable [pressed]="filter() === 'due'" (cardClick)="toggle('due')" />
7128
7354
  *
7355
+ * - `ariaExpanded`, `ariaHaspopup` y `ariaControls`: con `clickable`, se reenvían al
7356
+ * `<button>` interno solo cuando están definidos (el host no los propaga). Sirven
7357
+ * para una card que abre un panel o una hoja: `ariaExpanded` indica si está abierto,
7358
+ * `ariaHaspopup` qué tipo de panel es (`'dialog'`, `'menu'`, `'listbox'`, `'true'`) y
7359
+ * `ariaControls` el id del panel. Sin `clickable` no tienen efecto. Mismos nombres
7360
+ * y valores que en `kf-button`.
7361
+ *
7362
+ * <kf-stat-card icon="receipt" value="US$ 48,990.01" label="Total a pagar"
7363
+ * clickable [ariaExpanded]="sheetOpen()" ariaHaspopup="dialog" ariaControls="detail-sheet"
7364
+ * (cardClick)="sheetOpen.set(true)" />
7365
+ *
7366
+ * Con `[kfPopover]` en modo `click` sobre la card no hace falta pasarlos: la directiva
7367
+ * mantiene `aria-expanded`, `aria-controls` y `aria-haspopup` en el `<button>` interno
7368
+ * (ver `PopoverDirective`). Usa estos inputs cuando el panel lo abres tú (una hoja
7369
+ * `kf-drawer`, por ejemplo) o cuando la directiva está desactivada.
7370
+ *
7371
+ * <kf-stat-card icon="receipt" value="US$ 48,990.01" label="Total a pagar" clickable
7372
+ * [kfPopover]="detail" kfPopoverTrigger="click" kfPopoverInteractive
7373
+ * kfPopoverLabel="Detalle del total" />
7374
+ *
7129
7375
  * - `badge` (+ `badgeTone`, default `'neutral'`): insignia (`kf-badge`) a la
7130
7376
  * derecha de la etiqueta, para un estado puntual ("Urgente", "Nuevo"). Es
7131
7377
  * texto real en el DOM, así que un lector de pantalla lo lee tras la
@@ -7192,6 +7438,15 @@ class StatCard {
7192
7438
  */
7193
7439
  pressed = input(null, /* @ts-ignore */
7194
7440
  ...(ngDevMode ? [{ debugName: "pressed" }] : /* istanbul ignore next */ []));
7441
+ /** `aria-expanded` del botón cuando la card es `clickable`; `undefined` = no se emite. */
7442
+ ariaExpanded = input(/* @ts-ignore */
7443
+ ...(ngDevMode ? [undefined, { debugName: "ariaExpanded" }] : /* istanbul ignore next */ []));
7444
+ /** `aria-haspopup` del botón cuando la card es `clickable`; `undefined` = no se emite. */
7445
+ ariaHaspopup = input(/* @ts-ignore */
7446
+ ...(ngDevMode ? [undefined, { debugName: "ariaHaspopup" }] : /* istanbul ignore next */ []));
7447
+ /** `aria-controls` (id del panel que abre) del botón cuando la card es `clickable`. */
7448
+ ariaControls = input(/* @ts-ignore */
7449
+ ...(ngDevMode ? [undefined, { debugName: "ariaControls" }] : /* istanbul ignore next */ []));
7195
7450
  /** `'compact'`: variante para pantallas angostas; `'default'` no cambia la card. */
7196
7451
  density = input('default', /* @ts-ignore */
7197
7452
  ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
@@ -7208,14 +7463,14 @@ class StatCard {
7208
7463
  }, /* @ts-ignore */
7209
7464
  ...(ngDevMode ? [{ debugName: "hasBar" }] : /* istanbul ignore next */ []));
7210
7465
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: StatCard, deps: [], target: i0.ɵɵFactoryTarget.Component });
7211
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: StatCard, isStandalone: true, selector: "kf-stat-card", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, note: { classPropertyName: "note", publicName: "note", isSignal: true, isRequired: false, transformFunction: null }, bar: { classPropertyName: "bar", publicName: "bar", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, badgeTone: { classPropertyName: "badgeTone", publicName: "badgeTone", isSignal: true, isRequired: false, transformFunction: null }, pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cardClick: "cardClick" }, host: { properties: { "class.kf-stat-card-host--compact": "density() === 'compact'" } }, ngImport: i0, template: "@if (loading()) {\n <div\n class=\"kf-stat-card\"\n [class.kf-stat-card--compact]=\"density() === 'compact'\"\n aria-busy=\"true\"\n >\n <span\n class=\"kf-stat-card__icon kf-stat-card__icon--bone kf-bone-fill\"\n aria-hidden=\"true\"\n ></span>\n <span class=\"kf-stat-card__body\" aria-hidden=\"true\">\n <span class=\"kf-stat-card__value kf-bone\" style=\"--kf-bone-width: 40%\">{{ value() }}</span>\n @if (badge()) {\n <span class=\"kf-stat-card__heading kf-stat-card__heading--bone\">\n <span class=\"kf-stat-card__label kf-bone\" style=\"--kf-bone-width: 70%\">{{\n label()\n }}</span>\n <span class=\"kf-stat-card__badge-bone kf-bone\" style=\"--kf-bone-width: auto\">{{\n badge()\n }}</span>\n </span>\n } @else {\n <span class=\"kf-stat-card__label kf-bone\" style=\"--kf-bone-width: 70%\">{{ label() }}</span>\n }\n @if (note()) {\n <span class=\"kf-stat-card__note kf-bone\" style=\"--kf-bone-width: 55%\">{{ note() }}</span>\n }\n @if (hasBar()) {\n <span class=\"kf-stat-card__bar\">\n <span class=\"kf-stat-card__bar-bone kf-bone-fill\"></span>\n </span>\n }\n @if (hint()) {\n <span class=\"kf-stat-card__hint kf-bone\" style=\"--kf-bone-width: 45%\">{{ hint() }}</span>\n }\n </span>\n </div>\n} @else if (clickable()) {\n <button\n type=\"button\"\n class=\"kf-stat-card kf-stat-card--clickable\"\n [class.kf-stat-card--compact]=\"density() === 'compact'\"\n [class.kf-stat-card--pressed]=\"pressed() === true\"\n [attr.aria-pressed]=\"pressed()\"\n (click)=\"cardClick.emit()\"\n >\n <ng-container *ngTemplateOutlet=\"content\" />\n <kf-icon class=\"kf-stat-card__chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n} @else {\n <div class=\"kf-stat-card\" [class.kf-stat-card--compact]=\"density() === 'compact'\">\n <ng-container *ngTemplateOutlet=\"content\" />\n </div>\n}\n\n<ng-template #content>\n <span class=\"kf-stat-card__icon\" [class]=\"'kf-stat-card__icon--' + tone()\">\n <kf-icon [name]=\"icon()\" size=\"md\" />\n </span>\n <span class=\"kf-stat-card__body\">\n <span class=\"kf-stat-card__value\">{{ value() }}</span>\n @if (badge()) {\n <span class=\"kf-stat-card__heading\">\n <span class=\"kf-stat-card__label\">{{ label() }}</span>\n <kf-badge class=\"kf-stat-card__badge\" [tone]=\"badgeTone()\">{{ badge() }}</kf-badge>\n </span>\n } @else {\n <span class=\"kf-stat-card__label\">{{ label() }}</span>\n }\n @if (note()) {\n <span class=\"kf-stat-card__note\">{{ note() }}</span>\n }\n @if (hasBar()) {\n <kf-progress\n class=\"kf-stat-card__bar\"\n [value]=\"bar()!\"\n [tone]=\"barTone()\"\n [ariaLabel]=\"label()\"\n />\n }\n @if (hint()) {\n <span class=\"kf-stat-card__hint\">{{ hint() }}</span>\n }\n </span>\n</ng-template>\n", styles: [".kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{background:linear-gradient(90deg,var(--kf-color-border) 25%,var(--kf-color-surface) 37%,var(--kf-color-border) 63%);background-size:400% 100%;animation:kf-bone-shimmer 1.4s ease infinite}.kf-bone{display:block;box-sizing:border-box;width:var(--kf-bone-width, 60%);max-width:100%;overflow:hidden;white-space:nowrap;border-radius:var(--kf-radius-xs);-webkit-user-select:none;user-select:none;pointer-events:none}.kf-bone.kf-bone{color:transparent!important;-webkit-text-fill-color:transparent}.kf-bone>*{visibility:hidden}@keyframes kf-bone-shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media(prefers-reduced-motion:reduce){.kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{animation:none;background:var(--kf-color-border)}}:host{display:block}.kf-stat-card{display:flex;align-items:center;gap:var(--kf-space-md);width:100%;height:100%;box-sizing:border-box;padding:var(--kf-space-lg);border:1px solid var(--kf-color-border-strong);border-radius:var(--kf-radius-md);background:var(--kf-color-white);box-shadow:var(--kf-shadow-sm);font:inherit;text-align:left}.kf-stat-card--clickable{cursor:pointer;transition:box-shadow .14s,transform .14s}.kf-stat-card--clickable:hover{box-shadow:var(--kf-shadow-md);transform:translateY(-2px)}.kf-stat-card--clickable:focus-visible{outline:2px solid transparent;box-shadow:var(--kf-shadow-focus)}.kf-stat-card--pressed{border-color:var(--kf-color-primary);background:var(--kf-color-primary-soft);box-shadow:inset 0 0 0 1px var(--kf-color-primary)}.kf-stat-card--pressed:focus-visible{box-shadow:inset 0 0 0 1px var(--kf-color-primary),var(--kf-shadow-focus)}.kf-stat-card__icon{display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:var(--kf-radius-md)}.kf-stat-card__icon--primary{background:var(--kf-color-primary-soft);color:var(--kf-color-primary)}.kf-stat-card__icon--success{background:var(--kf-color-success-soft);color:var(--kf-color-success-strong)}.kf-stat-card__icon--error{background:var(--kf-color-error-soft);color:var(--kf-color-error)}.kf-stat-card__icon--purple{background:var(--kf-color-purple-soft);color:var(--kf-color-purple)}.kf-stat-card__icon--warn{background:var(--kf-color-warning-soft);color:var(--kf-color-warning-strong)}.kf-stat-card__icon--info{background:var(--kf-color-info-soft);color:var(--kf-color-info-strong)}.kf-stat-card__icon--neutral{background:var(--kf-color-gray-100);color:var(--kf-color-text)}.kf-stat-card__body{display:flex;flex-direction:column;gap:2px;min-width:0}.kf-stat-card__value{font-family:var(--kf-font-title);font-weight:700;font-size:var(--kf-font-size-title-md);color:var(--kf-color-ink)}.kf-stat-card__label{font-size:.875rem;font-weight:700;color:var(--kf-color-ink)}.kf-stat-card__heading{display:flex;flex-wrap:wrap;align-items:center;gap:2px var(--kf-space-sm);min-width:0}.kf-stat-card__heading--bone{flex-wrap:nowrap}.kf-stat-card__note{font-size:.78rem;color:var(--kf-color-text-muted)}.kf-stat-card__bar{padding-block-start:var(--kf-space-xs)}.kf-stat-card__hint{font-size:.78rem;color:var(--kf-color-text)}.kf-stat-card__chevron{margin-left:auto;flex:none;color:var(--kf-color-gray-400)}.kf-stat-card__icon--bone{border-radius:var(--kf-radius-md)}.kf-stat-card__badge-bone{padding:var(--kf-space-xs) var(--kf-space-sm);border-radius:var(--kf-radius-pill);font-size:var(--kf-font-size-caption);font-weight:600;line-height:1}.kf-stat-card__bar-bone{display:block;height:4px;border-radius:var(--kf-radius-pill)}.kf-stat-card--compact{gap:var(--kf-space-sm) 12px;padding:var(--kf-space-md)}.kf-stat-card--compact .kf-stat-card__icon{width:40px;height:40px}.kf-stat-card--compact .kf-stat-card__value{font-size:var(--kf-font-size-title-sm)}:host(.kf-stat-card-host--compact){container-type:inline-size}@container (max-width: 210px){.kf-stat-card--compact{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;align-items:center;gap:2px 10px;padding:12px}.kf-stat-card--compact .kf-stat-card__body{display:contents}.kf-stat-card--compact .kf-stat-card__icon{grid-row:1;grid-column:1;width:36px;height:36px}.kf-stat-card--compact .kf-stat-card__value{grid-row:1;grid-column:2}.kf-stat-card--compact .kf-stat-card__heading,.kf-stat-card--compact .kf-stat-card__label,.kf-stat-card--compact .kf-stat-card__note,.kf-stat-card--compact .kf-stat-card__bar,.kf-stat-card--compact .kf-stat-card__hint{grid-column:1 / -1}.kf-stat-card--compact .kf-stat-card__label,.kf-stat-card--compact .kf-stat-card__heading{margin-top:6px}.kf-stat-card--compact .kf-stat-card__heading .kf-stat-card__label{margin-top:0}.kf-stat-card--compact .kf-stat-card__chevron{display:none}}\n"], dependencies: [{ kind: "component", type: Badge, selector: "kf-badge", inputs: ["tone", "variant", "dot", "truncate", "wrap"] }, { kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Progress, selector: "kf-progress", inputs: ["value", "tone", "size", "label", "ariaLabel"] }] });
7466
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: StatCard, isStandalone: true, selector: "kf-stat-card", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, note: { classPropertyName: "note", publicName: "note", isSignal: true, isRequired: false, transformFunction: null }, bar: { classPropertyName: "bar", publicName: "bar", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, badgeTone: { classPropertyName: "badgeTone", publicName: "badgeTone", isSignal: true, isRequired: false, transformFunction: null }, pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "ariaExpanded", isSignal: true, isRequired: false, transformFunction: null }, ariaHaspopup: { classPropertyName: "ariaHaspopup", publicName: "ariaHaspopup", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cardClick: "cardClick" }, host: { properties: { "class.kf-stat-card-host--compact": "density() === 'compact'" } }, ngImport: i0, template: "@if (loading()) {\n <div\n class=\"kf-stat-card\"\n [class.kf-stat-card--compact]=\"density() === 'compact'\"\n aria-busy=\"true\"\n >\n <span\n class=\"kf-stat-card__icon kf-stat-card__icon--bone kf-bone-fill\"\n aria-hidden=\"true\"\n ></span>\n <span class=\"kf-stat-card__body\" aria-hidden=\"true\">\n <span class=\"kf-stat-card__value kf-bone\" style=\"--kf-bone-width: 40%\">{{ value() }}</span>\n @if (badge()) {\n <span class=\"kf-stat-card__heading kf-stat-card__heading--bone\">\n <span class=\"kf-stat-card__label kf-bone\" style=\"--kf-bone-width: 70%\">{{\n label()\n }}</span>\n <span class=\"kf-stat-card__badge-bone kf-bone\" style=\"--kf-bone-width: auto\">{{\n badge()\n }}</span>\n </span>\n } @else {\n <span class=\"kf-stat-card__label kf-bone\" style=\"--kf-bone-width: 70%\">{{ label() }}</span>\n }\n @if (note()) {\n <span class=\"kf-stat-card__note kf-bone\" style=\"--kf-bone-width: 55%\">{{ note() }}</span>\n }\n @if (hasBar()) {\n <span class=\"kf-stat-card__bar\">\n <span class=\"kf-stat-card__bar-bone kf-bone-fill\"></span>\n </span>\n }\n @if (hint()) {\n <span class=\"kf-stat-card__hint kf-bone\" style=\"--kf-bone-width: 45%\">{{ hint() }}</span>\n }\n </span>\n </div>\n} @else if (clickable()) {\n <button\n type=\"button\"\n class=\"kf-stat-card kf-stat-card--clickable\"\n [class.kf-stat-card--compact]=\"density() === 'compact'\"\n [class.kf-stat-card--pressed]=\"pressed() === true\"\n [attr.aria-pressed]=\"pressed()\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-haspopup]=\"ariaHaspopup() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n (click)=\"cardClick.emit()\"\n >\n <ng-container *ngTemplateOutlet=\"content\" />\n <kf-icon class=\"kf-stat-card__chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n} @else {\n <div class=\"kf-stat-card\" [class.kf-stat-card--compact]=\"density() === 'compact'\">\n <ng-container *ngTemplateOutlet=\"content\" />\n </div>\n}\n\n<ng-template #content>\n <span class=\"kf-stat-card__icon\" [class]=\"'kf-stat-card__icon--' + tone()\">\n <kf-icon [name]=\"icon()\" size=\"md\" />\n </span>\n <span class=\"kf-stat-card__body\">\n <span class=\"kf-stat-card__value\">{{ value() }}</span>\n @if (badge()) {\n <span class=\"kf-stat-card__heading\">\n <span class=\"kf-stat-card__label\">{{ label() }}</span>\n <kf-badge class=\"kf-stat-card__badge\" [tone]=\"badgeTone()\">{{ badge() }}</kf-badge>\n </span>\n } @else {\n <span class=\"kf-stat-card__label\">{{ label() }}</span>\n }\n @if (note()) {\n <span class=\"kf-stat-card__note\">{{ note() }}</span>\n }\n @if (hasBar()) {\n <kf-progress\n class=\"kf-stat-card__bar\"\n [value]=\"bar()!\"\n [tone]=\"barTone()\"\n [ariaLabel]=\"label()\"\n />\n }\n @if (hint()) {\n <span class=\"kf-stat-card__hint\">{{ hint() }}</span>\n }\n </span>\n</ng-template>\n", styles: [".kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{background:linear-gradient(90deg,var(--kf-color-border) 25%,var(--kf-color-surface) 37%,var(--kf-color-border) 63%);background-size:400% 100%;animation:kf-bone-shimmer 1.4s ease infinite}.kf-bone{display:block;box-sizing:border-box;width:var(--kf-bone-width, 60%);max-width:100%;overflow:hidden;white-space:nowrap;border-radius:var(--kf-radius-xs);-webkit-user-select:none;user-select:none;pointer-events:none}.kf-bone.kf-bone{color:transparent!important;-webkit-text-fill-color:transparent}.kf-bone>*{visibility:hidden}@keyframes kf-bone-shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media(prefers-reduced-motion:reduce){.kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{animation:none;background:var(--kf-color-border)}}:host{display:block}.kf-stat-card{display:flex;align-items:center;gap:var(--kf-space-md);width:100%;height:100%;box-sizing:border-box;padding:var(--kf-space-lg);border:1px solid var(--kf-color-border-strong);border-radius:var(--kf-radius-md);background:var(--kf-color-white);box-shadow:var(--kf-shadow-sm);font:inherit;text-align:left}.kf-stat-card--clickable{cursor:pointer;transition:box-shadow .14s,transform .14s}.kf-stat-card--clickable:hover{box-shadow:var(--kf-shadow-md);transform:translateY(-2px)}.kf-stat-card--clickable:focus-visible{outline:2px solid transparent;box-shadow:var(--kf-shadow-focus)}.kf-stat-card--pressed{border-color:var(--kf-color-primary);background:var(--kf-color-primary-soft);box-shadow:inset 0 0 0 1px var(--kf-color-primary)}.kf-stat-card--pressed:focus-visible{box-shadow:inset 0 0 0 1px var(--kf-color-primary),var(--kf-shadow-focus)}.kf-stat-card__icon{display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:var(--kf-radius-md)}.kf-stat-card__icon--primary{background:var(--kf-color-primary-soft);color:var(--kf-color-primary)}.kf-stat-card__icon--success{background:var(--kf-color-success-soft);color:var(--kf-color-success-strong)}.kf-stat-card__icon--error{background:var(--kf-color-error-soft);color:var(--kf-color-error)}.kf-stat-card__icon--purple{background:var(--kf-color-purple-soft);color:var(--kf-color-purple)}.kf-stat-card__icon--warn{background:var(--kf-color-warning-soft);color:var(--kf-color-warning-strong)}.kf-stat-card__icon--info{background:var(--kf-color-info-soft);color:var(--kf-color-info-strong)}.kf-stat-card__icon--neutral{background:var(--kf-color-gray-100);color:var(--kf-color-text)}.kf-stat-card__body{display:flex;flex-direction:column;gap:2px;min-width:0}.kf-stat-card__value{font-family:var(--kf-font-title);font-weight:700;font-size:var(--kf-font-size-title-md);color:var(--kf-color-ink)}.kf-stat-card__label{font-size:.875rem;font-weight:700;color:var(--kf-color-ink)}.kf-stat-card__heading{display:flex;flex-wrap:wrap;align-items:center;gap:2px var(--kf-space-sm);min-width:0}.kf-stat-card__heading--bone{flex-wrap:nowrap}.kf-stat-card__note{font-size:.78rem;color:var(--kf-color-text-muted)}.kf-stat-card__bar{padding-block-start:var(--kf-space-xs)}.kf-stat-card__hint{font-size:.78rem;color:var(--kf-color-text)}.kf-stat-card__chevron{margin-left:auto;flex:none;color:var(--kf-color-gray-400)}.kf-stat-card__icon--bone{border-radius:var(--kf-radius-md)}.kf-stat-card__badge-bone{padding:var(--kf-space-xs) var(--kf-space-sm);border-radius:var(--kf-radius-pill);font-size:var(--kf-font-size-caption);font-weight:600;line-height:1}.kf-stat-card__bar-bone{display:block;height:4px;border-radius:var(--kf-radius-pill)}.kf-stat-card--compact{gap:var(--kf-space-sm) 12px;padding:var(--kf-space-md)}.kf-stat-card--compact .kf-stat-card__icon{width:40px;height:40px}.kf-stat-card--compact .kf-stat-card__value{font-size:var(--kf-font-size-title-sm)}:host(.kf-stat-card-host--compact){container-type:inline-size}@container (max-width: 210px){.kf-stat-card--compact{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;align-items:center;gap:2px 10px;padding:12px}.kf-stat-card--compact .kf-stat-card__body{display:contents}.kf-stat-card--compact .kf-stat-card__icon{grid-row:1;grid-column:1;width:36px;height:36px}.kf-stat-card--compact .kf-stat-card__value{grid-row:1;grid-column:2}.kf-stat-card--compact .kf-stat-card__heading,.kf-stat-card--compact .kf-stat-card__label,.kf-stat-card--compact .kf-stat-card__note,.kf-stat-card--compact .kf-stat-card__bar,.kf-stat-card--compact .kf-stat-card__hint{grid-column:1 / -1}.kf-stat-card--compact .kf-stat-card__label,.kf-stat-card--compact .kf-stat-card__heading{margin-top:6px}.kf-stat-card--compact .kf-stat-card__heading .kf-stat-card__label{margin-top:0}.kf-stat-card--compact .kf-stat-card__chevron{display:none}}\n"], dependencies: [{ kind: "component", type: Badge, selector: "kf-badge", inputs: ["tone", "variant", "dot", "truncate", "wrap"] }, { kind: "component", type: Icon, selector: "kf-icon", inputs: ["name", "size", "rotate", "filled"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Progress, selector: "kf-progress", inputs: ["value", "tone", "size", "label", "ariaLabel"] }] });
7212
7467
  }
7213
7468
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: StatCard, decorators: [{
7214
7469
  type: Component,
7215
7470
  args: [{ selector: 'kf-stat-card', imports: [Badge, Icon, NgTemplateOutlet, Progress], host: {
7216
7471
  '[class.kf-stat-card-host--compact]': "density() === 'compact'",
7217
- }, template: "@if (loading()) {\n <div\n class=\"kf-stat-card\"\n [class.kf-stat-card--compact]=\"density() === 'compact'\"\n aria-busy=\"true\"\n >\n <span\n class=\"kf-stat-card__icon kf-stat-card__icon--bone kf-bone-fill\"\n aria-hidden=\"true\"\n ></span>\n <span class=\"kf-stat-card__body\" aria-hidden=\"true\">\n <span class=\"kf-stat-card__value kf-bone\" style=\"--kf-bone-width: 40%\">{{ value() }}</span>\n @if (badge()) {\n <span class=\"kf-stat-card__heading kf-stat-card__heading--bone\">\n <span class=\"kf-stat-card__label kf-bone\" style=\"--kf-bone-width: 70%\">{{\n label()\n }}</span>\n <span class=\"kf-stat-card__badge-bone kf-bone\" style=\"--kf-bone-width: auto\">{{\n badge()\n }}</span>\n </span>\n } @else {\n <span class=\"kf-stat-card__label kf-bone\" style=\"--kf-bone-width: 70%\">{{ label() }}</span>\n }\n @if (note()) {\n <span class=\"kf-stat-card__note kf-bone\" style=\"--kf-bone-width: 55%\">{{ note() }}</span>\n }\n @if (hasBar()) {\n <span class=\"kf-stat-card__bar\">\n <span class=\"kf-stat-card__bar-bone kf-bone-fill\"></span>\n </span>\n }\n @if (hint()) {\n <span class=\"kf-stat-card__hint kf-bone\" style=\"--kf-bone-width: 45%\">{{ hint() }}</span>\n }\n </span>\n </div>\n} @else if (clickable()) {\n <button\n type=\"button\"\n class=\"kf-stat-card kf-stat-card--clickable\"\n [class.kf-stat-card--compact]=\"density() === 'compact'\"\n [class.kf-stat-card--pressed]=\"pressed() === true\"\n [attr.aria-pressed]=\"pressed()\"\n (click)=\"cardClick.emit()\"\n >\n <ng-container *ngTemplateOutlet=\"content\" />\n <kf-icon class=\"kf-stat-card__chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n} @else {\n <div class=\"kf-stat-card\" [class.kf-stat-card--compact]=\"density() === 'compact'\">\n <ng-container *ngTemplateOutlet=\"content\" />\n </div>\n}\n\n<ng-template #content>\n <span class=\"kf-stat-card__icon\" [class]=\"'kf-stat-card__icon--' + tone()\">\n <kf-icon [name]=\"icon()\" size=\"md\" />\n </span>\n <span class=\"kf-stat-card__body\">\n <span class=\"kf-stat-card__value\">{{ value() }}</span>\n @if (badge()) {\n <span class=\"kf-stat-card__heading\">\n <span class=\"kf-stat-card__label\">{{ label() }}</span>\n <kf-badge class=\"kf-stat-card__badge\" [tone]=\"badgeTone()\">{{ badge() }}</kf-badge>\n </span>\n } @else {\n <span class=\"kf-stat-card__label\">{{ label() }}</span>\n }\n @if (note()) {\n <span class=\"kf-stat-card__note\">{{ note() }}</span>\n }\n @if (hasBar()) {\n <kf-progress\n class=\"kf-stat-card__bar\"\n [value]=\"bar()!\"\n [tone]=\"barTone()\"\n [ariaLabel]=\"label()\"\n />\n }\n @if (hint()) {\n <span class=\"kf-stat-card__hint\">{{ hint() }}</span>\n }\n </span>\n</ng-template>\n", styles: [".kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{background:linear-gradient(90deg,var(--kf-color-border) 25%,var(--kf-color-surface) 37%,var(--kf-color-border) 63%);background-size:400% 100%;animation:kf-bone-shimmer 1.4s ease infinite}.kf-bone{display:block;box-sizing:border-box;width:var(--kf-bone-width, 60%);max-width:100%;overflow:hidden;white-space:nowrap;border-radius:var(--kf-radius-xs);-webkit-user-select:none;user-select:none;pointer-events:none}.kf-bone.kf-bone{color:transparent!important;-webkit-text-fill-color:transparent}.kf-bone>*{visibility:hidden}@keyframes kf-bone-shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media(prefers-reduced-motion:reduce){.kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{animation:none;background:var(--kf-color-border)}}:host{display:block}.kf-stat-card{display:flex;align-items:center;gap:var(--kf-space-md);width:100%;height:100%;box-sizing:border-box;padding:var(--kf-space-lg);border:1px solid var(--kf-color-border-strong);border-radius:var(--kf-radius-md);background:var(--kf-color-white);box-shadow:var(--kf-shadow-sm);font:inherit;text-align:left}.kf-stat-card--clickable{cursor:pointer;transition:box-shadow .14s,transform .14s}.kf-stat-card--clickable:hover{box-shadow:var(--kf-shadow-md);transform:translateY(-2px)}.kf-stat-card--clickable:focus-visible{outline:2px solid transparent;box-shadow:var(--kf-shadow-focus)}.kf-stat-card--pressed{border-color:var(--kf-color-primary);background:var(--kf-color-primary-soft);box-shadow:inset 0 0 0 1px var(--kf-color-primary)}.kf-stat-card--pressed:focus-visible{box-shadow:inset 0 0 0 1px var(--kf-color-primary),var(--kf-shadow-focus)}.kf-stat-card__icon{display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:var(--kf-radius-md)}.kf-stat-card__icon--primary{background:var(--kf-color-primary-soft);color:var(--kf-color-primary)}.kf-stat-card__icon--success{background:var(--kf-color-success-soft);color:var(--kf-color-success-strong)}.kf-stat-card__icon--error{background:var(--kf-color-error-soft);color:var(--kf-color-error)}.kf-stat-card__icon--purple{background:var(--kf-color-purple-soft);color:var(--kf-color-purple)}.kf-stat-card__icon--warn{background:var(--kf-color-warning-soft);color:var(--kf-color-warning-strong)}.kf-stat-card__icon--info{background:var(--kf-color-info-soft);color:var(--kf-color-info-strong)}.kf-stat-card__icon--neutral{background:var(--kf-color-gray-100);color:var(--kf-color-text)}.kf-stat-card__body{display:flex;flex-direction:column;gap:2px;min-width:0}.kf-stat-card__value{font-family:var(--kf-font-title);font-weight:700;font-size:var(--kf-font-size-title-md);color:var(--kf-color-ink)}.kf-stat-card__label{font-size:.875rem;font-weight:700;color:var(--kf-color-ink)}.kf-stat-card__heading{display:flex;flex-wrap:wrap;align-items:center;gap:2px var(--kf-space-sm);min-width:0}.kf-stat-card__heading--bone{flex-wrap:nowrap}.kf-stat-card__note{font-size:.78rem;color:var(--kf-color-text-muted)}.kf-stat-card__bar{padding-block-start:var(--kf-space-xs)}.kf-stat-card__hint{font-size:.78rem;color:var(--kf-color-text)}.kf-stat-card__chevron{margin-left:auto;flex:none;color:var(--kf-color-gray-400)}.kf-stat-card__icon--bone{border-radius:var(--kf-radius-md)}.kf-stat-card__badge-bone{padding:var(--kf-space-xs) var(--kf-space-sm);border-radius:var(--kf-radius-pill);font-size:var(--kf-font-size-caption);font-weight:600;line-height:1}.kf-stat-card__bar-bone{display:block;height:4px;border-radius:var(--kf-radius-pill)}.kf-stat-card--compact{gap:var(--kf-space-sm) 12px;padding:var(--kf-space-md)}.kf-stat-card--compact .kf-stat-card__icon{width:40px;height:40px}.kf-stat-card--compact .kf-stat-card__value{font-size:var(--kf-font-size-title-sm)}:host(.kf-stat-card-host--compact){container-type:inline-size}@container (max-width: 210px){.kf-stat-card--compact{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;align-items:center;gap:2px 10px;padding:12px}.kf-stat-card--compact .kf-stat-card__body{display:contents}.kf-stat-card--compact .kf-stat-card__icon{grid-row:1;grid-column:1;width:36px;height:36px}.kf-stat-card--compact .kf-stat-card__value{grid-row:1;grid-column:2}.kf-stat-card--compact .kf-stat-card__heading,.kf-stat-card--compact .kf-stat-card__label,.kf-stat-card--compact .kf-stat-card__note,.kf-stat-card--compact .kf-stat-card__bar,.kf-stat-card--compact .kf-stat-card__hint{grid-column:1 / -1}.kf-stat-card--compact .kf-stat-card__label,.kf-stat-card--compact .kf-stat-card__heading{margin-top:6px}.kf-stat-card--compact .kf-stat-card__heading .kf-stat-card__label{margin-top:0}.kf-stat-card--compact .kf-stat-card__chevron{display:none}}\n"] }]
7218
- }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], note: [{ type: i0.Input, args: [{ isSignal: true, alias: "note", required: false }] }], bar: [{ type: i0.Input, args: [{ isSignal: true, alias: "bar", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], badgeTone: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeTone", required: false }] }], pressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressed", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], cardClick: [{ type: i0.Output, args: ["cardClick"] }] } });
7472
+ }, template: "@if (loading()) {\n <div\n class=\"kf-stat-card\"\n [class.kf-stat-card--compact]=\"density() === 'compact'\"\n aria-busy=\"true\"\n >\n <span\n class=\"kf-stat-card__icon kf-stat-card__icon--bone kf-bone-fill\"\n aria-hidden=\"true\"\n ></span>\n <span class=\"kf-stat-card__body\" aria-hidden=\"true\">\n <span class=\"kf-stat-card__value kf-bone\" style=\"--kf-bone-width: 40%\">{{ value() }}</span>\n @if (badge()) {\n <span class=\"kf-stat-card__heading kf-stat-card__heading--bone\">\n <span class=\"kf-stat-card__label kf-bone\" style=\"--kf-bone-width: 70%\">{{\n label()\n }}</span>\n <span class=\"kf-stat-card__badge-bone kf-bone\" style=\"--kf-bone-width: auto\">{{\n badge()\n }}</span>\n </span>\n } @else {\n <span class=\"kf-stat-card__label kf-bone\" style=\"--kf-bone-width: 70%\">{{ label() }}</span>\n }\n @if (note()) {\n <span class=\"kf-stat-card__note kf-bone\" style=\"--kf-bone-width: 55%\">{{ note() }}</span>\n }\n @if (hasBar()) {\n <span class=\"kf-stat-card__bar\">\n <span class=\"kf-stat-card__bar-bone kf-bone-fill\"></span>\n </span>\n }\n @if (hint()) {\n <span class=\"kf-stat-card__hint kf-bone\" style=\"--kf-bone-width: 45%\">{{ hint() }}</span>\n }\n </span>\n </div>\n} @else if (clickable()) {\n <button\n type=\"button\"\n class=\"kf-stat-card kf-stat-card--clickable\"\n [class.kf-stat-card--compact]=\"density() === 'compact'\"\n [class.kf-stat-card--pressed]=\"pressed() === true\"\n [attr.aria-pressed]=\"pressed()\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-haspopup]=\"ariaHaspopup() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n (click)=\"cardClick.emit()\"\n >\n <ng-container *ngTemplateOutlet=\"content\" />\n <kf-icon class=\"kf-stat-card__chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n} @else {\n <div class=\"kf-stat-card\" [class.kf-stat-card--compact]=\"density() === 'compact'\">\n <ng-container *ngTemplateOutlet=\"content\" />\n </div>\n}\n\n<ng-template #content>\n <span class=\"kf-stat-card__icon\" [class]=\"'kf-stat-card__icon--' + tone()\">\n <kf-icon [name]=\"icon()\" size=\"md\" />\n </span>\n <span class=\"kf-stat-card__body\">\n <span class=\"kf-stat-card__value\">{{ value() }}</span>\n @if (badge()) {\n <span class=\"kf-stat-card__heading\">\n <span class=\"kf-stat-card__label\">{{ label() }}</span>\n <kf-badge class=\"kf-stat-card__badge\" [tone]=\"badgeTone()\">{{ badge() }}</kf-badge>\n </span>\n } @else {\n <span class=\"kf-stat-card__label\">{{ label() }}</span>\n }\n @if (note()) {\n <span class=\"kf-stat-card__note\">{{ note() }}</span>\n }\n @if (hasBar()) {\n <kf-progress\n class=\"kf-stat-card__bar\"\n [value]=\"bar()!\"\n [tone]=\"barTone()\"\n [ariaLabel]=\"label()\"\n />\n }\n @if (hint()) {\n <span class=\"kf-stat-card__hint\">{{ hint() }}</span>\n }\n </span>\n</ng-template>\n", styles: [".kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{background:linear-gradient(90deg,var(--kf-color-border) 25%,var(--kf-color-surface) 37%,var(--kf-color-border) 63%);background-size:400% 100%;animation:kf-bone-shimmer 1.4s ease infinite}.kf-bone{display:block;box-sizing:border-box;width:var(--kf-bone-width, 60%);max-width:100%;overflow:hidden;white-space:nowrap;border-radius:var(--kf-radius-xs);-webkit-user-select:none;user-select:none;pointer-events:none}.kf-bone.kf-bone{color:transparent!important;-webkit-text-fill-color:transparent}.kf-bone>*{visibility:hidden}@keyframes kf-bone-shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media(prefers-reduced-motion:reduce){.kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{animation:none;background:var(--kf-color-border)}}:host{display:block}.kf-stat-card{display:flex;align-items:center;gap:var(--kf-space-md);width:100%;height:100%;box-sizing:border-box;padding:var(--kf-space-lg);border:1px solid var(--kf-color-border-strong);border-radius:var(--kf-radius-md);background:var(--kf-color-white);box-shadow:var(--kf-shadow-sm);font:inherit;text-align:left}.kf-stat-card--clickable{cursor:pointer;transition:box-shadow .14s,transform .14s}.kf-stat-card--clickable:hover{box-shadow:var(--kf-shadow-md);transform:translateY(-2px)}.kf-stat-card--clickable:focus-visible{outline:2px solid transparent;box-shadow:var(--kf-shadow-focus)}.kf-stat-card--pressed{border-color:var(--kf-color-primary);background:var(--kf-color-primary-soft);box-shadow:inset 0 0 0 1px var(--kf-color-primary)}.kf-stat-card--pressed:focus-visible{box-shadow:inset 0 0 0 1px var(--kf-color-primary),var(--kf-shadow-focus)}.kf-stat-card__icon{display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:var(--kf-radius-md)}.kf-stat-card__icon--primary{background:var(--kf-color-primary-soft);color:var(--kf-color-primary)}.kf-stat-card__icon--success{background:var(--kf-color-success-soft);color:var(--kf-color-success-strong)}.kf-stat-card__icon--error{background:var(--kf-color-error-soft);color:var(--kf-color-error)}.kf-stat-card__icon--purple{background:var(--kf-color-purple-soft);color:var(--kf-color-purple)}.kf-stat-card__icon--warn{background:var(--kf-color-warning-soft);color:var(--kf-color-warning-strong)}.kf-stat-card__icon--info{background:var(--kf-color-info-soft);color:var(--kf-color-info-strong)}.kf-stat-card__icon--neutral{background:var(--kf-color-gray-100);color:var(--kf-color-text)}.kf-stat-card__body{display:flex;flex-direction:column;gap:2px;min-width:0}.kf-stat-card__value{font-family:var(--kf-font-title);font-weight:700;font-size:var(--kf-font-size-title-md);color:var(--kf-color-ink)}.kf-stat-card__label{font-size:.875rem;font-weight:700;color:var(--kf-color-ink)}.kf-stat-card__heading{display:flex;flex-wrap:wrap;align-items:center;gap:2px var(--kf-space-sm);min-width:0}.kf-stat-card__heading--bone{flex-wrap:nowrap}.kf-stat-card__note{font-size:.78rem;color:var(--kf-color-text-muted)}.kf-stat-card__bar{padding-block-start:var(--kf-space-xs)}.kf-stat-card__hint{font-size:.78rem;color:var(--kf-color-text)}.kf-stat-card__chevron{margin-left:auto;flex:none;color:var(--kf-color-gray-400)}.kf-stat-card__icon--bone{border-radius:var(--kf-radius-md)}.kf-stat-card__badge-bone{padding:var(--kf-space-xs) var(--kf-space-sm);border-radius:var(--kf-radius-pill);font-size:var(--kf-font-size-caption);font-weight:600;line-height:1}.kf-stat-card__bar-bone{display:block;height:4px;border-radius:var(--kf-radius-pill)}.kf-stat-card--compact{gap:var(--kf-space-sm) 12px;padding:var(--kf-space-md)}.kf-stat-card--compact .kf-stat-card__icon{width:40px;height:40px}.kf-stat-card--compact .kf-stat-card__value{font-size:var(--kf-font-size-title-sm)}:host(.kf-stat-card-host--compact){container-type:inline-size}@container (max-width: 210px){.kf-stat-card--compact{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;align-items:center;gap:2px 10px;padding:12px}.kf-stat-card--compact .kf-stat-card__body{display:contents}.kf-stat-card--compact .kf-stat-card__icon{grid-row:1;grid-column:1;width:36px;height:36px}.kf-stat-card--compact .kf-stat-card__value{grid-row:1;grid-column:2}.kf-stat-card--compact .kf-stat-card__heading,.kf-stat-card--compact .kf-stat-card__label,.kf-stat-card--compact .kf-stat-card__note,.kf-stat-card--compact .kf-stat-card__bar,.kf-stat-card--compact .kf-stat-card__hint{grid-column:1 / -1}.kf-stat-card--compact .kf-stat-card__label,.kf-stat-card--compact .kf-stat-card__heading{margin-top:6px}.kf-stat-card--compact .kf-stat-card__heading .kf-stat-card__label{margin-top:0}.kf-stat-card--compact .kf-stat-card__chevron{display:none}}\n"] }]
7473
+ }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], note: [{ type: i0.Input, args: [{ isSignal: true, alias: "note", required: false }] }], bar: [{ type: i0.Input, args: [{ isSignal: true, alias: "bar", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], badgeTone: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeTone", required: false }] }], pressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressed", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaHaspopup: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaHaspopup", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], cardClick: [{ type: i0.Output, args: ["cardClick"] }] } });
7219
7474
 
7220
7475
  /** Cantidad de elementos por defecto de cada variante (`count` sin valor). */
7221
7476
  const DEFAULT_COUNT = {
@@ -7285,7 +7540,7 @@ class SkeletonPreset {
7285
7540
  formColumns = computed(() => (this.columns() === 2 ? 2 : 1), /* @ts-ignore */
7286
7541
  ...(ngDevMode ? [{ debugName: "formColumns" }] : /* istanbul ignore next */ []));
7287
7542
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SkeletonPreset, deps: [], target: i0.ɵɵFactoryTarget.Component });
7288
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: SkeletonPreset, isStandalone: true, selector: "kf-skeleton-preset", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n [class]=\"'kf-skeleton-preset kf-skeleton-preset--' + variant()\"\n aria-busy=\"true\"\n [style.--kf-skeleton-preset-columns]=\"columns() ?? null\"\n>\n @if (label()) {\n <span class=\"kf-sr-only\" role=\"status\">{{ label() }}</span>\n }\n @switch (variant()) {\n @case ('kpi-grid') {\n <div class=\"kf-skeleton-preset__grid\" [class.kf-skeleton-preset__grid--fixed]=\"!!columns()\">\n @for (i of items(); track i) {\n <kf-stat-card [loading]=\"true\" icon=\"bell\" value=\"0\" label=\"Etiqueta\" note=\"Nota\" />\n }\n </div>\n }\n @case ('card-grid') {\n <div class=\"kf-skeleton-preset__grid\" [class.kf-skeleton-preset__grid--fixed]=\"!!columns()\">\n @for (i of items(); track i) {\n <kf-card gap=\"sm\" aria-hidden=\"true\">\n <kf-skeleton variant=\"rect\" height=\"7.5rem\" />\n <kf-skeleton width=\"60%\" height=\"1.25rem\" />\n <kf-skeleton />\n <kf-skeleton width=\"80%\" />\n </kf-card>\n }\n </div>\n }\n @case ('form') {\n <div\n class=\"kf-skeleton-preset__form\"\n [class.kf-skeleton-preset__form--two]=\"formColumns() === 2\"\n aria-hidden=\"true\"\n >\n @for (i of items(); track i) {\n <div class=\"kf-skeleton-preset__field\">\n <span\n class=\"kf-skeleton-preset__label kf-overline-text kf-bone\"\n style=\"--kf-bone-width: 30%\"\n >\n Etiqueta\n </span>\n <span class=\"kf-skeleton-preset__control\">\n <span class=\"kf-skeleton-preset__value kf-bone\" style=\"--kf-bone-width: 55%\"\n >Valor</span\n >\n </span>\n </div>\n }\n </div>\n }\n @case ('list') {\n <div class=\"kf-skeleton-preset__stack\">\n @for (i of items(); track i) {\n <kf-document-row [loading]=\"true\" title=\"Documento\" meta=\"Archivo \u00B7 120 KB\" />\n }\n </div>\n }\n @case ('table') {\n <kf-data-table\n [columns]=\"tableColumns()\"\n [rows]=\"[]\"\n [loading]=\"true\"\n [skeletonRows]=\"total()\"\n />\n }\n @case ('timeline') {\n <div class=\"kf-skeleton-preset__timeline\" aria-hidden=\"true\">\n <div class=\"kf-skeleton-preset__timeline-toolbar\">\n <span class=\"kf-skeleton-preset__timeline-heading kf-bone\" style=\"--kf-bone-width: 30%\">\n Etapas\n </span>\n <span class=\"kf-skeleton-preset__timeline-toggle kf-bone\" style=\"--kf-bone-width: 7rem\">\n Expandir todo\n </span>\n </div>\n <ol class=\"kf-skeleton-preset__timeline-list\">\n @for (i of items(); track i) {\n <li class=\"kf-skeleton-preset__timeline-group\">\n <span class=\"kf-skeleton-preset__timeline-node kf-bone-fill\"></span>\n <span class=\"kf-skeleton-preset__timeline-text\">\n <span\n class=\"kf-skeleton-preset__timeline-title kf-bone\"\n style=\"--kf-bone-width: 45%\"\n >\n Etapa\n </span>\n <span\n class=\"kf-skeleton-preset__timeline-meta kf-bone\"\n style=\"--kf-bone-width: 30%\"\n >\n Detalle\n </span>\n </span>\n </li>\n }\n </ol>\n </div>\n }\n @case ('detail-header') {\n <div class=\"kf-skeleton-preset__header\" aria-hidden=\"true\">\n <span class=\"kf-skeleton-preset__header-icon kf-bone-fill\"></span>\n <span class=\"kf-skeleton-preset__header-heading\">\n <span class=\"kf-skeleton-preset__header-title kf-bone\" style=\"--kf-bone-width: 40%\">\n T\u00EDtulo\n </span>\n <span class=\"kf-skeleton-preset__header-subtitle kf-bone\" style=\"--kf-bone-width: 60%\">\n Subt\u00EDtulo\n </span>\n </span>\n </div>\n }\n }\n</div>\n", styles: [".kf-overline-text{font-family:var(--kf-font-title);font-size:var(--kf-font-size-caption);font-weight:var(--kf-font-weight-medium);letter-spacing:.04em;text-transform:uppercase;color:var(--kf-color-text-muted)}.kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{background:linear-gradient(90deg,var(--kf-color-border) 25%,var(--kf-color-surface) 37%,var(--kf-color-border) 63%);background-size:400% 100%;animation:kf-bone-shimmer 1.4s ease infinite}.kf-bone{display:block;box-sizing:border-box;width:var(--kf-bone-width, 60%);max-width:100%;overflow:hidden;white-space:nowrap;border-radius:var(--kf-radius-xs);-webkit-user-select:none;user-select:none;pointer-events:none}.kf-bone.kf-bone{color:transparent!important;-webkit-text-fill-color:transparent}.kf-bone>*{visibility:hidden}@keyframes kf-bone-shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media(prefers-reduced-motion:reduce){.kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{animation:none;background:var(--kf-color-border)}}.kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{display:block;font-family:var(--kf-font-body)}.kf-skeleton-preset__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:var(--kf-space-md)}.kf-skeleton-preset__grid--fixed{grid-template-columns:repeat(var(--kf-skeleton-preset-columns),minmax(0,1fr))}.kf-skeleton-preset__stack{display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-skeleton-preset__form{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--kf-space-md)}.kf-skeleton-preset__form--two{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:640px){.kf-skeleton-preset__form--two{grid-template-columns:minmax(0,1fr)}}.kf-skeleton-preset__field{display:flex;flex-direction:column;gap:var(--kf-space-xs)}.kf-skeleton-preset__control{display:block;padding:var(--kf-space-sm) var(--kf-space-sm);background:var(--kf-color-surface);border:1px solid var(--kf-color-border);border-radius:var(--kf-radius-sm)}.kf-skeleton-preset__timeline{--_node: var(--kf-status-node-size, 2.125rem);--_gutter: var(--kf-space-sm);--_pad-y: var(--kf-space-sm);--_line: 2px;display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-skeleton-preset__timeline-toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--kf-space-sm)}.kf-skeleton-preset__timeline-heading{font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-sm);font-weight:var(--kf-font-weight-title)}.kf-skeleton-preset__timeline-toggle{box-sizing:border-box;padding:6px var(--kf-space-sm);border:1px solid transparent;font-size:.85rem;font-weight:600;border-radius:var(--kf-radius-sm)}@media(max-width:640px),(pointer:coarse){.kf-skeleton-preset__timeline-toggle{min-height:44px}}.kf-skeleton-preset__timeline-list{list-style:none;margin:0;padding:0}.kf-skeleton-preset__timeline-group{position:relative;display:flex;align-items:flex-start;gap:var(--kf-space-md);box-sizing:border-box;min-height:2.75rem;padding:var(--_pad-y) var(--_gutter)}.kf-skeleton-preset__timeline-group:not(:last-child):before{content:\"\";position:absolute;inset-inline-start:calc(var(--_gutter) + var(--_node) / 2 - var(--_line) / 2);top:calc(var(--_pad-y) + var(--_node));bottom:calc(var(--kf-space-xs) - var(--_pad-y));width:var(--_line);background:var(--kf-color-border)}.kf-skeleton-preset__timeline-node{flex:none;width:var(--_node);height:var(--_node);border-radius:50%}.kf-skeleton-preset__timeline-text{flex:1;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;min-height:var(--_node)}.kf-skeleton-preset__timeline-title{font-weight:700;font-size:var(--kf-font-size-body)}.kf-skeleton-preset__timeline-meta{font-size:var(--kf-font-size-body-sm)}.kf-skeleton-preset__header{display:flex;align-items:center;gap:var(--kf-space-md);padding-bottom:var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-skeleton-preset__header-icon{flex:none;width:52px;height:52px;border:1px solid transparent;border-radius:var(--kf-radius-md)}.kf-skeleton-preset__header-heading{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}.kf-skeleton-preset__header-title{font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-md);font-weight:var(--kf-font-weight-title);line-height:1.2}.kf-skeleton-preset__header-subtitle{font-size:.9375rem}@media(max-width:900px){.kf-skeleton-preset__header-icon{width:40px;height:40px}.kf-skeleton-preset__header-title{font-size:var(--kf-font-size-title-sm)}.kf-skeleton-preset__header-subtitle{font-size:var(--kf-font-size-label)}}\n"], dependencies: [{ kind: "component", type: Card, selector: "kf-card", inputs: ["flush", "gap", "loading"] }, { kind: "component", type: DataTable, selector: "kf-data-table", inputs: ["columns", "rows", "loading", "skeletonRows", "rowKey", "flush", "cardable", "defaultView", "showViewToggle", "cardMinWidth", "autoCards", "cardRows", "selectable", "selected", "rowSelectable", "selectLabel", "selectPageLabel", "selectedCountLabel", "stickyHeader", "maxHeight", "cardMenu", "cardMenuLabel", "cardOpenLabel", "render", "cellTemplates", "density", "rowClickable", "rowFocusable", "cellAriaLabel", "ariaLabel", "currentRowKey", "pageSize", "pageSizeOptions", "page", "keepPageOnRowsChange", "itemLabel", "sort", "view"], outputs: ["selectedChange", "cardMenuSelect", "rowClick", "cellClick", "pageChange", "pageSizeChange", "sortChange", "viewChange"] }, { kind: "component", type: DocumentRow, selector: "kf-document-row", inputs: ["icon", "tone", "title", "meta", "href", "downloadLabel", "pendingLabel", "loading"] }, { kind: "component", type: Skeleton, selector: "kf-skeleton", inputs: ["variant", "width", "height"] }, { kind: "component", type: StatCard, selector: "kf-stat-card", inputs: ["icon", "tone", "value", "label", "note", "bar", "hint", "badge", "badgeTone", "pressed", "density", "loading", "clickable"], outputs: ["cardClick"] }] });
7543
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: SkeletonPreset, isStandalone: true, selector: "kf-skeleton-preset", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n [class]=\"'kf-skeleton-preset kf-skeleton-preset--' + variant()\"\n aria-busy=\"true\"\n [style.--kf-skeleton-preset-columns]=\"columns() ?? null\"\n>\n @if (label()) {\n <span class=\"kf-sr-only\" role=\"status\">{{ label() }}</span>\n }\n @switch (variant()) {\n @case ('kpi-grid') {\n <div class=\"kf-skeleton-preset__grid\" [class.kf-skeleton-preset__grid--fixed]=\"!!columns()\">\n @for (i of items(); track i) {\n <kf-stat-card [loading]=\"true\" icon=\"bell\" value=\"0\" label=\"Etiqueta\" note=\"Nota\" />\n }\n </div>\n }\n @case ('card-grid') {\n <div class=\"kf-skeleton-preset__grid\" [class.kf-skeleton-preset__grid--fixed]=\"!!columns()\">\n @for (i of items(); track i) {\n <kf-card gap=\"sm\" aria-hidden=\"true\">\n <kf-skeleton variant=\"rect\" height=\"7.5rem\" />\n <kf-skeleton width=\"60%\" height=\"1.25rem\" />\n <kf-skeleton />\n <kf-skeleton width=\"80%\" />\n </kf-card>\n }\n </div>\n }\n @case ('form') {\n <div\n class=\"kf-skeleton-preset__form\"\n [class.kf-skeleton-preset__form--two]=\"formColumns() === 2\"\n aria-hidden=\"true\"\n >\n @for (i of items(); track i) {\n <div class=\"kf-skeleton-preset__field\">\n <span\n class=\"kf-skeleton-preset__label kf-overline-text kf-bone\"\n style=\"--kf-bone-width: 30%\"\n >\n Etiqueta\n </span>\n <span class=\"kf-skeleton-preset__control\">\n <span class=\"kf-skeleton-preset__value kf-bone\" style=\"--kf-bone-width: 55%\"\n >Valor</span\n >\n </span>\n </div>\n }\n </div>\n }\n @case ('list') {\n <div class=\"kf-skeleton-preset__stack\">\n @for (i of items(); track i) {\n <kf-document-row [loading]=\"true\" title=\"Documento\" meta=\"Archivo \u00B7 120 KB\" />\n }\n </div>\n }\n @case ('table') {\n <kf-data-table\n [columns]=\"tableColumns()\"\n [rows]=\"[]\"\n [loading]=\"true\"\n [skeletonRows]=\"total()\"\n />\n }\n @case ('timeline') {\n <div class=\"kf-skeleton-preset__timeline\" aria-hidden=\"true\">\n <div class=\"kf-skeleton-preset__timeline-toolbar\">\n <span class=\"kf-skeleton-preset__timeline-heading kf-bone\" style=\"--kf-bone-width: 30%\">\n Etapas\n </span>\n <span class=\"kf-skeleton-preset__timeline-toggle kf-bone\" style=\"--kf-bone-width: 7rem\">\n Expandir todo\n </span>\n </div>\n <ol class=\"kf-skeleton-preset__timeline-list\">\n @for (i of items(); track i) {\n <li class=\"kf-skeleton-preset__timeline-group\">\n <span class=\"kf-skeleton-preset__timeline-node kf-bone-fill\"></span>\n <span class=\"kf-skeleton-preset__timeline-text\">\n <span\n class=\"kf-skeleton-preset__timeline-title kf-bone\"\n style=\"--kf-bone-width: 45%\"\n >\n Etapa\n </span>\n <span\n class=\"kf-skeleton-preset__timeline-meta kf-bone\"\n style=\"--kf-bone-width: 30%\"\n >\n Detalle\n </span>\n </span>\n </li>\n }\n </ol>\n </div>\n }\n @case ('detail-header') {\n <div class=\"kf-skeleton-preset__header\" aria-hidden=\"true\">\n <span class=\"kf-skeleton-preset__header-icon kf-bone-fill\"></span>\n <span class=\"kf-skeleton-preset__header-heading\">\n <span class=\"kf-skeleton-preset__header-title kf-bone\" style=\"--kf-bone-width: 40%\">\n T\u00EDtulo\n </span>\n <span class=\"kf-skeleton-preset__header-subtitle kf-bone\" style=\"--kf-bone-width: 60%\">\n Subt\u00EDtulo\n </span>\n </span>\n </div>\n }\n }\n</div>\n", styles: [".kf-overline-text{font-family:var(--kf-font-title);font-size:var(--kf-font-size-caption);font-weight:var(--kf-font-weight-medium);letter-spacing:.04em;text-transform:uppercase;color:var(--kf-color-text-muted)}.kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{background:linear-gradient(90deg,var(--kf-color-border) 25%,var(--kf-color-surface) 37%,var(--kf-color-border) 63%);background-size:400% 100%;animation:kf-bone-shimmer 1.4s ease infinite}.kf-bone{display:block;box-sizing:border-box;width:var(--kf-bone-width, 60%);max-width:100%;overflow:hidden;white-space:nowrap;border-radius:var(--kf-radius-xs);-webkit-user-select:none;user-select:none;pointer-events:none}.kf-bone.kf-bone{color:transparent!important;-webkit-text-fill-color:transparent}.kf-bone>*{visibility:hidden}@keyframes kf-bone-shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media(prefers-reduced-motion:reduce){.kf-bone.kf-bone,.kf-bone-fill.kf-bone-fill,.kf-bone-overlay.kf-bone-overlay:after{animation:none;background:var(--kf-color-border)}}.kf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}:host{display:block;font-family:var(--kf-font-body)}.kf-skeleton-preset__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:var(--kf-space-md)}.kf-skeleton-preset__grid--fixed{grid-template-columns:repeat(var(--kf-skeleton-preset-columns),minmax(0,1fr))}.kf-skeleton-preset__stack{display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-skeleton-preset__form{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--kf-space-md)}.kf-skeleton-preset__form--two{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:640px){.kf-skeleton-preset__form--two{grid-template-columns:minmax(0,1fr)}}.kf-skeleton-preset__field{display:flex;flex-direction:column;gap:var(--kf-space-xs)}.kf-skeleton-preset__control{display:block;padding:var(--kf-space-sm) var(--kf-space-sm);background:var(--kf-color-surface);border:1px solid var(--kf-color-border);border-radius:var(--kf-radius-sm)}.kf-skeleton-preset__timeline{--_node: var(--kf-status-node-size, 2.125rem);--_gutter: var(--kf-space-sm);--_pad-y: var(--kf-space-sm);--_line: 2px;display:flex;flex-direction:column;gap:var(--kf-space-sm)}.kf-skeleton-preset__timeline-toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--kf-space-sm)}.kf-skeleton-preset__timeline-heading{font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-sm);font-weight:var(--kf-font-weight-title)}.kf-skeleton-preset__timeline-toggle{box-sizing:border-box;padding:6px var(--kf-space-sm);border:1px solid transparent;font-size:.85rem;font-weight:600;border-radius:var(--kf-radius-sm)}@media(max-width:640px),(pointer:coarse){.kf-skeleton-preset__timeline-toggle{min-height:44px}}.kf-skeleton-preset__timeline-list{list-style:none;margin:0;padding:0}.kf-skeleton-preset__timeline-group{position:relative;display:flex;align-items:flex-start;gap:var(--kf-space-md);box-sizing:border-box;min-height:2.75rem;padding:var(--_pad-y) var(--_gutter)}.kf-skeleton-preset__timeline-group:not(:last-child):before{content:\"\";position:absolute;inset-inline-start:calc(var(--_gutter) + var(--_node) / 2 - var(--_line) / 2);top:calc(var(--_pad-y) + var(--_node));bottom:calc(var(--kf-space-xs) - var(--_pad-y));width:var(--_line);background:var(--kf-color-border)}.kf-skeleton-preset__timeline-node{flex:none;width:var(--_node);height:var(--_node);border-radius:50%}.kf-skeleton-preset__timeline-text{flex:1;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;min-height:var(--_node)}.kf-skeleton-preset__timeline-title{font-weight:700;font-size:var(--kf-font-size-body)}.kf-skeleton-preset__timeline-meta{font-size:var(--kf-font-size-body-sm)}.kf-skeleton-preset__header{display:flex;align-items:center;gap:var(--kf-space-md);padding-bottom:var(--kf-space-lg);border-bottom:1px solid var(--kf-color-border)}.kf-skeleton-preset__header-icon{flex:none;width:52px;height:52px;border:1px solid transparent;border-radius:var(--kf-radius-md)}.kf-skeleton-preset__header-heading{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}.kf-skeleton-preset__header-title{font-family:var(--kf-font-title);font-size:var(--kf-font-size-title-md);font-weight:var(--kf-font-weight-title);line-height:1.2}.kf-skeleton-preset__header-subtitle{font-size:.9375rem}@media(max-width:900px){.kf-skeleton-preset__header-icon{width:40px;height:40px}.kf-skeleton-preset__header-title{font-size:var(--kf-font-size-title-sm)}.kf-skeleton-preset__header-subtitle{font-size:var(--kf-font-size-label)}}\n"], dependencies: [{ kind: "component", type: Card, selector: "kf-card", inputs: ["flush", "gap", "loading"] }, { kind: "component", type: DataTable, selector: "kf-data-table", inputs: ["columns", "rows", "loading", "skeletonRows", "rowKey", "flush", "cardable", "defaultView", "showViewToggle", "cardMinWidth", "autoCards", "cardRows", "selectable", "selected", "rowSelectable", "selectLabel", "selectPageLabel", "selectedCountLabel", "stickyHeader", "maxHeight", "cardMenu", "cardMenuLabel", "cardOpenLabel", "render", "cellTemplates", "density", "rowClickable", "rowFocusable", "cellAriaLabel", "ariaLabel", "currentRowKey", "pageSize", "pageSizeOptions", "page", "keepPageOnRowsChange", "itemLabel", "sort", "view"], outputs: ["selectedChange", "cardMenuSelect", "rowClick", "cellClick", "pageChange", "pageSizeChange", "sortChange", "viewChange"] }, { kind: "component", type: DocumentRow, selector: "kf-document-row", inputs: ["icon", "tone", "title", "meta", "href", "downloadLabel", "pendingLabel", "loading"] }, { kind: "component", type: Skeleton, selector: "kf-skeleton", inputs: ["variant", "width", "height"] }, { kind: "component", type: StatCard, selector: "kf-stat-card", inputs: ["icon", "tone", "value", "label", "note", "bar", "hint", "badge", "badgeTone", "pressed", "ariaExpanded", "ariaHaspopup", "ariaControls", "density", "loading", "clickable"], outputs: ["cardClick"] }] });
7289
7544
  }
7290
7545
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SkeletonPreset, decorators: [{
7291
7546
  type: Component,
@@ -9645,7 +9900,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
9645
9900
  * horizontal (para mobile: los filtros no ocupan más alto que una fila); el
9646
9901
  * default `wrap` los reparte en varias líneas. `deselectable` permite
9647
9902
  * quitar el filtro volviendo a tocar el chip activo (emite `''`), para el
9648
- * caso "ningún chip = sin filtro".
9903
+ * caso "ningún chip = sin filtro". En `scroll`, cuando el chip activo cambia
9904
+ * (también al montar con un `value` inicial, ej. un filtro que viene en la
9905
+ * URL) el grupo se desplaza lo mínimo necesario para que quede a la vista;
9906
+ * solo mueve el scroll horizontal del propio grupo, nunca el de la página, y
9907
+ * no se repite cuando solo cambia un contador.
9649
9908
  *
9650
9909
  * <kf-filter-chips ariaLabel="Filtrar por estado"
9651
9910
  * [options]="[{ value: '', label: 'Todas', count: 12 }]"
@@ -9666,9 +9925,24 @@ class FilterChips {
9666
9925
  /** Tocar el chip activo lo desactiva y emite `''`. Default `false` (comportamiento histórico). */
9667
9926
  deselectable = input(false, { ...(ngDevMode ? { debugName: "deselectable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
9668
9927
  valueChange = output();
9928
+ group = viewChild.required('group', /* @ts-ignore */
9929
+ ...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
9669
9930
  /** Normaliza cada opción string/objeto a la forma `{ value, label, count? }`. */
9670
9931
  normalizedOptions = computed(() => this.options().map((option) => typeof option === 'string' ? { value: option, label: option } : option), /* @ts-ignore */
9671
9932
  ...(ngDevMode ? [{ debugName: "normalizedOptions" }] : /* istanbul ignore next */ []));
9933
+ /** Posición del chip activo (-1 si ninguno). Un contador nuevo no la cambia, así no re-dispara el scroll. */
9934
+ activeIndex = computed(() => this.normalizedOptions().findIndex((option) => option.value === this.value()), /* @ts-ignore */
9935
+ ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
9936
+ constructor() {
9937
+ afterRenderEffect(() => {
9938
+ const index = this.activeIndex();
9939
+ if (this.layout() !== 'scroll' || index < 0)
9940
+ return;
9941
+ const chip = this.group().nativeElement.children.item(index);
9942
+ if (chip)
9943
+ this.revealHorizontally(this.group().nativeElement, chip);
9944
+ });
9945
+ }
9672
9946
  select(value) {
9673
9947
  if (value === this.value()) {
9674
9948
  if (this.deselectable() && value !== '') {
@@ -9678,13 +9952,28 @@ class FilterChips {
9678
9952
  }
9679
9953
  this.valueChange.emit(value);
9680
9954
  }
9955
+ /**
9956
+ * Desplaza el grupo lo mínimo para que el chip entre completo. Se ajusta
9957
+ * `scrollLeft` a mano (y no `scrollIntoView`) porque este último también
9958
+ * puede mover el scroll vertical de la página.
9959
+ */
9960
+ revealHorizontally(group, chip) {
9961
+ const groupBox = group.getBoundingClientRect();
9962
+ const chipBox = chip.getBoundingClientRect();
9963
+ if (chipBox.left < groupBox.left) {
9964
+ group.scrollLeft -= groupBox.left - chipBox.left;
9965
+ }
9966
+ else if (chipBox.right > groupBox.right) {
9967
+ group.scrollLeft += chipBox.right - groupBox.right;
9968
+ }
9969
+ }
9681
9970
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FilterChips, deps: [], target: i0.ɵɵFactoryTarget.Component });
9682
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: FilterChips, isStandalone: true, selector: "kf-filter-chips", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, deselectable: { classPropertyName: "deselectable", publicName: "deselectable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<div\n class=\"kf-filter-chips\"\n [class.kf-filter-chips--scroll]=\"layout() === 'scroll'\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n>\n @for (option of normalizedOptions(); track option.value) {\n <button\n type=\"button\"\n class=\"kf-filter-chips__chip\"\n [class.kf-filter-chips__chip--active]=\"option.value === value()\"\n [attr.aria-pressed]=\"option.value === value()\"\n (click)=\"select(option.value)\"\n >\n {{ option.label }}\n @if (option.count !== undefined) {\n <span class=\"kf-filter-chips__count\">{{ option.count }}</span>\n }\n </button>\n }\n</div>\n", styles: [":host{display:block}.kf-filter-chips{display:flex;flex-wrap:wrap;gap:var(--kf-space-xs)}.kf-filter-chips--scroll{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px;margin:-3px}.kf-filter-chips__chip{display:inline-flex;align-items:center;gap:var(--kf-space-xs);font:inherit;flex:none;white-space:nowrap;padding:var(--kf-space-xs) var(--kf-filter-chips-padding-inline, var(--kf-space-md));border-radius:var(--kf-radius-pill);border:1px solid var(--kf-color-border);background:var(--kf-color-surface);color:var(--kf-color-text);cursor:pointer;transition:background .14s,border-color .14s,color .14s}.kf-filter-chips__chip:hover:not(.kf-filter-chips__chip--active){border-color:var(--kf-color-border-strong)}.kf-filter-chips__chip:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-filter-chips__chip--active{background:var(--kf-color-primary);border-color:var(--kf-color-primary);color:var(--kf-color-white)}.kf-filter-chips__count{font-size:var(--kf-font-size-caption);font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.kf-filter-chips__chip{transition:none}}\n"] });
9971
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: FilterChips, isStandalone: true, selector: "kf-filter-chips", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, deselectable: { classPropertyName: "deselectable", publicName: "deselectable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "group", first: true, predicate: ["group"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #group\n class=\"kf-filter-chips\"\n [class.kf-filter-chips--scroll]=\"layout() === 'scroll'\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n>\n @for (option of normalizedOptions(); track option.value) {\n <button\n type=\"button\"\n class=\"kf-filter-chips__chip\"\n [class.kf-filter-chips__chip--active]=\"option.value === value()\"\n [attr.aria-pressed]=\"option.value === value()\"\n (click)=\"select(option.value)\"\n >\n {{ option.label }}\n @if (option.count !== undefined) {\n <span class=\"kf-filter-chips__count\">{{ option.count }}</span>\n }\n </button>\n }\n</div>\n", styles: [":host{display:block}.kf-filter-chips{display:flex;flex-wrap:wrap;gap:var(--kf-space-xs)}.kf-filter-chips--scroll{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px;margin:-3px}.kf-filter-chips__chip{display:inline-flex;align-items:center;gap:var(--kf-space-xs);font:inherit;flex:none;white-space:nowrap;padding:var(--kf-space-xs) var(--kf-filter-chips-padding-inline, var(--kf-space-md));border-radius:var(--kf-radius-pill);border:1px solid var(--kf-color-border);background:var(--kf-color-surface);color:var(--kf-color-text);cursor:pointer;transition:background .14s,border-color .14s,color .14s}.kf-filter-chips__chip:hover:not(.kf-filter-chips__chip--active){border-color:var(--kf-color-border-strong)}.kf-filter-chips__chip:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-filter-chips__chip--active{background:var(--kf-color-primary);border-color:var(--kf-color-primary);color:var(--kf-color-white)}.kf-filter-chips__count{font-size:var(--kf-font-size-caption);font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.kf-filter-chips__chip{transition:none}}\n"] });
9683
9972
  }
9684
9973
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FilterChips, decorators: [{
9685
9974
  type: Component,
9686
- args: [{ selector: 'kf-filter-chips', template: "<div\n class=\"kf-filter-chips\"\n [class.kf-filter-chips--scroll]=\"layout() === 'scroll'\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n>\n @for (option of normalizedOptions(); track option.value) {\n <button\n type=\"button\"\n class=\"kf-filter-chips__chip\"\n [class.kf-filter-chips__chip--active]=\"option.value === value()\"\n [attr.aria-pressed]=\"option.value === value()\"\n (click)=\"select(option.value)\"\n >\n {{ option.label }}\n @if (option.count !== undefined) {\n <span class=\"kf-filter-chips__count\">{{ option.count }}</span>\n }\n </button>\n }\n</div>\n", styles: [":host{display:block}.kf-filter-chips{display:flex;flex-wrap:wrap;gap:var(--kf-space-xs)}.kf-filter-chips--scroll{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px;margin:-3px}.kf-filter-chips__chip{display:inline-flex;align-items:center;gap:var(--kf-space-xs);font:inherit;flex:none;white-space:nowrap;padding:var(--kf-space-xs) var(--kf-filter-chips-padding-inline, var(--kf-space-md));border-radius:var(--kf-radius-pill);border:1px solid var(--kf-color-border);background:var(--kf-color-surface);color:var(--kf-color-text);cursor:pointer;transition:background .14s,border-color .14s,color .14s}.kf-filter-chips__chip:hover:not(.kf-filter-chips__chip--active){border-color:var(--kf-color-border-strong)}.kf-filter-chips__chip:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-filter-chips__chip--active{background:var(--kf-color-primary);border-color:var(--kf-color-primary);color:var(--kf-color-white)}.kf-filter-chips__count{font-size:var(--kf-font-size-caption);font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.kf-filter-chips__chip{transition:none}}\n"] }]
9687
- }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], deselectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "deselectable", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
9975
+ args: [{ selector: 'kf-filter-chips', template: "<div\n #group\n class=\"kf-filter-chips\"\n [class.kf-filter-chips--scroll]=\"layout() === 'scroll'\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() || null\"\n>\n @for (option of normalizedOptions(); track option.value) {\n <button\n type=\"button\"\n class=\"kf-filter-chips__chip\"\n [class.kf-filter-chips__chip--active]=\"option.value === value()\"\n [attr.aria-pressed]=\"option.value === value()\"\n (click)=\"select(option.value)\"\n >\n {{ option.label }}\n @if (option.count !== undefined) {\n <span class=\"kf-filter-chips__count\">{{ option.count }}</span>\n }\n </button>\n }\n</div>\n", styles: [":host{display:block}.kf-filter-chips{display:flex;flex-wrap:wrap;gap:var(--kf-space-xs)}.kf-filter-chips--scroll{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px;margin:-3px}.kf-filter-chips__chip{display:inline-flex;align-items:center;gap:var(--kf-space-xs);font:inherit;flex:none;white-space:nowrap;padding:var(--kf-space-xs) var(--kf-filter-chips-padding-inline, var(--kf-space-md));border-radius:var(--kf-radius-pill);border:1px solid var(--kf-color-border);background:var(--kf-color-surface);color:var(--kf-color-text);cursor:pointer;transition:background .14s,border-color .14s,color .14s}.kf-filter-chips__chip:hover:not(.kf-filter-chips__chip--active){border-color:var(--kf-color-border-strong)}.kf-filter-chips__chip:focus-visible{outline:none;box-shadow:var(--kf-shadow-focus)}.kf-filter-chips__chip--active{background:var(--kf-color-primary);border-color:var(--kf-color-primary);color:var(--kf-color-white)}.kf-filter-chips__count{font-size:var(--kf-font-size-caption);font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.kf-filter-chips__chip{transition:none}}\n"] }]
9976
+ }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], deselectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "deselectable", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], group: [{ type: i0.ViewChild, args: ['group', { isSignal: true }] }] } });
9688
9977
 
9689
9978
  const TABBABLE$1 = 'button:not([disabled])';
9690
9979
  /**