@ngxi/cbi 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/cbi.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 cbi02tv = {
|
|
4
5
|
"body": '<path fill="currentColor" d="m16.5 8.261l2.121 6.123h1.467L22 8.261h-1.074l-1.571 4.768l-1.546-4.768zm-5.475 0h4.898v.897h-1.781l-.052 5.226h-1.231V9.158h-1.834zm-1.242 7.478v-.42H8.7c.435-.427 1-.946 1-1.511a.733.733 0 0 0-.835-.779a1.8 1.8 0 0 0-.791.191l.043.443a1.15 1.15 0 0 1 .614-.214c.217 0 .436.114.436.359c0 .488-.905 1.244-1.153 1.485v.446zM2 11.411a3.063 3.063 0 1 0 6.124 0a2.97 2.97 0 0 0-3.057-3.15A2.97 2.97 0 0 0 2 11.411m1.18 0a2.055 2.055 0 0 1 1.887-2.253a2.054 2.054 0 0 1 1.876 2.253a2.016 2.016 0 0 1-1.876 2.253a2.02 2.02 0 0 1-1.887-2.253"/>',
|
|
5
6
|
"width": 24,
|
|
@@ -8880,10 +8881,19 @@ const cbiTwinlyCurtian = {
|
|
|
8880
8881
|
"height": 24,
|
|
8881
8882
|
"viewBox": "0 0 24 24"
|
|
8882
8883
|
};
|
|
8884
|
+
function __decorate(decorators, target, key, desc) {
|
|
8885
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8886
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8887
|
+
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;
|
|
8888
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8889
|
+
}
|
|
8890
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
8891
|
+
var e = new Error(message);
|
|
8892
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
8893
|
+
};
|
|
8883
8894
|
class Ngxi {
|
|
8884
8895
|
constructor() {
|
|
8885
|
-
this.
|
|
8886
|
-
this.renderer = inject(Renderer2);
|
|
8896
|
+
this.sanitizer = inject(DomSanitizer);
|
|
8887
8897
|
this.icon = input(null);
|
|
8888
8898
|
this.width = input();
|
|
8889
8899
|
this.height = input();
|
|
@@ -8891,19 +8901,16 @@ class Ngxi {
|
|
|
8891
8901
|
this.resolvedWidth = computed(() => this.width() ?? this.icon()?.width);
|
|
8892
8902
|
this.resolvedHeight = computed(() => this.height() ?? this.icon()?.height);
|
|
8893
8903
|
this.resolvedViewBox = computed(() => this.viewBox() ?? this.icon()?.viewBox);
|
|
8894
|
-
this.
|
|
8895
|
-
const icon = this.icon();
|
|
8896
|
-
this.renderer.setProperty(this.el.nativeElement, "innerHTML", icon?.body ?? "");
|
|
8897
|
-
});
|
|
8904
|
+
this.resolvedBody = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.icon()?.body ?? ""));
|
|
8898
8905
|
}
|
|
8899
8906
|
static {
|
|
8900
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8907
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8901
8908
|
}
|
|
8902
8909
|
static {
|
|
8903
|
-
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
8910
|
+
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 });
|
|
8904
8911
|
}
|
|
8905
8912
|
}
|
|
8906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: Ngxi, decorators: [{
|
|
8907
8914
|
type: Directive,
|
|
8908
8915
|
args: [{
|
|
8909
8916
|
standalone: true,
|
|
@@ -8912,24 +8919,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
8912
8919
|
"role": "img",
|
|
8913
8920
|
"[attr.width]": "resolvedWidth()",
|
|
8914
8921
|
"[attr.height]": "resolvedHeight()",
|
|
8915
|
-
"[attr.viewBox]": "resolvedViewBox()"
|
|
8922
|
+
"[attr.viewBox]": "resolvedViewBox()",
|
|
8923
|
+
"[innerHTML]": "resolvedBody()"
|
|
8916
8924
|
}
|
|
8917
8925
|
}]
|
|
8918
8926
|
}] });
|
|
8919
|
-
|
|
8927
|
+
let NgxiCbi = class NgxiCbi2 {
|
|
8920
8928
|
constructor() {
|
|
8921
8929
|
this.ngxiCbi = input.required();
|
|
8922
8930
|
}
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
static {
|
|
8927
|
-
this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.13", 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 });
|
|
8928
|
-
}
|
|
8929
|
-
}
|
|
8930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxiCbi, decorators: [{
|
|
8931
|
-
type: Directive,
|
|
8932
|
-
args: [{
|
|
8931
|
+
};
|
|
8932
|
+
NgxiCbi = __decorate([
|
|
8933
|
+
Directive({
|
|
8933
8934
|
standalone: true,
|
|
8934
8935
|
selector: "svg[ngxiCbi]",
|
|
8935
8936
|
hostDirectives: [
|
|
@@ -8938,8 +8939,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
8938
8939
|
inputs: ["icon:ngxiCbi", "width", "height", "viewBox"]
|
|
8939
8940
|
}
|
|
8940
8941
|
]
|
|
8941
|
-
}
|
|
8942
|
-
|
|
8942
|
+
})
|
|
8943
|
+
], NgxiCbi);
|
|
8943
8944
|
export {
|
|
8944
8945
|
NgxiCbi,
|
|
8945
8946
|
cbi02tv,
|