@vallift/ngl 21.0.3 → 21.0.5
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/fesm2022/vallift-ngl.mjs +17 -22
- package/fesm2022/vallift-ngl.mjs.map +1 -1
- package/package.json +1 -1
- package/types/vallift-ngl.d.ts +8 -11
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,
|
|
2
|
+
import { InjectionToken, inject, Injectable, signal, input, output, Component, ElementRef, DOCUMENT, Renderer2, EventEmitter, Output, RendererFactory2, HostListener, Directive, computed, Input, ChangeDetectorRef, model, ViewChild, ViewContainerRef, ComponentFactoryResolver, ApplicationRef, Injector, Inject, Pipe, ContentChildren, ChangeDetectionStrategy, effect, 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';
|
|
@@ -617,30 +617,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImpor
|
|
|
617
617
|
}], propDecorators: { borderColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderColor", required: false }] }] } });
|
|
618
618
|
|
|
619
619
|
class AppSvgIconComponent {
|
|
620
|
-
src;
|
|
621
|
-
stretch = false;
|
|
622
|
-
size = 20;
|
|
623
|
-
svgStyle = {};
|
|
624
|
-
getStyle() {
|
|
625
|
-
return { ...this.svgStyle, 'width.px': this.size, 'height.px': this.size };
|
|
626
|
-
}
|
|
620
|
+
src = input.required(...(ngDevMode ? [{ debugName: "src" }] : []));
|
|
621
|
+
stretch = input(false, ...(ngDevMode ? [{ debugName: "stretch" }] : []));
|
|
622
|
+
size = input(20, ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
623
|
+
svgStyle = input({}, ...(ngDevMode ? [{ debugName: "svgStyle" }] : []));
|
|
627
624
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: AppSvgIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
628
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
625
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.3", 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"] }] });
|
|
629
626
|
}
|
|
630
627
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: AppSvgIconComponent, decorators: [{
|
|
631
628
|
type: Component,
|
|
632
629
|
args: [{ selector: 'app-svg-icon', standalone: true, imports: [
|
|
633
630
|
SvgIconComponent
|
|
634
|
-
], template: "<svg-icon [src]=\"src\" [stretch]=\"stretch\" [svgStyle]=\"
|
|
635
|
-
}], propDecorators: { src: [{
|
|
636
|
-
type: Input
|
|
637
|
-
}], stretch: [{
|
|
638
|
-
type: Input
|
|
639
|
-
}], size: [{
|
|
640
|
-
type: Input
|
|
641
|
-
}], svgStyle: [{
|
|
642
|
-
type: Input
|
|
643
|
-
}] } });
|
|
631
|
+
], template: "<svg-icon [src]=\"src()\" [stretch]=\"stretch()\" [svgStyle]=\"{ 'width.px':size() }\">\n</svg-icon>\n" }]
|
|
632
|
+
}], propDecorators: { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: true }] }], stretch: [{ type: i0.Input, args: [{ isSignal: true, alias: "stretch", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], svgStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "svgStyle", required: false }] }] } });
|
|
644
633
|
|
|
645
634
|
class ButtonComponent {
|
|
646
635
|
elementRef = inject(ElementRef);
|
|
@@ -3666,14 +3655,20 @@ class TooltipDirective {
|
|
|
3666
3655
|
libTooltip = '';
|
|
3667
3656
|
tooltipPosition = input('bottom', ...(ngDevMode ? [{ debugName: "tooltipPosition" }] : []));
|
|
3668
3657
|
tooltipClass = input({ alias: 'tooltipClass' }, ...(ngDevMode ? [{ debugName: "tooltipClass" }] : []));
|
|
3658
|
+
tooltipDisabled = input(false, ...(ngDevMode ? [{ debugName: "tooltipDisabled" }] : []));
|
|
3669
3659
|
constructor() {
|
|
3670
3660
|
effect(() => {
|
|
3671
3661
|
this.hideTooltip();
|
|
3672
3662
|
});
|
|
3673
3663
|
}
|
|
3674
3664
|
showTooltip() {
|
|
3675
|
-
if (this.
|
|
3665
|
+
if (this.tooltipDisabled()) {
|
|
3676
3666
|
return;
|
|
3667
|
+
}
|
|
3668
|
+
if (this.overlayRef?.hasAttached()) {
|
|
3669
|
+
return;
|
|
3670
|
+
}
|
|
3671
|
+
;
|
|
3677
3672
|
const position = this.getPosition(this.tooltipPosition());
|
|
3678
3673
|
const positionStrategy = this.positionBuilder
|
|
3679
3674
|
.flexibleConnectedTo(this.elementRef)
|
|
@@ -3760,7 +3755,7 @@ class TooltipDirective {
|
|
|
3760
3755
|
this.hideTooltip();
|
|
3761
3756
|
}
|
|
3762
3757
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3763
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.3", type: TooltipDirective, isStandalone: true, selector: "[libTooltip]", inputs: { libTooltip: { classPropertyName: "libTooltip", publicName: "libTooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipClass: { classPropertyName: "tooltipClass", publicName: "tooltipClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "touchstart": "onTouchStart()", "touchend": "onTouchEnd()", "touchcancel": "onTouchEnd()" } }, ngImport: i0 });
|
|
3758
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.3", type: TooltipDirective, isStandalone: true, selector: "[libTooltip]", inputs: { libTooltip: { classPropertyName: "libTooltip", publicName: "libTooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipClass: { classPropertyName: "tooltipClass", publicName: "tooltipClass", isSignal: true, isRequired: false, transformFunction: null }, tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "touchstart": "onTouchStart()", "touchend": "onTouchEnd()", "touchcancel": "onTouchEnd()" } }, ngImport: i0 });
|
|
3764
3759
|
}
|
|
3765
3760
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
3766
3761
|
type: Directive,
|
|
@@ -3770,7 +3765,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImpor
|
|
|
3770
3765
|
}]
|
|
3771
3766
|
}], ctorParameters: () => [], propDecorators: { libTooltip: [{
|
|
3772
3767
|
type: Input
|
|
3773
|
-
}], tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipClass", required: false }] }], onMouseEnter: [{
|
|
3768
|
+
}], tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipClass", required: false }] }], tooltipDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipDisabled", required: false }] }], onMouseEnter: [{
|
|
3774
3769
|
type: HostListener,
|
|
3775
3770
|
args: ['mouseenter']
|
|
3776
3771
|
}], onMouseLeave: [{
|