@life-cockpit/angular-ui-kit 1.11.4 → 1.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@life-cockpit/angular-ui-kit",
3
- "version": "1.11.4",
3
+ "version": "1.11.5",
4
4
  "description": "Life Cockpit Design System - Angular UI component library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -435,7 +435,7 @@ declare class CheckboxComponent implements ControlValueAccessor {
435
435
  type IconVariant = 'outline' | 'solid';
436
436
  type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
437
437
  /**
438
- * Icon component - Tabler Icons wrapper for displaying SVG icons
438
+ * Icon component - Heroicons wrapper for displaying SVG icons
439
439
  *
440
440
  * Features:
441
441
  * - Signal-based reactive API
@@ -443,7 +443,7 @@ type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
443
443
  * - Multiple size options (xs, sm, md, lg, xl)
444
444
  * - Custom color support (CSS colors, variables)
445
445
  * - Accessibility attributes (ARIA labels, decorative icons)
446
- * - Dynamic SVG loading from Tabler Icons
446
+ * - Dynamic SVG loading from Heroicons
447
447
  *
448
448
  * @example
449
449
  * ```html
@@ -470,7 +470,7 @@ declare class IconComponent {
470
470
  private readonly sanitizer;
471
471
  private readonly http;
472
472
  /**
473
- * Icon name from Tabler Icons library
473
+ * Icon name from Heroicons library
474
474
  * @example "user", "check", "arrow-right"
475
475
  */
476
476
  readonly name: _angular_core.InputSignal<string>;
@@ -509,13 +509,13 @@ declare class IconComponent {
509
509
  */
510
510
  readonly decorative: _angular_core.InputSignal<boolean>;
511
511
  /**
512
- * SVG content loaded from Tabler Icons
512
+ * SVG content loaded from Heroicons
513
513
  * @internal
514
514
  */
515
515
  readonly svgContent: _angular_core.WritableSignal<SafeHtml>;
516
516
  /**
517
- * Alias map for non-Tabler names (e.g. Material Design names)
518
- * Maps alternative names to their Tabler equivalents
517
+ * Alias map for non-Heroicon names (e.g. Material Design names)
518
+ * Maps alternative names to their Heroicon equivalents
519
519
  * @internal
520
520
  */
521
521
  private readonly iconAliasMap;
@@ -794,12 +794,12 @@ declare class InputComponent implements ControlValueAccessor {
794
794
  */
795
795
  readonly helperText: _angular_core.InputSignal<string | undefined>;
796
796
  /**
797
- * Icon to display before input text (Tabler icon name)
797
+ * Icon to display before input text (Heroicons name)
798
798
  * @example 'envelope'
799
799
  */
800
800
  readonly iconBefore: _angular_core.InputSignal<string | undefined>;
801
801
  /**
802
- * Icon to display after input text (Tabler icon name)
802
+ * Icon to display after input text (Heroicons name)
803
803
  * @example 'eye'
804
804
  */
805
805
  readonly iconAfter: _angular_core.InputSignal<string | undefined>;
@@ -3317,7 +3317,7 @@ declare class TabComponent {
3317
3317
  */
3318
3318
  readonly disabled: _angular_core.InputSignal<boolean>;
3319
3319
  /**
3320
- * Optional icon name (Tabler Icons)
3320
+ * Optional icon name (Heroicons)
3321
3321
  */
3322
3322
  readonly icon: _angular_core.InputSignal<string | undefined>;
3323
3323
  /**
@@ -3717,7 +3717,7 @@ declare class ChipComponent {
3717
3717
  variant: _angular_core.InputSignal<ChipVariant>;
3718
3718
  /** Size of the chip */
3719
3719
  size: _angular_core.InputSignal<ChipSize>;
3720
- /** Icon name from Tabler Icons */
3720
+ /** Icon name from Heroicons */
3721
3721
  icon: _angular_core.InputSignal<string | undefined>;
3722
3722
  /** Whether the chip can be removed */
3723
3723
  removable: _angular_core.InputSignal<boolean>;
@@ -3772,6 +3772,8 @@ interface TableColumn {
3772
3772
  cssClass?: string;
3773
3773
  /** Optional tooltip shown on hover over the column header */
3774
3774
  tooltip?: string;
3775
+ /** Optional formatter for cell output when no custom template is used */
3776
+ formatter?: (value: unknown, row: Record<string, unknown>, column: TableColumn, rowIndex: number) => unknown;
3775
3777
  /** Input type for inline editing (default: text) */
3776
3778
  editType?: 'text' | 'number' | 'select';
3777
3779
  /** Options for select edit type */
@@ -3802,7 +3804,9 @@ type TableSize = 'sm' | 'md' | 'lg';
3802
3804
  * - Variant styles (default, striped, bordered)
3803
3805
  * - Size presets (sm, md, lg)
3804
3806
  * - Hoverable row highlighting
3807
+ * - Per-column formatter callbacks for display values
3805
3808
  * - Custom cell templates via content projection
3809
+ * - Composed cells (e.g. avatar + badge + actions)
3806
3810
  * - Responsive horizontal scrolling
3807
3811
  * - Empty state text for no data
3808
3812
  * - Accessible with proper table semantics
@@ -3812,6 +3816,20 @@ type TableSize = 'sm' | 'md' | 'lg';
3812
3816
  * <lc-table [columns]="columns" [data]="data" variant="striped" [hoverable]="true"
3813
3817
  * (sort)="onSort($event)" (rowClick)="onRowClick($event)" />
3814
3818
  * ```
3819
+ *
3820
+ * @example
3821
+ * ```ts
3822
+ * columns: TableColumn[] = [
3823
+ * {
3824
+ * key: 'amount',
3825
+ * label: 'Amount',
3826
+ * formatter: (value) => new Intl.NumberFormat('de-DE', {
3827
+ * style: 'currency',
3828
+ * currency: 'EUR',
3829
+ * }).format(Number(value ?? 0)),
3830
+ * },
3831
+ * ];
3832
+ * ```
3815
3833
  */
3816
3834
  declare class TableComponent {
3817
3835
  /** Custom cell templates */
@@ -3894,6 +3912,7 @@ declare class TableComponent {
3894
3912
  getAriaSort(columnKey: string): string | null;
3895
3913
  getHeaderClasses(column: TableColumn): string;
3896
3914
  getCellValue(row: Record<string, unknown>, columnKey: string): unknown;
3915
+ getFormattedCellValue(row: Record<string, unknown>, column: TableColumn, relativeRowIndex: number): unknown;
3897
3916
  getCellTemplate(columnKey: string): TableCellDirective | undefined;
3898
3917
  hasCustomTemplate(columnKey: string): boolean;
3899
3918
  onRowClick(row: Record<string, unknown>): void;
@@ -3923,7 +3942,7 @@ declare class TableComponent {
3923
3942
  *
3924
3943
  * Features:
3925
3944
  * - Consistent label-value layout for read-only data
3926
- * - Optional leading icon from Tabler Icons
3945
+ * - Optional leading icon from Heroicons
3927
3946
  * - Compact mode for dense layouts
3928
3947
  * - Content projection for custom value rendering
3929
3948
  * - Configurable icon size (xs, sm, md)
@@ -3944,7 +3963,7 @@ declare class FieldGroupComponent {
3944
3963
  */
3945
3964
  value: _angular_core.InputSignal<string | undefined>;
3946
3965
  /**
3947
- * Optional icon name from Tabler Icons
3966
+ * Optional icon name from Heroicons
3948
3967
  */
3949
3968
  icon: _angular_core.InputSignal<string | undefined>;
3950
3969
  /**
@@ -4165,7 +4184,7 @@ type EmptyStateSize = 'sm' | 'md' | 'lg';
4165
4184
  *
4166
4185
  * Features:
4167
4186
  * - Compact (sm) and page-level (md, lg) size modes
4168
- * - Optional icon from Tabler Icons library
4187
+ * - Optional icon from Heroicons library
4169
4188
  * - Heading and description text
4170
4189
  * - Action slot for projected CTA buttons
4171
4190
  * - Centered layout with visual hierarchy
@@ -4190,7 +4209,7 @@ declare class EmptyStateComponent {
4190
4209
  */
4191
4210
  readonly size: _angular_core.InputSignal<EmptyStateSize>;
4192
4211
  /**
4193
- * Tabler icon name to display above the heading
4212
+ * Heroicon name to display above the heading
4194
4213
  */
4195
4214
  readonly icon: _angular_core.InputSignal<string | undefined>;
4196
4215
  /**
@@ -4594,7 +4613,7 @@ declare class StatTrendComponent {
4594
4613
  sparklineData: _angular_core.InputSignal<number[]>;
4595
4614
  /** Color of the sparkline. Auto-matched to trend direction if not set. */
4596
4615
  sparklineColor: _angular_core.InputSignal<SparklineColor | undefined>;
4597
- /** Optional icon name (Tabler icon). */
4616
+ /** Optional icon name (Heroicon). */
4598
4617
  icon: _angular_core.InputSignal<string>;
4599
4618
  protected readonly resolvedDirection: _angular_core.Signal<StatTrendDirection>;
4600
4619
  protected readonly trendColorClass: _angular_core.Signal<string>;