@vallift/ngl 0.0.21 → 0.0.23
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/context-menu-button/context-menu-button.component.d.ts +1 -1
- package/components/floating-menu/open-floating-menu.directive.d.ts +11 -0
- package/components/tooltip/tooltip.component.d.ts +4 -1
- package/components/tooltip/tooltip.directive.d.ts +4 -1
- package/fesm2022/vallift-ngl.mjs +43 -4
- package/fesm2022/vallift-ngl.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -7,7 +7,7 @@ export declare class ContextMenuButtonComponent implements OnDestroy {
|
|
|
7
7
|
overlay: Overlay;
|
|
8
8
|
dialog: Dialog;
|
|
9
9
|
actions: import("@angular/core").InputSignal<ContextMenuButtonAction[] | undefined>;
|
|
10
|
-
positionPreference: import("@angular/core").InputSignal<"topLeft" | "
|
|
10
|
+
positionPreference: import("@angular/core").InputSignal<"topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight" | "leftTop" | "leftCenter" | "leftBottom" | "rightTop" | "rightCenter" | "rightBottom" | "center">;
|
|
11
11
|
onActionClicked: import("@angular/core").OutputEmitterRef<string>;
|
|
12
12
|
private basePanelClass;
|
|
13
13
|
private dialogRef?;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OpenFloatingMenuDirective {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private overlayService;
|
|
6
|
+
component: Type<unknown>;
|
|
7
|
+
floatingMenuPositionPreference: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
8
|
+
onClick(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenFloatingMenuDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OpenFloatingMenuDirective, "[libOpenFloatingMenu]", never, { "component": { "alias": "libOpenFloatingMenu"; "required": false; }; "floatingMenuPositionPreference": { "alias": "floatingMenuPositionPreference"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class TooltipComponent {
|
|
3
3
|
text: string;
|
|
4
|
+
tooltipClass: string | string[] | Set<string> | {
|
|
5
|
+
[klass: string]: any;
|
|
6
|
+
};
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "lib-tooltip", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "lib-tooltip", never, { "text": { "alias": "text"; "required": false; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
9
|
}
|
|
@@ -7,6 +7,9 @@ export declare class TooltipDirective {
|
|
|
7
7
|
private longPressTimeout;
|
|
8
8
|
libTooltip: string;
|
|
9
9
|
tooltipPosition: import("@angular/core").InputSignal<"bottom" | "top" | "left" | "right" | "before" | "after">;
|
|
10
|
+
tooltipClass: import("@angular/core").InputSignal<string | string[] | Set<string> | {
|
|
11
|
+
[klass: string]: any;
|
|
12
|
+
}>;
|
|
10
13
|
constructor();
|
|
11
14
|
private showTooltip;
|
|
12
15
|
private hideTooltip;
|
|
@@ -17,5 +20,5 @@ export declare class TooltipDirective {
|
|
|
17
20
|
onTouchStart(): void;
|
|
18
21
|
onTouchEnd(): void;
|
|
19
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[libTooltip]", never, { "libTooltip": { "alias": "libTooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[libTooltip]", never, { "libTooltip": { "alias": "libTooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
24
|
}
|
package/fesm2022/vallift-ngl.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { NgClass, DOCUMENT, NgStyle, CommonModule, DatePipe } from '@angular/com
|
|
|
14
14
|
import { SvgIconComponent } from 'angular-svg-icon';
|
|
15
15
|
import { CdkPortal, ComponentPortal } from '@angular/cdk/portal';
|
|
16
16
|
import { NgxMaskDirective } from 'ngx-mask';
|
|
17
|
+
import { OverlayService as OverlayService$1 } from '@ngl';
|
|
17
18
|
import { InfiniteScrollDirective } from 'ngx-infinite-scroll';
|
|
18
19
|
import * as i2 from '@angular/platform-browser';
|
|
19
20
|
import { isValidDate } from 'rxjs/internal/util/isDate';
|
|
@@ -3146,6 +3147,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
3146
3147
|
args: [{ selector: 'app-env-banner', standalone: true, imports: [], template: "@if(config.enableDevTools) {\n <div\n class=\"banner fixed top-6 left-0 bg-black bg-opacity-80 text-xs text-white transform -rotate-45 translate-y-1/4 -translate-x-1/4 w-36 text-center px-1 py-1\">\n DEV\n </div>\n}\n", styles: [".banner{z-index:10000}\n"] }]
|
|
3147
3148
|
}] });
|
|
3148
3149
|
|
|
3150
|
+
class OpenFloatingMenuDirective {
|
|
3151
|
+
elementRef = inject((ElementRef));
|
|
3152
|
+
overlayService = inject(OverlayService$1);
|
|
3153
|
+
component;
|
|
3154
|
+
floatingMenuPositionPreference = 'bottomCenter';
|
|
3155
|
+
onClick() {
|
|
3156
|
+
if (!this.component)
|
|
3157
|
+
return;
|
|
3158
|
+
this.overlayService.openNearElement(this.component, this.elementRef.nativeElement, {
|
|
3159
|
+
positionPreference: this.floatingMenuPositionPreference,
|
|
3160
|
+
});
|
|
3161
|
+
}
|
|
3162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: OpenFloatingMenuDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3163
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.7", type: OpenFloatingMenuDirective, isStandalone: true, selector: "[libOpenFloatingMenu]", inputs: { component: ["libOpenFloatingMenu", "component"], floatingMenuPositionPreference: "floatingMenuPositionPreference" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
3164
|
+
}
|
|
3165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: OpenFloatingMenuDirective, decorators: [{
|
|
3166
|
+
type: Directive,
|
|
3167
|
+
args: [{
|
|
3168
|
+
selector: '[libOpenFloatingMenu]',
|
|
3169
|
+
standalone: true,
|
|
3170
|
+
}]
|
|
3171
|
+
}], propDecorators: { component: [{
|
|
3172
|
+
type: Input,
|
|
3173
|
+
args: ['libOpenFloatingMenu']
|
|
3174
|
+
}], floatingMenuPositionPreference: [{
|
|
3175
|
+
type: Input
|
|
3176
|
+
}], onClick: [{
|
|
3177
|
+
type: HostListener,
|
|
3178
|
+
args: ['click']
|
|
3179
|
+
}] } });
|
|
3180
|
+
|
|
3149
3181
|
class ListviewComponent {
|
|
3150
3182
|
state = input.required();
|
|
3151
3183
|
data = input();
|
|
@@ -3591,14 +3623,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
3591
3623
|
|
|
3592
3624
|
class TooltipComponent {
|
|
3593
3625
|
text = '';
|
|
3626
|
+
tooltipClass = [];
|
|
3594
3627
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3595
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TooltipComponent, isStandalone: true, selector: "lib-tooltip", inputs: { text: "text" }, ngImport: i0, template: "<div class=\"bg-gray-800 text-white text-xs px-3 py-1 rounded shadow-lg max-w-xs whitespace-nowrap z-50\">\n {{ text }}\n</div>\n", styles: [""] });
|
|
3628
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TooltipComponent, isStandalone: true, selector: "lib-tooltip", inputs: { text: "text", tooltipClass: "tooltipClass" }, ngImport: i0, template: "<div class=\"bg-gray-800 text-white text-xs px-3 py-1 rounded shadow-lg max-w-xs whitespace-nowrap z-50\"\n [ngClass]=\"tooltipClass\">\n {{ text }}\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
3596
3629
|
}
|
|
3597
3630
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
3598
3631
|
type: Component,
|
|
3599
|
-
args: [{ selector: 'lib-tooltip', imports: [
|
|
3632
|
+
args: [{ selector: 'lib-tooltip', imports: [
|
|
3633
|
+
NgClass
|
|
3634
|
+
], template: "<div class=\"bg-gray-800 text-white text-xs px-3 py-1 rounded shadow-lg max-w-xs whitespace-nowrap z-50\"\n [ngClass]=\"tooltipClass\">\n {{ text }}\n</div>\n" }]
|
|
3600
3635
|
}], propDecorators: { text: [{
|
|
3601
3636
|
type: Input
|
|
3637
|
+
}], tooltipClass: [{
|
|
3638
|
+
type: Input
|
|
3602
3639
|
}] } });
|
|
3603
3640
|
|
|
3604
3641
|
class TooltipDirective {
|
|
@@ -3610,6 +3647,7 @@ class TooltipDirective {
|
|
|
3610
3647
|
// tooltipText = input<string>('');
|
|
3611
3648
|
libTooltip = '';
|
|
3612
3649
|
tooltipPosition = input('bottom');
|
|
3650
|
+
tooltipClass = input({ alias: 'tooltipClass' });
|
|
3613
3651
|
constructor() {
|
|
3614
3652
|
effect(() => {
|
|
3615
3653
|
this.hideTooltip();
|
|
@@ -3629,6 +3667,7 @@ class TooltipDirective {
|
|
|
3629
3667
|
const tooltipPortal = new ComponentPortal(TooltipComponent);
|
|
3630
3668
|
const tooltipRef = this.overlayRef.attach(tooltipPortal);
|
|
3631
3669
|
tooltipRef.instance.text = this.libTooltip;
|
|
3670
|
+
tooltipRef.instance.tooltipClass = this.tooltipClass();
|
|
3632
3671
|
}
|
|
3633
3672
|
hideTooltip() {
|
|
3634
3673
|
if (this.overlayRef?.hasAttached()) {
|
|
@@ -3703,7 +3742,7 @@ class TooltipDirective {
|
|
|
3703
3742
|
this.hideTooltip();
|
|
3704
3743
|
}
|
|
3705
3744
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3706
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.7", 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 } }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "touchstart": "onTouchStart()", "touchend": "onTouchEnd()", "touchcancel": "onTouchEnd()" } }, ngImport: i0 });
|
|
3745
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.7", 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 });
|
|
3707
3746
|
}
|
|
3708
3747
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
3709
3748
|
type: Directive,
|
|
@@ -6585,5 +6624,5 @@ function provideNglConfig(config) {
|
|
|
6585
6624
|
* Generated bundle index. Do not edit.
|
|
6586
6625
|
*/
|
|
6587
6626
|
|
|
6588
|
-
export { AlertDialogComponent, AppErrorComponent, AppSvgIconComponent, BaseApiService, BaseControlValueAccessor, BaseControlValueAccessorV2, BaseControlValueAccessorV3, BaseInputComponent, BaseOverlayComponent, BaseTableComponent, BreadcrumbComponent, ButtonComponent, CheckboxComponent, ClickOutsideDirective, CloseButtonComponent, ColorConverterService, ColorFormats, ColorPickerComponent, ColorPickerDirective, ContextMenuButtonComponent, ContextMenuIconComponent, DataTableComponent, DateInputComponent, DatePickerComponent, DatePickerOverlayComponent, DateRangePickerComponent, DateUtils, DropdownComponent, DynamicRendererComponent, EnvBannerComponent, FORM_ERRORS, FileUploaderComponent, FormValidationUtils, HumanizeFormMessagesPipe, InputDateFormat, InvalidControlScrollContainerDirective, InvalidControlScrollDirective, InvalidTokenError, ListviewComponent, LoaderComponent, LoaderService, MultiSelectDropdownAppearance, MultiSelectDropdownComponent, MultiSelectionFieldComponent, NGL_CONFIG, NetworkImageComponent, NglService, NoDataComponent, NoDataTableComponent, NumberInputComponent, OverlayContextMenuComponent, OverlayService, OverlayWizardUtils, PaginationComponent, PaginationState, PhoneNumberInputComponent, RadioButtonComponent, RequestState, ResizableColumnDirective, ResponsiveHelperComponent, SharedConstants, ShimmerComponent, SingleItemPickerInputComponent, SingleSelectionFieldComponent, SortableTableDirective, SpinnerComponent, State, StatusBadgeComponent, SvgUrlIconComponent, SwitchComponent, TableCustomComponent, TableResizableColumnsDirective, TemplateResolverArrayUtil, TemplateResolverFormat, TextAreaInputComponent, TextInputComponent, TimePickerComponent, ToastComponent, ToastService, ToasterComponent, TooltipDirective, UnsavedAwareDirective, arrayToCSV, arrayToSeparator, arrayToSpaceSeparator, deepEqual, defaultErrors, getDynamicTypeStructure, isDynamicType, isValid, jsonEqual, jwtDecode, mmddyyyyDateValidatorAsync, onlyFutureDateValidator, onlyPastDateValidator, openLink, printInvalidFields, provideNglConfig, resolveTemplateWithObject, toSentenceCase };
|
|
6627
|
+
export { AlertDialogComponent, AppErrorComponent, AppSvgIconComponent, BaseApiService, BaseControlValueAccessor, BaseControlValueAccessorV2, BaseControlValueAccessorV3, BaseInputComponent, BaseOverlayComponent, BaseTableComponent, BreadcrumbComponent, ButtonComponent, CheckboxComponent, ClickOutsideDirective, CloseButtonComponent, ColorConverterService, ColorFormats, ColorPickerComponent, ColorPickerDirective, ContextMenuButtonComponent, ContextMenuIconComponent, DataTableComponent, DateInputComponent, DatePickerComponent, DatePickerOverlayComponent, DateRangePickerComponent, DateUtils, DropdownComponent, DynamicRendererComponent, EnvBannerComponent, FORM_ERRORS, FileUploaderComponent, FormValidationUtils, HumanizeFormMessagesPipe, InputDateFormat, InvalidControlScrollContainerDirective, InvalidControlScrollDirective, InvalidTokenError, ListviewComponent, LoaderComponent, LoaderService, MultiSelectDropdownAppearance, MultiSelectDropdownComponent, MultiSelectionFieldComponent, NGL_CONFIG, NetworkImageComponent, NglService, NoDataComponent, NoDataTableComponent, NumberInputComponent, OpenFloatingMenuDirective, OverlayContextMenuComponent, OverlayService, OverlayWizardUtils, PaginationComponent, PaginationState, PhoneNumberInputComponent, RadioButtonComponent, RequestState, ResizableColumnDirective, ResponsiveHelperComponent, SharedConstants, ShimmerComponent, SingleItemPickerInputComponent, SingleSelectionFieldComponent, SortableTableDirective, SpinnerComponent, State, StatusBadgeComponent, SvgUrlIconComponent, SwitchComponent, TableCustomComponent, TableResizableColumnsDirective, TemplateResolverArrayUtil, TemplateResolverFormat, TextAreaInputComponent, TextInputComponent, TimePickerComponent, ToastComponent, ToastService, ToasterComponent, TooltipDirective, UnsavedAwareDirective, arrayToCSV, arrayToSeparator, arrayToSpaceSeparator, deepEqual, defaultErrors, getDynamicTypeStructure, isDynamicType, isValid, jsonEqual, jwtDecode, mmddyyyyDateValidatorAsync, onlyFutureDateValidator, onlyPastDateValidator, openLink, printInvalidFields, provideNglConfig, resolveTemplateWithObject, toSentenceCase };
|
|
6589
6628
|
//# sourceMappingURL=vallift-ngl.mjs.map
|