@ngxi/simple-icons 0.12.24 → 0.12.26

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
@@ -21577,21 +21577,11 @@ const simpleIconsWindows11 = {
21577
21577
  "height": 24,
21578
21578
  "viewBox": "0 0 24 24"
21579
21579
  };
21580
- function __decorate(decorators, target, key, desc) {
21581
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
21582
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21583
- 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;
21584
- return c > 3 && r && Object.defineProperty(target, key, r), r;
21585
- }
21586
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
21587
- var e = new Error(message);
21588
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
21589
- };
21590
21580
  class Ngxi {
21591
21581
  constructor() {
21592
21582
  this.el = inject(ElementRef);
21593
21583
  this.platformId = inject(PLATFORM_ID);
21594
- this.ngxi = input.required(...[]);
21584
+ this.icon = input.required(...[]);
21595
21585
  this.width = input(void 0, ...[{
21596
21586
  transform: numberAttribute
21597
21587
  }]);
@@ -21607,20 +21597,20 @@ class Ngxi {
21607
21597
  if (isPlatformBrowser(this.platformId)) {
21608
21598
  const svg = this.el.nativeElement;
21609
21599
  svg.innerHTML = "";
21610
- if (!this.ngxi) {
21600
+ if (!this.icon) {
21611
21601
  return;
21612
21602
  }
21613
- svg.innerHTML = this.ngxi().body;
21614
- svg.setAttribute("width", (this.width() ?? this.ngxi()?.width ?? "").toString());
21615
- svg.setAttribute("height", (this.height() ?? this.ngxi()?.height ?? "").toString());
21616
- svg.setAttribute("viewBox", this.viewBox() ?? this.ngxi()?.viewBox ?? "");
21603
+ svg.innerHTML = this.icon().body;
21604
+ svg.setAttribute("width", (this.width() ?? this.icon()?.width ?? "").toString());
21605
+ svg.setAttribute("height", (this.height() ?? this.icon()?.height ?? "").toString());
21606
+ svg.setAttribute("viewBox", this.viewBox() ?? this.icon()?.viewBox ?? "");
21617
21607
  }
21618
21608
  }
21619
21609
  static {
21620
21610
  this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21621
21611
  }
21622
21612
  static {
21623
- 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 });
21613
+ 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 });
21624
21614
  }
21625
21615
  }
21626
21616
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, decorators: [{
@@ -21630,13 +21620,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImpor
21630
21620
  standalone: true
21631
21621
  }]
21632
21622
  }], ctorParameters: () => [] });
21633
- let NgxiSimpleIcons = class NgxiSimpleIcons2 {
21623
+ class NgxiSimpleIcons {
21634
21624
  constructor() {
21635
21625
  this.ngxiSimpleIcons = input.required(...[]);
21636
21626
  }
21637
- };
21638
- NgxiSimpleIcons = __decorate([
21639
- Directive({
21627
+ static {
21628
+ this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiSimpleIcons, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21629
+ }
21630
+ static {
21631
+ this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", type: NgxiSimpleIcons, isStandalone: true, selector: "svg[ngxiSimpleIcons]", inputs: { ngxiSimpleIcons: { classPropertyName: "ngxiSimpleIcons", publicName: "ngxiSimpleIcons", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: Ngxi, inputs: ["icon", "ngxiSimpleIcons", "width", "width", "height", "height", "viewBox", "viewBox"] }], ngImport: i0 });
21632
+ }
21633
+ }
21634
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiSimpleIcons, decorators: [{
21635
+ type: Directive,
21636
+ args: [{
21640
21637
  standalone: true,
21641
21638
  selector: "svg[ngxiSimpleIcons]",
21642
21639
  hostDirectives: [
@@ -21645,8 +21642,8 @@ NgxiSimpleIcons = __decorate([
21645
21642
  inputs: ["icon:ngxiSimpleIcons", "width", "height", "viewBox"]
21646
21643
  }
21647
21644
  ]
21648
- })
21649
- ], NgxiSimpleIcons);
21645
+ }]
21646
+ }] });
21650
21647
  export {
21651
21648
  NgxiSimpleIcons,
21652
21649
  simpleIcons1001tracklists,