@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: import("@angular/core").InputSignal<string>;
4
- stretch: import("@angular/core").InputSignal<boolean>;
5
- size: import("@angular/core").InputSignal<number>;
6
- svgStyle: import("@angular/core").InputSignal<{
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": true; "isSignal": true; }; "stretch": { "alias": "stretch"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "svgStyle": { "alias": "svgStyle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
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
  }
@@ -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, Input, ViewChild, Inject, Pipe, ViewContainerRef, ContentChildren, ChangeDetectionStrategy, ChangeDetectorRef, viewChild } from '@angular/core';
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 = input.required();
620
- stretch = input(false);
621
- size = input(24);
622
- svgStyle = input({});
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: "17.1.0", version: "19.2.7", type: AppSvgIconComponent, isStandalone: true, selector: "app-svg-icon", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: true, transformFunction: null }, stretch: { classPropertyName: "stretch", publicName: "stretch", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, svgStyle: { classPropertyName: "svgStyle", publicName: "svgStyle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<svg-icon [src]=\"src()\" [stretch]=\"stretch()\" [svgStyle]=\"{ 'width.px':size() }\">\n</svg-icon>\n", styles: [""], dependencies: [{ kind: "component", type: SvgIconComponent, selector: "svg-icon", inputs: ["src", "name", "stretch", "applyClass", "svgClass", "class", "viewBox", "svgAriaLabel", "onSVGLoaded", "svgStyle"] }] });
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()\" [stretch]=\"stretch()\" [svgStyle]=\"{ 'width.px':size() }\">\n</svg-icon>\n" }]
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);