@norwegian/core-components 6.16.0 → 6.17.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/accordion/accordion.component.mjs +2 -2
- package/esm2022/lib/components/alert/alert.component.mjs +2 -2
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
- package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +2 -2
- package/esm2022/lib/components/divider/divider.component.mjs +2 -2
- package/esm2022/lib/components/index.mjs +2 -1
- package/esm2022/lib/components/info/info.component.mjs +2 -2
- package/esm2022/lib/components/journey/journey.component.mjs +2 -2
- package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +2 -2
- package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +2 -2
- package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +2 -2
- package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +2 -2
- package/esm2022/lib/components/page-header/search/search.component.mjs +2 -2
- package/esm2022/lib/components/page-header-old/index.mjs +5 -0
- package/esm2022/lib/components/page-header-old/old-hamburger/old-hamburger.component.mjs +22 -0
- package/esm2022/lib/components/page-header-old/old-search/old-search.component.mjs +49 -0
- package/esm2022/lib/components/page-header-old/page-header-old.component.mjs +160 -0
- package/esm2022/lib/components/page-header-old/page-header-old.module.mjs +24 -0
- package/esm2022/lib/components/radio/radio.component.mjs +2 -2
- package/esm2022/lib/components/select/select.component.mjs +2 -2
- package/esm2022/lib/components/slider/slider.component.mjs +2 -2
- package/esm2022/lib/components/tag/tag.component.mjs +2 -2
- package/fesm2022/norwegian-core-components.mjs +276 -50
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/page-header-old/index.d.ts +4 -0
- package/lib/components/page-header-old/old-hamburger/old-hamburger.component.d.ts +12 -0
- package/lib/components/page-header-old/old-search/old-search.component.d.ts +26 -0
- package/lib/components/page-header-old/page-header-old.component.d.ts +112 -0
- package/lib/components/page-header-old/page-header-old.module.d.ts +14 -0
- package/package.json +1 -1
- package/styles/1__settings/_colors.scss +17 -2
|
@@ -19,6 +19,7 @@ export * from './modal/index';
|
|
|
19
19
|
export * from './number-field/index';
|
|
20
20
|
export * from './page-footer/index';
|
|
21
21
|
export * from './page-header/index';
|
|
22
|
+
export * from './page-header-old/index';
|
|
22
23
|
export * from './passenger-select/index';
|
|
23
24
|
export * from './premium-toggle/index';
|
|
24
25
|
export * from './radio/index';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NasComponentBase } from '../../../core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OldHamburgerComponent extends NasComponentBase {
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Sets the menu to be expanded
|
|
7
|
+
*/
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OldHamburgerComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OldHamburgerComponent, "nas-old-hamburger", never, { "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
|
+
*/
|
|
5
|
+
import { ElementRef } from '@angular/core';
|
|
6
|
+
import { NasComponentBase } from '../../../core';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class OldSearchComponent extends NasComponentBase {
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* Sets the search label for the search form. Default value is "Search"
|
|
12
|
+
*/
|
|
13
|
+
searchText: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description
|
|
16
|
+
* Url to the search form. Added to the action attribute on native form element.
|
|
17
|
+
*/
|
|
18
|
+
searchForm: string;
|
|
19
|
+
inputElement: ElementRef;
|
|
20
|
+
constructor();
|
|
21
|
+
expanded: boolean;
|
|
22
|
+
blur(): void;
|
|
23
|
+
focus(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OldSearchComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OldSearchComponent, "nas-old-search", never, { "searchText": { "alias": "searchText"; "required": false; }; "searchForm": { "alias": "searchForm"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
|
+
*/
|
|
5
|
+
import { OnDestroy, ElementRef, AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
6
|
+
import { NasComponentBase } from '../../core';
|
|
7
|
+
import { IconListModel } from '../icon-list';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* Norwegian Old Page Header Component | Navigation
|
|
12
|
+
*/
|
|
13
|
+
export declare class PageHeaderOldComponent extends NasComponentBase implements OnDestroy, AfterViewInit {
|
|
14
|
+
private changeDetector;
|
|
15
|
+
/**
|
|
16
|
+
* @property Input
|
|
17
|
+
* @description
|
|
18
|
+
* Sets the menu text. Defaults to "Menu".
|
|
19
|
+
*/
|
|
20
|
+
menuText: string;
|
|
21
|
+
/**
|
|
22
|
+
* @property Input
|
|
23
|
+
* @description
|
|
24
|
+
* Sets the close text. Defaults to "Close".
|
|
25
|
+
*/
|
|
26
|
+
closeText: string;
|
|
27
|
+
/**
|
|
28
|
+
* @property Input
|
|
29
|
+
* @description
|
|
30
|
+
* Sets the search label for search field. Defaults to "Search".
|
|
31
|
+
*/
|
|
32
|
+
searchText: string;
|
|
33
|
+
/**
|
|
34
|
+
* @property Input
|
|
35
|
+
* @description
|
|
36
|
+
* Url to the search form. Added to the action attribute on native form element.
|
|
37
|
+
*/
|
|
38
|
+
searchForm: string;
|
|
39
|
+
/**
|
|
40
|
+
* @property Input
|
|
41
|
+
* @description
|
|
42
|
+
* Show the profile section.
|
|
43
|
+
*/
|
|
44
|
+
displayProfile: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @property Input
|
|
47
|
+
* @description
|
|
48
|
+
* Will display the Norwegian Reward logo, set this to true display it. It's false by default.
|
|
49
|
+
*/
|
|
50
|
+
reward: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @property Input
|
|
53
|
+
* @description
|
|
54
|
+
* Is user authenticated. Only valid if displayProfile is true
|
|
55
|
+
*/
|
|
56
|
+
isAuthenticated: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @property Input
|
|
59
|
+
* @description
|
|
60
|
+
* Url to the front-/homepage.
|
|
61
|
+
*/
|
|
62
|
+
frontPageUrl: string;
|
|
63
|
+
/**
|
|
64
|
+
* @property Input
|
|
65
|
+
* @description
|
|
66
|
+
* Use router link instead of href on links
|
|
67
|
+
*/
|
|
68
|
+
useRouterLink: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @property Input
|
|
71
|
+
* @description
|
|
72
|
+
* Sets z-index to 0
|
|
73
|
+
*/
|
|
74
|
+
nozindex?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* @property Input
|
|
77
|
+
* @description
|
|
78
|
+
* Link to logout.
|
|
79
|
+
*/
|
|
80
|
+
logOutLink: IconListModel;
|
|
81
|
+
/**
|
|
82
|
+
* @property Input
|
|
83
|
+
* @description
|
|
84
|
+
* Link to profile.
|
|
85
|
+
*/
|
|
86
|
+
profileLink: IconListModel;
|
|
87
|
+
/**
|
|
88
|
+
* @property Input
|
|
89
|
+
* @description
|
|
90
|
+
* links to display with icon in header.
|
|
91
|
+
*/
|
|
92
|
+
links: Array<IconListModel>;
|
|
93
|
+
/**
|
|
94
|
+
* @property Output
|
|
95
|
+
* @description
|
|
96
|
+
* Notifies consumer that menu is expanded or collapsed
|
|
97
|
+
*/
|
|
98
|
+
openChange: EventEmitter<boolean>;
|
|
99
|
+
expanded: boolean;
|
|
100
|
+
animateOut: boolean;
|
|
101
|
+
displayHamburger: boolean;
|
|
102
|
+
menuElement: ElementRef;
|
|
103
|
+
constructor(changeDetector: ChangeDetectorRef);
|
|
104
|
+
ngAfterViewInit(): void;
|
|
105
|
+
ngOnDestroy(): void;
|
|
106
|
+
menuClick({ target }: any): void;
|
|
107
|
+
handleToggle(force: boolean): any;
|
|
108
|
+
private handleKeyDown;
|
|
109
|
+
onLinkClick(link: IconListModel): void;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderOldComponent, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderOldComponent, "nas-page-header-old", never, { "menuText": { "alias": "menuText"; "required": false; }; "closeText": { "alias": "closeText"; "required": false; }; "searchText": { "alias": "searchText"; "required": false; }; "searchForm": { "alias": "searchForm"; "required": false; }; "displayProfile": { "alias": "displayProfile"; "required": false; }; "reward": { "alias": "reward"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "frontPageUrl": { "alias": "frontPageUrl"; "required": false; }; "useRouterLink": { "alias": "useRouterLink"; "required": false; }; "nozindex": { "alias": "nozindex"; "required": false; }; "logOutLink": { "alias": "logOutLink"; "required": false; }; "profileLink": { "alias": "profileLink"; "required": false; }; "links": { "alias": "links"; "required": false; }; }, { "openChange": "openChange"; }, never, ["*"], false, never>;
|
|
112
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./page-header-old.component";
|
|
3
|
+
import * as i2 from "./old-hamburger/old-hamburger.component";
|
|
4
|
+
import * as i3 from "./old-search/old-search.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "../icon/icon.module";
|
|
7
|
+
import * as i6 from "../../core/directives/nas-class/nas-class.module";
|
|
8
|
+
import * as i7 from "@angular/router";
|
|
9
|
+
import * as i8 from "../button/button.module";
|
|
10
|
+
export declare class PageHeaderOldModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderOldModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PageHeaderOldModule, [typeof i1.PageHeaderOldComponent, typeof i2.OldHamburgerComponent, typeof i3.OldSearchComponent], [typeof i4.CommonModule, typeof i5.IconModule, typeof i6.NasClassModule, typeof i7.RouterModule, typeof i8.ButtonModule], [typeof i1.PageHeaderOldComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PageHeaderOldModule>;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -39,19 +39,19 @@ $colors: (
|
|
|
39
39
|
xlight: #d8d8d8,
|
|
40
40
|
light: #c3c3c3,
|
|
41
41
|
base: #909090,
|
|
42
|
-
dark: #
|
|
42
|
+
dark: #6f6f6f,
|
|
43
43
|
xdark: #424141
|
|
44
44
|
)
|
|
45
45
|
);
|
|
46
46
|
|
|
47
47
|
// Specific color's
|
|
48
48
|
// Do not overuse, then your on a wrong path and will be hunted down!
|
|
49
|
+
$color-white: #FFFFFF;
|
|
49
50
|
$color-light: #fff;
|
|
50
51
|
$color-dark: color(secondary, dark);
|
|
51
52
|
|
|
52
53
|
$color-approve: #238e00;
|
|
53
54
|
$color-information: $color-light;
|
|
54
|
-
$color-warning: #ffc;
|
|
55
55
|
$color-focus-ring: #3b99fc;
|
|
56
56
|
$color-background-badge: #E0EBFF;
|
|
57
57
|
$color-error: #f1d6dc;
|
|
@@ -61,6 +61,21 @@ $color-backdrop: rgba(shade(color(secondary), 50%), 0.17);
|
|
|
61
61
|
$color-backdrop--strong: rgba(shade(color(secondary), 70%), 0.7);
|
|
62
62
|
|
|
63
63
|
$color-links: #B12A0B;
|
|
64
|
+
//Alert-colors
|
|
65
|
+
$color-error: #CC3A19;
|
|
66
|
+
$color-error-background: #FFF5F3;
|
|
67
|
+
$color-warning: #FC9E12;
|
|
68
|
+
$color-warning-background: #FFF6EC;
|
|
69
|
+
$color-success: #2EB004;
|
|
70
|
+
$color-success-background: #F4FAF2;
|
|
71
|
+
$color-info-background: #EBF4FF;
|
|
72
|
+
$color-neutral: #eaeaea;
|
|
73
|
+
$color-neutral-background: #F9F9F9;
|
|
74
|
+
|
|
75
|
+
// Typography
|
|
76
|
+
$color-typography-link: #b12a0b;
|
|
77
|
+
|
|
64
78
|
$color-links-border: color(neutral, xlight);
|
|
65
79
|
$color-links--hover: color(secondary);
|
|
66
80
|
$color-background: color(neutral, xxxlight);
|
|
81
|
+
|