@ngxi/lucide 0.12.0 → 0.12.1

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**: 1611
13
+ - **Icons**: 1614
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, PLATFORM_ID, ElementRef, Renderer2, input, computed, effect, Directive } from "@angular/core";
3
+ import { isPlatformServer } from "@angular/common";
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,
@@ -762,6 +763,12 @@ const lucideBadgeSwissFranc = {
762
763
  "height": 24,
763
764
  "viewBox": "0 0 24 24"
764
765
  };
766
+ const lucideBadgeTurkishLira = {
767
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11 7v10a5 5 0 0 0 5-5m-1-4l-6 3"/><path d="M3.85 8.62a4 4 0 0 1 4.78-4.77a4 4 0 0 1 6.74 0a4 4 0 0 1 4.78 4.78a4 4 0 0 1 0 6.74a4 4 0 0 1-4.77 4.78a4 4 0 0 1-6.75 0a4 4 0 0 1-4.78-4.77a4 4 0 0 1 0-6.76"/></g>',
768
+ "width": 24,
769
+ "height": 24,
770
+ "viewBox": "0 0 24 24"
771
+ };
765
772
  const lucideBadgeX = {
766
773
  "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3.85 8.62a4 4 0 0 1 4.78-4.77a4 4 0 0 1 6.74 0a4 4 0 0 1 4.78 4.78a4 4 0 0 1 0 6.74a4 4 0 0 1-4.77 4.78a4 4 0 0 1-6.75 0a4 4 0 0 1-4.78-4.77a4 4 0 0 1 0-6.76M15 9l-6 6m0-6l6 6"/>',
767
774
  "width": 24,
@@ -2251,7 +2258,7 @@ const lucideCircleParking = {
2251
2258
  "viewBox": "0 0 24 24"
2252
2259
  };
2253
2260
  const lucideCircleParkingOff = {
2254
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m5 5l14 14m-6-6a3 3 0 1 0 0-6H9v2m0 8v-2.34"/></g>',
2261
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M12.656 7H13a3 3 0 0 1 2.984 3.307M13 13H9m10.071 6.071A1 1 0 0 1 4.93 4.93M2 2l20 20"/><path d="M8.357 2.687a10 10 0 0 1 12.956 12.956M9 17V9"/></g>',
2255
2262
  "width": 24,
2256
2263
  "height": 24,
2257
2264
  "viewBox": "0 0 24 24"
@@ -7050,6 +7057,12 @@ const lucideReceiptText = {
7050
7057
  "height": 24,
7051
7058
  "viewBox": "0 0 24 24"
7052
7059
  };
7060
+ const lucideReceiptTurkishLira = {
7061
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10 6.5v11a5.5 5.5 0 0 0 5.5-5.5M14 8l-6 3"/><path d="M4 2v20l2-1l2 1l2-1l2 1l2-1l2 1l2-1l2 1V2l-2 1l-2-1l-2 1l-2-1l-2 1l-2-1l-2 1z"/></g>',
7062
+ "width": 24,
7063
+ "height": 24,
7064
+ "viewBox": "0 0 24 24"
7065
+ };
7053
7066
  const lucideRectangleCircle = {
7054
7067
  "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M14 4v16H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"/><circle cx="14" cy="12" r="8"/></g>',
7055
7068
  "width": 24,
@@ -9120,6 +9133,12 @@ const lucideTruckElectric = {
9120
9133
  "height": 24,
9121
9134
  "viewBox": "0 0 24 24"
9122
9135
  };
9136
+ const lucideTurkishLira = {
9137
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 4L5 9m10-.5l-10 5M18 12a9 9 0 0 1-9 9V3"/>',
9138
+ "width": 24,
9139
+ "height": 24,
9140
+ "viewBox": "0 0 24 24"
9141
+ };
9123
9142
  const lucideTurtle = {
9124
9143
  "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m12 10l2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4zM4.82 7.9L8 10m7.18-2.1L12 10"/><path d="M16.93 10H20a2 2 0 0 1 0 4H2"/></g>',
9125
9144
  "width": 24,
@@ -10585,7 +10604,7 @@ const lucideParkingCircle = {
10585
10604
  "viewBox": "0 0 24 24"
10586
10605
  };
10587
10606
  const lucideParkingCircleOff = {
10588
- "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m5 5l14 14m-6-6a3 3 0 1 0 0-6H9v2m0 8v-2.34"/></g>',
10607
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M12.656 7H13a3 3 0 0 1 2.984 3.307M13 13H9m10.071 6.071A1 1 0 0 1 4.93 4.93M2 2l20 20"/><path d="M8.357 2.687a10 10 0 0 1 12.956 12.956M9 17V9"/></g>',
10589
10608
  "width": 24,
10590
10609
  "height": 24,
10591
10610
  "viewBox": "0 0 24 24"
@@ -11006,6 +11025,7 @@ const lucideXSquare = {
11006
11025
  };
11007
11026
  class Ngxi {
11008
11027
  constructor() {
11028
+ this.platform = inject(PLATFORM_ID);
11009
11029
  this.el = inject(ElementRef);
11010
11030
  this.renderer = inject(Renderer2);
11011
11031
  this.icon = input(null);
@@ -11017,7 +11037,22 @@ class Ngxi {
11017
11037
  this.resolvedViewBox = computed(() => this.viewBox() ?? this.icon()?.viewBox);
11018
11038
  this.setBody = effect(() => {
11019
11039
  const icon = this.icon();
11020
- this.renderer.setProperty(this.el.nativeElement, "innerHTML", icon?.body ?? "");
11040
+ if (!icon) {
11041
+ this.renderer.setProperty(this.el.nativeElement, "innerHTML", "");
11042
+ return;
11043
+ }
11044
+ if (isPlatformServer(this.platform)) {
11045
+ this.el.nativeElement.innerHTML = icon.body;
11046
+ this.el.nativeElement.setAttribute("data-ngxi-ssr", "");
11047
+ return;
11048
+ }
11049
+ if (this.el.nativeElement.hasAttribute("data-ngxi-ssr")) {
11050
+ this.el.nativeElement.removeAttribute("data-ngxi-ssr");
11051
+ if (this.el.nativeElement.innerHTML === icon.body) {
11052
+ return;
11053
+ }
11054
+ }
11055
+ this.renderer.setProperty(this.el.nativeElement, "innerHTML", icon.body);
11021
11056
  });
11022
11057
  }
11023
11058
  static {
@@ -11234,6 +11269,7 @@ export {
11234
11269
  lucideBadgeQuestionMark,
11235
11270
  lucideBadgeRussianRuble,
11236
11271
  lucideBadgeSwissFranc,
11272
+ lucideBadgeTurkishLira,
11237
11273
  lucideBadgeX,
11238
11274
  lucideBaggageClaim,
11239
11275
  lucideBan,
@@ -12398,6 +12434,7 @@ export {
12398
12434
  lucideReceiptRussianRuble,
12399
12435
  lucideReceiptSwissFranc,
12400
12436
  lucideReceiptText,
12437
+ lucideReceiptTurkishLira,
12401
12438
  lucideRectangleCircle,
12402
12439
  lucideRectangleEllipsis,
12403
12440
  lucideRectangleGoggles,
@@ -12773,6 +12810,7 @@ export {
12773
12810
  lucideTrophy,
12774
12811
  lucideTruck,
12775
12812
  lucideTruckElectric,
12813
+ lucideTurkishLira,
12776
12814
  lucideTurtle,
12777
12815
  lucideTv,
12778
12816
  lucideTv2,