@ngxi/lucide 0.12.24 → 0.12.25

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
@@ -11173,21 +11173,11 @@ const lucideXSquare = {
11173
11173
  "height": 24,
11174
11174
  "viewBox": "0 0 24 24"
11175
11175
  };
11176
- function __decorate(decorators, target, key, desc) {
11177
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11178
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11179
- 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;
11180
- return c > 3 && r && Object.defineProperty(target, key, r), r;
11181
- }
11182
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
11183
- var e = new Error(message);
11184
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
11185
- };
11186
11176
  class Ngxi {
11187
11177
  constructor() {
11188
11178
  this.el = inject(ElementRef);
11189
11179
  this.platformId = inject(PLATFORM_ID);
11190
- this.ngxi = input.required(...[]);
11180
+ this.icon = input.required(...[]);
11191
11181
  this.width = input(void 0, ...[{
11192
11182
  transform: numberAttribute
11193
11183
  }]);
@@ -11203,20 +11193,20 @@ class Ngxi {
11203
11193
  if (isPlatformBrowser(this.platformId)) {
11204
11194
  const svg = this.el.nativeElement;
11205
11195
  svg.innerHTML = "";
11206
- if (!this.ngxi) {
11196
+ if (!this.icon) {
11207
11197
  return;
11208
11198
  }
11209
- svg.innerHTML = this.ngxi().body;
11210
- svg.setAttribute("width", (this.width() ?? this.ngxi()?.width ?? "").toString());
11211
- svg.setAttribute("height", (this.height() ?? this.ngxi()?.height ?? "").toString());
11212
- svg.setAttribute("viewBox", this.viewBox() ?? this.ngxi()?.viewBox ?? "");
11199
+ svg.innerHTML = this.icon().body;
11200
+ svg.setAttribute("width", (this.width() ?? this.icon()?.width ?? "").toString());
11201
+ svg.setAttribute("height", (this.height() ?? this.icon()?.height ?? "").toString());
11202
+ svg.setAttribute("viewBox", this.viewBox() ?? this.icon()?.viewBox ?? "");
11213
11203
  }
11214
11204
  }
11215
11205
  static {
11216
11206
  this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11217
11207
  }
11218
11208
  static {
11219
- this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", type: Ngxi, isStandalone: true, selector: "svg[ngxi]", inputs: { ngxi: { classPropertyName: "ngxi", publicName: "ngxi", isSignal: true, isRequired: true, 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 } }, ngImport: i0 });
11209
+ 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: true, 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 } }, ngImport: i0 });
11220
11210
  }
11221
11211
  }
11222
11212
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, decorators: [{
@@ -11226,13 +11216,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImpor
11226
11216
  standalone: true
11227
11217
  }]
11228
11218
  }], ctorParameters: () => [] });
11229
- let NgxiLucide = class NgxiLucide2 {
11219
+ class NgxiLucide {
11230
11220
  constructor() {
11231
11221
  this.ngxiLucide = input.required(...[]);
11232
11222
  }
11233
- };
11234
- NgxiLucide = __decorate([
11235
- Directive({
11223
+ static {
11224
+ this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiLucide, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11225
+ }
11226
+ static {
11227
+ 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 });
11228
+ }
11229
+ }
11230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiLucide, decorators: [{
11231
+ type: Directive,
11232
+ args: [{
11236
11233
  standalone: true,
11237
11234
  selector: "svg[ngxiLucide]",
11238
11235
  hostDirectives: [
@@ -11241,8 +11238,8 @@ NgxiLucide = __decorate([
11241
11238
  inputs: ["icon:ngxiLucide", "width", "height", "viewBox"]
11242
11239
  }
11243
11240
  ]
11244
- })
11245
- ], NgxiLucide);
11241
+ }]
11242
+ }] });
11246
11243
  export {
11247
11244
  NgxiLucide,
11248
11245
  lucideAArrowDown,