ngx-dsxlibrary 2.21.52 → 2.21.53
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.
|
@@ -4343,9 +4343,9 @@ class IconDsxComponent {
|
|
|
4343
4343
|
svg$; // 👈 AHORA es un Observable
|
|
4344
4344
|
constructor(iconService) {
|
|
4345
4345
|
this.iconService = iconService;
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4346
|
+
effect(() => {
|
|
4347
|
+
this.svg$ = this.iconService.getIcon(this.name());
|
|
4348
|
+
});
|
|
4349
4349
|
}
|
|
4350
4350
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IconDsxComponent, deps: [{ token: IconDsxService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4351
4351
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: IconDsxComponent, isStandalone: true, selector: "icon-dsx", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span class=\"dsx-icon\" [innerHTML]=\"svg$ | async\"></span>\r\n", styles: [":host{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:1em;height:1em;font-size:24px;line-height:1;flex-shrink:0}.dsx-icon{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%}:host ::ng-deep .dsx-icon svg{width:100%;height:100%;fill:currentColor;shape-rendering:geometricPrecision;stroke:currentColor;stroke-width:4px;stroke-linejoin:round;stroke-linecap:round;overflow:visible;transition:fill .2s ease,stroke .2s ease}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }] });
|