@life-cockpit/angular-ui-kit 1.11.2 → 1.11.4
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 -
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
294
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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 (
|
|
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
|
|
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 */ []));
|
|
@@ -7255,7 +7256,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
7255
7256
|
*
|
|
7256
7257
|
* Features:
|
|
7257
7258
|
* - Consistent label-value layout for read-only data
|
|
7258
|
-
* - Optional leading icon from
|
|
7259
|
+
* - Optional leading icon from Tabler Icons
|
|
7259
7260
|
* - Compact mode for dense layouts
|
|
7260
7261
|
* - Content projection for custom value rendering
|
|
7261
7262
|
* - Configurable icon size (xs, sm, md)
|
|
@@ -7276,7 +7277,7 @@ class FieldGroupComponent {
|
|
|
7276
7277
|
*/
|
|
7277
7278
|
value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
7278
7279
|
/**
|
|
7279
|
-
* Optional icon name from
|
|
7280
|
+
* Optional icon name from Tabler Icons
|
|
7280
7281
|
*/
|
|
7281
7282
|
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
7282
7283
|
/**
|
|
@@ -7577,7 +7578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
7577
7578
|
*
|
|
7578
7579
|
* Features:
|
|
7579
7580
|
* - Compact (sm) and page-level (md, lg) size modes
|
|
7580
|
-
* - Optional icon from
|
|
7581
|
+
* - Optional icon from Tabler Icons library
|
|
7581
7582
|
* - Heading and description text
|
|
7582
7583
|
* - Action slot for projected CTA buttons
|
|
7583
7584
|
* - Centered layout with visual hierarchy
|
|
@@ -7602,7 +7603,7 @@ class EmptyStateComponent {
|
|
|
7602
7603
|
*/
|
|
7603
7604
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
7604
7605
|
/**
|
|
7605
|
-
|
|
7606
|
+
* Tabler icon name to display above the heading
|
|
7606
7607
|
*/
|
|
7607
7608
|
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
7608
7609
|
/**
|
|
@@ -8731,7 +8732,7 @@ class StatTrendComponent {
|
|
|
8731
8732
|
sparklineData = input([], ...(ngDevMode ? [{ debugName: "sparklineData" }] : /* istanbul ignore next */ []));
|
|
8732
8733
|
/** Color of the sparkline. Auto-matched to trend direction if not set. */
|
|
8733
8734
|
sparklineColor = input(undefined, ...(ngDevMode ? [{ debugName: "sparklineColor" }] : /* istanbul ignore next */ []));
|
|
8734
|
-
/** Optional icon name (
|
|
8735
|
+
/** Optional icon name (Tabler icon). */
|
|
8735
8736
|
icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
8736
8737
|
resolvedDirection = computed(() => {
|
|
8737
8738
|
const dir = this.direction();
|