@ngxi/eva 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 +20 -23
- package/dist/index.js.map +1 -1
- package/dist/lib/eva.d.ts +4 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2941,21 +2941,11 @@ const evaWifiOutline = {
|
|
|
2941
2941
|
"height": 24,
|
|
2942
2942
|
"viewBox": "0 0 24 24"
|
|
2943
2943
|
};
|
|
2944
|
-
function __decorate(decorators, target, key, desc) {
|
|
2945
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2946
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2947
|
-
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;
|
|
2948
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2949
|
-
}
|
|
2950
|
-
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
2951
|
-
var e = new Error(message);
|
|
2952
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2953
|
-
};
|
|
2954
2944
|
class Ngxi {
|
|
2955
2945
|
constructor() {
|
|
2956
2946
|
this.el = inject(ElementRef);
|
|
2957
2947
|
this.platformId = inject(PLATFORM_ID);
|
|
2958
|
-
this.
|
|
2948
|
+
this.icon = input.required(...[]);
|
|
2959
2949
|
this.width = input(void 0, ...[{
|
|
2960
2950
|
transform: numberAttribute
|
|
2961
2951
|
}]);
|
|
@@ -2971,20 +2961,20 @@ class Ngxi {
|
|
|
2971
2961
|
if (isPlatformBrowser(this.platformId)) {
|
|
2972
2962
|
const svg = this.el.nativeElement;
|
|
2973
2963
|
svg.innerHTML = "";
|
|
2974
|
-
if (!this.
|
|
2964
|
+
if (!this.icon) {
|
|
2975
2965
|
return;
|
|
2976
2966
|
}
|
|
2977
|
-
svg.innerHTML = this.
|
|
2978
|
-
svg.setAttribute("width", (this.width() ?? this.
|
|
2979
|
-
svg.setAttribute("height", (this.height() ?? this.
|
|
2980
|
-
svg.setAttribute("viewBox", this.viewBox() ?? this.
|
|
2967
|
+
svg.innerHTML = this.icon().body;
|
|
2968
|
+
svg.setAttribute("width", (this.width() ?? this.icon()?.width ?? "").toString());
|
|
2969
|
+
svg.setAttribute("height", (this.height() ?? this.icon()?.height ?? "").toString());
|
|
2970
|
+
svg.setAttribute("viewBox", this.viewBox() ?? this.icon()?.viewBox ?? "");
|
|
2981
2971
|
}
|
|
2982
2972
|
}
|
|
2983
2973
|
static {
|
|
2984
2974
|
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2985
2975
|
}
|
|
2986
2976
|
static {
|
|
2987
|
-
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", type: Ngxi, isStandalone: true, selector: "svg[ngxi]", inputs: {
|
|
2977
|
+
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 });
|
|
2988
2978
|
}
|
|
2989
2979
|
}
|
|
2990
2980
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, decorators: [{
|
|
@@ -2994,13 +2984,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImpor
|
|
|
2994
2984
|
standalone: true
|
|
2995
2985
|
}]
|
|
2996
2986
|
}], ctorParameters: () => [] });
|
|
2997
|
-
|
|
2987
|
+
class NgxiEva {
|
|
2998
2988
|
constructor() {
|
|
2999
2989
|
this.ngxiEva = input.required(...[]);
|
|
3000
2990
|
}
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
2991
|
+
static {
|
|
2992
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiEva, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2993
|
+
}
|
|
2994
|
+
static {
|
|
2995
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", type: NgxiEva, isStandalone: true, selector: "svg[ngxiEva]", inputs: { ngxiEva: { classPropertyName: "ngxiEva", publicName: "ngxiEva", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: Ngxi, inputs: ["icon", "ngxiEva", "width", "width", "height", "height", "viewBox", "viewBox"] }], ngImport: i0 });
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiEva, decorators: [{
|
|
2999
|
+
type: Directive,
|
|
3000
|
+
args: [{
|
|
3004
3001
|
standalone: true,
|
|
3005
3002
|
selector: "svg[ngxiEva]",
|
|
3006
3003
|
hostDirectives: [
|
|
@@ -3009,8 +3006,8 @@ NgxiEva = __decorate([
|
|
|
3009
3006
|
inputs: ["icon:ngxiEva", "width", "height", "viewBox"]
|
|
3010
3007
|
}
|
|
3011
3008
|
]
|
|
3012
|
-
}
|
|
3013
|
-
]
|
|
3009
|
+
}]
|
|
3010
|
+
}] });
|
|
3014
3011
|
export {
|
|
3015
3012
|
NgxiEva,
|
|
3016
3013
|
evaActivityFill,
|