@ngxi/devicon-plain 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
@@ -4363,21 +4363,11 @@ const deviconPlainWeb3 = {
4363
4363
  "height": 128,
4364
4364
  "viewBox": "0 0 128 128"
4365
4365
  };
4366
- function __decorate(decorators, target, key, desc) {
4367
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4368
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4369
- 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;
4370
- return c > 3 && r && Object.defineProperty(target, key, r), r;
4371
- }
4372
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
4373
- var e = new Error(message);
4374
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
4375
- };
4376
4366
  class Ngxi {
4377
4367
  constructor() {
4378
4368
  this.el = inject(ElementRef);
4379
4369
  this.platformId = inject(PLATFORM_ID);
4380
- this.ngxi = input.required(...[]);
4370
+ this.icon = input.required(...[]);
4381
4371
  this.width = input(void 0, ...[{
4382
4372
  transform: numberAttribute
4383
4373
  }]);
@@ -4393,20 +4383,20 @@ class Ngxi {
4393
4383
  if (isPlatformBrowser(this.platformId)) {
4394
4384
  const svg = this.el.nativeElement;
4395
4385
  svg.innerHTML = "";
4396
- if (!this.ngxi) {
4386
+ if (!this.icon) {
4397
4387
  return;
4398
4388
  }
4399
- svg.innerHTML = this.ngxi().body;
4400
- svg.setAttribute("width", (this.width() ?? this.ngxi()?.width ?? "").toString());
4401
- svg.setAttribute("height", (this.height() ?? this.ngxi()?.height ?? "").toString());
4402
- svg.setAttribute("viewBox", this.viewBox() ?? this.ngxi()?.viewBox ?? "");
4389
+ svg.innerHTML = this.icon().body;
4390
+ svg.setAttribute("width", (this.width() ?? this.icon()?.width ?? "").toString());
4391
+ svg.setAttribute("height", (this.height() ?? this.icon()?.height ?? "").toString());
4392
+ svg.setAttribute("viewBox", this.viewBox() ?? this.icon()?.viewBox ?? "");
4403
4393
  }
4404
4394
  }
4405
4395
  static {
4406
4396
  this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4407
4397
  }
4408
4398
  static {
4409
- 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 });
4399
+ 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 });
4410
4400
  }
4411
4401
  }
4412
4402
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, decorators: [{
@@ -4416,13 +4406,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImpor
4416
4406
  standalone: true
4417
4407
  }]
4418
4408
  }], ctorParameters: () => [] });
4419
- let NgxiDeviconPlain = class NgxiDeviconPlain2 {
4409
+ class NgxiDeviconPlain {
4420
4410
  constructor() {
4421
4411
  this.ngxiDeviconPlain = input.required(...[]);
4422
4412
  }
4423
- };
4424
- NgxiDeviconPlain = __decorate([
4425
- Directive({
4413
+ static {
4414
+ this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiDeviconPlain, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4415
+ }
4416
+ static {
4417
+ this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", type: NgxiDeviconPlain, isStandalone: true, selector: "svg[ngxiDeviconPlain]", inputs: { ngxiDeviconPlain: { classPropertyName: "ngxiDeviconPlain", publicName: "ngxiDeviconPlain", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: Ngxi, inputs: ["icon", "ngxiDeviconPlain", "width", "width", "height", "height", "viewBox", "viewBox"] }], ngImport: i0 });
4418
+ }
4419
+ }
4420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiDeviconPlain, decorators: [{
4421
+ type: Directive,
4422
+ args: [{
4426
4423
  standalone: true,
4427
4424
  selector: "svg[ngxiDeviconPlain]",
4428
4425
  hostDirectives: [
@@ -4431,8 +4428,8 @@ NgxiDeviconPlain = __decorate([
4431
4428
  inputs: ["icon:ngxiDeviconPlain", "width", "height", "viewBox"]
4432
4429
  }
4433
4430
  ]
4434
- })
4435
- ], NgxiDeviconPlain);
4431
+ }]
4432
+ }] });
4436
4433
  export {
4437
4434
  NgxiDeviconPlain,
4438
4435
  deviconPlain3dsmax,