@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.
@@ -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;
@@ -63,3 +63,4 @@ export * from './number-field/index';
63
63
  export * from './radio/index';
64
64
  export * from './slide-toggle/index';
65
65
  export * from './ribbon-banner/index';
66
+ export * from './tooltip/index';
@@ -0,0 +1,2 @@
1
+ export * from './tooltip.component';
2
+ export * from './tooltip.module';
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norwegian/core-components",
3
- "version": "7.9.2",
3
+ "version": "7.10.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0 < 22.0.0",
6
6
  "@angular/core": ">=16.0.0 < 22.0.0"