@ngxi/lucide 0.12.0-beta.10 → 0.12.0-beta.2

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/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  - **Name**: Lucide
12
12
  - **Prefix**: `lucide`
13
- - **Icons**: 1609
13
+ - **Icons**: 1604
14
14
  - **License**: [ISC](https://github.com/lucide-icons/lucide/blob/main/LICENSE)
15
15
  - **Author**: [Lucide Contributors](https://github.com/lucide-icons/lucide)
16
16
  - **Website**: [https://github.com/lucide-icons/lucide](https://github.com/lucide-icons/lucide)
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
- import { inject, ElementRef, Renderer2, input, computed, effect, Directive } from "@angular/core";
2
+ import { inject, input, computed, Directive } from "@angular/core";
3
+ import { DomSanitizer } from "@angular/platform-browser";
3
4
  const lucideAArrowDown = {
4
5
  "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"/>',
5
6
  "width": 24,
@@ -1087,7 +1088,7 @@ const lucideBlinds = {
1087
1088
  "viewBox": "0 0 24 24"
1088
1089
  };
1089
1090
  const lucideBlocks = {
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>',
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>',
1091
1092
  "width": 24,
1092
1093
  "height": 24,
1093
1094
  "viewBox": "0 0 24 24"
@@ -1344,12 +1345,6 @@ const lucideBotOff = {
1344
1345
  "height": 24,
1345
1346
  "viewBox": "0 0 24 24"
1346
1347
  };
1347
- const lucideBottleWine = {
1348
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a6 6 0 0 0 1.2 3.6l.6.8A6 6 0 0 1 17 13v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a6 6 0 0 1 1.2-3.6l.6-.8A6 6 0 0 0 10 5z"/><path d="M17 13h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4"/></g>',
1349
- "width": 24,
1350
- "height": 24,
1351
- "viewBox": "0 0 24 24"
1352
- };
1353
1348
  const lucideBowArrow = {
1354
1349
  "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 3h4v4m-2.425 4.082a13 13 0 0 1 1.048 9.027a1.17 1.17 0 0 1-1.914.597L14 17m-7-7L3.29 6.29a1.17 1.17 0 0 1 .6-1.91a13 13 0 0 1 9.03 1.05M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1zm2.707.293L21 3"/>',
1355
1350
  "width": 24,
@@ -2095,7 +2090,7 @@ const lucideCircleArrowDown = {
2095
2090
  "viewBox": "0 0 24 24"
2096
2091
  };
2097
2092
  const lucideCircleArrowLeft = {
2098
- "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>',
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>',
2099
2094
  "width": 24,
2100
2095
  "height": 24,
2101
2096
  "viewBox": "0 0 24 24"
@@ -2125,7 +2120,7 @@ const lucideCircleArrowOutUpRight = {
2125
2120
  "viewBox": "0 0 24 24"
2126
2121
  };
2127
2122
  const lucideCircleArrowRight = {
2128
- "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>',
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>',
2129
2124
  "width": 24,
2130
2125
  "height": 24,
2131
2126
  "viewBox": "0 0 24 24"
@@ -4284,12 +4279,6 @@ const lucideGem = {
4284
4279
  "height": 24,
4285
4280
  "viewBox": "0 0 24 24"
4286
4281
  };
4287
- const lucideGeorgianLari = {
4288
- "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"/>',
4289
- "width": 24,
4290
- "height": 24,
4291
- "viewBox": "0 0 24 24"
4292
- };
4293
4282
  const lucideGhost = {
4294
4283
  "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"/>',
4295
4284
  "width": 24,
@@ -5220,12 +5209,6 @@ const lucideLineChart = {
5220
5209
  "height": 24,
5221
5210
  "viewBox": "0 0 24 24"
5222
5211
  };
5223
- const lucideLineSquiggle = {
5224
- "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"/>',
5225
- "width": 24,
5226
- "height": 24,
5227
- "viewBox": "0 0 24 24"
5228
- };
5229
5212
  const lucideLink = {
5230
5213
  "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>',
5231
5214
  "width": 24,
@@ -7717,7 +7700,7 @@ const lucideShirt = {
7717
7700
  "viewBox": "0 0 24 24"
7718
7701
  };
7719
7702
  const lucideShoppingBag = {
7720
- "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>',
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>',
7721
7704
  "width": 24,
7722
7705
  "height": 24,
7723
7706
  "viewBox": "0 0 24 24"
@@ -8010,12 +7993,6 @@ const lucideSplit = {
8010
7993
  "height": 24,
8011
7994
  "viewBox": "0 0 24 24"
8012
7995
  };
8013
- const lucideSpool = {
8014
- "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>',
8015
- "width": 24,
8016
- "height": 24,
8017
- "viewBox": "0 0 24 24"
8018
- };
8019
7996
  const lucideSprayCan = {
8020
7997
  "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"/>',
8021
7998
  "width": 24,
@@ -8430,12 +8407,6 @@ const lucideSquircle = {
8430
8407
  "height": 24,
8431
8408
  "viewBox": "0 0 24 24"
8432
8409
  };
8433
- const lucideSquircleDashed = {
8434
- "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"/>',
8435
- "width": 24,
8436
- "height": 24,
8437
- "viewBox": "0 0 24 24"
8438
- };
8439
8410
  const lucideSquirrel = {
8440
8411
  "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>',
8441
8412
  "width": 24,
@@ -9877,7 +9848,7 @@ const lucideArrowDownZa = {
9877
9848
  "viewBox": "0 0 24 24"
9878
9849
  };
9879
9850
  const lucideArrowLeftCircle = {
9880
- "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>',
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>',
9881
9852
  "width": 24,
9882
9853
  "height": 24,
9883
9854
  "viewBox": "0 0 24 24"
@@ -9889,7 +9860,7 @@ const lucideArrowLeftSquare = {
9889
9860
  "viewBox": "0 0 24 24"
9890
9861
  };
9891
9862
  const lucideArrowRightCircle = {
9892
- "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>',
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>',
9893
9864
  "width": 24,
9894
9865
  "height": 24,
9895
9866
  "viewBox": "0 0 24 24"
@@ -10992,10 +10963,19 @@ const lucideXSquare = {
10992
10963
  "height": 24,
10993
10964
  "viewBox": "0 0 24 24"
10994
10965
  };
10966
+ function __decorate(decorators, target, key, desc) {
10967
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10968
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10969
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
10970
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10971
+ }
10972
+ typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
10973
+ var e = new Error(message);
10974
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
10975
+ };
10995
10976
  class Ngxi {
10996
10977
  constructor() {
10997
- this.el = inject(ElementRef);
10998
- this.renderer = inject(Renderer2);
10978
+ this.sanitizer = inject(DomSanitizer);
10999
10979
  this.icon = input(null);
11000
10980
  this.width = input();
11001
10981
  this.height = input();
@@ -11003,19 +10983,16 @@ class Ngxi {
11003
10983
  this.resolvedWidth = computed(() => this.width() ?? this.icon()?.width);
11004
10984
  this.resolvedHeight = computed(() => this.height() ?? this.icon()?.height);
11005
10985
  this.resolvedViewBox = computed(() => this.viewBox() ?? this.icon()?.viewBox);
11006
- this.setBody = effect(() => {
11007
- const icon = this.icon();
11008
- this.renderer.setProperty(this.el.nativeElement, "innerHTML", icon?.body ?? "");
11009
- });
10986
+ this.resolvedBody = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.icon()?.body ?? ""));
11010
10987
  }
11011
10988
  static {
11012
- this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10989
+ this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11013
10990
  }
11014
10991
  static {
11015
- this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.13", 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 });
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 });
11016
10993
  }
11017
10994
  }
11018
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: Ngxi, decorators: [{
10995
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, decorators: [{
11019
10996
  type: Directive,
11020
10997
  args: [{
11021
10998
  standalone: true,
@@ -11024,24 +11001,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
11024
11001
  "role": "img",
11025
11002
  "[attr.width]": "resolvedWidth()",
11026
11003
  "[attr.height]": "resolvedHeight()",
11027
- "[attr.viewBox]": "resolvedViewBox()"
11004
+ "[attr.viewBox]": "resolvedViewBox()",
11005
+ "[innerHTML]": "resolvedBody()"
11028
11006
  }
11029
11007
  }]
11030
11008
  }] });
11031
- class NgxiLucide {
11009
+ let NgxiLucide = class NgxiLucide2 {
11032
11010
  constructor() {
11033
11011
  this.ngxiLucide = input.required();
11034
11012
  }
11035
- static {
11036
- this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxiLucide, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11037
- }
11038
- static {
11039
- this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.13", type: NgxiLucide, isStandalone: true, selector: "svg[ngxiLucide]", inputs: { ngxiLucide: { classPropertyName: "ngxiLucide", publicName: "ngxiLucide", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: Ngxi, inputs: ["icon", "ngxiLucide", "width", "width", "height", "height", "viewBox", "viewBox"] }], ngImport: i0 });
11040
- }
11041
- }
11042
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxiLucide, decorators: [{
11043
- type: Directive,
11044
- args: [{
11013
+ };
11014
+ NgxiLucide = __decorate([
11015
+ Directive({
11045
11016
  standalone: true,
11046
11017
  selector: "svg[ngxiLucide]",
11047
11018
  hostDirectives: [
@@ -11050,8 +11021,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
11050
11021
  inputs: ["icon:ngxiLucide", "width", "height", "viewBox"]
11051
11022
  }
11052
11023
  ]
11053
- }]
11054
- }] });
11024
+ })
11025
+ ], NgxiLucide);
11055
11026
  export {
11056
11027
  NgxiLucide,
11057
11028
  lucideAArrowDown,
@@ -11324,7 +11295,6 @@ export {
11324
11295
  lucideBot,
11325
11296
  lucideBotMessageSquare,
11326
11297
  lucideBotOff,
11327
- lucideBottleWine,
11328
11298
  lucideBowArrow,
11329
11299
  lucideBox,
11330
11300
  lucideBoxSelect,
@@ -11862,7 +11832,6 @@ export {
11862
11832
  lucideGaugeCircle,
11863
11833
  lucideGavel,
11864
11834
  lucideGem,
11865
- lucideGeorgianLari,
11866
11835
  lucideGhost,
11867
11836
  lucideGift,
11868
11837
  lucideGitBranch,
@@ -12039,7 +12008,6 @@ export {
12039
12008
  lucideLightbulb,
12040
12009
  lucideLightbulbOff,
12041
12010
  lucideLineChart,
12042
- lucideLineSquiggle,
12043
12011
  lucideLink,
12044
12012
  lucideLink2,
12045
12013
  lucideLink2Off,
@@ -12565,7 +12533,6 @@ export {
12565
12533
  lucideSplit,
12566
12534
  lucideSplitSquareHorizontal,
12567
12535
  lucideSplitSquareVertical,
12568
- lucideSpool,
12569
12536
  lucideSprayCan,
12570
12537
  lucideSprout,
12571
12538
  lucideSquare,
@@ -12638,7 +12605,6 @@ export {
12638
12605
  lucideSquaresSubtract,
12639
12606
  lucideSquaresUnite,
12640
12607
  lucideSquircle,
12641
- lucideSquircleDashed,
12642
12608
  lucideSquirrel,
12643
12609
  lucideStamp,
12644
12610
  lucideStar,