@norwegian/core-components 7.9.2 → 7.10.0
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/esm2022/lib/components/filter/filter.component.mjs +7 -3
- package/esm2022/lib/components/index.mjs +2 -1
- package/esm2022/lib/components/tooltip/index.mjs +3 -0
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +129 -0
- package/esm2022/lib/components/tooltip/tooltip.module.mjs +30 -0
- package/fesm2022/norwegian-core-components.mjs +153 -3
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/filter/filter.component.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/tooltip/index.d.ts +2 -0
- package/lib/components/tooltip/tooltip.component.d.ts +57 -0
- package/lib/components/tooltip/tooltip.module.d.ts +10 -0
- package/package.json +1 -1
|
@@ -837,6 +837,7 @@ export declare class FilterComponent extends NasComponentBase implements OnInit,
|
|
|
837
837
|
validateAirportValues(): boolean;
|
|
838
838
|
updateMaximize(): void;
|
|
839
839
|
onDestinationOpen(open: boolean): void;
|
|
840
|
+
onPassengerBackdropChange(value: boolean): void;
|
|
840
841
|
onPassengerSelectOpen(): void;
|
|
841
842
|
onTripSwitchOpen(open: boolean): void;
|
|
842
843
|
onTransitSwitchOpen(open: boolean): void;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
|
+
*/
|
|
5
|
+
import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
|
|
6
|
+
import { ClassModel } from '../../core/models/class.model';
|
|
7
|
+
import { NasComponentBase } from '../../core';
|
|
8
|
+
import { DeviceHelper } from '../../core/services/device/device-helper.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @description
|
|
12
|
+
* Norwegian Tooltip Component | Functional | Beta
|
|
13
|
+
*/
|
|
14
|
+
export declare class TooltipComponent extends NasComponentBase implements OnInit, AfterViewInit {
|
|
15
|
+
private deviceHelper;
|
|
16
|
+
tooltip: ElementRef;
|
|
17
|
+
content: ElementRef;
|
|
18
|
+
/**
|
|
19
|
+
* @property Input
|
|
20
|
+
* @description
|
|
21
|
+
* Sets text on the tooltip.
|
|
22
|
+
*/
|
|
23
|
+
text: string;
|
|
24
|
+
/**
|
|
25
|
+
* @property Input
|
|
26
|
+
* @description
|
|
27
|
+
* Displays the tooltip, hover listener will be ignored
|
|
28
|
+
*/
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @property Input
|
|
32
|
+
* @description
|
|
33
|
+
* Sets left styling for tool tip, auto positioning on screen size will be ignored
|
|
34
|
+
*/
|
|
35
|
+
left: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @property Input
|
|
38
|
+
* @description
|
|
39
|
+
* Sets right styling for tool tip, auto positioning on screen size will be ignored
|
|
40
|
+
*/
|
|
41
|
+
right: boolean;
|
|
42
|
+
private hostListenerIgnored;
|
|
43
|
+
private innerWidth;
|
|
44
|
+
constructor(deviceHelper: DeviceHelper);
|
|
45
|
+
onMouseEnter(): void;
|
|
46
|
+
onMouseLeave(): void;
|
|
47
|
+
onResize(): void;
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
ngAfterViewInit(): void;
|
|
50
|
+
getClasses(element?: string, modifiers?: any): Array<ClassModel>;
|
|
51
|
+
onClickClose(): void;
|
|
52
|
+
onClickOpenMobileView(): void;
|
|
53
|
+
private adjustTooltipPosition;
|
|
54
|
+
private renderViewHostListenerIgnoredOnInit;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "nas-tooltip", never, { "text": { "alias": "text"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "left": { "alias": "left"; "required": false; }; "right": { "alias": "right"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tooltip.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../core/directives/nas-class/nas-class.module";
|
|
5
|
+
import * as i4 from "../icon/icon.module";
|
|
6
|
+
export declare class TooltipModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof i1.TooltipComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.IconModule], [typeof i1.TooltipComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
10
|
+
}
|