@ngxi/streamline-cyber 0.12.0-beta.11 → 0.12.0-beta.2
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 +25 -24
- package/dist/index.js.map +1 -1
- package/dist/lib/streamline-cyber.d.ts +0 -5
- package/package.json +30 -31
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { inject,
|
|
2
|
+
import { inject, input, computed, Directive } from "@angular/core";
|
|
3
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
3
4
|
const streamlineCyber3dGlasses = {
|
|
4
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>',
|
|
5
6
|
"width": 24,
|
|
@@ -3000,10 +3001,19 @@ const streamlineCyberWrenchScrewdriver = {
|
|
|
3000
3001
|
"height": 24,
|
|
3001
3002
|
"viewBox": "0 0 24 24"
|
|
3002
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
|
+
};
|
|
3003
3014
|
class Ngxi {
|
|
3004
3015
|
constructor() {
|
|
3005
|
-
this.
|
|
3006
|
-
this.renderer = inject(Renderer2);
|
|
3016
|
+
this.sanitizer = inject(DomSanitizer);
|
|
3007
3017
|
this.icon = input(null);
|
|
3008
3018
|
this.width = input();
|
|
3009
3019
|
this.height = input();
|
|
@@ -3011,19 +3021,16 @@ class Ngxi {
|
|
|
3011
3021
|
this.resolvedWidth = computed(() => this.width() ?? this.icon()?.width);
|
|
3012
3022
|
this.resolvedHeight = computed(() => this.height() ?? this.icon()?.height);
|
|
3013
3023
|
this.resolvedViewBox = computed(() => this.viewBox() ?? this.icon()?.viewBox);
|
|
3014
|
-
this.
|
|
3015
|
-
const icon = this.icon();
|
|
3016
|
-
this.renderer.setProperty(this.el.nativeElement, "innerHTML", icon?.body ?? "");
|
|
3017
|
-
});
|
|
3024
|
+
this.resolvedBody = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.icon()?.body ?? ""));
|
|
3018
3025
|
}
|
|
3019
3026
|
static {
|
|
3020
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3027
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3021
3028
|
}
|
|
3022
3029
|
static {
|
|
3023
|
-
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3030
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.4", type: Ngxi, isStandalone: true, selector: "svg[ngxi]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, 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 } }, host: { attributes: { "role": "img" }, properties: { "attr.width": "resolvedWidth()", "attr.height": "resolvedHeight()", "attr.viewBox": "resolvedViewBox()", "innerHTML": "resolvedBody()" } }, ngImport: i0 });
|
|
3024
3031
|
}
|
|
3025
3032
|
}
|
|
3026
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3033
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, decorators: [{
|
|
3027
3034
|
type: Directive,
|
|
3028
3035
|
args: [{
|
|
3029
3036
|
standalone: true,
|
|
@@ -3032,24 +3039,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3032
3039
|
"role": "img",
|
|
3033
3040
|
"[attr.width]": "resolvedWidth()",
|
|
3034
3041
|
"[attr.height]": "resolvedHeight()",
|
|
3035
|
-
"[attr.viewBox]": "resolvedViewBox()"
|
|
3042
|
+
"[attr.viewBox]": "resolvedViewBox()",
|
|
3043
|
+
"[innerHTML]": "resolvedBody()"
|
|
3036
3044
|
}
|
|
3037
3045
|
}]
|
|
3038
3046
|
}] });
|
|
3039
|
-
|
|
3047
|
+
let NgxiStreamlineCyber = class NgxiStreamlineCyber2 {
|
|
3040
3048
|
constructor() {
|
|
3041
3049
|
this.ngxiStreamlineCyber = input.required();
|
|
3042
3050
|
}
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
static {
|
|
3047
|
-
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.13", 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 });
|
|
3048
|
-
}
|
|
3049
|
-
}
|
|
3050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxiStreamlineCyber, decorators: [{
|
|
3051
|
-
type: Directive,
|
|
3052
|
-
args: [{
|
|
3051
|
+
};
|
|
3052
|
+
NgxiStreamlineCyber = __decorate([
|
|
3053
|
+
Directive({
|
|
3053
3054
|
standalone: true,
|
|
3054
3055
|
selector: "svg[ngxiStreamlineCyber]",
|
|
3055
3056
|
hostDirectives: [
|
|
@@ -3058,8 +3059,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3058
3059
|
inputs: ["icon:ngxiStreamlineCyber", "width", "height", "viewBox"]
|
|
3059
3060
|
}
|
|
3060
3061
|
]
|
|
3061
|
-
}
|
|
3062
|
-
|
|
3062
|
+
})
|
|
3063
|
+
], NgxiStreamlineCyber);
|
|
3063
3064
|
export {
|
|
3064
3065
|
NgxiStreamlineCyber,
|
|
3065
3066
|
streamlineCyber3dGlasses,
|