@ngxi/streamline-cyber 0.12.22 → 0.12.24
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 +46 -33
- package/dist/index.js.map +1 -1
- package/dist/lib/streamline-cyber.d.ts +0 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { inject, input,
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, PLATFORM_ID, input, numberAttribute, effect, Directive } from "@angular/core";
|
|
3
|
+
import { isPlatformBrowser } from "@angular/common";
|
|
4
4
|
const streamlineCyber3dGlasses = {
|
|
5
5
|
"body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10"><path d="m22.5 10.5l-5.75-5H14.5m-14 5l5.75-5H8.5m-8 5l2 9H8l3.5-3.5l3.5 3.5h5.5l2-9m-22 0h22"/><path d="M3.25 12.5h7.25V14L7 17.5H4.5zm16.5 0H12.5V14l3.5 3.5h2.5z"/></g>',
|
|
6
6
|
"width": 24,
|
|
@@ -3001,53 +3001,66 @@ const streamlineCyberWrenchScrewdriver = {
|
|
|
3001
3001
|
"height": 24,
|
|
3002
3002
|
"viewBox": "0 0 24 24"
|
|
3003
3003
|
};
|
|
3004
|
+
function __decorate(decorators, target, key, desc) {
|
|
3005
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3006
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3007
|
+
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;
|
|
3008
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3009
|
+
}
|
|
3010
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
3011
|
+
var e = new Error(message);
|
|
3012
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
3013
|
+
};
|
|
3004
3014
|
class Ngxi {
|
|
3005
3015
|
constructor() {
|
|
3006
|
-
this.
|
|
3007
|
-
this.
|
|
3008
|
-
this.
|
|
3009
|
-
this.
|
|
3016
|
+
this.el = inject(ElementRef);
|
|
3017
|
+
this.platformId = inject(PLATFORM_ID);
|
|
3018
|
+
this.ngxi = input.required(...[]);
|
|
3019
|
+
this.width = input(void 0, ...[{
|
|
3020
|
+
transform: numberAttribute
|
|
3021
|
+
}]);
|
|
3022
|
+
this.height = input(void 0, ...[{
|
|
3023
|
+
transform: numberAttribute
|
|
3024
|
+
}]);
|
|
3010
3025
|
this.viewBox = input(...[]);
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3026
|
+
effect(() => {
|
|
3027
|
+
this.updateSvg();
|
|
3028
|
+
});
|
|
3029
|
+
}
|
|
3030
|
+
updateSvg() {
|
|
3031
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
3032
|
+
const svg = this.el.nativeElement;
|
|
3033
|
+
svg.innerHTML = "";
|
|
3034
|
+
if (!this.ngxi) {
|
|
3035
|
+
return;
|
|
3036
|
+
}
|
|
3037
|
+
svg.innerHTML = this.ngxi().body;
|
|
3038
|
+
svg.setAttribute("width", (this.width() ?? this.ngxi()?.width ?? "").toString());
|
|
3039
|
+
svg.setAttribute("height", (this.height() ?? this.ngxi()?.height ?? "").toString());
|
|
3040
|
+
svg.setAttribute("viewBox", this.viewBox() ?? this.ngxi()?.viewBox ?? "");
|
|
3041
|
+
}
|
|
3015
3042
|
}
|
|
3016
3043
|
static {
|
|
3017
3044
|
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3018
3045
|
}
|
|
3019
3046
|
static {
|
|
3020
|
-
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", type: Ngxi, isStandalone: true, selector: "svg[ngxi]", inputs: {
|
|
3047
|
+
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 });
|
|
3021
3048
|
}
|
|
3022
3049
|
}
|
|
3023
3050
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: Ngxi, decorators: [{
|
|
3024
3051
|
type: Directive,
|
|
3025
3052
|
args: [{
|
|
3026
|
-
standalone: true,
|
|
3027
3053
|
selector: "svg[ngxi]",
|
|
3028
|
-
|
|
3029
|
-
"role": "img",
|
|
3030
|
-
"[attr.width]": "resolvedWidth()",
|
|
3031
|
-
"[attr.height]": "resolvedHeight()",
|
|
3032
|
-
"[attr.viewBox]": "resolvedViewBox()",
|
|
3033
|
-
"[innerHTML]": "safeSVG()"
|
|
3034
|
-
}
|
|
3054
|
+
standalone: true
|
|
3035
3055
|
}]
|
|
3036
|
-
}] });
|
|
3037
|
-
|
|
3056
|
+
}], ctorParameters: () => [] });
|
|
3057
|
+
let NgxiStreamlineCyber = class NgxiStreamlineCyber2 {
|
|
3038
3058
|
constructor() {
|
|
3039
3059
|
this.ngxiStreamlineCyber = input.required(...[]);
|
|
3040
3060
|
}
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
static {
|
|
3045
|
-
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.2", type: NgxiStreamlineCyber, isStandalone: true, selector: "svg[ngxiStreamlineCyber]", inputs: { ngxiStreamlineCyber: { classPropertyName: "ngxiStreamlineCyber", publicName: "ngxiStreamlineCyber", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: Ngxi, inputs: ["icon", "ngxiStreamlineCyber", "width", "width", "height", "height", "viewBox", "viewBox"] }], ngImport: i0 });
|
|
3046
|
-
}
|
|
3047
|
-
}
|
|
3048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImport: i0, type: NgxiStreamlineCyber, decorators: [{
|
|
3049
|
-
type: Directive,
|
|
3050
|
-
args: [{
|
|
3061
|
+
};
|
|
3062
|
+
NgxiStreamlineCyber = __decorate([
|
|
3063
|
+
Directive({
|
|
3051
3064
|
standalone: true,
|
|
3052
3065
|
selector: "svg[ngxiStreamlineCyber]",
|
|
3053
3066
|
hostDirectives: [
|
|
@@ -3056,8 +3069,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.2", ngImpor
|
|
|
3056
3069
|
inputs: ["icon:ngxiStreamlineCyber", "width", "height", "viewBox"]
|
|
3057
3070
|
}
|
|
3058
3071
|
]
|
|
3059
|
-
}
|
|
3060
|
-
|
|
3072
|
+
})
|
|
3073
|
+
], NgxiStreamlineCyber);
|
|
3061
3074
|
export {
|
|
3062
3075
|
NgxiStreamlineCyber,
|
|
3063
3076
|
streamlineCyber3dGlasses,
|