pdm-ui-kit 0.1.19 → 0.1.20

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.
@@ -1,7 +1,9 @@
1
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare type PdmIconLibrary = 'lucide' | 'tabler' | 'hugeicons' | 'phosphor' | 'remix';
3
4
  export declare type PdmIconName = 'command' | 'check' | 'check-circle' | 'circle' | 'dot' | 'x' | 'alert-circle' | 'info' | 'loader-2' | 'menu' | 'search' | 'calendar' | 'panel-left' | 'monitor' | 'laptop' | 'sun' | 'moon' | 'chevron-down' | 'chevron-up' | 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right' | 'chevrons-up-down' | 'arrow-up-down' | 'ellipsis' | 'filter' | 'sort-asc' | 'sort-desc' | 'plus' | 'minus' | 'copy' | 'pencil' | 'trash-2' | 'download' | 'upload' | 'home' | 'mail' | 'phone' | 'log-in' | 'log-out' | 'user' | 'settings' | 'credit-card' | 'smile' | 'calculator' | 'external-link' | 'folder' | 'arrow-up-right';
4
5
  export declare class PdmIconComponent {
6
+ private readonly sanitizer;
5
7
  name: PdmIconName | string;
6
8
  library: PdmIconLibrary;
7
9
  assetUrl: string | null;
@@ -10,9 +12,17 @@ export declare class PdmIconComponent {
10
12
  className: string;
11
13
  ariaLabel: string | null;
12
14
  decorative: boolean;
15
+ private readonly lucideIndex;
16
+ private readonly aliasMapByLibrary;
17
+ constructor(sanitizer: DomSanitizer);
13
18
  get resolvedStrokeWidth(): number;
19
+ get resolvedSize(): number;
14
20
  get iconKey(): string;
15
- private readonly aliasMapByLibrary;
21
+ get svgMarkup(): SafeHtml;
22
+ private resolveIconNode;
23
+ private normalizeIconName;
24
+ private buildLucideIndex;
25
+ private escapeAttr;
16
26
  static ɵfac: i0.ɵɵFactoryDeclaration<PdmIconComponent, never>;
17
27
  static ɵcmp: i0.ɵɵComponentDeclaration<PdmIconComponent, "pdm-icon", never, { "name": "name"; "library": "library"; "assetUrl": "assetUrl"; "size": "size"; "strokeWidth": "strokeWidth"; "className": "className"; "ariaLabel": "ariaLabel"; "decorative": "decorative"; }, {}, never, never, false>;
18
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdm-ui-kit",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "PDM UI Kit Angular components",
5
5
  "author": "Corelusa",
6
6
  "license": "MIT",
@@ -17,7 +17,9 @@
17
17
  "sideEffects": false,
18
18
  "peerDependencies": {
19
19
  "@angular/common": ">=14.0.0 <16.0.0",
20
- "@angular/core": ">=14.0.0 <16.0.0"
20
+ "@angular/core": ">=14.0.0 <16.0.0",
21
+ "@angular/platform-browser": ">=14.0.0 <16.0.0",
22
+ "lucide": ">=0.575.0"
21
23
  },
22
24
  "dependencies": {
23
25
  "tslib": "^2.3.0"