@ngxi/lucide 0.12.0-beta.3 → 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 +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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,
|
|
@@ -10999,7 +10998,8 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
|
|
|
10999
10998
|
};
|
|
11000
10999
|
class Ngxi {
|
|
11001
11000
|
constructor() {
|
|
11002
|
-
this.
|
|
11001
|
+
this.el = inject(ElementRef);
|
|
11002
|
+
this.renderer = inject(Renderer2);
|
|
11003
11003
|
this.icon = input(null);
|
|
11004
11004
|
this.width = input();
|
|
11005
11005
|
this.height = input();
|
|
@@ -11007,13 +11007,16 @@ class Ngxi {
|
|
|
11007
11007
|
this.resolvedWidth = computed(() => this.width() ?? this.icon()?.width);
|
|
11008
11008
|
this.resolvedHeight = computed(() => this.height() ?? this.icon()?.height);
|
|
11009
11009
|
this.resolvedViewBox = computed(() => this.viewBox() ?? this.icon()?.viewBox);
|
|
11010
|
-
this.
|
|
11010
|
+
this.setBody = effect(() => {
|
|
11011
|
+
const icon = this.icon();
|
|
11012
|
+
this.renderer.setProperty(this.el.nativeElement, "innerHTML", icon?.body ?? "");
|
|
11013
|
+
});
|
|
11011
11014
|
}
|
|
11012
11015
|
static {
|
|
11013
11016
|
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11014
11017
|
}
|
|
11015
11018
|
static {
|
|
11016
|
-
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()"
|
|
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 });
|
|
11017
11020
|
}
|
|
11018
11021
|
}
|
|
11019
11022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, decorators: [{
|
|
@@ -11025,8 +11028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
11025
11028
|
"role": "img",
|
|
11026
11029
|
"[attr.width]": "resolvedWidth()",
|
|
11027
11030
|
"[attr.height]": "resolvedHeight()",
|
|
11028
|
-
"[attr.viewBox]": "resolvedViewBox()"
|
|
11029
|
-
"[innerHTML]": "resolvedBody()"
|
|
11031
|
+
"[attr.viewBox]": "resolvedViewBox()"
|
|
11030
11032
|
}
|
|
11031
11033
|
}]
|
|
11032
11034
|
}] });
|