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

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.
@@ -211,7 +211,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
211
211
 
212
212
  /* eslint-disable @typescript-eslint/member-ordering, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
213
213
  /**
214
- * Icon component - Heroicons wrapper for displaying SVG icons
214
+ * Icon component - Tabler Icons wrapper for displaying SVG icons
215
215
  *
216
216
  * Features:
217
217
  * - Signal-based reactive API
@@ -219,7 +219,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
219
219
  * - Multiple size options (xs, sm, md, lg, xl)
220
220
  * - Custom color support (CSS colors, variables)
221
221
  * - Accessibility attributes (ARIA labels, decorative icons)
222
- * - Dynamic SVG loading from Heroicons
222
+ * - Dynamic SVG loading from Tabler Icons
223
223
  *
224
224
  * @example
225
225
  * ```html
@@ -246,7 +246,7 @@ class IconComponent {
246
246
  sanitizer = inject(DomSanitizer);
247
247
  http = inject(HttpClient);
248
248
  /**
249
- * Icon name from Heroicons library
249
+ * Icon name from Tabler Icons library
250
250
  * @example "user", "check", "arrow-right"
251
251
  */
252
252
  name = input('', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
@@ -285,13 +285,13 @@ class IconComponent {
285
285
  */
286
286
  decorative = input(false, ...(ngDevMode ? [{ debugName: "decorative" }] : /* istanbul ignore next */ []));
287
287
  /**
288
- * SVG content loaded from Heroicons
288
+ * SVG content loaded from Tabler Icons
289
289
  * @internal
290
290
  */
291
291
  svgContent = signal('', ...(ngDevMode ? [{ debugName: "svgContent" }] : /* istanbul ignore next */ []));
292
292
  /**
293
- * Alias map for non-Heroicon names (e.g. Material Design names)
294
- * Maps alternative names to their Heroicon equivalents
293
+ * Alias map for non-Tabler names (e.g. Material Design names)
294
+ * Maps alternative names to their Tabler equivalents
295
295
  * @internal
296
296
  */
297
297
  iconAliasMap = {
@@ -478,7 +478,8 @@ class IconComponent {
478
478
  if (!rawName)
479
479
  return '';
480
480
  const iconName = this.iconAliasMap[rawName] ?? rawName;
481
- return `/heroicons/24/${iconVariant}/${iconName}.svg`;
481
+ const tablerVariant = iconVariant === 'solid' ? 'filled' : 'outline';
482
+ return `/tabler-icons/${tablerVariant}/${iconName}.svg`;
482
483
  }, ...(ngDevMode ? [{ debugName: "iconPath" }] : /* istanbul ignore next */ []));
483
484
  /**
484
485
  * Computed size in pixels
@@ -518,7 +519,7 @@ class IconComponent {
518
519
  this.svgContent.set('');
519
520
  return;
520
521
  }
521
- // Resolve aliases (Material Design Heroicons)
522
+ // Resolve aliases (Material Design -> Tabler)
522
523
  const iconName = this.iconAliasMap[rawName] ?? rawName;
523
524
  // Try to use inline SVG first (avoids HTTP request)
524
525
  const inlineSvg = this.inlineSvgMap[iconName]?.[iconVariant];
@@ -1303,12 +1304,12 @@ class InputComponent {
1303
1304
  */
1304
1305
  helperText = input(...(ngDevMode ? [undefined, { debugName: "helperText" }] : /* istanbul ignore next */ []));
1305
1306
  /**
1306
- * Icon to display before input text (Heroicons name)
1307
+ * Icon to display before input text (Tabler icon name)
1307
1308
  * @example 'envelope'
1308
1309
  */
1309
1310
  iconBefore = input(...(ngDevMode ? [undefined, { debugName: "iconBefore" }] : /* istanbul ignore next */ []));
1310
1311
  /**
1311
- * Icon to display after input text (Heroicons name)
1312
+ * Icon to display after input text (Tabler icon name)
1312
1313
  * @example 'eye'
1313
1314
  */
1314
1315
  iconAfter = input(...(ngDevMode ? [undefined, { debugName: "iconAfter" }] : /* istanbul ignore next */ []));
@@ -6397,7 +6398,7 @@ class TabComponent {
6397
6398
  */
6398
6399
  disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
6399
6400
  /**
6400
- * Optional icon name (Heroicons)
6401
+ * Optional icon name (Tabler Icons)
6401
6402
  */
6402
6403
  icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
6403
6404
  /**
@@ -6852,7 +6853,7 @@ class ChipComponent {
6852
6853
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
6853
6854
  /** Size of the chip */
6854
6855
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
6855
- /** Icon name from Heroicons */
6856
+ /** Icon name from Tabler Icons */
6856
6857
  icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
6857
6858
  /** Whether the chip can be removed */
6858
6859
  removable = input(false, ...(ngDevMode ? [{ debugName: "removable" }] : /* istanbul ignore next */ []));
@@ -7277,7 +7278,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
7277
7278
  *
7278
7279
  * Features:
7279
7280
  * - Consistent label-value layout for read-only data
7280
- * - Optional leading icon from Heroicons
7281
+ * - Optional leading icon from Tabler Icons
7281
7282
  * - Compact mode for dense layouts
7282
7283
  * - Content projection for custom value rendering
7283
7284
  * - Configurable icon size (xs, sm, md)
@@ -7298,7 +7299,7 @@ class FieldGroupComponent {
7298
7299
  */
7299
7300
  value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
7300
7301
  /**
7301
- * Optional icon name from Heroicons
7302
+ * Optional icon name from Tabler Icons
7302
7303
  */
7303
7304
  icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
7304
7305
  /**
@@ -7599,7 +7600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
7599
7600
  *
7600
7601
  * Features:
7601
7602
  * - Compact (sm) and page-level (md, lg) size modes
7602
- * - Optional icon from Heroicons library
7603
+ * - Optional icon from Tabler Icons library
7603
7604
  * - Heading and description text
7604
7605
  * - Action slot for projected CTA buttons
7605
7606
  * - Centered layout with visual hierarchy
@@ -7624,7 +7625,7 @@ class EmptyStateComponent {
7624
7625
  */
7625
7626
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
7626
7627
  /**
7627
- * Heroicon name to display above the heading
7628
+ * Tabler icon name to display above the heading
7628
7629
  */
7629
7630
  icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
7630
7631
  /**
@@ -8753,7 +8754,7 @@ class StatTrendComponent {
8753
8754
  sparklineData = input([], ...(ngDevMode ? [{ debugName: "sparklineData" }] : /* istanbul ignore next */ []));
8754
8755
  /** Color of the sparkline. Auto-matched to trend direction if not set. */
8755
8756
  sparklineColor = input(undefined, ...(ngDevMode ? [{ debugName: "sparklineColor" }] : /* istanbul ignore next */ []));
8756
- /** Optional icon name (Heroicon). */
8757
+ /** Optional icon name (Tabler icon). */
8757
8758
  icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
8758
8759
  resolvedDirection = computed(() => {
8759
8760
  const dir = this.direction();