@ngxi/lucide 0.12.19 → 0.12.21

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**: 1633
13
+ - **Icons**: 1634
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,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
- import { inject, PLATFORM_ID, ElementRef, Renderer2, input, computed, effect, Directive } from "@angular/core";
3
- import { isPlatformServer } from "@angular/common";
2
+ import { inject, input, computed, Directive } from "@angular/core";
3
+ import { DomSanitizer } from "@angular/platform-browser";
4
4
  const lucideAArrowDown = {
5
5
  "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m14 12l4 4l4-4m-4 4V7M2 16l4.039-9.69a.5.5 0 0 1 .923 0L11 16m-7.696-3h6.392"/>',
6
6
  "width": 24,
@@ -5329,6 +5329,12 @@ const lucideListChecks = {
5329
5329
  "height": 24,
5330
5330
  "viewBox": "0 0 24 24"
5331
5331
  };
5332
+ const lucideListChevronsDownUp = {
5333
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 18l3-3l3 3M15 6l3 3l3-3M3 12h8m-8 6h8M3 6h8"/>',
5334
+ "width": 24,
5335
+ "height": 24,
5336
+ "viewBox": "0 0 24 24"
5337
+ };
5332
5338
  const lucideListCollapse = {
5333
5339
  "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 12h11m-11 6h11M10 6h11M3 10l3-3l-3-3m0 16l3-3l-3-3"/>',
5334
5340
  "width": 24,
@@ -11169,44 +11175,24 @@ const lucideXSquare = {
11169
11175
  };
11170
11176
  class Ngxi {
11171
11177
  constructor() {
11172
- this.platform = inject(PLATFORM_ID);
11173
- this.el = inject(ElementRef);
11174
- this.renderer = inject(Renderer2);
11175
- this.icon = input(null);
11176
- this.width = input();
11177
- this.height = input();
11178
- this.viewBox = input();
11179
- this.resolvedWidth = computed(() => this.width() ?? this.icon()?.width);
11180
- this.resolvedHeight = computed(() => this.height() ?? this.icon()?.height);
11181
- this.resolvedViewBox = computed(() => this.viewBox() ?? this.icon()?.viewBox);
11182
- this.setBody = effect(() => {
11183
- const icon = this.icon();
11184
- if (!icon) {
11185
- this.renderer.setProperty(this.el.nativeElement, "innerHTML", "");
11186
- return;
11187
- }
11188
- if (isPlatformServer(this.platform)) {
11189
- this.el.nativeElement.innerHTML = icon.body;
11190
- this.el.nativeElement.setAttribute("data-ngxi-ssr", "");
11191
- return;
11192
- }
11193
- if (this.el.nativeElement.hasAttribute("data-ngxi-ssr")) {
11194
- this.el.nativeElement.removeAttribute("data-ngxi-ssr");
11195
- if (this.el.nativeElement.innerHTML === icon.body) {
11196
- return;
11197
- }
11198
- }
11199
- this.renderer.setProperty(this.el.nativeElement, "innerHTML", icon.body);
11200
- });
11178
+ this.sanitizer = inject(DomSanitizer);
11179
+ this.icon = input(...[]);
11180
+ this.width = input(...[]);
11181
+ this.height = input(...[]);
11182
+ this.viewBox = input(...[]);
11183
+ this.resolvedWidth = computed(() => this.width() ?? this.icon()?.width, ...[]);
11184
+ this.resolvedHeight = computed(() => this.height() ?? this.icon()?.height, ...[]);
11185
+ this.resolvedViewBox = computed(() => this.viewBox() ?? this.icon()?.viewBox, ...[]);
11186
+ this.safeSVG = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.icon()?.body ?? ""), ...[]);
11201
11187
  }
11202
11188
  static {
11203
- this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11189
+ this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11204
11190
  }
11205
11191
  static {
11206
- 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 });
11192
+ this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", 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": "safeSVG()" } }, ngImport: i0 });
11207
11193
  }
11208
11194
  }
11209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: Ngxi, decorators: [{
11195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, decorators: [{
11210
11196
  type: Directive,
11211
11197
  args: [{
11212
11198
  standalone: true,
@@ -11215,22 +11201,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
11215
11201
  "role": "img",
11216
11202
  "[attr.width]": "resolvedWidth()",
11217
11203
  "[attr.height]": "resolvedHeight()",
11218
- "[attr.viewBox]": "resolvedViewBox()"
11204
+ "[attr.viewBox]": "resolvedViewBox()",
11205
+ "[innerHTML]": "safeSVG()"
11219
11206
  }
11220
11207
  }]
11221
11208
  }] });
11222
11209
  class NgxiLucide {
11223
11210
  constructor() {
11224
- this.ngxiLucide = input.required();
11211
+ this.ngxiLucide = input.required(...[]);
11225
11212
  }
11226
11213
  static {
11227
- this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxiLucide, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11214
+ this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiLucide, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11228
11215
  }
11229
11216
  static {
11230
- 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 });
11217
+ this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", 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 });
11231
11218
  }
11232
11219
  }
11233
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxiLucide, decorators: [{
11220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiLucide, decorators: [{
11234
11221
  type: Directive,
11235
11222
  args: [{
11236
11223
  standalone: true,
@@ -12251,6 +12238,7 @@ export {
12251
12238
  lucideList,
12252
12239
  lucideListCheck,
12253
12240
  lucideListChecks,
12241
+ lucideListChevronsDownUp,
12254
12242
  lucideListCollapse,
12255
12243
  lucideListEnd,
12256
12244
  lucideListFilter,