@ngxi/lucide 0.12.0-beta.2 → 0.12.0-beta.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/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { inject, input, computed, Directive } from "@angular/core";
3
- import { DomSanitizer } from "@angular/platform-browser";
2
+ import { inject, ElementRef, Renderer2, input, computed, effect, Directive } from "@angular/core";
4
3
  const lucideAArrowDown = {
5
4
  "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3.5 13h6M2 16l4.5-9l4.5 9m7-9v9m-4-4l4 4l4-4"/>',
6
5
  "width": 24,
@@ -1088,7 +1087,7 @@ const lucideBlinds = {
1088
1087
  "viewBox": "0 0 24 24"
1089
1088
  };
1090
1089
  const lucideBlocks = {
1091
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="7" height="7" x="14" y="3" rx="1"/><path d="M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"/></g>',
1090
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2"/><rect width="8" height="8" x="14" y="2" rx="1"/></g>',
1092
1091
  "width": 24,
1093
1092
  "height": 24,
1094
1093
  "viewBox": "0 0 24 24"
@@ -2090,7 +2089,7 @@ const lucideCircleArrowDown = {
2090
2089
  "viewBox": "0 0 24 24"
2091
2090
  };
2092
2091
  const lucideCircleArrowLeft = {
2093
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M16 12H8m4-4l-4 4l4 4"/></g>',
2092
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m12 8l-4 4l4 4m4-4H8"/></g>',
2094
2093
  "width": 24,
2095
2094
  "height": 24,
2096
2095
  "viewBox": "0 0 24 24"
@@ -2120,7 +2119,7 @@ const lucideCircleArrowOutUpRight = {
2120
2119
  "viewBox": "0 0 24 24"
2121
2120
  };
2122
2121
  const lucideCircleArrowRight = {
2123
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M8 12h8m-4 4l4-4l-4-4"/></g>',
2122
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m12 16l4-4l-4-4m-4 4h8"/></g>',
2124
2123
  "width": 24,
2125
2124
  "height": 24,
2126
2125
  "viewBox": "0 0 24 24"
@@ -4279,6 +4278,12 @@ const lucideGem = {
4279
4278
  "height": 24,
4280
4279
  "viewBox": "0 0 24 24"
4281
4280
  };
4281
+ const lucideGeorgianLari = {
4282
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.5 21a7.5 7.5 0 1 1 7.35-9M13 12V3M4 21h16M9 12V3"/>',
4283
+ "width": 24,
4284
+ "height": 24,
4285
+ "viewBox": "0 0 24 24"
4286
+ };
4282
4287
  const lucideGhost = {
4283
4288
  "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 10h.01M15 10h.01M12 2a8 8 0 0 0-8 8v12l3-3l2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8"/>',
4284
4289
  "width": 24,
@@ -5209,6 +5214,12 @@ const lucideLineChart = {
5209
5214
  "height": 24,
5210
5215
  "viewBox": "0 0 24 24"
5211
5216
  };
5217
+ const lucideLineSquiggle = {
5218
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3.5c5-2 7 2.5 3 4C1.5 10 2 15 5 16c5 2 9-10 14-7s.5 13.5-4 12c-5-2.5.5-11 6-2"/>',
5219
+ "width": 24,
5220
+ "height": 24,
5221
+ "viewBox": "0 0 24 24"
5222
+ };
5212
5223
  const lucideLink = {
5213
5224
  "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></g>',
5214
5225
  "width": 24,
@@ -7700,7 +7711,7 @@ const lucideShirt = {
7700
7711
  "viewBox": "0 0 24 24"
7701
7712
  };
7702
7713
  const lucideShoppingBag = {
7703
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4ZM3 6h18"/><path d="M16 10a4 4 0 0 1-8 0"/></g>',
7714
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M16 10a4 4 0 0 1-8 0M3.103 6.034h17.794"/><path d="M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z"/></g>',
7704
7715
  "width": 24,
7705
7716
  "height": 24,
7706
7717
  "viewBox": "0 0 24 24"
@@ -7993,6 +8004,12 @@ const lucideSplit = {
7993
8004
  "height": 24,
7994
8005
  "viewBox": "0 0 24 24"
7995
8006
  };
8007
+ const lucideSpool = {
8008
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M17 13.44L4.442 17.082A2 2 0 0 0 4.982 21H19a2 2 0 0 0 .558-3.921l-1.115-.32A2 2 0 0 1 17 14.837V7.66"/><path d="m7 10.56l12.558-3.642A2 2 0 0 0 19.018 3H5a2 2 0 0 0-.558 3.921l1.115.32A2 2 0 0 1 7 9.163v7.178"/></g>',
8009
+ "width": 24,
8010
+ "height": 24,
8011
+ "viewBox": "0 0 24 24"
8012
+ };
7996
8013
  const lucideSprayCan = {
7997
8014
  "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h.01M7 5h.01M11 7h.01M3 7h.01M7 9h.01M3 11h.01M15 5h4v4h-4zm4 4l2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2m-2 5l8-2m-8 7l8-2"/>',
7998
8015
  "width": 24,
@@ -8407,6 +8424,12 @@ const lucideSquircle = {
8407
8424
  "height": 24,
8408
8425
  "viewBox": "0 0 24 24"
8409
8426
  };
8427
+ const lucideSquircleDashed = {
8428
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.77 3.043a34 34 0 0 0-3.54 0m3.541 17.913a33 33 0 0 1-3.541.001m9.95-3.217c-.51 1.15-1.29 1.93-2.439 2.44M20.18 6.259c-.51-1.148-1.291-1.929-2.44-2.438m3.217 6.409a33 33 0 0 1 0 3.54M3.043 10.23a34 34 0 0 0 .001 3.541m3.216 6.408c-1.15-.508-1.93-1.29-2.44-2.438M6.26 3.82c-1.149.51-1.93 1.291-2.44 2.44"/>',
8429
+ "width": 24,
8430
+ "height": 24,
8431
+ "viewBox": "0 0 24 24"
8432
+ };
8410
8433
  const lucideSquirrel = {
8411
8434
  "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M15.236 22a3 3 0 0 0-2.2-5"/><path d="M16 20a3 3 0 0 1 3-3h1a2 2 0 0 0 2-2v-2a4 4 0 0 0-4-4V4m0 9h.01"/><path d="M18 6a4 4 0 0 0-4 4a7 7 0 0 0-7 7c0-5 4-5 4-10.5a4.5 4.5 0 1 0-9 0a2.5 2.5 0 0 0 5 0C7 10 3 11 3 17c0 2.8 2.2 5 5 5h10"/></g>',
8412
8435
  "width": 24,
@@ -9848,7 +9871,7 @@ const lucideArrowDownZa = {
9848
9871
  "viewBox": "0 0 24 24"
9849
9872
  };
9850
9873
  const lucideArrowLeftCircle = {
9851
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M16 12H8m4-4l-4 4l4 4"/></g>',
9874
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m12 8l-4 4l4 4m4-4H8"/></g>',
9852
9875
  "width": 24,
9853
9876
  "height": 24,
9854
9877
  "viewBox": "0 0 24 24"
@@ -9860,7 +9883,7 @@ const lucideArrowLeftSquare = {
9860
9883
  "viewBox": "0 0 24 24"
9861
9884
  };
9862
9885
  const lucideArrowRightCircle = {
9863
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M8 12h8m-4 4l4-4l-4-4"/></g>',
9886
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m12 16l4-4l-4-4m-4 4h8"/></g>',
9864
9887
  "width": 24,
9865
9888
  "height": 24,
9866
9889
  "viewBox": "0 0 24 24"
@@ -10975,7 +10998,8 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
10975
10998
  };
10976
10999
  class Ngxi {
10977
11000
  constructor() {
10978
- this.sanitizer = inject(DomSanitizer);
11001
+ this.el = inject(ElementRef);
11002
+ this.renderer = inject(Renderer2);
10979
11003
  this.icon = input(null);
10980
11004
  this.width = input();
10981
11005
  this.height = input();
@@ -10983,13 +11007,16 @@ class Ngxi {
10983
11007
  this.resolvedWidth = computed(() => this.width() ?? this.icon()?.width);
10984
11008
  this.resolvedHeight = computed(() => this.height() ?? this.icon()?.height);
10985
11009
  this.resolvedViewBox = computed(() => this.viewBox() ?? this.icon()?.viewBox);
10986
- this.resolvedBody = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.icon()?.body ?? ""));
11010
+ this.setBody = effect(() => {
11011
+ const icon = this.icon();
11012
+ this.renderer.setProperty(this.el.nativeElement, "innerHTML", icon?.body ?? "");
11013
+ });
10987
11014
  }
10988
11015
  static {
10989
11016
  this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10990
11017
  }
10991
11018
  static {
10992
- this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.4", type: Ngxi, isStandalone: true, selector: "svg[ngxi]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, viewBox: { classPropertyName: "viewBox", publicName: "viewBox", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "img" }, properties: { "attr.width": "resolvedWidth()", "attr.height": "resolvedHeight()", "attr.viewBox": "resolvedViewBox()", "innerHTML": "resolvedBody()" } }, ngImport: i0 });
11019
+ this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.4", type: Ngxi, isStandalone: true, selector: "svg[ngxi]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, viewBox: { classPropertyName: "viewBox", publicName: "viewBox", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "img" }, properties: { "attr.width": "resolvedWidth()", "attr.height": "resolvedHeight()", "attr.viewBox": "resolvedViewBox()" } }, ngImport: i0 });
10993
11020
  }
10994
11021
  }
10995
11022
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, decorators: [{
@@ -11001,8 +11028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
11001
11028
  "role": "img",
11002
11029
  "[attr.width]": "resolvedWidth()",
11003
11030
  "[attr.height]": "resolvedHeight()",
11004
- "[attr.viewBox]": "resolvedViewBox()",
11005
- "[innerHTML]": "resolvedBody()"
11031
+ "[attr.viewBox]": "resolvedViewBox()"
11006
11032
  }
11007
11033
  }]
11008
11034
  }] });
@@ -11832,6 +11858,7 @@ export {
11832
11858
  lucideGaugeCircle,
11833
11859
  lucideGavel,
11834
11860
  lucideGem,
11861
+ lucideGeorgianLari,
11835
11862
  lucideGhost,
11836
11863
  lucideGift,
11837
11864
  lucideGitBranch,
@@ -12008,6 +12035,7 @@ export {
12008
12035
  lucideLightbulb,
12009
12036
  lucideLightbulbOff,
12010
12037
  lucideLineChart,
12038
+ lucideLineSquiggle,
12011
12039
  lucideLink,
12012
12040
  lucideLink2,
12013
12041
  lucideLink2Off,
@@ -12533,6 +12561,7 @@ export {
12533
12561
  lucideSplit,
12534
12562
  lucideSplitSquareHorizontal,
12535
12563
  lucideSplitSquareVertical,
12564
+ lucideSpool,
12536
12565
  lucideSprayCan,
12537
12566
  lucideSprout,
12538
12567
  lucideSquare,
@@ -12605,6 +12634,7 @@ export {
12605
12634
  lucideSquaresSubtract,
12606
12635
  lucideSquaresUnite,
12607
12636
  lucideSquircle,
12637
+ lucideSquircleDashed,
12608
12638
  lucideSquirrel,
12609
12639
  lucideStamp,
12610
12640
  lucideStar,