ng-tailwind 4.2.22 → 4.2.24
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/components/ngt-popover/ngt-popover-tooltip/ngt-popover-tooltip.component.d.ts +6 -2
- package/components/ngt-popover/ngt-popover.directive.d.ts +3 -0
- package/components/ngt-slider/ngt-slider.component.d.ts +3 -1
- package/esm2020/components/ngt-popover/ngt-popover-tooltip/ngt-popover-tooltip.component.mjs +22 -4
- package/esm2020/components/ngt-popover/ngt-popover.directive.mjs +16 -1
- package/esm2020/components/ngt-slider/ngt-slider.component.mjs +8 -4
- package/fesm2015/ng-tailwind.mjs +44 -7
- package/fesm2015/ng-tailwind.mjs.map +1 -1
- package/fesm2020/ng-tailwind.mjs +42 -5
- package/fesm2020/ng-tailwind.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/ng-tailwind.mjs
CHANGED
|
@@ -4840,9 +4840,9 @@ class NgtSliderComponent extends NgtBaseNgModel {
|
|
|
4840
4840
|
}
|
|
4841
4841
|
}
|
|
4842
4842
|
NgtSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtSliderComponent, deps: [{ token: i2$2.ControlContainer, host: true, optional: true }, { token: i0.Renderer2 }, { token: NgtFormComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4843
|
-
NgtSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: NgtSliderComponent, selector: "ngt-slider", inputs: { label: "label", shining: "shining", name: "name", min: "min", max: "max", step: "step", color: "color" }, providers: [
|
|
4843
|
+
NgtSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: NgtSliderComponent, selector: "ngt-slider", inputs: { label: "label", shining: "shining", isDisabled: "isDisabled", showPercentageSymbol: "showPercentageSymbol", name: "name", min: "min", max: "max", step: "step", color: "color" }, providers: [
|
|
4844
4844
|
NgtMakeProvider(NgtSliderComponent),
|
|
4845
|
-
], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "display", first: true, predicate: ["display"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"flex flex-col\">\n <span *ngIf='label && !shining' class=\"text-sm mb-2\">{{ label }}:</span>\n\n <div class=\"{{ shining ? 'hidden' : 'flex' }} items-center\">\n <input class=\"block w-full cursor-pointer overflow-hidden appearance-none bg-gray-400 {{color}}\" type=\"range\" [name]='name' ([ngModel])='value'\n oninput=\"display.innerHTML=value\" onchange=\"display.innerHTML=value\" [min]='min' [max]='max' [step]='step'\n #element>\n\n <span id='display' class=\"text-xs ml-2 font-semibold\" #display></span>\n </div>\n</div>\n\n<ng-container *ngIf='shining'>\n <div class=\"flex\">\n <ngt-shining class=\"w-full h-6\"></ngt-shining>\n </div>\n</ng-container
|
|
4845
|
+
], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "display", first: true, predicate: ["display"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"flex flex-col\">\n <span *ngIf='label && !shining' class=\"text-sm mb-2\">{{ label }}:</span>\n\n <div class=\"{{ shining ? 'hidden' : 'flex' }} items-center\">\n <input class=\"block w-full cursor-pointer overflow-hidden appearance-none bg-gray-400 {{color}}\"\n [class.cursor-not-allowed]=\"isDisabled\" type=\"range\" [name]='name' ([ngModel])='value'\n oninput=\"display.innerHTML=value\" onchange=\"display.innerHTML=value\" [min]='min' [max]='max' [step]='step'\n [disabled]=\"isDisabled\" #element>\n\n <span id='display' class=\"text-xs ml-2 font-semibold\" #display></span>\n <span *ngIf=\"showPercentageSymbol\" class=\"text-xs font-semibold\">%</span>\n </div>\n</div>\n\n<ng-container *ngIf='shining'>\n <div class=\"flex\">\n <ngt-shining class=\"w-full h-6\"></ngt-shining>\n </div>\n</ng-container>", styles: ["@media screen and (-webkit-min-device-pixel-ratio: 0){input[type=range]::-webkit-slider-thumb{width:15px;-webkit-appearance:none;appearance:none;height:15px;cursor:pointer;background:#FFF;border-radius:50%}.primary::-webkit-slider-thumb{box-shadow:-405px 0 0 400px #4299e1}.success::-webkit-slider-thumb{box-shadow:-405px 0 0 400px #6c9f23}.warning::-webkit-slider-thumb{box-shadow:-405px 0 0 400px #ffb822}.danger::-webkit-slider-thumb{box-shadow:-405px 0 0 400px #f56565}}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgtShiningComponent, selector: "ngt-shining", inputs: ["shiningWidth"] }], viewProviders: [
|
|
4846
4846
|
{ provide: ControlContainer, useExisting: NgForm }
|
|
4847
4847
|
] });
|
|
4848
4848
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtSliderComponent, decorators: [{
|
|
@@ -4851,7 +4851,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
|
4851
4851
|
NgtMakeProvider(NgtSliderComponent),
|
|
4852
4852
|
], viewProviders: [
|
|
4853
4853
|
{ provide: ControlContainer, useExisting: NgForm }
|
|
4854
|
-
], template: "<div class=\"flex flex-col\">\n <span *ngIf='label && !shining' class=\"text-sm mb-2\">{{ label }}:</span>\n\n <div class=\"{{ shining ? 'hidden' : 'flex' }} items-center\">\n <input class=\"block w-full cursor-pointer overflow-hidden appearance-none bg-gray-400 {{color}}\" type=\"range\" [name]='name' ([ngModel])='value'\n oninput=\"display.innerHTML=value\" onchange=\"display.innerHTML=value\" [min]='min' [max]='max' [step]='step'\n #element>\n\n <span id='display' class=\"text-xs ml-2 font-semibold\" #display></span>\n </div>\n</div>\n\n<ng-container *ngIf='shining'>\n <div class=\"flex\">\n <ngt-shining class=\"w-full h-6\"></ngt-shining>\n </div>\n</ng-container
|
|
4854
|
+
], template: "<div class=\"flex flex-col\">\n <span *ngIf='label && !shining' class=\"text-sm mb-2\">{{ label }}:</span>\n\n <div class=\"{{ shining ? 'hidden' : 'flex' }} items-center\">\n <input class=\"block w-full cursor-pointer overflow-hidden appearance-none bg-gray-400 {{color}}\"\n [class.cursor-not-allowed]=\"isDisabled\" type=\"range\" [name]='name' ([ngModel])='value'\n oninput=\"display.innerHTML=value\" onchange=\"display.innerHTML=value\" [min]='min' [max]='max' [step]='step'\n [disabled]=\"isDisabled\" #element>\n\n <span id='display' class=\"text-xs ml-2 font-semibold\" #display></span>\n <span *ngIf=\"showPercentageSymbol\" class=\"text-xs font-semibold\">%</span>\n </div>\n</div>\n\n<ng-container *ngIf='shining'>\n <div class=\"flex\">\n <ngt-shining class=\"w-full h-6\"></ngt-shining>\n </div>\n</ng-container>", styles: ["@media screen and (-webkit-min-device-pixel-ratio: 0){input[type=range]::-webkit-slider-thumb{width:15px;-webkit-appearance:none;appearance:none;height:15px;cursor:pointer;background:#FFF;border-radius:50%}.primary::-webkit-slider-thumb{box-shadow:-405px 0 0 400px #4299e1}.success::-webkit-slider-thumb{box-shadow:-405px 0 0 400px #6c9f23}.warning::-webkit-slider-thumb{box-shadow:-405px 0 0 400px #ffb822}.danger::-webkit-slider-thumb{box-shadow:-405px 0 0 400px #f56565}}\n"] }]
|
|
4855
4855
|
}], ctorParameters: function () { return [{ type: i2$2.ControlContainer, decorators: [{
|
|
4856
4856
|
type: Optional
|
|
4857
4857
|
}, {
|
|
@@ -4870,6 +4870,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
|
4870
4870
|
type: Input
|
|
4871
4871
|
}], shining: [{
|
|
4872
4872
|
type: Input
|
|
4873
|
+
}], isDisabled: [{
|
|
4874
|
+
type: Input
|
|
4875
|
+
}], showPercentageSymbol: [{
|
|
4876
|
+
type: Input
|
|
4873
4877
|
}], name: [{
|
|
4874
4878
|
type: Input
|
|
4875
4879
|
}], min: [{
|
|
@@ -7684,15 +7688,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
|
7684
7688
|
|
|
7685
7689
|
class NgtPopoverTooltipComponent {
|
|
7686
7690
|
constructor() {
|
|
7691
|
+
this.onMouseHoverEvent = new EventEmitter();
|
|
7692
|
+
this.onMouseLeaveEvent = new EventEmitter();
|
|
7687
7693
|
this.position = NgtPopoverPosition.DEFAULT;
|
|
7688
7694
|
this.positionClasses = {
|
|
7689
7695
|
[NgtPopoverPosition.TOP]: '-mt-10',
|
|
7690
7696
|
[NgtPopoverPosition.BOTTOM]: '-mb-10',
|
|
7691
7697
|
};
|
|
7692
7698
|
}
|
|
7699
|
+
onMouseLeave() {
|
|
7700
|
+
this.onMouseLeaveEvent.emit();
|
|
7701
|
+
}
|
|
7702
|
+
onMouseEnter() {
|
|
7703
|
+
this.onMouseHoverEvent.emit();
|
|
7704
|
+
}
|
|
7693
7705
|
}
|
|
7694
7706
|
NgtPopoverTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtPopoverTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7695
|
-
NgtPopoverTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: NgtPopoverTooltipComponent, selector: "ngt-popover-tooltip", ngImport: i0, template: "<div class=\"bg-white rounded-lg shadow-2xl border border-gray-200 absolute max-w-7xl\"\n [ngClass]=\"positionClasses[position]\" [style.left.px]=\"positionX\" [style.top.px]=\"positionY\"\n style=\"z-index: 999999 !important; width: max-content !important;\"\n (click)=\"$event.stopPropagation()\" @enterAnimation>\n\n <div *ngIf=\"!popoverTemplate; else showTemplate\" class=\"px-2 py-1 text-gray-700 whitespace-nowrap\">\n {{ popover }}\n </div>\n\n <ng-template #showTemplate>\n <ng-container [ngTemplateOutlet]=\"popoverTemplate\"></ng-container>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
|
|
7707
|
+
NgtPopoverTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: NgtPopoverTooltipComponent, selector: "ngt-popover-tooltip", outputs: { onMouseHoverEvent: "onMouseHoverEvent", onMouseLeaveEvent: "onMouseLeaveEvent" }, host: { listeners: { "mouseleave": "onMouseLeave()", "mouseenter": "onMouseEnter()" } }, ngImport: i0, template: "<div class=\"bg-white rounded-lg shadow-2xl border border-gray-200 absolute max-w-7xl\"\n [ngClass]=\"positionClasses[position]\" [style.left.px]=\"positionX\" [style.top.px]=\"positionY\"\n style=\"z-index: 999999 !important; width: max-content !important;\"\n (click)=\"$event.stopPropagation()\" @enterAnimation>\n\n <div *ngIf=\"!popoverTemplate; else showTemplate\" class=\"px-2 py-1 text-gray-700 whitespace-nowrap\">\n {{ popover }}\n </div>\n\n <ng-template #showTemplate>\n <ng-container [ngTemplateOutlet]=\"popoverTemplate\"></ng-container>\n </ng-template>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
|
|
7696
7708
|
trigger('enterAnimation', [
|
|
7697
7709
|
state('void', style({ transform: 'translateY(-20px)', opacity: 0 })),
|
|
7698
7710
|
transition(':enter', [
|
|
@@ -7710,7 +7722,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
|
7710
7722
|
])
|
|
7711
7723
|
]),
|
|
7712
7724
|
], template: "<div class=\"bg-white rounded-lg shadow-2xl border border-gray-200 absolute max-w-7xl\"\n [ngClass]=\"positionClasses[position]\" [style.left.px]=\"positionX\" [style.top.px]=\"positionY\"\n style=\"z-index: 999999 !important; width: max-content !important;\"\n (click)=\"$event.stopPropagation()\" @enterAnimation>\n\n <div *ngIf=\"!popoverTemplate; else showTemplate\" class=\"px-2 py-1 text-gray-700 whitespace-nowrap\">\n {{ popover }}\n </div>\n\n <ng-template #showTemplate>\n <ng-container [ngTemplateOutlet]=\"popoverTemplate\"></ng-container>\n </ng-template>\n</div>\n" }]
|
|
7713
|
-
}]
|
|
7725
|
+
}], propDecorators: { onMouseHoverEvent: [{
|
|
7726
|
+
type: Output
|
|
7727
|
+
}], onMouseLeaveEvent: [{
|
|
7728
|
+
type: Output
|
|
7729
|
+
}], onMouseLeave: [{
|
|
7730
|
+
type: HostListener,
|
|
7731
|
+
args: ['mouseleave']
|
|
7732
|
+
}], onMouseEnter: [{
|
|
7733
|
+
type: HostListener,
|
|
7734
|
+
args: ['mouseenter']
|
|
7735
|
+
}] } });
|
|
7714
7736
|
var NgtPopoverPosition;
|
|
7715
7737
|
(function (NgtPopoverPosition) {
|
|
7716
7738
|
NgtPopoverPosition["DEFAULT"] = "TOP";
|
|
@@ -7850,6 +7872,8 @@ class NgtPopoverDirective {
|
|
|
7850
7872
|
this.setupPopoverComponent();
|
|
7851
7873
|
}
|
|
7852
7874
|
destroy() {
|
|
7875
|
+
this.toolTipMouseHoverSubscription?.unsubscribe();
|
|
7876
|
+
this.toolTipMouseLeaveSubscription?.unsubscribe();
|
|
7853
7877
|
this.componentRef?.destroy();
|
|
7854
7878
|
this.componentRef = null;
|
|
7855
7879
|
}
|
|
@@ -7865,8 +7889,21 @@ class NgtPopoverDirective {
|
|
|
7865
7889
|
this.componentRef.instance.popover = this.ngtPopoverContent;
|
|
7866
7890
|
this.componentRef.instance.popoverTemplate = this.ngtPopoverTemplate;
|
|
7867
7891
|
this.componentRef.instance.position = this.ngtPopoverPosition;
|
|
7892
|
+
this.bindSubscriptions();
|
|
7868
7893
|
document.body.appendChild(this.componentRef.location.nativeElement);
|
|
7869
7894
|
}
|
|
7895
|
+
bindSubscriptions() {
|
|
7896
|
+
this.toolTipMouseHoverSubscription = this.componentRef.instance
|
|
7897
|
+
.onMouseHoverEvent
|
|
7898
|
+
.subscribe(() => {
|
|
7899
|
+
if (this.dismissTimeoutInstance) {
|
|
7900
|
+
clearTimeout(this.dismissTimeoutInstance);
|
|
7901
|
+
}
|
|
7902
|
+
});
|
|
7903
|
+
this.toolTipMouseLeaveSubscription = this.componentRef.instance
|
|
7904
|
+
.onMouseLeaveEvent
|
|
7905
|
+
.subscribe(() => this.onMouseLeave());
|
|
7906
|
+
}
|
|
7870
7907
|
}
|
|
7871
7908
|
NgtPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtPopoverDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7872
7909
|
NgtPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: NgtPopoverDirective, selector: "[ngt-popover]", inputs: { ngtPopoverContent: "ngtPopoverContent", ngtPopoverTemplate: "ngtPopoverTemplate", ngtPopoverPosition: "ngtPopoverPosition", dismissDelay: "dismissDelay", showDelay: "showDelay", closeOnClick: "closeOnClick", openMethod: "openMethod" }, host: { listeners: { "click": "onClick()", "document:click": "onDocumentClick($event.target)", "mouseleave": "onMouseLeave()", "mouseenter": "onMouseEnter()" } }, ngImport: i0 });
|