@vallift/ngl 0.0.1 → 0.0.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.
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class AppSvgIconComponent {
|
|
3
|
-
src:
|
|
4
|
-
stretch:
|
|
5
|
-
size:
|
|
6
|
-
svgStyle:
|
|
3
|
+
src: string;
|
|
4
|
+
stretch: boolean;
|
|
5
|
+
size: number;
|
|
6
|
+
svgStyle: {
|
|
7
7
|
[key: string]: any;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
|
+
getStyle(): {
|
|
10
|
+
'width.px': number;
|
|
11
|
+
'height.px': number;
|
|
12
|
+
};
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppSvgIconComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppSvgIconComponent, "app-svg-icon", never, { "src": { "alias": "src"; "required":
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppSvgIconComponent, "app-svg-icon", never, { "src": { "alias": "src"; "required": false; }; "stretch": { "alias": "stretch"; "required": false; }; "size": { "alias": "size"; "required": false; }; "svgStyle": { "alias": "svgStyle"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
15
|
}
|
package/fesm2022/vallift-ngl.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, Injectable, signal, input, output, Component, ElementRef, Renderer2, EventEmitter, Output, RendererFactory2, HostListener, Directive, computed,
|
|
2
|
+
import { InjectionToken, inject, Injectable, signal, input, output, Component, Input, ElementRef, Renderer2, EventEmitter, Output, RendererFactory2, HostListener, Directive, computed, ViewChild, Inject, Pipe, ViewContainerRef, ContentChildren, ChangeDetectionStrategy, ChangeDetectorRef, viewChild } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common/http';
|
|
4
4
|
import { HttpClient, HttpHeaders, HttpRequest } from '@angular/common/http';
|
|
5
5
|
import { retry, throwError, Subject, debounceTime, fromEvent, filter as filter$1, take, of } from 'rxjs';
|
|
@@ -616,19 +616,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
616
616
|
}] });
|
|
617
617
|
|
|
618
618
|
class AppSvgIconComponent {
|
|
619
|
-
src
|
|
620
|
-
stretch =
|
|
621
|
-
size =
|
|
622
|
-
svgStyle =
|
|
619
|
+
src;
|
|
620
|
+
stretch = false;
|
|
621
|
+
size = 24;
|
|
622
|
+
svgStyle = {};
|
|
623
|
+
getStyle() {
|
|
624
|
+
return { ...this.svgStyle, 'width.px': this.size, 'height.px': this.size };
|
|
625
|
+
}
|
|
623
626
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AppSvgIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
624
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
627
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: AppSvgIconComponent, isStandalone: true, selector: "app-svg-icon", inputs: { src: "src", stretch: "stretch", size: "size", svgStyle: "svgStyle" }, ngImport: i0, template: "<svg-icon [src]=\"src\" [stretch]=\"stretch\" [svgStyle]=\"getStyle()\">\n</svg-icon>\n", styles: [""], dependencies: [{ kind: "component", type: SvgIconComponent, selector: "svg-icon", inputs: ["src", "name", "stretch", "applyClass", "svgClass", "class", "viewBox", "svgAriaLabel", "onSVGLoaded", "svgStyle"] }] });
|
|
625
628
|
}
|
|
626
629
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AppSvgIconComponent, decorators: [{
|
|
627
630
|
type: Component,
|
|
628
631
|
args: [{ selector: 'app-svg-icon', standalone: true, imports: [
|
|
629
632
|
SvgIconComponent
|
|
630
|
-
], template: "<svg-icon [src]=\"src
|
|
631
|
-
}]
|
|
633
|
+
], template: "<svg-icon [src]=\"src\" [stretch]=\"stretch\" [svgStyle]=\"getStyle()\">\n</svg-icon>\n" }]
|
|
634
|
+
}], propDecorators: { src: [{
|
|
635
|
+
type: Input
|
|
636
|
+
}], stretch: [{
|
|
637
|
+
type: Input
|
|
638
|
+
}], size: [{
|
|
639
|
+
type: Input
|
|
640
|
+
}], svgStyle: [{
|
|
641
|
+
type: Input
|
|
642
|
+
}] } });
|
|
632
643
|
|
|
633
644
|
class ButtonComponent {
|
|
634
645
|
elementRef = inject(ElementRef);
|