@ngxi/cbi 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
@@ -9049,21 +9049,11 @@ const cbiTwinlyCurtian = {
9049
9049
  "height": 24,
9050
9050
  "viewBox": "0 0 24 24"
9051
9051
  };
9052
- function __decorate(decorators, target, key, desc) {
9053
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9054
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9055
- 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;
9056
- return c > 3 && r && Object.defineProperty(target, key, r), r;
9057
- }
9058
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
9059
- var e = new Error(message);
9060
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
9061
- };
9062
9052
  class Ngxi {
9063
9053
  constructor() {
9064
9054
  this.el = inject(ElementRef);
9065
9055
  this.platformId = inject(PLATFORM_ID);
9066
- this.ngxi = input.required(...[]);
9056
+ this.icon = input.required(...[]);
9067
9057
  this.width = input(void 0, ...[{
9068
9058
  transform: numberAttribute
9069
9059
  }]);
@@ -9079,20 +9069,20 @@ class Ngxi {
9079
9069
  if (isPlatformBrowser(this.platformId)) {
9080
9070
  const svg = this.el.nativeElement;
9081
9071
  svg.innerHTML = "";
9082
- if (!this.ngxi) {
9072
+ if (!this.icon) {
9083
9073
  return;
9084
9074
  }
9085
- svg.innerHTML = this.ngxi().body;
9086
- svg.setAttribute("width", (this.width() ?? this.ngxi()?.width ?? "").toString());
9087
- svg.setAttribute("height", (this.height() ?? this.ngxi()?.height ?? "").toString());
9088
- svg.setAttribute("viewBox", this.viewBox() ?? this.ngxi()?.viewBox ?? "");
9075
+ svg.innerHTML = this.icon().body;
9076
+ svg.setAttribute("width", (this.width() ?? this.icon()?.width ?? "").toString());
9077
+ svg.setAttribute("height", (this.height() ?? this.icon()?.height ?? "").toString());
9078
+ svg.setAttribute("viewBox", this.viewBox() ?? this.icon()?.viewBox ?? "");
9089
9079
  }
9090
9080
  }
9091
9081
  static {
9092
9082
  this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9093
9083
  }
9094
9084
  static {
9095
- 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 });
9085
+ 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 });
9096
9086
  }
9097
9087
  }
9098
9088
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, decorators: [{
@@ -9102,13 +9092,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImpor
9102
9092
  standalone: true
9103
9093
  }]
9104
9094
  }], ctorParameters: () => [] });
9105
- let NgxiCbi = class NgxiCbi2 {
9095
+ class NgxiCbi {
9106
9096
  constructor() {
9107
9097
  this.ngxiCbi = input.required(...[]);
9108
9098
  }
9109
- };
9110
- NgxiCbi = __decorate([
9111
- Directive({
9099
+ static {
9100
+ this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiCbi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9101
+ }
9102
+ static {
9103
+ this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", type: NgxiCbi, isStandalone: true, selector: "svg[ngxiCbi]", inputs: { ngxiCbi: { classPropertyName: "ngxiCbi", publicName: "ngxiCbi", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: Ngxi, inputs: ["icon", "ngxiCbi", "width", "width", "height", "height", "viewBox", "viewBox"] }], ngImport: i0 });
9104
+ }
9105
+ }
9106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiCbi, decorators: [{
9107
+ type: Directive,
9108
+ args: [{
9112
9109
  standalone: true,
9113
9110
  selector: "svg[ngxiCbi]",
9114
9111
  hostDirectives: [
@@ -9117,8 +9114,8 @@ NgxiCbi = __decorate([
9117
9114
  inputs: ["icon:ngxiCbi", "width", "height", "viewBox"]
9118
9115
  }
9119
9116
  ]
9120
- })
9121
- ], NgxiCbi);
9117
+ }]
9118
+ }] });
9122
9119
  export {
9123
9120
  NgxiCbi,
9124
9121
  cbi02tv,