@norwegian/core-components 6.33.1 → 6.34.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/button-new/button-new.component.mjs +174 -0
- package/esm2022/lib/components/button-new/button-new.module.mjs +21 -0
- package/esm2022/lib/components/button-new/index.mjs +3 -0
- package/esm2022/lib/components/checkbox-new/checkbox-new.component.mjs +150 -0
- package/esm2022/lib/components/checkbox-new/checkbox-new.module.mjs +20 -0
- package/esm2022/lib/components/checkbox-new/index.mjs +3 -0
- package/esm2022/lib/components/filter/filter.component.mjs +5 -3
- package/esm2022/lib/components/index.mjs +7 -2
- package/esm2022/lib/components/number-field-new/index.mjs +3 -0
- package/esm2022/lib/components/number-field-new/models/number-field-new.model.mjs +2 -0
- package/esm2022/lib/components/number-field-new/number-field-new.component.mjs +155 -0
- package/esm2022/lib/components/number-field-new/number-field-new.module.mjs +39 -0
- package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +12 -15
- package/esm2022/lib/components/radio-new/index.mjs +3 -0
- package/esm2022/lib/components/radio-new/radio-new.component.mjs +100 -0
- package/esm2022/lib/components/radio-new/radio-new.module.mjs +20 -0
- package/esm2022/lib/components/slide-toggle-new/index.mjs +3 -0
- package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.component.mjs +115 -0
- package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.module.mjs +31 -0
- package/fesm2022/norwegian-core-components.mjs +1502 -745
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/button-new/button-new.component.d.ts +270 -0
- package/lib/components/button-new/button-new.module.d.ts +11 -0
- package/lib/components/button-new/index.d.ts +2 -0
- package/lib/components/checkbox-new/checkbox-new.component.d.ts +138 -0
- package/lib/components/checkbox-new/checkbox-new.module.d.ts +10 -0
- package/lib/components/checkbox-new/index.d.ts +2 -0
- package/lib/components/filter/filter.component.d.ts +7 -1
- package/lib/components/index.d.ts +6 -1
- package/lib/components/number-field-new/index.d.ts +2 -0
- package/lib/components/number-field-new/models/number-field-new.model.d.ts +5 -0
- package/lib/components/number-field-new/number-field-new.component.d.ts +116 -0
- package/lib/components/number-field-new/number-field-new.module.d.ts +12 -0
- package/lib/components/radio-new/index.d.ts +2 -0
- package/lib/components/radio-new/radio-new.component.d.ts +135 -0
- package/lib/components/radio-new/radio-new.module.d.ts +10 -0
- package/lib/components/slide-toggle-new/index.d.ts +2 -0
- package/lib/components/slide-toggle-new/slide-toggle-new.component.d.ts +70 -0
- package/lib/components/slide-toggle-new/slide-toggle-new.module.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { NasComponentBase, ClassModel } from '../../core';
|
|
3
|
+
import { EventEmitter } from '@angular/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
8
|
+
* @description
|
|
9
|
+
* Norwegian radio button Component | New design | Beta
|
|
10
|
+
*/
|
|
11
|
+
export declare class RadioNewComponent extends NasComponentBase {
|
|
12
|
+
private checkedValue;
|
|
13
|
+
/**
|
|
14
|
+
* @property Input
|
|
15
|
+
* @description
|
|
16
|
+
* The ID of the native input element
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* @property Input
|
|
21
|
+
* @description
|
|
22
|
+
* The value of the radio button, represented as a string
|
|
23
|
+
*/
|
|
24
|
+
value: string;
|
|
25
|
+
/**
|
|
26
|
+
* @property Input
|
|
27
|
+
* @description
|
|
28
|
+
* Sets the name attribute of the native radio input
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* @property Input
|
|
33
|
+
* @description
|
|
34
|
+
* Sets error styling of the radio input
|
|
35
|
+
*/
|
|
36
|
+
error: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @property Input
|
|
39
|
+
* @description
|
|
40
|
+
* Sets the radio input disabled with disabled styling. This will not work in combination with reactive forms.
|
|
41
|
+
*/
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @property Input
|
|
45
|
+
* @description
|
|
46
|
+
* Sets the radio component to strong styling
|
|
47
|
+
*/
|
|
48
|
+
strong: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @property Input
|
|
51
|
+
* @description
|
|
52
|
+
* Sets the display css property to block
|
|
53
|
+
*/
|
|
54
|
+
block: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @property Input
|
|
57
|
+
* @description
|
|
58
|
+
* Removed the bottom margin
|
|
59
|
+
*/
|
|
60
|
+
spaceless: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @property Input
|
|
63
|
+
* @description
|
|
64
|
+
* String to set tabIndex on native input element
|
|
65
|
+
*/
|
|
66
|
+
tabIndex: number;
|
|
67
|
+
/**
|
|
68
|
+
* @property Input
|
|
69
|
+
* @description
|
|
70
|
+
* Sets required attribute on native radio input element
|
|
71
|
+
*/
|
|
72
|
+
required: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* @property Input
|
|
75
|
+
* @description
|
|
76
|
+
* Used to set the 'aria-label' attribute on the underlying input element.
|
|
77
|
+
*/
|
|
78
|
+
ariaLabel: string;
|
|
79
|
+
/**
|
|
80
|
+
* @property Input
|
|
81
|
+
* @description
|
|
82
|
+
* The 'aria-labelledby' attribute takes precedence as the element's text alternative.
|
|
83
|
+
*/
|
|
84
|
+
ariaDescribedby: string;
|
|
85
|
+
/**
|
|
86
|
+
* @property Input
|
|
87
|
+
* @description
|
|
88
|
+
* The 'aria-describedby' attribute is read after the element's label and field type.
|
|
89
|
+
*/
|
|
90
|
+
ariaLabelledby: string;
|
|
91
|
+
/**
|
|
92
|
+
* @property Input
|
|
93
|
+
* @description
|
|
94
|
+
* Set the radio button checked.
|
|
95
|
+
* @example
|
|
96
|
+
* <nas-radio checked></nas-radio>
|
|
97
|
+
*/
|
|
98
|
+
get checked(): boolean;
|
|
99
|
+
set checked(input: boolean);
|
|
100
|
+
/**
|
|
101
|
+
* @property Input
|
|
102
|
+
* @description
|
|
103
|
+
* Sets a formControlName directive to the input.
|
|
104
|
+
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
105
|
+
* It requiers that the nasFormGroup input is filled.
|
|
106
|
+
* @example
|
|
107
|
+
* <nas-input [nasFormControlName]="'username'"></nas-input>
|
|
108
|
+
*/
|
|
109
|
+
nasFormControlName: string;
|
|
110
|
+
/**
|
|
111
|
+
* @property Input
|
|
112
|
+
* @description
|
|
113
|
+
* Adds the parent's form group.
|
|
114
|
+
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
115
|
+
* It is requiered to be filled if nasFormControlName added.
|
|
116
|
+
* @example
|
|
117
|
+
* <nas-input [nasFormGroup]="loginGroup"></nas-input>
|
|
118
|
+
*/
|
|
119
|
+
nasFormGroup: FormGroup;
|
|
120
|
+
/**
|
|
121
|
+
* @property Output
|
|
122
|
+
* @description
|
|
123
|
+
* Listen for checked change events.
|
|
124
|
+
* @example
|
|
125
|
+
* <nas-radio (checkedChange)="onCheckedChange($event)"></nas-radio>
|
|
126
|
+
*/
|
|
127
|
+
checkedChange: EventEmitter<boolean>;
|
|
128
|
+
private componentId;
|
|
129
|
+
get inputId(): string;
|
|
130
|
+
constructor();
|
|
131
|
+
mainClass(): ClassModel;
|
|
132
|
+
onChange(event: Event): void;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioNewComponent, never>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioNewComponent, "nas-radio-new", never, { "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; "error": { "alias": "error"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "strong": { "alias": "strong"; "required": false; }; "block": { "alias": "block"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "required": { "alias": "required"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, ["*"], false, never>;
|
|
135
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./radio-new.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../core/directives/nas-class/nas-class.module";
|
|
6
|
+
export declare class RadioNewModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioNewModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RadioNewModule, [typeof i1.RadioNewComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NasClassModule, typeof i3.ReactiveFormsModule], [typeof i1.RadioNewComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RadioNewModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
3
|
+
import { ClassModel } from '../../core/models/class.model';
|
|
4
|
+
import { FormGroup } from '@angular/forms';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @description
|
|
8
|
+
* Norwegian Slide Toogle Component | New design | Beta
|
|
9
|
+
*/
|
|
10
|
+
export declare class SlideToggleNewComponent extends NasComponentBase implements OnInit {
|
|
11
|
+
/**
|
|
12
|
+
* @property Input
|
|
13
|
+
* @description
|
|
14
|
+
* Sets a formControlName directive to the input.
|
|
15
|
+
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
16
|
+
* It requiers that the nasFormGroup input is filled.
|
|
17
|
+
*/
|
|
18
|
+
nasFormControlName: string;
|
|
19
|
+
/**
|
|
20
|
+
* @property Input
|
|
21
|
+
* @description
|
|
22
|
+
* Adds the parent's form group.
|
|
23
|
+
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
24
|
+
* It is requiered to be filled if nasFormControlName added.
|
|
25
|
+
*/
|
|
26
|
+
nasFormGroup: FormGroup;
|
|
27
|
+
/**
|
|
28
|
+
* @property Input
|
|
29
|
+
* @description
|
|
30
|
+
* Boolean to disable the slide toggle.
|
|
31
|
+
*/
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @property Input
|
|
35
|
+
* @description
|
|
36
|
+
* Sets the Id of the native input element.
|
|
37
|
+
*/
|
|
38
|
+
get inputId(): string;
|
|
39
|
+
set inputId(value: string);
|
|
40
|
+
/**
|
|
41
|
+
* @property Input
|
|
42
|
+
* @description
|
|
43
|
+
* Set the toggle value.
|
|
44
|
+
*/
|
|
45
|
+
get toggle(): boolean;
|
|
46
|
+
set toggle(value: boolean);
|
|
47
|
+
/**
|
|
48
|
+
* @property Output
|
|
49
|
+
* @description
|
|
50
|
+
* Toggle change events.
|
|
51
|
+
*/
|
|
52
|
+
toggleChange: EventEmitter<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* @property Output
|
|
55
|
+
* @description
|
|
56
|
+
* Emits when the focus should be on the previous element.
|
|
57
|
+
*/
|
|
58
|
+
focusOnPrevious: EventEmitter<KeyboardEvent>;
|
|
59
|
+
get mainClass(): ClassModel;
|
|
60
|
+
private toggleValue;
|
|
61
|
+
private componentId;
|
|
62
|
+
private inputIdValue;
|
|
63
|
+
constructor();
|
|
64
|
+
ngOnInit(): void;
|
|
65
|
+
inputChanged(event: Event): void;
|
|
66
|
+
inputClicked(event: Event): void;
|
|
67
|
+
onKeydown(event: KeyboardEvent): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleNewComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleNewComponent, "nas-slide-toggle-new", never, { "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "toggle": { "alias": "toggle"; "required": false; }; }, { "toggleChange": "toggleChange"; "focusOnPrevious": "focusOnPrevious"; }, never, ["*"], false, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./slide-toggle-new.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 "@angular/forms";
|
|
6
|
+
export declare class SlideToggleNewModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleNewModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SlideToggleNewModule, [typeof i1.SlideToggleNewComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.ReactiveFormsModule, typeof i4.FormsModule], [typeof i1.SlideToggleNewComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SlideToggleNewModule>;
|
|
10
|
+
}
|