@norwegian/core-components 6.0.3 → 6.2.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 +17 -12
- package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +1 -1
- package/esm2022/lib/components/airport-select/airport-select.component.mjs +13 -1
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +7 -1
- package/esm2022/lib/components/backdrop/backdrop.component.mjs +3 -1
- package/esm2022/lib/components/box/box.component.mjs +4 -4
- package/esm2022/lib/components/button/button.component.mjs +5 -1
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -1
- package/esm2022/lib/components/chip/chip.component.mjs +2 -7
- package/esm2022/lib/components/container/container.component.mjs +1 -1
- package/esm2022/lib/components/continue/continue.component.mjs +6 -1
- package/esm2022/lib/components/cover/cover.component.mjs +1 -1
- package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +1 -1
- package/esm2022/lib/components/datepicker/datepicker.component.mjs +16 -1
- package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +17 -1
- package/esm2022/lib/components/divider/divider.component.mjs +1 -1
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +2 -1
- package/esm2022/lib/components/filter/filter.component.mjs +36 -2
- package/esm2022/lib/components/grid/grid.component.mjs +1 -1
- package/esm2022/lib/components/icon/icon.component.mjs +1 -1
- package/esm2022/lib/components/icon-list/icon-list.component.mjs +1 -1
- package/esm2022/lib/components/icon-list/icon-list.model.mjs +1 -1
- package/esm2022/lib/components/info/info.component.mjs +5 -4
- package/esm2022/lib/components/input/input.component.mjs +6 -1
- package/esm2022/lib/components/journey/journey.component.mjs +5 -7
- package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +7 -5
- package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +22 -25
- package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +12 -4
- package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +18 -20
- package/esm2022/lib/components/list/list.component.mjs +1 -1
- package/esm2022/lib/components/modal/modal.component.mjs +5 -7
- package/esm2022/lib/components/number-field/number-field.component.mjs +4 -2
- package/esm2022/lib/components/page-footer/page-footer.component.mjs +2 -4
- package/esm2022/lib/components/page-header/page-header.component.mjs +30 -12
- package/esm2022/lib/components/page-header/page-header.module.mjs +5 -4
- package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +1 -1
- package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +11 -7
- package/esm2022/lib/components/phone-number/phone-number.component.mjs +11 -15
- package/esm2022/lib/components/premium-toggle/premium-toggle.component.mjs +3 -4
- package/esm2022/lib/components/radio/radio.component.mjs +4 -2
- package/esm2022/lib/components/select/select.component.mjs +11 -7
- package/esm2022/lib/components/simple-list/simple-list.component.mjs +1 -1
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +9 -5
- package/esm2022/lib/components/slider/slider.component.mjs +32 -18
- package/esm2022/lib/components/sort/sort.component.mjs +11 -7
- package/esm2022/lib/components/spinner/spinner.component.mjs +13 -18
- package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +13 -7
- package/esm2022/lib/components/suggestions/suggestions.component.mjs +3 -2
- package/esm2022/lib/components/tab-group/tab-group.component.mjs +3 -2
- package/esm2022/lib/components/table/table.component.mjs +1 -3
- package/esm2022/lib/components/textarea/textarea.component.mjs +6 -1
- package/esm2022/lib/components/toggle/toggle.component.mjs +5 -5
- package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +26 -31
- package/esm2022/lib/components/weather-icon/weather-icon.component.mjs +3 -2
- package/fesm2022/norwegian-core-components.mjs +371 -221
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +81 -78
- package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +2 -2
- package/lib/components/airport-select/airport-select.component.d.ts +38 -2
- package/lib/components/autocomplete/autocomplete.component.d.ts +15 -2
- package/lib/components/backdrop/backdrop.component.d.ts +3 -0
- package/lib/components/box/box.component.d.ts +13 -3
- package/lib/components/button/button.component.d.ts +26 -0
- package/lib/components/checkbox/checkbox.component.d.ts +18 -2
- package/lib/components/chip/chip.component.d.ts +5 -21
- package/lib/components/container/container.component.d.ts +6 -0
- package/lib/components/continue/continue.component.d.ts +14 -0
- package/lib/components/cover/cover.component.d.ts +13 -3
- package/lib/components/datepicker/calendar/calendar.component.d.ts +2 -2
- package/lib/components/datepicker/datepicker.component.d.ts +33 -2
- package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +42 -0
- package/lib/components/divider/divider.component.d.ts +9 -0
- package/lib/components/dropdown/dropdown.component.d.ts +8 -0
- package/lib/components/filter/filter.component.d.ts +108 -2
- package/lib/components/grid/grid.component.d.ts +12 -0
- package/lib/components/icon/icon.component.d.ts +5 -8
- package/lib/components/icon-list/icon-list.component.d.ts +5 -0
- package/lib/components/icon-list/icon-list.model.d.ts +1 -0
- package/lib/components/info/info.component.d.ts +7 -18
- package/lib/components/input/input.component.d.ts +30 -5
- package/lib/components/journey/journey.component.d.ts +9 -16
- package/lib/components/journey-availability/journey-availability.component.d.ts +8 -8
- package/lib/components/journey-availability-list/journey-availability-list.component.d.ts +29 -34
- package/lib/components/journey-selection/journey-selection.component.d.ts +14 -3
- package/lib/components/journey-stopover/journey-stopover.component.d.ts +35 -43
- package/lib/components/list/list.component.d.ts +8 -0
- package/lib/components/modal/modal.component.d.ts +16 -34
- package/lib/components/number-field/number-field.component.d.ts +26 -12
- package/lib/components/page-footer/page-footer.component.d.ts +9 -16
- package/lib/components/page-header/page-header.component.d.ts +30 -15
- package/lib/components/page-header/page-header.module.d.ts +2 -1
- package/lib/components/passenger-select/models/passengers.model.d.ts +2 -2
- package/lib/components/passenger-select/passenger-select.component.d.ts +33 -18
- package/lib/components/phone-number/phone-number.component.d.ts +80 -108
- package/lib/components/premium-toggle/premium-toggle.component.d.ts +9 -13
- package/lib/components/radio/radio.component.d.ts +35 -18
- package/lib/components/select/select.component.d.ts +47 -29
- package/lib/components/simple-list/simple-list.component.d.ts +16 -8
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +16 -9
- package/lib/components/slider/slider.component.d.ts +51 -28
- package/lib/components/sort/sort.component.d.ts +12 -7
- package/lib/components/spinner/spinner.component.d.ts +24 -37
- package/lib/components/subsidy-discount/subsidy-discount.component.d.ts +14 -7
- package/lib/components/suggestions/suggestions.component.d.ts +6 -3
- package/lib/components/tab-group/tab-group.component.d.ts +6 -3
- package/lib/components/table/table.component.d.ts +3 -8
- package/lib/components/textarea/textarea.component.d.ts +42 -20
- package/lib/components/toggle/toggle.component.d.ts +44 -68
- package/lib/components/trip-summary/trip-summary.component.d.ts +68 -82
- package/lib/components/weather-icon/weather-icon.component.d.ts +12 -6
- package/package.json +3 -3
|
@@ -20,91 +20,86 @@ export declare class JourneyAvailabilityListComponent extends NasComponentBase {
|
|
|
20
20
|
sortMetaData: SortModel;
|
|
21
21
|
sortSelectedOptionObject: SortOptionModel;
|
|
22
22
|
/**
|
|
23
|
+
* @property Input
|
|
23
24
|
* @required
|
|
24
25
|
* @description
|
|
25
26
|
* A record containing all the data required to show availability results, look at 'journeyAvailabilityModel' for details.
|
|
26
27
|
* @example
|
|
27
|
-
* ```html
|
|
28
28
|
* <nas-journey-availability-list [model]="journeyAvailabilityData"></nas-journey-availability-list>
|
|
29
|
-
* ```
|
|
30
29
|
*/
|
|
31
30
|
model: Array<JourneyAvailabilityModel>;
|
|
32
31
|
/**
|
|
32
|
+
* @property Input
|
|
33
33
|
* @description
|
|
34
34
|
* An optional model for sort popup options.
|
|
35
35
|
*/
|
|
36
36
|
set sortModel(model: JourneyAvailabilitySortModel);
|
|
37
37
|
/**
|
|
38
|
+
* @property Input
|
|
38
39
|
* @description
|
|
39
40
|
* set or get selected sort option.
|
|
40
41
|
*/
|
|
41
42
|
get sortSelectedOption(): SortOptionModel;
|
|
42
43
|
set sortSelectedOption(option: SortOptionModel);
|
|
43
44
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
* @property Output
|
|
46
|
+
* @description
|
|
47
|
+
* Event that fires when the sort option changes.
|
|
46
48
|
*/
|
|
47
49
|
sortSelectedOptionChange: EventEmitter<SortOptionModel>;
|
|
48
50
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
* @property Input
|
|
52
|
+
* @description
|
|
53
|
+
* A locale code for the locale format rules to use. When not supplied, uses the value of LOCALE_ID, which is en-US by default.
|
|
54
|
+
* This requires that registerLocaleData is called with the respective locale.
|
|
55
|
+
* @example
|
|
56
|
+
* <nas-journey-availability-list [locale]="'es'"></nas-journey-availability-list>
|
|
55
57
|
*/
|
|
56
58
|
locale: string;
|
|
57
59
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*/
|
|
60
|
+
* @property Input
|
|
61
|
+
* @required
|
|
62
|
+
* @description
|
|
63
|
+
* A string to give the user feedback when there no data available for the availability result for specified parameters
|
|
64
|
+
* @example
|
|
65
|
+
* <nas-journey-availability-list [noDataCaption]="noDataCaption"></nas-journey-availability-list>
|
|
66
|
+
*/
|
|
66
67
|
noDataCaption: string;
|
|
67
68
|
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
* @property Input
|
|
70
|
+
* @description
|
|
71
|
+
* Time display format.
|
|
72
|
+
* @example
|
|
73
|
+
* <nas-journey-availability-list [timeDisplayFormat]="'HH:mm'"></nas-journey-availability-list>
|
|
74
|
+
*/
|
|
74
75
|
timeDisplayFormat: string;
|
|
75
76
|
/**
|
|
76
|
-
*
|
|
77
|
+
* @property Output
|
|
77
78
|
* @description
|
|
78
79
|
* A JourneyModel type record the represents selected journey data;
|
|
79
80
|
* @example
|
|
80
|
-
* ```html
|
|
81
81
|
* <nas-journey-availability-list (selectedJourney)="onselectedJourney($event)"></nas-journey-availability-list>
|
|
82
|
-
* ```
|
|
83
82
|
*/
|
|
84
83
|
selectedJourney: EventEmitter<JourneyAvailabilityModel>;
|
|
85
84
|
/**
|
|
86
|
-
*
|
|
85
|
+
* @property Output
|
|
87
86
|
* @description
|
|
88
87
|
* A selected index of selected journey data;
|
|
89
88
|
* @example
|
|
90
|
-
* ```html
|
|
91
89
|
* <nas-journey-availability-list (selectedIndexChange)="onSelectedIndexChange($event)"></nas-journey-availability-list>
|
|
92
|
-
* ```
|
|
93
90
|
*/
|
|
94
91
|
selectedIndexChange: EventEmitter<number>;
|
|
95
92
|
/**
|
|
96
|
-
*
|
|
93
|
+
* @property Input
|
|
97
94
|
* @description
|
|
98
95
|
* A number that sets the SelectedIndex from the JourneyList array in journeyAvailabilityListModel
|
|
99
96
|
* @example
|
|
100
|
-
* ```html
|
|
101
97
|
* <nas-journey-availability-list [(selectIndex)]="selectIndex"></nas-journey-availability-list>
|
|
102
|
-
* ```
|
|
103
98
|
*/
|
|
104
99
|
get selectedIndex(): number;
|
|
105
100
|
set selectedIndex(index: number);
|
|
106
101
|
/**
|
|
107
|
-
*
|
|
102
|
+
* @property Output
|
|
108
103
|
* @description
|
|
109
104
|
* An Event which Emitts boolean when Flight info popup is toggled.
|
|
110
105
|
*/
|
|
@@ -25,23 +25,32 @@ export declare class JourneySelectionComponent extends NasComponentBase implemen
|
|
|
25
25
|
imageMain: ElementRef;
|
|
26
26
|
destinationCode: ElementRef;
|
|
27
27
|
/**
|
|
28
|
+
* @property Input
|
|
28
29
|
* @description
|
|
29
30
|
* Input data required to build the component.
|
|
30
31
|
*/
|
|
31
32
|
model: JourneySelectionModel;
|
|
33
|
+
/**
|
|
34
|
+
* @property Output
|
|
35
|
+
* @description
|
|
36
|
+
* A EventEmitter that returns a boolean based on collapse change.
|
|
37
|
+
*/
|
|
32
38
|
collapseChange: EventEmitter<boolean>;
|
|
33
39
|
/**
|
|
40
|
+
* @property Input
|
|
34
41
|
* @description
|
|
35
42
|
* A boolean that changes how journey selection component looks/behaves based on journey selected/not-selected.
|
|
36
43
|
*/
|
|
37
44
|
get collapse(): boolean;
|
|
38
45
|
set collapse(value: boolean);
|
|
39
46
|
/**
|
|
47
|
+
* @property Input
|
|
40
48
|
* @description
|
|
41
49
|
* If exists, it removes the marin accross.
|
|
42
50
|
*/
|
|
43
51
|
compact: boolean;
|
|
44
52
|
/**
|
|
53
|
+
* @property Input
|
|
45
54
|
* @description
|
|
46
55
|
* Aria label for the component.
|
|
47
56
|
* For example, it is needed to distinguish Outbound journey selection from inbound journey selection
|
|
@@ -49,6 +58,7 @@ export declare class JourneySelectionComponent extends NasComponentBase implemen
|
|
|
49
58
|
*/
|
|
50
59
|
ariaLabel: string;
|
|
51
60
|
/**
|
|
61
|
+
* @property Input
|
|
52
62
|
* @description
|
|
53
63
|
* User can input the timezone to localize the date.
|
|
54
64
|
* Default is set to UTC and it will by default show the date exactly what is passed to it.
|
|
@@ -58,9 +68,10 @@ export declare class JourneySelectionComponent extends NasComponentBase implemen
|
|
|
58
68
|
*/
|
|
59
69
|
timeZone: string;
|
|
60
70
|
/**
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
* @property Output
|
|
72
|
+
* @description
|
|
73
|
+
* this event emits when button is clicked or date changes by nevigation icons.
|
|
74
|
+
*/
|
|
64
75
|
selectedDateChanged: EventEmitter<UtcDate>;
|
|
65
76
|
constructor(dateService: DateHelper, datePipe: DatePipe, deviceService: DeviceHelper, sanitizer: DomSanitizer);
|
|
66
77
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -29,99 +29,91 @@ export declare class JourneyStopoverComponent extends NasComponentBase implement
|
|
|
29
29
|
estimatedDepartureDate?: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
+
* @property Input
|
|
32
33
|
* @description
|
|
33
34
|
* A record containing Journey-stopover details.
|
|
34
35
|
* @required
|
|
35
36
|
* @example
|
|
36
|
-
* ```html
|
|
37
37
|
* <nas-journey-stopover [journeyStopoverModel]="journeyStopoverModel"></nas-journey-stopover>
|
|
38
|
-
* ```
|
|
39
38
|
*/
|
|
40
39
|
journeyStopoverModel: JourneyStopoverModel;
|
|
41
40
|
/**
|
|
41
|
+
* @property Input
|
|
42
42
|
* @description
|
|
43
43
|
* A string representing label placed before transit stop time.
|
|
44
44
|
* @example
|
|
45
|
-
* ```html
|
|
46
45
|
* <nas-journey-stopover [transitLabel]="'Transit stop'"></nas-journey-stopover>
|
|
47
|
-
* ```
|
|
48
46
|
*/
|
|
49
47
|
transitLabel: string;
|
|
50
48
|
/**
|
|
49
|
+
* @property Input
|
|
51
50
|
* @description
|
|
52
51
|
* A string representing the label placed before arrival time.
|
|
53
52
|
* @example
|
|
54
|
-
* ```html
|
|
55
53
|
* <nas-journey-stopover [arrivalTimeLabel]="'Arrival'"></nas-journey-stopover>
|
|
56
|
-
* ```
|
|
57
54
|
*/
|
|
58
55
|
arrivalTimeLabel: string;
|
|
59
56
|
/**
|
|
57
|
+
* @property Input
|
|
60
58
|
* @description
|
|
61
59
|
* A string representing the label placed before departure time.
|
|
62
60
|
* @example
|
|
63
|
-
* ```html
|
|
64
61
|
* <nas-journey-stopover [departureTimeLabel]="'Departure'"></nas-journey-stopover>
|
|
65
|
-
* ```
|
|
66
62
|
*/
|
|
67
63
|
departureTimeLabel: string;
|
|
68
64
|
/**
|
|
65
|
+
* @property Input
|
|
69
66
|
* @description
|
|
70
67
|
* A string representing time display format, if not provided, default formatting on date will be applied
|
|
71
68
|
* i.e 'HH:mm' , which will result in displaying time like '09:23'.
|
|
72
69
|
* @example
|
|
73
|
-
* ```html
|
|
74
70
|
* <nas-journey-stopover [timeFormat]='HH:mm'></nas-journey-stopover>
|
|
75
|
-
* ```
|
|
76
71
|
*/
|
|
77
72
|
timeFormat: string;
|
|
78
73
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
*/
|
|
74
|
+
* @property Input
|
|
75
|
+
* @description
|
|
76
|
+
* A string representing date display format, if not provided, default formatting on date will be applied
|
|
77
|
+
* i.e 'dd MMM,' , which will result in displaying time like '21 Feb,'.
|
|
78
|
+
* @example
|
|
79
|
+
* <nas-journey-stopover [dateFormat]='dd MMM,'></nas-journey-stopover>
|
|
80
|
+
*/
|
|
87
81
|
dateFormat: string;
|
|
88
82
|
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
*/
|
|
83
|
+
* @property Input
|
|
84
|
+
* @description
|
|
85
|
+
* A string representing Transit Hour indicator.
|
|
86
|
+
* if not provided, transit time will not be shown
|
|
87
|
+
* @example
|
|
88
|
+
* <nas-journey-stopover [transitHoursIndicator]='h'></nas-journey-stopover>
|
|
89
|
+
*/
|
|
97
90
|
transitHoursIndicator: string;
|
|
98
91
|
/**
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
*/
|
|
92
|
+
* @property Input
|
|
93
|
+
* @description
|
|
94
|
+
* A string representing Transit Minutes indicator.
|
|
95
|
+
* if not provided, transit time will not be shown
|
|
96
|
+
* @example
|
|
97
|
+
* <nas-journey-stopover [transitMinutesIndicator]='m'></nas-journey-stopover>
|
|
98
|
+
*/
|
|
107
99
|
transitMinutesIndicator: string;
|
|
108
100
|
/**
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
101
|
+
* @property Input
|
|
102
|
+
* @description
|
|
103
|
+
* A locale code for the locale format rules to use. When not supplied, uses the value of LOCALE_ID, which is en-US by default.
|
|
104
|
+
* This requires that registerLocaleData is called with the respective locale.
|
|
105
|
+
* @example
|
|
106
|
+
* <nas-journey-stopover [locale]="'es'"></nas-journey-stopover>
|
|
107
|
+
*/
|
|
116
108
|
locale: string;
|
|
117
109
|
/**
|
|
110
|
+
* @property Input
|
|
118
111
|
* @description
|
|
119
112
|
* User can input the timezone to localize the date.
|
|
120
113
|
* Default is set to UTC and it will by default show the date exactly what is passed to it.
|
|
121
114
|
* @example
|
|
122
|
-
* ```html
|
|
123
115
|
* <nas-journey-stopover [timeZone]="'UTC'"></nas-journey-stopover>
|
|
124
|
-
|
|
116
|
+
*/
|
|
125
117
|
timeZone: string;
|
|
126
118
|
get displayStopoverTime(): boolean;
|
|
127
119
|
get lineClass(): ClassModel;
|
|
@@ -12,41 +12,49 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
export declare class ListComponent extends NasComponentBase implements AfterContentChecked {
|
|
13
13
|
private elementRef;
|
|
14
14
|
/**
|
|
15
|
+
* @property Input
|
|
15
16
|
* @description
|
|
16
17
|
* List with grey and blue check-icon markers
|
|
17
18
|
*/
|
|
18
19
|
markers: boolean;
|
|
19
20
|
/**
|
|
21
|
+
* @property Input
|
|
20
22
|
* @description
|
|
21
23
|
* List with note markers
|
|
22
24
|
*/
|
|
23
25
|
note: boolean;
|
|
24
26
|
/**
|
|
27
|
+
* @property Input
|
|
25
28
|
* @description
|
|
26
29
|
* List with green check-icon markers
|
|
27
30
|
*/
|
|
28
31
|
positive: boolean;
|
|
29
32
|
/**
|
|
33
|
+
* @property Input
|
|
30
34
|
* @description
|
|
31
35
|
* List with red x-icon markers
|
|
32
36
|
*/
|
|
33
37
|
negative: boolean;
|
|
34
38
|
/**
|
|
39
|
+
* @property Input
|
|
35
40
|
* @description
|
|
36
41
|
* List with goto (arrow) icon markers
|
|
37
42
|
*/
|
|
38
43
|
goto: boolean;
|
|
39
44
|
/**
|
|
45
|
+
* @property Input
|
|
40
46
|
* @description
|
|
41
47
|
* List styles as a table
|
|
42
48
|
*/
|
|
43
49
|
table: boolean;
|
|
44
50
|
/**
|
|
51
|
+
* @property Input
|
|
45
52
|
* @description
|
|
46
53
|
* List without margin at bottom
|
|
47
54
|
*/
|
|
48
55
|
spaceless: boolean;
|
|
49
56
|
/**
|
|
57
|
+
* @property Input
|
|
50
58
|
* @description
|
|
51
59
|
* The string elements within the list
|
|
52
60
|
*/
|
|
@@ -11,97 +11,79 @@ export declare class ModalComponent extends NasComponentBase implements OnInit,
|
|
|
11
11
|
private ref;
|
|
12
12
|
private renderer;
|
|
13
13
|
/**
|
|
14
|
+
* @property Input
|
|
14
15
|
* @description
|
|
15
16
|
* Form style on the modal.
|
|
16
17
|
* @example
|
|
17
|
-
* ```html
|
|
18
18
|
* <nas-modal form></nas-modal>
|
|
19
|
-
* ```
|
|
20
19
|
* or
|
|
21
|
-
* ```html
|
|
22
20
|
* <nas-modal [form]="form"></nas-modal>
|
|
23
|
-
|
|
24
|
-
*/
|
|
21
|
+
*/
|
|
25
22
|
form?: boolean;
|
|
26
23
|
/**
|
|
24
|
+
* @property Input
|
|
27
25
|
* @description
|
|
28
26
|
* Tight style on the modal.
|
|
29
27
|
* @example
|
|
30
|
-
* ```html
|
|
31
28
|
* <nas-modal tight></nas-modal>
|
|
32
|
-
* ```
|
|
33
29
|
* or
|
|
34
|
-
* ```html
|
|
35
30
|
* <nas-modal [tight]="tight"></nas-modal>
|
|
36
|
-
|
|
37
|
-
*/
|
|
31
|
+
*/
|
|
38
32
|
tight?: boolean;
|
|
39
33
|
/**
|
|
34
|
+
* @property Input
|
|
40
35
|
* @description
|
|
41
36
|
* Center style on the modal.
|
|
42
37
|
* @example
|
|
43
|
-
* ```html
|
|
44
38
|
* <nas-modal center></nas-modal>
|
|
45
|
-
* ```
|
|
46
39
|
* or
|
|
47
|
-
* ```html
|
|
48
40
|
* <nas-modal [center]="center"></nas-modal>
|
|
49
|
-
|
|
50
|
-
*/
|
|
41
|
+
*/
|
|
51
42
|
center?: boolean;
|
|
52
43
|
/**
|
|
44
|
+
* @property Input
|
|
53
45
|
* @description
|
|
54
46
|
* Outlined style on the modal.
|
|
55
47
|
* @example
|
|
56
|
-
* ```html
|
|
57
48
|
* <nas-modal outlined></nas-modal>
|
|
58
|
-
* ```
|
|
59
49
|
* or
|
|
60
|
-
* ```html
|
|
61
50
|
* <nas-modal [outlined]="outlined"></nas-modal>
|
|
62
|
-
|
|
63
|
-
*/
|
|
51
|
+
*/
|
|
64
52
|
outlined?: boolean;
|
|
65
53
|
/**
|
|
54
|
+
* @property Input
|
|
66
55
|
* @description
|
|
67
56
|
* Title on the modal.
|
|
68
57
|
* @example
|
|
69
|
-
* ```html
|
|
70
58
|
* <nas-modal outlined></nas-modal>
|
|
71
|
-
* ```
|
|
72
59
|
* or
|
|
73
|
-
* ```html
|
|
74
60
|
* <nas-modal [outlined]="outlined"></nas-modal>
|
|
75
|
-
|
|
76
|
-
*/
|
|
61
|
+
*/
|
|
77
62
|
title: string;
|
|
78
63
|
/**
|
|
64
|
+
* @property Input
|
|
79
65
|
* @description
|
|
80
66
|
* Close label for the modal.
|
|
81
67
|
* @example
|
|
82
|
-
* ```html
|
|
83
68
|
* <nas-modal [closeLabel]="'Close'"></nas-modal>
|
|
84
|
-
|
|
85
|
-
*/
|
|
69
|
+
*/
|
|
86
70
|
closeLabel: string;
|
|
87
71
|
/**
|
|
72
|
+
* @property Input
|
|
88
73
|
* @description
|
|
89
74
|
* Determines if the modal should be animated when shown. Defaults to true
|
|
90
75
|
* @example
|
|
91
|
-
* ```html
|
|
92
76
|
* <nas-modal [animated]="'false'"></nas-modal>
|
|
93
|
-
|
|
94
|
-
*/
|
|
77
|
+
*/
|
|
95
78
|
animated: boolean;
|
|
96
79
|
/**
|
|
80
|
+
* @property Input
|
|
97
81
|
* @required
|
|
98
82
|
* @description
|
|
99
83
|
* Used to decide whether the modal should be diplayed or not.
|
|
100
84
|
* @example
|
|
101
|
-
* ```html
|
|
102
85
|
* <nas-modal [(show)]="diplayModal"></nas-modal>
|
|
103
|
-
|
|
104
|
-
*/
|
|
86
|
+
*/
|
|
105
87
|
get show(): boolean;
|
|
106
88
|
set show(show: boolean);
|
|
107
89
|
enableClose: boolean;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { EventEmitter, ElementRef, OnInit } from '@angular/core';
|
|
6
6
|
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
7
|
-
import {
|
|
7
|
+
import { FormGroup } from '@angular/forms';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* @description
|
|
@@ -13,76 +13,90 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
export declare class NumberFieldComponent extends NasComponentBase implements OnInit {
|
|
14
14
|
input: ElementRef;
|
|
15
15
|
/**
|
|
16
|
+
* @property Input
|
|
16
17
|
* @description
|
|
17
18
|
* The selected number.
|
|
18
|
-
|
|
19
|
+
*/
|
|
19
20
|
get number(): number;
|
|
20
21
|
set number(number: number);
|
|
21
22
|
/**
|
|
23
|
+
* @property Input
|
|
22
24
|
* @description
|
|
23
25
|
* Maximum limit.
|
|
24
|
-
|
|
26
|
+
*/
|
|
25
27
|
max: number;
|
|
26
28
|
/**
|
|
29
|
+
* @property Input
|
|
27
30
|
* @description
|
|
28
31
|
* Minimum limit.
|
|
29
|
-
|
|
32
|
+
*/
|
|
30
33
|
min: number;
|
|
31
34
|
/**
|
|
35
|
+
* @property Input
|
|
32
36
|
* @description
|
|
33
37
|
* A label for the number field input.
|
|
34
|
-
|
|
38
|
+
*/
|
|
35
39
|
label: string;
|
|
36
40
|
/**
|
|
41
|
+
* @property Input
|
|
37
42
|
* @description
|
|
38
43
|
* Sets compact styling.
|
|
39
|
-
|
|
44
|
+
*/
|
|
40
45
|
compact?: boolean;
|
|
41
46
|
/**
|
|
47
|
+
* @property Input
|
|
42
48
|
* @description
|
|
43
49
|
* Sets spaceless styling.
|
|
44
|
-
|
|
50
|
+
*/
|
|
45
51
|
spaceless?: boolean;
|
|
46
52
|
/**
|
|
53
|
+
* @property Input
|
|
47
54
|
* @description
|
|
48
55
|
* Sets simple styling.
|
|
49
56
|
*/
|
|
50
57
|
simple?: boolean;
|
|
51
58
|
/**
|
|
59
|
+
* @property Input
|
|
52
60
|
* @description
|
|
53
61
|
* Sets a formControlName directive to the input.
|
|
54
62
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
55
63
|
* It requiers that the nasFormGroup input is filled.
|
|
56
|
-
|
|
64
|
+
*/
|
|
57
65
|
nasFormControlName: string;
|
|
58
66
|
/**
|
|
67
|
+
* @property Input
|
|
59
68
|
* @description
|
|
60
69
|
* Adds the parent's form group.
|
|
61
70
|
* It requires that the consumer included ReactiveFormsModule in it's module.
|
|
62
71
|
* It is requiered to be filled if nasFormControlName added.
|
|
63
|
-
|
|
64
|
-
nasFormGroup:
|
|
72
|
+
*/
|
|
73
|
+
nasFormGroup: FormGroup;
|
|
65
74
|
/**
|
|
75
|
+
* @property Input
|
|
66
76
|
* @description
|
|
67
77
|
* Hides the input field and displays a plus and minus button only.
|
|
68
|
-
|
|
78
|
+
*/
|
|
69
79
|
hideInput?: boolean;
|
|
70
80
|
/**
|
|
81
|
+
* @property Input
|
|
71
82
|
* @description
|
|
72
83
|
* ARIA label for the subtract button.
|
|
73
|
-
|
|
84
|
+
*/
|
|
74
85
|
ariaLabelSubtract: string;
|
|
75
86
|
/**
|
|
87
|
+
* @property Input
|
|
76
88
|
* @description
|
|
77
89
|
* ARIA label for the add button.
|
|
78
90
|
*/
|
|
79
91
|
ariaLabelAdd: string;
|
|
80
92
|
/**
|
|
93
|
+
* @property Input
|
|
81
94
|
* @description
|
|
82
95
|
* ARIA label for the input field.
|
|
83
96
|
*/
|
|
84
97
|
ariaLabel: string;
|
|
85
98
|
/**
|
|
99
|
+
* @property Output
|
|
86
100
|
* @description
|
|
87
101
|
* An event that is fired every time the number changes.
|
|
88
102
|
*/
|
|
@@ -7,46 +7,39 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class PageFooterComponent extends NasComponentBase {
|
|
9
9
|
/**
|
|
10
|
+
* @property Input
|
|
10
11
|
* @description
|
|
11
12
|
* Links to be displayed in footer.
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
|
-
* ```html
|
|
15
15
|
* <nas-page-footer [links]="{text: 'Brukervilkår', url: '/brukervilkar'}"></nas-page-footer>
|
|
16
|
-
* ```
|
|
17
16
|
*/
|
|
18
17
|
links: Array<IconListModel>;
|
|
19
18
|
/**
|
|
19
|
+
* @property Input
|
|
20
20
|
* @description
|
|
21
21
|
* String to set Text on To Top Button.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
*
|
|
25
|
-
* ```html
|
|
26
24
|
* <nas-page-footer [buttonText]="'Til Toppen'"></nas-page-footer>
|
|
27
|
-
* ```
|
|
28
25
|
*/
|
|
29
26
|
buttonText: string;
|
|
30
27
|
/**
|
|
28
|
+
* @property Input
|
|
31
29
|
* @description
|
|
32
30
|
* Boolean to set hide To Top Button.
|
|
33
31
|
*
|
|
34
32
|
* @example
|
|
35
|
-
*
|
|
36
|
-
* ```html
|
|
37
33
|
* <nas-page-footer [hideButton]="true">Click on me!</nas-page-footer>
|
|
38
|
-
* ```
|
|
39
34
|
*/
|
|
40
35
|
hideButton?: boolean;
|
|
41
36
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* <nas-page-footer [bottomText]="bla bla"></nas-page-footer>
|
|
49
|
-
* ```
|
|
37
|
+
* @property Input
|
|
38
|
+
* @description
|
|
39
|
+
* String to set bottom text in footer.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* <nas-page-footer [bottomText]="bla bla"></nas-page-footer>
|
|
50
43
|
*/
|
|
51
44
|
bottomText?: string;
|
|
52
45
|
/**
|